/* ==================================================================
   ChinaRules101 — design system
   Mobile-first. Breakpoints: 640 / 768 / 1024.
   Palette: paper cream, deep ink, teal-green primary, seal-red accent.
   ================================================================== */

:root {
    --paper: #FAF8F4;
    --surface: #FFFFFF;
    --ink: #1C2B33;
    --ink-soft: #51636D;
    --line: #E4E0D5;
    --line-soft: #EFECE3;

    --green: #1E5C4F;
    --green-dark: #17463C;
    --green-soft: #EAF2EF;
    --green-ghost: #F2F7F5;

    --red: #B3402C;
    --red-soft: #F9ECE8;

    --risk-low-c: #2E7D32;
    --risk-low-bg: #E9F5EA;
    --risk-med-c: #8A5A00;
    --risk-med-bg: #FDF3DF;
    --risk-high-c: #B3261E;
    --risk-high-bg: #FBEAE8;

    --amber: #8A5A00;

    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 2px rgba(28, 43, 51, 0.05), 0 6px 24px -12px rgba(28, 43, 51, 0.12);
    --font-display: Georgia, "Times New Roman", "Songti SC", serif;
    --font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --maxw: 1080px;
}

/* ------------------------------------------------------------------ */
/* Reset & base                                                        */
/* ------------------------------------------------------------------ */

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

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

body {
    margin: 0;
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    color: var(--ink);
    background: var(--paper);
}

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

h1, h2, h3, h4 {
    font-family: var(--font-display);
    line-height: 1.25;
    margin: 0 0 0.5rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

h1 { font-size: 1.9rem; }
h2 { font-size: 1.45rem; }
h3 { font-size: 1.15rem; }
h4 { font-size: 1rem; }

p { margin: 0 0 1rem; }
ul { padding-left: 1.2rem; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 2px; }
a:hover { color: var(--green-dark); }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 1.1rem; }

@media (min-width: 640px) {
    h1 { font-size: 2.3rem; }
    h2 { font-size: 1.6rem; }
}

/* Accessibility helpers */

.visually-hidden {
    position: absolute !important;
    width: 1px; height: 1px;
    margin: -1px; padding: 0;
    overflow: hidden; clip: rect(0 0 0 0);
    white-space: nowrap; border: 0;
}

.skip-link {
    position: absolute; left: -9999px; top: 0;
    background: var(--green); color: #fff; padding: 0.6rem 1rem;
    z-index: 100; border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { left: 0; color: #fff; }

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

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------ */
/* Header & navigation                                                 */
/* ------------------------------------------------------------------ */

.site-header {
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    position: sticky; top: 0; z-index: 50;
}

.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    min-height: 60px; gap: 1rem; flex-wrap: wrap;
    padding-top: 0.35rem; padding-bottom: 0.35rem;
}

.brand { text-decoration: none; }
.brand-name {
    font-family: var(--font-display);
    font-size: 1.3rem; font-weight: 700; color: var(--ink);
    letter-spacing: -0.02em;
}
.brand-accent { color: var(--green); }

.nav-toggle {
    display: inline-flex; flex-direction: column; gap: 4px;
    background: none; border: 1px solid var(--line); border-radius: var(--radius-sm);
    padding: 0.55rem 0.6rem; cursor: pointer;
}
.nav-toggle-bar { display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.site-nav { display: none; width: 100%; }
.site-nav.open { display: block; }
.site-nav ul { list-style: none; margin: 0.3rem 0 0.6rem; padding: 0; display: flex; flex-direction: column; gap: 0.1rem; }
.site-nav a {
    display: block; padding: 0.55rem 0.6rem; border-radius: var(--radius-sm);
    text-decoration: none; color: var(--ink); font-weight: 500;
}
.site-nav a:hover { background: var(--green-ghost); color: var(--green-dark); }
.site-nav a[aria-current="page"] { color: var(--green-dark); background: var(--green-soft); }

@media (min-width: 768px) {
    .nav-toggle { display: none; }
    .site-nav { display: block; width: auto; }
    .site-nav ul { flex-direction: row; margin: 0; align-items: center; gap: 0.15rem; }
    .site-nav a { padding: 0.45rem 0.75rem; font-size: 0.95rem; }
}

/* ------------------------------------------------------------------ */
/* Breadcrumb & flashes                                                */
/* ------------------------------------------------------------------ */

.breadcrumb { padding: 0.8rem 0 0; font-size: 0.88rem; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "›"; margin-right: 0.35rem; color: var(--ink-soft); }
.breadcrumb a { text-decoration: none; color: var(--ink-soft); }
.breadcrumb a:hover { color: var(--green); }
.breadcrumb [aria-current] { color: var(--ink); }

.flashes { margin-top: 1rem; }
.alert { padding: 0.75rem 1rem; border-radius: var(--radius-sm); border: 1px solid; margin-bottom: 0.6rem; font-size: 0.95rem; }
.alert-success { background: var(--risk-low-bg); border-color: #B7DFB9; color: #1E5622; }
.alert-error { background: var(--risk-high-bg); border-color: #F0C4C0; color: #8C1D16; }
.alert-info { background: #EAF0F7; border-color: #C5D6E8; color: #24435C; }

/* ------------------------------------------------------------------ */
/* Hero                                                                */
/* ------------------------------------------------------------------ */

.hero {
    background:
        radial-gradient(1100px 420px at 85% -10%, rgba(30, 92, 79, 0.10), transparent 60%),
        linear-gradient(180deg, #FFFFFF 0%, var(--paper) 100%);
    border-bottom: 1px solid var(--line-soft);
    padding: 3.2rem 0 3rem;
    text-align: center;
}

.hero-title { font-size: 2.5rem; margin-bottom: 0.4rem; }
.hero-tagline {
    font-family: var(--font-display);
    font-size: 1.35rem; color: var(--green-dark);
    margin: 0 0 1rem; font-weight: 700;
}
.hero-sub { max-width: 40rem; margin: 0 auto 1.6rem; color: var(--ink-soft); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; justify-content: center; }

@media (min-width: 640px) {
    .hero { padding: 4.5rem 0 4rem; }
    .hero-title { font-size: 3.4rem; }
    .hero-tagline { font-size: 1.6rem; }
}

/* ------------------------------------------------------------------ */
/* Bands & grids                                                       */
/* ------------------------------------------------------------------ */

.band { padding: 2.6rem 0; }
.band-alt { background: var(--surface); border-block: 1px solid var(--line-soft); }
.band-title { margin-bottom: 0.2rem; }
.band-sub { color: var(--ink-soft); margin-bottom: 1.4rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

/* ------------------------------------------------------------------ */
/* Cards                                                               */
/* ------------------------------------------------------------------ */

.card {
    display: flex; flex-direction: column; gap: 0.35rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.15rem 1.2rem;
    text-decoration: none; color: var(--ink);
    box-shadow: var(--shadow);
    transition: border-color 0.15s ease, transform 0.15s ease;
}
a.card:hover, a.card:focus-visible {
    border-color: var(--green);
    color: var(--ink);
    transform: translateY(-2px);
}
.card h3 { margin: 0; font-size: 1.08rem; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }
.card-kicker {
    font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--green); font-weight: 700;
}
.card-more { color: var(--green); font-weight: 600; font-size: 0.9rem; margin-top: auto; }
.card-soon {
    display: inline-block; margin-top: auto;
    font-size: 0.8rem; color: var(--ink-soft);
    border: 1px dashed var(--line); border-radius: 999px; padding: 0.15rem 0.7rem;
}

.card-img {
    display: block;
    width: calc(100% + 2.4rem);
    margin: -1.15rem -1.2rem 0.8rem -1.2rem;
    height: 180px;
    object-fit: cover;
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-img-wrap {
    position: relative;
    width: calc(100% + 2.4rem);
    margin: -1.15rem -1.2rem 0.85rem -1.2rem;
}
.card-img-placeholder {
    width: 100%;
    height: 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius) var(--radius) 0 0;
}
.card-img-icon {
    font-size: 3.2rem;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,.25));
    line-height: 1;
}
.card-vip-badge {
    position: absolute;
    top: .55rem;
    right: .55rem;
    background: #d4ac0d;
    color: #fff;
    font-size: .68rem;
    font-weight: 800;
    padding: .22rem .55rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: .04em;
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
}
.vip-top-bar {
    text-align: center;
    padding: .65rem 1.2rem;
    font-size: .88rem;
    font-weight: 600;
    border-bottom: 2px solid transparent;
}
.vip-top-active {
    background: #eaf5ef;
    color: #1e5c4f;
    border-color: #c8e8d8;
}
.vip-top-required {
    background: #fffbf0;
    color: #7a5c00;
    border-color: #f0d980;
}
.vip-top-required a { color: inherit; text-decoration: underline; }

/* Tools index VIP section */
.tools-vip-section {
    margin-top: 1.5rem;
    background: linear-gradient(135deg,#fffbf0 0%,#fef9ea 100%);
    border: 2px solid #f0d980;
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem 1.8rem;
}
.tools-vip-header { margin-bottom: 1.2rem; }
.tools-vip-kicker {
    font-size: .75rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: .08em; color: #9a7d0a; background: #fef3c7;
    border: 1.5px solid #f0d980; border-radius: 999px;
    padding: .2rem .7rem; display: inline-block; margin-bottom: .5rem;
}
.tools-vip-header h2 { font-size: 1.25rem; margin: 0 0 .4rem; color: var(--ink); }
.tools-vip-header p  { font-size: .9rem; color: var(--ink-soft); margin: 0; line-height: 1.55; }
.tools-vip-link { color: #9a7d0a; font-weight: 700; text-decoration: underline; }
.tools-vip-link:hover { color: var(--green); }
.scenario-card { text-align: left; }
.scenario-icon { font-size: 1.7rem; line-height: 1; }
.tool-icon { font-size: 1.7rem; line-height: 1; }
.tool-planned { opacity: 0.75; box-shadow: none; }
.tool-more { justify-content: center; align-items: center; font-weight: 600; color: var(--green); }

/* Article hero image */
.article-hero-img {
    display: block;
    width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: var(--radius);
    margin-top: 1.2rem;
}

/* Cultural item illustration inside article */
.item-img {
    display: block;
    width: 100%;
    max-height: 340px;
    object-fit: cover;
    border-radius: var(--radius);
    margin: 0.9rem 0 1.1rem;
}

.popular-card .popular-head {
    display: flex; justify-content: space-between; align-items: flex-start; gap: 0.7rem;
}
.popular-card h3 { font-size: 1.02rem; }

/* Gift checker Amazon CTA */
.tool-amz-btn { margin-top: 1rem; align-self: flex-start; }
.tool-safe-gifts { margin-top: 2rem; }
.safe-gifts-grid {
    display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.8rem;
}
.safe-gift-chip {
    display: inline-block;
    padding: 0.45rem 0.9rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    font-size: 0.88rem;
    color: var(--ink);
    text-decoration: none;
    transition: border-color 0.15s ease;
}
.safe-gift-chip:hover { border-color: var(--green); color: var(--ink); }
.safe-gifts-note { margin-top: 0.75rem; font-size: 0.8rem; color: var(--ink-soft); }

/* ------------------------------------------------------------------ */
/* Buttons, chips                                                      */
/* ------------------------------------------------------------------ */

.btn {
    display: inline-block;
    font: inherit; font-weight: 600;
    padding: 0.65rem 1.25rem;
    border-radius: 999px;
    text-decoration: none; cursor: pointer;
    border: 1px solid transparent;
    transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--green-dark); border-color: var(--green); }
.btn-ghost:hover { background: var(--green-soft); color: var(--green-dark); }

.chip {
    display: inline-block;
    font-size: 0.85rem;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 0.25rem 0.8rem;
    text-decoration: none; color: var(--ink);
}
.chip:hover { border-color: var(--green); color: var(--green-dark); }

/* ------------------------------------------------------------------ */
/* Quick answer & DO/DON'T                                             */
/* ------------------------------------------------------------------ */

.qa-card {
    background: var(--green-soft);
    border: 1px solid #CDE0DA;
    border-left: 4px solid var(--green);
    border-radius: var(--radius-sm);
    padding: 1.1rem 1.2rem;
    margin: 1.5rem 0;
}
.qa-card-label {
    text-transform: uppercase; letter-spacing: 0.08em;
    font-size: 0.75rem; font-weight: 700; color: var(--green-dark);
    margin: 0 0 0.3rem;
}
.qa-card-text { font-size: 1.06rem; margin: 0; }

.dd-grid { display: grid; gap: 0.9rem; margin: 1.2rem 0; grid-template-columns: 1fr; }
@media (min-width: 768px) { .dd-grid { grid-template-columns: 1fr 1fr; } }

.dd-card { border-radius: var(--radius-sm); padding: 0.95rem 1.05rem; border: 1px solid; }
.dd-do { background: var(--risk-low-bg); border-color: #CBE6CD; }
.dd-dont { background: var(--risk-high-bg); border-color: #F0C8C4; }
.dd-title { margin: 0 0 0.4rem; font-size: 0.95rem; font-family: var(--font-body); font-weight: 700; }
.dd-do .dd-title { color: #1E5622; }
.dd-dont .dd-title { color: #8C1D16; }
.dd-sign { margin-right: 0.4rem; }
.dd-list { margin: 0; padding-left: 1.1rem; }
.dd-list li { margin-bottom: 0.35rem; }

/* ------------------------------------------------------------------ */
/* Badges                                                              */
/* ------------------------------------------------------------------ */

.badge {
    display: inline-flex; align-items: center; gap: 0.35rem;
    font-size: 0.78rem; font-weight: 700;
    border-radius: 999px; padding: 0.18rem 0.7rem;
    white-space: nowrap;
}
.badge-risk-low { background: var(--risk-low-bg); color: var(--risk-low-c); }
.badge-risk-medium { background: var(--risk-med-bg); color: var(--risk-med-c); }
.badge-risk-high { background: var(--risk-high-bg); color: var(--risk-high-c); }

/* ------------------------------------------------------------------ */
/* Term cards                                                          */
/* ------------------------------------------------------------------ */

.terms-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; margin-top: 0.8rem; }
@media (min-width: 640px) { .terms-grid { grid-template-columns: repeat(2, 1fr); } }

.term-card {
    display: flex; gap: 1rem; align-items: flex-start;
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
}
.term-hanzi {
    font-size: 2rem; line-height: 1.15; font-weight: 700;
    color: var(--green-dark); min-width: 3.2rem; text-align: center;
}
.term-pinyin { font-weight: 700; margin: 0; color: var(--ink); }
.term-literal { margin: 0.1rem 0; color: var(--ink-soft); font-size: 0.9rem; }
.term-cultural { margin: 0.2rem 0 0; font-size: 0.92rem; }

/* ------------------------------------------------------------------ */
/* Item blocks (knowledge cards)                                       */
/* ------------------------------------------------------------------ */

.item-block {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.3rem;
    margin: 1.4rem 0;
    box-shadow: var(--shadow);
}
@media (min-width: 768px) { .item-block { padding: 1.8rem 1.8rem; } }

.item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 0.7rem; justify-content: space-between; }
.item-head h2 { margin: 0; font-size: 1.3rem; }
.item-badges { display: flex; gap: 0.4rem; flex-wrap: wrap; }
.item-block .lead { margin-top: 0.9rem; font-size: 1.02rem; }

.block { margin: 1.6rem 0; }
.block-title { font-size: 1.18rem; margin-bottom: 0.55rem; }

.example-list { margin: 0; }
.example-list li { margin-bottom: 0.5rem; }
.mistake-sign { color: var(--risk-high-c); font-weight: 700; }

.tm-grid { display: grid; gap: 0.9rem; grid-template-columns: 1fr; }
@media (min-width: 768px) { .tm-grid { grid-template-columns: 1fr 1fr; } }
.tm-card { border-radius: var(--radius-sm); padding: 0.9rem 1rem; border: 1px solid; }
.tm-card h4 { margin: 0 0 0.3rem; font-family: var(--font-body); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.tm-card p { margin: 0; font-size: 0.94rem; }
.tm-trad { background: #F5F1E8; border-color: #E6DFCE; }
.tm-trad h4 { color: #7A5D1F; }
.tm-modern { background: #EDF2F6; border-color: #D5DFE8; }
.tm-modern h4 { color: #2C4A5E; }

.verify-note {
    font-size: 0.88rem; color: var(--amber);
    background: var(--risk-med-bg);
    border-radius: var(--radius-sm);
    padding: 0.6rem 0.9rem;
    margin: 0.9rem 0 0;
}

.editor-note {
    background: #EDF2F6; border: 1px solid #D5DFE8; border-radius: var(--radius-sm);
    padding: 0.95rem 1.1rem; margin: 1.4rem 0;
}

/* ------------------------------------------------------------------ */
/* Prose, sources, FAQ                                                 */
/* ------------------------------------------------------------------ */

.prose { max-width: 46rem; }
.prose p { margin-bottom: 0.9rem; }
.prose-page { margin-top: 1.5rem; }

.source-list { margin: 0 0 0.6rem; font-size: 0.92rem; }
.src-meta { color: var(--ink-soft); }
.src-note { font-size: 0.85rem; color: var(--ink-soft); }

.faq {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius-sm);
    margin-bottom: 0.55rem;
    overflow: hidden;
}
.faq summary {
    cursor: pointer; padding: 0.85rem 1.05rem;
    font-weight: 600; list-style-position: outside;
}
.faq summary:hover { background: var(--green-ghost); }
.faq-body { padding: 0 1.05rem 0.9rem; }
.faq-body p { margin: 0; }

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

.article { padding: 1rem 1.1rem 3rem; }
@media (min-width: 768px) { .article { padding-top: 1.4rem; } }

.page-head h1 { margin-bottom: 0.4rem; }
.article-meta {
    display: flex; flex-wrap: wrap; gap: 0.8rem;
    color: var(--ink-soft); font-size: 0.88rem; margin: 0;
}
.article-cat { color: var(--green); font-weight: 600; }

.preview-flag, .preview-flag-page {
    background: var(--risk-med-bg); color: var(--amber);
    border-radius: var(--radius-sm); padding: 0.5rem 0.9rem;
    font-size: 0.88rem; font-weight: 600; margin: 0 0 1rem;
}
.preview-flag-page { margin: 1rem 0 0; }

/* ------------------------------------------------------------------ */
/* Category / tools / static pages                                     */
/* ------------------------------------------------------------------ */

.page-head { padding: 0; margin-bottom: 1.6rem; }
.container > .page-head:first-child { margin-top: 1.6rem; }

.empty-state {
    background: var(--surface); border: 1px dashed var(--line);
    border-radius: var(--radius); padding: 1.8rem 1.4rem; text-align: center;
}

.pagination { display: flex; gap: 0.4rem; justify-content: center; margin: 2rem 0; }
.pagination a, .page-current {
    display: inline-flex; align-items: center; justify-content: center;
    min-width: 2.2rem; height: 2.2rem; padding: 0 0.5rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    text-decoration: none; color: var(--ink); font-weight: 600;
}
.pagination a:hover { border-color: var(--green); color: var(--green-dark); }
.page-current { background: var(--green); border-color: var(--green); color: #fff; }

/* ------------------------------------------------------------------ */
/* Newsletter                                                          */
/* ------------------------------------------------------------------ */

.newsletter-inner { display: grid; gap: 1.2rem; align-items: center; }
@media (min-width: 768px) {
    .newsletter-inner { grid-template-columns: 1.2fr 1fr; }
}
.newsletter-form { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.newsletter-form input[type="email"] {
    flex: 1 1 220px;
    font: inherit; padding: 0.6rem 0.9rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface);
}
.newsletter-form input[type="email"]:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-soft); }
.hp-field { position: absolute; left: -9999px; opacity: 0; }

/* ------------------------------------------------------------------ */
/* Tool pages                                                          */
/* ------------------------------------------------------------------ */

.tool-page { padding: 1.6rem 1.1rem 3rem; }

.tool-form {
    display: flex; flex-wrap: wrap; gap: 0.6rem;
    margin: 1.4rem 0 0.8rem;
}
.tool-form input[type="text"] {
    flex: 1 1 260px;
    font: inherit; padding: 0.7rem 1rem;
    border: 1px solid var(--line); border-radius: var(--radius-sm);
    background: var(--surface);
}
.tool-form input[type="text"]:focus { border-color: var(--green); outline: none; box-shadow: 0 0 0 3px var(--green-soft); }

.tool-quick-row { display: flex; flex-wrap: wrap; gap: 0.45rem; align-items: center; font-size: 0.9rem; color: var(--ink-soft); }

.tool-result {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 1.5rem 1.4rem;
    margin: 1.6rem 0;
    box-shadow: var(--shadow);
}
.tool-verdict { margin: 0 0 0.6rem; font-size: 1.35rem; }
.tool-verdict-neutral { color: var(--ink-soft); }
.tool-association { font-size: 1.02rem; font-weight: 600; color: var(--ink); }
.tool-risk-row { margin: 0.6rem 0 0; }
.tool-error { color: var(--risk-high-c); font-weight: 600; margin: 0; }
.tool-alt { margin-top: 1rem; }
.tool-alt h3 { font-size: 1rem; margin-bottom: 0.3rem; }
.tool-alt ul { margin: 0; }
.tool-alt li { margin-bottom: 0.3rem; }
.tool-readmore { margin: 1.1rem 0 0; }
.tool-about { margin-top: 2.2rem; }

.tool-verdict-box-recommended { border-left: 4px solid var(--risk-low-c); }
.tool-verdict-box-generally_fine { border-left: 4px solid var(--green); }
.tool-verdict-box-caution { border-left: 4px solid var(--risk-med-c); }
.tool-verdict-box-avoid { border-left: 4px solid var(--risk-high-c); }

/* ------------------------------------------------------------------ */
/* 404                                                                 */
/* ------------------------------------------------------------------ */

.notfound { padding: 3rem 1.1rem; text-align: center; }
.notfound .grid { text-align: left; margin-top: 1.5rem; }

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

.site-footer {
    background: var(--ink);
    color: #E8ECEF;
    margin-top: 3rem;
    padding: 2.6rem 0 0;
}
.footer-grid {
    display: grid; gap: 1.8rem; grid-template-columns: 1fr;
    padding-bottom: 2rem;
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1fr; } }

.footer-col h2 {
    font-family: var(--font-body); font-size: 0.8rem; text-transform: uppercase;
    letter-spacing: 0.1em; color: #9FB2BC; margin: 0 0 0.6rem;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col a { color: #E8ECEF; text-decoration: none; font-size: 0.93rem; }
.footer-col a:hover { color: #fff; text-decoration: underline; }
.footer-soon { color: #9FB2BC; font-size: 0.93rem; }
.footer-brand {
    font-family: var(--font-display); font-size: 1.25rem; font-weight: 700;
    color: #fff; margin: 0 0 0.3rem;
}
.footer-tagline { color: #9FB2BC; font-size: 0.9rem; margin: 0; }
.footer-bottom { border-top: 1px solid #31424C; padding: 1.1rem 0; }
.footer-bottom p { margin: 0; font-size: 0.82rem; color: #9FB2BC; }

/* ── Related Articles block ── */
.cr-related-articles { max-width: 720px; margin: 3rem auto 0; padding-top: 2rem; border-top: 1px solid var(--line); }
.cr-ra-heading { font-size: .9rem; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--ink-soft); margin-bottom: .9rem; }
.cr-ra-list { display: flex; flex-direction: column; gap: .6rem; }
.cr-ra-item { display: flex; flex-direction: column; gap: .2rem; padding: .75rem 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); text-decoration: none; color: inherit; transition: border-color .15s, background .15s; }
.cr-ra-item:hover { border-color: var(--green); background: var(--green-ghost); }
.cr-ra-title { font-size: .9rem; font-weight: 600; color: var(--green-dark); }
.cr-ra-desc { font-size: .8rem; color: var(--ink-soft); line-height: 1.4; }
