/* ============================================================
   FABLEHESION — Mobile-First Base Stylesheet
   fablehesion.com
   
   This IS the mobile layout. No media queries.
   Everything here renders correctly at 375px.
   
   Palette: Ink #0A0A0A · Blue-Black #0F1620 · Blue #7CA2C4 · Eggshell #F7F8FA
   Fonts:   Kento (brand) · Trajan Pro (authority) · Source Sans 3 (clarity) · EB Garamond (nuance)
   ============================================================ */

/* ---- FONTS ---- */
@import url('font-kento.css');
@import url('font-trajan.css');
@import url('font-playfair.css');
@import url('font-ebgaramond.css');
@import url('font-sourcesans.css');

/* ---- RESET ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
body { font-family: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif; font-size: 16px; line-height: 1.7; color: #1A1A1A; background: #F7F8FA; overflow-x: hidden; min-height: 100dvh; padding-bottom: 68px; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }

/* ---- TOKENS ---- */
:root {
    --black-pure: #000000;
    --ink: #0A0A0A;
    --black-blue: #0F1620;
    --black-rich: #141414;
    --black-subtle: #1E1E1E;
    --text: #1A1A1A;
    --text-mid: #3A3A3A;
    --text-light: #6A6A6A;
    --blue: #7CA2C4;
    --blue-light: #9BBAD6;
    --blue-dark: #3D6B87;
    --bg: #F7F8FA;
    --surface: #FFFFFF;
    --border: #E2E4E8;
    --border-dark: #CDD0D5;
    --shadow: rgba(15, 22, 32, 0.06);
    --shadow-md: rgba(15, 22, 32, 0.1);
    --font-authority: 'Trajan Pro', 'Playfair Display', Georgia, serif;
    --font-clarity: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-nuance: 'EB Garamond', Georgia, serif;
    --max-width: 1200px;
    --content-width: 720px;
    --header-height: 60px;
    --timeline-width: 2px;
    --edge-pad: 20px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---- LAYOUT ---- */
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 var(--edge-pad); }
.container--narrow { max-width: var(--content-width); margin: 0 auto; padding: 0 var(--edge-pad); }

/* ---- READING PROGRESS BAR ---- */
.reading-progress { position: fixed; top: 0; left: 0; height: 2px; background: var(--blue); z-index: 1001; width: 0; transition: width 0.1s linear; }

/* ============================================================
   HEADER
   ============================================================ */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 1000; background: var(--bg); border-bottom: 1px solid var(--border); transition: transform var(--transition), box-shadow var(--transition); }
.site-header.is-hidden { transform: translateY(-100%); }
.site-header.is-scrolled { box-shadow: 0 1px 8px var(--shadow); }

.header-inner { display: flex; align-items: center; justify-content: space-between; height: var(--header-height); max-width: var(--max-width); margin: 0 auto; padding: 0 var(--edge-pad); }

.site-brand { display: flex; align-items: center; gap: 10px; }
.site-brand__mark { width: 18px; height: 24px; flex-shrink: 0; }
.site-brand__mark svg { width: 100%; height: 100%; }
.site-brand__text { display: flex; flex-direction: column; line-height: 1; }
.site-brand__name { font-family: 'Kento', var(--font-authority); font-size: 18px; font-weight: 400; color: var(--ink); letter-spacing: 0.04em; text-transform: uppercase; }
.site-brand__tagline { display: none; }

/* Mobile menu toggle — visible by default (this is mobile-first) */
.nav-toggle {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: none;
    border: none;
    width: 44px;
    height: 44px;
}
.nav-toggle__line { display: block; width: 22px; height: 1.5px; background: var(--ink); margin: 0 auto; transition: transform var(--transition), opacity var(--transition); }
.nav-toggle__line + .nav-toggle__line { margin-top: 6px; }
.nav-toggle.is-open .nav-toggle__line:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.nav-toggle.is-open .nav-toggle__line:nth-child(2) { opacity: 0; }
.nav-toggle.is-open .nav-toggle__line:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* Mobile nav — full-screen overlay */
.main-nav {
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--bg);
    border-top: 1px solid var(--border);
    display: flex;
    flex-direction: column;
    padding: 24px 20px 40px;
    gap: 2px;
    transform: translateY(-110%);
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.25s ease;
    pointer-events: none;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 999;
}
.main-nav.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
}
.main-nav__link {
    width: 100%;
    text-align: left;
    padding: 14px 16px;
    font-size: 15px;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: var(--text-mid);
    border-radius: 4px;
    transition: background 0.2s ease, color var(--transition);
}
.main-nav__link:hover, .main-nav__link.is-active { color: var(--ink); background: rgba(12, 12, 12, 0.04); }
.main-nav__link:active { background: rgba(124, 162, 196, 0.08); }
.main-nav__link--rss { justify-content: flex-start; display: inline-flex; align-items: center; padding: 14px 16px; }
.main-nav__link--rss svg { display: block; }
.main-nav__link--cta,
.main-nav__get-blog {
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 14px; font-weight: 600; letter-spacing: 0.04em;
    width: 100%; padding: 14px 16px; border-radius: 4px; line-height: 1;
    border: 1.5px solid transparent;
    text-align: center;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.main-nav__link--cta { background: var(--ink); color: var(--blue); border-color: var(--ink); margin-top: 12px; }
.main-nav__link--cta:hover { background: #1a1a1a; color: var(--blue-light); }
.main-nav__get-blog { background: transparent; color: var(--blue-dark); border-color: var(--blue); margin-left: 0; margin-top: 4px; }
.main-nav__get-blog:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============================================================
   HERO / MASTHEAD
   ============================================================ */
.masthead { padding: 88px var(--edge-pad) 40px; text-align: center; border-bottom: 1px solid var(--border); }
.masthead__eyebrow { font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 14px; }
.masthead__title { font-family: var(--font-authority); font-size: clamp(22px, 7vw, 26px); font-weight: 700; color: var(--ink); line-height: 1.2; margin-bottom: 12px; text-transform: uppercase; }
.masthead__subtitle { font-size: 15px; color: var(--text-mid); max-width: 600px; margin: 0 auto; line-height: 1.55; }

/* ============================================================
   TIMELINE
   ============================================================ */
.timeline { position: relative; padding: 40px 0 60px; }

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 14px;
    width: var(--timeline-width);
    height: 100%;
    background: linear-gradient(to bottom, transparent, var(--border-dark) 60px, var(--border-dark) calc(100% - 60px), transparent);
}

.timeline__origin {
    position: relative;
    z-index: 2;
    text-align: left;
    padding-left: 40px;
    margin-bottom: 32px;
}
.timeline__origin-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: var(--black-blue);
    border-radius: 50%;
    margin-bottom: 12px;
}
.timeline__origin-mark svg { width: 22px; height: 30px; fill: #FFFFFF; }
.timeline__origin-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--text-light);
}

.timeline__year-marker {
    position: relative;
    z-index: 2;
    text-align: left;
    padding-left: 28px;
    margin: 36px 0 24px;
}
.timeline__year-marker span {
    display: inline-block;
    background: var(--bg);
    padding: 6px 14px;
    font-family: var(--font-authority);
    font-size: 15px;
    color: var(--blue-dark);
    text-transform: uppercase;
    border: 1px solid var(--border);
    border-radius: 2px;
}

/* Timeline items — single column on mobile */
.timeline__item {
    position: relative;
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    padding-left: 36px;
    margin-bottom: 28px;
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.4, 0, 0.2, 1), transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline__item.is-visible { opacity: 1; transform: translateY(0); }

/* All items left-aligned on mobile */
.timeline__item:nth-child(odd) .timeline__card,
.timeline__item:nth-child(even) .timeline__card { grid-column: 1; text-align: left; }
.timeline__item:nth-child(odd) .timeline__card-meta,
.timeline__item:nth-child(even) .timeline__card-meta { justify-content: flex-start; }
.timeline__item:nth-child(odd) .timeline__card-footer,
.timeline__item:nth-child(even) .timeline__card-footer { flex-direction: row; }
.timeline__item:nth-child(odd),
.timeline__item:nth-child(even) { transform: translateX(0) translateY(30px); }
.timeline__item:nth-child(odd).is-visible,
.timeline__item:nth-child(even).is-visible { transform: translateX(0) translateY(0); }
.timeline__spacer { display: none; }

/* Horizontal connector */
.timeline__item::before {
    content: '';
    position: absolute;
    top: 21px;
    left: -6px;
    width: 42px;
    height: 1px;
    background: var(--border-dark);
    z-index: 1;
}

/* The article card */
.timeline__card {
    position: relative;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition);
}
.timeline__card-header {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px;
    border-bottom: 1px solid var(--border);
}
.timeline__card-header::after {
    content: '';
    display: block;
    width: 8px;
    height: 8px;
    background: var(--blue);
    border: 2px solid var(--bg);
    border-radius: 50%;
    box-shadow: 0 0 0 3px var(--border-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.timeline__card:hover .timeline__card-header::after {
    transform: scale(1.3);
    box-shadow: 0 0 0 4px var(--blue);
}
.timeline__card:hover {
    border-color: var(--border-dark);
    box-shadow: 0 4px 24px var(--shadow-md);
}

.timeline__card-image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
    position: relative;
}
.timeline__card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}
.timeline__card:hover .timeline__card-image img { transform: scale(1.03); }

.timeline__card-body { padding: 16px; }

.timeline__card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 11px;
    color: var(--text-light);
    font-weight: 500;
    letter-spacing: 0.02em;
}

.timeline__card-category {
    font-size: 9px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--blue-dark);
    background: rgba(124, 162, 196, 0.1);
    padding: 2px 6px;
    border-radius: 2px;
}

.timeline__card-date { font-size: 11px; color: var(--text-light); }

.timeline__card-title {
    font-family: var(--font-authority);
    font-size: 17px;
    font-weight: 400;
    color: var(--ink);
    text-transform: uppercase;
    line-height: 1.35;
    margin-bottom: 8px;
    transition: color var(--transition);
}
.timeline__card:hover .timeline__card-title { color: var(--blue-dark); }

.timeline__card-excerpt {
    font-size: 13px;
    color: var(--text-mid);
    line-height: 1.55;
    margin-bottom: 12px;
}

.timeline__card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-light);
}

.timeline__card-read-more {
    font-size: 11px;
    font-weight: 600;
    color: var(--blue-dark);
    letter-spacing: 0.04em;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: color var(--transition), gap var(--transition);
}
.timeline__card-read-more:hover { color: var(--ink); gap: 8px; }
.timeline__card-read-more svg { width: 14px; height: 14px; }

/* Featured post */
.timeline__item--featured .timeline__card { max-width: 100%; margin: 0 auto; text-align: left; }
.timeline__item--featured .timeline__card-title { font-size: 20px; }
.timeline__item--featured .timeline__spacer { display: none; }

/* ============================================================
   POST LIST
   ============================================================ */
.post-list { padding: 32px 0 60px; }
.post-list__header { margin-bottom: 28px; border-bottom: 1px solid var(--border); padding-bottom: 20px; }
.post-list__title { font-family: var(--font-authority); font-size: 26px; font-weight: 400; color: var(--ink); margin-bottom: 8px; text-transform: uppercase; }
.post-list__description { font-size: 15px; color: var(--text-mid); line-height: 1.6; max-width: 600px; }
.post-list__count { font-size: 13px; color: var(--text-light); margin-top: 8px; }

.post-list__grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
}

/* Post card */
.post-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 3px;
    overflow: hidden;
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
    opacity: 0;
    transform: translateY(20px);
}
.post-card.is-visible { opacity: 1; transform: translateY(0); }
.post-card:hover { border-color: var(--border-dark); box-shadow: 0 4px 24px var(--shadow-md); transform: translateY(-2px); }

.post-card__image { aspect-ratio: 16 / 9; overflow: hidden; }
.post-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.6s ease; }
.post-card:hover .post-card__image img { transform: scale(1.03); }

.post-card__body { padding: 16px; }
.post-card__meta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; color: var(--text-light); }
.post-card__category { font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue-dark); }
.post-card__title { font-family: var(--font-authority); font-size: 17px; font-weight: 400; color: var(--ink); line-height: 1.3; margin-bottom: 8px; transition: color var(--transition); text-transform: uppercase; }
.post-card:hover .post-card__title { color: var(--blue-dark); }
.post-card__excerpt { font-size: 13px; color: var(--text-mid); line-height: 1.6; margin-bottom: 12px; }
.post-card__footer { display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--text-light); }

/* ============================================================
   SINGLE POST
   ============================================================ */
.post-single { padding: 32px 0 60px; }

.post-single__header { text-align: center; max-width: var(--content-width); margin: 0 auto 28px; padding: 0 var(--edge-pad); }
.post-single__category { display: inline-block; font-size: 10px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 12px; }
.post-single__title { font-family: var(--font-authority); font-size: clamp(21px, 6vw, 24px); font-weight: 700; color: var(--ink); line-height: 1.25; margin-bottom: 10px; text-wrap: balance; text-transform: uppercase; }
.post-single__subtitle { font-family: var(--font-nuance); font-style: italic; font-size: 16px; font-weight: 500; color: var(--text-mid); line-height: 1.5; margin-bottom: 16px; }

.post-single__meta { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 12px; color: var(--text-light); flex-wrap: wrap; }
.post-single__meta-divider { width: 3px; height: 3px; border-radius: 50%; background: var(--border-dark); }

.post-single__hero { margin: 0 0 28px; border-radius: 0; overflow: hidden; border: 1px solid var(--border); border-left: none; border-right: none; }
.post-single__hero img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }

/* Article body — the card */
.post-single__body {
    max-width: var(--content-width);
    margin: 0 var(--edge-pad);
    padding: 28px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 15px;
    font-weight: 450;
    line-height: 1.75;
    color: var(--text);
    overflow-x: auto;
}
.post-single__body h2 { font-family: var(--font-authority); font-size: 21px; font-weight: 400; color: var(--ink); margin: 32px 0 12px; line-height: 1.3; text-transform: uppercase; }
.post-single__body h3 { font-family: var(--font-nuance); font-style: italic; font-size: 18px; font-weight: 500; color: var(--ink); margin: 24px 0 10px; line-height: 1.35; }
.post-single__body h4 { font-size: 15px; font-weight: 600; letter-spacing: 0.04em; color: var(--ink); margin: 20px 0 10px; }
.post-single__body p { margin-bottom: 16px; }
.post-single__body a { color: var(--blue-dark); border-bottom: 1px solid rgba(124, 162, 196, 0.3); transition: border-color var(--transition); }
.post-single__body a:hover { border-color: var(--blue-dark); }
.post-single__body blockquote { margin: 20px 0; padding: 14px 16px 14px 18px; border-left: 3px solid var(--blue); background: rgba(124, 162, 196, 0.06); border-radius: 0 3px 3px 0; font-family: var(--font-nuance); font-style: italic; font-size: 16px; line-height: 1.6; color: var(--text-mid); }
.post-single__body blockquote p:last-child { margin-bottom: 0; }
.post-single__body em { font-family: var(--font-nuance); font-style: italic; font-size: 1.12em; }
.post-single__body ul, .post-single__body ol { margin: 0 0 20px 18px; }
.post-single__body ul { list-style: disc; }
.post-single__body ol { list-style: decimal; }
.post-single__body li { margin-bottom: 6px; }
.post-single__body img { border-radius: 0; margin: 20px -20px; width: calc(100% + 40px); max-width: none; border: none; }
.post-single__body pre { background: var(--black-blue); color: #D0D4DA; padding: 16px 20px; border-radius: 0; overflow-x: auto; font-size: 12px; margin: 20px -20px; line-height: 1.6; width: calc(100% + 40px); max-width: none; }
.post-single__body code { font-family: 'SF Mono', Monaco, 'Cascadia Code', monospace; font-size: 0.9em; }
.post-single__body p code { background: rgba(12, 12, 12, 0.06); padding: 2px 6px; border-radius: 3px; }
/* Table scroll wrapper — pinned first column + shadow hint */
.post-single__body .table-scroll {
    position: relative;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 20px -20px;
    width: calc(100% + 40px);
}
/* Right-edge shadow to signal scrollable content */
.post-single__body .table-scroll::after {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 32px;
    background: linear-gradient(to right, transparent, rgba(255, 255, 255, 0.85));
    pointer-events: none;
    transition: opacity 0.3s ease;
}
.post-single__body .table-scroll.is-scrolled-end::after { opacity: 0; }

.post-single__body table { display: table; width: 100%; border-collapse: separate; border-spacing: 0; margin: 20px 0; font-size: 13px; line-height: 1.5; min-width: 600px; }
.post-single__body .table-scroll table { margin: 0; }

/* Pinned first column */
.post-single__body table th:first-child,
.post-single__body table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: var(--surface);
    min-width: 100px;
    max-width: 130px;
}
/* Shadow on pinned column edge */
.post-single__body table th:first-child::after,
.post-single__body table td:first-child::after {
    content: '';
    position: absolute;
    top: 0;
    right: -6px;
    bottom: 0;
    width: 6px;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.06), transparent);
    pointer-events: none;
}

.post-single__body table th { display: table-cell; font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--ink); white-space: nowrap; }
.post-single__body table tr:first-child td { font-size: 11px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-light); text-align: left; padding: 10px 14px; border-bottom: 2px solid var(--ink); }
.post-single__body table td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--text); vertical-align: top; }
.post-single__body table tr:nth-child(even) td { background: rgba(12, 12, 12, 0.025); }
.post-single__body table tr:nth-child(even) td:first-child { background: var(--surface); }
.post-single__body table tr:not(:first-child) td:nth-child(2) { font-weight: 600; color: var(--ink); }
.post-single__body hr { border: none; border-top: 1px solid var(--border); margin: 40px 0; }
.post-single__body figure { margin: 24px -20px; width: calc(100% + 40px); max-width: none; }
.post-single__body figcaption { font-size: 12px; color: var(--text-light); text-align: center; margin-top: 8px; padding: 0 20px; }

/* Tags */
.post-single__tags { max-width: var(--content-width); margin: 28px 0 0; padding: 20px var(--edge-pad) 0; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 8px; }
.post-single__tag { font-size: 11px; font-weight: 500; color: var(--text-mid); background: rgba(12, 12, 12, 0.04); padding: 5px 10px; border-radius: 2px; border: 1px solid var(--border); transition: border-color var(--transition), color var(--transition); }
.post-single__tag:hover { border-color: var(--blue); color: var(--blue-dark); }

/* Author card */
.post-single__author { max-width: var(--content-width); margin: 36px var(--edge-pad) 0; padding: 24px 20px; background: var(--surface); border: 1px solid var(--border); border-radius: 3px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 20px; }
.post-single__author-photo { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 2px solid var(--border); }
.post-single__author-name { font-family: var(--font-authority); font-size: 18px; color: var(--ink); margin-bottom: 4px; text-transform: uppercase; }
.post-single__author-title { font-size: 12px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; color: var(--blue-dark); margin-bottom: 8px; }
.post-single__author-bio { font-size: 14px; color: var(--text-mid); line-height: 1.6; }

/* Post navigation */
.post-nav { max-width: var(--content-width); margin: 36px 0 0; padding: 0 var(--edge-pad); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-nav__link { padding: 16px; border: 1px solid var(--border); border-radius: 3px; transition: border-color var(--transition), box-shadow var(--transition); }
.post-nav__link:hover { border-color: var(--border-dark); box-shadow: 0 2px 12px var(--shadow); }
.post-nav__link--next { text-align: right; }
.post-nav__label { font-size: 11px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-light); margin-bottom: 6px; }
.post-nav__title { font-family: var(--font-authority); font-size: 14px; color: var(--ink); line-height: 1.3; text-transform: uppercase; }

/* Series navigation */
.series-nav { max-width: var(--content-width); margin: 40px auto 0; padding: 24px; background: rgba(124, 162, 196, 0.06); border: 1px solid var(--border); border-radius: 3px; }
.series-nav__title { font-family: var(--font-authority); font-size: 18px; color: var(--ink); margin-bottom: 12px; text-transform: uppercase; }
.series-nav__list { list-style: none; }
.series-nav__list li { padding: 6px 0; font-size: 14px; border-bottom: 1px solid var(--border); }
.series-nav__list li:last-child { border-bottom: none; }
.series-nav__list li a { color: var(--text-mid); transition: color var(--transition); }
.series-nav__list li a:hover { color: var(--blue-dark); }
.series-nav__list li.is-current a { color: var(--ink); font-weight: 600; }

/* Related posts */
.related-posts { padding: 60px 0; border-top: 1px solid var(--border); }
.related-posts__title { font-family: var(--font-authority); font-size: 24px; color: var(--ink); margin-bottom: 28px; text-align: center; text-transform: uppercase; }
.related-posts__grid { display: grid; grid-template-columns: 1fr; gap: 20px; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--edge-pad); }

/* ============================================================
   SHARE TRIGGER + TRAY
   ============================================================ */
.share-trigger { position: relative; max-width: var(--content-width); margin: 24px 0 0; padding-left: var(--edge-pad); display: flex; justify-content: flex-start; }
.share-trigger__btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 20px; border-radius: 100px;
    border: 1px solid var(--border-dark); background: var(--surface);
    font-family: var(--font-clarity); font-size: 13px; font-weight: 600;
    letter-spacing: 0.04em; color: var(--text-mid);
    transition: border-color var(--transition), color var(--transition), box-shadow var(--transition);
}
.share-trigger__btn:hover { border-color: var(--blue); color: var(--text); box-shadow: 0 2px 8px var(--shadow); }
.share-trigger__icon { width: 16px; height: 16px; flex-shrink: 0; }

.share-tray {
    position: absolute; bottom: calc(100% + 10px); left: 0;
    min-width: 180px; padding: 6px 0;
    background: var(--surface); border: 1px solid var(--border);
    border-radius: 12px; box-shadow: 0 8px 24px var(--shadow-md), 0 2px 6px var(--shadow);
    opacity: 0; visibility: hidden;
    transform: translateY(6px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
    z-index: 100;
}
.share-tray.is-open { opacity: 1; visibility: visible; transform: translateY(0); }
.share-tray__item {
    display: flex; align-items: center; gap: 10px; width: 100%;
    padding: 10px 16px; border: none; background: none;
    font-family: var(--font-clarity); font-size: 14px; font-weight: 500;
    color: var(--text); text-align: left; cursor: pointer;
    transition: background var(--transition), color var(--transition);
}
.share-tray__item:hover { background: rgba(124, 162, 196, 0.08); color: var(--blue-dark); }
.share-tray__item svg { width: 18px; height: 18px; flex-shrink: 0; fill: var(--text-mid); }
.share-tray__item svg[stroke] { fill: none; }
.share-tray__item:hover svg { fill: var(--blue-dark); }
.share-tray__item:hover svg[stroke] { fill: none; stroke: var(--blue-dark); }
.share-tray__item.is-copied span { color: var(--blue); }
.share-tray__divider { border: none; border-top: 1px solid var(--border); margin: 4px 12px; }

/* ============================================================
   ARTICLE CTA
   ============================================================ */
.article-cta {
    margin: 28px var(--edge-pad) 0; padding: 20px;
    border: 1px solid var(--border); border-radius: 8px; background: var(--surface);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
    box-shadow: 0 2px 8px var(--shadow);
    text-align: center;
}
.article-cta__text { font-size: 14px; color: var(--text-mid); line-height: 1.5; flex: 1; }
.article-cta__btn {
    flex-shrink: 0; width: 100%; padding: 12px 24px; border-radius: 100px;
    border: 1.5px solid var(--blue); background: transparent;
    font-family: var(--font-clarity); font-size: 13px; font-weight: 600; letter-spacing: 0.04em;
    color: var(--blue-dark); cursor: pointer;
    transition: background var(--transition), color var(--transition), border-color var(--transition);
}
.article-cta__btn:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

/* ============================================================
   SMS MODAL
   ============================================================ */
.sms-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.25s ease, visibility 0.25s;
}
.sms-modal.is-open { opacity: 1; visibility: visible; }
.sms-modal__backdrop { position: absolute; inset: 0; background: rgba(10, 10, 10, 0.6); backdrop-filter: blur(4px); }
.sms-modal__panel {
    position: relative; width: 90%; max-width: 380px;
    padding: 40px 32px 32px; background: var(--surface);
    border-radius: 16px; box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
    text-align: center;
    transform: translateY(12px); transition: transform 0.25s ease;
}
.sms-modal.is-open .sms-modal__panel { transform: translateY(0); }
.sms-modal__close {
    position: absolute; top: 14px; right: 18px;
    background: none; border: none; font-size: 28px; line-height: 1;
    color: var(--text-light); cursor: pointer; transition: color var(--transition);
}
.sms-modal__close:hover { color: var(--text); }
.sms-modal__title { font-family: var(--font-authority); font-size: 24px; color: var(--ink); margin-bottom: 8px; text-transform: uppercase; }
.sms-modal__text { font-size: 14px; color: var(--text-mid); margin-bottom: 28px; }
.sms-modal__action {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    width: 100%; padding: 14px; border-radius: 8px;
    font-family: var(--font-clarity); font-size: 15px; font-weight: 600;
    text-decoration: none; transition: background var(--transition), color var(--transition);
}
.sms-modal__action svg { width: 20px; height: 20px; flex-shrink: 0; }
.sms-modal__action--primary { background: var(--ink); color: #fff; margin-bottom: 10px; }
.sms-modal__action--primary:hover { background: #1a1a1a; }
.sms-modal__action--secondary { background: transparent; color: var(--text-mid); border: 1px solid var(--border); }
.sms-modal__action--secondary:hover { border-color: var(--blue); color: var(--blue-dark); }
.sms-modal__number { margin-top: 20px; font-size: 13px; color: var(--text-light); letter-spacing: 0.04em; }

/* ============================================================
   ENGAGE MODAL
   ============================================================ */
.engage-modal {
    position: fixed; inset: 0; z-index: 9999;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
}
.engage-modal.is-open { opacity: 1; visibility: visible; }
.engage-modal__backdrop {
    position: absolute; inset: 0;
    background: rgba(10, 10, 10, 0.7);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}
.engage-modal__panel {
    position: relative;
    width: 96%; max-width: 560px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px 24px 32px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 3px;
    box-shadow: 0 32px 64px rgba(0, 0, 0, 0.25), 0 8px 24px rgba(0, 0, 0, 0.12);
    transform: translateY(16px);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.engage-modal.is-open .engage-modal__panel { transform: translateY(0); }
.engage-modal__close {
    position: absolute; top: 16px; right: 20px;
    background: none; border: none;
    font-size: 24px; line-height: 1;
    color: var(--text-light); cursor: pointer;
    transition: color var(--transition);
    width: 32px; height: 32px;
    display: flex; align-items: center; justify-content: center;
}
.engage-modal__close:hover { color: var(--ink); }
.engage-modal__back {
    position: absolute; top: 16px; left: 20px;
    background: none; border: none;
    color: var(--text-light); cursor: pointer;
    transition: color var(--transition);
    width: 32px; height: 32px;
    display: none; align-items: center; justify-content: center;
}
.engage-modal__back svg { width: 18px; height: 18px; }
.engage-modal__back:hover { color: var(--ink); }
.engage-modal__back.is-visible { display: flex; }

/* Dot motif */
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(124, 162, 196, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(124, 162, 196, 0); }
}
.engage-gate__dot,
.engage-subscribe__dot,
.engage-contact__dot,
.engage-confirm__dot {
    width: 10px; height: 10px;
    background: var(--blue);
    border-radius: 50%;
    margin: 0 auto 24px;
    animation: dotPulse 2.4s ease-in-out infinite;
}
.engage-confirm__dot--success { background: #4CAF50; }
@keyframes dotPulseSuccess {
    0%, 100% { box-shadow: 0 0 0 0 rgba(76, 175, 80, 0.4); }
    50% { box-shadow: 0 0 0 6px rgba(76, 175, 80, 0); }
}
.engage-confirm__dot--success { animation-name: dotPulseSuccess; }

/* Gate State */
.engage-gate { text-align: center; }
.engage-gate__title { font-family: var(--font-authority); font-size: 22px; font-weight: 400; color: var(--ink); margin-bottom: 8px; text-transform: uppercase; }
.engage-gate__text { font-size: 15px; color: var(--text-mid); margin-bottom: 32px; }
.engage-gate__options { display: flex; flex-direction: column; gap: 12px; }
.engage-gate__option {
    position: relative;
    display: flex; flex-direction: column; align-items: flex-start;
    width: 100%; padding: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 3px;
    text-align: left;
    font-family: var(--font-clarity);
    transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.engage-gate__option:hover { border-color: var(--border-dark); box-shadow: 0 4px 16px var(--shadow-md); transform: translateY(-1px); }
.engage-gate__option-dot { position: absolute; top: 20px; right: 20px; width: 8px; height: 8px; background: var(--blue); border-radius: 50%; opacity: 0; transition: opacity var(--transition); }
.engage-gate__option:hover .engage-gate__option-dot { opacity: 1; }
.engage-gate__option-label { font-family: var(--font-authority); font-size: 18px; font-weight: 400; color: var(--ink); margin-bottom: 4px; text-transform: uppercase; }
.engage-gate__option-desc { font-size: 13px; color: var(--text-light); letter-spacing: 0.02em; }

/* Subscribe / Contact / Confirm panels */
.engage-subscribe,
.engage-contact,
.engage-confirm { display: none; }
.engage-subscribe.is-active,
.engage-contact.is-active,
.engage-confirm.is-active { display: block; }
.engage-gate.is-hidden { display: none; }

.engage-subscribe { text-align: center; }
.engage-subscribe__title { font-family: var(--font-authority); font-size: 28px; font-weight: 400; color: var(--ink); margin-bottom: 8px; text-transform: uppercase; }
.engage-subscribe__text { font-size: 14px; color: var(--text-mid); margin-bottom: 28px; line-height: 1.6; }
.engage-form-row { display: grid; grid-template-columns: 1fr; gap: 12px; margin-bottom: 12px; }
.engage-form-group { text-align: left; }
.engage-form-group label { display: block; font-size: 10px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-light); margin-bottom: 6px; }
.engage-form-group input,
.engage-form-group select { width: 100%; padding: 10px 14px; font-size: 14px; font-family: var(--font-clarity); border: 1px solid var(--border); background: var(--bg); border-radius: 2px; outline: none; transition: border-color var(--transition); color: var(--text); }
.engage-form-group input:focus,
.engage-form-group select:focus { border-color: var(--blue); }
.engage-form-group input::placeholder { color: var(--text-light); }
.engage-form-group select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%236A6A6A' stroke-width='1.5'%3E%3Cpolyline points='1 1 6 6 11 1'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}
.engage-submit { width: 100%; margin-top: 20px; padding: 14px 32px; font-size: 13px; font-weight: 600; letter-spacing: 0.06em; background: var(--ink); color: var(--blue); border: none; border-radius: 2px; transition: background var(--transition); font-family: var(--font-clarity); }
.engage-submit:hover { background: #1a1a1a; }

/* Chat */
.engage-chat { display: flex; flex-direction: column; height: 360px; max-height: 55vh; }
.engage-chat__messages { flex: 1; overflow-y: auto; padding: 8px 0 16px; display: flex; flex-direction: column; gap: 6px; scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.engage-chat__messages::-webkit-scrollbar { width: 4px; }
.engage-chat__messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 2px; }

.chat-bubble { max-width: 90%; padding: 12px 16px; border-radius: 14px 14px 14px 2px; font-family: var(--font-nuance); font-style: italic; font-size: 15px; line-height: 1.5; color: var(--ink); background: rgba(124, 162, 196, 0.08); border: 1px solid rgba(124, 162, 196, 0.12); align-self: flex-start; opacity: 0; transform: translateY(8px); animation: chatFadeIn 0.3s ease forwards; }
@keyframes chatFadeIn { to { opacity: 1; transform: translateY(0); } }

.chat-bubble--user { align-self: flex-end; background: var(--ink); color: var(--blue); border-color: transparent; border-radius: 14px 14px 2px 14px; font-family: var(--font-clarity); font-size: 14px; font-weight: 500; }

.chat-typing { display: flex; gap: 4px; padding: 14px 18px; align-self: flex-start; opacity: 0; animation: chatFadeIn 0.2s ease forwards; }
.chat-typing__dot { width: 7px; height: 7px; background: var(--blue); border-radius: 50%; animation: typingBounce 1.4s ease-in-out infinite; }
.chat-typing__dot:nth-child(2) { animation-delay: 0.2s; }
.chat-typing__dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typingBounce { 0%, 60%, 100% { transform: translateY(0); opacity: 0.4; } 30% { transform: translateY(-6px); opacity: 1; } }

.engage-chat__input-area { border-top: 1px solid var(--border); padding: 16px 0 0; min-height: 56px; }
.engage-chat__form { display: contents; }
.chat-field { width: 100%; padding: 12px 16px; font-family: var(--font-clarity); font-size: 15px; color: var(--text); border: 1px solid var(--border); background: var(--bg); border-radius: 3px; outline: none; transition: border-color var(--transition); opacity: 0; animation: chatFadeIn 0.25s ease 0.1s forwards; }
.chat-field:focus { border-color: var(--blue); }
.chat-field::placeholder { color: var(--text-light); }
textarea.chat-field { min-height: 72px; resize: vertical; line-height: 1.6; }

.chat-choices { display: flex; flex-wrap: wrap; gap: 6px; opacity: 0; animation: chatFadeIn 0.25s ease 0.1s forwards; }
.chat-choice { padding: 8px 14px; font-family: var(--font-clarity); font-size: 12px; font-weight: 500; color: var(--blue-dark); background: var(--surface); border: 1px solid var(--border); border-radius: 100px; cursor: pointer; transition: border-color var(--transition), background var(--transition), color var(--transition); }
.chat-choice:hover { border-color: var(--blue); background: rgba(124, 162, 196, 0.06); }

.chat-send-row { display: flex; gap: 8px; margin-top: 10px; opacity: 0; animation: chatFadeIn 0.25s ease 0.15s forwards; }
.chat-send-row .chat-field { flex: 1; }
.chat-send { padding: 12px 24px; font-family: var(--font-clarity); font-size: 13px; font-weight: 600; letter-spacing: 0.04em; background: var(--ink); color: var(--blue); border: none; border-radius: 3px; cursor: pointer; flex-shrink: 0; transition: background var(--transition); }
.chat-send:hover { background: #1a1a1a; }
.chat-send:disabled { opacity: 0.5; cursor: not-allowed; }

.engage-chat__progress { text-align: center; padding: 8px 0 0; font-size: 11px; font-weight: 500; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); }

/* Confirm State */
.engage-confirm { text-align: center; padding: 20px 0; }
.engage-confirm__title { font-family: var(--font-authority); font-size: 28px; font-weight: 400; color: var(--ink); margin-bottom: 8px; text-transform: uppercase; }
.engage-confirm__text { font-size: 15px; color: var(--text-mid); line-height: 1.6; }

/* ============================================================
   SUBSCRIBE SECTION
   ============================================================ */
.subscribe-section { padding: 44px var(--edge-pad); background: var(--black-blue); color: #fff; text-align: center; }
.subscribe-section__title { font-family: var(--font-authority); font-size: 22px; font-weight: 400; margin-bottom: 12px; color: #fff; text-transform: uppercase; }
.subscribe-section__text { font-size: 14px; color: rgba(255, 255, 255, 0.6); margin-bottom: 20px; max-width: 480px; margin-left: auto; margin-right: auto; }
.subscribe-form { display: flex; flex-direction: column; gap: 10px; max-width: 440px; margin: 0 auto; }
.subscribe-form__input { padding: 14px 16px; font-size: 16px; font-family: var(--font-clarity); border: 1px solid rgba(255, 255, 255, 0.15); background: rgba(255, 255, 255, 0.06); color: #fff; border-radius: 2px; outline: none; transition: border-color var(--transition); }
.subscribe-form__input::placeholder { color: rgba(255, 255, 255, 0.35); }
.subscribe-form__input:focus { border-color: var(--blue); }
.subscribe-form__btn { padding: 14px 24px; font-size: 14px; font-weight: 600; letter-spacing: 0.06em; background: var(--blue); color: var(--ink); border: none; border-radius: 2px; transition: background var(--transition); white-space: nowrap; }
.subscribe-form__btn:hover { background: var(--blue-light); }

/* Form utilities */
.contact-form { max-width: 560px; margin: 0 auto; }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-mid); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select { width: 100%; padding: 12px 16px; font-size: 15px; font-family: var(--font-clarity); border: 1px solid var(--border); background: var(--surface); border-radius: 2px; outline: none; transition: border-color var(--transition); }
.form-group input:focus, .form-group textarea:focus, .form-group select:focus { border-color: var(--blue); }
.form-group textarea { min-height: 140px; resize: vertical; }
.form-submit { padding: 14px 32px; font-size: 14px; font-weight: 600; letter-spacing: 0.05em; background: var(--ink); color: var(--blue); border: none; border-radius: 2px; transition: background var(--transition); width: 100%; }
.form-submit:hover { background: #1a1a1a; }

/* ============================================================
   SUBSCRIBE PAGE
   ============================================================ */
.subscribe-page { padding: 48px 0 80px; }
.subscribe-page__intro { max-width: var(--content-width); margin: 0 auto 40px; text-align: center; }
.subscribe-page__intro h1 { font-family: var(--font-authority); font-size: 28px; font-weight: 700; color: var(--ink); margin-bottom: 16px; text-transform: uppercase; }
.subscribe-page__intro p { font-size: 16px; color: var(--text-mid); line-height: 1.6; }

/* ============================================================
   SEARCH
   ============================================================ */
.search-page { padding: 48px var(--edge-pad) 80px; }
.search-form { display: flex; flex-direction: column; gap: 10px; max-width: 560px; margin: 0 auto 40px; }
.search-form__input { padding: 14px 16px; font-size: 16px; font-family: var(--font-clarity); border: 1px solid var(--border); background: var(--surface); border-radius: 2px; outline: none; }
.search-form__input:focus { border-color: var(--blue); }
.search-form__btn { padding: 14px 24px; font-size: 14px; font-weight: 600; background: var(--ink); color: var(--blue); border: none; border-radius: 2px; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer { background: var(--black-blue); color: rgba(255, 255, 255, 0.5); padding: 44px 0 24px; }
.footer-grid { display: grid; grid-template-columns: 1fr; gap: 28px; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--edge-pad); }
.footer-brand__name { font-family: 'Kento', var(--font-authority); font-size: 22px; color: #fff; margin-bottom: 4px; letter-spacing: 0.06em; text-transform: uppercase; }
.footer-brand__tagline { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--blue); margin-bottom: 16px; }
.footer-brand__text { font-size: 14px; line-height: 1.6; max-width: 100%; }

.footer-col__title { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: rgba(255, 255, 255, 0.7); margin-bottom: 16px; }
.footer-col__list li { margin-bottom: 10px; }
.footer-col__list a { font-size: 15px; color: rgba(255, 255, 255, 0.5); transition: color var(--transition); }
.footer-col__list a:hover { color: var(--blue); }

.footer-bottom { max-width: var(--max-width); margin: 28px auto 0; padding: 16px var(--edge-pad) 0; border-top: 1px solid rgba(255, 255, 255, 0.08); display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; }
.footer-bottom a { color: rgba(255, 255, 255, 0.5); }
.footer-bottom a:hover { color: var(--blue); }

/* ============================================================
   PAGINATION
   ============================================================ */
.pagination { display: flex; align-items: center; justify-content: center; gap: 2px; padding: 32px 0; }
.pagination__link { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 8px; font-size: 13px; font-weight: 500; color: var(--text-mid); border: 1px solid var(--border); border-radius: 2px; transition: all var(--transition); }
.pagination__link:hover { border-color: var(--blue); color: var(--ink); }
.pagination__link.is-active { background: var(--ink); color: var(--blue); border-color: var(--ink); }
.pagination__link.is-disabled { opacity: 0.4; pointer-events: none; }

/* ============================================================
   404
   ============================================================ */
.page-404 { padding: 80px var(--edge-pad); text-align: center; }
.page-404__code { font-family: var(--font-authority); font-size: 56px; color: var(--border-dark); margin-bottom: 16px; }
.page-404__title { font-family: var(--font-authority); font-size: 22px; color: var(--ink); margin-bottom: 12px; }
.page-404__text { font-size: 16px; color: var(--text-mid); margin-bottom: 28px; }
.page-404__link { display: inline-block; padding: 12px 28px; background: var(--ink); color: var(--blue); font-size: 14px; font-weight: 600; letter-spacing: 0.04em; border-radius: 2px; }

/* ============================================================
   FLASH MESSAGES
   ============================================================ */
.flash { max-width: var(--content-width); margin: 20px auto; padding: 14px 20px; border-radius: 3px; font-size: 14px; border: 1px solid; }
.flash--success { background: rgba(34, 139, 34, 0.06); border-color: rgba(34, 139, 34, 0.2); color: #2E7D32; }
.flash--error { background: rgba(211, 47, 47, 0.06); border-color: rgba(211, 47, 47, 0.2); color: #C62828; }
.flash--info { background: rgba(124, 162, 196, 0.08); border-color: rgba(124, 162, 196, 0.3); color: var(--blue-dark); }

/* ============================================================
   COOKIE CONSENT
   ============================================================ */
.consent-banner { position: fixed; bottom: 0; left: 0; right: 0; background: var(--black-blue); color: rgba(255, 255, 255, 0.7); padding: 20px 24px; z-index: 999; display: none; flex-direction: column; align-items: center; justify-content: center; gap: 12px; font-size: 13px; text-align: center; }
.consent-banner.is-visible { display: flex; }
.consent-banner__btn { width: 100%; padding: 12px; font-size: 14px; font-weight: 600; background: var(--blue); color: var(--ink); border: none; border-radius: 2px; cursor: pointer; white-space: nowrap; }

/* ============================================================
   TABLE OF CONTENTS
   ============================================================ */
.toc {
    max-width: var(--content-width);
    margin: 0 4px 16px;
    padding: 18px 20px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 4px;
}
.toc__title { font-family: var(--font-clarity); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-light); display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; cursor: pointer; user-select: none; }
.toc__toggle { background: none; border: none; cursor: pointer; font-family: var(--font-clarity); font-size: 0.7rem; font-weight: 600; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.06em; }
.toc__toggle:hover { color: var(--ink); }
.toc__list { list-style: none; padding: 0; margin: 0; }
.toc__list li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.toc__list li:last-child { border-bottom: none; }
.toc__list a { font-size: 0.84rem; color: var(--text-mid); transition: color var(--transition); }
.toc__list a:hover { color: var(--ink); }
.toc__list .toc__h3 { padding-left: 16px; }
.toc__time { font-family: var(--font-clarity); font-size: 0.7rem; font-weight: 600; color: var(--text-light); white-space: nowrap; flex-shrink: 0; }
.toc.is-collapsed .toc__list { display: none; }

/* ============================================================
   READ COUNT
   ============================================================ */
.post-single__read-count { font-family: var(--font-clarity); font-size: 0.78rem; font-weight: 500; letter-spacing: 0.04em; color: var(--text-light); margin-top: 20px; }

/* Print button */
.print-btn { display: inline-flex; align-items: center; justify-content: center; margin-top: 16px; padding: 0; background: none; border: none; color: var(--ink); cursor: pointer; opacity: 0.7; transition: opacity var(--transition); }
.print-btn:hover { opacity: 1; }
.print-btn svg { display: block; }

/* ============================================================
   CITE THIS ARTICLE
   ============================================================ */
.cite-block { margin-top: 32px; margin-bottom: 32px; padding: 0 var(--edge-pad); }
.cite-block summary { font-family: var(--font-clarity); font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); cursor: pointer; user-select: none; padding: 12px 0; border-top: 1px solid var(--border); }
.cite-block summary:hover { color: var(--ink); }
.cite-block__content { background: var(--surface); border: 1px solid var(--border); border-radius: 6px; padding: 14px 16px; margin-top: 8px; }
.cite-block__format { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); margin-bottom: 8px; }
.cite-block__text { font-size: 0.8rem; line-height: 1.6; color: var(--text); word-break: break-word; }
.cite-block__copy { display: inline-block; margin-top: 12px; background: var(--ink); color: #fff; border: none; padding: 6px 16px; font-size: 0.75rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; border-radius: 4px; cursor: pointer; transition: background var(--transition); }
.cite-block__copy:hover { background: var(--blue-dark); }

/* ============================================================
   POPULAR POSTS
   ============================================================ */
.popular-posts { margin: 48px auto; padding-top: 32px; border-top: 1px solid var(--border); }
.popular-posts__title { font-family: var(--font-authority); font-size: 1.25rem; margin-bottom: 20px; color: var(--ink); }
.popular-posts__list { counter-reset: popular; padding: 0; list-style: none; }
.popular-posts__list li { counter-increment: popular; display: flex; align-items: baseline; gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.popular-posts__list li:last-child { border-bottom: none; }
.popular-posts__list li::before { content: counter(popular) "."; font-family: var(--font-clarity); font-size: 0.85rem; font-weight: 700; color: var(--text-light); flex-shrink: 0; min-width: 20px; }
.popular-posts__list a { font-size: 0.92rem; color: var(--text); transition: color var(--transition); }
.popular-posts__list a:hover { color: var(--blue-dark); }
.popular-posts__meta { font-size: 0.75rem; color: var(--text-light); white-space: nowrap; margin-left: auto; flex-shrink: 0; }

/* ============================================================
   HEADING ANCHOR LINKS
   ============================================================ */
.heading-anchor { position: absolute; left: -28px; top: 50%; transform: translateY(-50%); opacity: 0; transition: opacity var(--transition); color: var(--text-light); line-height: 1; }
*:hover > .heading-anchor, .heading-anchor:focus { opacity: 1; }

/* ============================================================
   BOOKMARK BUTTONS
   ============================================================ */
.bookmark-btn { background: none; border: none; color: var(--text-light); padding: 4px; cursor: pointer; transition: color var(--transition); display: inline-flex; align-items: center; gap: 4px; }
.bookmark-btn:hover, .bookmark-btn.is-bookmarked { color: var(--blue); }
.bookmark-btn--single { font-size: 0.78rem; font-weight: 500; }
.bookmark-btn--single span { font-family: var(--font-clarity); font-size: 0.75rem; }

/* ============================================================
   READ BADGES & KEYBOARD FOCUS
   ============================================================ */
.read-badge { display: flex; align-items: center; gap: 8px; padding: 4px 12px; background: rgba(124, 162, 196, 0.08); border-radius: 4px 4px 0 0; font-size: 0.72rem; }
.read-badge__label { color: var(--blue-dark); font-weight: 600; }
.read-badge__unread { background: none; border: none; color: var(--text-light); font-size: 0.7rem; cursor: pointer; text-decoration: underline; }
.read-badge__unread:hover { color: var(--ink); }
.post-card.is-read { opacity: 0.7; }
.post-card.kb-focus { outline: 2px solid var(--blue); outline-offset: 4px; border-radius: 6px; }

/* ============================================================
   SERIES NAV — READ PROGRESS
   ============================================================ */
.series-nav li.is-read::before { content: '✓'; color: var(--blue); font-weight: 700; margin-right: 6px; }

/* ============================================================
   FOOTNOTES
   ============================================================ */
.post-single__body sup { font-size: 0.7em; line-height: 0; }
.post-single__body sup a { color: var(--blue-dark); font-weight: 600; border-bottom: none; padding: 0 1px; }
.post-single__body sup a:hover { color: var(--blue); }
.post-single__body .footnotes { font-size: 0.85rem; line-height: 1.7; color: var(--text-mid); margin-top: 0; }
.post-single__body .footnotes li { margin-bottom: 12px; padding-left: 4px; }
.post-single__body .footnotes li > a:first-child { color: var(--blue-dark); font-weight: 600; border-bottom: none; margin-right: 4px; font-size: 0.85em; }

/* ============================================================
   MOBILE BOTTOM BAR
   ============================================================ */
.mobile-bar {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: var(--surface);
    border-top: 1px solid var(--border);
    padding: 8px 0;
    padding-bottom: max(8px, env(safe-area-inset-bottom));
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 12px var(--shadow);
}
.mobile-bar__btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    background: none;
    border: none;
    color: var(--text-light);
    font-family: var(--font-clarity);
    font-size: 0.62rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    cursor: pointer;
    padding: 6px 14px;
    transition: color var(--transition);
    text-decoration: none;
    -webkit-tap-highlight-color: transparent;
}
.mobile-bar__btn:hover,
.mobile-bar__btn:active { color: var(--blue-dark); }
.mobile-bar__btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.mobile-bar__btn.is-active { color: var(--blue); }

/* ============================================================
   PRINT STYLES
   ============================================================ */
@media print {
    .site-header,
    .reading-progress,
    .nav-toggle,
    .main-nav,
    .mobile-bar,
    .print-btn,
    .post-single__tags,
    .share-trigger,
    .article-cta,
    .sms-modal,
    .engage-modal,
    .toc,
    .flash,
    .footer,
    .site-footer,
    .subscribe-section,
    .consent-banner,
    .post-single__meta-divider,
    .cite-block__copy-btn { display: none !important; }

    *,
    *::before,
    *::after {
        background: #fff !important;
        color: #000 !important;
        box-shadow: none !important;
        text-shadow: none !important;
    }
    body {
        padding: 0 !important;
        margin: 0;
        font-size: 11pt;
        line-height: 1.6;
        color: #000;
        background: #fff;
    }
    main { padding-top: 0 !important; }

    .post-single__header { margin-bottom: 24pt; text-align: center; }
    .post-single__category { font-size: 9pt; color: #333 !important; border: none; padding: 0; }
    .post-single__title { font-size: 22pt; line-height: 1.2; color: #000 !important; margin-bottom: 8pt; }
    .post-single__subtitle { font-size: 12pt; color: #333 !important; margin-bottom: 12pt; }
    .post-single__meta { font-size: 9pt; color: #555 !important; justify-content: center; }
    .post-single__meta a { color: #555 !important; text-decoration: none; }
    .post-single__read-count { font-size: 9pt; color: #555 !important; }

    .post-single__body { max-width: 100%; padding: 0; }
    .post-single__body h2 { font-size: 16pt; margin-top: 24pt; page-break-after: avoid; break-after: avoid; }
    .post-single__body h3 { font-size: 13pt; margin-top: 18pt; page-break-after: avoid; break-after: avoid; }
    .post-single__body h2 + p,
    .post-single__body h2 + blockquote,
    .post-single__body h2 + ul,
    .post-single__body h2 + ol,
    .post-single__body h3 + p,
    .post-single__body h3 + blockquote,
    .post-single__body h3 + ul,
    .post-single__body h3 + ol { page-break-before: avoid; break-before: avoid; }
    .post-single__body p, .post-single__body li { orphans: 3; widows: 3; }
    .post-single__body blockquote { border-left: 2pt solid #000 !important; margin-left: 0; padding-left: 12pt; font-style: italic; }
    .post-single__body table { font-size: 9pt; border-collapse: collapse; page-break-inside: avoid; break-inside: avoid; }
    .post-single__body th, .post-single__body td { border: 0.5pt solid #666 !important; padding: 4pt 8pt; }
    .post-single__body a { color: #000 !important; text-decoration: underline; }
    .post-single__body .footnotes a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 8pt; color: #555 !important; word-break: break-all; }

    .cite-block { display: block; margin-top: 18pt; }
    .cite-block[open] summary, .cite-block summary { display: none; }
    .cite-block__content { background: none !important; border: 0.5pt solid #999 !important; padding: 10pt 12pt; }

    @page { margin: 2cm 2.5cm 2.5cm; }
    figure, blockquote, .cite-block { page-break-inside: avoid; break-inside: avoid; }
}
