/* ===============================================
   賈比洛 Jabilo styles v20261018-1
   方向 D「城市索引」：白底黑線、等寬數字、六都各一個識別色。
   主色維持 Logo 靛藍 #1d2088；照片沒有圖時顯示格線空白佔位（.media-ph）。
   =============================================== */

/* ---------- Tokens ---------- */
:root {
    --ink:        #111111;
    --ink-mid:    #2b2b2b;
    --muted:      #5f5f5f;   /* 對白底 6.4:1 */

    --paper:      #ffffff;
    --soft:       #f5f5f3;
    --panel:      #ffffff;

    --brand:      #1d2088;
    --brand-dark: #14166a;
    --brand-faint:#eef0fb;

    --line:       #e2e2e2;
    --line-strong:#111111;

    /* 六都識別色（文字對白底皆 ≥ 4.5:1） */
    --c-taipei:     #1d2088;
    --c-new-taipei: #0f7b6c;
    --c-taoyuan:    #6b46c1;
    --c-taichung:   #c2410c;
    --c-tainan:     #a16207;
    --c-kaohsiung:  #0369a1;
    --c: var(--ink);

    --mono: 'IBM Plex Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
    --gutter: clamp(16px, 4vw, 40px);
    --page: 1240px;
}
.c-taipei     { --c: var(--c-taipei); }
.c-new-taipei { --c: var(--c-new-taipei); }
.c-taoyuan    { --c: var(--c-taoyuan); }
.c-taichung   { --c: var(--c-taichung); }
.c-tainan     { --c: var(--c-tainan); }
.c-kaohsiung  { --c: var(--c-kaohsiung); }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html {
    font-family: 'Noto Sans TC', 'Microsoft JhengHei UI', 'Microsoft JhengHei', system-ui, sans-serif;
    font-size: 16px; color: var(--ink); background: var(--paper);
    scroll-behavior: smooth; -webkit-font-smoothing: antialiased;
    scroll-padding-top: 130px;
}
body { margin: 0; line-height: 1.7; background: var(--paper); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { line-height: 1.3; letter-spacing: -0.01em; color: var(--ink); }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 900; margin: 0 0 12px; }
h2 { font-size: clamp(20px, 2.4vw, 23px); font-weight: 900; margin: 0 0 10px; }
h3 { font-size: 17px; font-weight: 700; margin: 0 0 6px; }
.eyebrow, .meta {
    color: var(--muted); font-family: var(--mono); font-size: 12px; font-weight: 600;
    letter-spacing: .04em; margin: 0 0 6px;
}
.mono { font-family: var(--mono); }

/* ---------- Accessibility ---------- */
.skip-link {
    position: fixed; left: 16px; top: 12px; z-index: 100;
    transform: translateY(-200%); transition: transform .18s;
    padding: 10px 16px; background: var(--ink); color: #fff; font-weight: 700; font-size: 14px;
}
.skip-link:focus { transform: translateY(0); }
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0;
    margin: -1px; overflow: hidden; clip: rect(0,0,0,0);
    white-space: nowrap; border: 0;
}
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
input:focus-visible, textarea:focus-visible, select:focus-visible { outline-offset: 0; }

/* ---------- Header（兩列：品牌＋搜尋＋會員／分頁導覽） ---------- */
.site-header {
    position: sticky; top: 0; z-index: 20;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr) auto;
    grid-template-areas: "brand search account" "nav nav nav";
    align-items: center; column-gap: clamp(16px, 2.4vw, 28px);
    /* 2026-10-19：標頭內容對齊內容欄（寬螢幕不再貼齊視窗邊緣）；第一列與分頁之間的滿版分隔線改用背景畫 */
    --hpad: max(var(--gutter), calc((100% - var(--page)) / 2 + var(--gutter)));
    padding: 0 var(--hpad);
    background: linear-gradient(var(--line), var(--line)) 0 70px / 100% 1px no-repeat, #fff;
    border-bottom: 1px solid var(--line-strong);
}
.brand {
    grid-area: brand; display: inline-flex; align-items: center; gap: 9px; height: 70px;
    white-space: nowrap; font-weight: 900; font-size: 21px; letter-spacing: -0.02em;
}
.brand .brand-mark { width: 34px; height: 34px; flex: none; }
.brand small { font-family: var(--mono); font-weight: 500; font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.site-search { grid-area: search; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: stretch; border: 2px solid var(--ink); height: 46px; max-width: 760px; width: 100%; justify-self: center; }
.site-search::before {
    content: '搜尋'; display: flex; align-items: center; padding: 0 12px;
    background: var(--ink); color: #fff; font-size: 13px; font-weight: 700;
}
.site-search input { min-width: 0; border: 0; padding: 0 14px; font: inherit; font-size: 15px; background: #fff; }
.site-search input:focus { outline: none; background: var(--soft); }
.site-search:focus-within { outline: 3px solid var(--brand); outline-offset: 2px; }
.site-search button {
    border: 0; border-left: 1px solid var(--line); background: #fff; color: var(--ink);
    padding: 0 16px; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
}
.site-search button:hover { background: var(--soft); }
.account-nav { grid-area: account; display: flex; justify-content: flex-end; font-size: 15px; font-weight: 700; }
.account-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; border-bottom: 2px solid var(--ink); }
.account-nav a:hover { color: var(--brand); border-color: var(--brand); }
.main-nav {
    grid-area: nav; display: flex; align-items: stretch; gap: 0;
    margin: 0; padding: 0;
    font-size: 15px; font-weight: 700;
}
.main-nav a, .nav-more summary {
    display: inline-flex; align-items: center; min-height: 46px; padding: 0 16px;
    border-bottom: 4px solid transparent; color: var(--ink);
}
.main-nav a[class*="c-"] { border-bottom-color: color-mix(in srgb, var(--c) 30%, transparent); }
.main-nav a:hover { border-bottom-color: var(--c, var(--ink)); }
.main-nav a[class*="c-"]:hover { border-bottom-color: var(--c); color: var(--c); }
.main-nav .nav-primary { border-bottom-color: var(--ink); }
.nav-more { position: relative; display: flex; }
.nav-more summary { cursor: pointer; list-style: none; white-space: nowrap; gap: 4px; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: '\25BE'; font-size: 11px; }
.nav-more[open] summary { border-bottom-color: var(--ink); }
.nav-more-panel {
    position: absolute; top: 100%; left: 0; z-index: 30;
    display: grid; min-width: 170px; background: #fff; border: 2px solid var(--ink);
}
.nav-more-panel a { min-height: 44px; border-bottom: 1px solid var(--line); }
.nav-more-panel a:last-child { border-bottom: 0; }
.nav-more-panel a:hover { background: var(--soft); }
@media (max-width: 1100px) and (min-width: 861px) { .main-nav a, .nav-more summary { padding: 0 11px; } }
.search-toggle, .menu-toggle, .mobile-menu { display: none; }

/* 手機選單 */
.mobile-search { display: grid; grid-template-columns: 1fr auto; margin-bottom: 18px; border: 2px solid var(--ink); }
.mobile-search input { min-width: 0; min-height: 48px; padding: 8px 14px; border: 0; font: inherit; font-size: 16px; }
.mobile-search button { min-height: 48px; padding: 0 18px; border: 0; background: var(--ink); color: #fff; font: inherit; font-size: 15px; font-weight: 700; }
.mobile-menu nav { display: grid; gap: 0; }
.mobile-menu a { display: flex; align-items: center; min-height: 48px; font-weight: 700; color: var(--ink); }
.mobile-menu .mm-primary { justify-content: space-between; padding: 0 14px; background: var(--ink); color: #fff; font-size: 16px; }
.mobile-menu .mm-primary::after { content: '\2192'; }
.mm-heading { margin: 18px 0 6px; font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .08em; color: var(--muted); }
.mm-cities { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--ink); }
.mm-cities a { justify-content: center; font-size: 16px; border-top: 5px solid var(--c); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mm-cities a:nth-child(3n) { border-right: 0; }
.mm-cities a:nth-child(n+4) { border-bottom: 0; }
.mm-links { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 14px; }
.mm-links a { border-bottom: 1px solid var(--line); }
.mm-account { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; padding-top: 18px; border-top: 2px solid var(--ink); }
.mm-account a { justify-content: center; border: 2px solid var(--ink); }

/* ---------- Flash ---------- */
.flash {
    margin: 12px auto 0; max-width: var(--page);
    padding: 12px 18px; border: 2px solid var(--ink); background: var(--soft); font-size: 14px;
}
main { min-height: 68vh; }

/* ---------- Photo placeholders（格線空白佔位） ---------- */
.media-ph {
    position: relative; display: block; width: 100%;
    background-color: #fafafa;
    background-image:
        repeating-linear-gradient(90deg, #ececec 0 1px, transparent 1px 14px),
        repeating-linear-gradient(0deg, #ececec 0 1px, transparent 1px 14px);
    overflow: hidden;
}
.media-ph::after {
    content: 'NO PHOTO'; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
    font: 600 11px/1 var(--mono); letter-spacing: .12em; color: #9a9a9a; white-space: nowrap;
}
.media-ph.is-small::after, .er-img.media-ph::after, .avatar.media-ph::after { content: ''; }
.card-media { display: block; width: 100%; aspect-ratio: 3 / 2; object-fit: cover; background: var(--soft); }
.entity-media { margin: 18px 0; }
.entity-media .entity-image, .entity-media .media-ph { display: block; width: 100%; aspect-ratio: 21 / 9; max-height: 520px; object-fit: cover; margin: 0; }
.entity-image { display: block; width: 100%; max-height: 460px; object-fit: cover; margin: 18px 0; background: var(--soft); }
.media-credit { margin: 6px 0 0; font-family: var(--mono); font-size: 11px; line-height: 1.5; color: var(--muted); overflow-wrap: anywhere; }
.media-credit a { text-decoration: underline; }

/* ---------- 首頁：今日面板 ---------- */
.today-panel {
    display: grid; grid-template-columns: minmax(0, 1.3fr) repeat(3, minmax(0, 1fr));
    max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter);
}
.today-panel > * { padding: 26px 22px; border-bottom: 1px solid var(--ink); border-right: 1px solid var(--line); }
.today-panel > *:first-child { padding-left: 0; }
.today-panel > *:last-child { border-right: 0; }
.today-panel h1 { font-size: clamp(26px, 3.2vw, 34px); margin: 4px 0 8px; }
.today-panel p { margin: 0; color: var(--muted); font-size: 15px; }
.today-date { font-family: var(--mono); font-size: 13px; font-weight: 600; color: var(--muted); }
.stat { display: flex; flex-direction: column; justify-content: flex-end; transition: background .14s; }
.stat:hover { background: var(--soft); }
.stat b { font: 600 52px/1 var(--mono); }
.stat span { font-weight: 700; margin-top: 6px; }
.stat small { color: var(--muted); font-size: 13px; }
.stat::after { content: '\2192'; font-family: var(--mono); margin-top: 6px; }

/* ---------- Hero（其他頁沿用） ---------- */
.hero { max-width: var(--page); margin: 0 auto; padding: 36px var(--gutter) 24px; }
.hero p, .page-head p, .lead { color: var(--muted); font-size: 17px; max-width: 760px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.hero-side { display: grid; gap: 14px; }
.hero-visual { aspect-ratio: 4 / 3; }
.page-visual { display: none; }

/* ---------- Reader brief ---------- */
.reader-brief, .signal-panel { display: grid; gap: 0; border: 2px solid var(--ink); }
.reader-brief div, .signal-panel div { padding: 13px 16px; border-bottom: 1px solid var(--line); }
.reader-brief div:last-child, .signal-panel div:last-child { border-bottom: 0; }
.reader-brief span, .signal-panel span { display: block; font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.reader-brief strong { display: block; font-size: 15px; font-weight: 700; line-height: 1.5; }

/* ---------- Buttons ---------- */
.button {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 46px; padding: 9px 18px;
    border: 2px solid var(--ink); background: #fff; color: var(--ink);
    font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
    transition: background .14s, color .14s;
}
.button.primary { background: var(--ink); color: #fff; }
.button.ghost { border-color: var(--line); }
.button:hover { background: var(--soft); }
.button.primary:hover { background: var(--brand); border-color: var(--brand); }
.button:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Search panel ---------- */
.search-panel { display: grid; grid-template-columns: 1fr auto; width: 100%; max-width: 680px; margin-top: 18px; border: 2px solid var(--ink); }
.search-panel input { width: 100%; min-width: 0; min-height: 48px; border: 0; padding: 10px 16px; font: inherit; font-size: 16px; background: #fff; }
.search-panel input:focus { outline: none; background: var(--soft); }
.search-panel .button { border: 0; min-height: 48px; }
.hero-search { margin-top: 20px; }
.inline-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 16px; }

/* ---------- Task grid（索引列表） ---------- */
.task-grid {
    display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter);
}
.task-card {
    display: flex; flex-direction: column; justify-content: center; min-height: 84px;
    padding: 14px 40px 14px 0; border-bottom: 1px solid var(--line); position: relative;
}
.task-card::after { content: '\2192'; position: absolute; right: 12px; top: 50%; transform: translateY(-50%); font-family: var(--mono); }
.task-card:nth-child(3n+2), .task-card:nth-child(3n+3) { padding-left: 20px; border-left: 1px solid var(--line); }
.task-card:hover { background: var(--soft); }
.task-card strong { font-size: 17px; font-weight: 900; }
.task-card span { font-size: 14px; color: var(--muted); }

/* ---------- Trust strip ---------- */
.trust-strip {
    display: flex; gap: 0; flex-wrap: wrap;
    max-width: var(--page); margin: 0 auto; padding: 0 var(--gutter) 16px;
}
.trust-strip span {
    display: inline-flex; align-items: center; min-height: 34px; padding: 4px 14px;
    border: 1px solid var(--ink); margin: 0 -1px -1px 0;
    font-family: var(--mono); font-size: 12px; font-weight: 600;
}

/* ---------- Filter row ---------- */
.filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.filter-row a {
    display: inline-flex; align-items: center; min-height: 40px; padding: 6px 14px;
    border: 1.5px solid var(--ink); background: #fff; font-size: 14px; font-weight: 700;
}
.filter-row a:hover { background: var(--soft); }
.filter-row a.active { background: var(--ink); color: #fff; }

/* ---------- Sections ---------- */
.section, .page-head, .article { max-width: var(--page); margin: 0 auto; padding: 32px var(--gutter); }
.page-head { padding-top: 30px; padding-bottom: 24px; }
.page-head::after { content: ''; display: block; height: 1px; margin-top: 24px; background: var(--ink); }
.breadcrumbs {
    display: flex; gap: 8px; flex-wrap: wrap;
    max-width: var(--page); margin: 0 auto; padding: 16px var(--gutter) 0;
    color: var(--muted); font-family: var(--mono); font-size: 12px;
}
.breadcrumbs a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.section-heading {
    display: flex; justify-content: space-between; align-items: flex-end;
    gap: 16px; margin-bottom: 0; padding-bottom: 8px; border-bottom: 2px solid var(--ink);
}
.section-heading h2 { margin: 0; }
.section-heading .eyebrow { margin-bottom: 2px; }
.section-heading a { font-family: var(--mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.section-heading a::after { content: ' \2192'; }
.section-heading a:hover { color: var(--brand); text-decoration: underline; }
.section-heading + .cards, .section-heading + .feature-row, .section-heading + .list, .section-heading + .filter-row,
.section-heading + p, .section-heading + .place-groups-lead { margin-top: 18px; }

/* ---------- 活動列（方向 D 核心元件） ---------- */
.event-rows { border-top: 0; }
.event-row {
    position: relative; display: grid;
    grid-template-columns: 128px 72px minmax(0, 1fr) 190px 96px;
    gap: 16px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line);
    transition: background .12s;
}
.event-row:hover { background: var(--soft); }
.event-row[hidden] { display: none; }
.er-date { font: 600 15px/1.3 var(--mono); }
.city-tag { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.city-tag::before { content: ''; width: 10px; height: 10px; flex: none; background: var(--c); }
.er-main h3 { margin: 0; font-size: 17px; line-height: 1.45; }
.er-main h3 a::after { content: ''; position: absolute; inset: 0; }
.er-main p { margin: 2px 0 0; color: var(--muted); font-size: 14px; line-height: 1.5; }
.er-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.st { display: inline-flex; align-items: center; padding: 2px 8px; border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 600; white-space: nowrap; }
.st.tone-live { background: var(--ink); color: #fff; }
.st.tone-weekend { background: var(--brand); border-color: var(--brand); color: #fff; }
.st.tone-ended { border-color: var(--line); color: var(--muted); }
.st-adm { border-style: dashed; }
.er-thumb { width: 96px; height: 72px; background: var(--soft); overflow: hidden; }
.er-img { display: block; width: 100%; height: 100%; object-fit: cover; }

/* ---------- 城市馬賽克 ---------- */
.city-mosaic { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border: 1px solid var(--ink); border-top: 0; margin-top: 0; }
.city-mosaic a { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-top: 6px solid var(--c); border-right: 1px solid var(--line); transition: background .12s; }
.city-mosaic a:last-child { border-right: 0; }
.city-mosaic a:hover { background: var(--soft); }
.city-mosaic b { font-size: 23px; font-weight: 900; }
.city-mosaic span { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.city-mosaic strong { font: 600 13px var(--mono); color: var(--c); }

/* ---------- Cards（平面、黑線） ---------- */
.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.card, .form, .source-box, .answer-block, .empty, .feature-card { background: #fff; border: 1px solid var(--line); padding: 20px; }
.card { display: flex; flex-direction: column; overflow: hidden; border: 0; border-top: 2px solid var(--ink); padding: 14px 0 0; position: relative; }
.card.has-media { border-top: 0; padding-top: 0; }
.card > .card-media:first-child, .card > .media-wrap:first-child { margin: 0 0 12px; width: 100%; }
.card p { color: var(--muted); font-size: 14px; line-height: 1.65; flex: 1; margin: 6px 0; }
.card .meta { flex: 0 0 auto; }
.card h3 { font-size: 18px; line-height: 1.45; }
.card h3 a:hover, .card h4 a:hover { color: var(--brand); text-decoration: underline; }
.card-actions {
    display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap;
    gap: 8px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line);
    font-size: 14px; font-weight: 700;
}
.card-actions a { margin-left: auto; min-height: 32px; display: inline-flex; align-items: center; font-family: var(--mono); font-size: 13px; }
.card-actions a::after { content: ' \2192'; white-space: pre; }
.card-actions a:hover { color: var(--brand); }
.badge {
    display: inline-flex; align-items: center; padding: 2px 8px;
    border: 1.5px solid var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--ink); background: #fff;
}

/* ---------- Feature cards ---------- */
.feature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border: 1px solid var(--ink); }
.feature-card { display: flex; flex-direction: column; gap: 4px; min-height: 130px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.feature-card:nth-child(3n) { border-right: 0; }
.feature-card:hover { background: var(--soft); }
.feature-card > .card-media:first-child { display: none; }
.feature-card span { font-family: var(--mono); color: var(--muted); font-weight: 600; font-size: 12px; }
.feature-card strong { font-size: 20px; font-weight: 900; }
.feature-card small { color: var(--muted); font-size: 14px; line-height: 1.6; }

/* ---------- Muted band ---------- */
.muted { background: var(--soft); max-width: none; }
.muted > * { max-width: calc(var(--page) - var(--gutter) * 2); margin-left: auto; margin-right: auto; }

/* ---------- List ---------- */
.list { display: grid; gap: 0; }
.list-row {
    display: grid; grid-template-columns: 110px 1fr 160px; gap: 16px; padding: 14px 0;
    border-bottom: 1px solid var(--line); align-items: center; transition: background .12s;
}
.list-row.has-media { grid-template-columns: 96px 110px 1fr 160px; }
.list-row .list-media { aspect-ratio: 4 / 3; width: 96px; object-fit: cover; }
.list-row:hover { background: #fff; }
.muted .list-row:hover { background: #fff; }
.list-row span, .list-row small { color: var(--muted); font-size: 13px; }
.list-row span { font-family: var(--mono); font-weight: 600; font-size: 12px; }
.list-row strong { font-size: 16px; font-weight: 700; }

/* ---------- Split ---------- */
.split { display: grid; grid-template-columns: minmax(0,1fr) minmax(280px,420px); gap: 32px; align-items: start; }

/* ---------- Form ---------- */
.form { display: grid; gap: 14px; border: 2px solid var(--ink); }
.form label { display: grid; gap: 5px; font-size: 14px; font-weight: 700; }
.form input, .form textarea, .form select {
    width: 100%; min-height: 46px; border: 1.5px solid var(--ink);
    padding: 10px 12px; font: inherit; font-size: 16px; background: #fff;
}
.form textarea { min-height: 96px; }
.form input:focus, .form textarea:focus, .form select:focus { outline: 3px solid var(--brand); outline-offset: 0; }
.hp-field { position: absolute; left: -9999px; visibility: hidden; }

/* ---------- Facts ---------- */
.key-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 0; margin: 6px 0 4px; border: 1px solid var(--ink); }
.key-facts div { padding: 11px 14px; border-right: 1px solid var(--line); }
.key-facts div:last-child { border-right: 0; }
.key-facts span { display: block; font-family: var(--mono); color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.key-facts strong { font-size: 15px; font-weight: 700; line-height: 1.5; overflow-wrap: anywhere; }
.facts { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 0; margin-top: 20px; border-top: 2px solid var(--ink); }
.facts div { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line); }
.facts span { display: block; font-family: var(--mono); color: var(--muted); font-size: 12px; font-weight: 600; margin-bottom: 2px; }
.facts strong { font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.facts a { color: var(--brand); text-decoration: underline; }

/* ---------- 單頁資料卡版型（活動、地點、優惠） ---------- */
.detail-layout {
    display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 40px; align-items: start;
    max-width: var(--page); margin: 0 auto; padding: 22px var(--gutter) 10px;
}
.detail-main h1 { margin-bottom: 6px; }
.detail-main > .lead { margin: 0 0 4px; }
.fact-sheet { position: sticky; top: 132px; border: 2px solid var(--ink); background: #fff; }
.fact-sheet .fs-top { padding: 14px 18px; background: var(--c, var(--ink)); color: #fff; }
.fact-sheet .fs-top span { font: 600 12px var(--mono); letter-spacing: .06em; opacity: .92; }
.fact-sheet .fs-top b { display: block; margin-top: 4px; font: 600 28px/1.2 var(--mono); }
.fact-sheet dl { margin: 0; padding: 4px 18px 14px; }
.fact-sheet dt { margin-top: 10px; font: 600 12px var(--mono); color: var(--muted); }
.fact-sheet dd { margin: 0; font-weight: 500; line-height: 1.55; overflow-wrap: anywhere; }
.fact-sheet dd a { color: var(--brand); text-decoration: underline; font-size: 14px; }
.fs-actions { display: grid; border-top: 2px solid var(--ink); }
.fs-actions a, .fs-actions button {
    display: flex; justify-content: space-between; align-items: center; min-height: 48px; padding: 0 18px;
    border: 0; border-bottom: 1px solid var(--line); background: #fff; color: var(--ink);
    font: inherit; font-weight: 700; text-align: left; cursor: pointer; width: 100%;
}
.fs-actions a::after, .fs-actions button::after { content: '\2192'; font-family: var(--mono); }
.fs-actions > :last-child, .fs-actions form:last-child button { border-bottom: 0; }
.fs-actions .is-primary { background: var(--ink); color: #fff; }
.fs-actions a:hover, .fs-actions button:hover { background: var(--soft); }
.fs-actions .is-primary:hover { background: var(--brand); }
.fs-actions form { margin: 0; }
.detail-layout + .section { padding-top: 8px; }
.detail-reading.in-main { padding: 6px 0 0; max-width: none; }
.detail-reading h2 .num { font: 600 13px var(--mono); color: var(--muted); margin-right: 10px; }

/* ---------- Article ---------- */
.article { max-width: 880px; }
.article h1 { font-size: clamp(28px, 4vw, 40px); }
.article-meta {
    display: flex; gap: 14px; flex-wrap: wrap; color: var(--muted); font-family: var(--mono); font-size: 12px;
    border-top: 2px solid var(--ink); border-bottom: 1px solid var(--line); padding: 10px 0; margin: 18px 0;
}
.article-meta a { color: var(--ink); text-decoration: underline; }
.prose p { color: var(--ink-mid); line-height: 1.9; }
.prose li { line-height: 1.85; }
.prose a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.prose h3 { margin-top: 22px; }
.detail-reading { padding-top: 12px; padding-bottom: 20px; }
.detail-reading h2 { margin-top: 30px; font-size: 21px; }
.detail-reading h2:first-child { margin-top: 0; }

/* ---------- Detail components ---------- */
.answer-block { border: 2px solid var(--ink); background: var(--soft); }
.source-box { overflow-wrap: anywhere; border: 1px solid var(--ink); background: var(--soft); }
.source-box strong { display: block; font-size: 15px; font-weight: 900; margin-bottom: 8px; }
.source-box > strong:first-child::before, .source-box > h2:first-child::before { content: 'SOURCE  '; font: 600 11px var(--mono); color: var(--muted); white-space: pre; letter-spacing: .08em; }
.source-box p { color: var(--muted); font-size: 14px; margin: 5px 0; }
.source-box a { color: var(--brand); font-weight: 700; text-decoration: underline; }
.source-box ul { margin: 8px 0; padding-left: 20px; }
.source-box ul li { margin: 4px 0; color: var(--ink-mid); font-size: 14px; }
.source-details { margin-top: 8px; color: var(--muted); font-size: 14px; }
.source-details summary { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 12px; border: 1.5px solid var(--ink); font-weight: 700; cursor: pointer; }
.source-details[open] summary { margin-bottom: 8px; }
.related-links { margin-top: 24px; padding: 18px 20px; border: 1px solid var(--ink); }
.related-links h2 { margin-bottom: 10px; font-size: 19px; }
.related-links ul { margin: 0; padding: 0; list-style: none; }
.related-links li { padding: 10px 0; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.related-links li:first-child { border-top: 0; }
.related-links a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.related-links a:hover { color: var(--brand); }
.related-links > a { display: inline-flex; align-items: center; min-height: 36px; margin: 4px 14px 4px 0; }
.status-note { margin-top: 16px; padding: 12px 16px; border-left: 4px solid var(--ink); background: var(--soft); color: var(--ink-mid); font-size: 14px; }
.next-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.admin-thumb { width: 160px; max-height: 110px; object-fit: cover; border: 1px solid var(--line); }
.empty { padding: 30px 24px; text-align: center; color: var(--muted); font-size: 15px; border: 1.5px dashed #bdbdbd; background: #fafafa; }

/* ---------- Authors ---------- */
.avatar { width: 72px; height: 72px; border-radius: 50%; flex: none; object-fit: cover; }
.author-head { display: flex; gap: 18px; align-items: center; margin-bottom: 8px; }
.author-head h1 { margin-bottom: 0; }
.card > .avatar:first-child { margin-bottom: 12px; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 56px; padding: 34px var(--gutter) 24px; border-top: 2px solid var(--ink); background: #fff; color: var(--ink-mid); }
.footer-main { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 3.2fr); gap: 28px; align-items: start; max-width: calc(var(--page) - var(--gutter) * 2); margin: 0 auto; padding-bottom: 24px; }
.footer-columns { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 1180px) and (min-width: 861px) {
    .footer-main { grid-template-columns: 1fr; gap: 20px; }
    .footer-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 22px; }
}
.site-footer .footer-col { display: flex; flex-direction: column; flex-wrap: nowrap; gap: 0; }
.footer-heading { margin: 0 0 6px; padding-bottom: 6px; border-bottom: 1px solid var(--ink); font-family: var(--mono); font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--ink); }
.site-footer .footer-col a { padding: 5px 0; font-size: 14px; min-height: 36px; display: flex; align-items: center; }
.site-footer .footer-col a:hover { text-decoration: underline; }
.site-footer .footer-cities { display: grid; grid-template-columns: repeat(2, max-content); column-gap: 18px; row-gap: 0; align-content: start; }
.site-footer .footer-cities .footer-heading { grid-column: 1 / -1; }
.site-footer .footer-cities a::before { content: ''; width: 8px; height: 8px; margin-right: 7px; background: var(--c); }
.footer-main > div > strong .brand-mark { width: 30px; height: 30px; flex: none; }
.footer-main > div > strong { display: flex; align-items: center; gap: 8px; font-size: 18px; font-weight: 900; color: var(--ink); margin-bottom: 6px; }
.footer-main > div > p { font-size: 14px; margin: 0; color: var(--muted); }
.site-footer nav { display: flex; gap: 4px; flex-wrap: wrap; }
.footer-legal { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; max-width: calc(var(--page) - var(--gutter) * 2); margin: 0 auto; padding-top: 16px; border-top: 1px solid var(--line); font-family: var(--mono); font-size: 12px; color: var(--muted); }
.footer-legal p { margin: 0; }
.footer-legal nav a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 8px; font-size: 13px; font-family: 'Noto Sans TC', sans-serif; }
.footer-legal nav a:hover { text-decoration: underline; }

/* ---------- Back to top ---------- */
.back-to-top {
    position: fixed; right: 18px; bottom: 18px; z-index: 20;
    display: inline-flex; align-items: center; justify-content: center;
    width: 46px; height: 46px; border: 2px solid var(--ink); background: #fff; color: var(--ink); font-size: 0;
}
.back-to-top::before { content: '\2191'; font: 600 18px var(--mono); }
.back-to-top:hover { background: var(--ink); color: #fff; }

/* ---------- Events page ---------- */
.month-nav { display: flex; flex-wrap: wrap; gap: 0; margin-top: 16px; }
.month-nav a { display: inline-flex; align-items: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--ink); margin: 0 -1px -1px 0; font-family: var(--mono); font-size: 13px; font-weight: 600; background: #fff; }
.month-nav a:hover { background: var(--ink); color: #fff; }
.event-filters { display: grid; gap: 8px; padding-top: 18px; padding-bottom: 6px; }
.event-filters .filter-row { margin: 0; }
.filter-label { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); margin-right: 6px; min-width: 64px; }
.chip { font: inherit; font-size: 14px; font-weight: 700; min-height: 40px; padding: 6px 14px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; }
.chip:hover { background: var(--soft); }
.chip.is-active { background: var(--ink); color: #fff; }
.filter-note { margin: 0; font-size: 12px; color: var(--muted); }
.badge-admission { border-style: dashed; }
.month-head { display: flex; align-items: baseline; gap: 14px; }
.month-head .mono { font-size: 13px; color: var(--muted); font-weight: 600; }
.mini-calendar { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0; max-width: 360px; margin: 16px 0; font-family: var(--mono); font-size: 12px; text-align: center; border-left: 1px solid var(--line); border-top: 1px solid var(--line); }
.mini-calendar > span { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.mini-calendar .mc-head { font-weight: 600; color: var(--muted); padding: 2px 0; }
.mini-calendar .mc-day { padding: 3px 0; color: var(--muted); }
.mini-calendar .mc-day.has-events { background: var(--ink); color: #fff; font-weight: 600; }
.mini-calendar .mc-day small { display: block; font-size: 10px; line-height: 1; }
[data-event-card][hidden] { display: none; }
.season-banner { display: none; }

/* ---------- City page groups ---------- */
.place-groups-lead { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0 0 6px; }
.place-group { margin-top: 28px; }
.place-group-head { margin-bottom: 12px; padding-left: 12px; border-left: 6px solid var(--c, var(--ink)); }
.place-group-head h3 { font-size: 20px; margin-bottom: 2px; }
.place-group-head p { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 0; }
.card h4 { font-size: 17px; font-weight: 700; line-height: 1.4; margin: 0 0 6px; }
.place-group-reports { margin: 14px 0 0; font-size: 14px; line-height: 1.7; color: var(--muted); overflow-wrap: anywhere; }
.place-group-reports p { margin: 0 0 4px; font: 600 12px var(--mono); color: var(--ink); }
.place-group-reports ul { margin: 0; padding-left: 1.2em; }
.place-group-reports li { margin: 2px 0; }
.place-group-reports a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.city-head::before { content: ''; display: block; height: 8px; margin-bottom: 18px; background: var(--c, var(--ink)); }

/* ---------- Service and pricing pages ---------- */
.plan-price { font-family: var(--mono); font-size: 17px; font-weight: 600; flex: 0 0 auto; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.price-table { width: 100%; border-collapse: collapse; background: #fff; font-size: 14px; border-top: 2px solid var(--ink); }
.price-table th, .price-table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.price-table th { font-family: var(--mono); font-size: 12px; font-weight: 600; color: var(--muted); background: var(--soft); }
.price-table td a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.price-table .nowrap { white-space: nowrap; font-weight: 700; font-family: var(--mono); }

/* ---------- 2026-10-06 元件（日期徽章、時間標籤、提醒、分享、設施、輪播） ---------- */
.media-wrap { position: relative; overflow: hidden; }
.media-wrap > .media-fill { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.date-badge { position: absolute; left: 0; top: 0; z-index: 1; padding: 4px 9px; background: var(--ink); color: #fff; font: 600 13px var(--mono); }
.time-tag { position: absolute; left: 0; bottom: 0; z-index: 1; padding: 2px 9px; background: #fff; color: var(--ink); font: 600 12px var(--mono); border: 1.5px solid var(--ink); border-left: 0; border-bottom: 0; }
.time-tag.tone-live { background: var(--ink); color: #fff; border-color: var(--ink); }
.time-tag.tone-weekend { background: var(--brand); color: #fff; border-color: var(--brand); }
.time-tag.tone-ended { color: var(--muted); }
.kf-link { display: inline-block; margin-top: 2px; font-size: 13px; font-weight: 700; color: var(--brand); text-decoration: underline; }
.notice-box { margin: 14px 0 0; padding: 12px 16px; background: #fff8e1; border: 1.5px solid #8a6200; color: #3d2c00; font-size: 14px; line-height: 1.7; }
.notice-box strong { display: block; margin-bottom: 4px; font-size: 14px; }
.notice-box ul { margin: 4px 0 0; padding-left: 1.2em; }
.action-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 6px; }
.source-line { margin: 6px 0 10px; color: var(--muted); font-size: 13px; }
.source-line a { color: var(--ink); font-weight: 700; text-decoration: underline; }
.share-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 8px 0 14px; }
.share-label { font: 600 12px var(--mono); color: var(--muted); margin-right: 4px; }
.share-btn { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.share-btn:hover { background: var(--soft); }
.share-btn[hidden] { display: none; }
.facilities { margin: 14px 0 4px; padding: 12px 14px; border: 1px solid var(--ink); }
.facilities strong { display: block; font-size: 14px; margin-bottom: 6px; }
.facilities ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; padding: 0; list-style: none; }
.facilities li { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border: 1px solid var(--ink); font-size: 13px; font-weight: 700; }
.facilities li::before { content: '\2713'; font-size: 12px; }
.facilities small { color: var(--muted); font-size: 12px; }
.rail-block { margin: 30px 0 8px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); gap: 16px; overflow-x: auto; padding: 16px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail-card { scroll-snap-align: start; display: flex; flex-direction: column; gap: 4px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.rail-card:hover strong { text-decoration: underline; }
.rail-card .card-media { aspect-ratio: 3 / 2; margin-bottom: 6px; }
.rail-card strong { font-size: 15px; line-height: 1.45; }
.rail-card small { color: var(--muted); font-size: 13px; }
.season-label { font: 600 13px var(--mono); color: var(--muted); }

/* ---------- Tablet & mobile ---------- */
@media (max-width: 1080px) {
    .event-row { grid-template-columns: 116px 64px minmax(0, 1fr) 88px; }
    .er-tags { grid-column: 3; grid-row: 2; margin-top: -6px; }
    .er-thumb { grid-column: 4; grid-row: 1 / span 2; width: 88px; height: 66px; }
    .detail-layout { grid-template-columns: 300px minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 860px) {
    html { scroll-padding-top: 72px; }
    html.menu-open { overflow: hidden; }
    .site-header { grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: none; height: 58px; column-gap: 8px; padding: 0 var(--gutter); background: #fff; }
    .brand { grid-area: auto; grid-column: 1; grid-row: 1; height: 58px; font-size: 19px; }
    .brand .brand-mark { width: 30px; height: 30px; }
    .main-nav, .site-search, .account-nav { display: none; }
    .search-toggle {
        grid-column: 2; grid-row: 1; display: inline-flex; align-items: center; justify-content: center;
        min-width: 44px; height: 44px; padding: 0 12px; border: 2px solid var(--ink);
        font-size: 14px; font-weight: 700;
    }
    .menu-toggle {
        grid-column: 3; grid-row: 1; display: inline-flex; align-items: center; gap: 7px; height: 44px; padding: 0 14px 0 12px;
        border: 2px solid var(--ink); background: var(--ink); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer;
    }
    .menu-bars, .menu-bars::before, .menu-bars::after { display: block; width: 18px; height: 2px; background: currentColor; transition: transform .18s, opacity .18s; }
    .menu-bars { position: relative; }
    .menu-bars::before, .menu-bars::after { content: ''; position: absolute; left: 0; }
    .menu-bars::before { top: -6px; }
    .menu-bars::after { top: 6px; }
    .menu-toggle[aria-expanded="true"] .menu-bars { background: transparent; }
    .menu-toggle[aria-expanded="true"] .menu-bars::before { transform: translateY(6px) rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-bars::after { transform: translateY(-6px) rotate(-45deg); }
    .mobile-menu { display: block; position: fixed; z-index: 19; top: 58px; left: 0; right: 0; bottom: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 16px 16px 40px; background: #fff; border-top: 1px solid var(--ink); }
    .mobile-menu[hidden] { display: none; }

    .today-panel { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .today-panel > *:first-child { grid-column: 1 / -1; padding: 20px 0 16px; border-right: 0; border-bottom: 1px solid var(--line); }
    .today-panel > * { padding: 14px 12px; }
    .today-panel > .stat:nth-child(2) { padding-left: 0; }
    .stat b { font-size: 34px; }
    .stat small { font-size: 12px; }

    .hero p, .page-head p, .lead { font-size: 16px; }
    .hero-actions .button { flex: 1; min-width: 120px; }
    .task-grid { grid-template-columns: 1fr 1fr; }
    .task-card, .task-card:nth-child(3n+2), .task-card:nth-child(3n+3) { padding-left: 0; border-left: 0; }
    .task-card:nth-child(2n) { padding-left: 14px; border-left: 1px solid var(--line); }
    .task-card strong { font-size: 16px; }

    .event-row { grid-template-columns: minmax(0, 1fr) 84px; gap: 2px 12px; padding: 12px 0; }
    .er-date { grid-column: 1; font-size: 13px; }
    .city-tag { grid-column: 1; font-size: 13px; }
    .er-main { grid-column: 1; }
    .er-main h3 { font-size: 16px; }
    .er-main p { font-size: 13px; }
    .er-tags { grid-column: 1; grid-row: auto; margin-top: 4px; }
    .er-thumb { grid-column: 2; grid-row: 1 / span 4; width: 84px; height: 84px; align-self: start; }
    .city-mosaic { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .city-mosaic a:nth-child(3n) { border-right: 0; }
    .city-mosaic a:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
    .city-mosaic b { font-size: 20px; }

    .cards { grid-template-columns: 1fr; gap: 0; }
    .card { padding: 14px 0; border-top: 0; border-bottom: 1px solid var(--line); }
    .card.has-media { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; align-items: start; padding: 14px 0; }
    .card.has-media > .card-media:first-child, .card.has-media > .media-wrap:first-child { grid-row: 1 / span 4; aspect-ratio: 1 / 1; margin: 0; }
    .card.has-media > :not(.card-media):not(.media-wrap) { grid-column: 2; }
    .card.has-media > .card-actions { grid-column: 1 / -1; }
    .card.has-media p:not(.meta) { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .card.has-media .date-badge { padding: 2px 5px; font-size: 11px; }
    .card.has-media .time-tag { padding: 1px 5px; font-size: 10px; }
    .card h3 { font-size: 16px; }
    .rail { grid-auto-columns: 72%; margin: 0 -16px; padding: 14px 16px 10px; }
    .action-bar .button { flex: 1 1 auto; }
    .feature-row { grid-template-columns: 1fr; }
    .feature-card { border-right: 0; min-height: 0; }
    .key-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .key-facts div:nth-child(2n) { border-right: 0; }
    .key-facts div { border-bottom: 1px solid var(--line); }
    .facts { grid-template-columns: 1fr; }
    .facts div { display: grid; grid-template-columns: 86px minmax(0, 1fr); align-items: start; gap: 10px; padding: 10px 0; }
    .facts span { margin-bottom: 0; padding-top: 1px; }
    .list-row, .list-row.has-media { grid-template-columns: 80px 1fr; }
    .list-row.has-media { grid-template-columns: 88px 1fr; }
    .list-row.has-media .list-media { width: 88px; grid-row: 1 / span 2; }
    .list-row.has-media > span { display: none; }
    .list-row small { display: none; }
    .split { grid-template-columns: 1fr; }
    .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 16px; }
    .detail-main { display: contents; }
    .detail-main > * { order: 3; }
    .detail-main > .eyebrow, .detail-main > h1, .detail-main > .source-line, .detail-main > .next-up { order: 1; }
    .fact-sheet { position: static; order: 2; margin: 6px 0 4px; }
    .entity-media .entity-image, .entity-media .media-ph { aspect-ratio: 4 / 3; }
    .page-head { padding-top: 22px; }
    .section, .page-head, .article { padding-top: 24px; padding-bottom: 24px; }
    .footer-main { grid-template-columns: 1fr; gap: 20px; }
    .footer-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; }
    .footer-legal { flex-direction: column; align-items: flex-start; }
    .site-footer { padding-bottom: 80px; }
    .back-to-top { right: 12px; bottom: 12px; }
    h1 { font-size: 27px; }
    .article h1 { font-size: 26px; }
}
@media (max-width: 480px) {
    .task-grid { grid-template-columns: 1fr; }
    .task-card:nth-child(2n) { padding-left: 0; border-left: 0; }
    .facts div { grid-template-columns: 72px minmax(0, 1fr); }
    .search-panel { grid-template-columns: 1fr; }
    .search-panel .button { width: 100%; }
    .price-table { min-width: 560px; }
    .brand small { display: none; }
    .stat b { font-size: 30px; }
}
.tight-top { padding-top: 0; }

/* 404 等頁的獨立搜尋表單 */
form.hero-search:not(.search-panel) { display: grid; grid-template-columns: minmax(0, 1fr) auto; max-width: 560px; margin: 18px 0 14px; border: 2px solid var(--ink); }
form.hero-search:not(.search-panel) input { min-width: 0; min-height: 48px; border: 0; padding: 8px 14px; font: inherit; font-size: 16px; }
form.hero-search:not(.search-panel) .button { border: 0; }

/* 城市頁活動概況（2026-10-18 計畫 #2）與已結束活動的接棒區塊（#3） */
.city-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.city-head::after { display: none; }
.next-up { margin: 14px 0 6px; border: 2px solid var(--ink); }
.next-up-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 16px; background: var(--ink); color: #fff; }
.next-up-head strong { font-size: 16px; }
.next-up-head a { font: 600 12px var(--mono); color: #fff; text-decoration: underline; white-space: nowrap; }
.next-up .event-row { grid-template-columns: 110px minmax(0, 1fr) 72px; padding: 10px 16px; }
.next-up .event-row .city-tag, .next-up .event-row .er-tags { display: none; }
.next-up .event-row .er-thumb { width: 72px; height: 54px; }
.next-up .event-row:last-child { border-bottom: 0; }
@media (max-width: 860px) {
    .city-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .city-stats > *:first-child { grid-column: auto; padding: 14px 12px 14px 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--ink); }
    .city-stats > .stat:nth-child(odd) { padding-left: 0; }
    .city-stats > .stat:nth-child(2n) { border-right: 0; }
    .next-up .event-row { grid-template-columns: minmax(0, 1fr) 64px; padding: 10px 12px; }
    .next-up .event-row .er-thumb { grid-row: 1 / span 2; width: 64px; height: 64px; }
}

/* 英文活動入口（2026-10-18 試做）與活動頁英文摘要 */
.en-list { margin-top: 0; }
.en-item { display: grid; grid-template-columns: 150px minmax(0, 1fr) 120px; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.en-date { font: 600 15px/1.4 var(--mono); }
.en-city { margin: 0 0 4px; font-size: 14px; color: var(--muted); }
.en-item h3 { margin: 0 0 6px; font-size: 18px; }
.en-item h3 a:hover { color: var(--brand); text-decoration: underline; }
.en-item p { margin: 0 0 6px; line-height: 1.65; }
.en-facts { margin: 4px 0 6px; padding-left: 18px; font-size: 14px; color: var(--ink-mid); }
.en-links { font: 600 13px var(--mono); }
.en-links a { text-decoration: underline; }
.en-thumb { width: 120px; height: 90px; background: var(--soft); overflow: hidden; }
.en-block { margin-top: 26px; padding: 16px 18px; border: 1px solid var(--ink); background: var(--soft); }
.en-block h2 { margin: 0 0 6px; font-size: 18px; }
.en-block p { margin: 4px 0; line-height: 1.65; }
.en-block a { text-decoration: underline; }
.event-qa { margin-top: 26px; }
@media (max-width: 860px) {
    .en-item { grid-template-columns: minmax(0, 1fr) 84px; gap: 4px 12px; }
    .en-date { grid-column: 1; font-size: 13px; }
    .en-body { grid-column: 1; }
    .en-thumb { grid-column: 2; grid-row: 1 / span 2; width: 84px; height: 84px; }
}

/* 2026-10-19 靜態部署：表單改寄信、日期重算用的隱藏狀態、站內搜尋結果 */
[hidden], [data-gone], [data-over] { display: none !important; }
.mail-cta { display: grid; gap: 12px; align-content: start; padding: 20px; border: 2px solid var(--ink); background: #fff; }
.mail-cta-lead { margin: 0; font-weight: 700; }
.mail-cta ul { margin: 0; padding-left: 1.2em; display: grid; gap: 4px; font-size: 14px; }
.mail-cta .button { justify-self: start; }
.mail-cta .meta { margin: 0; font-size: 13px; }
.search-group + .search-group { margin-top: 28px; }
