/* main.css — Word Game Wizard
   Navy + gold theme. Single stylesheet, mobile-first.
   ─────────────────────────────────────────────────── */

/* ── Reset & base ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    /* ── Brand palette ── */
    --color-navy:        #1c2340;   /* primary navy */
    --color-navy-dark:   #16192e;   /* subnav / deeper surfaces */
    --color-gold:        #e8b84b;   /* gold accent */
    --color-gold-dark:   #c49a30;   /* gold hover / pressed */
    --color-cream:       #f5f0e6;   /* page background */
    --color-cream-dark:  #ede8dc;   /* card alt background */
    --color-parchment:   #fff9f0;   /* card surface */

    /* ── Semantic aliases (used throughout) ── */
    --color-primary:     var(--color-navy);
    --color-accent:      var(--color-gold);
    --color-accent-2:    var(--color-gold-dark);
    --color-text:        #1e1e1e;
    --color-muted:       #5c6370;
    --color-border:      #d4c9b0;
    --color-bg:          var(--color-parchment);
    --color-bg-alt:      var(--color-cream-dark);

    /* ── Typography ── */
    --font-sans:         'Palatino Linotype', Palatino, Georgia, serif;
    --font-ui:           'Courier New', Courier, monospace;

    /* ── Layout ── */
    --radius:            4px;
    --container:         1100px;
    --nav-height:        48px;
    --subnav-height:     36px;
}

body {
    font-family: var(--font-sans);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background: var(--color-cream);
}

a            { color: var(--color-accent); text-decoration: none; }
a:hover      { text-decoration: underline; }
img          { max-width: 100%; height: auto; display: block; }
h1,h2,h3,h4 { line-height: 1.3; font-weight: 700; }

/* ── Container ──────────────────────────────────────────────────────── */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ═══════════════════════════════════════════════════════════════════
   HEADER & NAV
   ═══════════════════════════════════════════════════════════════════ */

.site-header {
    background: var(--color-navy);
    border-bottom: 3px solid var(--color-gold);
    position: sticky;
    top: 0;
    z-index: 100;
}

/* ── Top bar ── */
.site-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: var(--nav-height);
    gap: 1rem;
}

.site-logo {
    font-family: var(--font-ui);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-gold);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; opacity: .9; }

/* Primary nav links */
.site-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}
.site-nav a {
    color: rgba(255,255,255,.75);
    font-family: var(--font-ui);
    font-size: .75rem;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-decoration: none;
    transition: color .15s;
    white-space: nowrap;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] { color: var(--color-gold); text-decoration: none; }

/* Hamburger — hidden on desktop */
.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    width: 36px;
    height: 36px;
    padding: 6px;
    background: transparent;
    border: 1px solid rgba(255,255,255,.2);
    border-radius: var(--radius);
    cursor: pointer;
    flex-shrink: 0;
}
.nav-toggle span {
    display: block;
    width: 100%;
    height: 2px;
    background: rgba(255,255,255,.8);
    border-radius: 1px;
    transition: transform .2s, opacity .2s;
}
/* Animated X state */
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Tools nav strip (sub-nav) ── */
.tools-nav-strip {
    background: var(--color-navy-dark);
    border-top: 1px solid rgba(232,184,75,.2);
}
.tools-nav-inner {
    display: flex;
    align-items: center;
    gap: 0;
    height: var(--subnav-height);
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.tools-nav-inner::-webkit-scrollbar { display: none; }

.tools-nav-label {
    font-family: var(--font-ui);
    font-size: .65rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.35);
    white-space: nowrap;
    padding-right: 1rem;
    flex-shrink: 0;
}
.tools-nav-item {
    font-family: var(--font-ui);
    font-size: .7rem;
    letter-spacing: .05em;
    color: rgba(255,255,255,.6);
    white-space: nowrap;
    padding: 0 1rem;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    border-right: 1px solid rgba(255,255,255,.08);
    transition: color .15s, background .15s;
    flex-shrink: 0;
}
.tools-nav-item:hover {
    color: var(--color-gold);
    background: rgba(232,184,75,.06);
    text-decoration: none;
}

/* ═══════════════════════════════════════════════════════════════════
   AD ZONES
   ═══════════════════════════════════════════════════════════════════ */
.ad-unit        { text-align: center; margin: 1rem auto; overflow: hidden; }
.ad-header      { background: var(--color-bg-alt); padding: .5rem 0; border-bottom: 1px solid var(--color-border); }
.ad-footer      { background: var(--color-bg-alt); padding: .5rem 0; border-top: 1px solid var(--color-border); }
.ad-sidebar     { margin-bottom: 1.5rem; }

/* ═══════════════════════════════════════════════════════════════════
   MAIN 2-COLUMN LAYOUT
   ═══════════════════════════════════════════════════════════════════ */
.layout-main {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 2.5rem;
    padding-top: 2rem;
    padding-bottom: 3rem;
    align-items: start;
}

/* ═══════════════════════════════════════════════════════════════════
   SIDEBAR
   ═══════════════════════════════════════════════════════════════════ */
.sidebar      { position: sticky; top: calc(var(--nav-height) + var(--subnav-height) + 1.5rem); }
.widget {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-accent);
    border-radius: var(--radius);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
}
.widget-title {
    font-family: var(--font-ui);
    font-size: .75rem;
    text-transform: uppercase;
    letter-spacing: .1em;
    color: var(--color-navy);
    margin-bottom: .75rem;
}
.widget-list        { list-style: none; }
.widget-list li     { border-bottom: 1px solid var(--color-border); padding: .4rem 0; font-size: .9rem; }
.widget-list li:last-child { border-bottom: none; }
.widget-list a      { color: var(--color-text); display: flex; justify-content: space-between; }
.widget-list .count { color: var(--color-muted); font-size: .8rem; }

/* Affiliate widget — visually distinct from editorial content */
.widget-affiliates,
.widget-affiliates .widget-title,
.widget-affiliates .affiliate-product__title,
.widget-affiliates .affiliate-product__desc,
.widget-affiliates .affiliate-disclosure,
.widget-affiliates .btn-affiliate {
    font-family: system-ui, -apple-system, 'Segoe UI', Helvetica, Arial, sans-serif;
}
.widget-affiliates {
    background: #fffbf0;
    border-top-color: var(--color-gold-dark);
    border-color: #d4b870;
}
.widget-affiliates .widget-title {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.affiliate-badge {
    display: inline-block;
    font-size: .6rem;
    font-family: var(--font-ui);
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #7a5c00;
    background: #fde98a;
    border: 1px solid #c49a30;
    border-radius: 3px;
    padding: 1px 5px;
    line-height: 1.6;
}
.affiliate-product { padding: .65rem 0; border-bottom: 1px solid #e0d09a; }
.affiliate-product:last-child { border-bottom: none; padding-bottom: 0; }
.affiliate-product__img   { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: .5rem; }
.affiliate-product__title { font-size: 1rem; font-weight: 700; color: var(--color-text); margin-bottom: .2rem; line-height: 1.35; }
.affiliate-product__desc  { font-size: .78rem; color: var(--color-muted); line-height: 1.45; margin-bottom: .5rem; }
.affiliate-disclosure {
    margin-top: .75rem;
    padding-top: .6rem;
    border-top: 1px solid #e0d09a;
    font-size: .7rem;
    color: var(--color-muted);
    font-style: italic;
    line-height: 1.5;
}
.affiliate-disclosure a { color: var(--color-muted); text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════════════
   POST CARDS
   ═══════════════════════════════════════════════════════════════════ */
.grid      { display: grid; gap: 1.5rem; }
.grid-3    { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }

.post-card {
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-bottom: 3px solid var(--color-accent);
    border-radius: var(--radius);
    overflow: hidden;
    transition: box-shadow .15s, transform .15s;
}
.post-card:hover { box-shadow: 0 4px 18px rgba(28,35,64,.1); transform: translateY(-1px); }

.post-card img          { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.post-card-body         { padding: 1rem; }
.post-category {
    display: inline-block;
    background: var(--color-accent);
    color: var(--color-navy);
    padding: .15rem .5rem;
    border-radius: 2px;
    font-family: var(--font-ui);
    font-size: .7rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    font-weight: 700;
}
.post-card h3           { margin: .35rem 0 .5rem; font-size: 1rem; }
.post-card h3 a         { color: var(--color-text); }
.post-card h3 a:hover   { color: var(--color-accent); text-decoration: none; }
.post-excerpt           { font-size: .875rem; color: var(--color-muted); margin-bottom: .5rem; }
.post-card time         { font-size: .75rem; color: var(--color-muted); font-family: var(--font-ui); }

/* ═══════════════════════════════════════════════════════════════════
   SINGLE POST
   ═══════════════════════════════════════════════════════════════════ */
.post-single             { max-width: 740px; }
.post-header             { margin-bottom: 1.5rem; }
.post-header h1          { font-size: 2rem; margin: .5rem 0; }
.post-meta               { color: var(--color-muted); font-size: .875rem; font-family: var(--font-ui); }
.post-featured-image     { margin-bottom: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.post-featured-image img { width: 100%; }

.post-body h2, .post-body h3 { margin: 1.75rem 0 .75rem; }
.post-body p            { margin-bottom: 1.1rem; }
.post-body ul, .post-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.post-body li           { margin-bottom: .35rem; }
.post-body blockquote {
    border-left: 3px solid var(--color-accent);
    padding-left: 1rem;
    color: var(--color-muted);
    margin: 1.5rem 0;
}

/* ═══════════════════════════════════════════════════════════════════
   BUTTONS
   ═══════════════════════════════════════════════════════════════════ */
.btn-affiliate {
    display: block;
    background: var(--color-accent);
    color: var(--color-navy);
    text-align: center;
    padding: .6rem 1rem;
    border-radius: var(--radius);
    font-family: var(--font-ui);
    font-size: .875rem;
    font-weight: 700;
    margin-bottom: .5rem;
    text-decoration: none;
}
.btn-affiliate:hover { background: var(--color-gold-dark); text-decoration: none; }

.btn-outline {
    display: inline-block;
    margin-top: 1.5rem;
    padding: .6rem 1.4rem;
    border: 2px solid var(--color-accent);
    border-radius: var(--radius);
    color: var(--color-accent);
    font-family: var(--font-ui);
    font-size: .875rem;
    font-weight: 600;
}
.btn-outline:hover { background: var(--color-accent); color: var(--color-navy); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════
   RELATED POSTS
   ═══════════════════════════════════════════════════════════════════ */
.related-posts       { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--color-border); }
.related-posts h2    { margin-bottom: 1.25rem; font-size: 1.25rem; }
.post-card-small img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.post-card-small h3  { font-size: .9rem; }

/* ═══════════════════════════════════════════════════════════════════
   FOOTER
   ═══════════════════════════════════════════════════════════════════ */
.site-footer {
    background: var(--color-navy);
    border-top: 3px solid var(--color-gold);
    color: rgba(255,255,255,.55);
    padding: 1.25rem 0;
    font-family: var(--font-ui);
    font-size: .8rem;
    text-align: center;
    margin-top: 2rem;
}
.site-footer a { color: rgba(255,255,255,.65); }
.site-footer a:hover { color: var(--color-gold); text-decoration: none; }

/* ═══════════════════════════════════════════════════════════════════
   HOME PAGE — HERO
   ═══════════════════════════════════════════════════════════════════ */

.home-hero {
    background: var(--color-navy);
    border-radius: var(--radius);
    padding: 3rem 2.5rem 2.5rem;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
}

/* Crossword grid texture + radial vignette in one pseudo-element (both sit behind real children) */
.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(ellipse 75% 95% at 50% 50%, var(--color-navy) 25%, transparent 100%),
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='132' height='132'%3E%3Crect x='0' y='0' width='44' height='44' fill='rgba(245,240,230,0.07)' stroke='rgba(200,190,170,0.18)' stroke-width='1.5'/%3E%3Crect x='44' y='0' width='44' height='44' fill='rgba(245,240,230,0.07)' stroke='rgba(200,190,170,0.18)' stroke-width='1.5'/%3E%3Crect x='88' y='0' width='44' height='44' fill='rgba(245,240,230,0.07)' stroke='rgba(200,190,170,0.18)' stroke-width='1.5'/%3E%3Crect x='0' y='44' width='44' height='44' fill='rgba(245,240,230,0.07)' stroke='rgba(200,190,170,0.18)' stroke-width='1.5'/%3E%3Crect x='44' y='44' width='44' height='44' fill='rgba(245,240,230,0.07)' stroke='rgba(200,190,170,0.18)' stroke-width='1.5'/%3E%3Crect x='88' y='44' width='44' height='44' fill='rgba(10,14,32,0.75)' stroke='rgba(0,0,0,0.5)' stroke-width='1.5'/%3E%3Crect x='0' y='88' width='44' height='44' fill='rgba(10,14,32,0.75)' stroke='rgba(0,0,0,0.5)' stroke-width='1.5'/%3E%3Crect x='44' y='88' width='44' height='44' fill='rgba(245,240,230,0.07)' stroke='rgba(200,190,170,0.18)' stroke-width='1.5'/%3E%3Crect x='88' y='88' width='44' height='44' fill='rgba(245,240,230,0.07)' stroke='rgba(200,190,170,0.18)' stroke-width='1.5'/%3E%3Ctext x='9' y='30' font-family='Georgia,serif' font-size='21' font-weight='700' fill='rgba(245,240,230,0.14)'%3EW%3C/text%3E%3Ctext x='51' y='30' font-family='Georgia,serif' font-size='21' font-weight='700' fill='rgba(245,240,230,0.14)'%3EO%3C/text%3E%3Ctext x='95' y='30' font-family='Georgia,serif' font-size='21' font-weight='700' fill='rgba(245,240,230,0.14)'%3ER%3C/text%3E%3Ctext x='9' y='74' font-family='Georgia,serif' font-size='21' font-weight='700' fill='rgba(245,240,230,0.14)'%3ED%3C/text%3E%3Ctext x='51' y='74' font-family='Georgia,serif' font-size='21' font-weight='700' fill='rgba(245,240,230,0.14)'%3ES%3C/text%3E%3Ctext x='51' y='118' font-family='Georgia,serif' font-size='21' font-weight='700' fill='rgba(245,240,230,0.14)'%3EA%3C/text%3E%3Ctext x='95' y='118' font-family='Georgia,serif' font-size='21' font-weight='700' fill='rgba(245,240,230,0.14)'%3EZ%3C/text%3E%3C/svg%3E");
    background-size: auto, 132px 132px;
    pointer-events: none;
}

.home-hero__inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 3rem;
}

/* ── Logo / image ── */
.home-hero__logo-wrap { flex-shrink: 0; animation: heroLogoIn .6s ease both; }
.home-hero__logo {
    width: 200px;
    height: auto;
    filter: drop-shadow(0 8px 24px rgba(0,0,0,.4));
}
@keyframes heroLogoIn {
    from { opacity: 0; transform: translateY(-12px) rotate(-3deg); }
    to   { opacity: 1; transform: none; }
}

/* ── Text block ── */
.home-hero__text { animation: heroTextIn .6s .12s ease both; }
@keyframes heroTextIn {
    from { opacity: 0; transform: translateY(10px); }
    to   { opacity: 1; transform: none; }
}

.home-hero__eyebrow {
    font-family: var(--font-ui);
    font-size: .7rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(232,184,75,.65);
    margin-bottom: .5rem;
}
.home-hero__title {
    font-family: var(--font-sans);
    font-size: 2.75rem;
    font-weight: 700;
    color: var(--color-gold);
    margin-bottom: .6rem;
    line-height: 1.15;
}
.home-hero__tagline {
    color: rgba(255,255,255,.78);
    font-size: 1.05rem;
    line-height: 1.65;
    margin-bottom: 1.5rem;
}
.home-hero__cta {
    display: inline-block;
    background: var(--color-gold);
    color: var(--color-navy);
    font-family: var(--font-ui);
    font-weight: 700;
    font-size: .85rem;
    letter-spacing: .1em;
    text-transform: uppercase;
    padding: .75rem 1.75rem;
    border-radius: var(--radius);
    text-decoration: none;
    transition: background .15s, transform .15s;
}
.home-hero__cta:hover { background: var(--color-gold-dark); transform: translateY(-1px); text-decoration: none; }

.home-hero__scroll-hint {
    text-align: center;
    color: rgba(255,255,255,.25);
    font-size: 1.1rem;
    margin-top: 1.5rem;
    position: relative;
    animation: scrollBounce 2s ease-in-out infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(5px); }
}

/* ═══════════════════════════════════════════════════════════════════
   HOME PAGE — TOOL CARDS
   ═══════════════════════════════════════════════════════════════════ */
.home-tools { margin-bottom: 3rem; }

.home-tools__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    gap: 1rem;
}
.home-tools__title {
    font-family: var(--font-ui);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-navy);
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--color-gold);
}
.home-tools__all {
    font-family: var(--font-ui);
    font-size: .75rem;
    color: var(--color-accent);
    text-decoration: none;
    white-space: nowrap;
}
.home-tools__all:hover { text-decoration: underline; }

.home-tools__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: .75rem;
}

.htool-card {
    display: flex;
    flex-direction: column;
    gap: .25rem;
    padding: 1rem 1.1rem;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-gold);
    border-radius: var(--radius);
    text-decoration: none;
    transition: box-shadow .15s, transform .15s;
}
.htool-card:hover {
    box-shadow: 0 4px 18px rgba(28,35,64,.12);
    transform: translateY(-2px);
    text-decoration: none;
}
.htool-card--more {
    border-top-color: var(--color-border);
    border-style: dashed;
    opacity: .6;
}
.htool-card--more:hover { opacity: 1; box-shadow: none; transform: none; }

.htool-card__icon { font-size: 1.4rem; line-height: 1; margin-bottom: .15rem; }
.htool-card__name {
    font-family: var(--font-ui);
    font-size: .88rem;
    font-weight: 700;
    color: var(--color-navy);
}
.htool-card__desc { font-size: .78rem; color: var(--color-muted); line-height: 1.45; }

/* ═══════════════════════════════════════════════════════════════════
   HOME PAGE — WHY SECTION
   ═══════════════════════════════════════════════════════════════════ */
.home-why {
    background: var(--color-bg-alt);
    border: 1px solid var(--color-border);
    border-top: 3px solid var(--color-gold);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    margin-bottom: 3rem;
}
.home-why__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1.5rem;
}
.home-why__item        { display: flex; flex-direction: column; gap: .35rem; }
.home-why__icon        { font-size: 1.6rem; line-height: 1; margin-bottom: .15rem; }
.home-why__item h3 {
    font-family: var(--font-ui);
    font-size: .875rem;
    font-weight: 700;
    color: var(--color-navy);
    letter-spacing: .03em;
}
.home-why__item p { font-size: .85rem; color: var(--color-muted); line-height: 1.55; margin: 0; }

/* ═══════════════════════════════════════════════════════════════════
   HOME PAGE — ARTICLES
   ═══════════════════════════════════════════════════════════════════ */
.home-articles { margin-bottom: 2rem; }
.home-articles__header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 1.1rem;
    gap: 1rem;
}
.home-articles__title {
    font-family: var(--font-ui);
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--color-navy);
    padding-bottom: .4rem;
    border-bottom: 2px solid var(--color-gold);
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — TABLET  (≤ 900px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
    .layout-main { grid-template-columns: 1fr; }
    .sidebar      { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   RESPONSIVE — MOBILE  (≤ 640px)
   ═══════════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

    /* ── Nav ── */
    .nav-toggle  { display: flex; }
    .site-nav {
        display: none;
        position: absolute;
        top: calc(var(--nav-height) + 3px);
        left: 0;
        right: 0;
        background: var(--color-navy-dark);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        border-bottom: 2px solid var(--color-gold);
        z-index: 200;
    }
    .site-nav.open { display: flex; }
    .site-nav a {
        padding: .85rem 1.25rem;
        border-bottom: 1px solid rgba(255,255,255,.07);
        font-size: .8rem;
    }
    .site-nav a:hover { background: rgba(232,184,75,.08); }

    /* ── Tools subnav — stays horizontal, scrollable ── */
    .tools-nav-item  { padding: 0 .75rem; font-size: .65rem; }
    .tools-nav-label { display: none; }

    /* ── Hero — stack vertically ── */
    .home-hero { padding: 2rem 1.25rem 1.75rem; margin-bottom: 2rem; }
    .home-hero__inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 1.25rem;
    }
    .home-hero__logo    { width: 130px; }
    .home-hero__title   { font-size: 2rem; }
    .home-hero__tagline { font-size: .95rem; }
    .home-hero__cta     { width: 100%; text-align: center; }

    /* ── Tool grid — 2 columns on mobile ── */
    .home-tools__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* ── Why grid — 2 columns ── */
    .home-why__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

    /* ── Post grid — single column ── */
    .grid-3 { grid-template-columns: 1fr; }

    /* ── Sidebar topics: show inline as a compact strip ── */
    .sidebar-mobile-strip {
        display: flex;
        gap: .5rem;
        flex-wrap: wrap;
        background: var(--color-bg-alt);
        border: 1px solid var(--color-border);
        border-top: 3px solid var(--color-gold);
        border-radius: var(--radius);
        padding: .75rem 1rem;
        margin-bottom: 1.5rem;
    }
    .sidebar-mobile-strip__label {
        font-family: var(--font-ui);
        font-size: .65rem;
        text-transform: uppercase;
        letter-spacing: .1em;
        color: var(--color-navy);
        font-weight: 700;
        width: 100%;
        margin-bottom: .25rem;
    }
    .sidebar-mobile-strip a {
        display: inline-flex;
        align-items: center;
        gap: .35rem;
        font-family: var(--font-ui);
        font-size: .72rem;
        color: var(--color-text);
        background: var(--color-bg);
        border: 1px solid var(--color-border);
        border-radius: 2px;
        padding: .3rem .6rem;
        text-decoration: none;
    }
    .sidebar-mobile-strip a:hover { border-color: var(--color-gold); color: var(--color-navy); }
    .sidebar-mobile-strip .count  { color: var(--color-muted); font-size: .65rem; }

    /* ── General spacing ── */
    .layout-main { padding-top: 1.25rem; padding-bottom: 2rem; }
    .home-why    { padding: 1.25rem 1rem; margin-bottom: 2rem; }
    .home-tools  { margin-bottom: 2rem; }
}

/* ═══════════════════════════════════════════════════════════════════
   TOOL WIDGET (shared across tool pages)
   ═══════════════════════════════════════════════════════════════════ */
.tool-widget {
    background: var(--color-navy);
    border: 2px solid var(--color-gold);
    border-radius: var(--radius);
}
.tool-input-row input {
    font-family: var(--font-ui);
    font-size: 1.3rem;
    letter-spacing: .15em;
    text-transform: uppercase;
    background: #fff;
    border: 2px solid var(--color-gold);
}
