/*
 * ACST 對外網站品牌樣式（覆寫在 UniAlumni 模板 style.css 之後）。
 *
 * 只在對外網站版型（layouts/site.blade.php）載入，不影響 Filament 後台。
 * 設計 token 依前端改版交接包 docs/03：主色 #173D70、強調藍 #2363A1、
 * 深色文字 #172B42、次文字 #53657A、淺底 #F3F6FA、邊線 #DCE4ED、暖黃 #F1C660、成功 #286A50。
 * 注意：模板把 html 的 font-size 設為 62.5%，所以 1.6rem = 16px。
 */

:root {
    --acst-primary: #173d70;
    --acst-accent: #2363a1;
    --acst-text: #172b42;
    --acst-muted: #53657a;
    --acst-bg-muted: #f3f6fa;
    --acst-border: #dce4ed;
    --acst-warm: #f1c660;
    --acst-success: #286a50;
    --acst-danger: #a12a2a;
    --acst-radius: 10px;
    --acst-font: system-ui, -apple-system, "Segoe UI", "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
}

/* ---------- 基礎排版 ---------- */
body.acst-site {
    font-family: var(--acst-font);
    font-size: 1.7rem;
    line-height: 1.75;
    color: var(--acst-text);
    background: #fff;
}

.acst-site h1, .acst-site h2, .acst-site h3, .acst-site h4, .acst-site h5,
.acst-site .h1, .acst-site .h2, .acst-site .h3, .acst-site .h4, .acst-site .h5 {
    font-family: var(--acst-font);
    color: var(--acst-primary);
    line-height: 1.35;
    font-weight: 700;
}

.acst-site h2 { font-size: 2.6rem; margin-bottom: 1.6rem; }
.acst-site h3 { font-size: 2rem; }
.acst-site .h4, .acst-site h4 { font-size: 1.9rem; }
.acst-site .h5, .acst-site h5 { font-size: 1.7rem; }

.acst-site a { color: var(--acst-accent); }
.acst-site a:hover, .acst-site a:focus { color: var(--acst-primary); }

/* 鍵盤焦點一律清楚可見（模板把 .btn:focus 的外框拿掉了，這裡補回） */
.acst-site a:focus-visible,
.acst-site button:focus-visible,
.acst-site .btn:focus-visible,
.acst-site input:focus-visible,
.acst-site select:focus-visible,
.acst-site textarea:focus-visible,
.acst-site summary:focus-visible {
    outline: 3px solid var(--acst-warm);
    outline-offset: 2px;
    box-shadow: none;
}

.acst-skip-link {
    position: absolute;
    left: 1rem;
    top: -100px;
    z-index: 10000;
    background: var(--acst-primary);
    color: #fff !important;
    padding: 1rem 1.6rem;
    border-radius: 0 0 var(--acst-radius) var(--acst-radius);
}

.acst-skip-link:focus { top: 0; }

main:focus { outline: none; }

/* 模板把根字級設為 10px，Bootstrap 以 rem 計算的左右留白只剩約 7px；調回約 16px */
.acst-site .container { --bs-gutter-x: 3.2rem; }

/* ---------- 按鈕（沿用模板 .btn-brand，改成品牌色與一般大小寫） ---------- */
.acst-site .btn {
    font-size: 1.6rem;
    border-radius: 8px;
    padding: 1rem 2.2rem;
    min-height: 44px;
    text-transform: none;
    font-weight: 600;
}

.acst-site .btn-brand {
    background-color: var(--acst-primary);
    border: 2px solid var(--acst-primary);
    color: #fff;
}

.acst-site .btn-brand:hover,
.acst-site .btn-brand:focus {
    background-color: #0f2c52;
    border-color: #0f2c52;
    color: #fff;
}

.acst-site .btn-outline-brand {
    background: #fff;
    border: 2px solid var(--acst-border);
    color: var(--acst-primary);
}

.acst-site .btn-outline-brand:hover,
.acst-site .btn-outline-brand:focus {
    border-color: var(--acst-primary);
    color: var(--acst-primary);
}

.acst-site .btn-light-brand {
    background: #fff;
    border: 2px solid #fff;
    color: var(--acst-primary);
}

.acst-site .btn-outline-light,
.acst-site a.btn-outline-light { border: 2px solid #fff; color: #fff; }
.acst-site .btn-outline-light:hover,
.acst-site .btn-outline-light:focus { background: #fff; color: var(--acst-primary); }
.acst-site a.btn-light-brand { color: var(--acst-primary); }

/* ---------- 頂部工具列與導覽 ---------- */
.acst-header .header-topbar { background-color: var(--acst-primary); }

.acst-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.6rem;
    min-height: 36px;
    font-size: 1.4rem;
    color: #d9e3f0;
}

.acst-topbar__links { display: flex; gap: 2rem; align-items: center; }
.acst-topbar__links a { color: #fff; }
.acst-topbar__links a:hover, .acst-topbar__links a:focus { color: var(--acst-warm); }

.acst-header { background: #fff; border-bottom: 1px solid var(--acst-border); }

/* 頁首（含手機側邊選單）必須疊在半透明遮罩之上，否則遮罩會擋住選單點擊 */
.site-header.acst-header { position: relative; z-index: 1000; }
.site-header.acst-header.header-fixed.showed { position: fixed; z-index: 1000; }

.acst-brand {
    display: flex !important;
    align-items: center;
    gap: 1.2rem;
    text-decoration: none;
}

.acst-brand__logo { width: auto; height: 48px; max-width: none !important; }

.acst-brand__name {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--acst-primary);
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.acst-brand--small .acst-brand__logo { height: 36px; }
.acst-brand--small .acst-brand__name { font-size: 1.5rem; }

.site-header .codeboxr-main-menu > li { padding: 30px 14px; }
.site-header .codeboxr-main-menu > li > a,
.site-header .codeboxr-main-menu > li > .acst-menu-label {
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--acst-text);
}
.site-header .codeboxr-main-menu > li.current-menu-item { background-color: var(--acst-bg-muted); }
.site-header .codeboxr-main-menu > li:before { background: var(--acst-primary); }
.site-header .codeboxr-main-menu li.has-submenu .sub-menu li a:hover { background-color: var(--acst-primary); }

.acst-menu-label { cursor: default; }

/* 鍵盤操作時，子選單也要能展開（模板只支援滑鼠 hover） */
.site-header .codeboxr-main-menu li.has-submenu:focus-within > ul {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

.acst-submenu-toggle {
    display: none;
    border: 0;
    background: transparent;
    color: var(--acst-text);
    width: 44px;
    height: 44px;
}

.acst-burger {
    border: 0;
    background: transparent;
    padding: 10px 6px;
    min-width: 44px;
    min-height: 44px;
}

.close-menu { border: 0; }

.acst-nav-cta {
    margin-left: 1.6rem;
    white-space: nowrap;
}

.acst-mobile-utility { display: none; }

.acst-menu-overlay {
    position: fixed;
    inset: 0;
    background: rgba(23, 43, 66, 0.5);
    z-index: 990;
}

@media (min-width: 992px) and (max-width: 1199px) {
    .acst-brand__name { display: none; }
    .site-header .codeboxr-main-menu > li { padding: 30px 8px; }
}

@media (max-width: 991px) {
    .acst-brand__name { font-size: 1.5rem; white-space: normal; }
    .acst-brand__logo { height: 40px; }

    .site-header .main-nav-container li.has-submenu { display: flex !important; flex-wrap: wrap; align-items: center; }
    .site-header .main-nav-container li.has-submenu > a,
    .site-header .main-nav-container li.has-submenu > .acst-menu-label {
        flex: 1;
        padding: 12px 15px;
        font-size: 1.7rem;
    }
    .site-header .main-nav-container li a { font-size: 1.7rem; padding: 12px 15px; }
    .site-header .main-nav-container li.has-submenu .sub-menu { flex-basis: 100%; }
    .site-header .main-nav .sub-menu.is-open { display: block; }
    .acst-submenu-toggle { display: inline-flex; align-items: center; justify-content: center; }
    .acst-submenu-toggle[aria-expanded="true"] i { transform: rotate(180deg); }

    .acst-nav-cta { display: block; margin: 2rem 15px 0; text-align: center; }

    .acst-mobile-utility {
        display: block;
        list-style: none;
        margin: 2rem 0 0;
        padding: 1.6rem 0 0;
        border-top: 1px solid var(--acst-border);
    }

    .acst-mobile-utility a { color: var(--acst-muted) !important; font-size: 1.6rem !important; }
}

/* ---------- 草稿預覽提示 ---------- */
.acst-preview-banner {
    background: #fff4d6;
    border-bottom: 2px solid var(--acst-warm);
    color: #5a4300;
    padding: 1rem 0;
    font-size: 1.5rem;
}

/* ---------- 內頁頁首（沿用模板 #page-title-area，改為品牌色底） ---------- */
#page-title-area.acst-page-title {
    background-image: none;
    background-color: var(--acst-primary);
    padding: 4.8rem 0 5.6rem;
}

#page-title-area.acst-page-title:after { display: none; }

.acst-page-title h1 {
    color: #fff;
    font-size: 4.4rem;
    margin: 0 0 1.2rem;
    line-height: 1.3;
}

.acst-page-title__lead {
    color: #dfe8f3;
    font-size: 1.9rem;
    max-width: 780px;
    margin: 0;
}

.acst-breadcrumb ol {
    list-style: none;
    padding: 0;
    margin: 0 0 1.6rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    font-size: 1.4rem;
    color: #c8d6e8;
}

.acst-breadcrumb li + li:before { content: "›"; margin: 0 0.6rem; }
.acst-breadcrumb a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }

@media (max-width: 767px) {
    .acst-page-title h1 { font-size: 3rem; }
    .acst-page-title__lead { font-size: 1.7rem; }
}

/* ---------- 區塊 ---------- */
.acst-section { padding: 7.2rem 0; }
.acst-section--tight { padding-top: 0; padding-bottom: 0; }
.acst-section--muted { background: var(--acst-bg-muted); }

@media (max-width: 767px) {
    .acst-section { padding: 4.4rem 0; }
}

.acst-section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 2rem;
    margin-bottom: 2.4rem;
    flex-wrap: wrap;
}

.acst-section-head h2 { margin-bottom: 0.4rem; }
.acst-section-head p { color: var(--acst-muted); margin: 0; }
.acst-section-title { margin-bottom: 2.4rem; }

.acst-more-link { font-weight: 600; color: var(--acst-accent); white-space: nowrap; }
.acst-more-link i { font-size: 0.85em; margin-left: 0.4rem; }

.acst-block { margin-top: 4rem; }
.acst-muted { color: var(--acst-muted); }
.acst-lead-text { font-size: 1.9rem; color: var(--acst-text); max-width: 760px; }
.acst-eyebrow { color: var(--acst-accent); font-weight: 600; font-size: 1.5rem; letter-spacing: 0.04em; margin-bottom: 1.2rem; }
.acst-updated { margin-top: 3.2rem; color: var(--acst-muted); font-size: 1.4rem; }

.acst-empty {
    background: var(--acst-bg-muted);
    border: 1px dashed var(--acst-border);
    border-radius: var(--acst-radius);
    padding: 2rem 2.4rem;
    color: var(--acst-muted);
    margin: 0;
}

.acst-note {
    border-left: 4px solid var(--acst-warm);
    background: #fffaf0;
    padding: 1.2rem 1.6rem;
    border-radius: 0 var(--acst-radius) var(--acst-radius) 0;
}

/* ---------- 首頁主視覺 ---------- */
.acst-hero { padding: 6.4rem 0 7.2rem; }

.acst-hero__title {
    font-size: 5rem;
    line-height: 1.25;
    margin-bottom: 2rem;
}

.acst-hero__lead { font-size: 1.9rem; color: var(--acst-muted); max-width: 560px; }
.acst-hero__actions { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 2.8rem; }

.acst-hero__figure { margin: 0; }
.acst-hero__figure img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    object-fit: cover;
    aspect-ratio: 3 / 2;
    background: var(--acst-bg-muted);
}
.acst-hero__figure figcaption { font-size: 1.4rem; color: var(--acst-muted); margin-top: 0.8rem; }

@media (max-width: 767px) {
    .acst-hero { padding: 3.6rem 0 4.4rem; }
    .acst-hero__title { font-size: 3.2rem; }
}

.acst-panel {
    background: var(--acst-bg-muted);
    border-radius: 12px;
    padding: 3.2rem;
}

@media (max-width: 767px) { .acst-panel { padding: 2rem; } }

/* ---------- 共用標籤 ---------- */
.acst-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.8rem 1.2rem;
    font-size: 1.4rem;
    color: var(--acst-muted);
    margin-bottom: 0.6rem;
}

.acst-badge {
    display: inline-block;
    font-size: 1.3rem;
    line-height: 1.4;
    font-weight: 600;
    padding: 0.2rem 1rem;
    border-radius: 999px;
    background: #e5edf7;
    color: var(--acst-primary);
    text-decoration: none;
    vertical-align: middle;
}

.acst-badge--info { background: #e5edf7; color: var(--acst-primary); }
.acst-badge--success { background: #dff0e7; color: var(--acst-success); }
.acst-badge--warning { background: #fdf0cc; color: #6b4e00; }
.acst-badge--danger { background: #f7dede; color: var(--acst-danger); }
.acst-badge--muted { background: #eceff3; color: #44546a; }

/* ---------- 消息 ---------- */
.acst-news-item {
    border-bottom: 1px solid var(--acst-border);
    padding: 2rem 0;
}

.acst-news-item:first-child { border-top: 1px solid var(--acst-border); }
.acst-news-item__title { font-size: 1.9rem !important; margin: 0.2rem 0 0.4rem; }
.acst-news-item__title a { color: var(--acst-text); text-decoration: none; }
.acst-news-item__title a:hover, .acst-news-item__title a:focus { color: var(--acst-accent); text-decoration: underline; }
.acst-news-item__excerpt { color: var(--acst-muted); margin: 0; font-size: 1.6rem; }

.acst-article { max-width: 800px; margin: 0 auto; }
.acst-article__summary { font-size: 1.9rem; color: var(--acst-text); border-bottom: 1px solid var(--acst-border); padding-bottom: 2rem; margin-top: 1.6rem; }

/* ---------- 活動卡片（以模板的活動卡為基礎，改為列式卡片） ---------- */
.acst-event-list { display: grid; gap: 1.6rem; }

.acst-event-card {
    display: grid;
    grid-template-columns: 88px 1fr auto;
    gap: 2rem;
    align-items: center;
    background: #fff;
    border: 1px solid var(--acst-border);
    border-radius: var(--acst-radius);
    padding: 1.6rem 2rem;
}

.acst-event-card + .acst-event-card { margin-top: 0; }
.acst-block .acst-event-card { margin-bottom: 1.6rem; }

.acst-event-card__date {
    text-align: center;
    background: var(--acst-primary);
    color: #fff;
    border-radius: 8px;
    padding: 0.8rem 0.4rem;
    line-height: 1.2;
}

.acst-event-card__month { display: block; font-size: 1.3rem; }
.acst-event-card__day { display: block; font-size: 2.8rem; font-weight: 700; }
.acst-event-card__title { font-size: 1.9rem !important; margin: 0.2rem 0 0.4rem; }
.acst-event-card__title a { color: var(--acst-text); }
.acst-event-card__info { margin: 0; font-size: 1.5rem; color: var(--acst-muted); }
.acst-event-card__thumb img { width: 140px; height: 94px; object-fit: contain; background: var(--acst-bg-muted); border-radius: 6px; }

@media (max-width: 767px) {
    .acst-event-card { grid-template-columns: 64px 1fr; gap: 1.2rem; padding: 1.4rem; }
    .acst-event-card__thumb { display: none; }
    .acst-event-card__day { font-size: 2.2rem; }
}

.acst-info-card {
    background: var(--acst-bg-muted);
    border: 1px solid var(--acst-border);
    border-radius: 12px;
    padding: 2.4rem;
}

.acst-dl { display: grid; grid-template-columns: max-content 1fr; gap: 0.6rem 1.6rem; margin: 0 0 2rem; }
.acst-dl dt { color: var(--acst-muted); font-weight: 600; }
.acst-dl dd { margin: 0; }
.acst-dl--stacked { grid-template-columns: 1fr; gap: 0; }
.acst-dl--stacked dt { font-size: 1.4rem; margin-top: 1.2rem; }

.acst-cta-state { font-weight: 700; color: var(--acst-muted); background: #fff; border: 1px solid var(--acst-border); border-radius: 8px; padding: 1rem 1.4rem; text-align: center; margin: 0; }

.acst-alert { border-radius: var(--acst-radius); padding: 1.4rem 1.8rem; margin-bottom: 2rem; }
.acst-alert--success { background: #dff0e7; color: #1d4d3a; border: 1px solid #b7d9c7; }
.acst-alert--danger { background: #f7dede; color: #6f1d1d; border: 1px solid #e8b9b9; }
.acst-alert--warning { background: #fdf0cc; color: #5a4300; border: 1px solid #f1d98d; }
.acst-alert--muted { background: var(--acst-bg-muted); border: 1px solid var(--acst-border); }

/* ---------- 價值卡、入口卡 ---------- */
.acst-value__no { display: block; color: var(--acst-accent); font-weight: 700; font-size: 1.5rem; }
.acst-value h3 { font-size: 2.2rem; margin: 0.4rem 0 0.8rem; }
.acst-value p { color: var(--acst-muted); margin: 0; }

.acst-card {
    display: block;
    height: 100%;
    background: var(--acst-bg-muted);
    border: 1px solid var(--acst-border);
    border-radius: 12px;
    padding: 2.4rem;
    color: var(--acst-text);
    text-decoration: none;
}

.acst-card h2, .acst-card h3 { margin-bottom: 0.8rem; }
.acst-card p { color: var(--acst-muted); }
.acst-card--link { transition: border-color 0.2s ease, transform 0.2s ease; }
.acst-card--link:hover, .acst-card--link:focus { border-color: var(--acst-primary); transform: translateY(-2px); color: var(--acst-text); }
.acst-card--compact { padding: 1.8rem; }

@media (prefers-reduced-motion: reduce) {
    .acst-card--link, .acst-site a, .acst-site button { transition: none !important; }
    .acst-card--link:hover { transform: none; }
}

.acst-gallery-item { display: block; position: relative; border-radius: 10px; overflow: hidden; }
.acst-gallery-item img { width: 100%; aspect-ratio: 3 / 2; object-fit: contain; display: block; background: #e9eef5; border-radius: 10px; }
.acst-gallery-item__caption { display: block; padding: 0.8rem 0; color: var(--acst-muted); font-size: 1.4rem; }

/* ---------- 頁末行動呼籲 ---------- */
.acst-cta { background: var(--acst-primary); color: #fff; padding: 5.6rem 0; }
.acst-cta h2 { color: #fff !important; margin-bottom: 0.8rem; }
.acst-cta p { color: #dfe8f3; margin: 0; }
.acst-cta .btn { margin: 0.4rem; }

/* ---------- 內文（富文本） ---------- */
.acst-prose { max-width: 800px; }
.acst-prose h2 { margin-top: 3.6rem; }
.acst-prose h3 { margin-top: 2.8rem; }
.acst-prose p, .acst-prose ul, .acst-prose ol { margin-bottom: 1.6rem; }
.acst-prose ul, .acst-prose ol { padding-left: 2.4rem; }
.acst-prose li { margin-bottom: 0.6rem; }
.acst-prose img { max-width: 100%; height: auto; }
.acst-prose table { width: 100%; border-collapse: collapse; margin-bottom: 2rem; display: block; overflow-x: auto; }
.acst-prose th, .acst-prose td { border: 1px solid var(--acst-border); padding: 0.8rem 1.2rem; }
.acst-prose blockquote { border-left: 4px solid var(--acst-border); padding-left: 1.6rem; color: var(--acst-muted); }
.acst-prose a { text-decoration: underline; text-underline-offset: 3px; word-break: break-word; }

.acst-figure { margin: 0 0 3.2rem; }
.acst-figure img { width: 100%; height: auto; border-radius: 10px; }
.acst-figure figcaption { font-size: 1.4rem; color: var(--acst-muted); margin-top: 0.8rem; }
.acst-figure--poster img { object-fit: contain; background: var(--acst-bg-muted); }

.acst-page-actions { display: flex; flex-wrap: wrap; gap: 1.2rem; margin-top: 3.2rem; }

/* ---------- 側欄分類導覽（沿用模板 .sidebar-area-wrap） ---------- */
.acst-section-nav .single-sidebar-wrap {
    background: var(--acst-bg-muted);
    border-radius: 12px;
    padding: 2.4rem;
}

.acst-section-nav ul { list-style: none; padding: 0; margin: 0; }
.acst-section-nav li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.8rem;
    padding: 1rem 1.2rem;
    border-radius: 8px;
    color: var(--acst-text);
    text-decoration: none;
}
.acst-section-nav li a:hover, .acst-section-nav li a:focus { background: #fff; color: var(--acst-primary); }
.acst-section-nav li a.is-current { background: var(--acst-primary); color: #fff; }

/* ---------- 篩選 ---------- */
.acst-filter-tabs { display: flex; flex-wrap: wrap; gap: 0.8rem; margin-bottom: 2.4rem; }
.acst-filter-tabs a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0.4rem 1.6rem;
    border: 1px solid var(--acst-border);
    border-radius: 999px;
    color: var(--acst-text);
    text-decoration: none;
    font-size: 1.5rem;
}
.acst-filter-tabs a.is-active { background: var(--acst-primary); border-color: var(--acst-primary); color: #fff; }

.acst-filter-form {
    display: flex;
    flex-wrap: wrap;
    gap: 1.6rem;
    align-items: flex-end;
    margin-bottom: 3.2rem;
    padding: 2rem;
    background: var(--acst-bg-muted);
    border-radius: 12px;
}
.acst-filter-form > div { flex: 1 1 200px; }
.acst-filter-form label { display: block; font-size: 1.4rem; font-weight: 600; margin-bottom: 0.4rem; }
.acst-filter-form__actions { flex: 0 0 auto !important; display: flex; gap: 0.8rem; }

.acst-site .form-control, .acst-site .form-select { font-size: 1.6rem; min-height: 44px; border-color: #b9c7d8; }
.acst-site .form-label { font-weight: 600; }
.acst-site .invalid-feedback { font-size: 1.4rem; }
.acst-site .form-text { font-size: 1.4rem; color: var(--acst-muted); }
.acst-required { color: var(--acst-danger); }

/* 聯絡表單蜜罐：螢幕外隱藏（不可用 display:none，否則機器人會略過） */
.acst-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- 分頁（Bootstrap 5 分頁套用品牌色） ---------- */
.acst-pagination { display: flex; justify-content: center; margin-top: 3.2rem; }
.acst-pagination .page-link { color: var(--acst-primary); font-size: 1.5rem; min-width: 44px; min-height: 44px; display: flex; align-items: center; justify-content: center; }
.acst-pagination .page-item.active .page-link { background: var(--acst-primary); border-color: var(--acst-primary); color: #fff; }
.acst-pagination nav > div:first-child { display: none; }
.acst-pagination p.small { font-size: 1.4rem; }

/* ---------- 文件、附件 ---------- */
.acst-doc-list, .acst-file-list, .acst-link-list { list-style: none; padding: 0; margin: 0; }
.acst-doc {
    display: flex;
    justify-content: space-between;
    gap: 1.6rem;
    padding: 1.6rem 0;
    border-bottom: 1px solid var(--acst-border);
    flex-wrap: wrap;
}
.acst-doc__main { flex: 1 1 300px; }
.acst-doc__title { display: block; font-weight: 700; }
.acst-doc__meta, .acst-doc__desc { display: block; color: var(--acst-muted); font-size: 1.4rem; }
.acst-doc-list--muted .acst-doc__title { font-weight: 500; }
.acst-file-list li { padding: 0.6rem 0; }
.acst-file-link { display: inline-flex; gap: 0.6rem; align-items: baseline; flex-wrap: wrap; }
.acst-file-link__meta { color: var(--acst-muted); font-size: 1.4rem; }
.acst-link-list li { padding: 0.4rem 0; }

/* ---------- 會刊 ---------- */
.acst-publication { display: block; text-decoration: none; color: var(--acst-text); }
.acst-publication__cover {
    display: flex;
    align-items: center;
    justify-content: center;
    aspect-ratio: 600 / 850;
    background: var(--acst-bg-muted);
    border: 1px solid var(--acst-border);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1.2rem;
    font-size: 4rem;
    color: #9fb0c7;
}
.acst-publication__cover img { width: 100%; height: 100%; object-fit: cover; }
.acst-publication__meta { display: block; color: var(--acst-muted); font-size: 1.4rem; }
.acst-publication__title { display: block; font-weight: 700; font-size: 1.8rem; color: var(--acst-primary); }
.acst-publication__theme { display: block; color: var(--acst-muted); font-size: 1.5rem; }
.acst-publication-cover { width: 100%; border-radius: 8px; border: 1px solid var(--acst-border); }

/* ---------- 理監事名錄 ---------- */
.acst-member-group { font-size: 1.9rem !important; margin: 3.2rem 0 1.2rem; padding-bottom: 0.6rem; border-bottom: 2px solid var(--acst-border); }
.acst-member-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1.2rem; }
.acst-member { background: var(--acst-bg-muted); border-radius: 10px; padding: 1.4rem 1.6rem; }
.acst-member__role { display: block; font-size: 1.3rem; color: var(--acst-accent); font-weight: 600; }
.acst-member__name { display: block; font-size: 1.9rem; font-weight: 700; color: var(--acst-text); }
.acst-member__org { display: block; font-size: 1.4rem; color: var(--acst-muted); }

.acst-term-grid { list-style: none; padding: 0; margin: 2rem 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 1.2rem; }
.acst-term { display: block; text-align: center; padding: 1.6rem 1rem; border: 1px solid var(--acst-border); border-radius: 10px; text-decoration: none; }
.acst-term:hover, .acst-term:focus { border-color: var(--acst-primary); }
.acst-term__name { display: block; font-weight: 700; font-size: 1.8rem; color: var(--acst-primary); }
.acst-term__meta { display: block; font-size: 1.3rem; color: var(--acst-muted); }

.acst-pager { display: flex; justify-content: space-between; gap: 1.6rem; margin-top: 4rem; padding-top: 2rem; border-top: 1px solid var(--acst-border); }

/* ---------- 表格 ---------- */
.acst-table { font-size: 1.5rem; }
.acst-table th { color: var(--acst-primary); white-space: nowrap; }

/* ---------- 常見問題 ---------- */
.acst-faq { border-bottom: 1px solid var(--acst-border); }
.acst-faq summary {
    cursor: pointer;
    list-style: none;
    padding: 1.6rem 3.2rem 1.6rem 0;
    font-weight: 700;
    color: var(--acst-primary);
    position: relative;
    min-height: 44px;
}
.acst-faq summary::-webkit-details-marker { display: none; }
.acst-faq summary:after { content: "+"; position: absolute; right: 0.4rem; top: 1.4rem; font-size: 2.2rem; line-height: 1; }
.acst-faq[open] summary:after { content: "−"; }
.acst-faq__answer { padding: 0 0 1.6rem; color: var(--acst-text); }

/* ---------- 錯誤頁 ---------- */
.acst-error { padding: 9.6rem 0; }
.acst-error__code { font-size: 7.2rem; font-weight: 800; color: var(--acst-border); line-height: 1; margin-bottom: 1.6rem; }

/* ---------- 頁尾（模板用 #footer-area 的 ID 選擇器，這裡同樣以 ID 覆寫） ---------- */
#footer-area.acst-footer .footer-widget { background: var(--acst-primary); color: #dfe8f3; padding: 5.6rem 0 4rem; }
#footer-area.acst-footer .footer-bottom { background: #10305a; }
#footer-area.acst-footer .footer-bottom-text p { color: #c8d6e8; margin: 0; padding: 1.6rem 0; font-size: 1.4rem; }
#footer-area.acst-footer li { color: #dfe8f3; }
.acst-footer__brand { font-size: 2rem; font-weight: 700; color: #fff; margin: 0; }
.acst-footer__brand-en { font-size: 1.4rem; color: #c8d6e8; margin: 0 0 1.2rem; }
.acst-footer__intro { color: #dfe8f3; max-width: 420px; }
#footer-area.acst-footer .acst-footer__title { font-size: 1.7rem; color: #fff; margin-bottom: 1.2rem; }
.acst-footer__contact, .acst-footer__links { list-style: none; padding: 0; margin: 0; }
.acst-footer__contact li, .acst-footer__links li { padding: 0.4rem 0; }
.acst-footer__contact i { width: 1.8rem; color: var(--acst-warm); }
.acst-footer__label { color: #c8d6e8; }
#footer-area.acst-footer a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
#footer-area.acst-footer a:hover, #footer-area.acst-footer a:focus { color: var(--acst-warm); }
.acst-footer__social { display: flex; gap: 1.2rem; margin-top: 1.2rem; }
#footer-area.acst-footer .acst-footer__social a { text-decoration: none; font-size: 2rem; }

/* 回到頁首按鈕 */
.acst-site .scroll-top { background-color: var(--acst-primary); }

/* 避免長網址、表格撐破手機畫面 */
.acst-site main { overflow-wrap: anywhere; }
