/* ==========================================================================
   brayden-beckius v3 layer
   Loaded after built/screen.css. Paper/ink/moss palette, Fraunces + Public Sans,
   nested-scale colours driven by tag slugs (local, bioregional, planetary, finance).
   Note: html font-size is 62.5% in screen.css, so px is used here for clarity.
   ========================================================================== */

/* 1. Tokens
   ------------------------------------------------------------------------- */
html:root {
    --v3-paper: #EEEDE7; /* chalk down */
    --v3-ink: #1F2A22;
    --v3-moss: #2F5D3A;
    --v3-moss-dark: #24482D;
    --v3-clay: #A4482A;
    --v3-river: #2E5E73;
    --v3-ochre: #7A5A0E;
    --v3-sage: #D4E5C6;
    --v3-white: #FFFFFF;
    --v3-muted: #5A6357;
    --v3-body: #3C463D;
    --v3-border: #D9D4C3;
    --v3-field: #8C9384;

    --v3-serif: "Alegreya", Georgia, "Times New Roman", serif;
    --v3-sans: "Alegreya Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;

    --v3-wrap: 1180px;
    --v3-gutter: 24px;
    --v3-radius: 18px;

    /* Hand the existing theme the new palette and fonts */
    --background-color: var(--v3-paper);
    --ghost-accent-color: var(--v3-moss);
    --color-darker-gray: var(--v3-ink);
    --color-primary-text: var(--v3-ink);
    --color-secondary-text: var(--v3-muted);
    --color-border: var(--v3-border);
    --color-light-gray: var(--v3-border);
    --font-sans: var(--v3-sans);
    --font-serif: var(--v3-serif);
    --gh-font-heading: var(--v3-serif);
    --gh-font-body: var(--v3-sans);
    --container-width: var(--v3-wrap);
}

/* Scale colour per tag slug: anything with data-tag / is-<slug> picks it up */
[data-tag="local"], .is-local { --v3-scale: var(--v3-clay); --v3-tint: #F6E7DC; --v3-tint-border: #EAD3C3; }
[data-tag="bioregional"], .is-bioregional, .is-bio { --v3-scale: var(--v3-river); --v3-tint: #E3ECEC; --v3-tint-border: #CADBDB; }
[data-tag="planetary"], .is-planetary, .is-planet { --v3-scale: var(--v3-moss); --v3-tint: #D4E5C6; --v3-tint-border: #B4CD9F; }
[data-tag="finance"], .is-finance { --v3-scale: var(--v3-ochre); --v3-tint: #F3EBD3; --v3-tint-border: #E3D6B2; }
.is-self { --v3-scale: var(--v3-ink); }

/* 2. Base
   ------------------------------------------------------------------------- */
body {
    background-color: var(--v3-paper);
    color: var(--v3-ink);
    font-family: var(--v3-sans);
    /* Alegreya Sans has short lowercase letters; this sizes its x-height up so text reads at the size it is set */
    font-size-adjust: 0.5;
}

h1, h2, h3, .is-title, .v3-h1, .v3-h2, .v3-h3 {
    font-family: var(--v3-serif);
    font-size-adjust: none;
}

a { color: var(--v3-moss); text-underline-offset: 3px; }
a:hover { opacity: 1; color: var(--v3-ink); }

:is(a, button, input, summary):focus-visible {
    outline: 3px solid var(--v3-clay);
    outline-offset: 3px;
    border-radius: 6px;
}

::selection { background: #EFDCCD; color: var(--v3-ink); }

.v3-wrap {
    width: 100%;
    max-width: var(--v3-wrap);
    margin-inline: auto;
    padding-inline: var(--v3-gutter);
    box-sizing: border-box;
}

.v3-h1 {
    margin: 0;
    font-weight: 400;
    font-size: clamp(40px, 5vw, 64px);
    line-height: 1.06;
    letter-spacing: -0.02em;
}

.v3-h2 {
    margin: 0;
    font-weight: 400;
    font-size: clamp(30px, 3.4vw, 42px);
    line-height: 1.15;
    letter-spacing: -0.01em;
}
.v3-h2.is-strong { font-weight: 600; font-size: clamp(28px, 3vw, 34px); }

.v3-h3 {
    margin: 0;
    font-weight: 400;
    font-size: 28px;
    line-height: 1.2;
}

.v3-section-lede {
    margin: 0;
    max-width: 36em;
    font-size: 17px;
    line-height: 1.6;
    color: var(--v3-body);
}

.v3-eyebrow {
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 15px;
    font-weight: 500;
    color: var(--v3-muted);
}

.v3-meta { font-size: 15px; color: var(--v3-muted); }

.v3-dot {
    display: inline-block;
    flex: 0 0 auto;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--v3-scale, var(--v3-moss));
}

/* 3. Buttons and links
   ------------------------------------------------------------------------- */
.v3-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 24px;
}

.v3-btn,
.gh-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 48px;
    padding: 0 24px;
    border: 0;
    border-radius: 999px;
    background-color: var(--v3-moss);
    color: var(--v3-white);
    font-family: var(--v3-sans);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.v3-btn:hover,
.gh-button:hover { background-color: var(--v3-moss-dark); color: var(--v3-white); opacity: 1; }
.v3-btn .icon { width: 18px; height: 18px; }

.v3-btn.is-light { background: var(--v3-paper); color: var(--v3-ink); }
.v3-btn.is-light:hover { background: var(--v3-white); color: var(--v3-ink); }

.v3-arrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: var(--v3-moss);
    text-decoration: none;
}
.v3-arrow span { transition: transform 0.2s ease; }
.v3-arrow:hover { text-decoration: underline; color: var(--v3-ink); }
.v3-arrow:hover span { transform: translateX(3px); }
.v3-arrow.is-light { color: var(--v3-paper); }
.v3-arrow.is-light:hover { color: var(--v3-white); }

/* 4. Navigation
   ------------------------------------------------------------------------- */
.gh-navigation,
body.home-template .gh-navigation:not(.is-scrolled),
body.home-template .gh-navigation.is-scrolled {
    background-color: var(--v3-paper);
    color: var(--v3-ink);
    box-shadow: 0 1px 0 var(--v3-border);
}

.gh-navigation { font-family: var(--v3-sans); font-size: 15px; font-weight: 500; }

.gh-navigation-logo {
    flex-direction: row;
    align-items: center;
    gap: 12px;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}
.v3-logo-mark { flex: 0 0 auto; }
.v3-logo-text { display: flex; flex-direction: column; gap: 2px; }
.gh-navigation-logo-subtitle,
body.home-template .gh-navigation:not(.is-scrolled) .gh-navigation-logo-subtitle {
    font-family: var(--v3-sans);
    font-size: 13px;
    color: var(--v3-muted);
    opacity: 1;
}

.gh-navigation .nav a:hover { color: var(--v3-moss); text-decoration: underline; opacity: 1; }
.gh-navigation .nav .nav-current a { text-decoration: underline; text-decoration-color: var(--v3-clay); text-underline-offset: 6px; }
.gh-navigation-members .gh-button { min-height: 42px; padding: 0 18px; font-size: 15px; }

@media (max-width: 767px) {
    .gh-navigation-logo { font-size: 19px; }
    .v3-logo-mark { width: 30px; height: 30px; }
}

/* Non-home pages already get 100px top padding for the fixed nav; give home the same */
body.home-template .gh-viewport > .v3-hero { padding-top: calc(64px + 90px); }

/* 5. Hero + diagram
   ------------------------------------------------------------------------- */
.v3-hero {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 48px;
    padding-top: 64px;
    padding-bottom: 80px;
}

.v3-hero-copy {
    flex: 999 1 520px;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 26px;
}

.v3-hero-title {
    margin: 0;
    font-weight: 400;
    font-size: clamp(42px, 5.6vw, 72px);
    line-height: 1.04;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.v3-hero-lede {
    margin: 0;
    max-width: 33em;
    font-size: 19px;
    line-height: 1.6;
    color: var(--v3-body);
}

.v3-diagram {
    flex: 1 1 380px;
    margin: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}
.v3-diagram svg { width: 100%; max-width: 460px; height: auto; overflow: visible; }

.v3-ring { transition: opacity 0.35s ease; cursor: pointer; }
.v3-ring circle { transition: stroke-width 0.35s ease; }
.v3-diagram.has-focus .v3-ring { opacity: 0.4; }
.v3-diagram.has-focus .v3-ring.is-on { opacity: 1; }
.v3-ring.is-on circle { stroke-width: 4; }
.v3-diagram-labels { pointer-events: none; }

@keyframes v3-ripple {
    0% { transform: scale(1); opacity: 0.55; }
    100% { transform: scale(6.2); opacity: 0; }
}
.v3-ripple {
    transform-box: fill-box;
    transform-origin: center;
    animation: v3-ripple 8s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
    pointer-events: none;
}
.v3-ripple-2 { animation-delay: 4s; }

@keyframes v3-flow { to { stroke-dashoffset: -64; } }
.v3-river { animation: v3-flow 5s linear infinite; pointer-events: none; }

/* Pause decorative motion when the hero is off screen (class set by v3.js) */
.v3-diagram.is-offscreen .v3-ripple,
.v3-diagram.is-offscreen .v3-river { animation-play-state: paused; }

.v3-scale-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.v3-scale-btn {
    min-height: 44px;
    padding: 0 16px;
    border: 1.5px solid var(--v3-scale);
    border-radius: 999px;
    background: transparent;
    color: var(--v3-scale);
    font-family: var(--v3-sans);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease;
}
.v3-scale-btn:hover { background: color-mix(in srgb, var(--v3-scale) 10%, transparent); }
.v3-scale-btn[aria-pressed="true"] { background: var(--v3-scale); color: var(--v3-white); }

.v3-diagram-caption {
    margin: 0;
    max-width: 26em;
    min-height: 3.3em;
    text-align: center;
    font-size: 15px;
    line-height: 1.6;
    color: var(--v3-body);
}

/* 6. Sections
   ------------------------------------------------------------------------- */
.v3-band-white {
    background: var(--v3-white);
    border-top: 1px solid var(--v3-border);
    border-bottom: 1px solid var(--v3-border);
}

.v3-section {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding-top: 80px;
    padding-bottom: 80px;
}

.v3-section-head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    gap: 16px;
}
.v3-section-head > div { display: flex; flex-direction: column; gap: 10px; max-width: 40em; }

/* Scale cards */
.v3-scale-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}

.v3-scale-card {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 26px;
    background: var(--v3-tint);
    border: 1px solid var(--v3-tint-border);
    border-radius: var(--v3-radius);
    transition: border-color 0.2s ease;
}
.v3-scale-card:hover { border-color: var(--v3-ink); }

.v3-scale-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    font-weight: 600;
    color: var(--v3-scale);
}

.v3-scale-title { margin: 0; font-size: 25px; font-weight: 600; line-height: 1.2; }
.v3-scale-text { margin: 0; font-size: 15px; line-height: 1.6; color: var(--v3-body); }
.v3-scale-card .v3-arrow { margin-top: auto; padding-bottom: 0; font-size: 15px; color: var(--v3-scale); }

/* Tag description replaces the fallback copy when present */
.v3-desc ~ .v3-fallback, .v3-desc ~ .v3-desc { display: none; } /* page excerpt, then tag description, then fallback */

/* Scale glyph: draw the highlighted ring on hover */
.v3-scale-card:hover .v3-glyph-on { animation: v3-glyph 0.6s ease; }
@keyframes v3-glyph { 0% { opacity: 0.2; } 100% { opacity: 1; } }

/* Photo strip */
.v3-photo-strip { margin: 0 auto; padding-top: 72px; }
.v3-photo-strip img {
    display: block;
    width: 100%;
    aspect-ratio: 21 / 9;
    object-fit: cover;
    object-position: 50% 45%;
    border-radius: 22px;
    background: var(--v3-sage);
}

/* Featured essay */
.v3-featured {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
    padding-top: 88px;
    padding-bottom: 88px;
}
.v3-featured-quote { flex: 1 1 420px; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.v3-featured-quote blockquote {
    margin: 0;
    padding: 0;
    border: 0;
    font-family: var(--v3-serif);
    font-style: italic;
    font-weight: 400;
    font-size: clamp(28px, 3vw, 38px);
    line-height: 1.3;
    color: var(--v3-moss);
    font-variation-settings: "SOFT" 100, "WONK" 1;
}
.v3-featured-quote figcaption { font-size: 15px; color: var(--v3-muted); }
.v3-featured-copy { flex: 1 1 420px; display: flex; flex-direction: column; gap: 16px; }
.v3-featured-copy p { margin: 0; font-size: 17px; line-height: 1.65; color: var(--v3-body); }

/* Latest + events */
.v3-latest {
    display: flex;
    flex-wrap: wrap;
    gap: 56px;
    padding-bottom: 88px;
}
.v3-latest-list { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; }
.v3-latest-list > .v3-h2 { margin-bottom: 8px; font-size: 32px; }

/* Note cards are styled in v5.css section 12 */

.v3-events-aside {
    flex: 1 1 340px;
    align-self: flex-start;
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 30px;
    background: var(--v3-sage);
    border-radius: 22px;
}
.v3-events-aside .v3-h2 { font-size: 28px; }
.v3-events-empty { margin: 0; font-size: 15px; color: var(--v3-body); }

.v3-event-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 16px; }
.v3-event-list[hidden], .v3-event[hidden] { display: none; }
.v3-event-link { display: flex; gap: 16px; align-items: flex-start; color: var(--v3-ink); text-decoration: none; }
.v3-event-link:hover { color: var(--v3-ink); }
.v3-event-link:hover h3 { text-decoration: underline; text-decoration-color: var(--v3-scale, var(--v3-clay)); text-underline-offset: 4px; }
.v3-event-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.v3-event-body h3 { margin: 0; font-family: var(--v3-sans); font-variation-settings: normal; font-size: 17px; font-weight: 600; line-height: 1.35; }
.v3-event-desc, .v3-event-when { font-size: 14px; line-height: 1.5; color: var(--v3-body); }
.v3-event-when { color: var(--v3-muted); }
.v3-event-scale { display: none; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--v3-scale); }
.v3-event[data-tag] .v3-event-scale { display: flex; }

.v3-date-tile {
    flex: 0 0 62px;
    height: 70px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: var(--v3-white);
    border-radius: 12px;
}
.v3-date-mon { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--v3-scale, var(--v3-clay)); }
.v3-date-day { font-family: var(--v3-serif); font-size: 26px; font-weight: 600; line-height: 1.1; }
.v3-date-tile.is-tbc .v3-date-day { font-size: 15px; }

/* Invitation band */
.v3-invite {
    position: relative;
    overflow: hidden;
    background: var(--v3-moss);
    color: var(--v3-paper);
}
.v3-invite-river { position: absolute; top: 0; left: 0; width: 100%; height: 120px; }
.v3-invite-inner {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 104px;
    padding-bottom: 88px;
}
.v3-invite-copy { flex: 1 1 520px; display: flex; flex-direction: column; gap: 16px; }
.v3-invite-copy .v3-h2 { color: var(--v3-paper); font-size: clamp(32px, 3.8vw, 48px); line-height: 1.12; }
.v3-invite-copy p { margin: 0; max-width: 34em; font-size: 17px; line-height: 1.6; color: #CFD8C6; }

/* Subscribe */
.v3-subscribe { padding-top: 80px; padding-bottom: 80px; scroll-margin-top: 100px; }
.v3-subscribe-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    padding: clamp(28px, 5vw, 52px);
    background: var(--v3-white);
    border: 1px solid var(--v3-border);
    border-radius: 24px;
}
.v3-subscribe-copy { flex: 1 1 380px; display: flex; flex-direction: column; gap: 10px; }
.v3-subscribe-copy .v3-h2 { font-size: 34px; }
.v3-subscribe-copy p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--v3-body); }

.v3-subscribe-form { flex: 1 1 380px; display: flex; flex-direction: column; gap: 8px; }
.v3-subscribe-form label { font-size: 14px; font-weight: 600; }
.v3-subscribe-row { display: flex; flex-wrap: wrap; gap: 10px; }
.v3-subscribe-row input {
    flex: 1 1 220px;
    min-height: 52px;
    padding: 0 18px;
    border: 1px solid var(--v3-field);
    border-radius: 999px;
    background: var(--v3-paper);
    color: var(--v3-ink);
    font: inherit;
    font-size: 16px;
}
.v3-subscribe-row .v3-btn { min-height: 52px; }

.v3-btn-busy, .v3-form-msg { display: none; }
.v3-subscribe-form.loading .v3-btn-idle { display: none; }
.v3-subscribe-form.loading .v3-btn-busy { display: inline; }
.v3-form-msg { margin: 4px 0 0; font-size: 15px; }
.v3-subscribe-form.success .v3-form-success { display: block; color: var(--v3-moss); }
.v3-subscribe-form.error .v3-form-error { display: block; color: var(--v3-clay); }

/* Footer */
.gh-footer.v3-footer {
    margin: 0;
    padding: 0;
    background: transparent;
    color: var(--v3-muted);
    border-top: 1px solid var(--v3-border);
}
.v3-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px 24px;
    padding-top: 32px;
    padding-bottom: 44px;
    font-size: 14px;
}
.v3-footer-inner p { margin: 0; }
.v3-footer-nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.v3-footer-nav a, .v3-footer-small a { color: var(--v3-ink); padding: 10px 0; }
.v3-footer-nav a:hover { color: var(--v3-moss); text-decoration: underline; }
.v3-footer-small { flex-basis: 100%; font-size: 13px; }
.v3-footer-small a { padding: 0; text-decoration: underline; }

/* 7. Feed cards (tag, author and paginated pages)
   ------------------------------------------------------------------------- */
.gh-card-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--v3-scale, var(--v3-moss));
    font-family: var(--v3-sans);
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}
.gh-card-title { font-family: var(--v3-serif); font-weight: 600; }
.gh-card-link:hover .gh-card-title { opacity: 1; text-decoration: underline; text-decoration-color: var(--v3-clay); text-underline-offset: 4px; }
.gh-card-image img { border-radius: 14px; }
.gh-container-title { font-family: var(--v3-serif); font-weight: 400; font-size: 32px; text-transform: none; letter-spacing: 0; }

/* Tag archive header */
.v3-tag-kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 0 12px;
    font-size: 14px;
    font-weight: 600;
    color: var(--v3-scale, var(--v3-muted));
}
.v3-tag-kicker:not(:has(svg)) { gap: 0; }
.v3-tag-head[data-tag] .gh-article-title { color: var(--v3-ink); }
.v3-tag-head.is-local, .v3-tag-head.is-bioregional, .v3-tag-head.is-planetary, .v3-tag-head.is-finance {
    border-bottom: 3px solid var(--v3-scale);
    padding-bottom: 32px;
}

/* 8. Articles
   ------------------------------------------------------------------------- */
/* .v3-progress replaced by .v5-progress (v5.css section 2) */

.v3-crumb {
    margin: 0 0 16px;
    font-size: 14px;
    font-weight: 500;
    color: var(--v3-muted);
}
.v3-crumb a { color: var(--v3-muted); }
.v3-crumb a:hover { color: var(--v3-ink); text-decoration: underline; }
.v3-crumb .gh-article-tag {
    margin: 0;
    font-size: inherit;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
    color: var(--v3-scale, var(--v3-moss));
}

.gh-article-title { font-weight: 400; letter-spacing: -0.02em; text-wrap: balance; }
.gh-article-excerpt {
    font-family: var(--v3-serif);
    font-style: italic;
    font-variation-settings: "SOFT" 100, "WONK" 1;
    color: var(--v3-body);
}
.gh-article-author-name { font-family: var(--v3-sans); }
.gh-article-image img { border-radius: 18px; }

.gh-content {
    --content-font-size: 18px;
    font-family: var(--v3-sans);
    color: var(--v3-body);
}
.gh-content > p, .gh-content > ul, .gh-content > ol { line-height: 1.75; }
.gh-content strong { color: var(--v3-ink); }
.gh-content :is(h2, h3) { color: var(--v3-ink); scroll-margin-top: 110px; }
.gh-content > h2 { font-weight: 400; }
.gh-content a { color: var(--v3-moss); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--v3-moss) 45%, transparent); }
.gh-content a:hover { color: var(--v3-ink); text-decoration-color: currentColor; }

.gh-content > blockquote:not([class]),
.gh-content > blockquote.kg-blockquote-alt {
    margin-block: 40px;
    padding: 0 0 0 24px;
    border-left: 3px solid var(--v3-clay);
    font-family: var(--v3-serif);
    font-style: italic;
    font-size: clamp(24px, 2.4vw, 30px);
    line-height: 1.35;
    color: var(--v3-moss);
    font-variation-settings: "SOFT" 100, "WONK" 1;
}
.gh-content > blockquote.kg-blockquote-alt { border-left: 0; padding: 0; text-align: center; }

.gh-content .kg-callout-card {
    border-radius: 14px;
    border-left: 4px solid var(--v3-river);
    background: #E3ECEC !important;
    color: var(--v3-ink);
}
.gh-content :is(.kg-image-card, .kg-gallery-card) img { border-radius: 12px; }
.gh-content figcaption { color: var(--v3-muted); font-size: 14px; }

.v3-article-end { margin: 48px 0 0; }
.v3-reply {
    margin: 0;
    padding-top: 28px;
    border-top: 1px solid var(--v3-border);
    font-size: 16px;
    line-height: 1.6;
    color: var(--v3-body);
}

/* Table of contents, built by v3.js on long essays (wide screens only) */
.v3-toc { display: none; }
@media (min-width: 1200px) {
    .v3-toc {
        display: block;
        grid-column: main-end / wide-end;
        grid-row: 1 / span 400;
        align-self: start;
        position: sticky;
        top: 120px;
        margin: 0 0 0 48px !important;
        max-width: 220px;
        font-size: 14px;
    }
    .v3-toc p { margin: 0 0 10px; font-weight: 600; color: var(--v3-ink); font-size: 14px; }
    .v3-toc ol { margin: 0; padding: 0; list-style: none; }
    .v3-toc li { margin: 0; padding: 0; font-size: 14px; line-height: 1.4; }
    .v3-toc a {
        display: block;
        padding: 8px 0 8px 14px;
        border-left: 2px solid var(--v3-border);
        color: var(--v3-body);
        text-decoration: none;
    }
    .v3-toc a:hover { color: var(--v3-ink); border-left-color: var(--v3-moss); }
    .v3-toc a[aria-current="true"] { color: var(--v3-ink); border-left-color: var(--v3-clay); font-weight: 600; }
}

/* 9. About page
   ------------------------------------------------------------------------- */
.v3-about-intro {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 56px;
    padding-top: 40px;
    padding-bottom: 40px;
}
.v3-about-portrait { flex: 1 1 340px; max-width: 480px; margin: 0; display: flex; flex-direction: column; gap: 10px; }
.v3-about-portrait img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 22px; }
.v3-about-portrait figcaption { font-size: 14px; color: var(--v3-muted); }
.v3-about-copy { flex: 999 1 420px; display: flex; flex-direction: column; gap: 22px; }
.v3-about-copy .v3-section-lede { font-size: 19px; }
.v3-about .gh-article { margin-bottom: 72px; }

/* 10. Events page
   ------------------------------------------------------------------------- */
.v3-page-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding-top: 40px;
    padding-bottom: 48px;
}
.v3-page-head-copy { flex: 1 1 460px; display: flex; flex-direction: column; gap: 16px; }
.v3-page-head-img { flex: 0 1 420px; width: 100%; max-width: 420px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 22px; }

.v3-events-body { display: flex; flex-direction: column; gap: 24px; padding-bottom: 64px; }
.v3-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.v3-chip {
    min-height: 44px;
    padding: 0 18px;
    border: 1px solid var(--v3-field);
    border-radius: 999px;
    background: transparent;
    color: var(--v3-ink);
    font-family: var(--v3-sans);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.v3-chip:hover { border-color: var(--v3-ink); }
.v3-chip[aria-pressed="true"] { background: var(--v3-moss); border-color: var(--v3-moss); color: var(--v3-white); }

.v3-event-list.is-full { gap: 0; }
.v3-event-list.is-full .v3-event-link { padding: 22px 0; border-bottom: 1px solid var(--v3-border); gap: 22px; }
.v3-event-list.is-full .v3-date-tile { flex-basis: 72px; height: 80px; background: var(--v3-white); border: 1px solid var(--v3-border); }
.v3-event-list.is-full .v3-event-body h3 { font-family: var(--v3-serif); font-variation-settings: "SOFT" 70, "WONK" 0; font-size: 22px; }
.v3-event-list.is-past .v3-date-tile { background: transparent; }
.v3-event-list.is-past .v3-event-link { opacity: 0.85; }
.v3-past { display: flex; flex-direction: column; gap: 8px; margin-top: 32px; }
.v3-past[hidden] { display: none; }

.v3-invite-card {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px 40px;
    margin-bottom: 0;
}
.v3-invite-card > div {
    flex: 1 1 420px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.v3-invite-card p { margin: 0; font-size: 17px; line-height: 1.6; color: var(--v3-body); }
.v3-events-page .v3-invite-card {
    padding-block: clamp(28px, 5vw, 48px);
    padding-inline: clamp(28px, 5vw, 48px);
    max-width: calc(var(--v3-wrap) - var(--v3-gutter) * 2);
    background: var(--v3-sage);
    border-radius: 24px;
}
@media (max-width: 1180px) {
    .v3-events-page .v3-invite-card { margin-inline: var(--v3-gutter); width: auto; }
}

/* 11. Scroll reveal (opt-in; only hidden once v3.js confirms it can reveal)
   ------------------------------------------------------------------------- */
.v3-js .v3-reveal:not(.is-in) { opacity: 0; transform: translateY(12px); }
.v3-js .v3-reveal { transition: opacity 0.4s ease-out, transform 0.4s ease-out; }

/* 12. Reduced motion
   ------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    .v3-ripple { animation: none; opacity: 0; }
    .v3-river { animation: none; }
    .v3-ring, .v3-ring circle, .v3-scale-btn, .v3-chip, .v3-arrow span, .v3-btn, .v3-scale-card { transition: none; }
    .v3-scale-card:hover .v3-glyph-on { animation: none; }
    .v3-js .v3-reveal, .v3-js .v3-reveal:not(.is-in) { opacity: 1; transform: none; transition: none; }
}
.v3-featured-quote figcaption { text-align: left; }
