:root {
    --hl-green: #00984b;
    --hl-menu: #8cc23b;
    --hl-yellow: #fdf8f4;
    --hl-title: #594c44;
    --hl-orange: #f7b338;
    --hl-footer-text: #ffffff;
    --hl-footer-yellow: #fff45c;
    --hl-line: #13ed79;
    --hl-pink: #ed6a78;
    --hl-pink-strong: #e74455;
    --hl-pink-dark: #da1f32;
    --hl-container: 1634px;
    --hl-font: "Noto Sans TC", "Microsoft JhengHei", sans-serif;
}

html {
    scrollbar-width: none;
}

html::-webkit-scrollbar {
    display: none;
}

/* 表頭固定於頂端後，內容需讓出等高空間；站內錨點捲動也要扣掉表頭高度，
   否則 #training-station 這類跳轉會把標題捲到表頭底下。
   桌機 = .header-top 120 + .main-nav 65（box-sizing: border-box，4px 邊框含在 120 內）。 */
html {
    scroll-padding-top: 185px;
}

body {
    position: relative;
    padding-top: 185px;
    color: var(--hl-title);
    font-family: var(--hl-font);
    font-size: calc((15px) * var(--fs, 1));
    line-height: 1.82;
    background: #d9e9bf url("../img/00-hp/bg_1920_g.jpg") top center / 1920px auto repeat-y;
}

a {
    color: inherit;
    text-decoration: none;
}

.container.hl-container {
    max-width: var(--hl-container);
    /* 比例式左右留白：對齊設計稿（1920 下內容 1634，左右各 ~143px ≈ 7.45vw），
       讓筆電（1200–1634px）也維持相同留白比例，不再貼齊螢幕邊緣。 */
    padding-inline: clamp(20px, 7.45vw, 160px);
}

.site-header {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
    z-index: 20;
    background: var(--hl-yellow);
}

.header-top {
    height: 120px;
    border-bottom: 4px solid var(--hl-green);
}

.mobile-header-row,
.mobile-header-tools,
.mobile-menu-backdrop,
.mobile-drawer {
    display: none;
}

.brand-link {
    display: inline-flex;
    align-items: center;
    height: 116px;
}

.brand-link img {
    width: 432px;
    height: auto;
    display: block;
}

.header-tools {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
    padding-top: 17px;
    font-size: calc((16px) * var(--fs, 1));
}

.font-tools {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #594c44;
    font-weight: 500;
}

.font-btn {
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: var(--hl-green);
    font-weight: 900;
    line-height: 1;
}

.header-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

.header-search input {
    width: 590px;
    height: 34px;
    padding: 0 16px;
    border: 1px solid #d8d8d8;
    border-radius: 5px;
    background: #fff;
    color: #777;
    font-size: calc((14px) * var(--fs, 1));
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, .08);
}

.header-search button {
    width: 92px;
    height: 36px;
    border: 0;
    border-radius: 5px;
    color: #fff;
    background: linear-gradient(180deg, #ffc54c 0%, #f7a91d 100%);
    font-size: calc((16px) * var(--fs, 1));
    font-weight: 700;
}

.main-nav {
    height: 65px;
    background: var(--hl-menu);
}

.nav-list {
    display: flex;
    justify-content: center;
    align-items: stretch;
    min-height: 65px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.nav-item {
    position: relative;
    flex: 0 0 clamp(150px, 8.75vw, 168px);
    min-width: 0;
}

.nav-item.has-dropdown {
    flex-basis: clamp(150px, 8.75vw, 168px);
    min-width: 0;
}

.nav-item > a {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 65px;
    color: #fff;
    font-weight: 500;
    line-height: 1;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .16);
}

.nav-item > a span {
    display: block;
    color: #fdf8f4;
    font-size: calc((clamp(20px, 1.15vw, 22px)) * var(--fs, 1));
    font-weight: 500;
    letter-spacing: .01em;
    line-height: 1;
}

.nav-item img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    transition: transform .25s ease;
}

/* 文件第1部分：游標移到選單時圖示放大（類似 Mac dock 效果） */
.nav-item > a:hover img,
.nav-item > a:focus img {
    transform: scale(1.35);
}

.sub-menu small,
.section-title span {
    display: block;
    color: #d7ed79;
    font-size: calc((11px) * var(--fs, 1));
    font-weight: 500;
    line-height: 1;
}

.nav-item > a small {
    display: block;
    margin-top: 3px;
    color: #f3ed79;
    font-size: calc((clamp(12px, .68vw, 13px)) * var(--fs, 1));
    font-weight: 400;
    letter-spacing: 0;
    line-height: 1;
}

.sub-menu {
    position: absolute;
    top: 65px;
    left: 50%;
    z-index: 30;
    width: clamp(154px, 9.38vw, 180px);
    margin: 0;
    padding: 0;
    list-style: none;
    overflow: hidden;
    background: linear-gradient(180deg, #8cc23b 0%, #02994b 100%);
    border-bottom: 0;
    border-radius: 0 0 14px 14px;
    transform: translateX(calc(-50% + 6px));
    opacity: 0;
    visibility: hidden;
}

.has-dropdown:hover .sub-menu,
.has-dropdown:focus-within .sub-menu {
    opacity: 1;
    visibility: visible;
}

.sub-menu a {
    display: block;
    min-height: clamp(48px, 2.85vw, 55px);
    padding: 8px 10px 6px;
    color: #fff;
    font-size: calc((clamp(18px, 1.1vw, 21px)) * var(--fs, 1));
    font-weight: 500;
    line-height: 1.08;
    text-align: center;
    text-shadow: 0 1px 0 rgba(0, 0, 0, .1);
}

.sub-menu li + li a {
    border-top: 1px dotted #f3ed79;
}

.sub-menu small {
    margin-top: 3px;
    color: #f3ed79;
    font-size: calc((clamp(11px, .68vw, 13px)) * var(--fs, 1));
    font-weight: 400;
    letter-spacing: 0;
}

.home-hero {
    position: relative;
    overflow: hidden;
    background: #d9edf3;
}

.homeHeroSwiper,
.hero-slide-link {
    display: block;
    width: 100%;
}

.home-hero picture,
.home-hero img {
    display: block;
    width: 100%;
}

.home-hero img {
    height: auto;
    object-fit: contain;
    object-position: center top;
}

.home-hero-pagination {
    bottom: 10px !important;
    display: none;
}

.home-hero-pagination .swiper-pagination-bullet {
    width: 9px;
    height: 9px;
    background: #fff;
    opacity: .8;
}

.home-hero-pagination .swiper-pagination-bullet-active {
    background: var(--hl-green);
}

.main_section {
    background: transparent;
}

.intro-section {
    position: relative;
    padding: 42px 0 58px;
    background-color: #fdf8f4;
    background-image: url("../img/00-hp/bg_2560.jpg");
    background-position: top center;
    background-size: 100% auto;
    background-repeat: repeat-y;
}

.share-row {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    margin-bottom: 2px;
    color: #594c44;
    font-size: calc((14px) * var(--fs, 1));
}

.share-row img {
    width: 38px;
    height: 38px;
}

.intro-grid {
    margin-top: 0;
}

.section-title {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 24px;
    padding-bottom: 9px;
    border-bottom: 1px solid var(--hl-green);
}

.section-title h2 {
    margin: 0;
    color: var(--hl-title);
    font-size: calc((18px) * var(--fs, 1));
    font-weight: 900;
    letter-spacing: .06em;
}

.section-title span {
    color: #f7b338;
    letter-spacing: 0;
}

.intro-copy {
    margin-bottom: 24px;
    color: var(--hl-title);
    font-size: calc((15px) * var(--fs, 1));
    line-height: 2.02;
}

.intro-copy p {
    margin-bottom: 4px;
}

.video-card {
    max-width: 986px;
}

.video-frame {
    position: relative;
    overflow: hidden;
    aspect-ratio: 986 / 354;
    background: #222;
}

.video-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 影片內嵌模式：解除封面圖用的固定扁框比例，改由 16:9 播放器決定高度，
   避免 YouTube 內嵌播放器在 overflow:hidden 的扁框中被裁切（RWD：16:9 各斷點自適應）。 */
.video-frame.is-video {
    aspect-ratio: auto;
    overflow: visible;
    background: transparent;
}

.video-frame.is-video .ratio {
    overflow: hidden;
    border-radius: inherit;
}

.video-frame.is-video iframe {
    border: 0;
}

.btn-main,
.btn-light-green,
.btn-orange,
.btn-course,
.btn-pink {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 32px;
    border-radius: 5px;
    font-size: calc((14px) * var(--fs, 1));
    font-weight: 700;
    line-height: 1;
}

.btn-main {
    min-width: 96px;
    margin-top: 16px;
    padding: 9px 20px;
    color: #fff;
    background: var(--hl-green);
}

.intro-illustration {
    width: min(520px, 100%);
    margin: 0;
}

.news-course-section {
    padding: 46px 0 54px;
    background-color: #daebc0;
    background-image: url("../img/00-hp/bg_2560_g.jpg");
    background-position: top center;
    background-size: 100% auto;
    background-repeat: repeat-y;
}

.section-title-line {
    margin-bottom: 20px;
}

.news-card,
.course-card {
    border: 1px solid #969696;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .16);
}

.news-card {
    position: relative;
    overflow: hidden;
}

.news-date {
    min-height: 21px;
    padding: 0 8px;
    color: #817d6b;
    font-size: calc((13px) * var(--fs, 1));
    line-height: 21px;
    text-align: right;
}

.news-card img {
    display: block;
    width: 100%;
}

.news-body {
    padding: 25px 26px 25px;
    text-align: center;
}

.news-body h3,
.course-body h3,
.album-card h3 {
    margin: 0;
    color: var(--hl-title);
    font-size: calc((16px) * var(--fs, 1));
    font-weight: 900;
}

.news-body p {
    margin: 12px 0 13px;
    text-align: left;
    color: #726760;
    font-size: calc((14px) * var(--fs, 1));
    line-height: 1.7;
}

.btn-light-green {
    padding: 8px 17px;
    color: #70695f;
    background: #daebc0;
}

.news-meta {
    margin-top: 13px;
    color: #817d6b;
    font-size: calc((13px) * var(--fs, 1));
}

.news-actions,
.course-actions {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 22px;
}

.btn-orange {
    width: 126px;
    color: #fff;
    background: #f59932;
}

.btn-orange-dark {
    background: #ed760c;
}

.course-list {
    display: grid;
    gap: 17px;
}

.course-card {
    display: grid;
    grid-template-columns: 313px 1fr;
    overflow: hidden;
    min-height: 218px;
}

.course-card img {
    width: 313px;
    height: 100%;
    object-fit: cover;
}

.course-body {
    padding: 30px 36px 18px;
}

.course-body h3 {
    margin-bottom: 8px;
    font-size: calc((16px) * var(--fs, 1));
}

.course-body p {
    margin: 0;
    color: #594c44;
    font-size: calc((14px) * var(--fs, 1));
    line-height: 1.55;
}

.btn-course {
    float: right;
    min-width: 117px;
    min-height: 30px;
    margin-top: 2px;
    color: #594c44;
    border: 1px solid #969696;
    background: #fff;
}

.btn-course.is-active,
.btn-course:hover,
.btn-course:focus-visible {
    color: #fff;
    border-color: var(--hl-green);
    background: var(--hl-green);
}

.btn-pink {
    width: 108px;
    color: #fff;
    background: var(--hl-pink);
}

.btn-pink-strong {
    background: var(--hl-pink-strong);
}

.btn-pink-dark {
    background: var(--hl-pink-dark);
}

.album-section {
    padding: 8px 0 60px;
    background-color: #daebc0;
    background-image: url("../img/00-hp/bg_2560_g.jpg");
    background-position: top center;
    background-size: 100% auto;
    background-repeat: repeat-y;
}

.section-title-centered {
    justify-content: center;
    margin-bottom: 18px;
}

.album-lead {
    margin: 0 0 28px;
    text-align: center;
    color: var(--hl-title);
    font-size: calc((15px) * var(--fs, 1));
}

.album-grid {
    margin-bottom: 24px;
}

.album-card {
    text-align: center;
}

.album-card a {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid #969696;
    border-radius: 7px;
    background: #fff;
    box-shadow: 0 3px 6px rgba(0, 0, 0, .18);
}

.album-card img {
    display: block;
    width: 100%;
    aspect-ratio: 509 / 345;
    object-fit: cover;
}

.album-card span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 12px 8px;
    color: var(--hl-title);
    background: rgba(255, 255, 255, .8);
    font-size: calc((18px) * var(--fs, 1));
    font-weight: 500;
}

.album-card h3 {
    margin-top: 16px;
    font-size: calc((16px) * var(--fs, 1));
    line-height: 1.55;
}

.album-more {
    margin-top: 8px;
}

.site-footer {
    padding: 22px 0 5px;
    color: var(--hl-footer-text);
    background: var(--hl-menu);
    border-top: 5px solid var(--hl-green);
}

.footer-main {
    display: grid;
    grid-template-columns: 100px 1fr auto;
    gap: 12px;
    align-items: center;
}

.footer-qrcode img {
    width: 100px;
    height: 100px;
}

.footer-info h2 {
    margin: 0 0 6px;
    font-size: calc((22px) * var(--fs, 1));
    font-weight: 500;
    transform: translateY(-4px);
}

.footer-info p {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 28px;
    margin: 0;
    font-size: calc((16px) * var(--fs, 1));
    line-height: 1.55;
}

.footer-info p:first-of-type {
    transform: translateY(-4px);
}

.footer-info img {
    width: 18px;
    height: 18px;
    margin-right: 5px;
    vertical-align: -4px;
}

.footer-info p:last-child span:last-child {
    color: var(--hl-footer-yellow);
    letter-spacing: .2em;
}

.footer-social {
    display: flex;
    gap: 10px;
    align-self: start;
    padding-bottom: 0;
}

.footer-social img {
    width: 45px;
    height: 45px;
}

.footer-bottom {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin-top: 20px;
    padding-top: 9px;
    border-top: 1px solid #fff;
    color: #fff;
    font-size: calc((14px) * var(--fs, 1));
    line-height: 1.5;
}

.footer-bottom img {
    width: 16px;
    height: 16px;
    margin-right: 4px;
    vertical-align: -3px;
}

.back-to-top {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 50;
    display: block;
    width: 48px;
    height: 96px;
    overflow: hidden;
}

.back-to-top img {
    width: 48px;
    max-width: none;
}

.social-links-btn-mobile {
    display: none !important;
}

body.mobile-menu-open {
    overflow: hidden;
}

@media (max-width: 1199.98px) {
    .hl-container {
        max-width: 960px;
    }

    .header-search input {
        width: 390px;
    }

    .nav-item {
        min-width: 130px;
    }

    .course-card {
        grid-template-columns: 210px 1fr;
    }

    .course-card img {
        width: 210px;
    }
}

@media (max-width: 1920px) {
    .intro-section {
        background-image: url("../img/00-hp/bg_1920.jpg");
    }

    .news-course-section,
    .album-section {
        background-image: url("../img/00-hp/bg_1920_g.jpg");
    }
}

@media (max-width: 1440px) {
    .intro-section {
        background-image: url("../img/00-hp/bg_1440.jpg");
    }

    .news-course-section,
    .album-section {
        background-image: url("../img/00-hp/bg_1440_g.jpg");
    }
}

@media (max-width: 1199.98px) {
    .intro-section {
        background-image: url("../img/00-hp/bg_1024.jpg");
    }

    .news-course-section,
    .album-section {
        background-image: url("../img/00-hp/bg_1024_g.jpg");
    }
}

@media (max-width: 991.98px) {
    body {
        background-size: 768px auto;
    }

    /* 手機版主選單以 d-none 隱藏，表頭只剩 .header-top 的 92px */
    html {
        scroll-padding-top: 92px;
    }

    body {
        padding-top: 92px;
    }

    .site-header {
        background: #fdf8f4;
    }

    .is-inner-page .home-hero {
        display: none;
    }

    .header-top {
        height: 92px;
        border-bottom-width: 3px;
    }

    .mobile-header-row {
        display: flex;
        align-items: center;
        height: 92px;
    }

    .mobile-menu-toggle {
        flex: 0 0 91px;
        width: 91px;
        height: 92px;
        border: 0;
        border-radius: 0;
        background: var(--hl-menu);
    }

    .mobile-menu-toggle span {
        display: block;
        width: 43px;
        height: 4px;
        margin: 9px auto;
        background: #fff;
        border-radius: 9px;
    }

    .mobile-brand-link {
        display: flex;
        overflow: hidden;
        align-items: center;
        height: 92px;
        padding-left: 0;
    }

    .mobile-brand-link img {
        width: min(92vw, 443px);
        max-width: none;
        height: auto;
        clip-path: inset(0 0 0 24.3%);
        transform: translateX(-19.7%);
    }

    .mobile-header-tools {
        display: block;
        padding: 22px 20px 7px 17px;
        background: #fdf8f4 url("../img/00-hp/bg_768.jpg") top center / 100% auto repeat-y;
    }

    .mobile-search {
        display: grid;
        grid-template-columns: 1fr 96px;
        gap: 13px;
        margin-bottom: 20px;
    }

    .mobile-search input {
        width: 100%;
        height: 34px;
        padding: 0 14px;
        border: 1px solid #969696;
        border-radius: 5px;
        background: #fff;
        color: #777;
        font-size: calc((14px) * var(--fs, 1));
        box-shadow: inset 0 1px 3px rgba(0, 0, 0, .08);
    }

    .mobile-search button {
        height: 34px;
        border: 0;
        border-radius: 6px;
        color: #fff;
        background: linear-gradient(180deg, #ffc54c 0%, #f7a91d 100%);
        font-size: calc((16px) * var(--fs, 1));
        font-weight: 700;
    }

    .mobile-tool-row {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 12px;
    }

    .mobile-social {
        display: flex;
        gap: 10px;
    }

    .mobile-social img {
        width: 45px;
        height: 45px;
    }

    .mobile-font-tools {
        color: var(--hl-title);
        text-align: center;
        font-size: calc((16px) * var(--fs, 1));
        line-height: 1.1;
        transform: translateY(-9px);
    }

    .mobile-font-tools span {
        display: block;
        margin-bottom: 6px;
    }

    /* 三顆按鈕字級不同（見檔末 .font-btn[data-size]：22 / 17 / 13px），
       預設 inline-block 走基線對齊，字級不同會讓盒子上下錯開約 2.5px。
       比照桌機 .font-tools 改用 flex，以盒子邊緣對齊。 */
    .mobile-font-tools > div {
        display: flex;
        justify-content: center;
        gap: 5px;
    }

    .mobile-font-tools .font-btn {
        width: 34px;
        height: 34px;
        border-radius: 5px;
        font-size: calc((22px) * var(--fs, 1));
    }

    .mobile-menu-backdrop {
        position: fixed;
        inset: 0;
        z-index: 90;
        display: block;
        background: rgba(218, 235, 192, .74);
        opacity: 0;
        pointer-events: none;
        transition: opacity .22s ease;
    }

    .mobile-drawer {
        position: fixed;
        inset: 0 auto 0 0;
        z-index: 100;
        display: block;
        width: 262px;
        max-width: 72vw;
        background: #fff;
        box-shadow: 4px 0 10px rgba(0, 0, 0, .18);
        transform: translateX(-105%);
        transition: transform .26s ease;
    }

    .mobile-menu-open .mobile-menu-backdrop {
        opacity: 1;
        pointer-events: auto;
    }

    .mobile-menu-open .mobile-drawer {
        transform: translateX(0);
    }

    .mobile-drawer-close {
        position: absolute;
        top: 20px;
        right: 18px;
        width: 42px;
        height: 42px;
        border: 0;
        color: var(--hl-menu);
        background: transparent;
        font-size: calc((34px) * var(--fs, 1));
        font-weight: 300;
        line-height: 30px;
    }

    .mobile-drawer-nav {
        padding: 123px 0 0 80px;
    }

    .mobile-drawer-group {
        margin-bottom: 33px;
    }

    .mobile-drawer-group:nth-of-type(2) {
        margin-bottom: 33px;
    }

    .mobile-drawer-group:nth-of-type(3) {
        margin-bottom: 33px;
    }

    .mobile-drawer-group:nth-of-type(4) {
        margin-bottom: 33px;
    }

    .mobile-drawer-group:nth-of-type(5) {
        margin-bottom: 26px;
    }

    .mobile-drawer-group button,
    .mobile-home-link {
        display: inline-flex;
        align-items: center;
        min-height: 28px;
        padding: 0;
        border: 0;
        color: var(--hl-title);
        background: transparent;
        font-size: calc((20px) * var(--fs, 1));
        font-weight: 500;
        letter-spacing: .015em;
        line-height: 1.2;
    }

    .mobile-drawer-group button span {
        position: relative;
        width: 15px;
        height: 15px;
        margin-left: 7px;
        border-radius: 999px;
        background: #6b615b;
    }

    .mobile-drawer-group button span::before,
    .mobile-drawer-group button span::after {
        position: absolute;
        top: 6px;
        width: 6px;
        height: 2px;
        background: #fff;
        content: "";
    }

    .mobile-drawer-group button span::before {
        left: 3px;
        transform: rotate(45deg);
    }

    .mobile-drawer-group button span::after {
        left: 7px;
        transform: rotate(-45deg);
    }

    .mobile-drawer-group.is-expanded button span::before {
        transform: rotate(-45deg);
    }

    .mobile-drawer-group.is-expanded button span::after {
        transform: rotate(45deg);
    }

    .mobile-drawer-group a {
        display: none;
        min-height: 32px;
        margin-top: 8px;
        color: var(--hl-green);
        font-size: calc((19px) * var(--fs, 1));
        font-weight: 500;
        letter-spacing: .015em;
        line-height: 1.25;
    }

    .mobile-drawer-group.is-expanded a {
        display: block;
    }

    .mobile-home-link {
        margin-top: 4px;
        margin-left: 8px;
    }

    .home-hero img {
        object-fit: contain;
    }

    .intro-section {
        padding-top: 32px;
        padding-bottom: 50px;
        background-image: url("../img/00-hp/bg_768.jpg");
    }

    .news-course-section,
    .album-section {
        background-image: url("../img/00-hp/bg_768_g.jpg");
    }

    .share-row {
        display: none;
    }

    .video-card {
        max-width: none;
    }

    .intro-illustration {
        width: min(360px, 86vw);
        margin: 24px auto 0;
    }

    .news-course-section {
        padding-top: 36px;
    }

    .course-card {
        grid-template-columns: 230px 1fr;
    }

    .course-card img {
        width: 230px;
    }

    .footer-main {
        grid-template-columns: 82px 1fr;
    }

    .footer-qrcode img {
        width: 82px;
        height: 82px;
    }

    .footer-social {
        grid-column: 1 / -1;
        justify-content: center;
        padding-bottom: 0;
    }

    .footer-bottom {
        display: block;
        text-align: center;
    }

    .footer-bottom span {
        display: block;
        margin-top: 4px;
    }
}

@media (max-width: 767.98px) {
    body {
        font-size: calc((14px) * var(--fs, 1));
        line-height: 1.75;
    }

    .brand-link img {
        width: 230px;
    }

    .section-title {
        margin-bottom: 18px;
    }

    .section-title h2 {
        font-size: calc((18px) * var(--fs, 1));
    }

    .intro-copy {
        font-size: calc((14px) * var(--fs, 1));
    }

    .video-card .text-end {
        text-align: center !important;
    }

    .video-card .btn-main {
        margin-top: 12px;
    }

    .news-course-section {
        padding-bottom: 42px;
    }

    .news-card,
    .course-card,
    .album-card a {
        max-width: 100%;
    }

    .course-card {
        grid-template-columns: 1fr;
    }

    .course-card img {
        width: 100%;
        height: auto;
    }

    .btn-course {
        float: none;
        margin-top: 10px;
    }

    .course-actions,
    .news-actions {
        flex-wrap: wrap;
    }

    .album-section {
        padding-bottom: 42px;
    }

    .album-card {
        margin-bottom: 14px;
    }

    .footer-main {
        display: block;
        text-align: center;
    }

    .footer-info p {
        justify-content: center;
    }

    .footer-qrcode {
        margin-bottom: 12px;
    }

    .back-to-top {
        right: 12px;
        bottom: 78px;
    }
}

@media (max-width: 575.98px) {
    .header-top {
        height: 92px;
    }

    .mobile-header-row {
        height: 92px;
    }

    .mobile-menu-toggle {
        flex-basis: 91px;
        width: 91px;
        height: 92px;
    }

    .mobile-brand-link {
        height: 92px;
        padding-left: 0;
    }

    .mobile-brand-link img {
        width: min(92vw, 443px);
        max-width: none;
    }

    .mobile-header-tools {
        padding: 22px 20px 7px 17px;
    }

    .mobile-search {
        grid-template-columns: 1fr 96px;
    }

    .home-hero {
        background: #dbf0f4;
    }

    .home-hero img {
        width: 100%;
        height: auto;
        object-fit: contain;
    }

    .intro-section {
        padding-top: 30px;
        padding-bottom: 46px;
    }

    .share-row img {
        width: 34px;
        height: 34px;
    }

    .news-body {
        padding: 16px;
    }

    .news-body h3,
    .course-body h3,
    .album-card h3 {
        font-size: calc((16px) * var(--fs, 1));
    }

    .footer-info h2 {
        font-size: calc((18px) * var(--fs, 1));
    }
}

/* Inner pages */
.inner-page {
    min-height: 680px;
    padding: 24px 0 60px;
    background-color: #fdf8f4;
    background-image: url("../img/00-hp/bg_2560.jpg");
    background-position: top center;
    background-size: 100% auto;
    background-repeat: repeat-y;
}

.inner-heading {
    position: relative;
    padding-top: 30px;
    text-align: center;
}

.inner-share-row {
    position: absolute;
    top: 0;
    right: 0;
}

.inner-heading > h1 {
    margin: 0 0 18px;
    color: var(--hl-title);
    font-size: calc((clamp(24px, 1.55vw, 30px)) * var(--fs, 1));
    font-weight: 500;
    letter-spacing: .08em;
}

.inner-heading > h1 small {
    color: #f7b338;
    font-size: calc((12px) * var(--fs, 1));
    font-weight: 500;
    letter-spacing: 0;
}

.inner-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 18px;
    margin-bottom: 34px;
}

.inner-tabs a {
    min-width: 112px;
    padding: 7px 18px;
    color: var(--hl-green);
    border: 2px solid var(--hl-green);
    border-radius: 6px;
    background: transparent;
    font-size: calc((15px) * var(--fs, 1));
    font-weight: 500;
    line-height: 1.2;
}

.inner-tabs a.is-active,
.inner-tabs a:hover {
    color: #fff;
    background: var(--hl-menu);
    border-color: var(--hl-menu);
}

.inner-section-title {
    margin-top: 14px;
    margin-bottom: 42px;
}

.inner-section-title h2 {
    font-size: calc((24px) * var(--fs, 1));
    font-weight: 500;
}

.about-intro {
    margin-bottom: 48px;
}

.about-intro p {
    margin-bottom: 30px;
    font-size: calc((18px) * var(--fs, 1));
    line-height: 2.05;
}

.about-side-illustration {
    width: min(352px, 100%);
}

.team-photo {
    width: min(864px, 100%);
    margin: 40px auto 66px;
}

.team-photo img {
    display: block;
    width: 100%;
    border: 3px solid #e7dd4d;
    border-radius: 28px;
}

.staff-grid {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 28px;
    align-items: start;
}

/* 卡片獨立成一層：插圖不參與卡片的自動排列，
   人數超過一列時才會對齊第一位人員，而不是掉進插圖那一欄（190px） */
.staff-list {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 28px;
}

.staff-decoration {
    width: 190px;
    margin-top: 54px;
}

.staff-card {
    text-align: center;
}

.staff-card img,
.staff-card .staff-photo-blank {
    display: block;
    width: 100%;
    aspect-ratio: 352 / 448;
    object-fit: cover;
    border-radius: 24px;
    box-shadow: 0 2px 7px rgba(0, 0, 0, .18);
}

/* 尚無照片時的替代色塊：淡綠底＋人像剪影，尺寸與圓角與照片一致，避免破圖 */
.staff-card .staff-photo-blank {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, #dcecc4 0%, #c3ddb1 100%);
}

.staff-card .staff-photo-blank svg {
    width: 46%;
    height: auto;
    fill: #fff;
    opacity: .72;
}

.staff-card h3 {
    margin: 0 0 15px;
    color: var(--hl-title);
    font-size: calc((20px) * var(--fs, 1));
    font-weight: 500;
}

/* 駐點中／南區的專線，樣式比照分機；有填才出現，接著才是分機那一行 */
.staff-card > strong.staff-phone + strong {
    margin-top: 2px;
}

.staff-card > strong {
    display: block;
    margin-top: 12px;
    color: var(--hl-green);
    font-size: calc((18px) * var(--fs, 1));
    font-weight: 500;
    letter-spacing: .08em;
}

.staff-card > span {
    display: inline-block;
    margin-top: 6px;
    padding: 2px 18px 4px;
    color: #fff;
    border-radius: 999px;
    background: var(--hl-green);
    font-size: calc((16px) * var(--fs, 1));
    font-weight: 700;
    line-height: 1.25;
}

.staff-card p {
    margin: 6px 0 0;
    font-size: calc((17px) * var(--fs, 1));
    line-height: 1.25;
}

.service-layout {
    display: grid;
    grid-template-columns: minmax(0, 960px) 1fr;
    gap: 55px;
    align-items: start;
}

.service-item {
    margin-bottom: 64px;
}

.service-item header {
    display: flex;
    align-items: center;
    gap: 17px;
    margin-bottom: 26px;
}

.service-item header > span {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    color: #fff;
    border-radius: 7px;
    background: var(--hl-orange);
    font-size: calc((20px) * var(--fs, 1));
    font-weight: 700;
}

.service-item h3 {
    margin: 0;
    color: var(--hl-title);
    font-size: calc((20px) * var(--fs, 1));
    font-weight: 700;
}

.service-item p {
    margin: 0 0 28px;
    font-size: calc((17px) * var(--fs, 1));
    line-height: 1.9;
}

.service-item ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-item li {
    position: relative;
    margin: 0 0 9px;
    padding-left: 20px;
    font-size: calc((17px) * var(--fs, 1));
    line-height: 1.75;
}

.service-item li::before {
    position: absolute;
    left: 0;
    color: #f28f20;
    content: "✓";
}

.service-item li strong {
    font-weight: 700;
}

.service-main-image {
    width: min(632px, 100%);
    margin-top: 42px;
}

.service-secondary {
    display: grid;
    grid-template-columns: 520px minmax(0, 1fr);
    gap: 35px;
    align-items: center;
    margin-top: 12px;
}

.service-secondary > img {
    width: min(560px, 100%);
}

.service-secondary-content {
    padding-top: 12px;
}

.inner-album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 70px 54px;
}

.album-count {
    margin: -30px 0 40px;
    color: var(--hl-title);
    text-align: right;
    font-size: calc((17px) * var(--fs, 1));
}

.inner-album-grid .album-card h3 {
    margin-top: 16px;
    font-size: calc((20px) * var(--fs, 1));
    font-weight: 500;
    line-height: 1.5;
}

.album-list-page {
    padding-bottom: 170px;
}

.personnel-page {
    padding-bottom: 47px;
}

.service-page {
    padding-bottom: 63px;
}

.post-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 58px;
}

.post-count {
    margin: -30px 0 30px;
    color: var(--hl-title);
    text-align: right;
    font-size: calc((17px) * var(--fs, 1));
}

.recruit-list-page .post-count {
    margin-bottom: 54px;
}

.news-list-page {
    padding-bottom: 96px;
}

.recruit-list-page {
    padding-bottom: 136px;
}

.post-card {
    overflow: hidden;
    border: 1px solid #969696;
    border-radius: 9px;
    background: #fff;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .15);
}

.post-card > img {
    display: block;
    width: 100%;
    aspect-ratio: 777 / 342;
    object-fit: cover;
}

.recruit-grid .post-card > img {
    aspect-ratio: 777 / 342;
}

.recruit-grid .post-card-body {
    min-height: 190px;
}

.post-card-body {
    display: flex;
    min-height: 193px;
    padding: 20px 38px 22px;
    align-items: center;
    flex-direction: column;
    justify-content: flex-start;
    text-align: center;
}

.post-card-body h2 {
    margin: 0 0 10px;
    color: var(--hl-title);
    font-size: calc((20px) * var(--fs, 1));
    font-weight: 700;
}

.post-card-body p {
    min-height: 60px;
    margin: 0 0 14px;
    color: #726760;
    text-align: center;
    font-size: calc((17px) * var(--fs, 1));
    line-height: 1.9;
    letter-spacing: 1.4px;
}

.post-card-body .btn-light-green {
    margin-top: auto;
    min-height: 30px;
    padding-top: 6px;
    padding-bottom: 6px;
}

.post-meta {
    display: flex;
    min-height: 38px;
    padding: 10px 2px 0;
    align-items: flex-start;
    justify-content: space-between;
    color: #817d6b;
    font-size: calc((14px) * var(--fs, 1));
    line-height: 1.4;
}

.detail-article {
    width: min(900px, 100%);
    margin: 0 auto;
}

.news-detail-article {
    width: 100%;
}

.news-detail-article > h1 {
    margin: 0 0 12px;
    color: var(--hl-title);
    font-size: calc((24px) * var(--fs, 1));
    font-weight: 700;
    line-height: 1.5;
}

.news-detail-article .detail-content {
    font-size: calc((18px) * var(--fs, 1));
    line-height: 1.9;
}

.news-detail-article .detail-content p {
    margin: 0 0 34px;
}

.news-detail-page:not(.recruit-detail-page) {
    padding-bottom: 72px;
}

.recruit-detail-page .detail-content p {
    margin-bottom: 26px;
}

.recruit-detail-page {
    padding-bottom: 90px;
}

.detail-image-caption {
    margin-top: 36px !important;
    margin-bottom: 12px !important;
}

.detail-inline-image {
    display: block;
    width: 707px;
    max-width: 100%;
    height: auto;
    margin: 0 0 46px;
}

.news-detail-article .detail-notice {
    margin-top: -18px;
    color: #f00;
}

.news-detail-article > footer {
    justify-content: center;
    margin-top: 60px;
}

.news-detail-article > footer .btn-orange {
    width: 150px;
    text-align: center;
}

.detail-article > header {
    padding-bottom: 13px;
    border-bottom: 1px solid var(--hl-green);
}

.detail-article > header h1 {
    margin: 0 0 11px;
    color: var(--hl-title);
    font-size: calc((clamp(20px, 1.3vw, 25px)) * var(--fs, 1));
    font-weight: 700;
    line-height: 1.45;
}

.detail-article > header > div {
    display: flex;
    justify-content: space-between;
    color: #817d6b;
    font-size: calc((12px) * var(--fs, 1));
}

.detail-cover {
    display: block;
    width: min(620px, 100%);
    margin: 28px auto;
}

.detail-content {
    color: var(--hl-title);
    font-size: calc((15px) * var(--fs, 1));
    line-height: 2;
}

.detail-content img {
    max-width: 100%;
    height: auto;
}

.detail-article > footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 42px;
}

.detail-pager {
    display: flex;
    gap: 12px;
}

.detail-pager a {
    padding: 6px 16px;
    color: var(--hl-title);
    border: 1px solid #969696;
    border-radius: 4px;
    background: #fff;
    font-size: calc((13px) * var(--fs, 1));
}

.blog-pagination {
    margin-top: 38px;
}

.blog-pagination .page-link {
    color: var(--hl-green);
    border-color: #9fc56b;
}

.blog-pagination .page-item.active .page-link {
    color: #fff;
    background: var(--hl-green);
    border-color: var(--hl-green);
}

@media (max-width: 1920px) {
    .inner-page {
        background-image: url("../img/00-hp/bg_1920.jpg");
    }
}

@media (max-width: 1439.98px) {
    .inner-page {
        background-image: url("../img/00-hp/bg_1440.jpg");
    }
}

@media (max-width: 1199.98px) {
    .inner-page {
        background-image: url("../img/00-hp/bg_1024.jpg");
    }

    .staff-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .staff-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .staff-decoration {
        display: none;
    }

    .service-layout {
        grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
        gap: 30px;
    }

    .service-secondary {
        grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr);
    }
}

@media (max-width: 991.98px) {
    .inner-page {
        padding-top: 6px;
        background-image: url("../img/00-hp/bg_768.jpg");
    }

    .inner-page > .hl-container {
        padding-right: 20px;
        padding-left: 20px;
    }

    .inner-heading {
        padding-top: 0;
    }

    .inner-heading > h1 small {
        display: none;
    }

    .inner-share-row {
        display: none;
    }

    .back-to-top {
        display: none;
    }

    .service-main-image {
        margin-top: 24px;
    }

    .service-layout,
    .service-secondary {
        grid-template-columns: 1fr;
    }

    .service-main-image,
    .service-secondary > img {
        width: min(440px, 88vw);
        margin: 20px auto 36px;
    }

    .service-secondary > img {
        order: 2;
    }
}

@media (max-width: 767.98px) {
    .inner-page {
        padding-bottom: 44px;
    }

    .inner-heading > h1 {
        font-size: calc((36px) * var(--fs, 1));
    }

    .inner-tabs {
        gap: 12px;
        margin-bottom: 33px;
    }

    .inner-tabs a {
        min-width: 98px;
        padding: 5px 13px;
        font-size: calc((18px) * var(--fs, 1));
    }

    .inner-section-title {
        margin-bottom: 22px;
    }

    .about-intro p,
    .detail-content {
        font-size: calc((18px) * var(--fs, 1));
        line-height: 1.82;
    }

    .about-intro p:first-child {
        margin-bottom: 0;
    }

    .about-intro p:not(:first-child) {
        margin-bottom: 38px;
    }

    .staff-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 24px 16px;
    }

    .inner-album-grid,
    .post-grid {
        grid-template-columns: 1fr;
    }

    .post-count,
    .recruit-list-page .post-count {
        margin-bottom: 24px;
    }

    .album-list-page {
        padding-bottom: 64px;
    }

    .personnel-page {
        padding-bottom: 44px;
    }

    .service-page {
        padding-bottom: 44px;
    }

    .detail-article > footer {
        align-items: stretch;
        flex-direction: column;
        gap: 18px;
    }

    .detail-pager {
        justify-content: center;
    }

    .detail-article > footer > .btn-orange {
        align-self: center;
    }
}

@media (max-width: 575.98px) {
    .inner-tabs {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 118px));
        justify-content: center;
        gap: min(4.5vw, 22px);
    }

    .inner-tabs a {
        min-width: 0;
        padding-inline: 8px;
    }

    .staff-list {
        grid-template-columns: 1fr 1fr;
        gap: 24px 16px;
    }

    .staff-card h3 {
        font-size: calc((15px) * var(--fs, 1));
    }

    .staff-card > strong {
        font-size: calc((14px) * var(--fs, 1));
    }

    .staff-card > span {
        padding-inline: 12px;
        font-size: calc((13px) * var(--fs, 1));
    }

    .staff-card p {
        font-size: calc((13px) * var(--fs, 1));
    }

    .about-intro p,
    .service-item p,
    .service-item li {
        font-size: calc((18.6px) * var(--fs, 1));
        line-height: 1.78;
    }

    .team-photo {
        margin-bottom: 44px;
    }

    .team-photo img {
        border-radius: 14px;
    }
}

/* Maps */
.map-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 46px;
    align-items: start;
}

.map-count {
    margin: -30px 0 44px;
    color: var(--hl-title);
    text-align: right;
    font-size: calc((17px) * var(--fs, 1));
}

.map-card {
    overflow: hidden;
    border: 1px solid #969696;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .15);
}

.map-card > header {
    display: flex;
    min-height: 44px;
    padding: 6px 14px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, #87c03b 0%, #0b9b4a 100%);
    font-size: calc((18px) * var(--fs, 1));
    font-weight: 700;
}

.map-card > header img {
    width: 24px;
    height: 24px;
    margin-right: 6px;
    object-fit: contain;
}

.map-card > img {
    display: block;
    width: 100%;
    height: auto;
}

.map-card-locations {
    display: none;
    min-height: 274px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    padding: 14px 20px 18px;
    color: #726760;
    background: #fff;
}

.sport-map-page {
    padding-bottom: 97px;
}

.map-card.is-expanded .map-card-locations {
    display: grid;
}

.map-card-locations ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.map-card-locations li {
    margin-bottom: 5px;
    font-size: calc((14px) * var(--fs, 1));
    line-height: 1.55;
}

.map-card-locations a {
    color: #726760;
}

.map-card-toggle {
    display: block;
    width: 100%;
    min-height: 42px;
    padding: 7px;
    border: 0;
    color: #fff;
    background: #f8b041;
    text-align: center;
    font-size: calc((15px) * var(--fs, 1));
    font-weight: 700;
}

.map-card-toggle .when-open {
    display: none;
}

.map-card.is-expanded .map-card-toggle .when-closed {
    display: none;
}

.map-card.is-expanded .map-card-toggle .when-open {
    display: inline;
}

.map-card-toggle:hover,
.map-card-toggle:focus-visible {
    background: #f59f23;
}

.map-detail,
.food-detail {
    width: min(930px, 100%);
    margin: 0 auto;
}

.sport-detail-page .map-detail {
    width: 100%;
}

.sport-detail-page .map-detail-grid {
    grid-template-columns: 536px minmax(0, 1fr);
    gap: 30px;
}

.map-detail-name {
    margin: -20px 0 16px;
    color: var(--hl-green);
    font-size: calc((20px) * var(--fs, 1));
    font-weight: 700;
}

.sport-detail-page .map-detail-grid > img {
    width: 536px;
    border: 3px solid var(--hl-orange);
    border-radius: 12px;
}

.map-detail-facility {
    padding-top: 8px;
}

.map-detail-facility h3,
.map-detail-description h3,
.map-embed h3 {
    margin: 0 0 8px;
    color: var(--hl-orange);
    font-size: calc((17px) * var(--fs, 1));
    font-weight: 700;
}

.map-detail-facility p {
    margin: 0;
    font-size: calc((15px) * var(--fs, 1));
}

.map-detail-description {
    margin-top: 24px;
    font-size: calc((15px) * var(--fs, 1));
    line-height: 1.85;
}

.map-detail-description p {
    margin: 0 0 5px;
}

.map-embed {
    margin-top: 14px;
}

.map-embed a,
.map-embed img {
    display: block;
    width: 100%;
}

.map-embed img {
    height: auto;
}

.sport-detail-page .text-center {
    margin-top: 70px;
}

.sport-detail-page {
    padding-bottom: 81px;
}

.map-detail-grid,
.food-detail-top {
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(280px, .9fr);
    gap: 32px;
    align-items: start;
}

.map-detail-grid > img,
.food-detail-top > img {
    width: 100%;
    border-radius: 6px;
}

.map-detail-grid p,
.food-detail-top p,
.map-detail-grid div,
.food-detail-top div {
    font-size: calc((14px) * var(--fs, 1));
    line-height: 1.85;
}

.map-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 260px;
    margin-top: 30px;
    color: var(--hl-green);
    border: 1px solid #a7a7a7;
    background:
        linear-gradient(rgba(255, 255, 255, .72), rgba(255, 255, 255, .72)),
        repeating-linear-gradient(45deg, #dcebd7 0 8px, #f2f5eb 8px 16px);
    font-size: calc((16px) * var(--fs, 1));
    font-weight: 700;
}

.map-placeholder i {
    font-size: calc((30px) * var(--fs, 1));
}

.food-group-title {
    margin-top: 0;
}

.food-map-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 29px 42px;
}

.food-category-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: -12px 0 38px;
}

.food-category-nav a {
    padding: 0 56px;
    color: var(--hl-green);
    border-right: 1px solid var(--hl-green);
    font-size: calc((18px) * var(--fs, 1));
    line-height: 1.2;
}

.food-category-nav a:last-child {
    border-right: 0;
}

.food-map-group {
    margin-bottom: 44px;
    scroll-margin-top: 24px;
}

.food-map-page {
    padding-bottom: 36px;
}

.food-group-count {
    margin: -30px 0 44px;
    color: var(--hl-title);
    text-align: right;
    font-size: calc((17px) * var(--fs, 1));
}

.food-location-card {
    overflow: hidden;
    align-self: start;
    border: 1px solid #969696;
    border-radius: 10px;
    background: #fff;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .15);
}

.food-location-card > header {
    display: flex;
    min-height: 48px;
    padding: 6px 14px;
    align-items: center;
    justify-content: center;
    color: #fff;
    background: linear-gradient(180deg, #87c03b 0%, #0b9b4a 100%);
    font-size: calc((18px) * var(--fs, 1));
    font-weight: 700;
}

.food-location-card > header img {
    width: 25px;
    height: 25px;
    margin-right: 7px;
    object-fit: contain;
}

.food-location-card > img {
    display: block;
    width: 100%;
    height: auto;
}

.food-location-list {
    display: none;
    min-height: 267px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    padding: 16px 26px;
    color: #726760;
}

.food-location-card.is-expanded .food-location-list {
    display: grid;
}

.food-location-list ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.food-location-list ul + ul {
    padding-left: 24px;
    border-left: 1px solid var(--hl-orange);
}

.food-location-list li {
    margin-bottom: 12px;
    font-size: calc((16px) * var(--fs, 1));
    line-height: 1.6;
}

.food-location-list a {
    color: #726760;
}

.food-card-toggle {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 8px;
    border: 0;
    color: #fff;
    background: #f8b041;
    font-size: calc((16px) * var(--fs, 1));
    font-weight: 700;
}

.food-card-toggle .when-open {
    display: none;
}

.food-location-card.is-expanded .food-card-toggle .when-closed {
    display: none;
}

.food-location-card.is-expanded .food-card-toggle .when-open {
    display: inline;
}

.food-card-toggle:hover,
.food-card-toggle:focus-visible {
    background: #f59f23;
}

.food-detail-poster {
    display: block;
    width: min(680px, 100%);
    margin: 34px auto;
}

.food-detail-page .food-detail {
    width: 100%;
}

.food-detail-page .food-detail-top {
    grid-template-columns: 536px minmax(0, 1fr);
    gap: 30px;
    min-height: 615px;
}

.food-detail-name {
    margin: -20px 0 40px;
    color: var(--hl-green);
    font-size: calc((20px) * var(--fs, 1));
    font-weight: 700;
}

.food-detail-page .food-detail-top > img {
    width: 536px;
    border: 3px solid var(--hl-orange);
    border-radius: 11px;
}

.food-detail-info {
    padding-top: 8px;
}

.food-detail-info h3,
.food-detail-description h3,
.food-map-embed h3 {
    margin: 0 0 8px;
    color: var(--hl-orange);
    font-size: calc((17px) * var(--fs, 1));
    font-weight: 700;
}

.food-detail-info p {
    margin: 0 0 5px;
    font-size: calc((15px) * var(--fs, 1));
    line-height: 1.65;
}

.food-detail-description {
    margin-top: 24px;
    font-size: calc((15px) * var(--fs, 1));
}

.food-detail-description p {
    margin: 0;
}

.food-detail-page .food-detail-poster {
    width: min(1243px, 100%);
    margin: 26px 0 36px;
}

.food-map-embed {
    width: min(1435px, 100%);
}

.food-map-embed a,
.food-map-embed img {
    display: block;
    width: 100%;
}

.food-map-embed img {
    height: auto;
}

.food-detail-page .text-center {
    margin-top: 72px;
}

.food-detail-page {
    padding-bottom: 70px;
}

/* Courses */
.course-table-wrap {
    overflow-x: auto;
}

.course-table {
    width: 100%;
    min-width: 760px;
    border-collapse: separate;
    border-spacing: 0 10px;
    text-align: center;
    font-size: calc((13px) * var(--fs, 1));
}

.course-table th {
    padding: 9px;
    color: #fff;
    background: #008c78;
}

.course-table td {
    padding: 8px;
    border-top: 1px solid #d4d4d4;
    border-bottom: 1px solid #d4d4d4;
    background: #fff;
}

.course-table td:first-child {
    border-left: 1px solid #d4d4d4;
}

.course-table td:last-child {
    border-right: 1px solid #d4d4d4;
}

.course-table td a {
    display: inline-block;
    padding: 5px 12px;
    color: #fff;
    border-radius: 4px;
    background: var(--hl-green);
}

.course-table td a.is-full {
    background: #969696;
}

.course-form {
    width: min(900px, 100%);
    margin: 42px auto 0;
    padding: 25px 32px;
    border: 2px solid #38a99d;
    border-radius: 12px;
    background: rgba(255, 255, 255, .72);
}

.course-form h2 {
    margin: 0 0 20px;
    color: var(--hl-title);
    text-align: center;
    font-size: calc((20px) * var(--fs, 1));
}

.course-form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px 28px;
}

.course-form label {
    display: grid;
    grid-template-columns: 90px 1fr;
    align-items: center;
    gap: 8px;
    margin-bottom: 13px;
    font-size: calc((13px) * var(--fs, 1));
}

.course-form input,
.course-form textarea {
    width: 100%;
    border: 1px solid #b8b8b8;
    border-radius: 3px;
    background: #fff;
}

.course-form input {
    height: 31px;
}

.course-form textarea {
    padding: 8px;
    resize: vertical;
}

.course-form > div:last-child {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.course-form button {
    min-width: 88px;
    padding: 7px 14px;
    color: #fff;
    border: 0;
    border-radius: 4px;
    background: #969696;
}

.course-form button[type="submit"] {
    background: var(--hl-menu);
}

.quota-query {
    display: table;
    margin: -8px auto 58px;
    color: #009e99;
    font-size: calc((18px) * var(--fs, 1));
    font-weight: 700;
}

.group-calendar {
    width: calc(100% - 170px);
    margin: 0 auto;
}

.calendar-toolbar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    margin-bottom: 14px;
    align-items: center;
}

.calendar-toolbar > div {
    display: flex;
}

.calendar-toolbar button,
.calendar-toolbar > div a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 46px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid #d4d4d4;
    color: #726760;
    background: linear-gradient(#fff, #e8e8e8);
    font-size: calc((16px) * var(--fs, 1));
    line-height: 1;
    text-decoration: none;
    cursor: pointer;
}

.calendar-toolbar > div a:hover {
    background: linear-gradient(#fff, #dcdcdc);
    color: #00984b;
}

.calendar-toolbar > div button:first-child,
.calendar-toolbar > div a:first-child {
    border-radius: 5px 0 0 5px;
}

.calendar-toolbar > div button:nth-child(2),
.calendar-toolbar > div a:nth-child(2) {
    border-left: 0;
    border-radius: 0 5px 5px 0;
}

.calendar-toolbar > div button:last-child,
.calendar-toolbar > div a:last-child {
    margin-left: 18px;
    border-radius: 5px;
}

.calendar-toolbar > button {
    justify-self: end;
    border-radius: 5px;
}

.calendar-toolbar h2 {
    margin: 0;
    color: var(--hl-title);
    font-size: calc((20px) * var(--fs, 1));
    font-weight: 700;
}

.calendar-weekdays,
.calendar-days {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
}

.calendar-weekdays span {
    padding: 7px;
    color: #726760;
    border: 1px solid #d8d8d8;
    border-right: 0;
    text-align: center;
    font-size: calc((14px) * var(--fs, 1));
}

.calendar-weekdays span:first-child,
.calendar-weekdays span:last-child {
    color: #d26c63;
}

.calendar-weekdays span:last-child {
    border-right: 1px solid #d8d8d8;
}

.calendar-days button {
    position: relative;
    min-height: 113px;
    padding: 34px 3px 3px;
    border: 0;
    border-right: 1px solid #d8d8d8;
    border-bottom: 1px solid #d8d8d8;
    background: rgba(255, 255, 255, .62);
}

.calendar-days button:nth-child(7n + 1) {
    border-left: 1px solid #d8d8d8;
}

.calendar-days button time {
    position: absolute;
    top: 8px;
    right: 8px;
    color: #726760;
    font-size: calc((12px) * var(--fs, 1));
}

.calendar-days button.is-weekend time {
    color: #d26c63;
}

.calendar-days button.is-muted time {
    opacity: .25;
}

.calendar-days button > span {
    display: block;
    padding: 5px;
    color: #fff;
    background: #00984b;
    font-size: calc((15px) * var(--fs, 1));
    font-weight: 700;
}

.calendar-days button:hover > span,
.calendar-days button:focus-visible > span {
    background: #00843f;
}

.calendar-days button.is-today {
    background: #fff9e5;
}

/* 未開放/已過期：灰底徽章、不可點 */
.calendar-days button > span.cal-na {
    color: #b3aaa3;
    background: #ededed;
    font-weight: 400;
}

.calendar-days button.is-closed,
.calendar-days button.is-past {
    cursor: default;
}

.calendar-days button.is-past time {
    opacity: .4;
}

.calendar-days button.is-past > span.cal-na {
    opacity: .55;
}

/* 可選日期：可點，hover 強調 */
.calendar-days button.is-open {
    cursor: pointer;
}

/* 已選取日期 */
.calendar-days button.is-selected > span {
    background: #d26c63;
}

.calendar-days button.is-selected time {
    color: #d26c63;
    font-weight: 700;
}

.group-application-form.course-form {
    position: relative;
    width: 100%;
    margin-top: 79px;
    padding: 54px 128px 23px;
    border-color: #009e99;
    border-radius: 16px;
    background: rgba(253, 248, 244, .92);
}

.group-application-form.course-form > h2 {
    position: absolute;
    top: -22px;
    left: 50%;
    margin: 0;
    padding: 8px 20px;
    color: #fff;
    border-radius: 5px;
    background: #009e99;
    font-size: calc((24px) * var(--fs, 1));
    transform: translateX(-50%);
}

.required-note {
    margin: 0 0 12px;
    color: #ff8038;
    font-size: calc((17px) * var(--fs, 1));
}

/* 團衛「已選課程日期」回饋：讓使用者明確知道從月曆選了哪天、第幾堂 */
.selected-dates-note {
    margin: -4px 0 14px;
    padding: 9px 14px;
    border: 1px solid #cfe3a8;
    border-radius: 6px;
    background: #f2f8e6;
    color: #5a6b2f;
    font-size: calc((17px) * var(--fs, 1));
    font-weight: 700;
}

.selected-dates-note.has-selection {
    border-color: var(--hl-green);
    background: #e7f5d8;
    color: #2f5d12;
}

.group-form-columns {
    display: grid;
    /* 依設計圖比例：左欄略寬於右欄（≈1.2:1）；用 fr 比例不會溢出，間距隨寬度收斂 */
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: clamp(36px, 12vw, 280px);
    align-items: start;
}

.group-application-form.course-form label {
    grid-template-columns: 150px minmax(0, 1fr);
    gap: 15px;
    margin-bottom: 6px;
    color: var(--hl-title);
    font-size: calc((20px) * var(--fs, 1));
    line-height: 1.2;
}

.group-application-form.course-form label > span:first-child {
    text-align: right;
}

.group-application-form.course-form input,
.group-application-form.course-form select {
    width: 100%;
    height: 34px;
    border: 1px solid #9a8f88;
    border-radius: 3px;
    background: #fff;
}

.group-application-form.course-form .compact-input input {
    width: 215px;
}

.group-application-form fieldset {
    /* @foreach 產生的 <label> 之間無空白，inline-flex 標籤無換行斷點會溢出撞右欄；
       改用 flex-wrap 容器強制換行，min-width:0 讓 fieldset 收縮到欄寬 */
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 3px 7px;
    margin: 6px 0 9px;
    min-width: 0;
}

.group-application-form legend {
    float: none;
    width: auto;
    margin: 0 0 3px;
    color: var(--hl-title);
    font-size: calc((20px) * var(--fs, 1));
    line-height: 1.2;
}

.group-application-form.course-form fieldset label {
    display: inline-flex;
    align-items: center;
    grid-template-columns: none;
    width: auto;
    gap: 4px;
    margin: 0;
    font-size: calc((18px) * var(--fs, 1));
}

.group-application-form.course-form fieldset input[type="checkbox"],
.group-application-form.course-form fieldset input[type="radio"] {
    flex: 0 0 16px;
    width: 16px;
    height: 16px;
}

/* fieldset 內的文字／數字輸入框（餐點製備「其他」、長者健康情形）需為正常輸入框，
   不可被上方勾選方塊規則縮成 16px */
.group-application-form.course-form fieldset input[type="number"] {
    flex: 0 0 auto;
    width: 64px;
    height: 30px;
}

.group-application-form.course-form fieldset input.inline-other {
    flex: 0 0 auto;
    width: 150px;
    height: 30px;
}

.group-application-form.course-form .course-options label {
    display: flex;
    width: 100%;
    margin-bottom: 12px;
}

.group-form-actions {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 18px;
}

.group-application-form .group-form-actions button {
    min-width: 110px;
    font-size: calc((18px) * var(--fs, 1));
    background: #8b8b8b;
}

.group-application-form .group-form-actions button[type="submit"] {
    background: #6db21b;
}

.group-education-page {
    padding-bottom: 111px;
}

.training-category-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: -12px 0 24px;
}

.training-category-nav a {
    padding: 0 48px;
    color: var(--hl-green);
    border-right: 1px solid var(--hl-green);
    font-size: calc((17px) * var(--fs, 1));
}

.training-category-nav a:last-child {
    border-right: 0;
}

.training-audience-switch {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin: -24px auto 22px;
}

.training-audience-switch a {
    min-width: 104px;
    padding: 7px 20px;
    color: #fff;
    border-radius: 3px;
    background: #ed7d0c;
    text-align: center;
    font-size: calc((15px) * var(--fs, 1));
    font-weight: 700;
}

.training-audience-switch a:not(.is-active) {
    background: #f5a13c;
}

.training-band {
    margin: 0;
    padding: 7px 15px;
    color: #fff;
    background: #009e99;
    text-align: center;
    font-size: calc((17px) * var(--fs, 1));
    font-weight: 700;
}

.training-period {
    margin: 12px 0 18px;
    color: #009e99;
    text-align: center;
    font-size: calc((16px) * var(--fs, 1));
    font-weight: 700;
}

.training-view-switch {
    display: inline-flex;
    gap: 4px;
    margin: 0 0 40px;
    padding: 4px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.training-view-switch-list {
    margin-bottom: 45px;
}

.training-view-switch button {
    display: inline-flex;
    align-items: center;
    padding: 6px 16px;
    color: #7a8085;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: calc((13px) * var(--fs, 1));
    font-weight: 700;
    line-height: 1;
    cursor: pointer;
}

.training-view-switch button.is-active {
    color: #fff;
    background: #0b99ef;
}

.training-view-switch i {
    margin-right: 5px;
}

.station-month {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 14px;
    margin-bottom: 22px;
    align-items: start;
}

.station-month > b {
    display: flex;
    min-height: 74px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 4px;
    background: #129fba;
    font-size: calc((20px) * var(--fs, 1));
}

.station-month-orange > b {
    background: #ee9632;
}

.station-month-green > b {
    background: #89ae39;
}

.station-month-brown > b {
    background: #a96a38;
}

.station-month table {
    width: 100%;
    border-collapse: collapse;
    color: var(--hl-title);
    text-align: center;
    font-size: calc((14px) * var(--fs, 1));
}

.station-month th {
    padding: 10px 7px;
    color: #fff;
    background: #5d7e9d;
}

.station-month td {
    padding: 9px 6px;
    background: #edf3f6;
}

.station-month tr:nth-child(even) td {
    background: #dfe8ed;
}

.station-month .training-status.is-open {
    color: #ce3e3d;
    font-weight: 700;
}

.station-month .training-status.is-closed {
    color: #5a493f;
}

.station-course-list {
    margin-bottom: 45px;
}

.medical-course-rows {
    margin-bottom: 118px;
}

.medical-course-row {
    display: grid;
    grid-template-columns: 68px minmax(0, 1fr);
    gap: 46px;
    margin-bottom: 94px;
    align-items: start;
}

.medical-month {
    display: flex;
    min-height: 74px;
    padding: 8px;
    align-items: center;
    justify-content: center;
    color: #fff;
    border-radius: 4px;
    background: #129fba;
    font-size: calc((20px) * var(--fs, 1));
}

.medical-month-orange {
    background: #ee9632;
}

.medical-month-green {
    background: #89ae39;
}

.medical-month-brown {
    background: #a96a38;
}

.medical-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 30px;
}

.medical-course-card {
    background: transparent;
}

/* 插圖＋綠色標題列＝獨立卡面：藍灰外框、四角圓角，hover 只浮這塊 */
.medical-course-figure {
    overflow: hidden;
    border: 1px solid #5d7e9d;
    border-radius: 8px;
    background: #fff;
}

.medical-course-figure > img {
    display: block;
    width: 100%;
    height: auto;
}

.medical-course-figure > h3 {
    margin: 0;
    padding: 7px 9px;
    color: #fff;
    background: var(--hl-green);
    text-align: center;
    font-size: calc((15px) * var(--fs, 1));
    line-height: 1.2;
}

/* 兩顆膠囊列：背景透明，位於卡面之外 */
.medical-course-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding-top: 10px;
    background: transparent;
}

.medical-course-card time,
.medical-course-card span,
.medical-course-card .medical-signup {
    display: block;
    padding: 5px 6px;
    border-radius: 999px;
    text-align: center;
    font-size: calc((13px) * var(--fs, 1));
    line-height: 1;
}

.medical-course-card time {
    color: var(--hl-title);
    background: #fed0ac;
}

.medical-course-card span {
    color: #fff;
    background: #ce3e3d;
}

.medical-course-card span.is-closed {
    background: #5a493f;
}

.medical-course-card .medical-signup {
    color: #fff;
    background: var(--hl-green);
}

.medical-course-card .medical-signup:hover,
.medical-course-card .medical-signup:focus-visible {
    background: #007a5e;
}

.training-other-section {
    margin-top: 50px;
}

.training-total {
    margin: -30px 0 28px;
    text-align: right;
    font-size: calc((14px) * var(--fs, 1));
}

.training-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 46px;
}

.training-list-card {
    display: grid;
    overflow: hidden;
    grid-template-columns: 313px 1fr;
    min-height: 215px;
    border: 1px solid #969696;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .12);
}

.training-list-card > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.training-list-card > div {
    padding: 38px 38px 12px;
}

.training-list-card h3 {
    margin: 0 0 8px;
    font-size: calc((20px) * var(--fs, 1));
    font-weight: 700;
}

.training-list-card p {
    margin: 0 0 4px;
    font-size: calc((16px) * var(--fs, 1));
    line-height: 1.55;
}

.training-list-card a {
    display: table;
    margin: 8px auto 0;
    padding: 5px 16px;
    color: #726760;
    border: 1px solid #969696;
    border-radius: 4px;
    font-size: calc((15px) * var(--fs, 1));
}

.training-list-card a:hover,
.training-list-card a:focus-visible {
    color: #fff;
    background: var(--hl-green);
    border-color: var(--hl-green);
}

.training-page {
    padding-bottom: 118px;
}

.training-detail-content > h1 {
    margin: 62px 0 24px;
    color: var(--hl-title);
    font-size: calc((20px) * var(--fs, 1));
    font-weight: 700;
}

.training-detail-poster {
    display: block;
    width: min(1240px, 100%);
    height: auto;
}

.training-detail-content > h2 {
    margin: 24px 0 12px;
    color: #c51f2b;
    font-size: calc((17px) * var(--fs, 1));
    font-weight: 700;
}

.training-detail-schedule {
    display: block;
    width: min(834px, 100%);
    height: auto;
    margin-bottom: 47px;
}

.training-detail-content > div {
    color: var(--hl-title);
    font-size: calc((24px) * var(--fs, 1));
    line-height: 1.7;
}

.training-detail-content > div p {
    margin: 0 0 4px;
}

.training-detail-content > div p:last-child {
    margin-top: 38px;
}

.training-detail-content > .btn-orange {
    /* 用 flex 而非 table：table 會蓋掉共用按鈕的 align-items/justify-content，
       文字會貼在 32px 方塊的上緣（上 -3px、下留白 15px）。flex 一樣能用 auto margin 置中。 */
    display: flex;
    min-width: 145px;
    margin: 166px auto 0;
    text-align: center;
}

.course-detail-training {
    padding-bottom: 68px;
}

.course-category-list > section + section {
    margin-top: 34px;
}

.course-category-list > section > h2,
.resource-group > h2 {
    margin: 0 0 18px;
    padding: 8px 16px;
    color: #fff;
    background: #008c78;
    font-size: calc((17px) * var(--fs, 1));
}

.training-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.training-card {
    display: grid;
    grid-template-columns: 44% 1fr;
    overflow: hidden;
    border: 1px solid #969696;
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 3px 7px rgba(0, 0, 0, .14);
}

.training-card > img {
    width: 100%;
    height: 100%;
    min-height: 138px;
    object-fit: cover;
}

.training-card > div {
    padding: 12px;
}

.training-card h3 {
    margin: 0 0 7px;
    color: var(--hl-title);
    font-size: calc((14px) * var(--fs, 1));
    font-weight: 700;
    line-height: 1.45;
}

.training-card p {
    margin: 0 0 8px;
    font-size: calc((12px) * var(--fs, 1));
    line-height: 1.55;
}

.training-card a {
    display: inline-block;
    padding: 5px 11px;
    color: #fff;
    border-radius: 4px;
    background: var(--hl-green);
    font-size: calc((12px) * var(--fs, 1));
}

.online-course-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 28px 42px;
}

.online-course-card {
    text-align: center;
}

.online-course-link {
    display: block;
    overflow: hidden;
    border: 1px solid #969696;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 3px 5px rgba(0, 0, 0, .18);
}

.online-course-card img {
    display: block;
    width: calc(100% - 28px);
    aspect-ratio: 16 / 9;
    margin: 14px;
    margin-bottom: 0;
    object-fit: cover;
}

.online-course-card h2 {
    min-height: 58px;
    margin: 0;
    padding: 15px 12px 12px;
    color: #6b5f58;
    font-size: calc((19px) * var(--fs, 1));
    font-weight: 500;
    line-height: 1.45;
}

.online-course-card span {
    display: block;
    padding: 12px;
    color: #675b54;
    background: #e8ecc9;
    font-size: calc((17px) * var(--fs, 1));
    line-height: 1.35;
}

.online-course-count {
    margin: -30px 0 20px;
    color: var(--hl-title);
    text-align: right;
    font-size: calc((17px) * var(--fs, 1));
}

.online-course-page {
    padding-bottom: 164px;
}

.online-course-page .inner-heading {
    padding-top: 44px;
}

.course-detail-image {
    display: block;
    width: min(620px, 100%);
    margin: 28px auto;
}

.course-detail-online {
    padding-bottom: 74px;
}

.online-detail-content > h1 {
    margin: 0 0 22px;
    color: #6b5f58;
    font-size: calc((24px) * var(--fs, 1));
    font-weight: 700;
    line-height: 1.4;
}

.online-detail-video {
    display: block;
    width: min(1440px, 100%);
    aspect-ratio: 16 / 9;
    border-radius: 14px;
    object-fit: cover;
}

.online-detail-notice {
    margin-top: 30px;
    color: #59493f;
    font-size: calc((18px) * var(--fs, 1));
    line-height: 1.75;
}

.online-detail-notice p {
    margin: 0;
}

.online-detail-notice p:first-child {
    margin-bottom: 2px;
    color: #f28445;
}

.online-detail-notice strong {
    font-size: calc((22px) * var(--fs, 1));
}

.online-detail-back {
    display: block;
    width: 150px;
    margin: 80px auto 0;
    padding: 10px 18px;
    color: #fff;
    border-radius: 7px;
    background: #00984b;
    text-align: center;
    font-size: calc((18px) * var(--fs, 1));
}

.course-login-overlay {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 120;
    display: flex;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: flex-start;
    padding: 834px 20px 20px;
    background: rgba(40, 40, 40, .9);
}

.is-inner-page:has(.course-login-overlay) {
    position: relative;
}

.course-login-modal {
    width: min(710px, 100%);
    min-height: 538px;
    padding: 32px 55px 35px;
    color: #59493f;
    border-radius: 16px;
    background: #fdf8f4;
    transform: translateX(-10px);
}

.course-login-modal h2 {
    margin: 0 0 20px;
    text-align: center;
    font-size: calc((19px) * var(--fs, 1));
    font-weight: 500;
    letter-spacing: .04em;
}

.course-login-modal .course-login-required {
    margin: 0 0 12px;
    color: #ff8038;
    font-size: calc((16px) * var(--fs, 1));
}

.course-login-fields label {
    display: grid;
    /* 標籤欄以 em 計：最長的「*據點/單位：」約 6 字，字級放大（--fs）時才不會擠出換行 */
    grid-template-columns: 6.4em 1fr;
    align-items: center;
    margin-bottom: 6px;
    font-size: calc((18px) * var(--fs, 1));
}

.course-login-fields input {
    width: min(449px, 100%);
}

.course-login-fields label > span {
    text-align: right;
}

.course-login-fields b {
    color: #ff8038;
    font-weight: 500;
}

.course-login-modal input {
    height: 35px;
    padding: 4px 8px;
    border: 1px solid #9a8f88;
    border-radius: 5px;
    background: #fff;
}

.course-login-modal p {
    margin-bottom: 14px;
    font-size: calc((16px) * var(--fs, 1));
    line-height: 1.55;
}

.course-login-note {
    padding-left: 94px;
}

.course-login-warning {
    color: #ff8038;
}

.course-login-check {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin-bottom: 10px;
    font-size: calc((16px) * var(--fs, 1));
    line-height: 1.5;
}

.course-login-check input {
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
    margin-top: 3px;
    padding: 0;
    border-radius: 0;
}

.course-login-actions {
    display: flex;
    justify-content: center;
    gap: 26px;
    margin-top: 44px;
}

.online-modal-backdrop-back {
    position: fixed;
    top: 1418px;
    left: 50%;
    z-index: 119;
    min-width: 150px;
    padding: 10px 18px;
    color: #fff;
    border-radius: 8px;
    background: #f49932;
    text-align: center;
    font-size: calc((18px) * var(--fs, 1));
    transform: translateX(-50%);
}

.course-login-actions button {
    min-width: 145px;
    padding: 10px 18px;
    color: #fff;
    border: 0;
    border-radius: 10px;
    background: #8b8b8b;
    text-align: center;
    font-size: calc((18px) * var(--fs, 1));
    line-height: 1.2;
}

.course-login-actions button[type="submit"] {
    background: #6db21b;
}

/* Resources */
.resource-category-nav {
    display: flex;
    justify-content: center;
    gap: 0;
    margin: -4px 0 16px;
}

.resource-category-nav a {
    min-width: 180px;
    padding: 0 42px;
    color: #00984b;
    border-right: 1px solid #00984b;
    text-align: center;
    font-size: calc((20px) * var(--fs, 1));
    line-height: 1.25;
}

.resource-category-nav a:last-child {
    border-right: 0;
}

.education-resource-section {
    margin-bottom: 28px;
    scroll-margin-top: 80px;
}

.education-resource-section > .inner-section-title {
    margin: 0 0 35px;
}

.education-resource-row {
    position: relative;
    margin-bottom: 27px;
}

.education-resource-row > h3 {
    margin: 0 0 47px;
    padding: 9px 20px;
    color: #fff;
    border-radius: 6px;
    background: #0ca09d;
    text-align: center;
    font-size: calc((22px) * var(--fs, 1));
    font-weight: 500;
}

.education-resource-count {
    position: absolute;
    top: 54px;
    right: 0;
    margin: 0;
    color: #594c44;
    font-size: calc((16px) * var(--fs, 1));
}

.resource-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 19px 22px;
}

.resource-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    overflow: hidden;
    height: 222px;
    border: 1px solid #969696;
    border-radius: 14px;
    background: linear-gradient(180deg, #fefff6 0%, #fef5dd 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, .14);
}

.resource-card > img {
    width: 300px;
    height: 194px;
    margin: 10px;
    border-radius: 12px;
    object-fit: cover;
}

.resource-card-body {
    position: relative;
    min-height: 220px;
    padding: 56px 20px 42px 20px;
}

.resource-card-body > span {
    position: absolute;
    top: 10px;
    right: 10px;
    left: 0;
    padding: 5px 12px;
    color: #fff;
    border-radius: 18px;
    background: #8cc23b;
    text-align: center;
    font-size: calc((16px) * var(--fs, 1));
}

.education-resource-row-manual .resource-card-body > span {
    background: #f9b65d;
}

.resource-card h4 {
    margin: 0 0 5px;
    color: #594c44;
    font-size: calc((18px) * var(--fs, 1));
    font-weight: 500;
}

.resource-card p {
    margin: 0;
    color: #726760;
    font-size: calc((16px) * var(--fs, 1));
    line-height: 1.45;
}

.resource-card time {
    position: absolute;
    bottom: 17px;
    left: 20px;
    color: #726760;
    font-size: calc((14px) * var(--fs, 1));
}

.resource-card a {
    position: absolute;
    right: 20px;
    bottom: 14px;
    padding: 7px 20px;
    color: #fff;
    border-radius: 999px;
    background: #8cc23b;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
    font-size: calc((15px) * var(--fs, 1));
}

.education-resource-row-manual .resource-card a {
    background: #fab65c;
}

.education-resource-page {
    padding-bottom: 65px;
}

.education-resource-page .inner-heading,
.external-course-page .inner-heading,
.external-resource-page .inner-heading,
.course-detail-external .inner-heading {
    padding-top: 44px;
}

.external-course-count,
.external-resource-count {
    margin: -30px 0 22px;
    color: #594c44;
    text-align: right;
    font-size: calc((17px) * var(--fs, 1));
}

.external-course-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 54px;
}

.external-course-grid .training-card {
    grid-template-columns: 313px 1fr;
    min-height: 218px;
    border-radius: 16px;
    box-shadow: none;
}

.external-course-grid .training-card > img {
    width: 313px;
    height: 100%;
}

.external-course-grid .training-card > div {
    padding: 38px 38px 12px;
}

.external-course-grid .training-card h3 {
    margin-bottom: 8px;
    color: #594c44;
    font-size: calc((20px) * var(--fs, 1));
}

.external-course-grid .training-card p {
    color: #726760;
    font-size: calc((16px) * var(--fs, 1));
    line-height: 1.55;
}

.external-course-grid .training-card a {
    display: block;
    width: max-content;
    margin: 8px auto 0;
    padding: 5px 16px;
    color: #594c44;
    border: 1px solid #969696;
    background: #fff;
    font-size: calc((15px) * var(--fs, 1));
}

.external-course-grid .training-card a:hover,
.external-course-grid .training-card a:focus-visible {
    color: #fff;
    background: var(--hl-green);
    border-color: var(--hl-green);
}

.external-course-page {
    padding-bottom: 92px;
}

.course-detail-external {
    padding-bottom: 47px;
}

.course-detail-external .inner-section-title {
    margin-bottom: 50px;
}

.external-detail-content > h1 {
    margin: -20px 0 24px;
}

.external-detail-content .training-detail-schedule {
    margin-bottom: 30px;
}

.external-detail-content > div {
    font-size: calc((16px) * var(--fs, 1));
    line-height: 1.85;
}

.external-detail-content > div p {
    margin: 0 0 8px;
}

.external-detail-content > div p:last-child {
    margin-top: 0;
}

.external-detail-content > .btn-orange {
    margin-top: 253px;
}

.external-resource-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 26px;
}

.external-resource-card {
    display: grid;
    grid-template-columns: 320px 1fr;
    position: relative;
    overflow: hidden;
    min-height: 218px;
    padding: 10px;
    border: 1px solid #969696;
    border-radius: 14px;
    background: linear-gradient(180deg, #fefff6 0%, #fef5dd 100%);
    box-shadow: 0 3px 6px rgba(0, 0, 0, .14);
}

.external-resource-card img {
    width: 300px;
    height: 194px;
    border-radius: 12px;
    object-fit: cover;
}

.external-resource-card > div {
    position: relative;
    padding: 18px 20px 42px;
}

.external-resource-card h2 {
    margin: 0 0 10px;
    color: #594c44;
    font-size: calc((18px) * var(--fs, 1));
    font-weight: 500;
}

.external-resource-card p {
    margin: 0;
    color: #726760;
    font-size: calc((16px) * var(--fs, 1));
}

.external-resource-card time {
    position: absolute;
    bottom: 0;
    left: 20px;
    color: #726760;
    font-size: calc((14px) * var(--fs, 1));
}

.external-resource-card > span {
    position: absolute;
    right: 20px;
    bottom: 20px;
    padding: 7px 20px;
    color: #fff;
    border-radius: 999px;
    background: #fab65c;
    box-shadow: 0 2px 5px rgba(0, 0, 0, .18);
    font-size: calc((15px) * var(--fs, 1));
}

.external-resource-page {
    padding-bottom: 64px;
}

@media (min-width: 992px) {
    .group-form-column:first-child fieldset {
        width: 100%;
    }

    .group-form-column:first-child fieldset:first-of-type {
        margin-top: 10px;
        margin-bottom: 21px;
    }

    .group-form-column:first-child fieldset:not(:first-of-type) {
        margin-top: 10px;
        margin-bottom: 13px;
    }

    .group-form-column:first-child fieldset:not(:first-of-type) legend {
        float: left;
        margin-right: 8px;
    }

    .personnel-page {
        padding-bottom: 72px;
    }

    .personnel-page .inner-heading + .inner-section-title {
        margin-top: 26px;
    }

    .personnel-page .about-intro {
        margin-bottom: 41px;
    }

    .personnel-page .team-photo {
        width: min(850px, 100%);
        margin-top: 41px;
        margin-bottom: 57px;
    }

    .intro-section {
        padding-bottom: 62px;
    }

    .intro-grid .section-title {
        max-width: 986px;
    }

    .news-course-section {
        padding-bottom: 72px;
    }

    .news-course-section .section-title-line {
        margin-bottom: 37px;
    }

    .news-body {
        padding-bottom: 46px;
    }

    .is-home-page .section-title h2 {
        font-size: calc((20px) * var(--fs, 1));
    }

    .intro-copy {
        font-size: calc((16px) * var(--fs, 1));
    }

    .news-card {
        height: 538px;
    }

    .news-body h3,
    .course-body h3,
    .album-card h3 {
        font-size: calc((18px) * var(--fs, 1));
    }

    .news-body p,
    .course-body p {
        font-size: calc((16px) * var(--fs, 1));
    }

    .album-lead,
    .is-home-page .btn-main,
    .is-home-page .btn-light-green,
    .is-home-page .btn-orange,
    .is-home-page .btn-course,
    .is-home-page .btn-pink {
        font-size: calc((16px) * var(--fs, 1));
    }

    .album-grid {
        display: flex;
        gap: 53px;
        margin-right: 0;
        margin-left: 0;
    }

    .album-grid > [class*="col"] {
        flex: 0 0 calc((100% - 106px) / 3);
        width: calc((100% - 106px) / 3);
        padding: 0;
    }

    .album-section {
        padding-bottom: 39px;
    }

    .site-footer .footer-info p {
        font-size: calc((18px) * var(--fs, 1));
    }
}

@media (max-width: 1199.98px) {
    .training-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .external-course-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .group-application-form.course-form {
        padding-right: 38px;
        padding-left: 38px;
    }

    .group-form-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 40px;
    }
}

@media (max-width: 991.98px) {
    /* 飲食地圖欄數比照運動地圖（20261109 問題彙整第 5 點）：窄欄會把店家名稱擠成直排 */
    .map-card-grid,
    .food-map-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .online-course-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .online-course-page {
        padding-bottom: 100px;
    }

    .training-list-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }
}

@media (max-width: 767.98px) {
    .map-card-grid,
    .training-grid,
    .online-course-grid,
    .resource-card-grid,
    .external-resource-grid {
        grid-template-columns: 1fr;
    }

    .sport-map-page {
        padding-bottom: 44px;
    }

    .map-card-locations {
        min-height: 0;
    }

    .map-detail-grid,
    .food-detail-top {
        grid-template-columns: 1fr;
    }

    .online-detail-content > h1 {
        font-size: calc((20px) * var(--fs, 1));
    }

    .online-detail-video {
        border-radius: 8px;
    }

    .online-detail-notice {
        font-size: calc((15px) * var(--fs, 1));
    }

    .online-detail-notice strong {
        font-size: calc((18px) * var(--fs, 1));
    }

    .online-detail-back {
        margin-top: 48px;
    }

    .food-map-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .course-form {
        padding: 22px 18px;
    }

    .course-form-grid {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .group-calendar {
        width: 100%;
        overflow-x: auto;
        padding-bottom: 8px;
    }

    .calendar-toolbar,
    .calendar-weekdays,
    .calendar-days {
        min-width: 700px;
    }

    .group-application-form.course-form {
        margin-top: 82px;
        padding: 52px 20px 30px;
    }

    .group-application-form.course-form > h2 {
        width: max-content;
        max-width: calc(100% - 24px);
        padding: 7px 12px;
        font-size: calc((18px) * var(--fs, 1));
    }

    .group-form-columns {
        grid-template-columns: 1fr;
        gap: 24px;
        height: auto;
    }

    .group-application-form.course-form label {
        grid-template-columns: 132px minmax(0, 1fr);
        font-size: calc((16px) * var(--fs, 1));
    }

    .group-application-form.course-form .compact-input input {
        width: 100%;
    }

    .group-application-form legend {
        font-size: calc((16px) * var(--fs, 1));
    }

    .group-application-form.course-form fieldset label {
        font-size: calc((15px) * var(--fs, 1));
    }

    .resource-card {
        grid-template-columns: 170px 1fr;
    }

    .resource-card > img {
        width: 150px;
        height: 110px;
    }

    .external-resource-card {
        grid-template-columns: 170px 1fr;
    }

    .external-resource-card img {
        width: 150px;
        height: 110px;
    }

    .resource-category-nav {
        overflow-x: auto;
        justify-content: flex-start;
        margin-inline: -20px;
        padding: 0 20px 8px;
    }

    .resource-category-nav a {
        flex: 0 0 auto;
        min-width: 110px;
        padding: 0 18px;
        font-size: calc((16px) * var(--fs, 1));
    }

    /* 培訓課程與飲食地圖的分類導覽原本只有桌機樣式（左右 padding 48/56px），
       窄螢幕下 flex 項目被壓縮，文字被擠成一字一行（實測 360px 時項目高度
       119px / 130px，單行僅 30px / 22px）。比照上方衛教資源的做法改為
       可水平捲動、項目不收縮。 */
    .training-category-nav,
    .food-category-nav {
        overflow-x: auto;
        justify-content: flex-start;
        margin-inline: -20px;
        padding: 0 20px 8px;
    }

    .training-category-nav a,
    .food-category-nav a {
        flex: 0 0 auto;
        min-width: 110px;
        padding: 0 18px;
        text-align: center;
        font-size: calc((16px) * var(--fs, 1));
    }

    .education-resource-row > h3 {
        font-size: calc((18px) * var(--fs, 1));
    }

    .external-course-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .external-course-grid .training-card {
        grid-template-columns: 42% 1fr;
    }

    .external-course-grid .training-card > img {
        width: 100%;
        height: 100%;
    }

    .external-course-grid .training-card > div {
        padding: 20px 16px;
    }
}

@media (max-width: 575.98px) {
    .training-card,
    .resource-card {
        grid-template-columns: 1fr;
    }

    .training-list-card {
        grid-template-columns: 1fr;
        height: auto;
        min-height: 0;
    }

    .training-list-card > img {
        width: 100%;
        height: auto;
    }

    .training-list-card > div {
        padding: 20px;
    }

    .training-card > img,
    .resource-card > img {
        width: 100%;
        height: auto;
    }

    .resource-card > img,
    .external-resource-card img {
        width: calc(100% - 20px);
        height: auto;
    }

    .resource-card-body {
        min-height: 198px;
    }

    .external-resource-card {
        grid-template-columns: 1fr;
    }

    .external-resource-card > div {
        min-height: 130px;
    }

    .course-form label {
        grid-template-columns: 1fr;
    }

    .course-login-modal {
        min-height: 0;
        padding: 24px 20px 26px;
        transform: none;
    }

    .course-login-overlay {
        position: fixed;
        inset: 0;
        width: auto;
        height: auto;
        align-items: center;
        padding: 20px;
    }

    .course-login-modal h2 {
        font-size: calc((16px) * var(--fs, 1));
    }

    .course-login-fields label {
        grid-template-columns: 6.4em 1fr;
        font-size: calc((15px) * var(--fs, 1));
    }

    .online-modal-backdrop-back {
        display: none;
    }

    .course-login-note {
        padding-left: 0;
    }

    .course-login-modal p,
    .course-login-check {
        font-size: calc((14px) * var(--fs, 1));
    }

    .course-login-actions {
        gap: 12px;
        margin-top: 24px;
    }

    .course-login-actions button {
        min-width: 118px;
        font-size: calc((16px) * var(--fs, 1));
    }
}

/* === Roll-in / hover interaction states (設計圖 roll-in 標註元素) === */
.btn-main,
.btn-light-green,
.btn-orange,
.btn-orange-dark,
.btn-pink,
.btn-pink-strong,
.btn-pink-dark {
    transition: filter .2s ease, transform .2s ease, box-shadow .2s ease;
}

.btn-main:hover,
.btn-main:focus-visible,
.btn-light-green:hover,
.btn-light-green:focus-visible,
.btn-orange:hover,
.btn-orange:focus-visible,
.btn-orange-dark:hover,
.btn-orange-dark:focus-visible,
.btn-pink:hover,
.btn-pink:focus-visible,
.btn-pink-strong:hover,
.btn-pink-strong:focus-visible,
.btn-pink-dark:hover,
.btn-pink-dark:focus-visible {
    filter: brightness(.94);
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .18);
}

/* 有完整卡面（背景＋邊框＋陰影）的卡片：整張卡視為單一元素，整塊浮起 */
.news-card,
.course-card,
.post-card,
.map-card,
.external-resource-card,
.resource-card,
.training-card,
.training-list-card {
    transition: transform .25s ease, box-shadow .25s ease;
}

.news-card:hover,
.course-card:hover,
.post-card:hover,
.map-card:hover,
.external-resource-card:hover,
.resource-card:hover,
.training-card:hover,
.training-list-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

/* 外層 card 無卡面、卡面在內層影像框者：hover 只浮起該影像框本身，
   避免連帶把框外鬆散文字/按鈕一起位移（依單一元素為主） */
.video-frame,
.album-card a,
.online-course-link,
.medical-course-figure {
    transition: transform .25s ease, box-shadow .25s ease;
}

.video-frame:hover,
.album-card a:hover,
.online-course-link:hover,
.medical-course-figure:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .18);
}

.share-row a,
.footer-social a,
.mobile-social a {
    display: inline-flex;
    transition: transform .2s ease, filter .2s ease;
}

.share-row a:hover,
.share-row a:focus-visible,
.footer-social a:hover,
.footer-social a:focus-visible,
.mobile-social a:hover,
.mobile-social a:focus-visible {
    transform: translateY(-2px);
    filter: brightness(1.1);
}

/* 文字調整：大中小三鈕視覺區分 + 啟用狀態（字級工具本身固定大小，不隨 --fs 縮放） */
.font-btn[data-size="lg"] { font-size: 22px; }
.font-btn[data-size="md"] { font-size: 17px; }
.font-btn[data-size="sm"] { font-size: 13px; }
.font-btn { opacity: .55; transition: opacity .15s, box-shadow .15s; }
.font-btn.is-active { opacity: 1; box-shadow: 0 0 0 2px rgba(0,0,0,.18) inset; }
.font-btn:hover { opacity: 1; }

/* ── 手機版：標題下方以負 margin 上拉的元素重疊修正 ────────────────────
   桌機以 margin-top:-30px 把計數拉到標題同一行的右側（.inner-section-title
   的 margin-bottom 為 42px，42-30=+12px 不會撞）。但 ≤767.98px 時該 margin-bottom
   降為 22px，22-30=-8px，計數會壓在標題的綠色底線上。
   這些 count 類別多數定義在本檔較後段（.map-count 2075、.training-total 3261、
   .online-course-count 3489、.external-*-count 3856…），若把修正寫在前面會被它們的
   margin 簡寫覆蓋，故統一放在檔末。
   .education-resource-count 用絕對定位，不受此問題影響，未列入。 */
@media (max-width: 767.98px) {
    .map-count,
    .food-group-count,
    .post-count,
    .external-course-count,
    .external-resource-count,
    .online-course-count,
    .album-count,
    .training-total {
        margin-top: 0;
    }

    /* 據點人員／醫事人員切換鈕同樣以 margin-top:-24px 上拉（42-24=+18px 桌機沒事），
       ≤767.98px 時 22-24=-2px 會貼上標題底線。 */
    .training-audience-switch {
        margin-top: 0;
    }
}

/* ── 手機版溢出修正（headless 全站掃描 320~1920px 找出，僅發生於 ≤414px）────────
   1) 運動／飲食地圖詳情頁的主圖與其 grid 欄寬寫死 536px（2190/2202/2452/2465），
      而 767.98px 區塊的 .map-detail-grid{grid-template-columns:1fr} 特異度較低
      （0,1,0 vs 0,2,0）蓋不過，導致 320~414px 時圖片右緣到 556px。
   2) .medical-course-* 整組沒有任何手機樣式：月份欄固定 68px＋課程 3 欄網格從不收合，
      內層 .medical-course-meta 的日期／報名鈕被擠到視窗外。
   置於檔末以確保勝過前述頁面層級規則。 */
@media (max-width: 767.98px) {
    .sport-detail-page .map-detail-grid,
    .food-detail-page .food-detail-top {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .sport-detail-page .map-detail-grid > img,
    .food-detail-page .food-detail-top > img {
        width: 100%;
    }

    .medical-course-row {
        grid-template-columns: 1fr;
        gap: 16px;
        margin-bottom: 48px;
    }

    .medical-course-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .medical-course-rows {
        margin-bottom: 56px;
    }
}

/* ── 寫死寬度撐破容器的修正（全站掃描 320~1920px 找出）───────────────────
   1) .header-search input 桌機寫死 590px（≤1199.98px 才降為 390px），加上按鈕與間距
      共 694px，超過 col-lg-7 的欄寬，而 .header-tools 是 align-items:flex-end，
      多出來的寬度往左溢出撞到 logo（實測 1200px 重疊 98px、1280px 重疊 37px）。
      改為可收縮：欄寬夠時仍是 590px，不夠就自動縮，不再依賴特定斷點。
   2) .compact-input input 寫死 215px，但它位於 label 的 grid 第二欄（minmax(0,1fr)），
      768~1024px 時欄寬不足 215px 而撐出父層（實測超出 76px）。加 max-width 上限。 */
.header-search {
    /* 填滿欄寬，輸入框才會以 590px 為基準；否則表單縮成內容寬，輸入框跟著塌 */
    width: 100%;
    max-width: 100%;
    justify-content: flex-end;
}

.header-search input {
    flex: 0 1 590px;
    width: auto;
    min-width: 0;
}

.group-application-form.course-form .compact-input input {
    max-width: 100%;
}

/* ── 團衛選課：據點年度額度提示與已報名日期標示 ────────────────────────
   文件 A/B/C：滿3年可選當年度2堂、未滿3年1堂、同一日不可重複、跨年歸零。
   前台在點選當下就提示，不必送出才被退回。 */
.station-quota-note {
    margin: -4px 0 14px;
    padding: 9px 14px;
    border: 1px solid #a9c7e6;
    border-radius: 6px;
    background: #eef5fc;
    color: #2f5f8f;
    font-size: calc((17px) * var(--fs, 1));
    font-weight: 700;
}

.station-quota-note.is-full {
    border-color: #e0b48c;
    background: #fdf3e8;
    color: #97591f;
}

/* 該據點已報名過的日期：淡化並改為不可點的游標 */
.calendar-days button.is-booked {
    cursor: not-allowed;
    opacity: .45;
}

.calendar-days button.is-booked::after {
    position: absolute;
    right: 6px;
    bottom: 6px;
    content: '已報名';
    color: #97591f;
    font-size: calc((11px) * var(--fs, 1));
}

/* ===== 成果花絮相簿內頁 ===== */
.album-detail-article {
    width: 100%;
}

.album-detail-article > h1 {
    margin: 0 0 10px;
    color: var(--hl-title);
    font-size: calc((24px) * var(--fs, 1));
    font-weight: 700;
    line-height: 1.5;
}

.album-detail-date {
    display: block;
    margin-bottom: 18px;
    color: #817d6b;
    font-size: calc((14px) * var(--fs, 1));
}

.album-detail-content {
    margin-bottom: 30px;
    font-size: calc((18px) * var(--fs, 1));
    line-height: 1.9;
}

.album-detail-content p {
    margin: 0 0 20px;
}

.album-detail-content img {
    max-width: 100%;
    height: auto;
}

.album-gallery {
    margin-bottom: 10px;
}

/* 主圖用 contain 不裁切：相簿照片橫幅直幅都有，裁切會切掉人頭 */
.album-main-swiper {
    border-radius: 8px;
    background: #f1efea;
}

.album-main-swiper .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 16 / 9;
}

.album-main-swiper .swiper-slide a {
    display: block;
    width: 100%;
    height: 100%;
    cursor: zoom-in;
}

.album-main-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.album-main-swiper .swiper-button-prev,
.album-main-swiper .swiper-button-next {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .85);
    color: var(--hl-green);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .15);
}

.album-main-swiper .swiper-button-prev::after,
.album-main-swiper .swiper-button-next::after {
    font-size: 18px;
    font-weight: 700;
}

.album-thumb-swiper {
    margin-top: 10px;
}

.album-thumb-swiper .swiper-slide {
    width: 120px;
    height: 80px;
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    opacity: .5;
    transition: opacity .2s;
}

.album-thumb-swiper .swiper-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.album-thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
    box-shadow: inset 0 0 0 3px var(--hl-green);
}

@media (max-width: 767.98px) {
    .album-main-swiper .swiper-slide {
        aspect-ratio: 4 / 3;
    }

    .album-main-swiper .swiper-button-prev,
    .album-main-swiper .swiper-button-next {
        width: 34px;
        height: 34px;
    }

    .album-main-swiper .swiper-button-prev::after,
    .album-main-swiper .swiper-button-next::after {
        font-size: 14px;
    }

    .album-thumb-swiper .swiper-slide {
        width: 88px;
        height: 62px;
    }
}

/* ── 團衛報名流程：先填資料再選日期 ──────────────────────────────────────
   表單搬到月曆上方，月曆因此需要自己的上緣間距（原本間距是靠表單的 margin-top）。 */
.group-education-page .group-calendar {
    margin-top: 46px;
}

.group-form-next {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.group-application-form .group-form-next button {
    min-width: 220px;
    padding: 9px 22px;
    color: #fff;
    border: 0;
    border-radius: 5px;
    background: #009e99;
    font-size: calc((18px) * var(--fs, 1));
    cursor: pointer;
}

.group-application-form .group-form-next button:hover {
    background: #00857f;
}

/* 自動捲到月曆時閃兩下，讓使用者知道畫面為什麼動了 */
.group-calendar.is-highlight {
    animation: geCalendarPulse 1.3s ease-out 2;
}

@keyframes geCalendarPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(0, 152, 75, 0); }
    50% { box-shadow: 0 0 0 4px rgba(0, 152, 75, .35); }
}

@media (prefers-reduced-motion: reduce) {
    .group-calendar.is-highlight {
        animation: none;
        outline: 3px solid rgba(0, 152, 75, .5);
    }
}

/* 未滿 30 天（或已跨年）的日期：看得到餘額但不可選，灰階要跟「未開放」區分得出來 */
.calendar-days button.is-too-soon {
    cursor: not-allowed;
}

.calendar-days button.is-too-soon > span {
    background: #b7d6c4;
    color: #f4f4f4;
    font-weight: 400;
}

.calendar-days button.is-too-soon time {
    opacity: .45;
}

/* 第二堂的最早可選日：框起來當起算點 */
.calendar-days button.is-earliest {
    box-shadow: inset 0 0 0 2px #d26c63;
}

.calendar-days button.is-earliest::after {
    position: absolute;
    left: 6px;
    bottom: 6px;
    content: '最早可選';
    color: #d26c63;
    font-size: calc((11px) * var(--fs, 1));
}

/* 選課完成 */
.selected-dates-note.is-complete {
    border-color: #2f7d32;
    background: #dff0d8;
    color: #1e5620;
}

/* 選滿日期後把使用者帶回送出鈕，閃兩下標示位置 */
.group-form-actions.is-highlight button[type="submit"] {
    animation: geSubmitPulse 1.3s ease-out 2;
}

@keyframes geSubmitPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(109, 178, 27, 0); }
    50% { box-shadow: 0 0 0 5px rgba(109, 178, 27, .45); }
}

@media (prefers-reduced-motion: reduce) {
    .group-form-actions.is-highlight button[type="submit"] {
        animation: none;
        outline: 3px solid rgba(109, 178, 27, .6);
    }
}

/* 團衛選課：送出被退回的原因（沿用 Bootstrap alert，字級跟著全站文字縮放走） */
.group-application-form .alert {
    margin-bottom: 14px;
    font-size: calc((17px) * var(--fs, 1));
}

@media (max-width: 767.98px) {
    /* 月曆窄螢幕要橫捲（.calendar-weekdays / .calendar-days 的 min-width:700px），
       但工具列不該跟著捲走：選完第一堂會自動翻到 30 天後的月份，月份標題若在
       畫面外，使用者只會看到日期忽然灰掉一片，不知道月份已經換了。 */
    .calendar-toolbar {
        position: sticky;
        left: 0;
        min-width: 0;
    }

    /* 工具列不再有 700px 可用，按鈕字會被擠成兩行 */
    .calendar-toolbar button,
    .calendar-toolbar > div a {
        min-width: 40px;
        padding: 0 9px;
        white-space: nowrap;
    }

    .calendar-toolbar > div button:last-child,
    .calendar-toolbar > div a:last-child {
        margin-left: 8px;
    }
}

/* 2026-09-30 問題彙整第 2 點：全站標題的英文小字隱藏（主選單、下拉選單、區段標題）。
   只用 CSS 隱藏、不刪 blade 與後台「英文小字」欄位，日後要恢復刪掉這段即可。
   放在檔尾：前面的 .sub-menu small／.section-title span 設了 display:block，同權重以後者為準。 */
.nav-item > a small,
.sub-menu small,
.section-title span {
    display: none;
}

/* 首頁按鈕文字改讀主選單名稱後，後台可能改成較長的名稱；原本的固定寬度會讓字溢出按鈕。
   改成「至少原寬度」：4 字名稱外觀不變，字多時按鈕自動加寬。只限首頁這兩排，內頁同款按鈕不動。
   手機版 .news-actions／.course-actions 已設 flex-wrap，按鈕變寬時會換列，不會撐破版面。 */
.news-actions .btn-orange,
.course-actions .btn-pink {
    width: auto;
    padding: 0 12px;
    white-space: nowrap;
}

.news-actions .btn-orange {
    min-width: 126px;
}

.course-actions .btn-pink {
    min-width: 108px;
}
