:root {
    color-scheme: light;
    --ink: #142f2e;
    --muted: #415958;
    --green: #155e52;
    --deep: #104439;
    --line: #ccd9d4;
    --mist: #f3f8f5;
    --gold: #f1dbad;
    --white: #fff;
    font-family: "Microsoft JhengHei", "PingFang TC", "Noto Sans TC", system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.55;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--white); }
:lang(en) { font-family: "Inter", "Microsoft JhengHei", system-ui, sans-serif; }
a { color: var(--green); text-underline-offset: .2em; }
a:hover { text-decoration-thickness: .14em; }
img { max-width: 100%; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
h1, h2, p { margin-top: 0; }
h1, h2 { line-height: 1.2; }
h2 { letter-spacing: -.015em; }
main { min-height: 42vh; }
:focus-visible { outline: 3px solid #8a3600; outline-offset: 3px; }
.theme-b { --ink: #142f3b; --muted: #445963; --green: #21576c; --deep: #123846; --line: #ccd9df; --mist: #edf5f7; }
.wrap { width: min(100% - 64px, 1220px); margin-inline: auto; }
.sr-only, .skip:not(:focus) {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
    clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip:focus { position: fixed; z-index: 5; inset: 12px auto auto 12px; padding: .6rem 1rem; background: #fff; }

.utility { background: var(--deep); color: #fff; font-size: .82rem; }
.utility-inner { display: flex; align-items: center; justify-content: space-between; min-height: 38px; gap: 1rem; }
.utility-links, .utility-links a { display: flex; align-items: center; }
.utility-links { gap: clamp(.8rem, 2.3vw, 1.7rem); }
.utility-links a { min-height: 34px; color: #fff; text-decoration: none; }
.utility-links a:hover { text-decoration: underline; }
.utility :focus-visible, footer :focus-visible { outline-color: #ffe5a4; }
.masthead { background: #fff; }
.mast-inner { display: flex; align-items: center; justify-content: space-between; gap: .75rem 2rem; min-height: 91px; padding-block: 12px; }
.brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; }
.brand img { display: block; width: min(385px, 100%); height: auto; }
.nav-bar { border-top: 1px solid #e6edea; border-bottom: 1px solid var(--line); background: #fff; }
.nav-inner { display: flex; align-items: center; justify-content: flex-start; flex-wrap: wrap; gap: .15rem clamp(.7rem, 2.6vw, 2.25rem); }
.nav-inner > a { display: inline-flex; align-items: center; min-height: 51px; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 3px solid transparent; padding-block: 5px 2px; }
.nav-inner > a:hover, .nav-inner > a[aria-current] { border-bottom-color: var(--green); }
.access-key { color: inherit; font-weight: 700; letter-spacing: .09em; }

.search-form { display: grid; align-items: end; gap: .8rem; }
.search-form label { font-weight: 700; }
.header-search { width: min(100%, 276px); }
.input-group { display: flex; }
input:not([type="hidden"]), select, textarea { min-width: 0; border: 1px solid #899d97; border-radius: 5px; color: var(--ink); background: #fff; padding: .6rem .75rem; }
input::placeholder { opacity: 1; color: #526664; }
.input-group input { flex: 1; border-radius: 5px 0 0 5px; }
.input-group button { display: grid; place-items: center; min-width: 44px; min-height: 42px; border: 1px solid var(--deep); border-radius: 0 5px 5px 0; background: var(--deep); color: #fff; padding-inline: .85rem; }
.input-group button:hover { background: var(--green); }
.header-search input { font-size: .87rem; }
.design-switch { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; padding-block: 19px 0; font-size: .81rem; }
.design-switch > span { color: var(--muted); margin-right: .4rem; font-weight: 700; }
.design-switch a { padding: 5px 12px; border: 1px solid #91aaa1; border-radius: 50px; text-decoration: none; background: #fff; color: var(--deep); }
.design-switch a[aria-current] { background: var(--deep); border-color: var(--deep); color: #fff; }
.design-switch a:hover { text-decoration: underline; }

.panorama {
    background: linear-gradient(90deg, #f1f6ed 1%, #eff5ee 22%, #eff5eee8 35%, #f1f5ed13 78%), #e6f0ec url("/assets/mountain-mist.jpg") center 49% / cover;
    border-bottom: 1px solid var(--line);
}
.panorama-inner { min-height: 445px; display: grid; grid-template-rows: auto 1fr; }
.panorama .hero-copy { align-self: center; }
.hero-copy { padding-block: 35px 54px; }
.hero-copy .eyebrow { color: var(--green); font-size: .9rem; letter-spacing: .18em; font-weight: 800; margin-bottom: 1rem; }
.hero-copy h1 { font-size: clamp(2.85rem, 5.4vw, 5rem); line-height: 1.08; letter-spacing: -.065em; margin: 0 0 .3em; font-weight: 800; }
.hero-copy > p:not(.eyebrow) { max-width: 28rem; color: var(--muted); font-size: clamp(1rem, 1.44vw, 1.17rem); margin: 0 0 1.35rem; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: .65rem; min-height: 44px; padding: .55rem .95rem; border: 1px solid transparent; border-radius: 5px; text-decoration: none; font-weight: 750; font-size: .92rem; text-align: center; }
.button:hover { text-decoration: underline; }
.primary { background: var(--deep); border-color: var(--deep); color: #fff; }
.quiet { background: #fff; border-color: #829b91; color: var(--deep); }
.secondary { background: #fff; border-color: var(--deep); color: var(--deep); }
.hero-copy .button { margin: .15rem .35rem .15rem 0; }
.split-hero { display: grid; grid-template-columns: 1fr 1.06fr; margin-top: 19px; overflow: hidden; background: var(--deep); color: #fff; border-radius: 14px; }
.split-hero .hero-copy { padding: clamp(26px, 4vw, 57px); }
.split-hero .hero-image { background: linear-gradient(90deg, #1238465c, transparent 45%), url("/assets/mountain-valley.jpg") center / cover; min-height: 375px; }
.split-hero .hero-copy .eyebrow { color: #ffe2a5; }
.split-hero .hero-copy > p:not(.eyebrow) { color: #ecf5f6; }
.split-hero .primary { background: #f8e2af; border-color: #f8e2af; color: #302808; }
.split-hero .quiet { background: transparent; border-color: #a9c4ca; color: #fff; }
.split-hero :focus-visible { outline-color: #ffe5a4; }

.home-body { padding-top: 34px; padding-bottom: 60px; }
.home-grid { display: grid; align-items: stretch; grid-template-columns: 1.94fr 1fr; gap: 2rem; }
.section-heading { display: flex; flex-wrap: wrap; gap: .35rem 1rem; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--green); padding-bottom: .66rem; }
.section-heading h2, .quick-section h2 { font-size: clamp(1.35rem, 2.5vw, 1.8rem); margin: 0; }
.inline-action { display: inline-flex; align-items: center; gap: .55rem; font-weight: 700; font-size: .9rem; text-decoration: none; }
.inline-action:hover { text-decoration: underline; }
.news-list { margin: 0; padding: 0; list-style: none; }
.news-list li { display: grid; grid-template-columns: minmax(5.8rem, auto) 1fr auto; align-items: baseline; gap: .75rem; border-bottom: 1px solid var(--line); padding: .85rem 0; }
.category-tag { justify-self: start; color: var(--deep); background: var(--mist); font-size: .76rem; font-weight: 700; padding: .15rem .55rem; border-radius: 4px; }
.news-list a { color: var(--ink); font-weight: 750; text-decoration: none; display: inline-block; }
.news-list a:hover { text-decoration: underline; }
.news-list p { color: var(--muted); font-size: .85rem; max-width: 40rem; margin: .19rem 0 0; }
.news-list li > span:last-child { color: var(--green); }
.award-panel { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: .7rem; border: 1px solid #d7caa9; border-radius: 10px; padding: clamp(1.15rem, 2.7vw, 2rem); background: #f8f2e2; }
.award-panel img { width: 139px; height: auto; margin-bottom: .1rem; }
.award-panel h2 { margin: 0; font-size: clamp(1.25rem, 2.25vw, 1.75rem); }
.award-panel p { margin: 0 0 .25rem; color: #4d5043; font-size: .94rem; }
.quick-section { margin-top: 35px; }
.theme-b .quick-section { margin: 0 0 35px; }
.quick-section h2 { margin-bottom: .75rem; }
.quick-links { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .65rem; list-style: none; margin: 0; padding: 0; }
.quick-links a { display: grid; grid-template-columns: auto 1fr auto; height: 100%; align-items: center; gap: .6rem; padding: .7rem; border: 1px solid var(--line); border-radius: 6px; background: var(--mist); text-decoration: none; font-weight: 750; }
.quick-links a:hover { text-decoration: underline; }
.quick-icon { display: grid; place-items: center; height: 34px; width: 34px; border-radius: 100%; background: #fff; font-size: 1.2rem; color: var(--deep); }

.interior-head { background: var(--mist); border-bottom: 1px solid var(--line); padding-block: 26px 36px; }
.breadcrumb { color: var(--muted); font-size: .87rem; margin-bottom: .95rem; }
.breadcrumb a { color: var(--deep); }
.interior-head h1 { margin: 0; font-size: clamp(1.9rem, 5.2vw, 3.1rem); }
.interior-head p { color: var(--muted); margin: .7rem 0 0; max-width: 60ch; }
.interior-body { padding-block: 28px 60px; }
.listing { list-style: none; margin: 0; padding: 0; max-width: 980px; }
.listing-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 85px; border-bottom: 1px solid var(--line); padding-block: .9rem; }
.listing-item h2 { font-size: 1.15rem; margin: 0 0 .35rem; }
.listing-item p { margin: 0; color: var(--muted); }
.topics, .actions { display: flex; flex-wrap: wrap; gap: .55rem; align-items: stretch; }
.actions { margin-top: 1.35rem; }
.topic { display: inline-flex; align-items: center; border: 1px solid #89a79a; background: var(--mist); padding: .5rem .7rem; min-height: 42px; border-radius: 5px; font-size: .91rem; text-decoration: none; }
.topic:hover { text-decoration: underline; }
.related { margin-top: 2rem; }
.related h2 { font-size: 1.25rem; }
.related-links { padding-inline-start: 1.2rem; }
.related-links a { display: inline-flex; align-items: center; min-height: 32px; }
.goal-grid, .map-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .65rem; }
.prose { max-width: 74ch; line-height: 1.75; overflow-wrap: anywhere; }
.map-card { border: 1px solid var(--line); padding: 1rem; border-radius: 6px; }
.map-card h2 { margin-bottom: .6rem; font-size: 1.15rem; }
.map-card .related-links { margin: 0; }
.notice { border-left: 4px solid var(--green); background: var(--mist); padding: .75rem 1rem; margin-block: 1rem; }
.notice.error { border-color: #a02624; color: #711614; background: #fff1ec; }
.search-filters, .field-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; }
.search-filters label, .field-pair label { display: block; }
.search-filters select, .field-pair input, .field-pair select { width: 100%; }
.page-search { max-width: 680px; padding: 1rem; border: 1px solid var(--line); border-radius: 8px; background: var(--mist); }
.page-search label { margin-bottom: .25rem; }
.result-count { color: var(--muted); margin: 1.25rem 0 .3rem; }

.workspace-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; }
.workspace-grid a { display: grid; gap: .5rem; align-content: start; border: 1px solid var(--line); border-radius: 8px; padding: 1rem; text-decoration: none; color: var(--ink); }
.workspace-grid a:hover strong { text-decoration: underline; }
.workspace-grid a[aria-current] { border-color: var(--green); box-shadow: inset 0 0 0 1px var(--green); background: var(--mist); }
.workspace-grid strong { color: var(--deep); font-size: 1.17rem; }
.workspace-panel { margin-top: 1rem; padding: 1.1rem; background: var(--mist); border-radius: 8px; overflow-wrap: anywhere; }
.workspace-panel li + li { margin-top: .55rem; }
.editor-grid { display: grid; grid-template-columns: 1.5fr 1fr; align-items: start; gap: 1rem; }
.editor-form { display: grid; gap: .55rem; max-width: 850px; border: 1px solid var(--line); border-radius: 8px; padding: clamp(.85rem, 2vw, 1.45rem); }
.editor-form label { font-weight: 700; }
.editor-form p, .draft-panel, .notice { margin-top: 0; }
.drafts { list-style: none; padding: 0; }
.draft-item { display: grid; gap: .35rem; border-bottom: 1px solid var(--line); padding-bottom: .65rem; }
.draft-item span { font-size: .83rem; color: var(--muted); }

footer { background: var(--deep); color: #fff; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; column-gap: 2rem; padding-block: 28px; }
.footer-inner p { margin: .45rem 0; color: #e5efeb; }
.footer-inner a { color: #fff; min-height: 33px; display: inline-flex; align-items: center; }
.footer-inner nav { display: flex; flex-wrap: wrap; gap: .2rem 1.1rem; }

@media (max-width: 870px) {
    .wrap { width: min(100% - 38px, 1220px); }
    .home-grid { gap: 1rem; }
    .split-hero { grid-template-columns: 1fr 48%; }
    .quick-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 650px) {
    .wrap { width: calc(100% - 28px); }
    .utility-inner { flex-wrap: wrap; gap: 0; padding-top: .3rem; }
    .utility-inner > span { width: 100%; }
    .mast-inner { align-items: flex-start; flex-direction: column; }
    .brand img { width: min(345px, 100%); }
    .header-search { width: 100%; }
    .nav-inner { gap: 0 .8rem; }
    .nav-inner > a { min-height: 37px; font-size: .88rem; }
    .panorama { background-position: 58% center; background-image: linear-gradient(90deg, #eff5edf8, #eff5eddc 60%, #eff5ed8c), url("/assets/mountain-mist.jpg"); }
    .panorama-inner { min-height: auto; }
    .hero-copy { padding-block: 40px 42px; }
    .hero-copy h1 { font-size: clamp(2.25rem, 9vw, 3.3rem); }
    .split-hero, .home-grid, .editor-grid { grid-template-columns: 1fr; }
    .split-hero .hero-image { min-height: 125px; }
    .news-list li { grid-template-columns: 1fr auto; gap: .3rem .7rem; }
    .news-list .category-tag { grid-column: 1 / -1; }
    .workspace-grid, .map-grid { grid-template-columns: 1fr; }
    .goal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .quick-links a { grid-template-columns: auto 1fr; }
    .quick-links a > span:last-child { display: none; }
    .field-pair { grid-template-columns: 1fr; }
}

@media (max-width: 360px) {
    .goal-grid, .search-filters { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { scroll-behavior: auto !important; }
}
