/* ==========================================================================
   Millennial(ish) — Ghost theme
   1. Fonts + tokens     6. Homepage           11. Article content + cards
   2. Base               7. Sidebar card       12. Guide snippets (.mi-*)
   3. Shared bits        8. Classes            13. Comments, author, more-in
   4. Forms + buttons    9. Footer             14. Listings, error
   5. Bar + header      10. Article layout     15. Pop-ups, motion
   ========================================================================== */

/* 1. Fonts + tokens ------------------------------------------------------- */

@font-face { font-family: 'Agenda One'; src: url(../fonts/AgendaOne-Regular.woff2) format('woff2'), url(../fonts/AgendaOne-Regular.woff) format('woff'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Agenda One'; src: url(../fonts/AgendaOne-Italic.woff2) format('woff2'), url(../fonts/AgendaOne-Italic.woff) format('woff'); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: 'Agenda One'; src: url(../fonts/AgendaOne-Bold.woff2) format('woff2'), url(../fonts/AgendaOne-Bold.woff) format('woff'); font-weight: 500 700; font-style: normal; font-display: swap; }
@font-face { font-family: 'Editors Hand'; src: url(../fonts/EditorsHand-Regular.otf) format('opentype'); font-display: swap; }

:root {
    --navy: #1F2747;
    --cream: #F8EEE4;
    --white: #FFFFFF;
    --card-cream: #FEFCF9;
    --peach: #F2B3AC;
    --peach-stripe: #EBA39C;
    --marigold: #E3A85A;
    --coral: #F29373;
    --lavender: #C2B0DE;
    --sand: #F4DCCB;
    --blush: #FBE7E2;
    --muted: #4A4F6C;
    --muted-2: #3B3354;
    --line: rgba(31, 39, 71, 0.13);
    --line-strong: rgba(31, 39, 71, 0.33);

    --serif: var(--gh-font-heading, 'Instrument Serif'), 'Times New Roman', serif;
    --sans: var(--gh-font-body, 'Agenda One'), 'Helvetica Neue', Arial, sans-serif;
    --hand: 'Editors Hand', 'Comic Sans MS', cursive;
    --mono: 'Courier New', Courier, monospace;

    --wrap: 1264px; /* 1200px of content + 2 × 32px gutters */
    --gutter: 32px;
    --shadow-s: 4px 4px 0 var(--navy);
    --shadow-m: 8px 8px 0 var(--navy);
    --shadow-l: 10px 10px 0 var(--navy);
    --shadow-xl: 16px 16px 0 var(--navy);

    --wavy: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 720 22' preserveAspectRatio='none'%3E%3Cpath d='M3 12 C40 3 75 20 115 11 C155 2 190 19 232 10 C272 2 310 20 352 12 C392 4 428 19 470 10 C510 2 548 18 590 11 C628 5 668 17 717 9' fill='none' stroke='%231F2747' stroke-width='3' stroke-linecap='round' vector-effect='non-scaling-stroke'/%3E%3C/svg%3E");
    --tick: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 8.5 L6 12 L14 3.5' fill='none' stroke='%231F2747' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

@media (max-width: 767px) {
    :root { --gutter: 20px; }
}

@counter-style mi-words {
    system: fixed;
    symbols: "one" "two" "three" "four" "five" "six" "seven" "eight" "nine" "ten" "eleven" "twelve" "thirteen" "fourteen" "fifteen";
    suffix: "";
    fallback: decimal;
}

/* 2. Base ----------------------------------------------------------------- */

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

html { -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }

body {
    margin: 0;
    background: var(--cream);
    color: var(--navy);
    font-family: var(--sans);
    font-size: 18px;
    line-height: 28px;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img { max-width: 100%; height: auto; }
a { color: var(--navy); }
/* Link hover: see "Link hover" near the end of this file */
em { font-style: italic; }
strong, b { font-weight: 700; }

:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.hero-band :focus-visible, .site-footer :focus-visible { outline-color: var(--navy); }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; margin: 0; }

.skip-link {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--white); border: 2px solid var(--navy); padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { top: 16px; }

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

@media (max-width: 767px) { .desktop-only { display: none; } }
@media (min-width: 768px) { .mobile-only, .ticks li.mobile-only { display: none; } }

/* 3. Shared bits ---------------------------------------------------------- */

.small-caps {
    margin: 0;
    font-family: var(--sans);
    font-size: 12px; line-height: 16px; font-weight: 700;
    letter-spacing: 0.16em; text-transform: uppercase;
}
.eyebrow { font-size: 13px; line-height: 18px; letter-spacing: 0.2em; color: var(--muted-2); }
.kicker { font-size: 13px; line-height: 18px; letter-spacing: 0.2em; color: var(--muted); }

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

.section-title {
    font-size: 56px; line-height: 60px;
    display: flex; flex-wrap: wrap; align-items: center; gap: 0 14px;
}
.section-head { border-bottom: 2px solid var(--navy); padding-bottom: 16px; }
.section-head--split { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 14px; }
.decor-inline { width: 34px; height: auto; }
.decor-leaf { transform: rotate(30deg); }
.decor { position: absolute; pointer-events: none; height: auto; }

.lede { margin: 0; font-size: 19px; line-height: 30px; }
.text-link { font-weight: 700; font-size: 16px; color: var(--navy); }

.pill {
    display: inline-block;
    border: 1px solid var(--navy); border-radius: 999px;
    padding: 3px 11px;
    font-family: var(--sans); font-size: 12px; line-height: 18px; font-weight: 600; letter-spacing: 0.04em;
    color: var(--navy); text-decoration: none; background: transparent;
}
.pill[data-tag="work-money"]        { background: var(--marigold); border-color: var(--marigold); }
.pill[data-tag="millennial-life"]   { background: var(--lavender); border-color: var(--lavender); }
.pill[data-tag="travel-adventure"]  { background: var(--peach);    border-color: var(--peach); }
.pill[data-tag="reinvention"]       { background: var(--coral);    border-color: var(--coral); }
a.pill:hover { color: var(--navy); border-color: var(--navy); }
.pill--lg { font-size: 13px; padding: 4px 14px; }

.pill-row, .pill-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.pill-cloud { gap: 12px; }
.pill-cloud .pill { font-size: 15px; padding: 7px 16px; }

.post-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.meta-date { font-size: 13px; line-height: 18px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }

.wavy { display: block; width: 100%; height: 12px; color: var(--navy); }
.wavy-divider { display: block; width: 100%; height: 22px; color: var(--navy); }

.ticks { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; }
.ticks .tick { flex: none; margin-top: 3px; color: var(--navy); }

/* 4. Forms + buttons ------------------------------------------------------ */

.btn-primary {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 62px; padding: 0 32px;
    border: 2px solid var(--navy); border-radius: 0;
    background: var(--peach); color: var(--navy);
    box-shadow: 7px 7px 0 var(--navy);
    font-size: 15px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
    text-decoration: none;
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn-primary:hover { color: var(--navy); transform: translate(2px, 2px); box-shadow: 5px 5px 0 var(--navy); }
.btn-primary:active { transform: translate(5px, 5px); box-shadow: 2px 2px 0 var(--navy); }
.btn-primary--link { min-height: 56px; }

.btn-outline {
    display: inline-block;
    border: 2px solid var(--navy); border-radius: 999px; background: transparent;
    padding: 14px 28px;
    color: var(--navy); text-decoration: none; font-weight: 600; font-size: 16px; line-height: 20px;
}
.btn-outline:hover { background: var(--navy); color: var(--cream); }
.load-more-wrap { margin: 32px 0 0; }
.load-more-wrap[hidden] { display: none; }
html:not(.js) .load-more-wrap--reveal { display: none; }
@media (min-width: 768px) { .load-more-wrap--reveal { display: none; } }

/* Sign-up form (Ghost members). Ghost adds .loading / .success / .error to the form. */
.signup { margin: 0; }
.signup-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 22px 32px; }
.signup-field { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; }
.signup input[type="email"] {
    width: 100%; min-height: 58px; padding: 0 4px;
    border: 0; background: transparent; color: var(--navy);
    font-size: 21px; border-radius: 0;
}
.signup input[type="email"]::placeholder { color: var(--muted); opacity: .8; }
.signup input[type="email"]:focus { outline: none; }
.signup-field:focus-within .wavy { color: var(--muted-2); filter: drop-shadow(0 2px 0 var(--navy)); }
.signup-field:focus-within { outline: 2px dashed rgba(31, 39, 71, 0.45); outline-offset: 6px; }
.signup .btn-loading { display: none; }
.signup.loading .btn-label { display: none; }
.signup.loading .btn-loading { display: inline; }
.signup.loading .btn-primary { opacity: .75; pointer-events: none; }
.signup-success, .signup-error { display: none; margin: 14px 0 0; font-size: 16px; line-height: 24px; }
.signup.success .signup-row { display: none; }
.signup.success .signup-success {
    display: block; margin: 0; padding: 14px 18px;
    background: var(--sand); border: 2px solid var(--navy); font-weight: 600;
}
.signup.error .signup-error { display: block; color: #8E1F1F; font-weight: 600; }

.signup--side .signup-row { flex-direction: column; align-items: stretch; gap: 10px; }
.signup--side .signup-field { flex: none; }
.signup--side input[type="email"] { min-height: 42px; font-size: 17px; padding: 0 2px; }
.signup--side .wavy { height: 10px; }
.signup--side .btn-primary { min-height: 48px; padding: 0 16px; font-size: 14px; box-shadow: 5px 5px 0 var(--navy); }

.signup--stack .signup-row { flex-direction: column; align-items: stretch; gap: 18px; }
.signup--stack .signup-field { flex: none; }
.signup--stack input[type="email"] { min-height: 50px; font-size: 20px; }
.signup--stack .btn-primary { min-height: 58px; box-shadow: 6px 6px 0 var(--navy); }

.signup--inline .signup-field { flex-basis: 260px; }
.signup--inline input[type="email"] { min-height: 50px; font-size: 20px; }
.signup--inline .btn-primary { min-height: 58px; padding: 0 30px; box-shadow: 6px 6px 0 var(--navy); }

.signup--footer { margin-top: 24px; }
.signup--footer .signup-row { gap: 28px 40px; }
.signup--footer .signup-field { flex-basis: 420px; }
.signup--footer input[type="email"] { min-height: 60px; font-size: 24px; }
.signup--footer input[type="email"]::placeholder { color: var(--navy); opacity: .7; }
.signup--footer .btn-primary { min-height: 66px; padding: 0 40px; font-size: 17px; box-shadow: var(--shadow-m); }

@media (max-width: 767px) {
    .signup-row { flex-direction: column; align-items: stretch; gap: 16px; }
    .signup-field { flex: none; }
    .signup .signup-row > .signup-field { flex: none; }
    .signup input[type="email"] { min-height: 46px; font-size: 18px; padding: 0 2px; }
    .signup .wavy { height: 10px; }
    .signup .btn-primary { min-height: 54px; padding: 0 20px; font-size: 14px; box-shadow: 5px 5px 0 var(--navy); }
    .signup--footer .btn-primary { min-height: 56px; box-shadow: 6px 6px 0 var(--navy); }
}

/* 5. Currently bar + header ---------------------------------------------- */

.currently {
    background: var(--navy); color: #F8F8F6;
    font-size: 12px; line-height: 16px; letter-spacing: 0.18em; text-transform: uppercase;
    overflow: hidden;
}
.js .currently:not(.is-ready) .currently-static { visibility: hidden; }
.currently-static, .currently-row {
    margin: 0; padding: 11px var(--gutter);
    display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 26px;
}
.currently strong { font-weight: 600; }
.currently-ticker { display: none; }

@media (max-width: 767px) {
    .currently { font-size: 10px; line-height: 14px; letter-spacing: .16em; white-space: nowrap; }
    .currently.is-ready .currently-row { display: none; }
    .currently.is-ready .currently-ticker { display: block; padding: 8px 0; }
    .currently-static { padding: 8px var(--gutter); flex-wrap: nowrap; justify-content: flex-start; }
}
.marquee-track { display: flex; align-items: center; width: max-content; }
.currently-ticker .marquee-track { animation: mi-marquee 26s linear infinite; }
.currently-ticker .marquee-group { display: flex; align-items: center; gap: 18px; padding-right: 18px; }
.currently-ticker .sep { opacity: .5; }

.site-header { border-bottom: 1px solid var(--line); position: relative; }
.site-header-inner {
    max-width: var(--wrap); margin: 0 auto; padding: 22px var(--gutter);
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
}
.brand { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
.wordmark { font-family: var(--serif); font-size: 32px; line-height: 40px; text-decoration: none; color: var(--navy); }
.brand-tagline {
    margin: 0; padding-left: 18px; border-left: 1px solid rgba(31,39,71,.33);
    font-family: var(--serif); font-style: italic; font-size: 19px; line-height: 24px; color: var(--muted-2);
}
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 28px; font-size: 15px; }
.site-nav .nav-link { text-decoration: none; }
.site-nav .nav-link.is-current { text-decoration: underline; text-underline-offset: 6px; }
.nav-search {
    display: flex; align-items: center; gap: 8px;
    border: 0; background: transparent; color: var(--navy); padding: 0; min-height: 44px; font-size: 15px;
}
.nav-subscribe {
    background: var(--peach); color: var(--navy); text-decoration: none; font-weight: 600;
    padding: 11px 22px; border-radius: 999px;
}
.nav-subscribe:hover { background: var(--navy); color: var(--cream); }
.mobile-actions { display: none; align-items: center; gap: 4px; }
.icon-button {
    width: 44px; height: 44px; border: 0; background: transparent; padding: 0; color: var(--navy);
    display: flex; align-items: center; justify-content: center;
}
.icon-button svg[width="18"] { width: 20px; height: 20px; }
.mobile-menu { border-top: 1px solid var(--line); background: var(--cream); }
.mobile-menu nav { display: flex; flex-direction: column; padding: 12px var(--gutter) 24px; }
.mobile-menu .nav-link {
    padding: 12px 0; border-bottom: 1px solid var(--line);
    font-family: var(--serif); font-size: 28px; line-height: 34px; text-decoration: none;
}
.mobile-menu .nav-subscribe { align-self: flex-start; margin-top: 18px; }

@media (max-width: 900px) {
    .site-nav { display: none; }
    .mobile-actions { display: flex; }
    .site-header-inner { flex-wrap: nowrap; padding: 12px var(--gutter); }
    .brand { display: block; }
    .wordmark { font-size: 26px; line-height: 30px; }
    .brand-tagline { border: 0; padding: 0; margin-top: 2px; font-size: 13px; line-height: 16px; }
}

/* 6. Homepage ------------------------------------------------------------- */

.hero-band { background: var(--peach); overflow: hidden; }
.hero-inner { position: relative; max-width: var(--wrap); margin: 0 auto; padding: 56px var(--gutter) 130px; }
.hero-title { font-size: 96px; line-height: 92px; position: relative; }
.decor-star-a { right: 250px; top: 120px; width: 44px; }
.decor-star-b { right: 70px; top: 190px; width: 26px; }

.hero-signup { position: relative; }
.hero-signup-inner { position: relative; max-width: var(--wrap); margin: -96px auto 0; padding: 0 var(--gutter) 88px; }
.hand-tag {
    position: absolute; right: calc(var(--gutter) + 40px); top: -24px; z-index: 2; margin: 0;
    background: var(--marigold); padding: 6px 18px;
    font-family: var(--hand); font-size: 28px; line-height: 36px; transform: rotate(3deg);
}
.hero-card {
    background: var(--white); border: 2px solid var(--navy); box-shadow: var(--shadow-xl);
    padding: 44px 48px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 330px);
    grid-template-rows: 1fr auto auto auto 1fr;
    grid-template-areas: ". media" "title media" "blurb media" "form media" ". media";
    column-gap: 44px; row-gap: 22px;
}
.hero-card-title { grid-area: title; font-size: 42px; line-height: 46px; }
.hero-card-blurb { grid-area: blurb; margin: 0; font-size: 19px; line-height: 30px; }
.hero-card-form { grid-area: form; margin-top: 4px; }
.hero-card-media { grid-area: media; align-self: center; }
.hero-card-media img {
    display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover;
    border: 2px solid var(--navy); transform: rotate(2deg);
}
.member-note { margin: 0; font-size: 18px; }
.member-note .hand { font-size: 24px; }

@media (max-width: 900px) {
    .hero-card { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-template-areas: "title" "form" "blurb" "media"; }
    .hero-card-media img { aspect-ratio: 3 / 2; transform: none; }
}

.authority { background: var(--sand); display: flex; align-items: center; overflow: hidden; }
.authority-heading {
    flex: none; margin: 0; padding: 44px 40px 44px var(--gutter);
    background: var(--sand); position: relative; z-index: 1;
    font-family: var(--serif); font-size: 54px; line-height: 56px;
}
@media (min-width: 1264px) { .authority-heading { padding-left: calc((100vw - var(--wrap)) / 2 + var(--gutter)); } }
.authority-track { flex: 1; min-width: 0; overflow: hidden; }
.authority .marquee { display: flex; align-items: center; width: max-content; animation: mi-marquee 32s linear infinite; }
.authority:hover .marquee { animation-play-state: paused; }
.authority .marquee-group { display: flex; align-items: center; gap: 44px; padding-right: 44px; }
.authority-logo { flex: none; display: flex; align-items: center; gap: 12px; }
.authority-logo .small-caps { font-size: 11px; }
.logo-lbs { display: block; height: 30px; width: auto; }
.logo-mamamia { display: block; height: 24px; width: auto; }
.authority-stat { flex: none; margin: 0; font-family: var(--serif); font-size: 34px; line-height: 36px; }
.authority-stat em { font-size: 20px; }
.dot { flex: none; width: 6px; height: 6px; border-radius: 999px; background: rgba(31,39,71,.4); }

@keyframes mi-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* Two-column area: main column + floating sidebar */
.with-sidebar {
    max-width: var(--wrap); margin: 0 auto; padding: 88px var(--gutter);
    display: grid; grid-template-columns: minmax(0, 1fr) 340px; column-gap: 64px; row-gap: 88px;
}
.home-layout { grid-template-areas: "latest aside" "topics aside"; }
.latest { grid-area: latest; min-width: 0; }
.topics { grid-area: topics; min-width: 0; display: flex; flex-direction: column; gap: 28px; }
.sidebar { grid-area: aside; align-self: stretch; min-width: 0; }

.featured-card {
    display: flex; flex-direction: column;
    margin: 36px 10px 12px 0;
    background: var(--white); border: 2px solid var(--navy); box-shadow: var(--shadow-l);
    color: var(--navy); text-decoration: none;
    transition: transform .15s ease, box-shadow .15s ease;
}
.featured-card:hover { color: var(--navy); transform: translate(-2px, -2px); box-shadow: 12px 12px 0 var(--navy); }
.featured-card-media { position: relative; border-bottom: 2px solid var(--navy); background: #FBF8F2; }
.featured-card-media > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.featured-card-placeholder { aspect-ratio: 16 / 9; display: flex; align-items: center; justify-content: center; background: var(--sand); }
.featured-card-placeholder img { width: 56px; }
.featured-badge {
    position: absolute; left: 18px; top: 18px;
    background: var(--navy); color: var(--white);
    font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
    padding: 7px 12px; border-radius: 999px;
}
.featured-card-body { padding: 28px 30px 30px; display: flex; flex-direction: column; gap: 14px; }
.featured-card .pill { border-color: transparent; }
.featured-card-title { font-size: 42px; line-height: 46px; }
.featured-card-excerpt { margin: 0; }
.featured-card-cta { font-weight: 700; font-size: 16px; }

.post-item { padding: 32px 0; border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.post-item-title { font-size: 34px; line-height: 40px; }
.post-item-title a { color: var(--navy); text-decoration: none; }
.post-item-excerpt { margin: 0; max-width: 680px; }
.keep-reading { font-weight: 600; font-size: 15px; align-self: flex-start; }
.post-item.is-new { animation: mi-fade-in .4s ease both; }
@keyframes mi-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.post-list--compact .post-item { padding: 22px 0; gap: 8px; }
.post-list--compact .post-item-title { font-size: 30px; line-height: 35px; }
.post-list--compact .post-item-excerpt { display: none; }
.post-list--compact .keep-reading { font-weight: 700; }

@media (max-width: 959px) {
    .with-sidebar { grid-template-columns: minmax(0, 1fr); row-gap: 40px; padding: 32px var(--gutter) 40px; }
    .home-layout { grid-template-areas: "latest" "aside" "topics"; }
}

@media (max-width: 767px) {
    .hero-inner { padding: 46px var(--gutter) 88px; }
    .hero-title { font-size: 48px; line-height: 48px; }
    .decor-star-a { right: 22px; top: 22px; width: 24px; }
    .decor-star-b { display: none; }
    .hero-signup-inner { margin-top: -64px; padding: 0 16px 0; }
    .hand-tag { right: 30px; top: -16px; padding: 3px 12px; font-size: 20px; line-height: 26px; }
    .hero-card { padding: 26px 20px 24px; row-gap: 16px; box-shadow: var(--shadow-m); }
    .hero-card-title { font-size: 27px; line-height: 31px; }
    .hero-card-blurb { font-size: 15px; line-height: 23px; margin-top: 6px; }
    .hero-card-form { margin-top: 0; }

    .authority { flex-direction: column; align-items: stretch; gap: 10px; margin-top: 40px; padding: 18px 0 20px; }
    .authority-heading { padding: 0 var(--gutter); font-size: 26px; line-height: 30px; }
    .authority .marquee { animation-duration: 34s; }
    .authority .marquee-group { gap: 20px; padding-right: 20px; }
    .logo-lbs { height: 24px; }
    .logo-mamamia { height: 20px; }
    .authority-stat { font-size: 22px; line-height: 26px; }
    .authority-stat em { font-size: inherit; }
    .dot { width: 5px; height: 5px; }

    .section-title { font-size: 36px; line-height: 38px; gap: 0 10px; }
    .topics .section-title { font-size: 32px; line-height: 36px; }
    .section-head { padding-bottom: 14px; }
    .decor-inline { width: 24px; }
    .featured-card { margin: 22px 6px 8px 0; box-shadow: 6px 6px 0 var(--navy); }
    .featured-badge { left: 12px; top: 12px; font-size: 10px; padding: 5px 10px; }
    .featured-card-body { padding: 18px; gap: 10px; }
    .featured-card-title { font-size: 28px; line-height: 31px; }
    .featured-card-excerpt { display: none; }
    .featured-card-cta { font-size: 14px; }
    .featured-card .pill { font-size: 11px; line-height: 14px; padding: 4px 10px; }
    .meta-date { font-size: 11px; }
    .post-item { padding: 24px 0; }
    .post-item-title, .post-list--compact .post-item-title { font-size: 26px; line-height: 31px; }
    .post-item-excerpt { font-size: 16px; line-height: 25px; }
    .js .post-list--home:not(.is-expanded) .post-item:nth-child(n+6) { display: none; }
    .load-more-wrap .btn-outline { display: block; width: 100%; text-align: center; font-weight: 700; font-size: 15px; padding: 12px 20px; }
    .load-more-wrap { margin-top: 20px; }
    .topics { gap: 14px; }
    .pill-cloud { gap: 8px; }
    .pill-cloud .pill { font-size: 12px; line-height: 16px; padding: 4px 10px; }
}

/* 7. Sidebar card --------------------------------------------------------- */

.side-card {
    position: sticky; top: 16px;
    max-height: calc(100vh - 32px); overflow-y: auto; scrollbar-width: none;
    background: var(--card-cream); border: 2px solid var(--navy); box-shadow: var(--shadow-l);
    display: flex; flex-direction: column;
}
.side-card::-webkit-scrollbar { display: none; }
.side-card-image {
    display: block; width: 100%; aspect-ratio: 34 / 24; object-fit: cover; object-position: 50% 8%;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}
.side-card-body { padding: 4px 22px 22px; display: flex; flex-direction: column; gap: 10px; }
.side-card-title { font-size: 22px; line-height: 26px; }
.side-card-text { margin: 0; font-size: 14px; line-height: 20px; }
.side-card-member { margin: 0; font-size: 15px; line-height: 22px; font-weight: 600; }
.side-card-member .hand { font-size: 20px; font-weight: 400; }
.side-card-proof {
    margin: 6px 0 0; padding: 10px 0;
    border-top: 2px solid var(--navy); border-bottom: 2px solid var(--navy);
    font-size: 12px; line-height: 17px;
}
.side-card-ticks li { font-size: 13px; line-height: 18px; }
.side-card-ticks a { font-weight: 700; }

@media (max-width: 959px) {
    .side-card { position: static; max-height: none; overflow: visible; box-shadow: var(--shadow-m); }
    .side-card-image { aspect-ratio: 1 / 1; }
    .side-card-body { padding: 4px 20px 22px; gap: 12px; }
    .side-card-title { font-size: 25px; line-height: 29px; }
    .side-card-text { font-size: 15px; line-height: 22px; }
    .side-card-proof { font-size: 13px; line-height: 19px; }
    .side-card-ticks li { font-size: 14px; line-height: 20px; }
}
@media (min-width: 600px) and (max-width: 959px) {
    .side-card { flex-direction: row; }
    .side-card-image { width: 42%; aspect-ratio: auto; -webkit-mask-image: none; mask-image: none; border-right: 2px solid var(--navy); }
    .side-card-body { flex: 1; padding: 22px; }
}

/* 8. Classes -------------------------------------------------------------- */

.classes-band { background: var(--blush); overflow: hidden; }
.classes-inner {
    position: relative; max-width: var(--wrap); margin: 0 auto; padding: 96px var(--gutter) 104px;
    display: flex; flex-direction: column; gap: 40px;
}
.classes-band--page .classes-inner { padding-top: 72px; }
.decor-bud { right: 40px; top: 40px; width: 110px; transform: rotate(14deg); }
.decor-petal { right: 210px; top: 120px; width: 70px; transform: rotate(-20deg); opacity: .9; }
.classes-intro { display: flex; flex-direction: column; gap: 16px; max-width: 760px; }
.classes-intro .section-title { font-size: 60px; line-height: 62px; display: block; }
.classes-inner > .text-link { align-self: flex-start; }

.class-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 36px 32px; padding: 0 8px 8px 0;
}
.class-card {
    background: var(--white); border: 2px solid var(--navy); box-shadow: var(--shadow-m);
    display: flex; flex-direction: column;
}
.class-cover {
    position: relative; background: var(--peach);
    min-height: 230px; padding: 22px;
    display: flex; flex-direction: column; justify-content: space-between;
    border-bottom: 2px solid var(--navy);
}
.class-card:nth-child(3n+2) .class-cover { background: var(--marigold); }
.class-card:nth-child(3n) .class-cover { background: var(--lavender); }
.class-no { font-weight: 600; letter-spacing: 0.18em; }
.class-title { font-size: 42px; line-height: 40px; }
.class-sticker {
    position: absolute; top: -16px; right: -14px; margin: 0;
    background: var(--navy); color: var(--cream);
    font-size: 11px; line-height: 14px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 9px 14px; border-radius: 999px; transform: rotate(6deg);
}
.class-body { padding: 22px; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.class-desc { margin: 0; font-size: 15px; line-height: 23px; color: var(--muted); }
.class-vote {
    margin-top: auto; border-top: 1px dashed rgba(31,39,71,.4); padding-top: 16px;
    display: flex; flex-direction: column; gap: 12px;
}
.class-vote .small-caps { letter-spacing: 0.14em; }
.btn-vote {
    min-height: 48px; border: 2px solid var(--navy); background: var(--peach); color: var(--navy);
    box-shadow: var(--shadow-s); font-size: 14px; font-weight: 700;
    transition: transform .12s ease, box-shadow .12s ease;
}
.btn-vote:hover { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--navy); }
.vote-bar { height: 12px; background: var(--sand); border: 1.5px solid var(--navy); border-radius: 999px; overflow: hidden; }
.vote-bar span { display: block; width: 0; height: 100%; background: var(--navy); transition: width .8s ease; }
.vote-count { margin: 0; font-size: 13px; line-height: 18px; color: var(--muted); }
.vote-count strong { color: var(--navy); }

@media (max-width: 767px) {
    .classes-inner { padding: 44px var(--gutter) 48px; gap: 22px; }
    .classes-intro { gap: 10px; }
    .classes-intro .section-title { font-size: 36px; line-height: 38px; }
    .classes-intro .lede { font-size: 15px; line-height: 23px; }
    .eyebrow { font-size: 12px; }
    .decor-bud, .decor-petal { display: none; }
    .class-grid { gap: 28px; padding: 0 6px 6px 0; }
    .class-card { box-shadow: 6px 6px 0 var(--navy); }
    .class-cover { min-height: 130px; padding: 18px; }
    .class-title { font-size: 34px; line-height: 34px; }
    .class-sticker { top: -12px; right: -8px; font-size: 10px; letter-spacing: .12em; padding: 7px 11px; }
    .class-body { padding: 16px 18px 18px; gap: 12px; }
    .class-desc { font-size: 14px; line-height: 21px; }
    .class-vote { border-top: 0; padding-top: 4px; }
    .vote-bar { height: 10px; }
    .classes-inner > .text-link { font-size: 15px; }
}

/* 9. Footer --------------------------------------------------------------- */

.site-footer { background: var(--marigold); color: var(--navy); }
.site-footer-inner {
    max-width: var(--wrap); margin: 0 auto; padding: 120px var(--gutter);
    display: flex; flex-direction: column; gap: 36px;
}
.footer-wordmark { margin: 0; font-family: var(--serif); font-size: clamp(60px, 12.5vw, 150px); line-height: .94; }
.footer-line { margin: 0; max-width: 900px; font-family: var(--serif); font-size: 46px; line-height: 50px; }
.footer-nav {
    display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 20px;
    font-size: 16px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
}
.footer-nav a { text-decoration: none; }
.footer-copy { margin: 0; font-size: 16px; line-height: 24px; color: var(--muted-2); }

@media (max-width: 767px) {
    .site-footer-inner { padding: 52px var(--gutter) 44px; gap: 20px; }
    .footer-line { font-size: 24px; line-height: 29px; }
    .signup--footer { margin-top: 0; }
    .footer-nav { gap: 10px 22px; margin-top: 0; font-size: 13px; font-weight: 700; }
    .footer-copy { font-size: 13px; line-height: 20px; }
}

/* 10. Article layout ------------------------------------------------------ */

.article-head {
    max-width: 964px; margin: 0 auto; padding: 72px var(--gutter) 40px;
    display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center;
}
.article-head .pill-row { justify-content: center; }
.article-head .pill { font-size: 13px; padding: 4px 14px; }
.article-title { font-size: 68px; line-height: 70px; }
.article-subtitle { margin: 0; font-family: var(--serif); font-style: italic; font-size: 28px; line-height: 36px; color: var(--muted-2); }
.byline { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.byline-avatar { flex: none; width: 52px; height: 52px; border-radius: 999px; object-fit: cover; background: var(--navy); display: block; }
.byline-text { margin: 0; font-size: 15px; line-height: 22px; text-align: left; }
.byline-text a { font-weight: 700; text-decoration: none; }
.byline-meta { color: var(--muted); }

.article-image { max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter) 16px; }
/* Cover images keep their own shape (wide photos are not cropped) */
.article-image img { display: block; width: 100%; height: auto; }
.article-image figcaption { margin-top: 10px; font-family: var(--hand); font-size: 22px; line-height: 28px; color: var(--muted-2); }

.article-layout {
    padding-top: 48px; padding-bottom: 72px;
    grid-template-columns: minmax(0, 720px) 340px; justify-content: start;
    grid-template-areas: "main aside" "after aside"; row-gap: 0;
}
.article-main { grid-area: main; min-width: 0; }
.article-after { grid-area: after; min-width: 0; }

@media (max-width: 959px) {
    .article-layout { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "aside" "after"; row-gap: 40px; }
}
@media (max-width: 767px) {
    .article-head { padding: 40px var(--gutter) 28px; gap: 16px; }
    .article-title { font-size: 40px; line-height: 44px; }
    .article-subtitle { font-size: 21px; line-height: 28px; }
    .article-image { padding: 0; }
    .article-image figcaption { padding: 0 var(--gutter); }
    .article-layout { padding-top: 32px; }
}

/* 11. Article content + Ghost cards -------------------------------------- */

.gh-content { display: flex; flex-direction: column; gap: 22px; font-size: 18px; line-height: 30px; }
.gh-content > * { margin-top: 0; margin-bottom: 0; }
.gh-content > :first-child { margin-top: 0; }
.gh-content a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* First paragraph of a post = big serif intro */
.article-content > p:first-of-type { font-family: var(--serif); font-size: 30px; line-height: 40px; }

.gh-content h2 {
    margin-top: 36px; font-size: 48px; line-height: 52px; scroll-margin-top: 24px;
    counter-increment: mi-part;
}
.gh-content h2::before {
    content: ""; display: block; height: 22px; margin-bottom: 24px;
    background: var(--wavy) center / 100% 22px no-repeat;
}
.gh-content { counter-reset: mi-part; }
.gh-content.has-toc h2::before {
    content: "Part " counter(mi-part, mi-words);
    height: auto; padding-top: 36px; margin-bottom: 10px;
    background-position: top center;
    font-family: var(--sans); font-size: 12px; line-height: 16px; font-weight: 700;
    letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted);
}
.gh-content h3 { margin-top: 18px; font-size: 32px; line-height: 37px; scroll-margin-top: 24px; }
.gh-content h4 { margin-top: 10px; font-family: var(--sans); font-size: 13px; line-height: 18px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }

.gh-content ul { padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.gh-content ul > li { padding-left: 28px; background: var(--tick) 0 7px / 16px 16px no-repeat; }
.gh-content ol { padding-left: 1.4em; display: flex; flex-direction: column; gap: 8px; }
.gh-content ol > li::marker { font-family: var(--serif); font-size: 1.25em; }
.gh-content li > ul, .gh-content li > ol { margin-top: 8px; }

.gh-content blockquote:not(.kg-blockquote-alt) {
    margin: 0; padding: 24px 28px; border: 0; background: var(--white);
    font-style: italic; font-size: 17px; line-height: 28px;
}
.gh-content blockquote.kg-blockquote-alt {
    margin: 18px 0; padding: 0; border: 0; text-align: left;
    font-family: var(--serif); font-style: normal; font-size: 42px; line-height: 48px; color: var(--navy);
}
.gh-content blockquote.kg-blockquote-alt em, .gh-content blockquote.kg-blockquote-alt i { font-style: italic; }

.gh-content hr {
    width: 100%; height: 22px; margin: 14px 0; border: 0;
    background: var(--wavy) center / 100% 22px no-repeat;
}

.gh-content code { font-family: var(--mono); font-size: .88em; background: var(--sand); padding: 1px 6px; }
.gh-content pre { overflow-x: auto; background: var(--navy); color: var(--cream); padding: 20px 22px; font-size: 15px; line-height: 23px; }
.gh-content pre code { background: none; padding: 0; color: inherit; }

.gh-content table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.gh-content th, .gh-content td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.gh-content th { font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }

/* Images + captions (Editor's Hand) */
.gh-content figure { margin: 10px 0; }
.gh-content figure img { display: block; }
.gh-content figcaption, .gh-content .kg-card figcaption {
    margin-top: 10px; text-align: left;
    font-family: var(--hand); font-size: 22px; line-height: 28px; color: var(--muted-2);
}
.gh-content .kg-image-card img { width: 100%; }

/* Ghost requires these width classes. Inside the two-column article they stay in the column. */
.kg-width-wide, .kg-width-full { width: 100%; }
.page-content .kg-width-wide { width: calc(100% + 160px); max-width: 100vw; margin-left: -80px; margin-right: -80px; }
.page-content .kg-width-full { width: 100vw; max-width: 100vw; margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); }
.page-content .kg-width-full img { width: 100%; }
@media (max-width: 1000px) { .page-content .kg-width-wide { width: 100%; margin-left: 0; margin-right: 0; } }

/* Callout card → sand box with dashed code chip */
.gh-content .kg-callout-card {
    border-radius: 0; padding: 26px 28px; gap: 14px;
    background: var(--sand); color: var(--navy); font-size: 16px; line-height: 25px;
}
.gh-content .kg-callout-card-white  { background: var(--white); }
.gh-content .kg-callout-card-pink,
.gh-content .kg-callout-card-red    { background: var(--blush); }
.gh-content .kg-callout-card-purple,
.gh-content .kg-callout-card-blue   { background: #E7DEF3; }
.gh-content .kg-callout-card-yellow { background: #F7DDB6; }
.gh-content .kg-callout-card-accent { background: var(--peach); color: var(--navy); }
.gh-content .kg-callout-card-accent a { color: var(--navy); }
.gh-content .kg-callout-emoji { font-size: 22px; line-height: 25px; }
.gh-content .kg-callout-text { font-size: 16px; line-height: 25px; }
.gh-content .kg-callout-text > b:first-child,
.gh-content .kg-callout-text > strong:first-child {
    display: block; margin-bottom: 12px;
    font-size: 12px; line-height: 16px; letter-spacing: 0.16em; text-transform: uppercase;
}
.gh-content .kg-callout-text > b:first-child + br,
.gh-content .kg-callout-text > strong:first-child + br { display: none; }
.gh-content .kg-callout-card code {
    display: inline-block; margin: 6px 6px 2px 0; padding: 8px 16px;
    background: transparent; border: 2px dashed var(--navy);
    font-family: var(--mono); font-size: 18px; line-height: 24px; font-weight: 700; letter-spacing: 0.12em;
}

/* Toggle card → FAQ */
.gh-content .kg-toggle-card {
    background: transparent; border: 0; border-bottom: 1px solid var(--line-strong);
    border-radius: 0; box-shadow: none; padding: 14px 0;
}
.gh-content .kg-toggle-card + .kg-toggle-card { margin-top: -22px; }
.gh-content .kg-toggle-heading { align-items: center; }
.gh-content .kg-toggle-card .kg-toggle-heading-text,
.gh-content .kg-toggle-card h4.kg-toggle-heading-text {
    margin: 0; font-family: var(--serif); font-size: 26px; line-height: 30px; font-weight: 400;
    letter-spacing: 0; text-transform: none;
}
.gh-content .kg-toggle-card-icon { color: var(--navy); }
.gh-content .kg-toggle-content { font-size: 17px; line-height: 28px; margin-top: 6px; }

/* Button card + signup card + header card */
.gh-content .kg-btn, .gh-content .kg-btn-accent {
    border: 2px solid var(--navy); border-radius: 0; background: var(--peach); color: var(--navy);
    box-shadow: 6px 6px 0 var(--navy); font-family: var(--sans);
    font-size: 15px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
    height: auto; min-height: 54px; padding: 0 26px;
}
.gh-content .kg-btn:hover { opacity: 1; transform: translate(2px, 2px); box-shadow: 4px 4px 0 var(--navy); }
.gh-content .kg-signup-card { border: 2px solid var(--navy); box-shadow: var(--shadow-l); border-radius: 0; }
.gh-content .kg-signup-card-heading, .gh-content .kg-header-card-heading { font-family: var(--serif); font-weight: 400; }
.gh-content .kg-signup-card-button { border-radius: 0; border: 2px solid var(--navy); box-shadow: var(--shadow-s); font-weight: 700; text-transform: uppercase; letter-spacing: .1em; }
.gh-content .kg-signup-card-input { border-radius: 0; }

.gh-content .kg-bookmark-card a.kg-bookmark-container {
    border: 2px solid var(--navy); border-radius: 0; background: var(--white); box-shadow: var(--shadow-s); color: var(--navy);
}
.gh-content .kg-bookmark-title { font-family: var(--serif); font-size: 22px; font-weight: 400; line-height: 26px; }
.gh-content .kg-bookmark-description { font-size: 15px; }

.gh-content .kg-product-card-container, .gh-content .kg-file-card-container, .gh-content .kg-audio-card {
    border: 2px solid var(--navy); border-radius: 0; background: var(--white);
}

/* Members-only content upgrade box */
.gh-post-upgrade-cta-content, .gh-content .gh-post-upgrade-cta {
    border: 2px solid var(--navy); box-shadow: var(--shadow-l); border-radius: 0 !important;
}
.gh-post-upgrade-cta h2 { font-family: var(--serif); font-weight: 400; }
.gh-post-upgrade-cta h2::before { display: none !important; }

/* "In this guide" — built from the H2s by main.js when a post has 3 or more */
.toc {
    background: var(--white); border: 2px solid var(--navy); box-shadow: var(--shadow-m);
    padding: 26px 28px; margin: 6px 8px 8px 0 !important;
}
.toc .small-caps { margin-bottom: 14px; color: var(--muted); }
.toc ol {
    margin: 0; padding: 0; list-style: none;
    display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 28px;
}
.toc li { padding: 0; background: none; }
.toc a { display: flex; gap: 12px; align-items: baseline; text-decoration: none; font-size: 16px; line-height: 23px; }
.toc-num { flex: none; font-family: var(--serif); font-size: 24px; }
.toc-text { text-decoration: underline; text-decoration-color: rgba(31,39,71,.27); text-underline-offset: 4px; }
.toc a:hover .toc-text { text-decoration-color: var(--peach); text-decoration-thickness: 3px; text-underline-offset: 5px; text-decoration-skip-ink: none; }

@media (max-width: 767px) {
    .gh-content { font-size: 17px; line-height: 28px; gap: 18px; }
    .article-content > p:first-of-type { font-size: 24px; line-height: 32px; }
    .gh-content h2 { font-size: 34px; line-height: 38px; margin-top: 24px; }
    .gh-content h3 { font-size: 26px; line-height: 31px; }
    .gh-content blockquote.kg-blockquote-alt { font-size: 30px; line-height: 36px; }
    .gh-content .kg-callout-card, .toc { padding: 20px; }
    .gh-content .kg-toggle-card + .kg-toggle-card { margin-top: -18px; }
}

/* 12. Guide snippets (paste-once HTML, saved as Ghost Snippets) ---------- */

/* Step label + heading */
.mi-step { display: flex; align-items: baseline; gap: 14px; margin-top: 14px !important; }
.mi-step-label {
    flex: none; background: var(--navy); color: var(--white);
    font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px;
}
.mi-step h3 { margin: 0; font-size: 30px; line-height: 34px; }
@media (max-width: 767px) { .mi-step { flex-direction: column; gap: 8px; } .mi-step h3 { font-size: 24px; line-height: 29px; } }

/* "Steal my email" letter */
.mi-letter {
    position: relative; margin-top: 10px !important;
    background: var(--white); border: 2px solid var(--navy); padding: 26px 28px;
    font-family: var(--mono); font-size: 15px; line-height: 24px;
}
.mi-letter-tag {
    position: absolute; top: -14px; left: 20px; margin: 0;
    background: var(--marigold); padding: 3px 12px;
    font-family: var(--sans); font-size: 11px; line-height: 20px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.mi-letter p { margin: 0 0 1em; }
.mi-letter p:last-child { margin-bottom: 0; }

/* Tip card (dot + bold lead) */
.mi-tip { display: flex; gap: 16px; align-items: flex-start; background: var(--white); padding: 20px 22px; font-size: 17px; line-height: 28px; }
.mi-tip::before {
    content: ""; flex: none; width: 12px; height: 12px; margin-top: 9px;
    border-radius: 999px; background: var(--peach); border: 2px solid var(--navy);
}
.mi-tip p { margin: 0; }
.mi-tip + .mi-tip { margin-top: -10px; }

/* Small cards grid */
.mi-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.mi-cards > div { background: var(--white); border: 2px solid var(--navy); padding: 18px; }
.mi-cards h4, .mi-cards .mi-card-title {
    margin: 0 0 6px; font-family: var(--serif); font-size: 24px; line-height: 28px; font-weight: 400;
    letter-spacing: 0; text-transform: none;
}
.mi-cards p { margin: 0; font-size: 15px; line-height: 23px; color: var(--muted); }

/* Cost breakdown */
.mi-costs {
    background: var(--white); border: 2px solid var(--navy); box-shadow: var(--shadow-l);
    padding: 28px 30px; font-size: 16px; line-height: 24px; margin-right: 10px !important;
}
.mi-costs-title { margin: 0 0 6px; font-family: var(--serif); font-size: 30px; line-height: 34px; }
.mi-costs-group { margin: 18px 0 4px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.mi-costs-row { display: flex; justify-content: space-between; gap: 20px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.mi-costs-row > :last-child { flex: none; }
.mi-costs-row.is-subtotal { font-weight: 700; }
.mi-costs-total {
    display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
    margin-top: 20px; padding-top: 16px; border-top: 2px solid var(--navy);
    font-family: var(--serif); font-size: 30px; line-height: 36px;
}
.mi-costs-total > :last-child { font-size: 40px; }
.mi-costs-notes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.mi-chip { padding: 8px 16px; border-radius: 999px; font-weight: 700; background: var(--marigold); }
.mi-chip--lavender { background: var(--lavender); }
.mi-costs-notes small { font-size: 14px; color: var(--muted); }

/* Expectation v reality */
.mi-evr { background: var(--white); border: 2px solid var(--navy); }
.mi-evr-title { margin: 0; padding: 14px 22px; border-bottom: 2px solid var(--navy); font-family: var(--serif); font-size: 26px; line-height: 30px; }
.mi-evr-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.mi-evr-cols > div { padding: 16px 22px; font-size: 16px; line-height: 25px; }
.mi-evr-cols > div:first-child { background: var(--sand); }
.mi-evr-cols p { margin: 0; }
.mi-evr-cols .mi-evr-label { margin: 0 0 6px; font-size: 12px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; }

/* Day timeline */
.mi-day > div { display: flex; gap: 22px; padding: 12px 0; border-bottom: 1px dashed rgba(31,39,71,.27); }
.mi-day-time { flex: none; width: 76px; font-family: var(--serif); font-size: 24px; line-height: 28px; }
.mi-day > div > :last-child { font-size: 17px; line-height: 27px; }

/* Habit tracker */
.mi-tracker {
    background: var(--white); border: 2px solid var(--navy); box-shadow: var(--shadow-m);
    margin-right: 8px !important;
}
.mi-tracker-title {
    margin: 0; padding: 10px 18px; background: var(--navy); color: var(--cream);
    font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.gh-content .mi-tracker table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 15px; line-height: 20px; }
.gh-content .mi-tracker th, .gh-content .mi-tracker td {
    padding: 9px 4px; border: 1px solid var(--line); text-align: center; vertical-align: middle;
}
.gh-content .mi-tracker thead th {
    background: var(--sand); font-family: var(--serif); font-size: 18px; line-height: 21px; font-weight: 400;
    letter-spacing: 0; text-transform: none;
}
.gh-content .mi-tracker tbody th { width: 52px; font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: none; }
.gh-content .mi-tracker tr > :first-child { border-left: 0; }
.gh-content .mi-tracker tr > :last-child { border-right: 0; }
.gh-content .mi-tracker tbody tr:last-child > * { border-bottom: 0; }
.mi-tick {
    display: inline-flex; align-items: center; justify-content: center;
    width: 24px; height: 24px; border-radius: 999px;
    background: var(--peach); border: 2px solid var(--navy);
    font-size: 13px; line-height: 1; font-weight: 700;
}
@media (max-width: 767px) {
    .mi-tracker-title { padding: 8px 12px; }
    .gh-content .mi-tracker table { font-size: 12px; line-height: 15px; }
    .gh-content .mi-tracker th, .gh-content .mi-tracker td { padding: 7px 1px; }
    .gh-content .mi-tracker thead th { font-size: 13px; line-height: 15px; }
    .gh-content .mi-tracker tbody th { width: 30px; font-size: 12px; }
    .mi-tick { width: 18px; height: 18px; font-size: 10px; border-width: 1.5px; }
}

/* Money ledger (e.g. scraps account deposits) */
.mi-ledger {
    background: var(--white); border: 2px solid var(--navy); box-shadow: var(--shadow-m);
    margin-right: 8px !important;
}
.mi-ledger-title {
    margin: 0; padding: 10px 18px; background: var(--navy); color: var(--cream);
    font-size: 12px; line-height: 16px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
}
.gh-content .mi-ledger table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 21px; }
.gh-content .mi-ledger th, .gh-content .mi-ledger td { padding: 11px 18px; border-bottom: 1px solid var(--line); text-align: left; }
.gh-content .mi-ledger tr:last-child > * { border-bottom: 0; }
.gh-content .mi-ledger thead th {
    background: var(--sand); font-size: 11px; line-height: 16px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
}
.gh-content .mi-ledger .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gh-content .mi-ledger .in { color: #2E6B3F; font-weight: 700; }
.gh-content .mi-ledger td.date { white-space: nowrap; color: var(--muted); }
.gh-content .mi-ledger .balance { font-family: var(--serif); font-size: 19px; }
@media (max-width: 767px) {
    .mi-ledger-title { padding: 8px 12px; }
    .gh-content .mi-ledger table { font-size: 13px; line-height: 18px; }
    .gh-content .mi-ledger th, .gh-content .mi-ledger td { padding: 9px 8px; }
    .gh-content .mi-ledger .desc { display: none; }
    .gh-content .mi-ledger .balance { font-size: 16px; }
}

/* Mid-article sign-up box (HTML snippet) */
.mi-signup {
    background: var(--white); border: 2px solid var(--navy); box-shadow: var(--shadow-l);
    padding: 34px; margin: 20px 10px 20px 0 !important; display: flex; flex-direction: column; gap: 14px;
}
.mi-signup-title { margin: 0; font-family: var(--serif); font-size: 34px; line-height: 38px; }
.mi-signup > p:not([class]) { margin: 0; font-size: 17px; line-height: 27px; }
.mi-signup .signup-row { gap: 20px 28px; }
.mi-signup .signup-field { flex-basis: 240px; }
.mi-signup input[type="email"] { min-height: 52px; font-size: 19px; }
.mi-signup .btn-primary { min-height: 58px; padding: 0 28px; box-shadow: 6px 6px 0 var(--navy); }
@media (max-width: 767px) { .mi-signup { padding: 24px 20px; } .mi-signup-title { font-size: 28px; line-height: 32px; } }

/* 13. Author box, comments, more-in -------------------------------------- */

.author-box { margin-top: 32px; padding-top: 28px; border-top: 2px solid var(--navy); display: flex; gap: 22px; align-items: flex-start; }
.author-box-avatar { flex: none; width: 84px; height: 84px; border-radius: 999px; object-fit: cover; background: var(--navy); display: block; }
.author-box-text { display: flex; flex-direction: column; gap: 8px; }
.author-box-name { margin: 0; font-family: var(--serif); font-size: 28px; line-height: 32px; }
.author-box-name a { text-decoration: none; }
.author-box-bio { margin: 0; font-size: 16px; line-height: 25px; color: var(--muted); }
.author-box-note { margin: 4px 0 0; font-size: 24px; line-height: 30px; }

.comments { margin-top: 36px; display: flex; flex-direction: column; gap: 18px; }
.comments-title { font-size: 42px; line-height: 46px; }

.more-in { background: var(--sand); }
.more-in-inner { max-width: var(--wrap); margin: 0 auto; padding: 80px var(--gutter); display: flex; flex-direction: column; gap: 32px; }
.more-in .section-title { font-size: 50px; line-height: 54px; display: block; }
.more-in .post-list { max-width: 820px; }
.more-in .load-more-wrap { margin: 0; }

@media (max-width: 767px) {
    .author-box { gap: 16px; }
    .author-box-avatar { width: 60px; height: 60px; }
    .author-box-name { font-size: 24px; line-height: 28px; }
    .comments-title { font-size: 32px; line-height: 36px; }
    .more-in-inner { padding: 44px var(--gutter); gap: 20px; }
    .more-in .section-title { font-size: 34px; line-height: 38px; }
}

/* 14. Listings, pages, error --------------------------------------------- */

.listing { max-width: 900px; margin: 0 auto; padding: 72px var(--gutter) 96px; }
.listing-head { display: flex; flex-direction: column; gap: 18px; padding-bottom: 28px; border-bottom: 2px solid var(--navy); }
.listing-head p { margin: 0; }
.listing-title { font-size: 72px; line-height: 74px; }
.author-head .author-box-avatar { margin-bottom: 4px; }
.pagination { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 40px; font-size: 15px; color: var(--muted); }
.js .pagination { display: none; }

.page-article { padding-bottom: 72px; }
.page-content { max-width: 720px; margin: 0 auto; padding: 24px var(--gutter) 0; }

.error-page { position: relative; max-width: 900px; margin: 0 auto; padding: 120px var(--gutter); display: flex; flex-direction: column; gap: 22px; }
.error-page .decor-star-a { top: 80px; right: 60px; }
.error-page .lede { max-width: 560px; }

@media (max-width: 767px) {
    .listing { padding: 40px var(--gutter) 64px; }
    .listing-title { font-size: 44px; line-height: 46px; }
    .error-page { padding: 72px var(--gutter); }
    .error-page .hero-title { font-size: 48px; line-height: 50px; }
}

/* 15. Pop-ups + motion ---------------------------------------------------- */

.modal {
    width: min(736px, calc(100vw - 32px)); max-width: none; /* box + 16px for its offset shadow */ max-height: calc(100dvh - 32px);
    padding: 0; border: 0; background: transparent; color: var(--navy); overflow: visible;
}
.modal::backdrop { background: rgba(31, 39, 71, 0.55); }
.modal[open] { animation: mi-pop .25s ease both; }
@keyframes mi-pop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-box {
    position: relative; max-height: calc(100dvh - 48px); overflow-y: auto;
    border: 2px solid var(--navy); box-shadow: var(--shadow-xl); margin: 0 16px 16px 0;
}
.modal-close {
    position: absolute; top: 14px; right: 14px; z-index: 2;
    width: 40px; height: 40px; border: 2px solid var(--navy); border-radius: 999px;
    background: var(--white); color: var(--navy); font-size: 22px; line-height: 1; padding: 0;
}
.modal-close:hover { background: var(--navy); color: var(--white); }

.exit-box {
    background: repeating-linear-gradient(90deg, var(--peach) 0 44px, var(--peach-stripe) 44px 88px);
    padding: 64px 64px 52px; display: flex; flex-direction: column; gap: 20px;
}
.exit-eyebrow { font-size: 13px; letter-spacing: .18em; color: var(--muted-2); }
.exit-modal.is-manual .exit-eyebrow { display: none; }
.exit-title { font-size: 72px; line-height: 70px; }
.exit-copy { margin: 0; font-size: 20px; line-height: 30px; }
.exit-form { background: var(--white); border: 2px solid var(--navy); padding: 22px 24px; margin-top: 6px; }
.exit-form .signup-row { gap: 18px 24px; }
.exit-dismiss {
    align-self: center; border: 0; background: transparent; padding: 8px; color: var(--navy);
    font-size: 15px; text-decoration: underline; text-underline-offset: 3px;
}

.waitlist-modal { width: min(656px, calc(100vw - 32px)); }
.waitlist-box { background: var(--white); display: flex; flex-direction: column; }
.waitlist-cover { background: var(--peach); border-bottom: 2px solid var(--navy); padding: 40px 48px 30px; display: flex; flex-direction: column; gap: 10px; }
.waitlist-title { font-size: 56px; line-height: 56px; }
.waitlist-body { padding: 32px 48px 40px; display: flex; flex-direction: column; gap: 18px; }
.waitlist-noted { margin: 0; font-family: var(--serif); font-size: 30px; line-height: 36px; }
.waitlist-copy { margin: 0; font-size: 17px; line-height: 27px; color: var(--muted-2); }
.waitlist-note { margin: 4px 0 0; font-size: 24px; line-height: 30px; text-align: center; }

@media (max-width: 767px) {
    .modal-box { box-shadow: var(--shadow-m); margin: 0 8px 8px 0; }
    .exit-box { padding: 56px 22px 28px; gap: 14px; }
    .exit-title { font-size: 44px; line-height: 44px; }
    .exit-copy { font-size: 17px; line-height: 26px; }
    .exit-form { padding: 16px; }
    .waitlist-cover { padding: 32px 22px 22px; }
    .waitlist-title { font-size: 40px; line-height: 42px; }
    .waitlist-body { padding: 22px 22px 28px; gap: 14px; }
    .waitlist-noted { font-size: 24px; line-height: 30px; }
    .waitlist-note { font-size: 20px; }
}

/* Link hover: a thick, unbroken peach underline on every text link */
a:hover,
.gh-content a:hover,
.wordmark:hover,
.site-nav .nav-link:hover,
.mobile-menu .nav-link:hover,
.footer-nav a:hover,
.post-item-title a:hover,
.byline-text a:hover,
.author-box-name a:hover,
.side-card-ticks a:hover,
.exit-dismiss:hover {
    color: var(--navy);
    text-decoration-line: underline;
    text-decoration-color: var(--peach);
    text-decoration-thickness: 3px;
    text-underline-offset: 5px;
    text-decoration-skip-ink: none;
}
/* …except links that look like buttons, pills or cards, which have their own hover */
.btn-primary:hover, .btn-outline:hover, .nav-subscribe:hover, .pill:hover,
.featured-card:hover, .skip-link:hover,
.gh-content .kg-btn:hover, .gh-content .kg-bookmark-container:hover, .gh-content .kg-signup-card a:hover {
    text-decoration: none;
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; }
    .authority .marquee, .currently-ticker .marquee-track { transform: none; }
    .authority-track { overflow-x: auto; }
}
