/* File: /assets/css/newsletter.css
   Module: /newsletter/ (page-newsletter.php)

   Colour grammar, as on /premium/ and /trust-badges/: Emerald is the action,
   royal blue is Premium's own mark, amber marks the cells the reference text
   is about, and the closing band is a light card in light mode and the deep
   surface in dark only (Adrian, 2026-10-04: no dark panels on a light page).

   CONTRAST RULE (brand standard, 2026-09-28): white on Emerald 500 #10B981 is
   2.5:1, so the light filled button is Emerald 700 #047857 with white text
   (5.5:1) and the dark one is #10B981 with #04241C text. Every link and button
   declares colour AND background on :hover, :focus, :focus-visible and
   :active, at 0,2,0 or higher, because style.css paints a:hover at 0,1,1 and
   GeneratePress paints button:hover at 0,1,1.

   Contents: 1 tokens, 2 layout + type, 3 buttons + links, 4 hero,
   5 sample issue, 6 tiles, 7 plans, 8 guides, 9 steps, 10 reference + table,
   11 author, 12 FAQ, 13 closing band, 14 responsive, 15 dark, 16 motion */

/* ==========================================================================
   1. TOKENS
   ========================================================================== */

.chn-page {
    --n-surface:   #FFFFFF;
    --n-well:      #F1F5F9;
    --n-well-2:    #F8FAFC;
    --n-line:      #E2E8F0;
    --n-line-hi:   #CBD5E1;
    --n-ink:       #0F172A;
    --n-ink-2:     #334155;
    --n-mute:      #64748B;
    --n-cta:       #047857;
    --n-cta-hi:    #065F46;
    --n-cta-text:  #FFFFFF;
    --n-accent:    #10B981;
    --n-accent-ink:#047857;
    --n-wash:      rgba(16, 185, 129, 0.10);
    --n-wash-line: rgba(16, 185, 129, 0.40);
    --n-link:      #1D4ED8;
    --n-link-hi:   #1E40AF;
    --n-pro:       #1D4ED8;
    --n-pro-ink:   #1E40AF;
    --n-pro-wash:  rgba(37, 99, 235, 0.07);
    --n-pro-line:  rgba(37, 99, 235, 0.30);
    --n-warn:      #B45309;
    --n-warn-wash: rgba(245, 158, 11, 0.10);
    --n-warn-line: rgba(245, 158, 11, 0.45);
    --n-deep:      #0F172A;
    --n-deep-2:    #1E293B;
    --n-deep-line: #334155;
    --n-radius:    16px;
    --n-radius-sm: 10px;
    --n-shadow:      0 1px 2px rgba(15, 23, 42, 0.05), 0 18px 40px -26px rgba(15, 23, 42, 0.30);
    --n-shadow-card: 0 1px 2px rgba(15, 23, 42, 0.05), 0 28px 60px -30px rgba(15, 23, 42, 0.35);
    --n-mono:      'JetBrains Mono', 'Roboto Mono', ui-monospace, monospace;
    --n-ease:      cubic-bezier(0.22, 1, 0.36, 1);
    color: var(--n-ink);
}

/* ==========================================================================
   2. LAYOUT + TYPE
   ========================================================================== */

.ch-page-newsletter .site-main {
    padding-top: 1.25rem;
}

.chn-page {
    max-width: 1200px;
    margin: 0 auto;
}

.chn-page *,
.chn-page *::before,
.chn-page *::after {
    box-sizing: border-box;
}

.chn-section {
    margin-top: 5rem;
    scroll-margin-top: 90px;
}

.chn-head {
    max-width: 780px;
    margin: 0 0 1.75rem;
}

.chn-center {
    display: flex;
    justify-content: center;
    margin-top: 1.9rem;
}

.chn-kicker,
.chn-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--n-mono);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--n-accent-ink);
}

.chn-kicker::before {
    content: '//';
    opacity: 0.7;
}

.chn-kicker.is-deep {
    color: var(--n-accent-ink);
}

.chn-eyebrow {
    padding: 0.4rem 0.8rem;
    border: 1px solid var(--n-wash-line);
    border-radius: 999px;
    background-color: var(--n-wash);
}

.chn-eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: var(--n-accent);
    box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.18);
}

.chn-h1 {
    margin: 1rem 0 1rem;
    font-size: clamp(2rem, 4.1vw, 2.95rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.025em;
    color: var(--n-ink);
}

.chn-h2 {
    margin: 0.55rem 0 0;
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    font-weight: 800;
    line-height: 1.16;
    letter-spacing: -0.02em;
    color: var(--n-ink);
}

.chn-lead {
    margin: 0 0 1.6rem;
    max-width: 38rem;
    font-size: 1.12rem;
    line-height: 1.65;
    color: var(--n-ink-2);
}

.chn-lead strong {
    color: var(--n-ink);
}

.chn-pro {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.5rem;
    border-radius: 6px;
    background-image: linear-gradient(180deg, #2563EB 0%, #1D4ED8 55%, #1E40AF 100%);
    color: #FFFFFF;
    font-family: var(--n-mono);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

/* ==========================================================================
   3. BUTTONS + LINKS (0,2,0 or higher on every state)
   ========================================================================== */

.chn-page .chn-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    min-height: 48px;
    padding: 0.75rem 1.35rem;
    border: 1px solid transparent;
    border-radius: var(--n-radius-sm);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.25s var(--n-ease), transform 0.25s var(--n-ease);
}

.chn-page .chn-btn.is-lg {
    min-height: 54px;
    padding: 0.9rem 1.6rem;
    font-size: 1.04rem;
}

.chn-page .chn-btn.is-block {
    display: flex;
    width: 100%;
}

.chn-page .chn-btn svg {
    flex-shrink: 0;
    transition: transform 0.25s var(--n-ease);
}

.chn-page .chn-btn-primary,
.chn-page .chn-btn-primary:visited {
    background-color: var(--n-cta);
    border-color: var(--n-cta);
    color: var(--n-cta-text);
    box-shadow: 0 10px 22px -12px rgba(4, 120, 87, 0.75);
}

.chn-page .chn-btn-primary:hover,
.chn-page .chn-btn-primary:focus,
.chn-page .chn-btn-primary:focus-visible,
.chn-page .chn-btn-primary:active {
    background-color: var(--n-cta-hi);
    border-color: var(--n-cta-hi);
    color: var(--n-cta-text);
    text-decoration: none;
}

.chn-page .chn-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 16px 28px -14px rgba(4, 120, 87, 0.8);
}

.chn-page .chn-btn-primary:hover svg {
    transform: translateX(3px);
}

.chn-page .chn-btn-google,
.chn-page .chn-btn-google:visited {
    background-color: var(--n-surface);
    border-color: var(--n-line-hi);
    color: var(--n-ink);
}

.chn-page .chn-btn-google:hover,
.chn-page .chn-btn-google:focus,
.chn-page .chn-btn-google:focus-visible,
.chn-page .chn-btn-google:active {
    background-color: var(--n-well);
    border-color: var(--n-ink-2);
    color: var(--n-ink);
    text-decoration: none;
}

.chn-page .chn-btn:focus-visible {
    outline: 3px solid rgba(16, 185, 129, 0.5);
    outline-offset: 3px;
}

/* Inline text links: the blue the rest of the site uses for links. */
.chn-page .chn-fine a,
.chn-page .chn-fine a:visited,
.chn-page .chn-source a,
.chn-page .chn-source a:visited,
.chn-page .chn-qa p a,
.chn-page .chn-qa p a:visited,
.chn-page .chn-plan-link,
.chn-page .chn-plan-link:visited,
.chn-page .chn-author-link,
.chn-page .chn-author-link:visited {
    color: var(--n-link);
    background-color: transparent;
    font-weight: 700;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
}

.chn-page .chn-fine a:hover,
.chn-page .chn-fine a:focus,
.chn-page .chn-fine a:active,
.chn-page .chn-source a:hover,
.chn-page .chn-source a:focus,
.chn-page .chn-source a:active,
.chn-page .chn-qa p a:hover,
.chn-page .chn-qa p a:focus,
.chn-page .chn-qa p a:active,
.chn-page .chn-plan-link:hover,
.chn-page .chn-plan-link:focus,
.chn-page .chn-plan-link:active,
.chn-page .chn-author-link:hover,
.chn-page .chn-author-link:focus,
.chn-page .chn-author-link:active {
    color: var(--n-link-hi);
    background-color: transparent;
    text-decoration-thickness: 2px;
}

.chn-page .chn-fine a:focus-visible,
.chn-page .chn-source a:focus-visible,
.chn-page .chn-qa p a:focus-visible,
.chn-page .chn-plan-link:focus-visible,
.chn-page .chn-author-link:focus-visible {
    outline: 2px solid var(--n-link);
    outline-offset: 3px;
    border-radius: 3px;
}

/* ==========================================================================
   4. HERO
   ========================================================================== */

.chn-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    column-gap: 3.5rem;
    align-items: center;
    padding: 2.25rem 0 0.5rem;
}

/* Kept inside the hero's own box: a glow hanging past the right edge gives
   the whole page a horizontal scroll on every width below the container. */
.chn-hero::before {
    content: '';
    position: absolute;
    inset: -2rem 0 auto auto;
    width: min(560px, 100%);
    height: 560px;
    background: radial-gradient(closest-side, rgba(16, 185, 129, 0.15), rgba(37, 99, 235, 0.07) 55%, transparent 72%);
    pointer-events: none;
    z-index: 0;
}

.chn-hero > * {
    position: relative;
    z-index: 1;
}

.chn-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.chn-actions.is-center {
    justify-content: center;
}

.chn-fine {
    max-width: 36rem;
    margin: 1rem 0 0;
    font-size: 0.88rem;
    line-height: 1.6;
    color: var(--n-mute);
}

.chn-fine-alt {
    display: block;
    margin-top: 0.35rem;
    color: var(--n-ink-2);
}

.chn-assure {
    display: grid;
    gap: 0.6rem;
    margin: 1.6rem 0 0;
    padding: 0;
    list-style: none;
}

.chn-assure li {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    margin: 0;
    font-size: 0.96rem;
    font-weight: 600;
    color: var(--n-ink);
}

.chn-assure svg {
    flex-shrink: 0;
    width: 30px;
    height: 30px;
    padding: 7px;
    border-radius: 8px;
    background-color: var(--n-wash);
    color: var(--n-accent-ink);
}

/* ==========================================================================
   5. SAMPLE ISSUE (radio tabs; :has() switches the edition)
   ========================================================================== */

.chn-issue {
    position: relative;
    margin: 0;
    padding: 1.15rem 0 0;
    border: 1px solid var(--n-line);
    border-radius: 20px;
    background-color: var(--n-surface);
    box-shadow: var(--n-shadow-card);
    overflow: hidden;
}

.chn-issue::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: linear-gradient(90deg, #1D4ED8 0%, #2563EB 35%, #10B981 100%);
}

.chn-issue-cap {
    margin: 0 1.3rem;
    font-family: var(--n-mono);
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--n-mute);
}

.chn-issue-tabs {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin: 0.7rem 1.3rem 0;
    padding: 4px;
    border: 1px solid var(--n-line);
    border-radius: 12px;
    background-color: var(--n-well);
}

.chn-issue-tab {
    position: relative;
    display: flex;
    margin: 0;
    cursor: pointer;
}

.chn-issue-tab input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
}

.chn-issue-tab span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 40px;
    padding: 0.35rem 0.3rem;
    border-radius: 9px;
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    color: var(--n-ink-2);
    transition: background-color 0.2s, color 0.2s, box-shadow 0.2s;
}

.chn-issue-tab:hover span {
    color: var(--n-ink);
    background-color: rgba(255, 255, 255, 0.55);
}

.chn-issue-tab input:checked + span {
    background-color: var(--n-surface);
    color: var(--n-ink);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08), 0 4px 12px -6px rgba(15, 23, 42, 0.25);
}

.chn-issue-tab input:focus-visible + span {
    outline: 2px solid var(--n-accent);
    outline-offset: 1px;
}

.chn-issue-mail {
    padding: 1.1rem 1.3rem 1.3rem;
}

.chn-issue-from {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.chn-issue-avatar {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--n-deep);
}

.chn-issue-avatar .ch-logo-path-main {
    fill: #F8FAFC;
}

.chn-issue-avatar .ch-logo-path-cta,
.chn-issue-avatar .ch-logo-node-cta {
    fill: #10B981;
}

.chn-issue-sender {
    display: grid;
    min-width: 0;
    gap: 0.1rem;
}

.chn-issue-sender strong {
    font-size: 0.94rem;
    font-weight: 800;
    color: var(--n-ink);
}

.chn-issue-sender span {
    overflow: hidden;
    font-family: var(--n-mono);
    font-size: 0.72rem;
    color: var(--n-mute);
    text-overflow: ellipsis;
    white-space: nowrap;
}

.chn-issue-chip {
    flex-shrink: 0;
    margin-left: auto;
    padding: 0.22rem 0.5rem;
    border: 1px solid var(--n-pro-line);
    border-radius: 999px;
    background-color: var(--n-pro-wash);
    color: var(--n-pro-ink);
    font-family: var(--n-mono);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.chn-issue-meta {
    display: grid;
    gap: 0.4rem;
    margin: 1rem 0 0;
    padding: 0.75rem 0;
    border-top: 1px dashed var(--n-line);
    border-bottom: 1px dashed var(--n-line);
}

.chn-issue-row {
    display: grid;
    grid-template-columns: 4.6rem minmax(0, 1fr);
    align-items: baseline;
    gap: 0.6rem;
}

.chn-issue-row dt {
    font-family: var(--n-mono);
    font-size: 0.64rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--n-mute);
}

.chn-issue-row dd {
    margin: 0;
    font-size: 0.86rem;
    color: var(--n-ink-2);
}

.chn-issue-row.is-subject dd {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--n-ink);
}

.chn-issue-subject {
    display: block;
}

.chn-issue-list {
    display: grid;
    gap: 0.55rem;
    margin: 0.95rem 0 0;
    padding: 0;
    list-style: none;
}

.chn-issue-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    column-gap: 0.75rem;
    row-gap: 0.2rem;
    margin: 0;
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--n-line);
    border-radius: 12px;
    background-color: var(--n-well-2);
}

.chn-issue-type {
    grid-row: span 2;
    align-self: start;
    margin-top: 0.12rem;
    padding: 0.22rem 0.45rem;
    border-radius: 6px;
    font-family: var(--n-mono);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.chn-issue-type.is-guide {
    background-color: var(--n-wash);
    color: var(--n-accent-ink);
}

.chn-issue-type.is-tool {
    background-color: var(--n-pro-wash);
    color: var(--n-pro-ink);
}

.chn-issue-type.is-app {
    background-color: var(--n-warn-wash);
    color: var(--n-warn);
}

.chn-issue-title {
    font-size: 0.92rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--n-ink);
}

.chn-issue-line {
    font-size: 0.8rem;
    line-height: 1.5;
    color: var(--n-ink-2);
}

.chn-issue-note {
    display: flex;
    align-items: flex-start;
    gap: 0.55rem;
    margin: 1rem 0 0;
    padding: 0.75rem 0.9rem;
    border: 1px solid var(--n-pro-line);
    border-radius: var(--n-radius-sm);
    background-color: var(--n-pro-wash);
    color: var(--n-pro-ink);
    font-size: 0.84rem;
    font-weight: 600;
    line-height: 1.5;
}

.chn-issue-note svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
}

/* Edition switching. Without :has() the Shopify edition stays shown. */
.chn-issue [data-edition]:not([data-edition="shopify"]) {
    display: none;
}

@supports selector(:has(*)) {
    .chn-issue [data-edition] {
        display: none;
    }
    .chn-issue:has(input[value="shopify"]:checked) .chn-issue-subject[data-edition="shopify"],
    .chn-issue:has(input[value="woocommerce"]:checked) .chn-issue-subject[data-edition="woocommerce"],
    .chn-issue:has(input[value="other"]:checked) .chn-issue-subject[data-edition="other"],
    .chn-issue:has(input[value="prelaunch"]:checked) .chn-issue-subject[data-edition="prelaunch"] {
        display: block;
    }
    .chn-issue:has(input[value="shopify"]:checked) .chn-issue-list[data-edition="shopify"],
    .chn-issue:has(input[value="woocommerce"]:checked) .chn-issue-list[data-edition="woocommerce"],
    .chn-issue:has(input[value="other"]:checked) .chn-issue-list[data-edition="other"],
    .chn-issue:has(input[value="prelaunch"]:checked) .chn-issue-list[data-edition="prelaunch"] {
        display: grid;
        animation: chn-swap 0.35s var(--n-ease) both;
    }
}

@keyframes chn-swap {
    from { opacity: 0; transform: translateY(4px); }
    to   { opacity: 1; transform: none; }
}

/* ==========================================================================
   6. TILES
   ========================================================================== */

.chn-tiles {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
}

.chn-tile {
    padding: 1.45rem 1.35rem 1.35rem;
    border: 1px solid var(--n-line);
    border-radius: var(--n-radius);
    background-color: var(--n-surface);
    box-shadow: var(--n-shadow);
    transition: border-color 0.25s, transform 0.3s var(--n-ease), box-shadow 0.3s var(--n-ease);
}

.chn-tile:hover {
    border-color: var(--n-wash-line);
    transform: translateY(-3px);
    box-shadow: 0 18px 34px -22px rgba(15, 23, 42, 0.4);
}

.chn-tile-ico {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    margin-bottom: 1rem;
    border-radius: 11px;
    background-color: var(--n-wash);
    color: var(--n-accent-ink);
}

.chn-tile-q {
    margin: 0 0 0.5rem;
    font-size: 1.06rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--n-ink);
}

.chn-tile-a {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--n-ink-2);
}

.chn-tile-a strong {
    color: var(--n-ink);
}

/* ==========================================================================
   7. FREE VS PREMIUM
   ========================================================================== */

.chn-plans {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
    max-width: 960px;
}

.chn-plan {
    display: flex;
    flex-direction: column;
    padding: 1.6rem 1.5rem 1.5rem;
    border: 1px solid var(--n-line);
    border-radius: 18px;
    background-color: var(--n-surface);
    box-shadow: var(--n-shadow);
}

.chn-plan.is-pro {
    border-color: var(--n-pro-line);
    background-image: linear-gradient(180deg, var(--n-pro-wash) 0%, transparent 45%);
}

.chn-plan-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.15rem;
}

.chn-plan-name {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--n-ink);
}

.chn-plan-tag {
    padding: 0.22rem 0.55rem;
    border: 1px solid var(--n-wash-line);
    border-radius: 999px;
    background-color: var(--n-wash);
    color: var(--n-accent-ink);
    font-family: var(--n-mono);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.chn-plan-list {
    display: grid;
    flex: 1;
    align-content: start;
    gap: 0.65rem;
    margin: 0 0 1.4rem;
    padding: 1.1rem 0 0;
    border-top: 1px dashed var(--n-line);
    list-style: none;
}

.chn-plan-list li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin: 0;
    font-size: 0.96rem;
    line-height: 1.4;
    color: var(--n-ink);
}

.chn-plan-list svg {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    padding: 3px;
    border-radius: 50%;
    background-color: var(--n-wash);
    color: var(--n-accent-ink);
}

.chn-plan.is-pro .chn-plan-list svg {
    background-color: var(--n-pro-wash);
    color: var(--n-pro-ink);
}

.chn-page .chn-plan-link {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.4rem;
    min-height: 48px;
    font-size: 0.98rem;
}

/* ==========================================================================
   8. LATEST GUIDES
   ========================================================================== */

.chn-guides {
    display: grid;
    gap: 0.6rem;
    max-width: 960px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.chn-guides > li {
    margin: 0;
}

.chn-page .chn-guide,
.chn-page .chn-guide:visited {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 0.9rem;
    padding: 0.95rem 1.1rem;
    border: 1px solid var(--n-line);
    border-radius: 12px;
    background-color: var(--n-surface);
    color: var(--n-ink);
    text-decoration: none;
    transition: border-color 0.2s, background-color 0.2s, transform 0.25s var(--n-ease);
}

.chn-page a.chn-guide:hover,
.chn-page a.chn-guide:focus,
.chn-page a.chn-guide:active {
    border-color: var(--n-wash-line);
    background-color: var(--n-well-2);
    color: var(--n-ink);
    text-decoration: none;
}

.chn-page a.chn-guide:hover {
    transform: translateX(3px);
}

.chn-page a.chn-guide:focus-visible {
    outline: 2px solid var(--n-accent);
    outline-offset: 2px;
}

.chn-guide-chip {
    padding: 0.22rem 0.5rem;
    border-radius: 6px;
    background-color: var(--n-wash);
    color: var(--n-accent-ink);
    font-family: var(--n-mono);
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    white-space: nowrap;
}

.chn-guide-title {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.35;
    color: var(--n-ink);
}

.chn-guide-date {
    font-size: 0.82rem;
    color: var(--n-ink-2);
    white-space: nowrap;
}

.chn-guide-go {
    display: inline-flex;
    color: var(--n-accent-ink);
}

.chn-next {
    max-width: 960px;
    margin-top: 1.8rem;
}

.chn-next-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    font-family: var(--n-mono);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--n-pro-ink);
}

.chn-next-note {
    margin: 0.45rem 0 0.85rem;
    font-size: 0.92rem;
    line-height: 1.55;
    color: var(--n-ink-2);
}

.chn-guides.is-next .chn-guide {
    grid-template-columns: auto minmax(0, 1fr) auto;
    border-style: dashed;
    background-color: var(--n-well-2);
}

.chn-guides.is-next .chn-guide-chip {
    background-color: var(--n-pro-wash);
    color: var(--n-pro-ink);
}

/* ==========================================================================
   9. HOW IT WORKS
   ========================================================================== */

.chn-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.1rem;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: none;
}

.chn-step {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
    margin: 0;
    padding: 1.3rem 1.2rem;
    border: 1px solid var(--n-line);
    border-radius: var(--n-radius);
    background-color: var(--n-surface);
}

.chn-step-n {
    display: inline-flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid var(--n-wash-line);
    border-radius: 50%;
    background-color: var(--n-wash);
    color: var(--n-accent-ink);
    font-family: var(--n-mono);
    font-size: 0.9rem;
    font-weight: 800;
}

.chn-step-t {
    margin: 0.2rem 0 0.35rem;
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.3;
    color: var(--n-ink);
}

.chn-step-d {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.55;
    color: var(--n-ink-2);
}

/* ==========================================================================
   10. REFERENCE LAYER + DATA TABLE
   ========================================================================== */

.chn-ref > p,
.chn-author-body > p {
    max-width: 75ch;
    margin: 0 0 1.1rem;
    font-size: 1.05rem;
    line-height: 1.75;
    color: var(--n-ink-2);
}

.chn-ref > p strong,
.chn-author-body > p strong {
    color: var(--n-ink);
}

.chn-table-wrap {
    max-width: 960px;
    margin: 1.6rem 0 0;
    border: 1px solid var(--n-line);
    border-radius: 14px;
    background-color: var(--n-surface);
    box-shadow: var(--n-shadow);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.chn-table-wrap:focus-visible {
    outline: 2px solid var(--n-accent);
    outline-offset: 2px;
}

.chn-table {
    width: 100%;
    min-width: 660px;
    margin: 0;
    border: 0;
    border-collapse: collapse;
    font-variant-numeric: tabular-nums;
}

.chn-table caption {
    padding: 0.95rem 1.1rem 0.7rem;
    caption-side: top;
    font-family: var(--n-mono);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    color: var(--n-ink-2);
}

.chn-table th,
.chn-table td {
    padding: 0.7rem 0.95rem;
    border: 0;
    border-top: 1px solid var(--n-line);
    font-size: 0.92rem;
    text-align: right;
    white-space: nowrap;
}

.chn-table thead th {
    background-color: var(--n-well);
    font-family: var(--n-mono);
    font-size: 0.64rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--n-ink-2);
}

.chn-table th:first-child,
.chn-table td:first-child {
    text-align: left;
}

.chn-table tbody th {
    font-weight: 800;
    color: var(--n-ink);
}

.chn-table td {
    color: var(--n-ink-2);
}

.chn-table td.is-low {
    background-color: var(--n-warn-wash);
    color: var(--n-warn);
    font-weight: 800;
}

/* 0,2,0: above .chn-ref > p, which would otherwise size these as body copy. */
.chn-ref > .chn-table-note,
.chn-ref > .chn-source {
    max-width: 75ch;
    margin: 0.9rem 0 0;
    font-size: 0.86rem;
    line-height: 1.6;
    color: var(--n-ink-2);
}

.chn-ref > .chn-source {
    margin-top: 0.5rem;
    color: var(--n-mute);
}

/* ==========================================================================
   11. AUTHOR
   ========================================================================== */

.chn-author {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 2rem;
    align-items: start;
    max-width: 960px;
    padding: 2rem;
    border: 1px solid var(--n-line);
    border-radius: 18px;
    background-color: var(--n-surface);
    box-shadow: var(--n-shadow);
}

.chn-author-photo {
    display: block;
    width: 112px;
    height: 112px;
    border: 3px solid var(--n-surface);
    border-radius: 50%;
    box-shadow: 0 0 0 2px var(--n-wash-line), 0 12px 24px -14px rgba(15, 23, 42, 0.5);
    object-fit: cover;
}

.chn-author-role {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.6rem;
    margin: 0.9rem 0 1rem;
    font-size: 0.95rem;
    color: var(--n-ink-2);
}

.chn-author-role strong {
    font-size: 1.02rem;
    color: var(--n-ink);
}

.chn-page .chn-author-link {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    min-height: 44px;
}

/* ==========================================================================
   12. FAQ
   ========================================================================== */

.chn-faq-list {
    display: grid;
    gap: 0.7rem;
    max-width: 860px;
}

.chn-qa {
    border: 1px solid var(--n-line);
    border-radius: 12px;
    background-color: var(--n-surface);
    transition: border-color 0.2s;
}

.chn-qa[open] {
    border-color: var(--n-wash-line);
}

.chn-qa summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.05rem 1.2rem;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.4;
    color: var(--n-ink);
    cursor: pointer;
    list-style: none;
}

.chn-qa summary::-webkit-details-marker {
    display: none;
}

.chn-qa summary:hover {
    color: var(--n-accent-ink);
}

.chn-qa summary:focus-visible {
    outline: 2px solid var(--n-accent);
    outline-offset: 2px;
    border-radius: 12px;
}

.chn-qa-ico {
    position: relative;
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background-color: var(--n-well);
}

.chn-qa-ico::before,
.chn-qa-ico::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 11px;
    height: 2px;
    border-radius: 2px;
    background-color: var(--n-ink);
    transform: translate(-50%, -50%);
    transition: transform 0.25s var(--n-ease);
}

.chn-qa-ico::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.chn-qa[open] .chn-qa-ico {
    background-color: var(--n-wash);
}

.chn-qa[open] .chn-qa-ico::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.chn-qa p {
    margin: 0;
    padding: 0 1.2rem 1.15rem;
    font-size: 0.98rem;
    line-height: 1.7;
    color: var(--n-ink-2);
}

/* ==========================================================================
   13. CLOSING BAND (light card in light mode, deep surface in dark)
   ========================================================================== */

/* Light mode: white, an emerald glow from one corner and a Premium-blue one
   from the other, a hairline and the page's card shadow; the buttons are the
   page's own. Dark mode: the deep surface with its light buttons (section 15).
   It was the deep surface in both themes until 2026-10-04. */
.chn-band {
    margin-top: 5.5rem;
    padding: 3.2rem 2rem;
    border: 1px solid var(--n-line);
    border-radius: 22px;
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(16, 185, 129, 0.13), transparent 70%),
        radial-gradient(520px 320px at 100% 100%, rgba(37, 99, 235, 0.10), transparent 70%),
        linear-gradient(180deg, #F8FAFC 0%, var(--n-surface) 100%);
    box-shadow: var(--n-shadow-card);
    color: var(--n-ink);
    text-align: center;
}

.chn-band-h2 {
    max-width: 720px;
    margin: 0.7rem auto 0;
    font-size: clamp(1.5rem, 2.6vw, 2.05rem);
    font-weight: 800;
    line-height: 1.18;
    letter-spacing: -0.02em;
    text-wrap: balance;
    color: var(--n-ink);
}

.chn-band-p {
    max-width: 620px;
    margin: 0.9rem auto 1.7rem;
    font-size: 1rem;
    line-height: 1.6;
    color: var(--n-ink-2);
}

/* ==========================================================================
   14. RESPONSIVE
   ========================================================================== */

@media (max-width: 1100px) {
    .chn-tiles {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .chn-steps {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1024px) {
    .chn-hero {
        grid-template-columns: 1fr;
        row-gap: 2.5rem;
        padding-top: 1.25rem;
    }
    .chn-issue {
        max-width: 560px;
    }
    .chn-hero::before {
        width: min(420px, 100%);
        height: 420px;
    }
}

@media (max-width: 720px) {
    .chn-section {
        margin-top: 3.8rem;
    }
    .chn-band {
        margin-top: 4rem;
        padding: 2.4rem 1.25rem;
        border-radius: 18px;
    }
    .chn-plans {
        grid-template-columns: 1fr;
    }
    .chn-author {
        grid-template-columns: 1fr;
        gap: 1.2rem;
        padding: 1.5rem 1.25rem;
    }
    .chn-author-photo {
        width: 88px;
        height: 88px;
    }
    .chn-page .chn-guide,
    .chn-page .chn-guide:visited {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "chip  go"
            "title title"
            "date  date";
        row-gap: 0.4rem;
    }
    .chn-guides.is-next .chn-guide {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas:
            "chip"
            "title"
            "date";
    }
    .chn-guide-chip  { grid-area: chip; justify-self: start; }
    .chn-guide-title { grid-area: title; }
    .chn-guide-date  { grid-area: date; }
    .chn-guide-go    { grid-area: go; }
}

@media (max-width: 640px) {
    .chn-lead {
        font-size: 1.04rem;
    }
    .chn-actions .chn-btn {
        width: 100%;
    }
    .chn-tiles,
    .chn-steps {
        grid-template-columns: 1fr;
    }
    /* Icon beside the question: four stacked tiles cost a full screen otherwise. */
    .chn-tile {
        display: grid;
        grid-template-columns: 38px minmax(0, 1fr);
        column-gap: 0.85rem;
        padding: 1.15rem 1.1rem;
    }
    .chn-tile-ico {
        grid-row: span 2;
        width: 38px;
        height: 38px;
        margin: 0;
    }
    .chn-tile-q {
        align-self: center;
    }
    .chn-issue-mail {
        padding: 1rem 1rem 1.1rem;
    }
    .chn-issue-cap {
        margin: 0 1rem;
    }
    .chn-issue-tabs {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin: 0.7rem 1rem 0;
    }
    .chn-issue-row {
        grid-template-columns: 3.9rem minmax(0, 1fr);
    }
    .chn-center .chn-btn {
        width: 100%;
    }
}

/* ==========================================================================
   15. DARK
   ========================================================================== */

html[data-theme="dark"] .chn-page {
    --n-surface:   #1E293B;
    --n-well:      #0F172A;
    --n-well-2:    #172033;
    --n-line:      #334155;
    --n-line-hi:   #475569;
    --n-ink:       #F1F5F9;
    --n-ink-2:     #CBD5E1;
    --n-mute:      #94A3B8;
    --n-cta:       #10B981;
    --n-cta-hi:    #34D399;
    --n-cta-text:  #04241C;
    --n-accent:    #34D399;
    --n-accent-ink:#6EE7B7;
    --n-wash:      rgba(16, 185, 129, 0.14);
    --n-wash-line: rgba(52, 211, 153, 0.45);
    --n-link:      #93C5FD;
    --n-link-hi:   #BFDBFE;
    --n-pro:       #2563EB;
    --n-pro-ink:   #93C5FD;
    --n-pro-wash:  rgba(96, 165, 250, 0.12);
    --n-pro-line:  rgba(147, 197, 253, 0.40);
    --n-warn:      #FBBF24;
    --n-warn-wash: rgba(245, 158, 11, 0.12);
    --n-warn-line: rgba(251, 191, 36, 0.45);
    --n-shadow:      0 1px 2px rgba(0, 0, 0, 0.3), 0 18px 40px -26px rgba(0, 0, 0, 0.7);
    --n-shadow-card: 0 1px 2px rgba(0, 0, 0, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.85);
}

html[data-theme="dark"] .chn-hero::before {
    background: radial-gradient(closest-side, rgba(16, 185, 129, 0.13), rgba(37, 99, 235, 0.10) 55%, transparent 72%);
}

html[data-theme="dark"] .chn-page .chn-btn-primary,
html[data-theme="dark"] .chn-page .chn-btn-primary:visited {
    box-shadow: 0 10px 24px -14px rgba(16, 185, 129, 0.7);
}

html[data-theme="dark"] .chn-page .chn-btn-google:hover,
html[data-theme="dark"] .chn-page .chn-btn-google:focus,
html[data-theme="dark"] .chn-page .chn-btn-google:focus-visible,
html[data-theme="dark"] .chn-page .chn-btn-google:active {
    background-color: #334155;
    border-color: #94A3B8;
    color: #FFFFFF;
}

html[data-theme="dark"] .chn-issue-tab:hover span {
    background-color: rgba(51, 65, 85, 0.6);
    color: #FFFFFF;
}

html[data-theme="dark"] .chn-issue-tab input:checked + span {
    background-color: #334155;
    color: #FFFFFF;
    box-shadow: 0 4px 12px -6px rgba(0, 0, 0, 0.6);
}

html[data-theme="dark"] .chn-issue-avatar {
    background-color: #0B1220;
    box-shadow: inset 0 0 0 1px #334155;
}

html[data-theme="dark"] .chn-plan.is-pro {
    background-image: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, transparent 45%);
}

html[data-theme="dark"] .chn-table thead th {
    background-color: #172033;
}

/* The closing band is the deep surface in dark only. It equals the dark page
   background, so it needs an edge. */
html[data-theme="dark"] .chn-band {
    border: 1px solid #1E293B;
    background:
        radial-gradient(600px 300px at 0% 0%, rgba(16, 185, 129, 0.18), transparent 70%),
        radial-gradient(520px 320px at 100% 100%, rgba(37, 99, 235, 0.2), transparent 70%),
        linear-gradient(160deg, #101B2E 0%, var(--n-deep) 60%, #0A1222 100%);
    box-shadow: 0 30px 60px -40px rgba(0, 0, 0, 0.9);
    color: #E2E8F0;
}

html[data-theme="dark"] .chn-band-h2 { color: #F8FAFC; }
html[data-theme="dark"] .chn-band-p { color: #CBD5E1; }
html[data-theme="dark"] .chn-kicker.is-deep { color: #34D399; }

html[data-theme="dark"] .chn-band .chn-btn-primary,
html[data-theme="dark"] .chn-band .chn-btn-primary:visited {
    background-color: #10B981;
    border-color: #10B981;
    color: #04241C;
    box-shadow: 0 12px 26px -14px rgba(16, 185, 129, 0.8);
}

html[data-theme="dark"] .chn-band .chn-btn-primary:hover,
html[data-theme="dark"] .chn-band .chn-btn-primary:focus,
html[data-theme="dark"] .chn-band .chn-btn-primary:focus-visible,
html[data-theme="dark"] .chn-band .chn-btn-primary:active {
    background-color: #34D399;
    border-color: #34D399;
    color: #04241C;
}

html[data-theme="dark"] .chn-band .chn-btn-google,
html[data-theme="dark"] .chn-band .chn-btn-google:visited {
    background-color: #1E293B;
    border-color: #475569;
    color: #F1F5F9;
}

html[data-theme="dark"] .chn-band .chn-btn-google:hover,
html[data-theme="dark"] .chn-band .chn-btn-google:focus,
html[data-theme="dark"] .chn-band .chn-btn-google:focus-visible,
html[data-theme="dark"] .chn-band .chn-btn-google:active {
    background-color: #334155;
    border-color: #94A3B8;
    color: #FFFFFF;
}

/* ==========================================================================
   16. REDUCED MOTION
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .chn-page *,
    .chn-page *::before,
    .chn-page *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    .chn-tile:hover,
    .chn-page a.chn-guide:hover,
    .chn-page .chn-btn-primary:hover {
        transform: none;
    }
}
