:root {
  --navy-900: #071a2f;
  --navy-700: #12345a;
  --accent: #b5522b;
  --cream-50: #fff9ef;
  --paper: #ffffff;
  --ink: #101820;
  --muted: #5c6670;
  --line: rgba(7, 26, 47, 0.18);
  --max: 1120px;
  --radius: 18px;
  --sans: "Source Sans 3", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: Fraunces, Georgia, serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
}
html:lang(yue-Hant), html:lang(zh-Hant) {
  --sans: "PingFang TC", "Noto Sans CJK TC", "Microsoft JhengHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Noto Serif CJK TC", "Songti TC", "PMingLiU", Georgia, serif;
}
html:lang(zh-Hans) {
  --sans: "PingFang SC", "Noto Sans CJK SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --serif: "Noto Serif CJK SC", "Songti SC", "SimSun", Georgia, serif;
}
* { box-sizing: border-box; }
html { background: var(--cream-50); color: var(--ink); font-family: var(--sans); line-height: 1.55; text-rendering: optimizeLegibility; }
body { margin: 0; font-size: 18px; }
a { color: var(--navy-900); text-decoration-thickness: 0.08em; text-underline-offset: 0.18em; }
.skip-link { position: absolute; left: -999px; top: 0; background: var(--navy-900); color: white; padding: 0.75rem 1rem; z-index: 50; }
.skip-link:focus { left: 0; }
.lang-eyebrow { background: #0d1f3c; overflow-x: auto; scrollbar-width: none; }
.lang-eyebrow::-webkit-scrollbar { display: none; }
.lang-eyebrow__inner { display: flex; align-items: center; justify-content: center; padding: 0.45rem 0.75rem; gap: 0; white-space: nowrap; }
.lang-eyebrow__link { font-size: 0.72rem; font-weight: 500; color: rgba(255,255,255,0.65); text-decoration: none; white-space: nowrap; padding: 0 0.4rem; }
.lang-eyebrow__link--active { color: #ffffff; font-weight: 700; }
.lang-eyebrow__link:hover:not(.lang-eyebrow__link--active) { color: rgba(255,255,255,0.85); }
.lang-eyebrow__sep { color: rgba(255,255,255,0.25); font-size: 0.65rem; padding: 0 0.15rem; }
.disclosure-slim { background: rgba(7,26,47,0.055); border-bottom: 1px solid rgba(7,26,47,0.10); padding: 0.4rem 1rem; font-size: 0.78rem; color: var(--navy-700); display: flex; align-items: center; justify-content: center; gap: 0.4rem; line-height: 1.3; flex-wrap: wrap; }
.disclosure-slim__icon { opacity: 0.45; font-size: 0.72rem; flex-shrink: 0; }
.disclosure-slim__body { text-align: center; }
.disclosure-slim__sep { color: var(--muted); opacity: 0.5; }
.disclosure-slim__link { color: var(--accent); text-decoration: none; font-weight: 600; white-space: nowrap; }
.disclosure-slim__link:hover { text-decoration: underline; }

.disclosure-toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(0.5rem); background: var(--navy-900); color: var(--cream-50); font-size: 0.82rem; font-family: var(--sans); padding: 0.55rem 1.25rem; border-radius: 999px; white-space: nowrap; z-index: 500; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; box-shadow: 0 4px 16px rgba(7,26,47,0.22); }
.disclosure-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
/* Mobile/desktop link toggle — mirrors .share-mailto-btn / .share-copy-btn pattern */

/* Copy confirmation toast */
.disclosure-toast { position: fixed; bottom: 1.5rem; left: 50%; transform: translateX(-50%) translateY(0.5rem); background: var(--navy-900); color: var(--cream-50); font-size: 0.82rem; font-family: var(--sans); padding: 0.55rem 1.25rem; border-radius: 999px; white-space: nowrap; z-index: 500; opacity: 0; pointer-events: none; transition: opacity 0.2s ease, transform 0.2s ease; box-shadow: 0 4px 16px rgba(7,26,47,0.22); }
.disclosure-toast--visible { opacity: 1; transform: translateX(-50%) translateY(0); }
.site-header { border-bottom: 1px solid var(--line); background: rgba(255, 249, 239, 0.96); position: sticky; top: 0; z-index: 20; }
.site-nav, .site-footer__inner, .page-wrap, .hero, .trust-strip, .pillar-grid, .prose, .page-hero { width: min(var(--max), calc(100% - 2rem)); margin-inline: auto; }
.site-nav { display: flex; align-items: center; gap: 1rem; min-height: 72px; }
.brand { font-family: var(--serif); font-weight: 800; font-size: 1.15rem; text-decoration: none; }
.nav-links { display: flex; gap: 0.85rem; align-items: center; margin-left: auto; }
.nav-links a { font-size: 0.95rem; text-decoration: none; }
.lang-switcher { position: relative; }
.lang-switcher__toggle { border: 1px solid var(--line); border-radius: 999px; background: transparent; padding: 0.45rem 0.7rem; cursor: pointer; }
.lang-switcher__menu { z-index: 200; position: absolute; right: 0; top: 115%; min-width: 230px; list-style: none; margin: 0; padding: 0.4rem; background: var(--paper); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 45px rgba(7, 26, 47, 0.14); }
.lang-switcher__link { display: block; padding: 0.55rem 0.65rem; text-decoration: none; border-radius: 10px; }
.lang-switcher__link:hover, .lang-switcher__link:focus { background: var(--cream-50); }
.hero { padding: clamp(3rem, 7vw, 7rem) 0 2.5rem; }
.eyebrow { font-family: var(--mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent); font-size: 0.78rem; margin: 0 0 1rem; }
.hero h1, .page-hero h1 { font-family: var(--serif); color: var(--navy-900); font-size: clamp(3rem, 8vw, 7.5rem); line-height: 0.95; margin: 0; max-width: 900px; }
.hero__dek { font-size: clamp(1.15rem, 2vw, 1.45rem); max-width: 760px; color: var(--navy-700); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; margin-top: 1.5rem; }
.cta { display: inline-flex; align-items: center; gap: 0.35rem; min-height: 44px; border-radius: 999px; font-weight: 700; text-decoration: none; }
.cta--primary { background: var(--navy-900); color: var(--cream-50); padding: 0.78rem 1.1rem; }
.cta--secondary { border: 1px solid var(--navy-900); padding: 0.72rem 1rem; }
.cta--text { padding: 0.45rem 0; border-radius: 0; }
.trust-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); overflow: hidden; margin-bottom: 2rem; }
.trust-cell { padding: 1.1rem; border-right: 1px solid var(--line); }
.trust-cell:last-child { border-right: 0; }
.trust-cell strong { display: block; font-family: var(--serif); font-size: clamp(1.55rem, 3vw, 2.45rem); line-height: 1; color: var(--accent); }
.trust-cell span { display: block; color: var(--muted); margin-top: 0.35rem; font-size: 0.95rem; }
.pillar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-block: 2rem 3rem; }
.pillar-card { display: block; padding: 1.25rem; min-height: 280px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; }
.pillar-card h2 { margin-top: 0; color: var(--navy-900); font-family: var(--serif); font-size: 1.9rem; }
.pillar-card p { color: var(--muted); }
.page-hero { padding: 3rem 0 1rem; }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 5rem); }
.prose { max-width: 820px; padding-bottom: 4rem; }
.prose h2, .prose h3 { font-family: var(--serif); color: var(--navy-900); line-height: 1.1; }
.translation-notice { width: min(var(--max), calc(100% - 2rem)); margin: 1rem auto 0; padding: 1rem; border: 1px solid var(--line); border-left: 6px solid var(--accent); border-radius: 12px; background: var(--paper); }
.site-footer { border-top: 1px solid var(--line); background: var(--navy-900); color: var(--cream-50); padding: 2rem 0; }
.site-footer a { color: var(--cream-50); }
.site-footer__inner { display: grid; gap: 1rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.85rem; }
.fppc { font-size: 0.9rem; color: rgba(255, 249, 239, 0.86); }
.notice { border: 1px solid var(--line); border-radius: 12px; padding: 1rem; background: var(--paper); }
@media (max-width: 840px) {
  .site-nav { flex-wrap: wrap; padding-block: 0.75rem; }
  .nav-links { order: 3; width: 100%; flex-wrap: wrap; margin-left: 0; }
  .trust-strip, .pillar-grid { grid-template-columns: 1fr; }
  .trust-cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-cell:last-child { border-bottom: 0; }
}
.newsletter-page { max-width: 600px; margin-inline: auto; padding: clamp(2rem, 5vw, 4rem) 1rem; }
.newsletter-hero { margin-bottom: 2.5rem; }
.newsletter-subhead { font-size: 1.1rem; color: var(--navy-900); max-width: 520px; line-height: 1.6; margin-top: 1rem; }
.sib-form { margin-inline: auto; }
.thank-you-page { max-width: 600px; margin-inline: auto; padding: clamp(3rem, 7vw, 6rem) 1rem; }
.thank-you-subhead { font-size: 1.1rem; color: var(--navy-900); max-width: 520px; line-height: 1.6; margin: 1rem 0 2.5rem; }
.thank-you-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.share-mailto-btn { display: inline-flex; }
.share-copy-btn { display: none; }
@media (min-width: 768px) {
  .share-mailto-btn { display: none; }
  .share-copy-btn { display: inline-flex; }
}
