/* ============================================================
   layout-coordinator.css — 協調長子站 Layout
   調性：機關 / 工作小組、條理化、結構分區清楚
   特色：double-column (main + sidebar)、公文與課程突出
   ============================================================ */

/* ─── Header ──────────────────────────────────────────── */
.coord-topbar {
    background: var(--c-primary-dark);
    color: rgba(255, 255, 255, 0.85);
    font-size: 13px;
    padding: 8px 0;
    letter-spacing: 0.05em;
}
.coord-topbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.coord-topbar a { color: rgba(255, 255, 255, 0.9); }
.coord-topbar a:hover { color: var(--c-accent); }

.coord-header {
    background: var(--c-surface);
    border-bottom: 1px solid var(--c-line);
    padding: 20px 0 0;
}
.coord-header__row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 16px;
}
.coord-header__brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.coord-header__logo {
    width: 56px;
    height: 56px;
    background: var(--c-primary);
    color: var(--c-on-primary);
    border-radius: var(--r-card);
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--f-accent);
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 0.05em;
}
/* 品牌名對齊分會 header：中文名大、英文名小且同色（僅以大小分主次） */
.coord-header__names { min-width: 0; }
.coord-header__name {
    font-family: var(--f-display);
    font-size: 21px;
    font-weight: 700;
    line-height: 1.15;
    margin: 0;
    color: var(--c-text);
}
.coord-header__enname {
    font-family: var(--f-accent);
    font-size: 12px;
    font-weight: 400;
    color: var(--c-text);
    letter-spacing: 0.02em;
    line-height: 1.2;
    margin-top: 2px;
}
.coord-header__cta {
    display: flex;
    gap: 12px;
    align-items: center;
}
.coord-header__cta .social,
.coord-header__home {
    width: 36px;
    height: 36px;
    border: 1px solid var(--c-line);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-text-soft);
    transition: all .2s;
}
.coord-header__cta .social:hover,
.coord-header__home:hover {
    background: var(--c-primary);
    border-color: var(--c-primary);
    color: var(--c-on-primary);
}

.coord-nav {
    background: var(--c-surface);
    border-top: 2px solid var(--c-primary);
}
.coord-nav__list {
    display: flex;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
    align-items: stretch;
}
.coord-nav__list a {
    display: block;
    padding: 16px 22px;
    color: var(--c-text);
    font-weight: 500;
    font-size: 15px;
    border-right: 1px solid var(--c-line);
    transition: all .2s;
}
.coord-nav__list a:hover {
    background: var(--c-primary);
    color: var(--c-on-primary);
}
.coord-nav__list a.active {
    background: var(--c-primary);
    color: var(--c-on-primary);
}

/* ─── Hero ─────────────────────────────────────────────── */
.coord-hero {
    background: var(--hero-overlay), linear-gradient(135deg, var(--c-primary-dark), var(--c-primary));
    color: #fff;
    padding: 64px 0 80px;
    position: relative;
    overflow: hidden;
}
.coord-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: var(--motif-bg);
    opacity: 0.6;
}
.coord-hero__container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 48px;
    align-items: center;
}
.coord-hero__eyebrow {
    font-family: var(--f-accent);
    letter-spacing: 0.3em;
    font-size: 14px;
    text-transform: uppercase;
    color: var(--c-accent);
    margin-bottom: 16px;
    display: inline-block;
    padding-bottom: 4px;
    border-bottom: 2px solid var(--c-accent);
}
/* body.subsite 前綴 (0,2,1) 打贏 base.css body.subsite h2 (0,1,2)，
   否則深色 hero 上的標題被染成 --c-text（深色）看不清。 */
body.subsite .coord-hero__title {
    font-family: var(--f-display);
    font-size: clamp(36px, 5vw, 56px);
    line-height: 1.15;
    margin: 0 0 24px;
    color: #fff;
}
.coord-hero__quote {
    font-family: var(--f-accent);
    font-style: italic;
    color: var(--c-accent);
    font-size: 18px;
    margin: 16px 0 32px;
    padding-left: 16px;
    border-left: 3px solid var(--c-accent);
}
.coord-hero__meta {
    display: flex;
    gap: 32px;
    font-size: 14px;
    color: rgba(255,255,255,0.85);
}
.coord-hero__meta strong {
    display: block;
    font-family: var(--f-accent);
    font-size: 28px;
    color: var(--c-accent);
    margin-bottom: 4px;
}
.coord-hero__panel {
    background: rgba(0,0,0,0.25);
    border: 1px solid rgba(255,255,255,0.15);
    backdrop-filter: blur(6px);
    border-radius: var(--r-card);
    padding: 28px;
}
.coord-hero__panel h4 {
    color: var(--c-accent);
    font-size: 14px;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    margin-bottom: 16px;
    font-family: var(--f-accent);
}
.coord-hero__panel ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
.coord-hero__panel li {
    color: #fff;
    padding: 10px 0;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
    font-size: 14px;
    display: flex;
    justify-content: space-between;
}
.coord-hero__panel li:last-child { border-bottom: none; }
.coord-hero__panel time {
    color: var(--c-accent);
    font-family: var(--f-accent);
    font-size: 13px;
}

/* ─── Main content double-column ──────────────────────── */
.coord-main {
    padding: 64px 0;
}
.coord-main__grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 48px;
}

.coord-section { margin-bottom: 48px; }
.coord-section__head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--c-primary);
}
.coord-section__head h2 {
    font-size: 22px;
    margin: 0;
}
.coord-section__head .more {
    font-size: 13px;
    color: var(--c-primary);
    font-family: var(--f-accent);
    letter-spacing: 0.1em;
}

.coord-news__item {
    display: grid;
    grid-template-columns: 80px 1fr auto;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid var(--c-line);
    align-items: center;
}
.coord-news__date {
    text-align: center;
    border-right: 1px solid var(--c-line);
    padding-right: 16px;
}
.coord-news__date .day {
    font-family: var(--f-accent);
    font-size: 32px;
    font-weight: 700;
    color: var(--c-primary);
    line-height: 1;
}
.coord-news__date .ym {
    font-size: 12px;
    color: var(--c-text-mute);
    margin-top: 4px;
    letter-spacing: 0.1em;
}
.coord-news__title {
    font-weight: 500;
    font-size: 16px;
    color: var(--c-text);
}
.coord-news__tag {
    font-size: 12px;
    padding: 4px 12px;
    background: var(--c-surface-alt);
    color: var(--c-primary);
    border-radius: var(--r-pill);
    font-family: var(--f-accent);
    letter-spacing: 0.05em;
}

/* sidebar */
.coord-sidebar { position: sticky; top: 24px; align-self: start; }
.coord-widget {
    background: var(--c-surface);
    padding: 24px;
    margin-bottom: 24px;
    border-radius: var(--r-card);
    border: 1px solid var(--c-line);
}
body.subsite .coord-widget h3 {
    font-size: 15px;
    margin: 0 0 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--c-line);
    color: var(--c-primary);
    letter-spacing: 0.08em;
    font-family: var(--f-accent);
    text-transform: uppercase;
}
.coord-widget--accent {
    background: var(--c-primary);
    color: var(--c-on-primary);
    border-color: var(--c-primary);
}
.coord-widget--accent h3 { color: var(--c-on-primary); border-color: rgba(0,0,0,0.15); }

.coord-docs__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--c-line);
    font-size: 14px;
}
.coord-docs__item:last-child { border-bottom: none; }
.coord-docs__icon {
    width: 32px;
    height: 32px;
    background: var(--c-surface-alt);
    color: var(--c-primary);
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-weight: 700;
    font-size: 11px;
    font-family: var(--f-accent);
}

.coord-team {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-top: 16px;
}
.coord-team__person {
    text-align: center;
}
.coord-team__avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    margin: 0 auto 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--c-on-primary);
    font-weight: 700;
    font-family: var(--f-accent);
}
.coord-team__name { font-size: 13px; font-weight: 500; }
.coord-team__role { font-size: 11px; color: var(--c-text-mute); }

/* ─── Footer ──────────────────────────────────────────── */
.coord-footer {
    background: var(--c-primary-dark);
    color: rgba(255,255,255,0.8);
    padding: 48px 0 24px;
    font-size: 13px;
    border-top: 4px solid var(--c-accent);
}
.coord-footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 32px;
    margin-bottom: 32px;
}
/* body.subsite 前綴 (0,2,2) 打贏 base.css body.subsite h5 (0,1,2)，
   否則深色 footer 上的標題被染成 --c-text（深色）看不清。 */
body.subsite .coord-footer h5 {
    color: var(--c-accent);
    font-family: var(--f-accent);
    font-size: 12px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    margin: 0 0 16px;
}
/* body.subsite 前綴 (0,2,1) 打贏 base.css 的 body.subsite a (0,1,2)，
   否則深色 footer 上的連結會被 base.css 染成 --c-primary（低對比）。 */
body.subsite .coord-footer a { color: rgba(255,255,255,0.72); display: block; padding: 4px 0; }
body.subsite .coord-footer a:hover { color: var(--c-accent); }
body.subsite .coord-footer__brand h5 { color: #fff; font-size: 16px; letter-spacing: 0.04em; text-transform: none; font-family: var(--f-display); }
.coord-footer__desc { margin: 0; font-size: 13px; line-height: 1.7; color: rgba(255,255,255,0.6); }
.coord-footer__social { display: flex; gap: 10px; margin-top: 4px; }
body.subsite .coord-footer__social a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    color: #fff;
    font-size: 18px;
    transition: background .2s, color .2s;
}
body.subsite .coord-footer__social a:hover { background: var(--c-accent); color: #fff; }
.coord-footer__bottom {
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,0.1);
    display: flex;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 12px;
    color: rgba(255,255,255,0.5);
}

/* ─── 資料驅動首頁（hero 訊息 / 關於 / 相簿卡） ───────── */
.coord-home-hero { max-width: 760px; }
.coord-home-hero .coord-hero__eyebrow { margin-bottom: 18px; }
.coord-home-hero .coord-hero__title { margin-bottom: 20px; }
.coord-home-hero__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--c-accent);
    color: #fff;
    padding: 12px 28px;
    border-radius: var(--r-pill);
    font-family: var(--f-accent);
    font-weight: 500;
    letter-spacing: 0.05em;
    transition: filter .2s, transform .15s;
}
body.subsite .coord-home-hero__cta { color: #fff; }
.coord-home-hero__cta:hover { filter: brightness(1.08); transform: translateY(-1px); }

.coord-about-lead { color: var(--c-text-soft); font-size: 16px; line-height: 1.95; margin: 0; }

.coord-album-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 16px; }
.coord-album {
    display: block;
    border: 1px solid var(--c-line);
    border-radius: var(--r-card);
    background: var(--c-surface);
    overflow: hidden;
    box-shadow: var(--sh-card);
    transition: transform .15s, box-shadow .15s;
}
.coord-album:hover { transform: translateY(-2px); box-shadow: var(--sh-deep, 0 10px 28px rgba(0,0,0,0.14)); }
.coord-album__thumb { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; background: var(--c-surface-alt); display: block; }
.coord-album__thumb-empty { width: 100%; aspect-ratio: 4 / 3; display: flex; align-items: center; justify-content: center; color: var(--c-text-mute); background: var(--c-surface-alt); font-size: 2rem; }
.coord-album__body { padding: 12px 14px; }
.coord-album__title { font-weight: 600; color: var(--c-text); font-size: 0.95rem; margin: 0 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.coord-album__meta { font-size: 0.8rem; color: var(--c-text-mute); }

.coord-quicklinks a { display: block; padding: 10px 0; border-bottom: 1px solid var(--c-line); color: var(--c-text); font-size: 14px; transition: color .2s, padding .2s; }
.coord-quicklinks a:last-child { border-bottom: none; }
.coord-quicklinks a:hover { color: var(--c-primary); padding-left: 6px; }
.coord-quicklinks a .mdi { color: var(--c-primary); margin-right: 8px; }

.coord-empty { color: var(--c-text-mute); padding: 28px; text-align: center; border: 1px dashed var(--c-line); border-radius: var(--r-card); }

/* ─── 協調長本人卡（比照分會會長卡） ─── */
.coord-lead-band { padding: 36px 0 0; }
.coord-lead {
    display: flex;
    align-items: center;
    gap: clamp(20px, 4vw, 40px);
    background: var(--c-surface);
    border: 1px solid var(--c-line);
    border-left: 4px solid var(--c-primary);
    border-radius: var(--r-card);
    box-shadow: var(--sh-card);
    padding: clamp(22px, 3.5vw, 34px);
}
.coord-lead__photo {
    flex: 0 0 auto;
    width: clamp(128px, 28vw, 200px);
    aspect-ratio: 3 / 4;
    border-radius: calc(var(--r-card) - 4px);
    overflow: hidden;
    background: var(--c-surface-alt);
    box-shadow: var(--sh-card);
}
.coord-lead__photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coord-lead__silhouette { width: 100%; height: 100%; padding: 18%; fill: var(--c-primary-light); background: linear-gradient(160deg, var(--c-surface-alt), var(--c-line)); }
.coord-lead__meta { min-width: 0; }
body.subsite .coord-lead__label { display: inline-block; font-family: var(--f-accent); font-size: 0.85rem; letter-spacing: 0.28em; color: var(--c-primary-dark); background: var(--c-surface-alt); padding: 4px 14px; border-radius: var(--r-pill, 999px); margin-bottom: 12px; }
body.subsite .coord-lead__name { font-family: "Noto Serif TC", serif; font-weight: 900; font-size: clamp(1.7rem, 4vw, 2.6rem); line-height: 1.2; color: var(--c-text); margin: 0; }
.coord-lead__desc { color: var(--c-text-soft); font-size: 0.95rem; margin: 8px 0 0; }

/* ─── 手機漢堡開關（桌機隱藏） ───────────────────────── */
.coord-header__burger { display: none; }
.coord-topbar__slogan { color: var(--c-accent); }

/* ============================================================
   手機 RWD（≤768px）：header 收漢堡、雙欄改單欄、footer 收合
   桌機「雙欄機關調性」主結構不動，只在此斷點覆寫。
   ============================================================ */
@media (max-width: 768px) {
    body.subsite { overflow-x: clip; }

    /* topbar：只留左標題，slogan 手機藏（hero 會再露） */
    .coord-topbar .container { justify-content: center; }
    .coord-topbar__slogan { display: none; }

    /* header row：品牌 + 漢堡兩端對齊 */
    .coord-header { padding-top: 14px; }
    .coord-header__row { padding-bottom: 12px; }
    .coord-header__logo { width: 44px; height: 44px; font-size: 20px; }
    .coord-header__brand { flex: 1 1 auto; min-width: 0; }
    .coord-header__name { font-size: 18px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .coord-header__enname { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

    /* CTA：社群圓鈕手機藏，房子（回主站）+ 漢堡保留（對齊分會） */
    .coord-header__cta .social { display: none; }
    /* 漢堡對齊分會：40px 圓角、surface-alt 底、primary 色線條 */
    .coord-header__burger {
        display: flex;
        flex-direction: column;
        justify-content: center;
        gap: 5px;
        width: 40px;
        height: 40px;
        flex: 0 0 auto;
        border-radius: 10px;
        background: var(--c-surface-alt);
        cursor: pointer;
    }
    .coord-header__burger span {
        display: block;
        width: 20px;
        height: 2px;
        margin: 0 auto;
        background: var(--c-primary);
        border-radius: 2px;
        transition: transform .25s, opacity .2s;
    }
    /* 展開時三線變 X */
    .coord-nav-toggle:checked ~ .container .coord-header__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .coord-nav-toggle:checked ~ .container .coord-header__burger span:nth-child(2) { opacity: 0; }
    .coord-nav-toggle:checked ~ .container .coord-header__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

    /* nav：手機收起，勾選漢堡才展開為直式清單 */
    .coord-nav { display: none; border-top: 1px solid var(--c-line); }
    .coord-nav-toggle:checked ~ .coord-nav { display: block; }
    .coord-nav .container { padding: 0; }
    .coord-nav__list { flex-direction: column; align-items: stretch; }
    .coord-nav__list a {
        border-right: none;
        border-bottom: 1px solid var(--c-line);
        padding: 14px 20px;
    }

    /* hero：單欄 */
    .coord-hero { padding: 40px 0 48px; }
    .coord-hero__container { grid-template-columns: 1fr; gap: 28px; }
    .coord-hero__meta { flex-wrap: wrap; gap: 20px 28px; }

    /* main：雙欄改單欄，sidebar 落到下方（取消 sticky） */
    .coord-main { padding: 40px 0; }
    .coord-main__grid { grid-template-columns: 1fr; gap: 32px; }
    .coord-sidebar { position: static; }

    /* 消息列：日期 + 標題兩欄，tag 換行 */
    .coord-news__item { grid-template-columns: 64px 1fr; gap: 14px; }
    .coord-news__tag { grid-column: 2; justify-self: start; margin-top: 4px; }

    /* 首頁相簿卡：3 欄改 2 欄 */
    .coord-album-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
    .coord-home-hero__cta { width: 100%; justify-content: center; }

    /* footer：單欄堆疊 */
    .coord-footer { padding: 36px 0 20px; }
    .coord-footer__grid { grid-template-columns: 1fr; gap: 24px; }
    .coord-footer__bottom { flex-direction: column; gap: 6px; text-align: center; justify-content: center; }
}
