/*
Theme Name: Impact Factor Theme
Theme URI: https://example.com/
Description: A custom, fast, and minimal WordPress theme for Impact Factor site.
Version: 1.0.0
Author: Antigravity
Author URI: https://example.com/
Text Domain: impact-factor-theme
*/

/* ===========================================================================
   1. Typography & Fonts (@font-face)
   =========================================================================== */

@font-face {
    font-family: 'Inter';
    src: url('assets/fonts/Inter-VariableFont.woff2') format('woff2 supports variations'),
         url('assets/fonts/Inter-VariableFont.woff2') format('woff2-variations');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Cardo';
    src: url('assets/fonts/Cardo-Regular.woff2') format('woff2');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

/* ===========================================================================
   2. Design Tokens
   =========================================================================== */

:root {
    --ink: #14262C;
    --paper: #FAF9F5;
    --teal: #1F5C52;
    --teal-deep: #123B34;
    --line: #E1DDD1;
    --slate: #5B6560;
    --stamp: #9B3A34;
    --card-bg: #FFFFFF;
    --teal-tint: #EEF3F1;
    --stamp-tint: #F7EDEB;
    --badge-bg: #EAE8E0;
    --badge-text: #14262C;
    --radius: 3px;
    --maxw: 1180px;
    --font-heading: 'Cardo', Georgia, serif;
    --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --font-mono: Consolas, "Courier New", Courier, monospace;
}

/* ===========================================================================
   3. Reset & Defaults
   =========================================================================== */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--teal); text-decoration: none; transition: color 0.15s ease; }
a:hover { text-decoration: underline; }
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible {
    outline: 2px solid var(--teal); outline-offset: 2px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 500;
    color: var(--ink);
    line-height: 1.2;
    margin-top: 1.5em;
    margin-bottom: 0.5em;
}
h1 { font-size: 2.25rem; margin-top: 0; }
h2 { font-size: 1.6rem; border-bottom: 1px solid var(--line); padding-bottom: 8px; margin-top: 2em; }

.mono { font-family: var(--font-mono); }

pre {
    padding: 12px 16px;
    background: #fcfbfa;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
    max-width: 100%;
    font-size: 13.5px;
    font-family: var(--font-mono);
    line-height: 1.5;
    margin: 20px 0;
}

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

.eyebrow {
    font-family: var(--font-mono);
    font-size: 12px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    display: block;
}

.entry-content,
.journal-content,
.metric-content,
.publisher-section p,
.article-main p,
.article-main ul,
.article-main ol { max-width: 70ch; }

/* ===========================================================================
   4. Utility Bar & Header
   =========================================================================== */

.utility-bar { background: var(--ink); color: #D9E4DF; font-size: 12.5px; }
.utility-bar .wrap {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 7px; padding-bottom: 7px; gap: 12px; flex-wrap: wrap;
}
.utility-bar a { color: #D9E4DF; text-decoration: underline; text-underline-offset: 2px; }
.utility-bar a:hover { color: #fff; }

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

.nav-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0; gap: 24px;
}

.wordmark {
    font-family: var(--font-heading); font-weight: 600; font-size: 23px;
    letter-spacing: -.01em; color: var(--ink); white-space: nowrap;
    text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark span { color: var(--teal); }

nav.primary { display: flex; gap: 26px; align-items: center; }
nav.primary ul {
    list-style: none; padding: 0; margin: 0;
    display: flex; gap: 26px; align-items: center; flex-wrap: wrap;
}
nav.primary li {
    position: relative;
}
nav.primary a, nav.primary li a {
    color: var(--ink); font-size: 14.5px; font-weight: 500;
    text-decoration: none; white-space: nowrap; font-family: var(--font-body);
}
nav.primary a:hover, nav.primary li a:hover { color: var(--teal); }

/* Submenu / Dropdown styling */
nav.primary ul li {
    position: relative;
}
nav.primary ul li.menu-item-has-children > a {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 6px 0;
}
nav.primary ul li ul,
nav.primary ul li .sub-menu {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 24px rgba(20, 38, 44, 0.08), 0 2px 6px rgba(20, 38, 44, 0.04);
    padding: 6px 0;
    margin: 0;
    min-width: 270px;
    z-index: 1000;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    list-style: none;
}
/* Invisible hover bridge to prevent premature hover-loss */
nav.primary ul li ul::after,
nav.primary ul li .sub-menu::after {
    content: '';
    position: absolute;
    top: -16px;
    left: 0;
    right: 0;
    height: 18px;
    background: transparent;
    z-index: -1;
}
/* Little arrow tip at top of dropdown */
nav.primary ul li ul::before,
nav.primary ul li .sub-menu::before {
    content: '';
    position: absolute;
    top: -6px;
    left: 50%;
    transform: translateX(-50%) rotate(45deg);
    width: 10px;
    height: 10px;
    background: var(--card-bg);
    border-left: 1px solid var(--line);
    border-top: 1px solid var(--line);
    z-index: 2;
}
nav.primary ul li:hover > ul,
nav.primary ul li:hover > .sub-menu,
nav.primary ul li.is-open > ul,
nav.primary ul li.is-open > .sub-menu,
nav.primary ul li:focus-within > ul,
nav.primary ul li:focus-within > .sub-menu {
    display: flex;
}
nav.primary ul li ul li,
nav.primary ul li .sub-menu li {
    width: 100%;
    margin: 0;
    padding: 0;
}
nav.primary ul li ul a,
nav.primary ul li .sub-menu a {
    display: block;
    padding: 9px 18px;
    font-size: 13.5px;
    font-weight: 500;
    color: var(--ink);
    width: 100%;
    box-sizing: border-box;
    white-space: normal;
    line-height: 1.4;
    transition: background 0.15s ease, color 0.15s ease;
}
nav.primary ul li ul a:hover,
nav.primary ul li .sub-menu a:hover,
nav.primary ul li ul a:focus,
nav.primary ul li .sub-menu a:focus {
    background: var(--teal-tint);
    color: var(--teal);
    text-decoration: none;
}
nav.primary li .arrow {
    font-size: 10px;
    margin-left: 2px;
    vertical-align: middle;
    display: inline-block;
    transition: transform 0.2s ease;
    opacity: 0.7;
}
nav.primary li:hover .arrow,
nav.primary li.is-open .arrow,
nav.primary li:focus-within .arrow {
    transform: rotate(180deg);
    opacity: 1;
}

.nav-search {
    display: flex; align-items: center; gap: 6px;
    border: 1px solid var(--line); border-radius: var(--radius);
    padding: 7px 10px; background: #fff; min-width: 190px;
}
.nav-search form { display: flex; align-items: center; width: 100%; }
.nav-search input {
    border: none; outline: none; font-family: inherit;
    font-size: 13.5px; width: 100%; background: transparent; color: var(--ink);
}
.nav-search svg { flex-shrink: 0; opacity: .55; color: var(--slate); }

.menu-toggle {
    display: none; background: none; border: 1px solid var(--line);
    border-radius: var(--radius); padding: 8px 10px; cursor: pointer;
}

/* ===========================================================================
   5. Hero Section
   =========================================================================== */

.hero { padding: 64px 0 56px; border-bottom: 1px solid var(--line); }
.hero-grid {
    display: grid; grid-template-columns: 1.15fr .85fr;
    gap: 56px; align-items: start;
}
.hero h1 {
    font-size: 42px; margin: 14px 0 18px;
    max-width: 15ch; line-height: 1.15; font-family: var(--font-heading);
}
.hero .lede {
    font-size: 17px; color: var(--slate);
    max-width: 52ch; margin-bottom: 28px; font-family: var(--font-body);
}

.search-form {
    display: flex; border: 1.5px solid var(--ink);
    border-radius: var(--radius); overflow: hidden; max-width: 520px; background: #fff;
}
.search-form label { display: none; }
.search-form input.search-field {
    flex: 1; border: none; outline: none; padding: 14px 16px;
    font-family: inherit; font-size: 15px; background: transparent; color: var(--ink);
}
.search-form button.search-submit, .search-form input.search-submit {
    background: var(--teal); color: #fff; border: none; padding: 0 22px;
    font-family: var(--font-body); font-weight: 600; font-size: 14.5px;
    cursor: pointer; letter-spacing: .01em; height: 50px;
}
.search-form button.search-submit:hover, .search-form input.search-submit:hover {
    background: var(--teal-deep);
}

.hero-stats { margin-top: 16px; font-size: 13px; color: var(--slate); font-family: var(--font-mono); }
.hero-stats b { color: var(--ink); font-weight: 500; }

/* ===========================================================================
   6. Index Card (Signature Element)
   =========================================================================== */

.index-card {
    background: var(--card-bg); border: 1px solid var(--line);
    border-radius: 2px; position: relative; padding: 26px 24px 22px;
    box-shadow: 0 1px 0 var(--line);
}
.index-card::before {
    content: ""; position: absolute; top: -8px; left: 50%;
    transform: translateX(-50%); width: 16px; height: 16px;
    border-radius: 50%; background: var(--paper); border: 1px solid var(--line);
}
.index-card .card-eyebrow {
    font-family: var(--font-mono); font-size: 11px;
    letter-spacing: .08em; color: var(--slate); text-transform: uppercase; display: block;
}
.index-card h3 {
    font-family: var(--font-heading); font-size: 18px; font-weight: 600;
    letter-spacing: .01em; margin: 6px 0 2px; color: var(--ink);
}
.index-card .publisher { font-size: 13px; color: var(--slate); margin-bottom: 16px; }

.field-row {
    display: flex; align-items: baseline; gap: 6px;
    font-family: var(--font-mono); font-size: 13.5px;
    padding: 7px 0; border-bottom: 1px dotted var(--line);
}
.field-row .label { color: var(--slate); white-space: nowrap; letter-spacing: .02em; }
.field-row .leader { flex: 1; border-bottom: 1px dotted var(--line); position: relative; top: -3px; }
.field-row .value { font-weight: 500; color: var(--ink); white-space: nowrap; }
.value.q1 { color: var(--teal); font-weight: 600; }

.stamp {
    display: inline-block; margin-top: 16px; padding: 5px 10px;
    border: 1.5px solid var(--stamp); color: var(--stamp);
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .08em;
    transform: rotate(-4deg); border-radius: 2px; font-weight: 500;
}
.card-source {
    display: block; margin-top: 16px; font-size: 12.5px; color: var(--slate);
    padding-top: 12px; border-top: 1px solid var(--line);
}
.card-source a { font-size: 12.5px; }

/* ===========================================================================
   7. Pillars Section
   =========================================================================== */

.section { padding: 60px 0; }
.section-head { margin-bottom: 34px; max-width: 60ch; }
.section-head h2 { font-size: 28px; margin-top: 8px; border: none; padding: 0; }

.pillars { display: grid; grid-template-columns: repeat(3,1fr); gap: 0; }
.pillar {
    padding: 28px 26px; border-top: 1px solid var(--line);
    border-right: 1px solid var(--line);
}
.pillar:last-child { border-right: none; }
.pillar .icon { margin-bottom: 16px; color: var(--teal); display: flex; align-items: center; }
.pillar h3 { font-size: 20px; margin-bottom: 8px; margin-top: 0; }
.pillar p { font-size: 14.5px; color: var(--slate); margin-bottom: 14px; }
.pillar a { font-size: 13.5px; font-weight: 600; color: var(--teal); }

/* ===========================================================================
   8. Split (Recently Reviewed + Blog)
   =========================================================================== */

.split {
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 56px; padding: 56px 0; border-top: 1px solid var(--line);
}
.split h2 { font-size: 22px; margin: 8px 0 4px; border: none; padding: 0; }
.split .sub { font-size: 13.5px; color: var(--slate); margin-bottom: 22px; }

.entry-list { list-style: none; padding: 0; margin: 0; }
.entry-list li {
    display: flex; justify-content: space-between; align-items: baseline;
    gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line);
}
.entry-list li:first-child { padding-top: 0; }
.entry-name { font-size: 15px; font-weight: 500; font-family: var(--font-body); }
.entry-name a { color: var(--ink); }
.entry-name a:hover { color: var(--teal); }
.entry-meta { font-family: var(--font-mono); font-size: 12px; color: var(--slate); white-space: nowrap; text-align: right; }
.entry-meta .q { color: var(--teal); font-weight: 500; }

.post-list { list-style: none; padding: 0; margin: 0; }
.post-list li { padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-list li:first-child { padding-top: 0; }
.post-list a.title { font-size: 15.5px; font-weight: 500; color: var(--ink); display: block; margin-bottom: 5px; }
.post-list a.title:hover { color: var(--teal); }
.post-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); }

/* ===========================================================================
   9. Trust Strip
   =========================================================================== */

.trust {
    background: #F1EFE6; border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line); padding: 30px 0; margin-top: 50px;
}
.trust .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: center; justify-content: space-between; }
.trust-item { font-size: 13.5px; color: var(--slate); max-width: 280px; }
.trust-item strong { display: block; color: var(--ink); font-size: 14px; margin-bottom: 3px; }
.trust-links { display: flex; gap: 18px; font-size: 13.5px; flex-wrap: wrap; }
.trust-links a { color: var(--teal); font-weight: 500; }

/* ===========================================================================
   10. Footer
   =========================================================================== */

footer { padding: 52px 0 32px; border-top: 1px solid var(--line); background: var(--paper); }
.footer-grid {
    display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: 40px; padding-bottom: 36px; border-bottom: 1px solid var(--line);
}
.footer-brand .wordmark { margin-bottom: 10px; display: block; }
.footer-brand p { font-size: 13.5px; color: var(--slate); max-width: 34ch; }
.footer-col h4 {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--slate); margin-bottom: 14px; font-weight: 500;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 14px; color: var(--ink); }
.footer-col a:hover { color: var(--teal); }
.footer-bottom {
    display: flex; justify-content: space-between; align-items: center;
    padding-top: 22px; font-size: 12.5px; color: var(--slate); flex-wrap: wrap; gap: 10px;
}

/* ===========================================================================
   11. Breadcrumbs
   =========================================================================== */

.breadcrumb, .breadcrumbs {
    padding: 16px 0; font-size: 13px; color: var(--slate);
    border-bottom: 1px solid var(--line); margin-bottom: 20px;
}
.breadcrumb a, .breadcrumbs a { color: var(--slate); text-decoration: none; }
.breadcrumb a:hover, .breadcrumbs a:hover { color: var(--teal); }
.breadcrumb .sep, .breadcrumbs .sep { margin: 0 6px; color: var(--line); }
.breadcrumb .current, .breadcrumbs .current-item { color: var(--ink); }

/* ===========================================================================
   12. Article / Blog Post Layout
   =========================================================================== */

.article-layout {
    display: grid; grid-template-columns: 1fr 240px;
    gap: 64px; padding: 44px 0 20px;
}
.article-main { max-width: 70ch; min-width: 0; }

.kicker {
    font-family: var(--font-mono); font-size: 12px; letter-spacing: .08em;
    text-transform: uppercase; color: var(--slate); margin-bottom: 10px; display: block;
}

h1.title, h1.entry-title {
    font-size: 38px; max-width: 22ch; margin-bottom: 20px; font-family: var(--font-heading);
}

.byline, .post-byline, .journal-byline {
    display: flex; align-items: center; gap: 14px; padding: 16px 0; margin-bottom: 28px;
    border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
    font-family: var(--font-body); font-size: 13.5px;
}
.avatar {
    width: 42px; height: 42px; border-radius: 50%; background: var(--teal); color: #fff;
    display: flex; align-items: center; justify-content: center;
    font-family: var(--font-mono); font-size: 14px; font-weight: 500; flex-shrink: 0;
}
.byline-text { font-size: 13.5px; line-height: 1.5; color: var(--slate); }
.byline-text .name { font-weight: 600; color: var(--ink); font-size: 14.5px; }
.byline-text .cred { color: var(--slate); }
.byline-text .links a { margin-right: 12px; font-size: 12.5px; font-weight: 500; color: var(--teal); }
.byline-date {
    margin-left: auto; text-align: right;
    font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); white-space: nowrap;
}
.byline-date b { display: block; color: var(--ink); font-weight: 500; text-transform: uppercase; font-size: 10px; letter-spacing: 0.05em; }

.lede { font-size: 18px; color: var(--ink); margin-bottom: 30px; line-height: 1.65; }

.article-main h2 { font-size: 25px; margin: 44px 0 14px; scroll-margin-top: 90px; }
.article-main h3 { font-size: 18px; margin: 26px 0 10px; }
.article-main p { margin-bottom: 16px; color: #2A3A3E; }
.article-main ul, .article-main ol { margin: 0 0 18px 22px; }
.article-main li { margin-bottom: 7px; color: #2A3A3E; }
.article-main strong { color: var(--ink); }

/* ===========================================================================
   13. Checklist & Steps
   =========================================================================== */

.checklist { list-style: none; margin: 0 0 20px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; padding: 0; }
.checklist li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 16px; border-bottom: 1px solid var(--line); background: #fff; margin: 0; }
.checklist li:last-child { border-bottom: none; }
.checklist .num {
    font-family: var(--font-mono); font-size: 12px; font-weight: 500; color: var(--teal);
    background: var(--teal-tint); border-radius: 50%; width: 22px; height: 22px;
    display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}

.step { margin: 40px 0; padding-top: 8px; }
.step-head { display: flex; align-items: baseline; gap: 14px; margin-bottom: 6px; }
.step-num { font-family: var(--font-mono); font-size: 14px; color: var(--teal); font-weight: 500; letter-spacing: .04em; }
.step h2 { margin: 0; font-size: 24px; }

/* ===========================================================================
   14. Callouts & Warnings
   =========================================================================== */

.callout {
    border-left: 3px solid var(--teal); background: var(--teal-tint);
    padding: 16px 20px; margin: 20px 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.callout .label {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .07em;
    text-transform: uppercase; color: var(--teal); font-weight: 500; margin-bottom: 6px; display: block;
}
.callout p { margin-bottom: 0; font-size: 15px; color: #2A3A3E; }

.warning {
    border-left: 3px solid var(--stamp); background: var(--stamp-tint);
    padding: 16px 20px; margin: 20px 0; border-radius: 0 var(--radius) var(--radius) 0;
}
.warning .label {
    font-family: var(--font-mono); font-size: 11px; letter-spacing: .07em;
    text-transform: uppercase; color: var(--stamp); font-weight: 500;
    margin-bottom: 8px; display: flex; align-items: center; gap: 6px;
}
.warning ul { margin: 8px 0 0 20px; }
.warning li { color: #3a2020; }

/* ===========================================================================
   15. Tables
   =========================================================================== */

.table-container {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 18px 0 24px;
}
.table-container .data-table,
.table-container .metrics-table {
    margin: 0;
}
.data-table, .metrics-table {
    width: 100%; border-collapse: collapse; margin: 18px 0 24px;
    font-size: 14.5px; font-family: var(--font-body);
}
.data-table th, .metrics-table th {
    background: var(--ink); color: #fff; text-align: left; padding: 10px 14px;
    font-family: var(--font-mono); font-weight: 500; font-size: 12.5px; letter-spacing: .03em; border: none;
}
.data-table td, .metrics-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); color: #2A3A3E; }
.data-table tr:nth-child(even) td, .metrics-table tr:nth-child(even) td { background: #F3F1E9; }
.data-table td:first-child, .metrics-table td:first-child { font-weight: 600; font-family: var(--font-mono); font-size: 13px; white-space: nowrap; color: var(--ink); }

.formula-plain {
    font-family: var(--font-mono);
    font-size: 13px;
    line-height: 1.5;
    margin: 18px 0;
    color: var(--ink);
    word-break: break-word;
}

.formula-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin: 24px auto;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background-color: var(--teal-tint);
    font-family: var(--font-body);
    font-size: 14px;
    max-width: 100%;
}
.formula-label {
    font-weight: 600;
    font-family: var(--font-mono);
    font-size: 13.5px;
    color: var(--ink);
    white-space: nowrap;
}
.formula-fraction {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    max-width: 320px;
}
.formula-numerator {
    border-bottom: 1px solid var(--ink);
    padding-bottom: 6px;
    margin-bottom: 6px;
    width: 100%;
    line-height: 1.4;
}
.formula-denominator {
    width: 100%;
    line-height: 1.4;
}

@media (max-width: 540px) {
    .formula-container {
        flex-direction: column;
        gap: 10px;
        font-size: 13px;
        padding: 15px;
    }
    .formula-label {
        font-size: 13px;
    }
    .formula-fraction {
        max-width: 100%;
    }
}

.article-diagram {
    margin: 28px 0 32px;
    padding: 0;
    width: 100%;
    max-width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #FAF9F5;
    overflow: hidden;
}
.article-diagram svg {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
}
.article-diagram figcaption {
    padding: 10px 16px;
    background: #F3F1E9;
    border-top: 1px solid var(--line);
    font-family: var(--font-mono);
    font-size: 12px;
    color: var(--slate);
    line-height: 1.4;
}

/* ===========================================================================
   16. FAQ Accordion
   =========================================================================== */

.faq-item { border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item summary {
    padding: 16px 4px; font-weight: 600; font-size: 15.5px; cursor: pointer;
    color: var(--ink); list-style: none; display: flex;
    justify-content: space-between; align-items: center; gap: 12px;
    font-family: var(--font-body);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-family: var(--font-mono); color: var(--teal); font-size: 18px; flex-shrink: 0; }
.faq-item[open] summary::after { content: "–"; }
.faq-item .faq-body { padding: 0 4px 18px; font-size: 14.5px; color: #2A3A3E; }
.faq-item .faq-body table { margin-top: 6px; }

/* ===========================================================================
   17. Related / Lists
   =========================================================================== */

.related, .related-journals-section, .publisher-section,
.journals-published-section, .notable-journals-section {
    margin-top: 48px; padding-top: 28px; border-top: 1px solid var(--line);
}
.related h2, .related-journals-section h2, .publisher-section h2 {
    font-size: 20px; margin-bottom: 16px; margin-top: 0; border: none; padding: 0;
}
.related-grid {
    display: grid; grid-template-columns: 1fr 1fr;
    gap: 10px 24px; list-style: none; padding: 0; margin: 0;
}
.related-grid a { font-size: 14.5px; font-weight: 500; display: block; padding: 8px 0; border-bottom: 1px dotted var(--line); }

.relation-list { list-style: none; padding: 0; margin: 15px 0 30px 0; }
.relation-list li { margin-bottom: 10px; border-bottom: 1px dotted var(--line); padding-bottom: 8px; }
.relation-list a { font-family: var(--font-body); font-weight: 500; font-size: 15px; color: var(--teal); }

.rolling-note { margin-top: 36px; font-size: 13px; color: var(--slate); border-top: 1px solid var(--line); padding-top: 16px; }

/* ===========================================================================
   18. TOC Sidebar
   =========================================================================== */

.toc { position: sticky; top: 90px; align-self: start; font-family: var(--font-body); }
.toc .eyebrow { display: block; margin-bottom: 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; }
.toc li { margin-bottom: 2px; }
.toc a {
    display: block; font-size: 13px; color: var(--slate);
    padding: 6px 0 6px 12px; border-left: 2px solid var(--line); line-height: 1.4;
}
.toc a:hover { color: var(--teal); border-left-color: var(--teal); text-decoration: none; }

/* Mobile Table of Contents (collapsed details block) */
.toc-mobile {
    margin: 20px 0 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--card-bg);
    padding: 14px 18px;
    font-family: var(--font-body);
}
.toc-mobile summary {
    font-weight: 600;
    font-size: 15.5px;
    color: var(--ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.toc-mobile summary::-webkit-details-marker {
    display: none;
}
.toc-mobile summary::after {
    content: "+";
    font-family: var(--font-mono);
    color: var(--teal);
    font-size: 18px;
}
.toc-mobile[open] summary::after {
    content: "–";
}
.toc-mobile ul {
    list-style: none;
    padding: 0;
    margin: 12px 0 0 0;
    border-top: 1px dashed var(--line);
    padding-top: 12px;
}
.toc-mobile li {
    margin-bottom: 8px;
}
.toc-mobile li:last-child {
    margin-bottom: 0;
}
.toc-mobile a {
    font-size: 14.5px;
    color: var(--teal);
    text-decoration: none;
    font-weight: 500;
}
.toc-mobile a:hover {
    text-decoration: underline;
}

@media (min-width: 783px) {
    .toc-mobile {
        display: none !important;
    }
}

/* ===========================================================================
   19. Author Box
   =========================================================================== */

.author-box {
    margin: 40px 0; padding: 25px; background-color: var(--teal-tint);
    border: 1px solid var(--line); border-radius: var(--radius);
}
.author-box h3 { margin-top: 0; margin-bottom: 5px; font-size: 1.2rem; font-family: var(--font-heading); color: var(--ink); }
.author-title { font-weight: 600; font-size: 0.9rem; color: var(--slate); margin-top: 0; margin-bottom: 15px; }
.author-bio { font-size: 0.95rem; line-height: 1.6; margin-bottom: 15px; color: #2A3A3E; }
.author-credentials { font-size: 0.9rem; margin-bottom: 15px; border-top: 1px dashed var(--line); padding-top: 15px; }
.author-credentials strong { color: var(--ink); display: block; margin-bottom: 8px; }
.credentials-content { white-space: pre-line; color: #2A3A3E; }
.author-social-links { font-size: 0.85rem; font-weight: 500; display: flex; gap: 20px; border-top: 1px solid var(--line); padding-top: 15px; }
.author-social-links a { color: var(--teal); }
.author-social-links a:hover { text-decoration: underline; }

/* ===========================================================================
   20. Badges — Neutral Gray (no per-category colors)
   =========================================================================== */

.badge, .tag, .quartile-badge {
    display: inline-block;
    background-color: var(--badge-bg);
    color: var(--badge-text);
    padding: 3px 8px;
    font-size: 12px;
    font-family: var(--font-mono);
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.4;
    vertical-align: middle;
}
a.badge, a.tag {
    color: var(--ink);
    transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
a.badge:hover, a.tag:hover {
    background-color: var(--teal-tint);
    color: var(--teal);
    text-decoration: none;
    border-color: var(--teal);
}

/* ===========================================================================
   21. Resource Callout
   =========================================================================== */

.resource-callout {
    margin: 30px 0; padding: 20px; background-color: var(--teal-tint);
    border-left: 4px solid var(--teal); border-radius: 0 var(--radius) var(--radius) 0;
}
.resource-callout a { display: inline-block; margin-right: 25px; font-weight: 600; color: var(--teal); }
.resource-callout a:hover { color: var(--teal-deep); }

/* ===========================================================================
   22. Journal Metadata (badges layout)
   =========================================================================== */

.journal-meta-grid {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 16px;
    margin: 20px 0;
    font-size: 14px;
}
.journal-meta-grid dt {
    font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .04em;
    text-transform: uppercase; color: var(--slate); font-weight: 500;
    display: flex; align-items: center; padding-top: 4px;
}
.journal-meta-grid dd { margin: 0; display: flex; flex-wrap: wrap; gap: 5px; align-items: center; }

/* ===========================================================================
   23. Responsive
   =========================================================================== */

@media (max-width: 980px) {
    .hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .index-card { max-width: 420px; margin: 0 auto; }
    .pillars { grid-template-columns: 1fr; }
    .pillar { border-right: none; border-bottom: 1px solid var(--line); }
    .pillar:last-child { border-bottom: none; }
    .split { grid-template-columns: 1fr; gap: 36px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
    .related-grid { grid-template-columns: 1fr; }
    .journal-meta-grid { grid-template-columns: 1fr; }
}

@media (max-width: 782px) {
    .article-layout { grid-template-columns: 1fr; gap: 0; padding-top: 24px; }
    .toc { display: none !important; }
    .toc-mobile { display: block; }
}

@media (max-width: 720px) {
    nav.primary { display: none; }
    nav.primary ul {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        width: 100%;
    }
    nav.primary ul li {
        width: 100%;
    }
    nav.primary ul li ul,
    nav.primary ul li .sub-menu {
        position: static;
        transform: none;
        box-shadow: none;
        border: none;
        border-left: 2px solid var(--teal);
        border-radius: 0;
        background: transparent;
        padding: 4px 0 4px 14px;
        margin-top: 6px;
        min-width: 100%;
    }
    nav.primary ul li ul::before,
    nav.primary ul li .sub-menu::before,
    nav.primary ul li ul::after,
    nav.primary ul li .sub-menu::after {
        display: none;
    }
    nav.primary ul li ul a,
    nav.primary ul li .sub-menu a {
        padding: 6px 0;
        font-size: 13.5px;
    }
    .menu-toggle { display: block; }
    .nav-search { display: none; }
    .hero h1 { font-size: 32px; }
    .footer-grid { grid-template-columns: 1fr; }
    .utility-bar .wrap { font-size: 11.5px; }
    .byline, .journal-byline, .post-byline { flex-wrap: wrap; }
    .byline-date { margin-left: 0; text-align: left; width: 100%; margin-top: 10px; }
    h1.title, h1.entry-title { font-size: 28px; }
}

/* ===========================================================================
   24. Category / Archive Header
   =========================================================================== */

.archive-wrap { padding: 44px 0 60px; }

.category-header {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 28px 32px;
    margin-bottom: 36px;
    position: relative;
    overflow: hidden;
}
.category-header::before {
    content: "";
    position: absolute;
    left: 0; top: 0; bottom: 0;
    width: 4px;
    background: var(--teal);
    border-radius: var(--radius) 0 0 var(--radius);
}

.category-eyebrow {
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .09em;
    text-transform: uppercase;
    color: var(--teal);
    font-weight: 500;
    display: block;
    margin-bottom: 10px;
}

.category-title {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--ink);
    margin: 0 0 14px;
    font-weight: 500;
    line-height: 1.2;
}

.category-description {
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--slate);
    line-height: 1.7;
    max-width: 72ch;
    margin: 0;
}
.category-description p { margin: 0; color: var(--slate); }

.archive-count {
    display: inline-block;
    font-family: var(--font-mono);
    font-size: 11px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--slate);
    margin-top: 16px;
    padding-top: 14px;
    border-top: 1px solid var(--line);
    width: 100%;
}

/* Archive post list */
.archive-post-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.archive-post-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 12px 24px;
    padding: 22px 0;
    border-bottom: 1px solid var(--line);
    align-items: start;
}
.archive-post-item:first-child { padding-top: 0; }

.archive-post-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.archive-post-title {
    font-family: var(--font-heading);
    font-size: 1.2rem;
    font-weight: 500;
    color: var(--ink);
    display: block;
    margin-bottom: 8px;
    line-height: 1.3;
}
.archive-post-title:hover { color: var(--teal); text-decoration: none; }

.archive-post-excerpt {
    font-family: var(--font-body);
    font-size: 14px;
    color: var(--slate);
    line-height: 1.6;
    max-width: 68ch;
    margin: 0;
}

.archive-post-date {
    font-family: var(--font-mono);
    font-size: 11.5px;
    color: var(--slate);
    white-space: nowrap;
    text-align: right;
    padding-top: 4px;
}
.archive-post-date b {
    display: block;
    color: var(--ink);
    font-weight: 500;
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 0.05em;
    margin-bottom: 3px;
}

/* Archive pagination */
.archive-pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 32px;
    border-top: 1px solid var(--line);
    margin-top: 36px;
    font-family: var(--font-mono);
    font-size: 13px;
    color: var(--slate);
}
.archive-pagination a {
    color: var(--teal);
    font-weight: 500;
    border: 1px solid var(--line);
    padding: 8px 16px;
    border-radius: var(--radius);
    transition: background-color 0.15s ease, border-color 0.15s ease;
}
.archive-pagination a:hover {
    background: var(--teal-tint);
    border-color: var(--teal);
    text-decoration: none;
}

/* All Categories sidebar list */
.category-nav {
    position: sticky;
    top: 90px;
    align-self: start;
}
.category-nav .eyebrow { display: block; margin-bottom: 12px; }
.category-nav ul { list-style: none; padding: 0; margin: 0; }
.category-nav li { margin-bottom: 2px; }
.category-nav a {
    display: block;
    font-size: 13.5px;
    color: var(--slate);
    padding: 8px 0 8px 12px;
    border-left: 2px solid var(--line);
    font-family: var(--font-body);
    font-weight: 500;
    line-height: 1.4;
}
.category-nav a:hover,
.category-nav a.current { color: var(--teal); border-left-color: var(--teal); text-decoration: none; }
.category-nav .cat-count {
    font-family: var(--font-mono);
    font-size: 11px;
    color: var(--slate);
    margin-left: 4px;
    opacity: .7;
}

@media (max-width: 980px) {
    .archive-layout { grid-template-columns: 1fr !important; }
    .category-nav { position: static; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; margin-bottom: 28px; background: #fff; }
    .archive-post-item { grid-template-columns: 1fr; }
    .archive-post-date { text-align: left; }
}

/* ===========================================================================
   25. Blog Archive Layout (home.php)
   =========================================================================== */

/* page header */
.page-head { padding: 40px 0 8px; }
.page-head h1 { font-size: 36px; margin: 10px 0 12px; font-family: var(--font-heading); }
.page-head .lede { font-size: 16.5px; color: var(--slate); max-width: 60ch; }

/* filter chips */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin: 26px 0 6px; padding-bottom: 26px; border-bottom: 1px solid var(--line); }
.chip {
    font-family: var(--font-mono); font-size: 12.5px; padding: 7px 13px; border: 1px solid var(--line);
    border-radius: 20px; color: var(--slate); background: #fff; text-decoration: none; transition: all 0.15s ease;
}
.chip:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; }
.chip.active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* layout */
.blog-layout { display: grid; grid-template-columns: 1fr 260px; gap: 56px; padding: 36px 0 60px; }

/* issue grouping */
.issue-label { display: flex; align-items: baseline; gap: 12px; margin: 38px 0 4px; }
.issue-label:first-child { margin-top: 8px; }
.issue-label .vol { font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); letter-spacing: .06em; }
.issue-label h2 { font-family: var(--font-heading); font-size: 20px; margin: 0; }

.post-index { list-style: none; }
.post-entry { display: grid; grid-template-columns: 34px 1fr; gap: 16px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.post-entry:first-of-type { border-top: none; }
.entry-no { font-family: var(--font-mono); font-size: 13px; color: var(--slate); padding-top: 3px; }

.entry-tag {
    display: inline-block; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em;
    text-transform: uppercase; color: var(--teal); background: var(--teal-tint);
    padding: 3px 8px; border-radius: 2px; margin-bottom: 8px; border: 1px solid var(--line);
}
.entry-tag.updates { color: var(--stamp); background: var(--stamp-tint); border-color: var(--stamp-tint); }

.post-entry h3 { font-family: var(--font-heading); font-size: 18.5px; margin-bottom: 6px; margin-top: 0; }
.post-entry h3 a { color: var(--ink); text-decoration: none; }
.post-entry h3 a:hover { color: var(--teal); text-decoration: underline; }
.post-entry .dek { font-size: 14.5px; color: #2A3A3E; max-width: 62ch; margin-bottom: 9px; line-height: 1.6; }
.entry-meta { font-family: var(--font-mono); font-size: 11.5px; color: var(--slate); }
.entry-meta .dot { margin: 0 7px; }

.pagination { display: flex; justify-content: center; align-items: center; gap: 18px; margin-top: 36px; font-family: var(--font-mono); font-size: 13px; }
.pagination a { padding: 9px 16px; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); text-decoration: none; transition: all 0.15s ease; }
.pagination a:hover { border-color: var(--teal); color: var(--teal); text-decoration: none; background: var(--teal-tint); }
.pagination .current-page { color: var(--slate); }

/* sidebar */
.sidebar section { margin-bottom: 38px; }
.sidebar h4 { font-family: var(--font-mono); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--slate); margin-bottom: 14px; font-weight: 500; border: none; padding: 0; margin-top: 0; }

.cat-list { list-style: none; }
.cat-list li { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dotted var(--line); font-size: 14px; }
.cat-list li a { color: var(--ink); text-decoration: none; }
.cat-list li a:hover { color: var(--teal); text-decoration: underline; }
.cat-list .count { font-family: var(--font-mono); font-size: 12px; color: var(--slate); }

.widget-list { list-style: none; }
.widget-list li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.widget-list li:first-child { padding-top: 0; }
.widget-list a { font-size: 13.5px; font-weight: 500; color: var(--ink); text-decoration: none; }
.widget-list a:hover { color: var(--teal); text-decoration: underline; }
.widget-meta { font-family: var(--font-mono); font-size: 11px; color: var(--slate); white-space: nowrap; }
.widget-meta .q { color: var(--teal); font-weight: 500; }

.about-box { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.about-box p { font-size: 13px; color: var(--slate); margin-bottom: 10px; line-height: 1.6; }
.about-box a { font-size: 13px; font-weight: 600; color: var(--teal); text-decoration: none; }
.about-box a:hover { text-decoration: underline; }

@media (max-width: 980px) {
    .blog-layout { grid-template-columns: 1fr; gap: 40px; }
    .sidebar { order: -1; display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-bottom: 10px; }
    .sidebar section { margin-bottom: 0; }
}

@media (max-width: 720px) {
    .page-head h1 { font-size: 28px; }
    .post-entry { grid-template-columns: 22px 1fr; gap: 10px; }
    .sidebar { grid-template-columns: 1fr; }
}

/* ===========================================================================
   Post-specific layout elements (Direct Answer, Badges, Cards)
   =========================================================================== */

.direct-answer {
    background: var(--teal-tint);
    border-left: 4px solid var(--teal);
    padding: 20px 24px;
    border-radius: var(--radius);
    margin: 0 0 36px;
    font-size: 1.05rem;
}
.direct-answer p {
    margin: 0;
}
.direct-answer strong {
    color: var(--teal-deep);
}



.example-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin: 0 0 20px;
    background: var(--card-bg);
}
.example-card h4 {
    margin: 0 0 6px;
    font-size: 1.15rem;
    font-family: var(--font-heading);
}
.example-card .meta {
    font-size: 0.85rem;
    color: var(--slate);
    margin-bottom: 12px;
}
.example-card .takeaway {
    background: var(--teal-tint);
    padding: 10px 14px;
    border-radius: var(--radius);
    font-size: 0.95rem;
    margin-top: 12px;
    border-left: 3px solid var(--teal);
}

.rule-card {
    border-left: 3px solid var(--teal);
    padding: 4px 0 4px 18px;
    margin: 0 0 28px;
}
.rule-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
}

.faq-item {
    margin-bottom: 24px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--line);
}
.faq-item h3 {
    font-size: 1.1rem;
    font-family: var(--font-body);
    font-weight: 700;
    color: var(--ink);
    margin-top: 20px;
    margin-bottom: 8px;
}

.sources {
    font-size: 0.95rem;
}
.sources li {
    margin-bottom: 10px;
}
.sources .caution {
    color: var(--slate);
    font-style: italic;
    font-size: 0.85rem;
}

.disclaimer {
    margin-top: 48px;
    padding: 16px 20px;
    background: #FAF9F5;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    font-size: 0.85rem;
    color: var(--slate);
}

/* ===========================================================================
   Post-specific layout elements (Formula, Worked Example, Journal Card)
   =========================================================================== */

.formula-block {
    background: var(--teal-tint);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 20px 22px;
    margin: 16px 0 22px;
    text-align: center;
    font-family: var(--font-heading);
}
.formula-block .frac {
    display: inline-flex;
    flex-direction: column;
    vertical-align: middle;
    margin: 0 6px;
    text-align: center;
}
.formula-block .frac .num {
    border-bottom: 1.5px solid var(--ink);
    padding: 0 6px 3px;
}
.formula-block .frac .den {
    padding: 3px 6px 0;
}
.formula-block .label {
    display: block;
    font-family: var(--font-body);
    font-size: 0.78rem;
    color: var(--slate);
    margin-top: 10px;
}

.worked-example {
    background: var(--card-bg);
    border: 1px solid var(--line);
    border-left: 3px solid var(--teal);
    border-radius: var(--radius);
    padding: 16px 20px;
    margin: 16px 0 22px;
    font-size: 0.97rem;
}
.worked-example h4 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    font-family: var(--font-heading);
    color: var(--ink);
}

.journal-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 18px 20px;
    margin-bottom: 16px;
    background: var(--card-bg);
}
.journal-card h4 {
    margin: 0 0 4px;
    font-size: 1.15rem;
    font-family: var(--font-heading);
}
.journal-card h4 a {
    color: var(--ink);
    text-decoration: none;
}
.journal-card h4 a:hover {
    color: var(--teal);
    text-decoration: underline;
}
.journal-card .meta {
    font-size: 0.82rem;
    color: var(--slate);
    margin-bottom: 8px;
    font-family: var(--font-body);
}

.limitation-item {
    margin-bottom: 22px;
}
.limitation-item h3 {
    margin-top: 0;
}
.for-you {
    background: var(--teal-tint);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.95rem;
    margin-top: 8px;
    border-left: 3px solid var(--teal);
}

.resource-list a, .sources a {
    display: block;
    margin-bottom: 8px;
}

/* ===========================================================================
   Post-specific layout elements (Caveats, Metrics table, Comparisons)
   =========================================================================== */

.data-caveat {
    background: #fff8ec;
    border: 1px solid #e0a72f;
    border-radius: var(--radius);
    padding: 14px 18px;
    font-size: 0.92rem;
    margin-bottom: 28px;
}
.data-caveat strong {
    color: #8a5c0f;
}

table.metrics-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 24px;
    font-size: 0.94rem;
}
.metrics-table th, .metrics-table td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
}
.metrics-table th {
    background: var(--teal-tint);
    font-weight: 600;
    width: 30%;
    color: var(--ink);
}
.metrics-table td.unverified {
    color: var(--slate);
    font-style: italic;
}
.metrics-table caption {
    text-align: left;
    font-size: 0.82rem;
    color: var(--slate);
    margin-bottom: 8px;
}

.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin: 16px 0 24px;
}
@media (max-width: 640px) {
    .compare-grid { grid-template-columns: 1fr; }
}
.compare-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    background: var(--card-bg);
}
.compare-card h4 {
    margin: 0 0 8px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--ink);
}

.faq-item .aside {
    background: var(--teal-tint);
    border-radius: var(--radius);
    padding: 10px 14px;
    font-size: 0.93rem;
    margin-top: 8px;
    border-left: 3px solid var(--teal);
}

/* ===========================================================================
   Post-specific layout elements (Comparison table, Metric cards)
   =========================================================================== */

table.compare-table {
    width: 100%;
    border-collapse: collapse;
    margin: 16px 0 26px;
    font-size: 0.92rem;
}
.compare-table th, .compare-table td {
    border: 1px solid var(--line);
    padding: 10px 12px;
    text-align: left;
    vertical-align: top;
}
.compare-table thead th {
    background: var(--teal-tint);
    color: var(--ink);
}
.compare-table th.jif-col {
    color: #6a3fd6; /* Keep original Clarivate purple branding */
}
.compare-table th.cs-col {
    color: #e06c1f; /* Keep original Elsevier orange branding */
}
.compare-table tbody th {
    background: var(--paper);
    font-weight: 600;
    width: 22%;
    color: var(--ink);
}

.metric-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 16px 18px;
    margin-bottom: 14px;
    background: var(--card-bg);
}
.metric-card h4 {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-family: var(--font-heading);
    color: var(--ink);
}
.metric-card .use-case {
    background: var(--teal-tint);
    border-radius: var(--radius);
    padding: 8px 12px;
    font-size: 0.95rem;
    margin-top: 8px;
    border-left: 3px solid var(--teal);
}
