/* Guide pages (generated by scripts/build-pages.mjs). Plain CSS, no external fonts or scripts. */
:root { --navy: #1E293B; --navy9: #0F172A; --jade: #059669; --jade7: #047857; --jade50: #ECFDF5; --sand: #D97706; --slate: #64748B; --ink: #334155; --line: #E2E8F0; --bg: #F8FAFC; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: "Noto Sans HK", "PingFang HK", "Microsoft JhengHei", system-ui, -apple-system, "Segoe UI", sans-serif; color: var(--navy); background: var(--bg); line-height: 1.7; }
a { color: var(--jade7); }
.wrap { max-width: 960px; margin: 0 auto; padding: 0 20px; }
.site-head { background: rgba(255,255,255,.95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; backdrop-filter: blur(8px); }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; color: var(--navy); text-decoration: none; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site-nav { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.site-nav a { font-size: 14px; font-weight: 700; text-decoration: none; color: var(--navy); padding: 8px 12px; border-radius: 12px; }
.site-nav a:hover { background: #F1F5F9; }
.btn, .site-nav .btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 14px; background: var(--jade); color: #fff; font-weight: 700; text-decoration: none; }
.btn:hover, .site-nav .btn:hover { background: var(--jade7); }
.btn-light { background: #fff; color: var(--navy9); padding: 12px 22px; }
.btn-light:hover { background: var(--jade50); }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 20px 0 0; font-size: 13px; color: var(--slate); }
.crumbs li + li::before { content: "\203A"; margin-right: 6px; }
.crumbs a { color: var(--slate); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }
.hero { padding: 16px 0 4px; }
.eyebrow { display: inline-block; font-size: 12px; font-weight: 700; color: var(--jade7); background: var(--jade50); padding: 4px 10px; border-radius: 999px; margin: 0; }
h1 { font-size: clamp(26px, 4.5vw, 38px); line-height: 1.25; margin: 12px 0; font-weight: 900; color: var(--navy9); }
.lead { font-size: 17px; color: var(--ink); margin: 0 0 8px; }
.meta { font-size: 13px; color: var(--slate); margin: 0; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin: 24px 0; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; }
.fact b { display: block; font-size: 22px; font-weight: 900; color: var(--navy9); font-variant-numeric: tabular-nums; line-height: 1.3; }
.fact span { font-size: 13px; color: var(--slate); }
section { margin: 36px 0; scroll-margin-top: 72px; }
h2 { font-size: 22px; line-height: 1.35; margin: 0 0 12px; font-weight: 900; color: var(--navy9); }
section p, section li { color: var(--ink); }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--line); border-radius: 20px; margin: 12px 0; }
.table-wrap:focus-visible { outline: 3px solid var(--sand); }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 560px; }
caption { caption-side: top; text-align: left; padding: 12px 16px 4px; font-weight: 700; color: var(--slate); font-size: 13px; }
th, td { padding: 10px 14px; border-bottom: 1px solid #F1F5F9; text-align: left; vertical-align: top; }
thead th { background: var(--bg); font-size: 12px; color: var(--slate); font-weight: 700; white-space: nowrap; }
tbody th { font-weight: 700; color: var(--navy); }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tbody tr:last-child th, tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: #FAFAF9; }
.cta { background: linear-gradient(135deg, var(--navy9), var(--navy)); color: #fff; border-radius: 28px; padding: 28px; margin: 40px 0; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.cta h2 { color: #fff; margin: 0 0 4px; }
.cta p { margin: 0; color: #CBD5E1; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 18px; margin: 10px 0; }
.faq summary { font-weight: 700; cursor: pointer; color: var(--navy9); }
.faq details[open] summary { color: var(--jade7); }
.faq details p { margin: 10px 0 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.card { display: block; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px; text-decoration: none; color: var(--navy); transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--jade); box-shadow: 0 8px 30px rgba(15,23,42,.06); }
.card b { display: block; font-size: 16px; margin-bottom: 4px; color: var(--navy9); }
.card span { font-size: 14px; color: var(--slate); }
.sources ul, .related ul { padding-left: 20px; font-size: 14px; }
.site-foot { border-top: 1px solid var(--line); margin-top: 48px; padding: 24px 0 40px; font-size: 13px; color: var(--slate); background: #fff; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px; }
.site-foot a { color: var(--slate); }
:focus-visible { outline: 3px solid var(--sand); outline-offset: 2px; }
@media (max-width: 560px) { .site-nav a:not(.btn) { display: none; } .cta { padding: 22px; } .brand { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
@media print { .site-head, .cta, .site-foot { display: none; } body { background: #fff; } }
