/* 
 ---------------------------------
 |   LAST UPDATED: 2026-04-13    |
 ---------------------------------
 */

/* VIEWPORT HEADNOTE: Standard boundaries 1024, 768–1023, ≤767. min-width 1200px and 1439px are desktop tiers, not standard boundaries. max-width 479px is not tied to our device viewport sizes; used for small-mobile refinement only. */

/* ========================================================================
   VIEWPORT-AGNOSTIC (base styles: font-face, :root, resets)
   ======================================================================== */

    /* Epicene Text Font Face Declarations */
        @font-face {
            font-family: 'etl';
            font-style: normal;
            font-weight: 300;
            font-display: swap;
            src: url('../fonts/epicene/text/epicene-text-light.woff2') format('woff2');
        }

        @font-face {
            font-family: 'etl';
            font-style: italic;
            font-weight: 300;
            font-display: swap;
            src: url('../fonts/epicene/text/epicene-text-light-italic.woff2') format('woff2');
        }

        @font-face {
            font-family: 'et';
            font-style: normal;
            font-weight: 400;
            font-display: swap;
            src: url('../fonts/epicene/text/epicene-text-regular.woff2') format('woff2');
        }

        @font-face {
            font-family: 'et';
            font-style: italic;
            font-weight: normal;
            font-display: swap;
            src: url('../fonts/epicene/text/epicene-text-regular-italic.woff2') format('woff2');
        }

        @font-face {
            font-family: 'etm';
            font-style: normal;
            font-weight: 500;
            font-display: swap;
            src: url('../fonts/epicene/text/epicene-text-medium.woff2') format('woff2');
        }

        @font-face {
            font-family: 'etm';
            font-style: italic;
            font-weight: 500;
            font-display: swap;
            src: url('../fonts/epicene/text/epicene-text-medium-italic.woff2') format('woff2');
        }
        @font-face {
            font-family: 'etb';
            font-style: normal;
            font-weight: 700;
            font-display: swap;
            src: url('../fonts/epicene/text/epicene-text-bold.woff2') format('woff2');
        }

        @font-face {
            font-family: 'etb';
            font-style: italic;
            font-weight: 700;
            font-display: swap;
            src: url('../fonts/epicene/text/epicene-text-bold-italic.woff2') format('woff2');
        }
        @font-face {
            font-family: 'etbl';
            font-style: normal;
            font-weight: 900;
            font-display: swap;
            src: url('../fonts/epicene/text/epicene-text-black.woff2') format('woff2');
        }

        @font-face {
            font-family: 'etbl';
            font-style: italic;
            font-weight: 900;
            font-display: swap;
            src: url('../fonts/epicene/text/epicene-text-black-italic.woff2') format('woff2');
        }

    /* Epicene Display Font Face Declarations */
        @font-face {
            font-family: 'edl';
            font-style: normal;
            font-weight: 300;
            font-display: swap;
            src: url('../fonts/epicene/display/epicene-display-light.woff2') format('woff2');
        }

        @font-face {
            font-family: 'edl';
            font-style: italic;
            font-weight: 300;
            font-display: swap;
            src: url('../fonts/epicene/display/epicene-display-light-italic.woff2') format('woff2');
        }
        @font-face {
            font-family: 'ed';
            font-style: normal;
            font-weight: 400;
            font-display: swap;
            src: url('../fonts/epicene/display/epicene-display-regular.woff2') format('woff2');
        }

        @font-face {
            font-family: 'ed';
            font-style: italic;
            font-weight: 400;
            font-display: swap;
            src: url('../fonts/epicene/display/epicene-display-regular-italic.woff2') format('woff2');
        }
        @font-face {
            font-family: 'edm';
            font-style: normal;
            font-weight: 500;
            font-display: swap;
            src: url('../fonts/epicene/display/epicene-display-medium.woff2') format('woff2');
        }

        @font-face {
            font-family: 'edm';
            font-style: italic;
            font-weight: 500;
            font-display: swap;
            src: url('../fonts/epicene/display/epicene-display-medium-italic.woff2') format('woff2');
        }

        @font-face {
            font-family: 'edb';
            font-style: normal;
            font-weight: 700;
            font-display: swap;
            src: url('../fonts/epicene/display/epicene-display-bold.woff2') format('woff2');
        }

        @font-face {
            font-family: 'edb';
            font-style: italic;
            font-weight: 700;
            font-display: swap;
            src: url('../fonts/epicene/display/epicene-display-bold-italic.woff2') format('woff2');
        }
        @font-face {
            font-family: 'edbl';
            font-style: normal;
            font-weight: 900;
            font-display: swap;
            src: url('../fonts/epicene/display/epicene-display-black.woff2') format('woff2');
        }

        @font-face {
            font-family: 'edbl';
            font-style: italic;
            font-weight: 900;
            font-display: swap;
            src: url('../fonts/epicene/display/epicene-display-black-italic.woff2') format('woff2');
        }
    /* CommitMono Variable Font Declaration */
        @font-face {
            font-family: 'CommitMono';
            font-style: normal;
            font-weight: 100 900;
            font-display: swap;
            font-variation-settings: 'wght' 350;
            src: url('../fonts/commitmono/CommitMonoVar.woff2') format('woff2');
        }

        @font-face {
            font-family: 'CommitMono';
            font-style: italic;
            font-weight: 100 900;
            font-display: swap;
            font-variation-settings: 'wght' 350;
            src: url('../fonts/commitmono/CommitMonoVar.woff2') format('woff2');
        }
:root {
    --success-color: green;
    --error-color: #F44336;
    --ease-transition: 0.3s cubic-bezier(0.215, 0.61, 0.355, 1);
    --scale: 1;
    --imgScale: 1;
    
    /* Font fallback settings to ensure consistent typography */
    --font-fallback: 'Ibarra Real Nova', Georgia, 'Times New Roman', serif;
    
    /* Global font features that should always be enabled */
    --font-features-global: 'liga' 1, 'kern' 1, 'calt' 1, 'onum' 1;
    
    /* Contextual font features for specific use cases */
    --font-features-small-caps: 'smcp' 1;
    --font-features-superscript: 'sups' 1;
    --font-features-subscript: 'infs' 1;
    --font-features-fractions: 'frac' 1;
    --font-features-case: 'case' 1;
    --font-features-stylistic: 'ss01' 1;
    
    /* Colors from Sip-palette.json */
    --swiss-coffee: #DBD2D8; /* Swiss Coffee */
    /* Footnote ref + inline TOC link hover underline (footnotes.css sup.footnote-ref a) */
    --footnote-ref-decoration-color: #DECE7D;
    --cannon-pink: #9B5B82; /* Cannon Pink */
    --strikemaster: #86446D; /* Strikemaster */
    --port: #5C1E45; /* Port */
    --revolver: #341627; /* Revolver */

    /*not actually in use anywhere */ 
    --eden: #1E585B; /* Eden */
    --tasman: #D2DBD3; /* Tasman */
    --may-green: #498543; /* May Green */
    --westar: #DBD9D3; /* Westar */
    --sandwisp: #DDCD7C; /* Sandwisp */
    --jumbo: #898883; /* mid-gray ('jumbo') */
    --mariner: #3571CE; /* Mariner (blue) */

    
    /* epicene-text variants */
    --et: 'et', 'Ibarra Real Nova', serif;
    --etl: 'etl', 'Ibarra Real Nova', serif;
    --etm: 'etm', 'Ibarra Real Nova', serif;
    --etb: 'etb', 'Ibarra Real Nova', serif;
    --etbl: 'etbl', 'Ibarra Real Nova', serif;

    /* epicene-text italic variants -     no longer needed 
        bc font-face redefined so both variants have same name
    -et: 'et', 'Ibarra Real Nova', serif;
    -etl: 'etli', 'Ibarra Real Nova', serif;
    -etm: 'etm', 'Ibarra Real Nova', serif;
    -etb: 'etb', 'Ibarra Real Nova', serif;
    -etbl: 'etbl', 'Ibarra Real Nova', serif;
     */
    /* EpiceneDisplay variants */
    --edl: 'edl', 'Ibarra Real Nova', serif;
    --ed: 'ed', 'Ibarra Real Nova', serif;
    --edm: 'edm', 'Ibarra Real Nova', serif;
    --edb: 'edb', 'Ibarra Real Nova', serif;
    --edbl: 'edbl', 'Ibarra Real Nova', serif;

    /* EpiceneDisplay italic variants - no longer needed 
        bc font-face redefined so both variants have same name
    -edl: 'edl', 'Ibarra Real Nova', serif;
    -edr: 'ed', 'Ibarra Real Nova', serif;
    -edm: 'edm', 'Ibarra Real Nova', serif;
    -edb: 'edb', 'Ibarra Real Nova', serif;
    -edbl: 'edbl', 'Ibarra Real Nova', serif;
     */
    /* CommitMono variants */
    --cm: 'CommitMono', 'Fira Code', monospace;
    --cm: 'CommitMono', 'Fira Code', monospace;
    --cml: 'CommitMono', 'Fira Code', monospace;
    --cml: 'CommitMono', 'Fira Code', monospace;
    --cmb: 'CommitMono', 'Fira Code', monospace;
    --cmb: 'CommitMono', 'Fira Code', monospace;
    
    /* Font family variables for theme integration */
    --font-body: 'et', 'Ibarra Real Nova', serif;
    --font-heading: 'ed', 'Ibarra Real Nova', serif;
    --font-mono: 'CommitMono', 'Fira Code', monospace;
    
    /* Legacy font variables for compatibility */
    --font1: 'ed', 'Ibarra Real Nova', serif;
    --font2: 'et', 'Ibarra Real Nova', serif;
    --font3: 'CommitMono', 'Fira Code', monospace;
    
    /* Ghost font settings for theme integration (Portal/sign-in reads these; ISSUES-LIST sitewide) */
    --gh-font-heading: 'ed', 'Ibarra Real Nova', serif;
    --gh-font-body: var(--edb);

    --fontSizeBlog: 18px;  /* 18 is correct value. 20 is too large. */
    --fontSizeBlogGlyph: 19px;
    --fontSizeH1: 60px;   /* h1 line 474: font-size: 72px */
    --fontSizeH2: 54px;   /* h2 line 477: font-size: 60px */
    --fontSizeH3: 44px;   /* h3 line 480: font-size: 44px */
    --fontSizeH4: 36px; /* h4 line 483: font-size: 36px */
    --fontSizeH5: 28px;   /* h5 line 486: font-size: 28px */
    --fontSizeH6: 24px;   /* h6 line 489: font-size: 24px */
    --fontSizeH7: 20px;   /* extra: match body/large small, for compatibility */
    --fontSizeH8: 18px;   /* extra: match fixed small, for compatibility */
    --fontSizeFluid1: calc(14 / 1680 * 100vw);
    --fontSizeFluid2: calc(16 / 1680 * 100vw);
    --fontSizeFluid3: calc(18 / 1680 * 100vw);
    --fontSizeFluid4: calc(24 / 1680 * 100vw);
    --fontSizeFluid5: calc(30 / 1680 * 100vw);
    --fontSizeFluid5_2: calc(32 / 1680 * 100vw);
    --fontSizeFluid5_5: calc(36 / 1680 * 100vw);
    --fontSizeFluid6: calc(48 / 1680 * 100vw);
    --fontSizeFluid6_5: calc(58 / 1680 * 100vw);
    --fontSizeFluid7: calc(64 / 1680 * 100vw);
    --fontSizeFluid7_5: calc(72 / 1680 * 100vw);
    --fontSizeFluid8: calc(80 / 1680 * 100vw);
    --fontSizeFluid9: calc(100 / 1680 * 100vw);
    --fontSizeFluid10: calc(120 / 1680 * 100vw);

    /* Inline post TOC (toc-card): three viewport bands (ISSUES ### tocbot); --toc-inline-font-size is the active size */
    --toc-FtSize-mobile: 10px;
    --toc-FtSize-tablet: 12px;
    --toc-FtSize-desktop: 14px;
    --toc-inline-font-size: var(--toc-FtSize-mobile);
}

@media (min-width: 768px) {
    :root {
        --toc-inline-font-size: var(--toc-FtSize-tablet);
    }
}

@media (min-width: 1024px) {
    :root {
        --toc-inline-font-size: var(--toc-FtSize-desktop);
    }
}

/* ========================================================================
   THEME SURFACE VARS — Light / Dark / Auto (Elegant stays inline in default.hbs)
   Auto: light baseline; OS dark via prefers-color-scheme unless .theme-light (Dawn-style)
   ======================================================================== */

html.theme-light:root,
html.color-scheme-auto:root {
    color-scheme: light;
    --background-color: #ffffff;
    --text-color: #000000;
    --text-60-opac: #767676;
    --text-color-lower-opac: #a4a4a4;
    --placeholder-color: #f5f5f5;
    --port: #5C1E45;
}

html.theme-dark:root {
    color-scheme: dark;
    --background-color: #080808;
    --text-color: #FEFCF8;
    --text-60-opac: #9c9c9c;
    --text-color-lower-opac: #6b6b6b;
    --placeholder-color: #393939;
    --port: #86446D;
}

/* 
@media (prefers-color-scheme: dark) {
    html.color-scheme-auto:not(.theme-light):root {
        color-scheme: dark;
        --background-color: #080808;
        --text-color: #FEFCF8;
        --text-60-opac: #9c9c9c;
        --text-color-lower-opac: #6b6b6b;
        --placeholder-color: #393939;
        --port: #86446D;
    }
} */

/* ========================================================================
   VIEWPORT CONVENTION (use across all pkj-zenith CSS)
   -----------------------------------------------------------------------
   DESKTOP:  min-width only (no max). Use 1024px, 1200px, 1439px, 1920px.
   TABLET:   (min-width: 768px) and (max-width: 1023px) — always bounded.
   MOBILE:   max-width: 767px — so 768px is tablet-only, no collision.
   Optional: max-width: 479px for "small mobile" refinements.
   When the same rules apply to both tablet and mobile, use max-width: 1023px
   and label "TABLET + MOBILE (≤1023px)" to avoid duplicating CSS.
   ======================================================================== */




* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    -moz-font-feature-settings: "liga" on;
    font-feature-settings: var(--font-features-global);

    
    /* Comprehensive font attributes for optimal rendering */
    letter-spacing: auto;
    font-optical-sizing: auto;
    font-size-adjust: none;
    font-variant-alternates: normal;
    font-variant-caps: normal;
    font-variant-east-asian: normal;
    font-variant-ligatures: normal;
    font-variant-numeric: normal;
    font-variant-position: normal;
    font-variation-settings: normal;
    vertical-align: baseline;
    font-kerning: auto;
}

/* html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
    margin: 0;
    padding: 0;
    border: 0;
    font: inherit;
    font-size: 100%;
    vertical-align: baseline;
} */

/* Specific heading font rules */
h1,
h1 > * {
    font-family: var(--edb); /* Epicene Display */
    font-weight: 700; /* Bold */
}
h2,
h2 > * {
    font-family: var(--edl); /* Epicene Display */
    font-weight: 300; /* Light */
}

h3,
h3 > * {
    font-weight: 400;
}

h4,
h4 > * {
    font-weight: 300;
}

h5,
h5 > *,
h6,
h6 > * {
    font-weight: 400;
}

/* Specific h2 elements that should use bold */
.latest-post-title h2,
.related-card h2 {
    font-family: var(--edb); /* Epicene Display */
    font-weight: 700; /* Bold */
    font-optical-sizing: auto;
}

.section-header h2 {
    font-family: var(--edl); /* Epicene Display Italic */
    font-style: italic;
    font-weight: 300;
    font-optical-sizing: auto;
}

.logo-text,
.nav li,
.big-text,
.footer-nav,
.footer-links-label {
    font-family: var(--font1);
    font-weight: 300;
    letter-spacing: -0.03em;
}

/* Common properties for all headings */
h1, h2, h3, h4, h5, h6 {
    padding-top: calc(2rem * var(--scale));
    padding-bottom: calc(1rem * var(--scale) * 1.25);
}

h1 {
    font-size: calc(72px * var(--scale)); /* $text-max equivalent, +25% */
    line-height: 90%;
    font-family: var(--edbl);
}

h2 {
    font-size: calc(60px * var(--scale)); /* $text-xxl equivalent */
    line-height: 110%;
    font-family: var(--edb);
}

h3 {
    font-size: round(nearest, calc(44px * var(--scale)), 2px); /* $text-xl equivalent */
    padding-top: calc(44px * var(--scale) * 1.25);
    line-height: 110%;
    font-family: var(--ed);
    font-weight: 400; /* UA headings are bold; Epicene Display regular is 400 (ISSUES-LIST-CURRENT2). */
}

h4 {
    font-size: round(nearest, calc(36px * var(--scale)), 2px); /* ~50% of h1 size */
    padding-top: calc(36px * var(--scale) * 1.25);
    line-height: 110%;
    font-family: var(--edl);
    font-weight: 300;
}

h5 {
    font-size: calc(28px * var(--scale)); /* $text-md equivalent */
    padding-top: calc(28px * var(--scale) * 1.25);
    line-height: 125%;
    font-family: var(--ed);
    font-weight: 400;
}

h6 {
    font-size: calc(24px * var(--scale)); /* $text-md equivalent */

    line-height: 125%;
    font-family: var(--ed);
    font-weight: 400;
}

.big-text {
    font-size: 32px;
}

body, html {
    background-color: var(--background-color);
    color: var(--text-color);
    /* Ensure smart quotes are used */
    quotes: "“" """ "'" "'";
}

body, p, small, figcaption {
    font-family: var(--et); /* Epicene Text Regular */
    font-size: 20px; /* $text-sm equivalent */
    line-height: 1.4;
    letter-spacing: 0;
    font-weight: 400;
    font-optical-sizing: auto;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-feature-settings: var(--font-features-global);
}

input, button, .kg-btn, .kg-header-card-button, .button, textarea {
    margin: 0px;
    border-radius: 0px;
    font-family: var(--font3);
    font-weight: 400;
}

p, li {
    font-size: var(--fontSizeBlog);
    line-height: 1.4;

    /* Ensure smart quotes are used */
    font-feature-settings: var(--font-features-global);
}

br {
    line-height: 0.5rem; /* Creates 0.5rem (10px desktop, 9px mobile) of vertical space */
}

a {
    text-decoration: underline;
    text-decoration-color: var(--strikemaster);
}

small, figcaption {
    line-height: 1.4;
    font-size: 16px;
}

figcaption {
    margin-top: calc(0.6vw * var(--scale));
    text-align: left;
}


strong, b {
    font-weight: 700;
}
/* Italic handling for normal weight text */
em, i {
    font-style: italic;
}



/* Bold and italic combination */
strong em, strong i, b em, b i,
em strong, em b, i strong, i b {
    font-weight: 700;
    font-style: italic;
}

/* Italic handling in headings */
h1 em, h1 i, h1 > * em, h1 > * i,
h2 em, h2 i, h2 > * em, h2 > * i 
h3 em, h3 i, h3 > * em, h3 > * i,
h4 em, h4 i, h4 > * em, h4 > * i,
h5 em, h5 i, h5 > * em, h5 > * i,
h6 em, h6 i, h6 > * em, h6 > * i {
    font-style: italic; /* Epicene Display Bold Italic */
}

/* epicene-text italic variants
em:not([class*="--ed"]):not([class*="--cm"]),
i:not([class*="--ed"]):not([class*="--cm"]) {
    font-family: var(--et);
} */

/* Ensure smart quotes work across all content */
.post-content,
.gh-content,
article,
p,
blockquote {
    font-feature-settings: var(--font-features-global);
    text-rendering: optimizeLegibility;
}

/* Headings get discretionary ligatures for decorative effect */
h1, h2, h3 {
    font-feature-settings: var(--font-features-global), 'dlig' 1;
    text-rendering: optimizeLegibility;
}

/* Force smart quotes with CSS replacement */
.post-content,
.gh-content,
article,
p,
blockquote {
    quotes: """ """ "'" "'";
}
.footnotes-container p {
    margin-bottom: calc(1vw * var(--scale));
}
/* Replace straight quotes with smart quotes using CSS */
.post-content,
.gh-content,
article,
p,
blockquote {
    font-feature-settings: var(--font-features-global);
}

/* Additional smart quote support */
.post-content,
.gh-content,
article,
p,
blockquote {
    -webkit-font-feature-settings: var(--font-features-global);
    -moz-font-feature-settings: var(--font-features-global);
    font-feature-settings: var(--font-features-global);
}

/* EpiceneDisplay italic variants (use defined variables and set italic explicitly) */
/* Generic Epicene Display italic (regular weight) */
em[class*="--ed"],
i[class*="--ed"] {
    font-family: var(--ed);
    font-style: italic;
    font-weight: 400; /* match regular italic weight */
}

/* Weight-specific Epicene Display italics override the generic */
em[class*="--edl"],
i[class*="--edl"] { /* light italic */
    font-family: var(--edl);
    font-style: italic;
    font-weight: 300;
}

em[class*="--edm"],
i[class*="--edm"] { /* medium italic */
    font-family: var(--edm);
    font-style: italic;
    font-weight: 500;
}

em[class*="--edb"],
i[class*="--edb"] { /* bold italic */
    font-family: var(--edb);
    font-style: italic;
    font-weight: 700;
}

em[class*="--edbl"],
i[class*="--edbl"] { /* black italic */
    font-family: var(--edbl);
    font-style: italic;
    font-weight: 900;
}

/* CommitMono italic variants */
em[class*="--cm"],
i[class*="--cm"] {
    font-family: var(--cm);
    font-style: italic;
}

/* Specific weight italic variants for Epicene Text */
em[class*="--et"],
i[class*="--et"] { /* default text italic (regular) */
    font-family: var(--et);
    font-style: italic;
    font-weight: 400;
}

em[class*="--etl"],
i[class*="--etl"] {
    font-family: var(--etl);
    font-style: italic;
    font-weight: 300;
}

em[class*="--etm"],
i[class*="--etm"] {
    font-family: var(--etm);
    font-style: italic;
    font-weight: 500;
}

em[class*="--etb"],
i[class*="--etb"] {
    font-family: var(--etb);
    font-style: italic;
    font-weight: 700;
}

em[class*="--etbl"],
 i[class*="--etbl"] {
    font-family: var(--etbl);
    font-style: italic;
    font-weight: 900;
}

/* CommitMono weight-specific italics */
em[class*="--cml"],
i[class*="--cml"] {
    font-family: var(--cml);
    font-style: italic;
    font-weight: 300;
}

em[class*="--cmb"],
i[class*="--cmb"] {
    font-family: var(--cmb);
    font-style: italic;
    font-weight: 700;
}

button, .kg-btn, .kg-header-card-button, .button {
    background-color: var(--text-color);
    color: var(--background-color);
    font-size: 18px;
    padding: 16px 42px;
    line-height: 100%;
    border: none;
    cursor: pointer;
    border: 1px solid var(--text-color);
    text-decoration: none;
    text-align: center;
}

input, textarea {
    line-height: 100%;
    font-size: 18px;
    padding: 14px 22px;
    border: 1px solid var(--text-color);
    border-radius: 0px;
    width: 100%;
    background-color: transparent;
    color: var(--text-color);
}

textarea {
    resize: none;
    min-height: 35vh;
}
/* edited because post-images were stretching across entire page, may break other image types */
img, figure {
    /* width: 100%;
    height: 100%;
    object-fit: cover; */
    transition: none;
}

/* Disable image zoom/scale hover effects globally on linked media. */
a:hover img:not(.jitter-image__subject),
a:hover figure,
.card-image-link:hover figure,
.card-image-link:hover img:not(.jitter-image__subject),
.card-image-link:hover .placeholder-svg,
.related-card:hover figure,
.related-card:hover img:not(.jitter-image__subject),
.related-card:hover .placeholder-svg,
.latest-post-image-link:hover figure,
.latest-post-image-link:hover img:not(.jitter-image__subject),
.latest-post-image-link:hover .placeholder-svg {
    scale: 1 !important;
    transform: none !important;
}
/* Thick text styling for ==text== markers */
a.thick {
    text-decoration: underline;
    text-decoration-thickness: 3pt;
    text-decoration-color: var(--footnote-ref-decoration-color);
    text-underline-offset: 2px;
}

/* Font consistency fixes for punctuation and symbols */
/* Ensure question marks and dollar signs inherit the same font as surrounding text */
.post-content *:not(pre):not(code) {
    font-feature-settings: var(--font-features-global);
}

/* Force consistent font rendering for specific problematic characters */
.post-content *:not(pre):not(code)::before,
.post-content *:not(pre):not(code)::after {
    font-family: inherit;
}

/* Alternative approach: explicitly style problematic characters */
.post-content *:not(pre):not(code) {
    font-variant-numeric: oldstyle-nums;
    font-feature-settings: var(--font-features-global);
}

/* Contextual font feature classes */
/* Small-caps styling for spans inside paragraphs in article body */
/* Small-caps utility — exclude .info, footnotes, and var(--font3) contexts */
.post-content > p .small-caps:not(.info):not(.footnote-item) {
    font-variant-caps: small-caps;
    font-feature-settings: var(--font-features-global), var(--font-features-small-caps);
    /* Ensure lowercase letters are used so small-caps glyphs are triggered */
    text-transform: lowercase;
}


.em-wide {
    letter-spacing: 0.6em;
  }
/* .all-small-caps {
    font-feature-settings: var(--font-features-global), 'c2sc' 1, var(--font-features-small-caps);
} */

.superscript {
    font-feature-settings: var(--font-features-global), var(--font-features-superscript);
}

.subscript {
    font-feature-settings: var(--font-features-global), var(--font-features-subscript);
}

.fractions {
    font-feature-settings: var(--font-features-global), var(--font-features-fractions);
}

.stylistic {
    font-feature-settings: var(--font-features-global), var(--font-features-stylistic);
}

/* Automatic case feature when text-transform is applied */
[style*="text-transform: uppercase"],
[style*="text-transform:uppercase"],
.text-uppercase {
    font-feature-settings: var(--font-features-global), var(--font-features-case);
}

/* Disable ligatures when needed */
.no-ligatures {
    font-feature-settings: var(--font-features-global), 'liga' 0;
}


.site-main {
    padding-left: calc(5vw  * var(--scale));
}

.subscribe-alert {
    display: none;
    margin-top: calc(1vw * var(--scale));
}

.success-alert {
    color: var(--success-color);
}

.error-alert {
    color: var(--error-color);
}

.subscribe-with-alerts {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.subscribe-alerts {
    max-width: 600px;
}

.subscribe-wrapper {
    display: flex;
    width: 100%;
}

.subscribe-form.error .error-alert,
.subscribe-form.success .success-alert,
.subscribe-form.loading .loading-alert {
   display: block;
}

.subscribe-input {
    width: 350px;
    background-color: rgba(255, 255, 255, 0.7) !important;
}

input::placeholder, textarea::placeholder {
    color: var(--text-color);
    opacity: 0.4;
}

input:focus, textarea:focus {
    outline: none;
}

.hero {
    padding: calc(6vw * var(--scale)) 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero.has-cover {
    min-height: 45vh;
}


/* -------------------------------------------------------------------------
   Lead site-cover hero (first block in <main>): full viewport height + edge bleed.
   Fixed #header overlays the image; .site-content top padding is removed in
   navbar-ornamental.css so the hero is not pushed below a “phantom” nav strip.
   Covers: index (hero first child) and tag pages (hero inside first section).
   ------------------------------------------------------------------------- */
.site-main:has(main > section.hero.has-cover:first-child),
.site-main:has(main > section:first-child section.hero.has-cover) {
    padding-left: 0;
}

@media (min-width: 1024px) {
    .site-main:has(main > section.hero.has-cover:first-child) main > *:not(:first-child),
    .site-main:has(main > section:first-child section.hero.has-cover) main > *:not(:first-child) {
        padding-left: calc(5vw * var(--scale));
        box-sizing: border-box;
    }
}

.site-main:has(main > section.hero.has-cover:first-child) main > section.hero.has-cover:first-child,
.site-main:has(main > section:first-child section.hero.has-cover) main > section:first-child section.hero.has-cover {
    max-height: min(50vh, 500px);
    max-height: min(50dvh, 500px);
    max-height: min(50svh, 500px);
    padding-top: 0;
    padding-bottom: 0;
    padding-left: 0;
    padding-right: 0;
    box-sizing: border-box;
}

.site-main:has(main > section.hero.has-cover:first-child) main > section.hero.has-cover:first-child .hero-content,
.site-main:has(main > section:first-child section.hero.has-cover) main > section:first-child section.hero.has-cover .hero-content {
    padding-left: max(calc(2.5vw * var(--scale)), env(safe-area-inset-left, 0px));
    padding-right: max(calc(2.5vw * var(--scale)), env(safe-area-inset-right, 0px));
}

.hero-cover {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.hero-cover-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

.hero.has-cover::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0);
    z-index: 1;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 2;
    padding: 0 calc(2.5vw * var(--scale));
}

.hero.has-cover .hero-content h1,
.hero.has-cover .hero-content p {
    color: #ffffff;
    text-shadow: 0 3px 4px rgba(0, 0, 0, 0.5);
}

/* Ensure hero h1 uses bold weight */
.hero-content h1 {
    font-family: var(--edbl);
    /* font-size: clamp(72px, 25vw, 120px); */
     /* caused small size on all viewports... */
    line-height: 90%;
    font-optical-sizing: auto;
}


.hero-description-wrapper, 
.hero-description-wrapper p {
    /* max-width: 640px; */
    margin-top: calc(1.6vw * var(--scale));
    font-family: var(--etm);
    font-size: calc(1.4 * var(--fontSizeBlog));
}

.action-wrapper {
    margin-top: calc(2.9vw * var(--scale));
}

/* Hero email signup: full-width flex row, single-line CTA, ~2pt smaller than body (--fontSizeBlog). */
.hero .action-wrapper {
    width: 100%;
    max-width: min(56rem, 100%);
    align-self: stretch;
    box-sizing: border-box;
}

.hero .subscribe-form {
    width: 100%;
}

.hero .subscribe-with-alerts {
    width: 100%;
    align-items: stretch;
}

.hero .subscribe-wrapper {
    display: flex;
    flex-wrap: nowrap;
    align-items: stretch;
    width: 100%;
    min-width: 0;
}

.hero .subscribe-alerts {
    width: 100%;
    max-width: none;
}

.hero .subscribe-input {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    font-size: calc(var(--fontSizeBlog) - 2pt);
}

.hero .subscribe-wrapper button[type="submit"] {
    white-space: nowrap;
    flex: 0 0 auto;
    font-size: calc(var(--fontSizeBlog) - 2pt);
}

.notification {
    z-index: 9999;
    position: fixed;
    display: none;
    visibility: hidden;
    top: 0;
    left: calc(50% + 36px);
    transform: translateX(-50%);
    padding: calc(1.1vw * var(--scale)) calc(4.4vw * var(--scale));
    border: 1px solid var(--text-color);
    background-color: var(--background-color);
}

.notification-icon {
    width: calc(1.4vw * var(--scale));
    min-width: calc(1.4vw * var(--scale));
    height: calc(1.4vw * var(--scale));
    min-height: calc(1.4vw * var(--scale));
    margin-right: calc(0.6vw * var(--scale));
    display: flex;
    align-items: center;
    justify-content: center;
}

.global-notifications.subscribe-false .subscribe-false,
.global-notifications.signin-false .signin-false,
.global-notifications.subscribe-true .subscribe-true,
.global-notifications.signin-true .signin-true,
.global-notifications.stripe-success .stripe-success,
.global-notifications.signup-true .signup-true,
.global-notifications.signup-false .signup-false {
    display: flex;
    justify-content: center;
    align-items: center;
    visibility: visible;
    animation-name: slide-in-down;
    animation-duration: 4s;
    animation-fill-mode: forwards;
} 

/* Hide default global notifications */
.gh-portal-notification-iframe {
    display: none;
}

/* Epicene Display Bold — use on theme chrome; pair with --gh-font-body for Ghost Portal (ISSUES-LIST sitewide). */
.font--edb {
    font-family: var(--edb);
    font-weight: 700;
    font-style: normal;
}

/* Light-DOM hosts: inherit into any non-shadow children; Portal also consumes --gh-font-body. */
#ghost-portal-root,
#sodo-search-root {
    font-family: var(--edb);
}

/* Ghost-injected gh-members-styles defaults to system sans; align with theme body (class .font--edb / --edb). */
.gh-post-upgrade-cta-content,
.gh-post-upgrade-cta {
    font-family: var(--edb) !important;
}

.gh-post-upgrade-cta h2,
.gh-post-upgrade-cta p,
.gh-post-upgrade-cta small,
.gh-post-upgrade-cta a:not(.gh-btn) {
    font-family: inherit !important;
}

.gh-post-upgrade-cta a.gh-btn {
    font-family: var(--edb) !important;
}

.plus-button {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 41px;
    width: 41px;
    min-width: 41px;
    transition: transform var(--ease-transition);
}

.plus-button:hover .vertical-line, 
.plus-button:hover .horizontal-line{
    transform: rotateZ(90deg);
}

.vertical-line {
    position: absolute;
    width: 1px;
    height: 100%;
    background-color: var(--text-60-opac);
    transition: transform var(--ease-transition);
}

.horizontal-line {
    position: absolute;
    height: 1px;
    width: 100%;
    background-color: var(--text-60-opac);
    transition: transform var(--ease-transition);
}

.placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--placeholder-color);
}

.placeholder-svg {
    transition: scale 1s ease;
    width: calc(10vw * var(--scale));
    height: calc(10vw * var(--scale));
}

.light-button {
    background-color: var(--background-color);
    color: var(--text-color);
}

.unstyled-button {
    background-color: transparent;
    border: none;
    color: var(--text-color);
    padding: 0;
}

.underlined {
    text-decoration: underline;
    text-decoration-thickness: 2px;
}

custom-pagination nav{
    display: flex;
    justify-content: center;
    margin: calc(4vw * var(--scale)) auto;
}

.extra-top-margin {
    margin-top: calc(2.8vw * var(--scale));
}

.clipboard-alert {
    display: none;
    position: absolute;
    left: 0;
    bottom: calc(-2.5vw * var(--scale));
}

article {
    overflow-x: hidden;
}

.post-content > * {
    margin-bottom: calc(1.7vw * var(--scale));
}

blockquote,
blockquote .p {
    margin-left: 1.25rem;
    padding-left: 1.25rem;
    padding-top: calc(.25vw * var(--scale));
    padding-bottom: calc(.25vw * var(--scale));
    margin-top: calc(1vw * var(--scale));
    margin-bottom: calc(1vw * var(--scale));
    font-family: var(--etl) !important; /* Epicene Text Light */
    line-height: 125% !important;
    font-size: 1em;/*calc(1em - 2px); $text-md equivalent */
    border-left: 4px solid var(--swiss-coffee);
    font-weight: 300;
    font-optical-sizing: auto;


    font-feature-settings: var(--font-features-global);
}
blockquote > p {
    font-family: var(--etl) !important;
}
/* Nested blockquote support for indented content */
blockquote.indent1 {
    margin-left: calc(4.4vw * var(--scale)); /* Double the base margin */
    padding-left: calc(1.1vw * var(--scale)); /* Half the base padding */
    border-left: none; /* Remove border for indented content - only outer blockquote should have border */
}

blockquote.indent2 {
    margin-left: calc(6.6vw * var(--scale)); /* Triple the base margin */
    padding-left: calc(1.1vw * var(--scale)); /* Half the base padding */
    border-left: none; /* Remove border for indented content - only outer blockquote should have border */
}

blockquote.indent3 {
    margin-left: calc(8.8vw * var(--scale)); /* Quadruple the base margin */
    padding-left: calc(1.1vw * var(--scale)); /* Half the base padding */
    border-left: none; /* Remove border for indented content - only outer blockquote should have border */
}


/* Citation-specific styles */
blockquote.citation footer {
    margin-top: .5em;
    padding: 0 0 0 4px;
    font-family: var(--font3);
    font-weight: 350;
    font-size: 18pt;
    text-align: left;
    font-style: italic;
}

blockquote.citation footer:before {
    content: '— ';
}

ul, ol {
    padding-left: 36px;
}

ul li, ol li{
    margin-bottom: calc(1.4vw * var(--scale));
    /* font-size removed - li already has proper size from p, li rule */
    font-family: var(--font2);
}

p img {
    width: auto;
    max-width: 100%;
}

hr {
    width: 100%;
    height: 1px;
    background-color: var(--text-color);
    border: 0;
    margin: 0;
    padding: 0;
}

.sixty-opac {
    opacity: 0.6;
}

.under-button-wrapper {
    margin-top: calc(0.8vw * var(--scale));
}

.bold-link {
    cursor: pointer;
    font-weight: 700;
    text-decoration: none;
}

.bold-link:hover {
    text-decoration: underline;
}

.author-grid {
    margin-bottom: calc(8vw * var(--scale));
}

.unstyled-list {
    padding-left: 0;
    list-style: none;
}

.fixed-width-button {
    width: 174px;
}

.hidden {
    display: none;
    height: 0px;
    width: 0px;;
}

table {
    font-family: var(--font2);
    border-spacing: 0px;
    width: 100%;
    align-self: center;
    margin-bottom: 1rem;
}

thead {
    background-color: transparent;
    color: var(--text-color);
}

th {
    text-align: left;
    padding: calc(1vw * var(--scale)) calc(1vw * var(--scale));
    font-family: var(--font3); /* CommitMono */
    font-weight: 500;
    font-size: 0.9em; /* 90% of body font-size */
}

td {
    border-bottom: 1px solid var(--text-color);
    padding: calc(1vw * var(--scale)) calc(1vw * var(--scale));
    text-size-adjust: calc(1rem * var(--scale));
    line-height: 125%;
    font-size: 20px; /* Explicit size to prevent inheritance issues */
}

.full-screen {
    min-height: calc(100vh - 55px);
}

@keyframes slide-in-down {
    0% {
      transform: translateY(-100%) translateX(-50%);
    }
    12% {
      transform: translateY(70%) translateX(-50%);
    }
    88% {
      transform: translateY(70%) translateX(-50%);
    }
    100% {
      transform: translateY(-100%) translateX(-50%);
    }
  }





    /* ========================================================================
       1. DESKTOP (1024px+; scale + typography)
       ======================================================================== */
    @media (min-width: 1200px) {
        :root {
            --scale: 1.2;
        }
    }

    @media (min-width: 1024px) {
/*     [asterisk] {
        font-size: calc(1.38vw * var(--scale));
    } */
        blockquote {
            font-size: calc(1em * var(--scale) - 2px);
        }

        button, .kg-btn, .kg-header-card-button, .button {
            font-size: calc(1.38vw * var(--scale));
            padding: calc(1.1vw * var(--scale)) calc(2.9vw * var(--scale));
        }

        input, textarea {
            font-size: calc(1.38vw * var(--scale));
            padding: calc(1vw * var(--scale)) calc(1.5vw * var(--scale));
        }

        small {
            font-size: calc(1.1vw * var(--scale));
        }

        .subscribe-input {
            width: calc(30vw * var(--scale));
        }

        .hero .subscribe-input,
        .hero .subscribe-wrapper button[type="submit"] {
            font-size: calc(1.38vw * var(--scale) - 2pt);
        }

        .hero .subscribe-input {
            width: auto !important;
            flex: 1 1 auto;
            min-width: 0;
        }

        .hero-description-wrapper {
            max-width: calc(64vw * var(--scale));
        }

        .subscribe-alerts {
            max-width: calc(41vw * var(--scale));
        }

        .plus-button {
            height: calc(2.8vw * var(--scale));
            width: calc(2.8vw * var(--scale));
            min-height: calc(2.8vw * var(--scale));
            min-width: calc(2.8vw * var(--scale));
        }

        .underlined {
            text-decoration-thickness: calc(0.14vw * var(--scale));
        }

        ul, ol {
            padding-left: calc(2vw * var(--scale));
        }

        .fixed-width-button {
            width: calc(12vw * var(--scale));
        }

        .full-screen {
            min-height: calc(100vh - (3.8vw * var(--scale)));
        }

        .notification {
            left: calc(50% + (2.5vw * var(--scale)));
        }
    }





    /* ========================================================================
       2a. TABLET + MOBILE (≤1023px)
       ======================================================================== */
    @media (max-width: 1023px) {
        /* Global fallback guard: always hide desktop navbar controls on tablet/mobile. */
        .navbar .navbar-logo,
        .navbar .search-bar-wrapper,
        .navbar .navbar-button {
            display: none !important;
        }

        /* Global fallback guard: never leave a left rail offset on tablet/mobile. */
        .site-main,
        .post-content {
            padding-left: 0 !important;
            margin-left: 0 !important;
        }

        blockquote.indent1 {
            margin-left: 2rem;
            padding-left: 0.5rem;
            border-left: none;
        }

        blockquote.indent2 {
            margin-left: 3rem;
            padding-left: 0.5rem;
            border-left: none;
        }

        blockquote.indent3 {
            margin-left: 4rem;
            padding-left: 0.5rem;
            border-left: none;
        }

        h1 {
            font-size: calc(var(--fontSizeH1) * var(--scale));
            padding-top: calc(10vw * var(--scale));
        }

        h2 {
            font-size: calc(var(--fontSizeH2) * var(--scale));
            padding-top: calc(8vw * var(--scale));
        }

h3 {
    font-size: calc(var(--fontSizeH3) * var(--scale));
    padding-top: calc(6vw * var(--scale));
    font-weight: 400;
}

        h4 {
            font-size: calc(var(--fontSizeH4) * var(--scale));
            padding-top: calc(8vw * var(--scale));
        }

        h5 {
            font-size: calc(var(--fontSizeH5) * var(--scale));
            padding-top: calc(4vw * var(--scale));
        }

        h6 {
            font-size: calc(var(--fontSizeH6) * var(--scale));
            padding-top: calc(2vw * var(--scale));
        }

        .big-text {
            font-size: calc(var(--fontSizeH7) * var(--scale));
        }

        /* p, li, input, button, .kg-btn, .kg-header-card-button, .button, textarea {
            font-size: calc(18px * var(--scale)); pkj 3.8.28 - for consistency across styles like ul etc. | Changed from 16px to 18px for better mobile/tablet readability 
        } */

        small {
            font-size: calc(14px * var(--scale));
        }

        figcaption {
            margin-top: calc(6px * var(--scale));
        }

        .site-main {
            padding-left: 0;
        }

        .hero {
            padding: 124px max(1rem, env(safe-area-inset-right, 0px)) 124px max(1rem, env(safe-area-inset-left, 0px));
        }

        .hero.has-cover {
            min-height: 45vh;
        }

        .hero-description-wrapper {
            /* max-width: 80%; */
            margin-top: 18px;
        }

        .action-wrapper {
            margin-top: 26px;
            width: 80%;
        }

        .hero .action-wrapper {
            width: 100%;
            max-width: 100%;
        }

        .subscribe-input {
            width: 100%;
        }

        .hero .subscribe-input,
        .hero .subscribe-wrapper button[type="submit"] {
            font-size: calc(var(--fontSizeBlog) - 2pt);
        }

        .hero .subscribe-with-alerts,
        .hero .subscribe-wrapper,
        .hero .subscribe-alerts {
            width: 100%;
            max-width: none;
        }

        .subscribe-alert {
            margin-top: 12px;
        }

        .notification {
            padding: 12px 44px;
            max-width: 400px;
            width: 100%;
            left: 50%;
        }

        .notification-icon {
            width: 22px;
            min-width: 22px;
            height: 22px;
            min-height: 22px;
            margin-right: 6px;
        }

        .plus-button {
            height: 35px;
            width: 35px;
            min-height: 35px;
            min-width: 35px;
        }

        .plus-button:hover .vertical-line,
        .plus-button:hover .horizontal-line{
            transform: rotateZ(0deg);
        }

        .placeholder-svg {
            width: 140px;
            height: 140px;
        }

        custom-pagination nav{
            margin: 45px auto;
        }

        custom-pagination nav .button{
            padding-left: 32px;
            padding-right: 32px;
        }

        .extra-top-margin {
            margin-top: 26px;
        }

        blockquote {
            margin-left: 1.25rem;
            padding-left: 1.25rem;
            padding-top: 12px;
            padding-bottom: 12px;
            font-size: calc(16px * var(--scale));
        }

        ul, ol {
            padding-left: 30px;
        }

        ul li, ol li {
            margin-bottom: 14px;
        }

        .post-content > * {
            margin-bottom: 16px;
        }

        .under-button-wrapper {
            margin-top: 8px;
        }

        .author-grid {
            margin-bottom: 90px;
        }


        th {
            padding: 8px 0 8px 8px;
            font-family: var(--font3); /* CommitMono */
            font-weight: 500;
            font-size: calc(18px * var(--scale) * 0.9); /* 90% of mobile body font-size */
        }

        td {
            /* font-size: calc(18px * var(--scale)); Match mobile body font-size */
            padding: 8px;
        }

        textarea {
            min-height: 250px;
        }

        .full-screen {
            min-height: calc(100vh - 50px);
        }

        .clipboard-alert {
            bottom: -25px;
        }
/* these are disfavored and caused issues.  AGENTS: if you believe you need to use 'clamp' rules instead of scale rules, you MUST insert a comment explaining why it was necessary and whether it was specifically requested by the user.
        h1 {
            font-size: clamp(40px, 10.5vw, 54px) !important;
            line-height: 0.96;
        }

        h2 {
            font-size: clamp(34px, 8.9vw, 46px) !important;
            line-height: 1.05;
        }

        h3 {
            font-size: clamp(28px, 7.2vw, 38px) !important;
            line-height: 1.08;
        }

        h4 {
            font-size: clamp(24px, 6.1vw, 32px) !important;
            line-height: 1.12;
        }

        h5 {
            font-size: clamp(20px, 5.1vw, 27px) !important;
            line-height: 1.18;
        }

        h6 {
            font-size: clamp(18px, 4.5vw, 24px) !important;
            line-height: 1.24;
        } */

        /* small,
        figcaption {
            font-size: 14px !important;
        } */
    }





    /* ========================================================================
       2b. TABLET (768px–1023px) - Scale system
       ======================================================================== */
    @media (min-width: 768px) and (max-width: 1023px) {
        :root {
            --scale: 0.9;
            --imgScale: 0.7;
        }
    }





    /* ========================================================================
       2c. MOBILE (≤767px, ≤479px)
       ======================================================================== */
    @media (max-width: 767px) {
        :root {
            --scale: 0.8;
            --imgScale: 0.6;
        }
    }

    /* Small-mobile refinement (subset of mobile ≤767px). Uses hard definitions
       so typography is explicit per band. Canonical viewport bands: 1024 / 768–1023 / ≤767. */
    @media (max-width: 479px) {
        :root {
            --scale: 0.75;
            --imgScale: 0.5;
        }
    
        small,
        figcaption {
            font-size: 12px !important;
        }
/*         
        body,
        p,
        li,
        input,
        button,
        .kg-btn,
        .kg-header-card-button,
        .button,
        textarea {
            font-size: 18px !important; 
        } 
        
        h1 {
            font-size: 60px !important;  
        } 
        h2 {
            font-size: 48px !important;  
        }

        h3 {
            font-size: 35px !important; 

        h4 {
            font-size: 30px !important; 
        }

        h5 {
            font-size: 22px !important; 
        }

        h6 {
            font-size: 19px !important; 
        }  */
    }

/* -------------------------------------------------------------------------
   Homepage immersive (home only): body.homepage-immersive from default.hbs.
   Full-viewport site cover; reduced motion restores capped hero.
   ------------------------------------------------------------------------- */
body.homepage-immersive .site-main:has(main > section.hero.has-cover:first-child) main > section.hero.has-cover:first-child {
    max-height: none;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
}

body.homepage-immersive .hero.has-cover {
    min-height: 100vh;
    min-height: 100dvh;
    min-height: 100svh;
}

@media (prefers-reduced-motion: reduce) {
    body.homepage-immersive .site-main:has(main > section.hero.has-cover:first-child) main > section.hero.has-cover:first-child {
        max-height: min(50vh, 500px);
        max-height: min(50dvh, 500px);
        max-height: min(50svh, 500px);
        min-height: 45vh;
    }

    body.homepage-immersive .hero.has-cover {
        min-height: 45vh;
    }
}

/* -------------------------------------------------------------------------
   live-test: localhost-only strip pointing at npm run branch-ui (127.0.0.1:3099)
   ------------------------------------------------------------------------- */
.live-test-dev-strip {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99999;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
    padding: 0.45rem 0.75rem;
    font-family: system-ui, sans-serif;
    font-size: 0.8125rem;
    line-height: 1.35;
    color: #f5f5f5;
    background: #1a1a1a;
    border-top: 1px solid #333;
}

.live-test-dev-strip code {
    font-size: 0.78em;
    padding: 0.1em 0.25em;
    border-radius: 3px;
    background: #2a2a2a;
}

.live-test-dev-strip__link {
    flex-shrink: 0;
    font-weight: 600;
    color: #9cf;
    text-decoration: underline;
}

.live-test-dev-strip__link:hover {
    color: #cef;
}

@media (max-width: 767px) {
    .live-test-dev-strip {
        font-size: 0.75rem;
    }
}
