/* ctp-article-tokens.css (v5.0) — Extracted Layer-A Design Tokens, MD3 Light/Dark Theme & 375/768/1280 Grid */

/* ==========================================================================
     CTP Travel Design System — Verified WCAG 2.1/2.2 AA/AAA Semantic Tokens
     ========================================================================== */
  :root,
  [data-theme="light"] {
    color-scheme: light;
    /* Surface Hierarchy */
    --bg-base: #FFFFFF;
    --bg-surface: #F8FAFC;       /* Card / TOC / Callout */
    --bg-elevated: #F1F5F9;      /* Embedded Tool / Table Header */
    --bg-cta-card: #F8FAFC;

    /* Typography — All verified >= 5.63:1 on base & surface */
    --text-primary: #181C22;     /* 17.10:1 on white | 16.34:1 on card (AAA) */
    --text-secondary: #475569;   /*  7.58:1 on white |  7.24:1 on card (AAA) */
    --text-muted: #5A6577;       /*  5.89:1 on white |  5.63:1 on card (AA+) */
    --text-muted-high: #5A6577;

    /* Links — MUST pair with persistent underline in prose (SC 1.4.1) */
    --link-default: #0F52BA;     /*  7.15:1 on white (AAA) */
    --link-hover: #0A3A85;
    --link-visited: #5B21B6;

    /* Brand Accent & CTA Controls */
    --accent: #BA2F2A;           /* Brand crimson accent (5.42:1 on white AA+) */
    --accent-dark: #8F201C;
    --cta-bg: #0F766E;           /* Deep teal */
    --cta-bg-hover: #115E59;
    --cta-ink: #FFFFFF;          /*  5.47:1 default | 7.58:1 hover (AA+/AAA) */
    --cta-warm-bg: #B45309;
    --cta-warm-ink: #FFFFFF;

    /* Semantic Status Badges */
    --badge-tip-bg: #ECFDF5;     --badge-tip-ink: #065F46;
    --badge-warn-bg: #FEF3C7;    --badge-warn-ink: #92400E;

    /* Visible Form Borders & Focus Rings (SC 1.4.11 >= 3:1) */
    --border-subtle: #CBD5E1;    /* Decorative divider */
    --border-control: #6D798C;   /*  4.21:1 on card (PASS SC 1.4.11) */
    --border-control-high: #6D798C;
    --focus-ring: #1D4ED8;       /*  6.70:1 on white (PASS SC 1.4.11 & 2.4.7) */

    /* Legacy Token Aliases (seamless compatibility with assets/styles.css) */
    --paper: var(--bg-base);
    --soft: var(--bg-surface);
    --surface-2: var(--bg-surface);
    --surface-3: var(--bg-elevated);
    --ink: var(--text-primary);
    --muted: var(--text-muted);
    --line: var(--border-subtle);
    --max: 1028px;
  }

  [data-theme="dark"] {
    color-scheme: dark;
    /* Material Design 3 Tonal Elevation: lighter as surface rises (ZERO #000000!) */
    --bg-base: #121417;          /* Pure white ratio 18.45:1 >= 15.8:1 target */
    --bg-surface: #1B1F26;       /* Cards, TOC, Quick Verdict */
    --bg-elevated: #242A34;      /* Embedded calculators, popovers, inputs */
    --bg-cta-card: #16202E;      /* Dedicated dark CTA banner (14.97:1 w/ #F1F5F9) */

    /* Soft Off-White Ink — Eliminates astigmatic halation */
    --text-primary: #ECEFF4;     /* 16.01:1 base | 14.34:1 card | 12.52:1 high */
    --text-secondary: #B8C2D1;   /* 10.26:1 base |  9.19:1 card |  8.02:1 high */
    --text-muted: #98A4B5;       /*  7.30:1 base |  6.54:1 card (AA+/AAA) */
    --text-muted-high: #9CA8B9;  /*  5.99:1 on #242A34 high surface (AA+) */

    /* Desaturated Light Links for Dark Surfaces */
    --link-default: #7CC4FA;     /*  9.78:1 base |  8.76:1 card (AAA) */
    --link-hover: #BAE3FF;       /* 12.21:1 card (AAA) */
    --link-visited: #C4B5FD;     /*  8.95:1 card (AAA) */

    /* Brand Accent softened for dark contrast */
    --accent: #F87171;           /* 7.36:1 on #121417 | 6.59:1 on #1B1F26 */
    --accent-dark: #FCA5A5;

    /* CRITICAL FIX: Bright dark-mode CTA buttons use DARK ink, NEVER pure white! */
    --cta-bg: #2DD4BF;
    --cta-bg-hover: #5EEAD4;
    --cta-ink: #082F2E;          /*  7.75:1 default | 9.75:1 hover (AAA) */
    --cta-warm-bg: #FBBF24;
    --cta-warm-ink: #1F1300;     /* 10.93:1 (AAA) */

    /* Semantic Status Badges */
    --badge-tip-bg: #132A1E;     --badge-tip-ink: #86EFAC;   /* 10.86:1 (AAA) */
    --badge-warn-bg: #2E210B;    --badge-warn-ink: #FCD34D;  /* 10.88:1 (AAA) */

    /* Visible Form Borders & Focus Rings on Dark Surfaces (SC 1.4.11) */
    --border-subtle: #2D3542;
    --border-control: #7A869A;       /* 4.49:1 on #1B1F26 card (PASS >= 3:1) */
    --border-control-high: #8794A8;  /* 4.69:1 on #242A34 high surface (PASS) */
    --focus-ring: #93C5FD;           /* 10.23:1 base | 9.17:1 card (PASS) */

    --paper: var(--bg-base);
    --soft: var(--bg-surface);
    --surface-2: var(--bg-surface);
    --surface-3: var(--bg-elevated);
    --ink: var(--text-primary);
    --muted: var(--text-muted);
    --line: var(--border-subtle);
  }

  * { box-sizing: border-box; }
  body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
    color: var(--text-primary);
    background: var(--bg-base);
    font-size: 16px;
    line-height: 1.65;
  }
  a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
  }

  /* Enforce WCAG SC 1.4.1 persistent underline on inline prose links in BOTH themes */
  article p a, article li a {
    color: var(--link-default);
    text-decoration: underline;
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
  }
  article p a:hover, article li a:hover { color: var(--link-hover); }
  article p a:visited, article li a:visited { color: var(--link-visited); }

  /* Soften overly bright travel photography slightly in dark mode */
  [data-theme="dark"] article img { filter: brightness(0.92) contrast(1.04); }

  .site-header { position: sticky; top: 0; z-index: 1000; background: var(--bg-base); border-bottom: 1px solid var(--border-subtle); }
  .site-header .icon-link, .site-header .menu-toggle { color: var(--text-primary); }
  @media (max-width: 980px) {
    body:not(.menu-open) .main-nav { visibility: hidden; pointer-events: none; transform: translateX(100%); }
    body.menu-open .main-nav { visibility: visible; pointer-events: auto; transform: translateX(0); }
  }
  .tool-card[data-tool="budget"] { --tint: var(--cta-bg); }
  .tool-card .btn:not(.btn-secondary):not(.btn-outline) { background: var(--tint, var(--cta-bg)); color: var(--cta-ink); }
  [data-theme="dark"] .tool-card .btn:not(.btn-secondary):not(.btn-outline) { background: var(--tint, var(--cta-bg)); color: #0B1215; }
  .tool-card select.tool-input { -webkit-appearance: menulist; appearance: auto; background-image: none !important; padding-right: 12px; }
  .site-footer { background: var(--bg-base); border-top: 1px solid var(--border-subtle); padding: 40px 16px; color: var(--text-muted); font-size: 14px; text-align: center; }

  /* Mobile-First Responsive Layout: 375px base -> 768px centered single col -> >=1080px (1280px) asymmetric 2-col */
  .container { max-width: var(--max); margin: 0 auto; padding: 0 16px; }
  .ch-layout-wrap { max-width: var(--max); margin: 0 auto; padding: 20px 16px 64px; }
  .ch-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px; align-items: start; }
  .article-body { min-width: 0; }
  .ch-sidebar { display: none; } /* Hidden on 375px & 768px to prevent table/tool crushing */

  /* 768px Tablet Portrait: Centered single column (608px width with 80px side breathing room, max 640px) */
  @media (min-width: 768px) {
    .ch-layout-wrap { padding: 32px 80px 76px; }
    .ch-layout { max-width: 640px; margin: 0 auto; }
    .ch-content, .ch-content.article-body p, .ch-content.article-body li { font-size: 17px; line-height: 1.68; }
  }

  /* >=1080px / 1280px Desktop Standard: 660px main + 48px gap + 320px sticky sidebar (1028px total = 126px margins at 1280px) */
  @media (min-width: 1080px) {
    .container { padding: 0 24px; }
    .ch-layout-wrap { max-width: 1076px; padding: 40px 24px 90px; }
    .ch-layout { max-width: 1028px; grid-template-columns: minmax(0, 660px) 320px; gap: 48px; }
    .ch-content, .ch-content.article-body p, .ch-content.article-body li { font-size: 18px; line-height: 1.70; }
    .ch-sidebar {
      display: flex; flex-direction: column; gap: 18px;
      position: sticky; top: 132px;
      max-height: calc(100vh - 148px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
    }
    .ch-toc-mobile { display: none; }
  }

/* v5 WCAG AAA Dark-Mode Primary Button Dark Ink */
[data-theme="dark"] .cta-card .btn-primary,
[data-theme="dark"] .cta-card .btn,
[data-theme="dark"] .ch-cta-submit { color: #0B1215; }



/* === Additional Layer-A Component Styles === */
.lang-switch { display: inline-flex; gap: 0; margin-top: 14px; }
  .lang-switch .ls-btn {
    min-height: 44px; min-width: 76px;
    font: 600 14px/1 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    padding: 10px 16px;
    border: 1px solid var(--border-control);
    background: var(--bg-surface);
    color: var(--text-primary);
    cursor: pointer; transition: background .15s, color .15s;
  }
  .lang-switch .ls-btn:first-child { border-radius: 999px 0 0 999px; }
  .lang-switch .ls-btn:last-child { border-radius: 0 999px 999px 0; }
  .lang-switch .ls-btn + .ls-btn { border-left-width: 0; }
  .lang-switch .ls-btn.active { background: var(--cta-bg); border-color: var(--cta-bg); color: var(--cta-ink); }
  body.lang-zh .tr-en { display: none !important; }
    body.lang-zh .article-author .tr-en { display: inline !important; }
  body.lang-zh .tr-zh { display: inline !important; }
  .tr-zh { display: none; }

  @media (min-width: 1080px) {
    .ch-title-block .lang-switch { position: absolute; top: 18px; right: 0; margin-top: 0; }
  }

  /* Reading Progress Bar */
  .ch-reading-bar {
    position: fixed; top: var(--ch-header-height, 64px); left: 0; right: 0; height: 44px;
    background: var(--bg-base); border-bottom: 1px solid var(--border-subtle);
    z-index: 990; transform: translateY(-100%); opacity: 0;
    transition: transform .25s ease, opacity .25s ease; pointer-events: none;
  }
  .ch-reading-bar.visible { transform: translateY(0); opacity: 1; pointer-events: auto; }
  .ch-reading-inner { max-width: var(--max); margin: 0 auto; padding: 0 16px; height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
  .ch-reading-current { font-size: 14px; font-weight: 600; color: var(--text-primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70vw; }
  .ch-reading-pct { font-size: 13px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
  .ch-reading-progress { position: absolute; bottom: 0; left: 0; width: 100%; height: 2px; background: var(--cta-bg); transform-origin: left; transform: scaleX(0); transition: transform .1s linear; }

/* Hero */
  .ch-article-hero { background: var(--bg-base); }
  .ch-hero-image { position: relative; width: 100%; height: clamp(280px, 52vw, 520px); overflow: hidden; background: var(--bg-elevated); }
  .ch-hero-image .ch-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
  .ch-hero-image-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,20,23,.72) 0%, rgba(18,20,23,.28) 45%, transparent 100%); }
  .ch-hero-brand { position: absolute; right: 24px; bottom: 24px; display: none; flex-direction: column; align-items: center; gap: 6px; z-index: 3; pointer-events: none; }
  @media (min-width: 1080px) { .ch-hero-brand { display: flex; } }
  .ch-hero-logo { height: 48px; width: auto; opacity: .94; filter: drop-shadow(0 2px 6px rgba(0,0,0,.45)); }
  .ch-hero-tagline { font-family: "Playfair Display", Georgia, serif; font-size: 15px; font-weight: 600; color: #FFFFFF; letter-spacing: .04em; text-shadow: 0 2px 6px rgba(0,0,0,.55); white-space: nowrap; }

  /* Title, Breadcrumbs, Meta & FTC Disclosure */
  .ch-title-block { position: relative; padding: 16px 0 12px; }
  @media (min-width: 1080px) { .ch-title-block { padding: 24px 170px 14px 0; } }
  .ch-breadcrumbs { font-size: 13px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.5; }
  .ch-breadcrumbs a { color: var(--text-muted); text-decoration: none; }
  .ch-breadcrumbs a:hover { color: var(--link-default); text-decoration: underline; }
  .ch-breadcrumbs [aria-current="page"] { color: var(--text-primary); font-weight: 600; }
  .ch-crumb-sep { color: var(--border-control); margin: 0 6px; }
  .ch-article-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(28px, 4.4vw, 44px); line-height: 1.12; font-weight: 700; margin: 0; letter-spacing: -.02em; color: var(--text-primary); }

  .ch-article-meta { padding: 0 0 14px; }
  .ch-meta-line { font-size: 14px; color: var(--text-muted); margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; line-height: 1.5; }
  .ch-meta-line a { color: var(--link-default); font-weight: 600; }
  .ch-meta-sep { color: var(--border-control); }

  .ch-disclosure {
    margin: 0 0 22px; padding: 10px 14px;
    background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 10px;
    font-size: 13px !important; line-height: 1.55 !important; color: var(--text-muted) !important;
  }

  /* Opening Hook */
  .ch-hook { margin: 0 0 24px; }
  .ch-hook p { margin: 0 0 14px; color: var(--text-primary); }
  .ch-hook p:last-child { margin-bottom: 0; }

  /* Flexible Quick Verdict Card (2-4 real rows + What to Skip + Who It's For) */
  .ch-summary-card, .ch-verdict-card {
    background: var(--bg-surface); border: 1px solid var(--border-subtle); border-left: 4px solid var(--cta-bg);
    border-radius: 14px; padding: 20px 22px; margin: 0 0 24px;
  }
  .ch-summary-card .summary-head { margin: 0 0 14px; }
  .ch-summary-card .summary-title { font-family: "Playfair Display", Georgia, serif; font-size: 21px; font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.25; }
  .ch-verdict-grid { margin: 0; display: grid; gap: 12px; }
  .ch-verdict-row { padding-top: 10px; border-top: 1px solid var(--border-subtle); }
  .ch-verdict-row:first-child { padding-top: 0; border-top: 0; }
  .ch-verdict-row dt { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--text-secondary); margin: 0 0 4px; }
  .ch-verdict-skip dt { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--badge-warn-bg); color: var(--badge-warn-ink); }
  .ch-verdict-for dt { display: inline-block; padding: 2px 8px; border-radius: 6px; background: var(--badge-tip-bg); color: var(--badge-tip-ink); }
  .ch-verdict-row dd { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-primary); }

  /* NN/g Anti-Banner-Blindness Mobile/Tablet Collapsible TOC (<details>, zero JS) */
  .ch-toc {
    background: var(--bg-surface); border: 1px solid var(--border-subtle);
    border-radius: 12px; padding: 14px 18px; margin: 0 0 28px;
  }
  .ch-toc-summary {
    list-style: none; display: flex; align-items: center; justify-content: space-between;
    min-height: 44px; cursor: pointer; font-size: 13px; font-weight: 700;
    letter-spacing: .07em; text-transform: uppercase; color: var(--text-secondary);
  }
  .ch-toc-summary::-webkit-details-marker { display: none; }
  .ch-toc[open] .ch-toc-chevron { transform: rotate(180deg); }
  .ch-toc-chevron { transition: transform .2s ease; }
  .ch-toc-list { list-style: none; padding: 10px 0 4px; margin: 8px 0 0; border-top: 1px solid var(--border-subtle); }
  .ch-toc-list li { margin: 0; }
  .ch-toc-list li a {
    display: block; padding: 10px 0; min-height: 44px;
    color: var(--text-primary); text-decoration: none; font-size: 15px; line-height: 1.45;
  }
  .ch-toc-list li a:hover { color: var(--link-default); text-decoration: underline; }

  /* Body Headings & Content */
  .ch-content h2.upl-section-title { font-family: "Playfair Display", Georgia, serif; font-size: clamp(24px, 3.2vw, 28px); font-weight: 700; line-height: 1.28; margin: 48px 0 14px; color: var(--text-primary); scroll-margin-top: 118px; }
  .ch-content h2.upl-section-title .upl-section-num { font-family: "Playfair Display", Georgia, serif; font-size: 1.18em; font-weight: 700; color: var(--text-primary); letter-spacing: -.02em; margin-right: 10px; }
    .ch-content h2.upl-section-title .upl-section-num::after { content: "."; color: var(--text-primary); font-weight: 700; font-size: .82em; margin-left: .04em; }
body.lang-zh .ch-content h2.upl-section-title .upl-section-num::after { content: "、"; margin-left: .01em; }
  .ch-content h3 { font-size: 20px; font-weight: 700; line-height: 1.35; margin: 28px 0 10px; color: var(--text-primary); }
  .ch-content h4 { font-size: 17px; font-weight: 700; line-height: 1.4; margin: 20px 0 8px; color: var(--text-secondary); }

  /* Figures & CLS Aspect-Ratio Lock */
  .upl-figure { margin: 26px 0; }
  .upl-figure img { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 12px; background: var(--bg-elevated); }
  .upl-figure figcaption { margin-top: 8px; font-size: 14px; line-height: 1.5; color: var(--text-muted); }

  /* Tables (375px safe horizontal scroll) */
  .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 22px 0; border-radius: 12px; border: 1px solid var(--border-subtle); }
  .ctp-table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
  .ctp-table th, .ctp-table td { border-bottom: 1px solid var(--border-subtle); padding: 12px 14px; text-align: left; vertical-align: top; color: var(--text-primary); }
  .ctp-table thead th { background: var(--bg-elevated); font-weight: 700; color: var(--text-primary); }

  /* Tips / Affiliate Tail Box (use sparingly: <=5 per article) */
  .ch-content .upl-tips {
    margin: 26px 0; padding: 20px 22px; list-style: none;
    background: var(--bg-surface); border: 1px solid var(--border-subtle); border-left: 4px solid var(--accent);
    border-radius: 0 14px 14px 0;
  }
  .ch-content .upl-tips li { margin: 0 0 12px; line-height: 1.65; color: var(--text-primary); }
  .ch-content .upl-tips li:last-child { margin-bottom: 0; }
  .ch-content .upl-tips li strong { color: var(--text-primary); font-weight: 700; }

  /* Front-Loaded Embedded Tool Container (CLS min-height reservation) */
  .tool-embed-wrap {
    margin: 28px 0; padding: 20px;
    background: var(--bg-elevated); border: 1px solid var(--border-subtle); border-radius: 14px;
  }
  .tool-embed-prompt { margin: 0 0 14px !important; font-size: 15px !important; color: var(--text-secondary) !important; }
  .tool-mount { min-height: 220px; }

  /* Responsive Card Grid (2 cols at 768px via auto-fit) */
  .ctp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; margin: 26px 0; }
  .ctp-card {
    display: block; padding: 18px; min-height: 44px;
    background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 14px;
    color: var(--text-primary); text-decoration: none; transition: border-color .15s, transform .15s;
  }
  .ctp-card:hover { border-color: var(--cta-bg); transform: translateY(-1px); }
  .ctp-card b { display: block; font-size: 16px; font-weight: 700; color: var(--link-default); margin-bottom: 6px; }
  .ctp-card span { display: block; font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

  /* Slim Sticky Sidebar (<5.5 KB, ScrollSpy TOC + Arrival Kit + Partner Card + Share Strip) */
  .ch-sidebar-card { background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 14px; padding: 18px 20px; }
  .ch-toc-kicker { margin: 0 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-muted); }
  .ch-sidebar-card h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; color: var(--text-primary); }
  .ch-sidebar-cta { background: var(--bg-cta-card); border-left: 4px solid var(--cta-bg); }
  .ch-sidebar-cta p { font-size: 14px; color: var(--text-secondary); margin: 0 0 12px; line-height: 1.5; }
  .ch-cta-badge { display: inline-block; padding: 3px 10px; margin: 0 0 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--badge-tip-bg); color: var(--badge-tip-ink); }
  .ch-cta-perks { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 13px; line-height: 1.4; color: var(--text-secondary); }
  .ch-cta-perks li { position: relative; padding-left: 18px; }
  .ch-cta-perks li::before { content: "✓"; position: absolute; left: 0; font-weight: 700; color: var(--cta-bg); }
  .ch-cta-trust { margin: 10px 0 0 !important; font-size: 12px !important; line-height: 1.4 !important; color: var(--text-muted) !important; text-align: center; }
  .ch-sidebar-aff { background: var(--bg-surface); border-left: 4px solid var(--border-control); }
  .ch-aff-kicker { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
  .ch-aff-copy { margin: 0 0 12px; font-size: 13px; line-height: 1.45; color: var(--text-secondary); }
  .ch-aff-btn {
    display: flex; align-items: center; justify-content: center; width: 100%; min-height: 44px;
    padding: 10px 14px; border-radius: 999px; border: 1.5px solid var(--cta-bg);
    background: var(--bg-elevated); color: var(--text-primary); font-size: 14px; font-weight: 700;
    text-decoration: none; text-align: center; transition: background .15s, color .15s, border-color .15s;
  }
  .ch-aff-btn:hover { background: var(--cta-bg); color: var(--cta-ink); border-color: var(--cta-bg); text-decoration: none; }
  .ch-link-list { list-style: none; margin: 0; padding: 0; }
  .ch-link-list li { border-bottom: 1px solid var(--border-subtle); }
  .ch-link-list li:last-child { border-bottom: 0; }
  .ch-link-list a, .guide-page main .ch-link-list li a {
    display: block; padding: 9px 0 9px 16px; color: var(--text-secondary);
    text-decoration: none; font-size: 14px; line-height: 1.45; position: relative; transition: color .15s;
  }
  .ch-link-list a::before { content: "›"; position: absolute; left: 0; color: var(--cta-bg); font-weight: 700; }
  .ch-link-list a:hover, .guide-page main .ch-link-list li a:hover { color: var(--link-default); text-decoration: underline; text-underline-offset: 3px; }
  .ch-link-list a.is-active { color: var(--text-primary); font-weight: 700; }

  /* Forms & Primary Buttons (WCAG 1.4.11 Borders + Dark-Mode Dark Ink) */
  .ch-cta-form { display: flex; flex-direction: column; gap: 10px; }
  .ch-cta-email {
    width: 100%; min-height: 46px; padding: 11px 14px;
    border: 1px solid var(--border-control); border-radius: 10px;
    background: var(--bg-elevated); color: var(--text-primary); font-size: 16px; font-family: inherit;
  }
  .ch-cta-email::placeholder { color: var(--text-muted-high); }
  .ch-cta-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
  .ch-cta-submit, .cta-card .btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 46px; padding: 12px 24px;
    background: var(--cta-bg); color: var(--cta-ink); border: none; border-radius: 999px;
    font-weight: 700; font-size: 15px; font-family: inherit; text-decoration: none; cursor: pointer;
    transition: background .2s ease;
  }
  .ch-cta-submit:hover, .cta-card .btn-primary:hover { background: var(--cta-bg-hover); }
  .ch-cta-msg { margin: 0; font-size: 13px; min-height: 1.2em; color: var(--text-secondary); }
  .ch-cta-msg:empty { display: none; min-height: 0; }

  /* Compact 5-Icon Share Strip (fits 320px sidebar with zero X overflow) */
  .ch-share-strip { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 10px 12px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 14px; }
  .ch-share-label { font-size: 13px; font-weight: 700; color: var(--text-muted); white-space: nowrap; }
  .ch-share-icons { display: flex; gap: 6px; }
  .ch-share-icon {
    width: 44px; height: 44px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--bg-elevated); border: 1px solid var(--border-control);
    color: var(--text-primary); text-decoration: none; cursor: pointer;
    transition: background .15s, color .15s, border-color .15s;
  }
  .ch-share-icon:hover { background: var(--cta-bg); color: var(--cta-ink); border-color: var(--cta-bg); }
  .ch-share-icon svg { width: 18px; height: 18px; fill: currentColor; display: block; }

  /* Author Card (Who / How / Why, English-Only) */
  .article-author { margin: 40px 0 0; padding: 24px; background: var(--bg-surface); border: 1px solid var(--border-subtle); border-radius: 16px; }
  .article-author-inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px; }
  @media (min-width: 768px) { .article-author-inner { flex-direction: row; align-items: flex-start; text-align: left; gap: 20px; } }
  .article-author-avatar { flex: 0 0 auto; width: 92px; height: 92px; border-radius: 50%; object-fit: cover; border: 2px solid var(--border-subtle); }
  .article-author-body { flex: 1 1 auto; text-align: left; }
  .article-author-label { font-size: 12px; font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .07em; margin: 0 0 4px; }
  .article-author-name { font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-weight: 700; margin: 0 0 4px; color: var(--text-primary); }
  .article-author-name a { color: var(--text-primary); text-decoration: underline; text-underline-offset: 3px; }
  .article-author .article-author-role { display: block !important; color: var(--text-secondary) !important; font-size: 13px; font-weight: 600; margin: 0 0 8px; }
  .article-author .article-author-bio { display: block !important; color: var(--text-primary) !important; font-size: 15px; line-height: 1.6; margin: 0 0 10px; }
  .article-author .article-author-how { display: block !important; color: var(--text-muted) !important; font-size: 14px; line-height: 1.55; margin: 0; }

  /* Single Primary Ending CTA & Lead Capture */
  .cta-card, .lead-capture { background: var(--bg-cta-card); border: 1px solid var(--border-subtle); border-left: 4px solid var(--cta-bg); border-radius: 16px; padding: 24px; margin: 32px 0; }
  .cta-card h3, .lead-capture h3 { font-family: "Playfair Display", Georgia, serif; font-size: 22px; font-weight: 700; margin: 0 0 10px; color: var(--text-primary); }
  .cta-card p, .lead-capture p { font-size: 16px; line-height: 1.65; color: var(--text-secondary); margin: 0 0 16px; }

  /* Sources */
  .sources-title { font-family: "Playfair Display", Georgia, serif; font-size: 24px; font-weight: 700; margin: 40px 0 10px; color: var(--text-primary); }
  .sources-intro { font-size: 14px; color: var(--text-muted); margin: 0 0 12px; line-height: 1.6; }
  .sources-list { margin: 0; padding-left: 20px; }
  .sources-list li { margin: 8px 0; line-height: 1.6; font-size: 15px; color: var(--text-primary); }

  /* Budget Grid & Day Cards */
  .budget-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 22px 0; }
  .budget-grid .col { border: 1px solid var(--border-subtle); border-radius: 14px; padding: 16px 18px; background: var(--bg-surface); }
  .budget-grid .col h4 { margin: 0 0 8px; font-size: 17px; color: var(--text-primary); }
  .day-card { border: 1px solid var(--border-subtle); border-radius: 16px; padding: 20px; margin: 20px 0; background: var(--bg-surface); }
  .day-card .callout { margin: 14px 0 0; background: var(--bg-elevated); border-left: 4px solid var(--cta-bg); padding: 12px 16px; border-radius: 0 10px 10px 0; font-size: 15px; color: var(--text-primary); }

/* === v5 Lightbox (keyboard-accessible button + safe DOM) === */
.ctp-lightbox { position: fixed; inset: 0; z-index: 9999; background: rgba(11,15,20,.92); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 24px; }
.ctp-lightbox img { max-width: min(1100px, 94vw); max-height: 82vh; border-radius: 10px; box-shadow: 0 20px 50px rgba(0,0,0,.5); }
.ctp-lb-close { position: fixed; top: 18px; right: 22px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(18,20,23,.85); color: #F1F5F9; font-size: 24px; line-height: 1; cursor: pointer; }
.ctp-lb-close:focus-visible { outline: 2px solid #2DD4BF; outline-offset: 2px; }
.ctp-lb-hint { margin-top: 12px; font-size: 13px; color: #CBD5E1; text-align: center; }

/* === v5 Optional Editorial Changelog Slot === */
.ch-changelog { margin: 10px 0 18px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border-subtle); background: var(--bg-elevated); font-size: 13.5px; color: var(--text-secondary); }
.ch-changelog summary { cursor: pointer; font-weight: 600; color: var(--text-primary); }
.ch-changelog ul { margin: 8px 0 0; padding-left: 18px; }
