:root {
    color-scheme: dark;
    --if-navy: #E8E2D3;
    --if-navy-2: #FFFFFF;
    --if-ink: #F2F0EA;
    --if-teal: #D0A85C;
    --if-teal-dark: #F0C46D;
    --if-teal-soft: #332B1E;
    --if-cloud: #10100F;
    --if-surface: #171716;
    --if-mist: #25231F;
    --if-border: #37342E;
    --if-slate: #CAC3B5;
    --if-muted: #999287;
    --if-warning: #E0AE55;
    --if-success: #79C893;
    --if-danger: #E7847C;
    --page: var(--if-cloud);
    --surface: var(--if-surface);
    --text: var(--if-ink);
    --muted: var(--if-slate);
    --line: var(--if-border);
    --accent: var(--if-teal);
    --accent-soft: var(--if-teal-soft);
    --body-bg: linear-gradient(180deg, #10100f 0%, #171615 48%, #111110 100%);
    --badge-border: rgb(208 168 92 / 28%);
    --badge-bg: rgb(51 43 30 / 70%);
    --header-border: rgb(55 52 46 / 92%);
    --header-bg: rgb(23 23 22 / 88%);
    --panel-bg: rgb(23 23 22 / 96%);
    --panel-translucent-bg: rgb(23 23 22 / 88%);
    --accent-line-soft: rgb(208 168 92 / 20%);
    --accent-hover-border: rgb(208 168 92 / 46%);
    --accent-focus-ring: rgb(208 168 92 / 20%);
    --accent-shadow: 0 10px 24px rgb(208 168 92 / 17%);
    --article-text: #D7D0C3;
    --quote-bg: #282217;
    --input-bg: #121211;
    --button-text-on-accent: #17130D;
    --rss-icon: #F28D52;
    --rss-icon-hover: var(--if-navy);
    --shadow: 0 16px 34px rgb(0 0 0 / 30%);
    --shadow-soft: 0 8px 18px rgb(0 0 0 / 19%);
    --radius-xs: 2px;
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --container: 1020px;
    --font-sans: "Public Sans", "IBM Plex Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --font-serif: "Literata", "Iowan Old Style", Georgia, "Times New Roman", serif;
    --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;
}

html[data-theme="light"] {
    color-scheme: light;
    --if-navy: #18384A;
    --if-navy-2: #0D2635;
    --if-ink: #1D1C18;
    --if-teal: #9C6E22;
    --if-teal-dark: #754F16;
    --if-teal-soft: #F3E4C3;
    --if-cloud: #F6F4EE;
    --if-surface: #FFFFFF;
    --if-mist: #E9E4D8;
    --if-border: #D5CDBD;
    --if-slate: #4F5961;
    --if-muted: #6E6A60;
    --if-warning: #9C6E22;
    --if-success: #31724B;
    --if-danger: #A3413B;
    --page: var(--if-cloud);
    --surface: var(--if-surface);
    --text: var(--if-ink);
    --muted: var(--if-slate);
    --line: var(--if-border);
    --accent: var(--if-teal);
    --accent-soft: var(--if-teal-soft);
    --body-bg: linear-gradient(180deg, #F6F4EE 0%, #FFFFFF 48%, #ECE7DB 100%);
    --badge-border: rgb(156 110 34 / 24%);
    --badge-bg: rgb(243 228 195 / 78%);
    --header-border: rgb(213 205 189 / 92%);
    --header-bg: rgb(255 255 255 / 88%);
    --panel-bg: rgb(255 255 255 / 96%);
    --panel-translucent-bg: rgb(255 255 255 / 90%);
    --accent-line-soft: rgb(156 110 34 / 18%);
    --accent-hover-border: rgb(156 110 34 / 42%);
    --accent-focus-ring: rgb(156 110 34 / 18%);
    --accent-shadow: 0 10px 24px rgb(156 110 34 / 15%);
    --article-text: #2D2A23;
    --quote-bg: #F3E4C3;
    --input-bg: #FFFFFF;
    --button-text-on-accent: #FFFFFF;
    --rss-icon: #C85F23;
    --rss-icon-hover: var(--if-navy-2);
    --shadow: 0 16px 34px rgb(28 24 17 / 13%);
    --shadow-soft: 0 8px 18px rgb(28 24 17 / 10%);
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--page); color: var(--text); font-family: var(--font-sans); line-height: 1.58; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; margin: 0; background: var(--body-bg); }
img { max-width: 100%; height: auto; }
a { color: var(--if-navy); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { color: var(--if-teal-dark); }
h1, h2, h3, h4 { margin: 0; color: var(--if-ink); font-family: var(--font-sans); font-weight: 680; letter-spacing: 0; line-height: 1.14; }
h1 { font-size: clamp(1.95rem, 3.8vw, 3.05rem); }
h2 { font-size: clamp(1.45rem, 2.55vw, 2.05rem); }
h3 { font-size: clamp(1.08rem, 1.55vw, 1.3rem); }
p { margin: 0; color: var(--muted); }
::selection { background: var(--if-teal-soft); color: var(--if-ink); }

.shell { width: min(100% - 2rem, var(--container)); min-height: 100vh; margin: 0 auto; padding: 0.45rem 0 3.2rem; }
.notice { width: min(100%, 42rem); margin: 5rem auto; padding: clamp(1.25rem, 3vw, 2.25rem); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); box-shadow: var(--shadow-soft); }
.eyebrow, .kicker, .section-eyebrow { display: inline-flex; align-items: center; gap: 0.48rem; margin: 0 0 0.72rem; color: var(--if-teal-dark); font-family: var(--font-mono); font-size: 0.72rem; font-weight: 720; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow::before, .kicker::before, .section-eyebrow::before { content: ""; width: 1rem; height: 1px; border-radius: 999px; background: var(--if-teal);  }
.status, .badge, .pill { display: inline-flex; align-items: center; gap: 0.4rem; width: fit-content; padding: 0.32rem 0.56rem; border: 1px solid var(--badge-border); border-radius: 999px; background: var(--badge-bg); color: var(--if-teal-dark); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; }

.site-header { position: sticky; top: 0.45rem; z-index: 20; margin: 0 auto; padding: 0.55rem 0; backdrop-filter: blur(14px); }
.header-inner { display: flex; align-items: center; justify-content: flex-start; gap: 1rem; min-height: 3.85rem; padding: 0.66rem 0.9rem; border: 0; border-bottom: 1px solid var(--header-border); border-radius: 0; background: var(--header-bg); box-shadow: none; }
.brand, .site-logo { display: inline-flex; align-items: center; flex: 0 0 auto; gap: 0.68rem; color: var(--if-teal-dark); font-family: var(--font-mono); font-size: 1.08rem; font-weight: 760; letter-spacing: 0.04em; text-decoration: none; white-space: nowrap; }
.brand img { width: 9.4rem; max-height: 2.55rem; object-fit: contain; }
.brand-symbol { width: 2.1rem; height: 2.1rem; }
.nav, .site-nav { display: flex; align-items: center; gap: 0.08rem; }
.nav a, .site-nav a { padding: 0.5rem 0.68rem; border-radius: var(--radius-sm); color: var(--if-slate); font-size: 0.88rem; font-weight: 650; text-decoration: none; white-space: nowrap; }
.nav a:hover, .site-nav a:hover, .nav a[aria-current="page"], .site-nav a[aria-current="page"] { background: var(--if-mist); color: var(--if-ink); }
.header-actions { display: flex; align-items: center; flex: 0 0 auto; gap: 0.55rem; margin-left: auto; }
.language-switch { color: var(--if-muted); font-family: var(--font-mono); font-size: 0.84rem; font-weight: 680; text-decoration: none; }
.language-switcher-link { min-width: 2.35rem; justify-content: center; }

.button, .btn, .cta, button { display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem; min-height: 2.42rem; padding: 0.62rem 0.9rem; border: 1px solid var(--if-ink); border-radius: var(--radius-sm); background: var(--if-ink); color: var(--button-text-on-accent); font: inherit; font-size: 0.9rem; font-weight: 720; line-height: 1; text-decoration: none; cursor: pointer; box-shadow: none; transition: transform 140ms ease, background 140ms ease, border-color 140ms ease; }
.button:hover, .btn:hover, .cta:hover, button:hover { transform: translateY(-1px); background: var(--if-navy-2); border-color: var(--if-navy-2); color: var(--button-text-on-accent); }
.button.secondary, .btn-secondary, .cta-secondary { border-color: var(--if-border); background: var(--if-surface); color: var(--if-ink); box-shadow: none; }
.button.secondary:hover, .btn-secondary:hover, .cta-secondary:hover { background: var(--if-mist); color: var(--if-ink); }
.button.teal, .btn-accent { background: var(--if-teal-dark); border-color: var(--if-teal-dark); box-shadow: none; }
.button.teal:hover, .btn-accent:hover { background: var(--if-teal); border-color: var(--if-teal); }
.button.is-active, .button[aria-current="true"], .button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--button-text-on-accent); font-weight: 700; cursor: default; }
.button.is-active:hover, .button[aria-current="true"]:hover, .button[aria-pressed="true"]:hover { background: var(--accent); border-color: var(--accent); color: var(--button-text-on-accent); }

.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr); align-items: start; gap: clamp(1.5rem, 5vw, 3.2rem); min-height: auto; padding: clamp(2.25rem, 5.7vw, 4.1rem) 0; border-bottom: 1px solid var(--if-border); }
.hero-copy { max-width: 41rem; }
.hero-title .accent, .text-accent { color: var(--if-teal-dark); }
.hero-lede, .lead { max-width: 38rem; margin-top: 1rem; color: var(--if-slate); font-size: clamp(0.98rem, 1.18vw, 1.1rem); line-height: 1.74; }
.hero-actions, .actions { display: flex; flex-wrap: wrap; gap: 0.65rem; margin-top: 1.3rem; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-top: 1.05rem; }
.hero-visual { position: relative; isolation: isolate; }
.visual-card, .diagnostic-card, .article-preview { border: 1px solid var(--if-border); border-radius: var(--radius-lg); background: var(--panel-bg); box-shadow: var(--shadow-soft); }
.visual-card { padding: clamp(1rem, 2.5vw, 1.3rem); }
.visual-card::before { content: ""; position: absolute; inset: auto 0 -0.42rem 0; height: 0.42rem; z-index: -1; border-radius: 999px; background: var(--accent-line-soft);  }
.flow-panel { display: grid; gap: 0.62rem; }
.flow-row { display: grid; grid-template-columns: minmax(0, 1fr); align-items: center; gap: 0.72rem; padding: 0.72rem; border: 1px solid var(--if-border); border-radius: var(--radius-sm); background: var(--if-surface); color: inherit; text-decoration: none; }
.flow-row .category { display: block; margin-bottom: 0.12rem; font-family: var(--font-mono); font-size: 0.82rem; }
.flow-title { display: block; color: var(--if-ink); font-weight: 740; }
.flow-subtitle { display: block; color: var(--if-muted); font-size: 0.86rem; }
.flow-signal { width: 3.5rem; height: 0.34rem; border-radius: 999px; background: linear-gradient(90deg, var(--if-teal), var(--if-mist)); }

.section { padding: clamp(2.7rem, 5.9vw, 4.25rem) 0;  }
.section-header { max-width: 42rem; margin-bottom: 1.5rem; }
.section-header p { margin-top: 0.72rem; font-size: 1rem; line-height: 1.72; }
.grid, .card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.85rem; }
.grid.two, .two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .feature-card, .article-card, .comment, .quote-card, .step-card { border: 1px solid var(--if-border); border-radius: var(--radius-md); background: var(--panel-bg); box-shadow: var(--shadow-soft); }
.card, .feature-card, .step-card { padding: 1rem; }
.card h3, .feature-card h3, .step-card h3 { margin-bottom: 0.55rem; }
.card p, .feature-card p, .step-card p { color: var(--if-slate); }
.card-number { display: grid; width: 2rem; height: 2rem; margin-bottom: 0.85rem; place-items: center; border-radius: var(--radius-sm); background: var(--if-teal-soft); color: var(--if-teal-dark); font-family: var(--font-mono); font-weight: 760; }
.article-list { display: grid; gap: 0.85rem; }
.article-list .surface h3 a { color: var(--if-ink); text-decoration: none; }
.article-list .surface h3 a:hover { color: var(--if-teal-dark); }
.article-card { display: grid; grid-template-columns: minmax(0, 0.66fr) minmax(0, 1.34fr); overflow: hidden; text-decoration: none; color: inherit; transition: transform 140ms ease, border-color 140ms ease; }
.article-card:hover { transform: translateY(-2px); border-color: var(--accent-hover-border); box-shadow: var(--shadow); }
.article-card img { width: 100%; height: 100%; min-height: 220px; object-fit: cover; background: var(--if-mist); }
.article-card-body { padding: clamp(1rem, 2.4vw, 1.55rem); }
.article-meta, .meta { display: flex; flex-wrap: wrap; gap: 0.45rem 0.75rem; margin-bottom: 0.72rem; color: var(--if-muted); font-family: var(--font-mono); font-size: 0.82rem; font-weight: 650; }
.article-card h3 { margin-bottom: 0.58rem; font-size: clamp(1.16rem, 1.95vw, 1.56rem); }
.article-card p { line-height: 1.72; }
.tag, .category { color: var(--if-teal-dark); font-weight: 760; }

.article-shell { width: min(100% - 2rem, var(--container)); margin: 0 auto; padding: 2rem 0 4rem; }
.article-hero { display: grid; gap: 1.05rem; padding: clamp(1.9rem, 4.3vw, 3.15rem) 0 1.55rem; border-bottom: 1px solid var(--if-border); }
.article-hero h1 { font-size: clamp(1.95rem, 4.05vw, 2.98rem); }
.article-hero .article-meta { gap: 0.28rem 0.5rem; margin-bottom: 0; color: var(--if-muted); font-family: var(--font-mono); font-size: 0.8rem; font-weight: 520; }
.article-hero .article-meta span + span::before { content: "/"; margin-right: 0.5rem; color: var(--if-muted); }
.article-hero .cluster { gap: 0.5rem; }
.article-hero .pill { padding: 0; border: 0; border-radius: 0; background: transparent; color: var(--if-muted); font-family: var(--font-mono); font-size: 0.78rem; font-weight: 540; }
.article-hero .pill:hover { color: var(--if-teal-dark); }
.article-summary { max-width: 42rem; color: var(--if-slate); font-size: 1.06rem; line-height: 1.76; }
.article-cover { overflow: hidden; border: 1px solid var(--if-border); border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }
.article-cover img { display: block; width: 100%; min-height: 250px; object-fit: cover; }
.article-content { display: grid; grid-template-columns: minmax(0, 1fr) 12.5rem; gap: clamp(1.25rem, 4vw, 2.25rem); align-items: start; margin-top: 1.7rem; }
.prose { padding: clamp(1.1rem, 3vw, 1.65rem); border: 1px solid var(--if-border); border-radius: var(--radius-lg); background: var(--if-surface); box-shadow: var(--shadow-soft); }
.prose p { margin: 1rem 0; color: var(--article-text); font-family: var(--font-sans); font-size: 1.07rem; line-height: 1.84; }
.prose h2 { margin-top: 2rem; font-size: clamp(1.42rem, 2.4vw, 1.95rem); }
.prose h3 { margin-top: 1.55rem; }
.article-shell, .prose h1[id], .prose h2[id], .prose h3[id], .comments-section { scroll-margin-top: 5.45rem; }
.prose ul, .prose ol { color: var(--article-text); font-family: var(--font-sans); font-size: 1.07rem; line-height: 1.84; }
.prose li + li { margin-top: 0.35rem; }
.prose blockquote { margin: 1.45rem 0; padding: 1rem 1.08rem; border-left: 0.22rem solid var(--if-teal); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--quote-bg); color: var(--if-ink); font-weight: 620; }
.prose table { display: table; width: 100%; max-width: 100%; margin: 1.45rem 0; overflow: hidden; table-layout: auto; border: 1px solid var(--if-border); border-radius: var(--radius-md); border-spacing: 0; background: var(--if-surface); color: var(--article-text); font-family: var(--font-sans); font-size: 0.96rem; line-height: 1.56; box-shadow: var(--shadow-soft); }
.prose thead { background: var(--if-mist); color: var(--if-ink); }
.prose th, .prose td { min-width: 8.5rem; padding: 0.72rem 0.82rem; border-right: 1px solid var(--if-border); border-bottom: 1px solid var(--if-border); text-align: left; vertical-align: top; }
.prose th { color: var(--if-ink); font-weight: 760; }
.prose td { color: var(--article-text); }
.prose th:last-child, .prose td:last-child { border-right: 0; }
.prose tr:last-child td { border-bottom: 0; }
.prose table code { white-space: nowrap; }
.aside-card { position: sticky; top: 6rem; padding: 0.85rem; border: 1px solid var(--if-border); border-radius: var(--radius-md); background: var(--if-surface); box-shadow: none; }
.aside-card h3 { font-family: var(--font-mono); font-size: 0.9rem; margin-bottom: 0.55rem; font-weight: 760; }
.aside-card a { display: block; padding: 0.48rem 0; color: var(--if-slate); font-weight: 650; text-decoration: none; border-top: 1px solid var(--if-mist); }
.aside-card a:hover { color: var(--if-ink); }

.comments-section { width: min(100% - 2rem, var(--container)); margin: 2.4rem auto 0; }
.comment-form-panel { margin-top: 1.2rem; }
.comment-form__note { color: var(--if-muted); margin: 0.25rem 0 0.85rem; }
.comment-form { display: grid; gap: 0.75rem; padding: clamp(1rem, 2.5vw, 1.35rem); border: 1px solid var(--if-border); border-radius: var(--radius-lg); background: var(--if-surface); box-shadow: var(--shadow-soft); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; }
label { color: var(--if-ink); font-size: 0.88rem; font-weight: 720; }
input, textarea, select { width: 100%; margin-top: 0.32rem; padding: 0.72rem 0.8rem; border: 1px solid var(--if-border); border-radius: var(--radius-sm); background: var(--input-bg); color: var(--if-ink); font: inherit; }
textarea { min-height: 8rem; resize: vertical; }
input:focus, textarea:focus, select:focus { outline: 3px solid var(--accent-focus-ring); border-color: var(--if-teal); }
.comment-form__consent { display: grid; grid-template-columns: auto 1fr; gap: 0.55rem; align-items: start; }
.comment-form__consent input { width: auto; margin-top: 0.15rem; }
.comment-form__honeypot { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.comment-form__submit { width: 10rem; justify-self: start; }
.comment-list { display: grid; gap: 0.75rem; margin-top: 1rem; }
.comment { padding: 0.9rem; }
.comment-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 0.38rem; }
.comment-author { color: var(--if-ink); font-weight: 760; }
.comment-date { color: var(--if-muted); font-family: var(--font-mono); font-size: 0.82rem; }
.comment p { color: var(--article-text); line-height: 1.7; }

.shell:has(.maintenance-page) { width: 100%; min-height: 100vh; padding: 0; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.shell:has(.maintenance-page) > .site-main { min-height: 0; display: grid; }
.maintenance-page { display: grid; width: 100%; min-height: 100%; margin: 0; padding: clamp(2rem, 6vw, 4rem) 1rem; place-items: center; background: var(--if-cloud); background-position: center; background-repeat: no-repeat; background-size: cover; }
.maintenance-page > .surface { width: min(100%, 44rem); padding: clamp(1.3rem, 4vw, 2.4rem); background: var(--panel-translucent-bg); backdrop-filter: blur(10px); }
.maintenance-page h1 { font-size: 2.65rem; }
.maintenance-page p { max-width: 40rem; margin: 1rem auto 0; color: var(--article-text); font-size: 1.06rem; line-height: 1.7; }
.maintenance-page p:first-child { margin-top: 0; }
main:has(.maintenance-page) + .site-footer { margin-top: 0; }
main:has(.maintenance-page) + .site-footer .footer-inner { width: min(100% - 2rem, var(--container)); margin: 0 auto; }
.site-footer { margin-top: 3rem; padding: 1.6rem 0; border-top: 1px solid var(--if-border); color: var(--if-muted); }
.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 0.85rem; flex-wrap: wrap; }
.footer-links a { color: var(--if-muted); text-decoration: none; font-weight: 620; }
.footer-links a:hover { color: var(--if-ink); }
.footer-rss-link { display: inline-flex; align-items: center; gap: 0.4rem; }
.footer-rss-icon { width: 1rem; height: 1rem; flex: 0 0 auto; fill: var(--rss-icon); }
.footer-rss-link:hover .footer-rss-icon, .footer-rss-link:focus-visible .footer-rss-icon { fill: var(--rss-icon-hover); }
.container { width: min(100% - 2rem, var(--container)); margin: 0 auto; }
.stack { display: grid; gap: 1rem; }
.cluster { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; }
.cluster[aria-label] + .cluster[role="navigation"] { margin-top: 0.85rem; }
.center { text-align: center; }
.muted { color: var(--if-muted); }
.surface { background: var(--if-surface); border: 1px solid var(--if-border); border-radius: var(--radius-md); box-shadow: var(--shadow-soft); }
.skip-link { position: absolute; left: -999px; top: 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; padding: 0.6rem 0.8rem; background: var(--if-surface); border: 1px solid var(--if-border); border-radius: var(--radius-xs); }

@media (max-width: 720px) {
    .header-inner { border-radius: 0; align-items: center; }
    .nav, .site-nav { display: none; }
    .hero, .article-content { grid-template-columns: 1fr; }
    .article-content .aside-card { order: -1; }
    .hero { min-height: unset; padding-top: 2rem; }
    .grid, .card-grid, .grid.two, .two-column { grid-template-columns: 1fr; }
    .article-card { grid-template-columns: 1fr; }
    .article-card img, .article-card-cover { display: none; }
    .aside-card { position: static; }
    .maintenance-page h1 { font-size: 2.2rem; }
    .maintenance-page p { font-size: 1rem; }
}

@media (max-width: 560px) {
    .shell, .container, .article-shell { width: min(100% - 1rem, var(--container)); }
    .brand img { width: 10rem; }
    .hero-actions, .actions, .form-row, .footer-inner { display: grid; grid-template-columns: 1fr; }
    .button, .btn, .cta { width: 100%; }
    .comment-form__submit { width: 10rem; }
}


/* Dark-theme button contrast fixes. */
.button, .btn, .cta, button {
    border-color: var(--if-teal-dark);
    background: var(--if-teal-dark);
    color: var(--button-text-on-accent);
    box-shadow: var(--accent-shadow);
}

.button:hover, .btn:hover, .cta:hover, button:hover {
    background: var(--if-teal);
    border-color: var(--if-teal);
    color: var(--button-text-on-accent);
}

.button.secondary, .btn-secondary, .cta-secondary {
    border-color: var(--if-border);
    background: transparent;
    color: var(--if-ink);
    box-shadow: none;
}

.button.secondary:hover, .btn-secondary:hover, .cta-secondary:hover {
    background: var(--if-mist);
    border-color: var(--if-teal-dark);
    color: var(--if-ink);
}

.button.teal, .btn-accent,
.button.is-active,
.button[aria-current="true"],
.button[aria-pressed="true"] {
    background: var(--if-teal);
    border-color: var(--if-teal);
    color: var(--button-text-on-accent);
}

.button.teal:hover, .btn-accent:hover,
.button.is-active:hover,
.button[aria-current="true"]:hover,
.button[aria-pressed="true"]:hover {
    background: var(--if-teal-dark);
    border-color: var(--if-teal-dark);
    color: var(--button-text-on-accent);
}

@media print {
    @page { margin: 16mm 19mm; @top-left { content: "InductiveFlow Notes"; color: #000; font-family: Georgia, "Times New Roman", serif; font-size: 9pt; font-weight: 700; } @bottom-center { content: counter(page); color: #000; font-family: Georgia, "Times New Roman", serif; font-size: 9pt; } }
    *, *::before, *::after { background: transparent !important; box-shadow: none !important; color: #000 !important; text-shadow: none !important; }
    html, body { min-height: auto; background: #fff !important; color: #000 !important; font-family: Georgia, "Times New Roman", serif; font-size: 11pt; line-height: 1.5; }
    body { margin: 0; }
    h1, h2, h3, h4 { color: #000 !important; letter-spacing: 0; break-after: avoid; page-break-after: avoid; }
    h1 { font-size: 23pt; line-height: 1.15; }
    h2 { margin-top: 18pt; font-size: 15pt; line-height: 1.2; }
    h3 { margin-top: 13pt; font-size: 12.5pt; line-height: 1.25; }
    p, li { color: #000 !important; font-size: 11pt; line-height: 1.5; }
    a { color: #000 !important; text-decoration: underline; }
    a[href^="http://"]::after, a[href^="https://"]::after { content: " (" attr(href) ")"; font-size: 9pt; overflow-wrap: anywhere; }
    img, blockquote, figure, pre, table, ul, ol { break-inside: avoid; page-break-inside: avoid; }
    img { max-width: 100% !important; }
    .site-header, .site-footer, .aside-card, .comments-section, .note-comments, .comment-form, .button, .btn, .cta, button, .article-cover { display: none !important; }
    .shell, .site-main, .article-shell, .container { width: auto !important; min-height: auto; margin: 0 !important; padding: 0 !important; }
    .article-hero { display: block; padding: 0 0 12pt; border-bottom: 1px solid #000; }
    .article-summary { max-width: none; margin-top: 8pt; font-size: 12pt; line-height: 1.45; }
    .article-meta, .meta, .cluster { display: block; margin-top: 8pt; font-size: 9.5pt; line-height: 1.4; }
    .article-meta span, .meta span, .pill { display: inline; padding: 0; border: 0; font-size: 9.5pt; font-weight: 400; }
    .article-meta span + span::before, .meta span + span::before, .pill + .pill::before { content: " | "; }
    .eyebrow, .kicker, .section-eyebrow { display: block; margin: 0 0 6pt; font-size: 9pt; font-weight: 700; letter-spacing: 0; text-transform: none; }
    .eyebrow::before, .kicker::before, .section-eyebrow::before { display: none; }
    .article-content { display: block; margin-top: 14pt; }
    .prose { display: block; padding: 0; border: 0; border-radius: 0; background: transparent; }
    .prose p { margin: 0 0 9pt; color: #000 !important; font-size: 11pt; line-height: 1.5; }
    .prose h2 { margin: 18pt 0 7pt; font-size: 15pt; }
    .prose h3 { margin: 14pt 0 6pt; font-size: 12.5pt; }
    .prose ul, .prose ol { margin: 0 0 9pt 18pt; padding: 0; color: #000 !important; line-height: 1.5; }
    .prose blockquote { margin: 11pt 0; padding: 0 0 0 10pt; border: 0; border-left: 2pt solid #000; border-radius: 0; font-weight: 400; }
    .prose table { display: table; width: 100%; margin: 11pt 0; overflow: visible; border: 1pt solid #000; border-collapse: collapse; border-radius: 0; box-shadow: none; font-size: 9.5pt; line-height: 1.35; }
    .prose thead { background: transparent; }
    .prose th, .prose td { min-width: 0; padding: 4pt 5pt; border: 1pt solid #000; color: #000 !important; }
    .prose th { font-weight: 700; }
}
