/* ============================================================
   Board Games Guide — Editorial revamp (v1)
   Palette: ink green, warm paper, persimmon, gold
   Type: Fraunces (display) + Manrope (text/UI)
   Loaded after style.css + custom.css and overrides both.
   ============================================================ */

:root {
    /* New tokens */
    --ink: #17211c;
    --ink-soft: #26312b;
    --paper: #fbf7ef;
    --paper-deep: #f3ecdf;
    --card: #ffffff;
    --coral: #c8431d;
    --coral-bright: #e4572e;
    --coral-dark: #a83414;
    --pine: #2f6b57;
    --pine-dark: #1e4a3b;
    --gold: #e9b44c;
    --muted: #667065;
    --line: #e7dfd0;
    --line-strong: #d8cbb7;
    --font-heading: 'Fraunces', Georgia, 'Times New Roman', serif;
    --font-body: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --radius-sm: 10px;
    --radius: 16px;
    --radius-lg: 24px;
    --shadow-card: 0 22px 55px -30px rgba(23, 33, 28, 0.35);
    --shadow-soft: 0 10px 30px -18px rgba(23, 33, 28, 0.28);
    --wrap: 1180px;

    /* Legacy variable names used by older selectors */
    --primary-color: #c8431d;
    --primary-dark: #a83414;
    --secondary-color: #2f6b57;
    --accent-color: #e9b44c;
    --text-dark: #17211c;
    --text-light: #667065;
    --bg-light: #fbf7ef;
    --bg-white: #ffffff;
    --border-color: #e7dfd0;
    --color-primary: #c8431d;
    --color-primary-dark: #a83414;
    --color-primary-light: #e4572e;
    --color-secondary: #2f6b57;
    --color-accent: #e9b44c;
    --color-bg: #fbf7ef;
    --color-bg-warm: #f3ecdf;
    --color-text: #26312b;
    --color-text-light: #667065;
    --color-border: #e7dfd0;
    --color-white: #ffffff;
    --color-dark: #17211c;
    --gradient-hero: linear-gradient(135deg, #17211c 0%, #1e4a3b 100%);
    --gradient-warm: linear-gradient(135deg, #e9b44c 0%, #e4572e 100%);
    --gradient-glass: linear-gradient(135deg, rgba(47, 107, 87, 0.06) 0%, rgba(233, 180, 76, 0.06) 100%);
    --shadow-sm: 0 1px 3px rgba(23, 33, 28, 0.08);
    --shadow-md: 0 8px 24px -14px rgba(23, 33, 28, 0.3);
    --shadow-lg: 0 22px 55px -30px rgba(23, 33, 28, 0.35);
    --shadow-xl: 0 30px 70px -32px rgba(23, 33, 28, 0.42);
    --border-radius: 12px;
    --border-radius-lg: 20px;
    --border-radius-xl: 26px;
    --transition: all 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ------------------------------------------------------------
   Base
   ------------------------------------------------------------ */

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--ink-soft);
    background: var(--paper);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    color: var(--ink);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.02em;
    margin-bottom: 0.75rem;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.5rem); }
h3 { font-size: clamp(1.22rem, 2vw, 1.6rem); }

p { margin-bottom: 1rem; }

a {
    color: var(--coral);
    text-decoration-thickness: 1px;
    text-underline-offset: 3px;
    transition: color 0.2s ease;
}

a:hover { color: var(--coral-dark); }

img { max-width: 100%; height: auto; }

.container {
    width: 100%;
    max-width: var(--wrap);
    margin: 0 auto;
    padding: 0 24px;
}

:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 2px;
    border-radius: 4px;
}

::selection {
    background: rgba(233, 180, 76, 0.4);
    color: var(--ink);
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -80px;
    z-index: 3000;
    padding: 0.7rem 1.1rem;
    background: var(--ink);
    color: #fff;
    border-radius: 0 0 10px 10px;
    font-weight: 700;
    text-decoration: none;
    transition: top 0.2s ease;
}

.skip-link:focus { top: 0; color: #fff; }

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.85rem 1.5rem;
    border-radius: 999px;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.1;
    text-decoration: none;
    border: 1.5px solid transparent;
    cursor: pointer;
    transition: var(--transition);
}

.btn-primary {
    background: var(--coral);
    color: #fff;
    box-shadow: 0 12px 24px -14px rgba(200, 67, 29, 0.8);
}

.btn-primary:hover {
    background: var(--coral-dark);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 16px 30px -14px rgba(200, 67, 29, 0.85);
}

.btn-secondary {
    background: var(--ink);
    color: #fff;
}

.btn-secondary:hover {
    background: var(--pine-dark);
    color: #fff;
    transform: translateY(-2px);
}

.btn-ghost {
    background: transparent;
    color: var(--ink);
    border-color: var(--line-strong);
}

.btn-ghost:hover {
    background: #fff;
    border-color: var(--ink);
    color: var(--ink);
}

/* ------------------------------------------------------------
   Header
   ------------------------------------------------------------ */

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(251, 247, 239, 0.94);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line);
}

.topbar {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.78);
    font-size: 0.74rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    overflow: hidden;
    max-height: 46px;
    transition: max-height 0.3s ease, opacity 0.3s ease;
}

.topbar-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    padding-top: 0.55rem;
    padding-bottom: 0.55rem;
}

.topbar p {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0;
    white-space: nowrap;
}

.topbar .dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--gold);
    flex: 0 0 7px;
}

.site-header.is-scrolled .topbar {
    max-height: 0;
    opacity: 0;
}

.site-header .nav {
    padding: 0.55rem 0;
    background: transparent;
    box-shadow: none;
}

.site-header .nav .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.nav-brand {
    display: flex;
    align-items: center;
    flex: 0 0 auto;
}

.site-header .nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    text-decoration: none;
    color: var(--ink);
}

.site-header .logo-img,
.site-header .logo-img.logo-medium,
.site-header .logo-img.logo-large,
.site-header .logo-img.logo-small {
    height: 42px;
    width: auto;
    display: block;
}

.site-header .logo-text {
    font-family: var(--font-heading);
    font-size: 1.32rem;
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -0.025em;
    line-height: 1;
}

.site-header .nav-menu {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.site-header .nav-link {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.45rem 0;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
    border: 0;
    position: relative;
    white-space: nowrap;
}

.site-header .nav-link::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0.1rem;
    height: 2px;
    width: 0;
    background: var(--coral-bright);
    border-radius: 2px;
    transition: width 0.22s ease;
}

.site-header .nav-link:hover { color: var(--coral); }
.site-header .nav-link:hover::after { width: 100%; }

.nav-drop { position: relative; }

.nav-drop > summary {
    list-style: none;
    cursor: pointer;
}

.nav-drop > summary::-webkit-details-marker { display: none; }
.nav-drop > summary::marker { content: ''; }

.nav-chevron {
    width: 12px;
    height: 12px;
    transition: transform 0.2s ease;
    margin-top: 1px;
}

.nav-drop[open] .nav-chevron { transform: rotate(180deg); }

.nav-panel {
    position: absolute;
    top: calc(100% + 14px);
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 520px;
    padding: 0.6rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
    box-shadow: var(--shadow-card);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.2rem;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}

.nav-drop[open] .nav-panel {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

.nav-panel a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.7rem 0.85rem;
    border-radius: 10px;
    color: var(--ink-soft);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
}

.nav-panel a:hover {
    background: var(--paper);
    color: var(--coral);
}

.nav-panel .panel-label {
    display: block;
    padding: 0.45rem 0.85rem 0.25rem;
    color: var(--muted);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    grid-column: 1 / -1;
}

.nav-panel .nav-panel-all {
    grid-column: 1 / -1;
    margin-top: 0.35rem;
    border-top: 1px solid var(--line);
    border-radius: 0 0 10px 10px;
    color: var(--coral);
    font-weight: 800;
}

.site-header .nav-cta {
    padding: 0.62rem 1.15rem;
    background: var(--ink);
    color: #fff;
    border-radius: 999px;
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration: none;
    transition: var(--transition);
}

.site-header .nav-cta:hover {
    background: var(--coral);
    color: #fff;
}

.nav-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 12px;
    cursor: pointer;
}

.hamburger {
    display: block;
    width: 20px;
    height: 2px;
    background: var(--ink);
    position: relative;
    transition: background 0.2s ease;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
    width: 20px;
    height: 2px;
    background: var(--ink);
    transition: transform 0.2s ease, top 0.2s ease;
}

.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .hamburger { background: transparent; }
.nav-toggle[aria-expanded="true"] .hamburger::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .hamburger::after { top: 0; transform: rotate(-45deg); }

/* ------------------------------------------------------------
   Home hero
   ------------------------------------------------------------ */

.home-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(3rem, 6vw, 5.5rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(circle at 12% 18%, rgba(233, 180, 76, 0.18) 0, transparent 26%),
        radial-gradient(circle at 92% 88%, rgba(47, 107, 87, 0.12) 0, transparent 28%),
        var(--paper);
}

.home-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(23, 33, 28, 0.10) 1px, transparent 1px);
    background-size: 22px 22px;
    opacity: 0.28;
    pointer-events: none;
    mask-image: linear-gradient(90deg, transparent 0, #000 55%, #000 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 55%, #000 100%);
}

.home-hero .container { position: relative; z-index: 1; }

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.04fr) minmax(0, 0.96fr);
    align-items: center;
    gap: clamp(2rem, 5vw, 4.5rem);
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.65rem;
    margin: 0 0 1rem;
    color: var(--pine);
    font-size: 0.73rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--coral-bright);
    border-radius: 2px;
}

.home-hero h1 {
    margin: 0 0 1.25rem;
    font-size: clamp(2.55rem, 5.1vw, 4.35rem);
    line-height: 1.02;
    letter-spacing: -0.035em;
    max-width: 13ch;
}

.home-hero h1 em {
    font-style: italic;
    color: var(--coral);
    font-weight: 600;
}

.home-hero-sub {
    max-width: 34rem;
    margin: 0 0 1.9rem;
    color: var(--muted);
    font-size: clamp(1rem, 1.5vw, 1.1rem);
    line-height: 1.7;
}

.home-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2.2rem;
}

.home-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 1.75rem 2.5rem;
    margin: 0;
    padding: 1.4rem 0 0;
    border-top: 1px solid var(--line-strong);
    list-style: none;
}

.home-stats li { display: flex; flex-direction: column; gap: 0.1rem; }

.home-stats strong {
    font-family: var(--font-heading);
    font-size: 1.55rem;
    line-height: 1;
    color: var(--ink);
}

.home-stats span {
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--muted);
}

.home-hero-art {
    position: relative;
    padding: 0 0.5rem 0.75rem 0.75rem;
}

.home-hero-frame {
    position: relative;
    overflow: hidden;
    border: 8px solid #fff;
    border-radius: 30px;
    box-shadow: var(--shadow-card);
    transform: rotate(1.4deg);
}

.home-hero-frame img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1 / 1.02;
    object-fit: cover;
}

.hero-sticker {
    position: absolute;
    top: -1.15rem;
    right: -0.55rem;
    z-index: 2;
    display: grid;
    place-content: center;
    width: 92px;
    height: 92px;
    padding: 0.5rem;
    border-radius: 50%;
    background: var(--gold);
    color: var(--ink);
    text-align: center;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    line-height: 1.25;
    text-transform: uppercase;
    transform: rotate(9deg);
    box-shadow: 0 14px 30px -14px rgba(23, 33, 28, 0.5);
}

.hero-sticker strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    text-transform: none;
    line-height: 1;
}

.hero-pick {
    position: absolute;
    left: -1.35rem;
    bottom: 1.5rem;
    z-index: 3;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-width: 280px;
    padding: 1rem 1.2rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow-card);
    text-decoration: none;
    transition: var(--transition);
}

.hero-pick:hover { transform: translateY(-3px); }

.hero-pick span {
    color: var(--coral);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.hero-pick strong {
    font-family: var(--font-heading);
    font-size: 1.02rem;
    line-height: 1.2;
    color: var(--ink);
}

.hero-pick em {
    font-style: normal;
    font-size: 0.76rem;
    color: var(--muted);
}

/* ------------------------------------------------------------
   Trust strip
   ------------------------------------------------------------ */

.trust-strip {
    background: var(--ink);
    color: rgba(255, 255, 255, 0.82);
    padding: 1.15rem 0;
}

.trust-strip ul {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.trust-strip li {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.35;
}

.trust-strip svg {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    color: var(--gold);
}

/* ------------------------------------------------------------
   Sections & section headings
   ------------------------------------------------------------ */

.section,
.latest-section,
.categories-section,
.methodology-section,
.start-here {
    padding: clamp(3.25rem, 6vw, 5.5rem) 0;
}

.section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 2rem;
    margin-bottom: 2.4rem;
}

.section-head-copy { max-width: 680px; }

.section-kicker {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--coral-dark);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-title {
    margin: 0;
    padding: 0;
    text-align: left;
    font-size: clamp(1.8rem, 3.4vw, 2.75rem);
    color: var(--ink);
    line-height: 1.05;
}

.section-title::after { display: none; }

.section-head-link {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding-bottom: 0.35rem;
    border-bottom: 1.5px solid var(--line-strong);
    color: var(--ink);
    font-size: 0.85rem;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: var(--transition);
}

.section-head-link:hover {
    color: var(--coral);
    border-color: var(--coral);
}

.section-head-link span { transition: transform 0.2s ease; }
.section-head-link:hover span { transform: translateX(3px); }

.latest-section { background: var(--paper); }
.categories-section { background: var(--paper-deep); }
.methodology-section { background: var(--paper); }

/* ------------------------------------------------------------
   Article cards (home + listings + related)
   ------------------------------------------------------------ */

.article-grid,
.posts-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.65rem;
    margin: 0;
}

.article-card,
.post-card,
.category-card,
.feature-card {
    animation: none;
}

.article-card,
.post-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: none;
    transition: transform 0.28s ease, box-shadow 0.28s ease, border-color 0.28s ease;
}

.article-card:hover,
.post-card:hover {
    transform: translateY(-5px);
    border-color: var(--line-strong);
    box-shadow: var(--shadow-card);
}

.card-thumb {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: linear-gradient(135deg, #f5eee1 0%, #e9dfcd 100%);
    text-decoration: none;
}

.card-thumb img {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    padding: 1.15rem;
    object-fit: contain;
    mix-blend-mode: multiply;
    transition: transform 0.4s ease;
}

.article-card:hover .card-thumb img { transform: scale(1.045); }

/* Category fallback tile when a post has no product image */
.card-thumb img[src*="og-default"],
.card-thumb img[src*="card-fallback"] { display: none; }

.card-thumb-fallback {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    padding: 1.15rem;
    background: linear-gradient(135deg, var(--pine) 0%, var(--pine-dark) 100%);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.12rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    text-transform: none;
    text-align: left;
    line-height: 1.2;
}

.card-thumb-fallback::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.17) 1.3px, transparent 1.3px);
    background-size: 15px 15px;
    opacity: 0.55;
}

.card-thumb-fallback::after {
    content: 'BGG';
    position: absolute;
    top: 0.85rem;
    right: 1rem;
    width: auto;
    height: auto;
    border: 0;
    border-radius: 0;
    transform: none;
    color: rgba(255, 255, 255, 0.16);
    font-family: var(--font-heading);
    font-size: 2.6rem;
    font-weight: 700;
    letter-spacing: -0.06em;
    line-height: 1;
}

.card-thumb-fallback[data-cat*="strategy"] { background: linear-gradient(135deg, #2f6b57, #173e31); }
.card-thumb-fallback[data-cat*="party"] { background: linear-gradient(135deg, #d9552e, #92300f); }
.card-thumb-fallback[data-cat*="family"] { background: linear-gradient(135deg, #b98a2c, #6f4c0c); }
.card-thumb-fallback[data-cat*="card"] { background: linear-gradient(135deg, #3f5f8a, #1f3454); }
.card-thumb-fallback[data-cat*="cooperative"] { background: linear-gradient(135deg, #2f7a6e, #17443d); }
.card-thumb-fallback[data-cat*="dice"] { background: linear-gradient(135deg, #7a4f8f, #422653); }
.card-thumb-fallback[data-cat*="rpg"] { background: linear-gradient(135deg, #6c4a3a, #3a241a); }
.card-thumb-fallback[data-cat*="two-player"] { background: linear-gradient(135deg, #8a4a52, #4a2027); }
.card-thumb-fallback[data-cat*="adventure"] { background: linear-gradient(135deg, #5c6b2f, #303a12); }
.card-thumb-fallback[data-cat*="storage"] { background: linear-gradient(135deg, #4b6172, #25343f); }
.card-thumb-fallback[data-cat*="tile"] { background: linear-gradient(135deg, #2e6f8c, #163d50); }
.card-thumb-fallback[data-cat*="travel"] { background: linear-gradient(135deg, #3b7d7a, #1c4543); }

.article-card .post-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.35rem 1.35rem 1.45rem;
}

.article-category {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    margin: 0 0 0.65rem;
    padding: 0.22rem 0.65rem;
    border-radius: 999px;
    background: rgba(47, 107, 87, 0.12);
    color: #23604c;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.article-card .post-title {
    margin: 0 0 0.6rem;
    font-size: 1.12rem;
    line-height: 1.28;
    letter-spacing: -0.015em;
}

.article-card .post-title a {
    color: var(--ink);
    text-decoration: none;
}

.article-card .post-title a:hover { color: var(--coral); }

.article-meta {
    display: flex;
    align-items: center;
    gap: 0.45rem;
    margin: 0 0 0.7rem;
    color: var(--muted);
    font-size: 0.74rem;
    font-weight: 600;
}

.article-date { color: var(--muted); }
.article-readtime { color: var(--muted); }

.post-excerpt {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    flex: 1;
    margin: 0 0 0.85rem;
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.6;
}

.article-card .read-more,
.read-more {
    display: inline-flex;
    align-items: center;
    align-self: flex-start;
    gap: 0.3rem;
    margin-top: auto;
    color: var(--coral);
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: none;
}

.article-card .read-more:hover,
.read-more:hover { color: var(--coral-dark); }

/* ------------------------------------------------------------
   Start here panel
   ------------------------------------------------------------ */

.start-here { background: var(--paper); padding-top: 0; }

.start-panel {
    position: relative;
    overflow: hidden;
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: clamp(1.75rem, 5vw, 4rem);
    padding: clamp(1.75rem, 4.5vw, 3.5rem);
    background: var(--ink);
    border-radius: var(--radius-lg);
    color: #fff;
}

.start-panel::before {
    content: '';
    position: absolute;
    right: -80px;
    top: -80px;
    width: 280px;
    height: 280px;
    border: 30px solid rgba(233, 180, 76, 0.12);
    border-radius: 50%;
    pointer-events: none;
}

.start-panel::after {
    content: '';
    position: absolute;
    right: 18%;
    bottom: -60px;
    width: 160px;
    height: 160px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 28px;
    transform: rotate(18deg);
    pointer-events: none;
}

.start-copy { position: relative; z-index: 1; }

.start-copy .section-kicker { color: var(--gold); }

.start-copy h2 {
    color: #fff;
    font-size: clamp(1.8rem, 3.2vw, 2.6rem);
    margin-bottom: 0.9rem;
    line-height: 1.05;
}

.start-copy p {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.92rem;
    margin: 0;
    max-width: 34ch;
}

.start-list {
    position: relative;
    z-index: 1;
    display: grid;
    gap: 0.65rem;
}

.start-item {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    padding: 0.95rem 1.1rem;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 13px;
    color: #fff;
    text-decoration: none;
    transition: var(--transition);
}

.start-item:hover {
    background: rgba(255, 255, 255, 0.11);
    border-color: rgba(233, 180, 76, 0.5);
    color: #fff;
    transform: translateX(3px);
}

.start-num {
    font-family: var(--font-heading);
    font-size: 1.15rem;
    color: var(--gold);
    line-height: 1;
}

.start-item strong {
    display: block;
    font-size: 0.92rem;
    line-height: 1.35;
}

.start-item span {
    display: block;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.76rem;
}

.start-item .start-arrow {
    color: var(--gold);
    font-size: 1rem;
}

/* ------------------------------------------------------------
   Category cards
   ------------------------------------------------------------ */

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

.category-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-height: 148px;
    padding: 1.35rem 1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    text-align: left;
    text-decoration: none;
    transition: var(--transition);
}

.category-card:hover {
    background: #fff;
    border-color: var(--coral);
    box-shadow: var(--shadow-soft);
    transform: translateY(-3px);
}

.category-icon {
    margin-bottom: 0.45rem;
    color: var(--coral);
    font-family: var(--font-heading);
    font-size: 1.55rem;
    font-weight: 600;
    line-height: 1;
}

.category-card h3 {
    margin: 0;
    font-size: 1.02rem;
    line-height: 1.2;
}

.category-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.45;
}

.category-card::after {
    content: '→';
    position: absolute;
    top: 1.15rem;
    right: 1.15rem;
    color: var(--line-strong);
    font-size: 1rem;
    transition: var(--transition);
}

.category-card:hover::after {
    color: var(--coral);
    transform: translateX(2px);
}

/* ------------------------------------------------------------
   Methodology
   ------------------------------------------------------------ */

.methodology-content {
    max-width: 760px;
    margin: 0 0 2.4rem;
    text-align: left;
}

.methodology-content p {
    margin: 0;
    color: var(--muted);
    font-size: 1rem;
    line-height: 1.7;
}

.methodology-steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin-top: 0;
}

.step-card {
    padding: 1.4rem 1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    text-align: left;
}

.step-number {
    display: block;
    width: auto;
    height: auto;
    margin: 0 0 0.65rem;
    border-radius: 0;
    background: none;
    color: var(--coral);
    font-family: var(--font-heading);
    font-size: 1.9rem;
    font-weight: 700;
    line-height: 1;
}

.step-card h3 {
    margin: 0 0 0.35rem;
    font-family: var(--font-body);
    font-size: 0.92rem;
    font-weight: 800;
    color: var(--ink);
    line-height: 1.35;
}

.step-card p {
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    line-height: 1.55;
}

/* ------------------------------------------------------------
   Disclosure
   ------------------------------------------------------------ */

.disclosure-section {
    padding: 2.5rem 0;
    background: var(--paper-deep);
    text-align: center;
}

.disclosure-section p {
    max-width: 760px;
    margin: 0 auto;
    color: #5a6358;
    font-size: 0.8rem;
    line-height: 1.65;
}

.disclosure-section strong { color: var(--ink); }

/* ------------------------------------------------------------
   Listing pages (blog, category, tag)
   ------------------------------------------------------------ */

.list-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(2.75rem, 5vw, 4.25rem) 0 clamp(2.25rem, 4vw, 3.25rem);
    background:
        radial-gradient(circle at 88% 15%, rgba(233, 180, 76, 0.2) 0, transparent 28%),
        var(--paper);
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.list-hero::after {
    content: '';
    position: absolute;
    right: 6%;
    top: 22%;
    width: 120px;
    height: 120px;
    border: 2px solid rgba(23, 33, 28, 0.09);
    border-radius: 26px;
    transform: rotate(16deg);
    pointer-events: none;
}

.list-hero .container { position: relative; z-index: 1; }

.list-breadcrumbs,
.list-hero .breadcrumbs {
    margin-bottom: 1rem;
    color: var(--muted);
    font-size: 0.78rem;
}

.list-breadcrumbs a,
.list-hero .breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.list-breadcrumbs a:hover,
.list-hero .breadcrumbs a:hover { color: var(--coral); }

.list-breadcrumbs span,
.list-hero .breadcrumbs span { color: var(--line-strong); margin: 0 0.35rem; }

.list-breadcrumbs .current,
.list-hero .breadcrumbs .current { color: var(--muted); opacity: 1; }

.list-title {
    max-width: 900px;
    margin: 0 0 0.65rem;
    color: var(--ink);
    font-size: clamp(2.1rem, 4.4vw, 3.4rem);
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.list-subtitle {
    max-width: 680px;
    margin: 0;
    color: var(--muted);
    font-size: 0.98rem;
    line-height: 1.65;
}

.list-section {
    padding: clamp(2.25rem, 4vw, 3.5rem) 0 clamp(3rem, 5vw, 4.5rem);
    background: var(--paper);
}

.category-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 2rem;
    padding: 0 0 0.25rem;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.48rem 0.95rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 700;
    white-space: nowrap;
    text-decoration: none;
    transition: var(--transition);
}

.category-chip:hover {
    border-color: var(--coral);
    color: var(--coral);
    transform: translateY(-1px);
}

.category-chip.is-active {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.chip-count {
    padding: 0 0.4rem;
    background: rgba(23, 33, 28, 0.07);
    border-radius: 999px;
    font-size: 0.66rem;
    font-weight: 800;
    line-height: 1.6;
}

.category-chip.is-active .chip-count { background: rgba(255, 255, 255, 0.18); }

.category-chip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.75rem;
}

/* Pagination — covers both template variants */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin-top: 3rem;
}

.pagination a,
.pagination span,
.page-link,
.pagination-link,
.pagination-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 0.85rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
}

.pagination a:hover,
.page-link:hover,
.pagination-link:hover {
    border-color: var(--ink);
    color: var(--ink);
    transform: translateY(-1px);
}

.pagination-current {
    background: var(--ink);
    border-color: var(--ink);
    color: #fff;
}

.page-link.is-disabled,
.pagination .is-disabled {
    opacity: 0.4;
    pointer-events: none;
}

.page-status {
    height: auto;
    padding: 0 0.5rem;
    border: 0;
    background: none;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
}

/* ------------------------------------------------------------
   Article page
   ------------------------------------------------------------ */

.read-progress {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 2100;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--coral-bright), var(--gold));
    pointer-events: none;
    transition: width 0.1s linear;
}

.blog-post { max-width: none; margin: 0; }

.post-header {
    padding: clamp(2rem, 4vw, 3rem) 0 clamp(1.75rem, 3.5vw, 2.5rem);
    background: var(--paper);
    color: var(--ink);
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.post-header .container { max-width: 1080px; }

.post-header .breadcrumbs {
    margin-bottom: 1.1rem;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
}

.post-header .breadcrumbs a {
    color: var(--muted);
    text-decoration: none;
}

.post-header .breadcrumbs a:hover { color: var(--coral); }

.post-header .breadcrumbs span { color: var(--line-strong); margin: 0 0.35rem; }
.post-header .breadcrumbs .current { color: var(--muted); opacity: 1; }

.post-category {
    display: inline-flex;
    align-items: center;
    margin-bottom: 1rem;
    padding: 0.28rem 0.75rem;
    background: rgba(47, 107, 87, 0.1);
    border-radius: 999px;
    color: var(--pine);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
}

.post-category:hover { background: var(--pine); color: #fff; }

.post-header .post-title {
    max-width: 980px;
    margin: 0 0 1.3rem;
    color: var(--ink);
    font-size: clamp(2rem, 4.4vw, 3.45rem);
    line-height: 1.03;
    letter-spacing: -0.035em;
}

.post-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.55rem 0.85rem;
    margin: 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 1;
}

.post-author { display: inline-flex; align-items: center; gap: 0.5rem; }
.post-author strong { color: var(--ink); font-weight: 800; }

.post-author::before {
    content: 'MC';
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--pine);
    color: #fff;
    font-size: 0.6rem;
    font-weight: 800;
    letter-spacing: 0.03em;
}

.post-readtime {
    padding: 0.16rem 0.6rem;
    background: var(--paper-deep);
    border-radius: 999px;
    color: var(--pine);
    font-size: 0.72rem;
    font-weight: 700;
}

.post-content {
    padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 4.5rem);
    background: var(--paper);
}

.article-layout {
    display: grid;
    grid-template-columns: 248px minmax(0, 780px);
    align-items: start;
    justify-content: center;
    gap: clamp(1.5rem, 3vw, 3rem);
}

.article-rail {
    position: sticky;
    top: 96px;
    display: flex;
    flex-direction: column;
    gap: 0.9rem;
    max-height: calc(100vh - 120px);
}

.toc-details {
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-left: 1px solid var(--line);
    border-radius: 14px;
}

.toc-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding: 0.9rem 1rem;
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.13em;
    text-transform: uppercase;
    cursor: pointer;
    list-style: none;
}

.toc-summary::-webkit-details-marker { display: none; }
.toc-summary::marker { content: ''; }

.toc-summary::after {
    content: '';
    width: 8px;
    height: 8px;
    border-right: 2px solid var(--coral);
    border-bottom: 2px solid var(--coral);
    transform: rotate(45deg) translateY(-2px);
    transition: transform 0.22s ease;
}

.toc-details[open] .toc-summary { border-bottom: 1px solid var(--line); }
.toc-details[open] .toc-summary::after { transform: rotate(-135deg) translateY(-2px); }

.table-of-contents {
    max-height: min(52vh, 430px);
    margin: 0;
    padding: 0.6rem 0.6rem 0.75rem;
    overflow: auto;
    scrollbar-width: thin;
}

.table-of-contents ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.table-of-contents li { margin: 0; }

.table-of-contents a {
    display: block;
    padding: 0.4rem 0.6rem;
    border-left: 2px solid transparent;
    border-radius: 0 6px 6px 0;
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 600;
    line-height: 1.45;
    text-decoration: none;
}

.table-of-contents a:hover,
.table-of-contents a.is-active {
    border-left-color: var(--coral);
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
}

.rail-card {
    padding: 1.1rem;
    background: var(--ink);
    border-radius: 14px;
    color: #fff;
    text-align: left;
}

.rail-card span {
    display: block;
    margin-bottom: 0.35rem;
    color: var(--gold);
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.rail-card p {
    margin: 0 0 0.6rem;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.78rem;
    line-height: 1.5;
}

.rail-card a {
    color: #fff;
    font-size: 0.8rem;
    font-weight: 800;
    text-decoration: underline;
    text-decoration-color: rgba(233, 180, 76, 0.5);
    text-underline-offset: 3px;
}

.rail-card a:hover { color: var(--gold); }

.blog-post .post-body {
    max-width: none;
    margin: 0;
    padding: clamp(1.35rem, 3.4vw, 2.75rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    font-size: 1.02rem;
    line-height: 1.78;
    color: #2a332d;
}

.blog-post .post-body > p:first-of-type {
    font-size: 1.08rem;
    color: var(--ink-soft);
}

.blog-post .post-body h2 {
    margin: 2.6rem 0 1rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px solid var(--line);
    color: var(--ink);
    font-size: clamp(1.45rem, 2.8vw, 1.95rem);
    line-height: 1.15;
    position: relative;
}

.blog-post .post-body h2::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: -1px;
    width: 46px;
    height: 2px;
    background: var(--coral-bright);
    border-radius: 2px;
}

.blog-post .post-body h2:first-child { margin-top: 0; }

.blog-post .post-body h2,
.blog-post .post-body h3,
.blog-post .post-body [id] { scroll-margin-top: 100px; }

.blog-post .post-body h3 {
    margin: 1.9rem 0 0.65rem;
    color: var(--ink);
    font-size: clamp(1.12rem, 2vw, 1.32rem);
    line-height: 1.25;
}

.blog-post .post-body p { margin: 0 0 1.15rem; }

.blog-post .post-body ul,
.blog-post .post-body ol {
    margin: 1rem 0 1.35rem;
    padding-left: 1.3rem;
}

.blog-post .post-body li { margin-bottom: 0.55rem; padding-left: 0.15rem; }
.blog-post .post-body li::marker { color: var(--coral); font-weight: 700; }

.blog-post .post-body img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.4rem auto;
    border-radius: 12px;
}

.blog-post .post-body p a:not(.btn):not(.read-more):not(.check-price-btn),
.blog-post .post-body li a:not(.btn):not(.read-more):not(.check-price-btn),
.blog-post .post-body blockquote a:not(.btn):not(.read-more):not(.check-price-btn),
.blog-post .post-body table:not(.product-table) a:not(.btn):not(.read-more):not(.check-price-btn) {
    color: var(--coral);
    text-decoration: underline;
    text-decoration-color: rgba(200, 67, 29, 0.32);
    text-underline-offset: 3px;
}

.blog-post .post-body p a:not(.btn):not(.read-more):not(.check-price-btn):hover,
.blog-post .post-body li a:not(.btn):not(.read-more):not(.check-price-btn):hover,
.blog-post .post-body blockquote a:not(.btn):not(.read-more):not(.check-price-btn):hover,
.blog-post .post-body table:not(.product-table) a:not(.btn):not(.read-more):not(.check-price-btn):hover {
    color: var(--coral-dark);
    text-decoration-color: var(--coral-dark);
}

.blog-post .post-body blockquote {
    margin: 1.75rem 0;
    padding: 1rem 1.25rem;
    background: var(--paper);
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
    color: var(--ink-soft);
    font-size: 1rem;
}

.blog-post .post-body blockquote p:last-child { margin-bottom: 0; }

.blog-post .post-body table:not(.product-table) {
    width: 100%;
    margin: 1.5rem 0;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.blog-post .post-body table:not(.product-table) th,
.blog-post .post-body table:not(.product-table) td {
    padding: 0.7rem 0.8rem;
    border: 1px solid var(--line);
    text-align: left;
}

.blog-post .post-body table:not(.product-table) th {
    background: var(--paper);
    font-family: var(--font-body);
    font-weight: 800;
}

/* FAQ questions (old articles use <p><strong>Question?</strong></p>) */
.blog-post .post-body #frequently-asked-questions ~ p:has(> strong:only-child) {
    margin: 1.6rem 0 0.45rem;
    color: var(--ink);
    font-family: var(--font-heading);
    font-size: 1.06rem;
    font-weight: 600;
    line-height: 1.35;
}

.blog-post .post-body #frequently-asked-questions ~ p:has(> strong:only-child) strong {
    font-weight: 600;
}

/* Newer articles use h3 for FAQs */
.blog-post .post-body #frequently-asked-questions ~ h3 {
    margin-top: 1.6rem;
    padding-left: 0.9rem;
    border-left: 3px solid var(--gold);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 800;
    line-height: 1.45;
}

/* ------------------------------------------------------------
   Product table
   ------------------------------------------------------------ */

.product-table {
    width: 100%;
    margin: 1.75rem 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
    border-collapse: separate;
    border-spacing: 0;
    box-shadow: none;
}

.product-table tbody tr { transition: background 0.2s ease; }
.product-table tbody tr:hover { background: #fdfaf4; transform: none; }

.product-table td {
    padding: 0.9rem 1rem;
    border-bottom: 1px solid var(--line);
    vertical-align: middle;
}

.product-table tr:last-child td { border-bottom: 0; }

.product-image { width: 100px; }
.product-image img {
    width: 78px;
    height: 78px;
    padding: 5px;
    background: var(--paper);
    border-radius: 10px;
    object-fit: contain;
}

.product-image img:hover { transform: none; box-shadow: none; }

.product-title { padding: 0.9rem 1rem; }
.product-title a,
.blog-post .post-content .post-body .product-table .product-title a {
    color: var(--ink) !important;
    font-family: var(--font-heading);
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.3;
    text-decoration: none !important;
}

.product-title a:hover,
.blog-post .post-content .post-body .product-table .product-title a:hover {
    color: var(--coral) !important;
    text-decoration: none !important;
}

.product-button { width: 148px; text-align: right; }

.check-price-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.68rem 1.05rem;
    background: var(--coral);
    border: 0;
    border-radius: 999px;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.01em;
    line-height: 1.1;
    white-space: nowrap;
    text-decoration: none;
    box-shadow: 0 10px 22px -14px rgba(200, 67, 29, 0.9);
}

.check-price-btn::before {
    content: "";
    width: 14px;
    height: 14px;
    flex: 0 0 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='9' cy='21' r='1'/%3E%3Ccircle cx='20' cy='21' r='1'/%3E%3Cpath d='M1 1h4l2.68 13.39a2 2 0 0 0 2 1.61h9.72a2 2 0 0 0 2-1.61L23 6H6'/%3E%3C/svg%3E") center/contain no-repeat;
}

.check-price-btn:hover {
    background: var(--coral-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 14px 26px -14px rgba(200, 67, 29, 0.95);
}

/* Beat the legacy `.post-body a:not(.btn):not(.read-more)` rule */
.blog-post .post-body a.check-price-btn,
.blog-post .post-body a.check-price-btn:hover {
    color: #fff;
    text-decoration: none;
}

.post-body div > .check-price-btn { padding: 0.8rem 1.8rem; font-size: 0.85rem; }

/* ------------------------------------------------------------
   Article footer, author box, prev/next
   ------------------------------------------------------------ */

.blog-post .post-footer {
    grid-column: 2;
    margin-top: 1.75rem;
    padding-top: 0;
    border-top: 0;
}

.author-box {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.25rem;
    padding: 1.25rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 16px;
}

.author-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 52px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--pine);
    color: #fff;
    font-family: var(--font-heading);
    font-size: 1.05rem;
    font-weight: 700;
}

.author-box .author-name {
    margin: 0 0 0.25rem;
    font-family: var(--font-body);
    font-size: 0.88rem;
    font-weight: 800;
    letter-spacing: 0;
    line-height: 1.35;
}

.author-box p {
    margin: 0;
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.6;
}

.author-box a { font-weight: 700; }

.affiliate-notice {
    margin-bottom: 1.5rem;
    padding: 1rem 1.15rem;
    background: var(--paper);
    border: 1px solid var(--line);
    border-left: 3px solid var(--gold);
    border-radius: 0 10px 10px 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.6;
}

.affiliate-notice p { margin: 0; }
.affiliate-notice strong { color: var(--ink); }

.post-navigation {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.9rem;
    margin-top: 0;
}

.post-navigation .nav-link {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 1.05rem 1.15rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--ink);
    text-decoration: none;
    box-shadow: none;
    transition: var(--transition);
}

.post-navigation .nav-link:hover {
    border-color: var(--coral);
    box-shadow: var(--shadow-soft);
    transform: translateY(-2px);
}

.nav-label {
    display: block;
    margin: 0;
    color: var(--coral);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.09em;
    text-transform: uppercase;
}

.nav-title {
    color: var(--ink);
    font-size: 0.82rem;
    font-weight: 700;
    line-height: 1.4;
}

.nav-next { text-align: right; }

/* ------------------------------------------------------------
   Related posts
   ------------------------------------------------------------ */

.related-posts {
    padding: clamp(3rem, 5vw, 4.5rem) 0;
    background: var(--paper-deep);
}

.related-posts .section-head { margin-bottom: 2rem; }
.related-posts .section-title { margin: 0 0 2rem; }

/* ------------------------------------------------------------
   Static pages (about, contact, privacy, disclaimer)
   ------------------------------------------------------------ */

.page-header {
    padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2rem, 4vw, 3rem);
    background:
        radial-gradient(circle at 90% 10%, rgba(233, 180, 76, 0.18) 0, transparent 30%),
        var(--paper);
    border-bottom: 1px solid var(--line);
    text-align: left;
}

.page-header .page-title {
    max-width: 900px;
    margin: 0;
    color: var(--ink);
    font-size: clamp(2.1rem, 4.2vw, 3.25rem);
    line-height: 1.04;
    letter-spacing: -0.035em;
}

.page-header .page-description {
    max-width: 680px;
    margin: 0.8rem 0 0;
    color: var(--muted);
    font-size: 1rem;
    opacity: 1;
}

.page-content {
    max-width: none;
    margin: 0;
    padding: clamp(1.75rem, 4vw, 3rem) 0 clamp(3rem, 5vw, 4.5rem);
    background: var(--paper);
}

.page-body {
    max-width: 860px;
    margin: 0 auto;
    padding: clamp(1.4rem, 3.5vw, 2.75rem);
    background: #fff;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
}

.page-body h2 {
    margin: 2.2rem 0 0.8rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--line);
    font-size: clamp(1.4rem, 2.6vw, 1.85rem);
}

.page-body h2:first-child { margin-top: 0; }
.page-body h3 { margin: 1.6rem 0 0.5rem; font-size: 1.18rem; }
.page-body p { margin-bottom: 1.05rem; }
.page-body ul, .page-body ol { margin: 1rem 0 1.4rem; padding-left: 1.3rem; }
.page-body li { margin-bottom: 0.5rem; }
.page-body li::marker { color: var(--coral); }
.page-body a { font-weight: 600; }

/* ------------------------------------------------------------
   Tag / category index
   ------------------------------------------------------------ */

.tag-cloud,
.tags-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0;
    margin: 0;
    list-style: none;
}

.tag-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.9rem;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--ink-soft);
    font-size: 0.8rem;
    font-weight: 700;
    text-decoration: none;
}

.tag-link:hover { border-color: var(--coral); color: var(--coral); }
.tag-count { color: var(--muted); font-size: 0.7rem; }

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */

.site-footer {
    padding: clamp(3rem, 5vw, 4.5rem) 0 1.5rem;
    background: var(--ink);
    color: rgba(255, 255, 255, 0.66);
}

.site-footer .footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) repeat(3, minmax(0, 1fr));
    gap: 2.25rem;
    padding-bottom: 3rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-brand .footer-logo {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-bottom: 0.9rem;
    color: #fff;
    text-decoration: none;
}

.footer-brand .footer-logo img { height: 38px; width: auto; }

.footer-brand .footer-logo span {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.footer-brand p {
    max-width: 34ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.82rem;
    line-height: 1.65;
}

.site-footer h3 {
    margin: 0 0 0.9rem;
    color: #fff;
    font-family: var(--font-body);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.15em;
    text-transform: uppercase;
}

.site-footer ul {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.site-footer a {
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 500;
    text-decoration: none;
}

.site-footer a:hover { color: var(--gold); }

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem 1.5rem;
    padding-top: 1.4rem;
}

.footer-bottom p {
    margin: 0;
    font-size: 0.74rem;
    color: rgba(255, 255, 255, 0.5);
}

.footer-bottom .affiliate-disclosure {
    color: rgba(255, 255, 255, 0.62);
    font-size: 0.74rem;
}

/* ------------------------------------------------------------
   Back to top
   ------------------------------------------------------------ */

.back-to-top {
    position: fixed !important;
    right: 20px !important;
    bottom: 20px !important;
    z-index: 1200 !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 46px !important;
    height: 46px !important;
    background: var(--ink) !important;
    border: 1px solid rgba(255, 255, 255, 0.16) !important;
    border-radius: 50% !important;
    color: var(--gold) !important;
    font-size: 1.1rem !important;
    box-shadow: var(--shadow-soft) !important;
}

.back-to-top:hover {
    background: var(--coral) !important;
    color: #fff !important;
    transform: translateY(-2px);
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */

@media (max-width: 1080px) {
    .site-header .nav-menu { gap: 0.95rem; }
    .home-hero h1 { max-width: 14ch; }
    .article-layout { grid-template-columns: 220px minmax(0, 1fr); }
    .category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .methodology-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .topbar-inner { justify-content: center; }
    .topbar p { white-space: normal; text-align: center; line-height: 1.35; }
    .topbar p:last-child { display: none; }

    .site-header .nav-toggle { display: inline-flex; }

    .site-header .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 0.15rem;
        padding: 0.8rem 24px 1.2rem;
        background: #fff;
        border-bottom: 1px solid var(--line);
        box-shadow: var(--shadow-card);
    }

    .site-header .nav-menu.active { display: flex; }

    .site-header .nav-link,
    .site-header .nav-drop > summary {
        padding: 0.75rem 0.25rem;
        font-size: 0.95rem;
        border-bottom: 1px solid var(--line);
    }

    .site-header .nav-link::after { display: none; }

    .nav-drop { width: 100%; }
    .nav-panel {
        position: static;
        width: auto;
        transform: none;
        padding: 0.35rem 0 0.6rem;
        border: 0;
        border-radius: 0;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        grid-template-columns: 1fr 1fr;
    }

    .nav-drop:not([open]) .nav-panel { display: none; }
    .nav-drop[open] .nav-panel { display: grid; }

    .nav-panel a { padding: 0.55rem 0.4rem; }

    .site-header .nav-cta {
        margin-top: 0.8rem;
        padding: 0.75rem 1rem;
        text-align: center;
    }

    .home-hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
    .home-hero h1 { max-width: 16ch; }
    .home-hero-art { max-width: 540px; margin: 0 auto; padding: 0 0.75rem 1.25rem; }
    .hero-pick { left: 0.75rem; bottom: 0.25rem; }

    .trust-strip ul { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .article-grid, .posts-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .start-panel { grid-template-columns: 1fr; }
    .section-head { align-items: flex-start; flex-direction: column; gap: 1rem; }

    .article-layout { grid-template-columns: 1fr; }
    .article-rail {
        position: static;
        max-height: none;
        flex-direction: row;
        align-items: flex-start;
        flex-wrap: wrap;
    }
    .article-rail .toc-details { flex: 1 1 100%; }
    .article-rail .rail-card { display: none; }
    .table-of-contents { max-height: 320px; }
    .blog-post .post-footer { grid-column: 1; }
}

@media (max-width: 720px) {
    .container { padding: 0 18px; }
    .home-hero { padding-top: 2.5rem; }
    .home-hero h1 { font-size: clamp(2.2rem, 9vw, 3.1rem); }
    .hero-sticker { width: 78px; height: 78px; top: -0.9rem; right: -0.2rem; font-size: 0.52rem; }
    .hero-sticker strong { font-size: 0.95rem; }
    .home-stats { gap: 1.25rem 1.75rem; }
    .home-stats strong { font-size: 1.35rem; }

    .article-grid, .posts-grid { grid-template-columns: 1fr; }
    .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .methodology-steps { grid-template-columns: 1fr; }
    .trust-strip ul { gap: 0.75rem; }
    .trust-strip li { font-size: 0.72rem; }

    .post-navigation { grid-template-columns: 1fr; }
    .nav-next { text-align: left; }

    .footer-grid,
    .site-footer .footer-grid { grid-template-columns: 1fr 1fr; }
    .footer-brand { grid-column: 1 / -1; }
    .footer-bottom { flex-direction: column; align-items: flex-start; }

    /* Product table becomes stacked cards */
    .product-table,
    .product-table tbody,
    .product-table tr,
    .product-table td {
        display: block;
        width: auto;
    }

    .product-table { border: 0; background: transparent; }
    .product-table tbody { display: grid; gap: 0.75rem; }

    .product-table tr {
        position: relative;
        min-height: 96px;
        padding: 0.9rem 0.9rem 0.9rem 92px;
        background: #fff;
        border: 1px solid var(--line);
        border-radius: 14px;
    }

    .product-table tr:hover { background: #fff; }
    .product-table tr:last-child td { border-bottom: 0; }
    .product-table td { padding: 0; border: 0; }

    .product-table .product-image {
        position: absolute;
        top: 0.9rem;
        left: 0.9rem;
        width: 68px;
    }

    .product-table .product-image img {
        width: 68px;
        height: 68px;
        padding: 4px;
    }

    .product-table .product-title { padding: 0 0 0.55rem; }
    .product-table .product-title a { font-size: 0.86rem; line-height: 1.35; }
    .product-table .product-button { width: auto; text-align: left; }
    .product-table .check-price-btn { width: 100%; padding: 0.6rem 0.9rem; }
}

@media (max-width: 520px) {
    .category-grid { grid-template-columns: 1fr; }
    .home-hero-actions .btn { width: 100%; }
    .start-item { grid-template-columns: auto minmax(0, 1fr); }
    .start-item .start-arrow { display: none; }
    .hero-pick { position: relative; left: auto; bottom: auto; margin: 0.9rem 0 0; max-width: none; }
    .hero-sticker { right: 0.25rem; }
    .article-card .post-content { padding: 1.2rem 1.15rem 1.3rem; }
    .list-title { font-size: 2rem; }
    .footer-grid,
    .site-footer .footer-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

@media print {
    .site-header, .site-footer, .home-hero-actions, .article-rail,
    .post-navigation, .related-posts, .back-to-top, .read-progress { display: none !important; }
    body { background: #fff; }
    .post-body, .product-table { box-shadow: none; border: 1px solid #ccc; }
    a { color: #000; text-decoration: none; }
}

/* --- HTML sitemap --- */
.sitemap-list {
    list-style: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
}
.sitemap-list li {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1.5rem;
    padding: 0.8rem 1.2rem;
    border-bottom: 1px solid var(--line);
}
.sitemap-list li:last-child { border-bottom: 0; }
.sitemap-list a {
    color: var(--ink);
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
}
.sitemap-list a:hover { color: var(--coral); }
.sitemap-date {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 0.74rem;
    white-space: nowrap;
}

/* --- Screen-reader utility --- */
.sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
