/* Maandoh: single stylesheet, system fonts, no dependencies. */
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("/assets/fonts/space-grotesk-700.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/assets/fonts/ibm-plex-sans-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --ink: #10211b;
  --ink-2: #17302a;
  --on-ink: #ffffff;
  --on-ink-muted: #cdd9d2;
  --bright: #86d9a4;          /* bright accent, for use on --ink only */
  --bright-hover: #a9e8be;
  --cta: #14532d;           /* call-to-action buttons only */
  --cta-hover: #0d3b20;
  --accent: #14532d;        /* accent for text and lines on light backgrounds */
  --bg: #ffffff;
  --tint: #f4f1ea;
  --text: #14201a;
  --muted: #3d4943;
  --line: #ded9cc;
  --warn: #f5b301;
  --todo-bg: #fff3bf;
  --todo-text: #4d3a00;
  --max: 78rem;
  --measure: 52rem;
  --font-body: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --font-head: "Space Grotesk", "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 5.5rem; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1.0625rem/1.65 var(--font-body);
}

h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.15; margin: 0 0 .6em; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.4rem); font-weight: 700; letter-spacing: -.025em; }
h2 { font-size: clamp(1.55rem, 3.4vw, 2.15rem); letter-spacing: -.02em; }
h3 { font-size: 1.15rem; }
p, ul, ol { margin: 0 0 1em; }
ul, ol { padding-left: 1.25rem; }
li + li { margin-top: .35em; }

a { color: var(--accent); text-underline-offset: .15em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }
.measure > * { max-width: var(--measure); }
.lead { font-size: 1.2rem; color: var(--muted); max-width: var(--measure); }
.small { font-size: .95rem; color: var(--muted); }
.eyebrow { font-family: var(--font-head); text-transform: uppercase; letter-spacing: .08em; font-size: .8rem; font-weight: 700; color: var(--accent); margin-bottom: .75rem; }

.skip { position: absolute; left: -999px; top: 0; z-index: 10; background: var(--bright); color: var(--ink); padding: .6rem 1rem; }
.skip:focus { left: 0; }

/* Light header and hero; dark call-to-action band and footer */
.site-header { position: sticky; top: 0; z-index: 30; background: var(--bg); color: var(--text); border-bottom: 1px solid var(--line); }
.bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1.5rem; padding-top: .9rem; padding-bottom: .9rem; }
.brand { font-family: var(--font-head); display: inline-flex; align-items: center; gap: .65rem; font-weight: 700; font-size: 1.3rem; letter-spacing: -.01em; color: var(--text); text-decoration: none; }
.brand svg { height: 1.7rem; width: auto; }
.nav-toggle { display: none; }
#site-nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem 1.25rem; }
#site-nav li + li { margin-top: 0; }
#site-nav a { color: var(--text); text-decoration: none; padding: .35rem 0; display: inline-block; }
#site-nav a:hover { text-decoration: underline; }
#site-nav a[aria-current="page"] { font-weight: 600; text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 2px; text-underline-offset: .4em; }

.btn {
  font-family: var(--font-head); font-size: 1.02rem;
  display: inline-block; background: var(--cta); color: #ffffff;
  padding: .75rem 1.3rem; border-radius: 4px; font-weight: 700; text-decoration: none;
  border: 2px solid var(--cta);
}
.btn:hover { background: var(--cta-hover); border-color: var(--cta-hover); text-decoration: none; }
.cta-band .btn { background: var(--tint); border-color: var(--tint); color: var(--ink); }
.cta-band .btn:hover { background: #ffffff; border-color: #ffffff; }
.cta-band a:focus-visible, .site-footer a:focus-visible { outline-color: var(--bright); }
#site-nav a.btn { color: #ffffff; padding: .5rem 1rem; }

.hero {
  background:
    radial-gradient(36rem 24rem at 92% 0%, rgba(134, 217, 164, .32), transparent 70%),
    radial-gradient(rgba(16, 33, 27, .06) 1px, transparent 1px) 0 0 / 24px 24px,
    var(--bg);
  padding: 3.5rem 0 4rem;
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; grid-template-columns: minmax(0, 1fr); }
.hero-art { background: var(--ink); border-radius: 18px; padding: 1.25rem; box-shadow: 0 24px 50px rgba(16, 33, 27, .18); }
.hero-art.fig-row, .hero-art.composite { background: transparent; padding: 0; box-shadow: none; }
.hero-art svg { width: 100%; height: auto; display: block; }

/* Sections */
main section { padding: 3.5rem 0; }
main section.hero { padding: 3.5rem 0 4rem; }
main section + section:not(.alt):not(.cta-band):not(.band) { border-top: 1px solid var(--line); }
.alt { background: var(--tint); }

.band { background: var(--tint); padding: 2rem 0; border-bottom: 1px solid var(--line); }
.points { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); }
.points li { display: flex; gap: .85rem; align-items: flex-start; margin: 0; }
.points svg { flex: none; }
.points strong { display: block; }
.points span { color: var(--muted); font-size: .98rem; }

.icon { width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--tint); display: grid; place-items: center; margin-bottom: .9rem; }
.icon svg { width: 1.5rem; height: 1.5rem; stroke: var(--accent); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.points .icon { margin: 0; background: #fff; border: 1px solid var(--line); }

.cards { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); margin-top: 1.5rem; }
.card { display: flex; flex-direction: column; border: 1px solid var(--line); border-top: 4px solid var(--accent); border-radius: 6px; padding: 1.25rem; background: var(--bg); }
.card h3 { margin-bottom: .4em; }
.card p:last-child { margin-bottom: 0; }
.card p + p:last-child { margin-top: auto; padding-top: .5rem; }

.steps { list-style: none; padding: 0; margin: 1.5rem 0 0; counter-reset: step; display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.steps li { counter-increment: step; margin: 0; border-top: 4px solid var(--accent); background: var(--bg); padding: 1rem 1rem 1.1rem; border-radius: 0 0 6px 6px; border-left: 1px solid var(--line); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.steps li::before { font-family: var(--font-head); content: counter(step, decimal-leading-zero); display: block; font-weight: 700; font-size: 1.6rem; color: var(--accent); margin-bottom: .25rem; }

.split { display: grid; gap: 2rem; align-items: center; }
.figure svg { width: 100%; height: auto; display: block; }

dl.facts { display: grid; grid-template-columns: max-content 1fr; gap: .5rem 1.5rem; margin: 0 0 1em; }
dl.facts dt { font-weight: 600; }
dl.facts dd { margin: 0; }

.cta-band { background: var(--ink); color: var(--on-ink); }
.cta-band h2 { color: var(--on-ink); }
.cta-band p { max-width: var(--measure); color: var(--on-ink-muted); }

.tagline { font-family: var(--font-head); font-size: clamp(1.25rem, 2.4vw, 1.5rem); font-weight: 600; color: var(--text); margin: 0 0 .75rem; }
.actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.btn-secondary { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-secondary:hover { background: var(--tint); border-color: var(--accent); }
.step-label { font-family: var(--font-head); font-weight: 700; color: var(--accent); text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin: 0 0 .35rem; }

.choices { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.choices li { margin: 0; padding: 1rem 1.1rem; border: 1px solid var(--line); border-radius: 6px; font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; color: var(--muted); background: var(--bg); }
.choices li span { display: block; font-family: var(--font-body); font-weight: 400; font-size: .98rem; margin-top: .15rem; }
.choices .pick { border: 2px solid var(--accent); background: var(--tint); color: var(--text); }

.table-wrap { overflow-x: auto; margin: 1.25rem 0; }
.compare { border-collapse: collapse; width: 100%; min-width: 34rem; background: var(--bg); }
.compare th, .compare td { text-align: left; vertical-align: top; padding: .8rem 1rem; border: 1px solid var(--line); }
.compare thead th { background: var(--ink); color: var(--on-ink); font-family: var(--font-head); }
.compare tbody th { background: var(--tint); font-weight: 600; width: 22%; }

.grad { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(134, 217, 164, .95); text-decoration-thickness: .2em; text-underline-offset: .06em; text-decoration-skip-ink: none; }
.caption { font-size: .85rem; color: var(--muted); margin: .6rem 0 0; }
.hero-art:has(.ui) { background: transparent; padding: 0; }
.dark-panel .btn-secondary, .cta-band .btn-secondary { background: transparent; color: var(--on-ink); border-color: rgba(255, 255, 255, .55); }
.dark-panel .btn-secondary:hover, .cta-band .btn-secondary:hover { background: rgba(255, 255, 255, .1); border-color: var(--on-ink); }

/* Illustrative product interface */
.ui { background: #14261f; border: 1px solid #31503f; border-radius: 12px; overflow: hidden; color: #e4ece7; font-size: .88rem; box-shadow: 0 30px 60px rgba(0, 0, 0, .35), 0 0 0 1px rgba(134, 217, 164, .18); }
.ui p { margin: 0; }
.ui-bar { display: flex; align-items: center; gap: .75rem; padding: .6rem .9rem; background: #10211b; border-bottom: 1px solid #264037; }
.dots { display: inline-flex; gap: .3rem; }
.dots i { width: .6rem; height: .6rem; border-radius: 50%; background: #3f5f52; display: block; }
.ui-title { font-family: var(--font-head); font-weight: 600; }
.ui-status { margin-left: auto; font-size: .78rem; color: var(--bright); }
.ui-status::before { content: ""; display: inline-block; width: .5rem; height: .5rem; border-radius: 50%; background: var(--bright); margin-right: .4rem; }
.ui-body { display: grid; grid-template-columns: 9.5rem 1fr; }
.ui-side { padding: .9rem; border-right: 1px solid #264037; background: #112019; }
.ui-h { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: #a9bcb2; margin: 0 0 .4rem; }
.ui-side ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.ui-side li { margin: 0 0 .15rem; padding: .3rem .5rem; border-radius: 4px; color: #cdd9d2; }
.ui-side li.on { background: #1d362d; color: #fff; }
.ui-chip { display: inline-block; padding: .2rem .55rem; border-radius: 999px; background: rgba(134, 217, 164, .15); color: var(--bright); font-size: .78rem; }
.ui-main { padding: 1rem; display: grid; gap: .8rem; align-content: start; }
.msg { padding: .7rem .85rem; border-radius: 8px; max-width: 92%; }
.msg.q { background: #1d362d; justify-self: end; }
.msg.a { background: #14532d; }
.msg.a p + p { margin-top: .55rem; }
.srcs { display: flex; flex-wrap: wrap; gap: .4rem; }
.srcs span { font-size: .75rem; padding: .15rem .5rem; border-radius: 999px; background: rgba(10, 18, 32, .45); border: 1px solid rgba(255, 255, 255, .25); }
.ui-input { margin-top: .2rem; padding: .6rem .8rem; border: 1px solid #31503f; border-radius: 8px; color: #a9bcb2; }

/* Built-for strip */
.strip { background: var(--ink-2); color: var(--on-ink); padding: 1rem 0; border-top: 1px solid #264037; }
main section.strip { padding: 1rem 0; }
.strip-row { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.25rem; }
.strip-row p { margin: 0; color: var(--on-ink-muted); font-size: .9rem; }
.strip-row ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem .6rem; }
.strip-row li { margin: 0; padding: .3rem .8rem; border: 1px solid #3f5f52; border-radius: 999px; font-size: .92rem; }

/* Capability tiles */
.bento { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin-top: 1.5rem; }
.tile { border: 1px solid var(--line); border-radius: 10px; padding: 1.4rem; background: var(--bg); }
.tile p { margin: 0; color: var(--muted); }
.tile.dark { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.tile.dark p { color: var(--on-ink-muted); }
.tile.dark .icon, .tile.accent .icon { background: rgba(255, 255, 255, .12); }
.tile.dark .icon svg { stroke: var(--bright); }
.tile.accent { background: linear-gradient(135deg, #14532d, #0b2e1a); border-color: transparent; color: #fff; }
.tile.accent p { color: #e4f2ea; }
.tile.accent .icon svg { stroke: #fff; }

.dark-panel { background: var(--ink); color: var(--on-ink); }
.dark-panel .eyebrow { color: var(--bright); }
.dark-panel p { color: var(--on-ink-muted); }
.dark-panel .figure svg { max-width: 34rem; margin-left: auto; }

details { border: 1px solid var(--line); border-radius: 8px; background: var(--bg); margin-bottom: .6rem; }
summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 600; font-family: var(--font-head); list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-size: 1.3rem; line-height: 1; color: var(--accent); }
details[open] summary::after { content: "\2212"; }
details p { padding: 0 1.1rem 1rem; margin: 0; color: var(--muted); }

.foot-grid { display: grid; gap: 2rem; grid-template-columns: 1.4fr 1fr 1fr; }
.foot-h { color: var(--on-ink); font-family: var(--font-head); font-weight: 600; margin-bottom: .5rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.foot-legal { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid #264037; }
.foot-legal p { margin: 0; }

@media (min-width: 56rem) {
  .bento { grid-template-columns: repeat(3, 1fr); }
  .tile.wide { grid-column: span 2; }
  .tile.full { grid-column: 1 / -1; }
}
@media (max-width: 47.99rem) {
  .eyebrow .pron { display: block; margin: .35rem 0 0; }
  .eyebrow .pron::before { content: none; }
  .foot-grid { grid-template-columns: 1fr; }
  .ui-body { grid-template-columns: 1fr; }
  .ui-side { display: none; }
}

.faq { display: grid; gap: .75rem 1.25rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); align-items: start; margin-top: 1.25rem; }
.faq details { margin: 0; }


/* Hero composition: photo with the interface laid over it, all inside one frame */
.composite { position: relative; background: transparent; padding: 0; height: 100%; }
.hero-grid:has(.composite) { align-items: stretch; }
.composite .photo { background: #909fa1; position: relative; height: 100%; min-height: 16rem; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 50px rgba(16, 33, 27, .22); }
.composite .photo img { display: block; width: 100%; height: 100%; min-height: 16rem; object-fit: cover; object-position: 58% 82%; }
.composite .photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(16, 33, 27, .05), rgba(16, 33, 27, .22)); }
.composite .ui { position: absolute; left: 1rem; right: 1rem; bottom: 3.1rem; font-size: .82rem; box-shadow: 0 20px 40px rgba(10, 20, 15, .45), 0 0 0 1px rgba(134, 217, 164, .22); }
.composite .caption { margin: .6rem 0 0; }
.float { position: absolute; z-index: 2; right: 1rem; display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .8rem; border-radius: 999px; background: #ffffff; color: var(--ink); font-family: var(--font-head); font-weight: 600; font-size: .85rem; box-shadow: 0 8px 20px rgba(16, 33, 27, .25); }
.float i { width: .55rem; height: .55rem; border-radius: 50%; background: var(--accent); display: block; }
.float.f1 { top: 1rem; }
.float.f2 { top: 3.4rem; right: 2.5rem; }
.float.f3 { top: 5.8rem; }

/* Varied tints so the page is not one flat colour */
.bento .tile:nth-child(2) .icon { background: #d9efe2; }
.bento .tile:nth-child(3) .icon { background: #f6e7c1; }
.bento .tile:nth-child(4) .icon { background: #dce8ef; }
.bento .tile:nth-child(5) .icon { background: #e9e1f0; }
.cards .card:nth-child(2) { border-top-color: #c9962b; }
.cards .card:nth-child(3) { border-top-color: #3b6f8a; }
.cards .card:nth-child(2) .icon { background: #f6e7c1; }
.cards .card:nth-child(3) .icon { background: #dce8ef; }
.steps li:nth-child(2) { border-top-color: #c9962b; }
.steps li:nth-child(3) { border-top-color: #3b6f8a; }
.steps li:nth-child(4) { border-top-color: var(--ink); }
.strip { background: var(--ink); }
.strip-row li { background: rgba(134, 217, 164, .08); border-color: rgba(134, 217, 164, .35); }

@media (max-width: 55.99rem) {
  .composite .photo { aspect-ratio: 16 / 7; }
  .composite .ui { position: relative; left: 0; right: 0; bottom: 0; margin: -2.5rem 1rem 0; }
  .float { display: none; }
}

/* Offer row directly under the hero */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
main section.offers { padding: 0 0 3.5rem; margin-top: -3.2rem; position: relative; z-index: 2; border-top: 0 !important; }
.offer { padding: 0; overflow: hidden; }
.offer > *:not(.thumb) { margin-left: 1.25rem; margin-right: 1.25rem; }
.offer .thumb { background: var(--tint); border-bottom: 1px solid var(--line); margin-bottom: 1rem; }
.offer .thumb svg { display: block; width: 100%; height: auto; }
.offer .fact { align-self: flex-start; font-size: .875rem; font-weight: 700; background: var(--tint); color: var(--accent); padding: .15rem .65rem; border-radius: 999px; margin-bottom: .6rem; }
.offer p:last-child { padding-bottom: 1.1rem; }
.offer p + p:last-child { margin-top: auto; padding-top: .8rem; border-top: 1px solid var(--line); }
.offer { }

.fig-row { display: grid; gap: .9rem; }
.fig { margin: 0; background: var(--tint); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; box-shadow: 0 12px 28px rgba(16, 33, 27, .10); }
.fig svg { display: block; width: 100%; height: auto; }
.fig figcaption { padding: .5rem .8rem .7rem; font-size: .85rem; font-weight: 600; color: var(--text); background: #ffffff; }

.hero .small { color: #34403a; }

.pron { display: inline-block; text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); margin-left: .9rem; font-size: .9rem; }
.pron::before { content: "\00B7"; margin-right: .9rem; color: var(--muted); }

.about-intro { align-items: start; }
@media (min-width: 56rem) { .about-intro { grid-template-columns: 22rem 1fr; gap: 3rem; } }
.about-intro .split-text { max-width: var(--measure); }
.portrait { margin: 0; max-width: 22rem; aspect-ratio: 1 / 1; border-radius: 14px; overflow: hidden; background: var(--tint); box-shadow: 0 16px 36px rgba(16, 33, 27, .14); }
.portrait img { display: block; width: 100%; height: auto; }

.tags { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0; }
.tags span { font-size: .85rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; background: var(--tint); border: 1px solid var(--line); }

.books { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); margin-top: 1.5rem; }
.book { display: flex; flex-direction: column; }
.book img { width: 100%; max-width: 15rem; height: auto; border-radius: 4px; box-shadow: 0 10px 24px rgba(16, 33, 27, .22); margin-bottom: 1rem; }
.book h3 { margin-bottom: .2rem; }
.book p { margin-bottom: .4rem; }
ul.plain { list-style: none; padding: 0; }
ul.plain li { padding: .6rem 0; border-top: 1px solid var(--line); }
ul.plain li:last-child { border-bottom: 1px solid var(--line); }

.article-hero { padding-bottom: 2.5rem; }
.article-hero h1 { max-width: 46rem; }
.meta { display: flex; flex-wrap: wrap; gap: .4rem; }
.prose { max-width: 44rem; }
.prose h2 { margin-top: 2.2rem; font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.prose h2:first-child { margin-top: 0; }
.prose p, .prose li { font-size: 1.08rem; }
.prose .table-wrap { margin: 1.25rem 0; width: min(100vw - 2.5rem, 58rem); }
.prose .compare { min-width: 0; }
.prose .compare th, .prose .compare td { font-size: .98rem; }
.author-box { display: grid; gap: 1.25rem; grid-template-columns: 5.5rem 1fr; align-items: center; max-width: 44rem; }
.author-box img { width: 5.5rem; height: 5.5rem; border-radius: 50%; object-fit: cover; }
.author-box p { margin: 0 0 .4rem; }
.articles { display: grid; gap: 1.25rem; max-width: 48rem; }
.article-card { border-top: 1px solid var(--line); padding-top: 1.25rem; }
.article-card h2 { font-size: 1.5rem; margin-bottom: .4rem; }
.article-card h2 a { color: var(--text); text-decoration: none; }
.article-card h2 a:hover { color: var(--accent); text-decoration: underline; }

.offer .thumb { position: relative; }
.offer .thumb::after { content: "Illustrative"; position: absolute; top: .5rem; right: .6rem; font-size: .72rem; font-weight: 600; color: var(--muted); background: rgba(255, 255, 255, .85); padding: .05rem .5rem; border-radius: 999px; }

details.patents { margin-top: 1rem; }
details.patents ul { margin: 0 1.1rem 1rem; }
.read-list a { font-family: var(--font-head); font-weight: 600; font-size: 1.1rem; }

/* Collapse the navigation earlier so it never wraps awkwardly on tablets */
@media (max-width: 59.99rem) {
  .js .nav-toggle { display: inline-block; background: transparent; color: var(--text); border: 1px solid var(--text); border-radius: 4px; padding: .45rem .9rem; font: inherit; cursor: pointer; }
  .js #site-nav { display: none; width: 100%; }
  .js #site-nav.open { display: block; }
  #site-nav { width: 100%; }
  #site-nav ul { flex-direction: column; align-items: flex-start; }
}

.article-tile h3 { font-size: 1.2rem; }
.article-tile h3 a { color: var(--text); text-decoration: none; }
.article-tile h3 a:hover { color: var(--accent); text-decoration: underline; }
.article-tile .small { margin-bottom: .5rem; }

/* Balanced line breaks avoid single-word last lines */
h1, h2, h3, .tagline, .lead { text-wrap: balance; }

/* Readable measure and size on inner pages */
.card p, .card li, .tile p, dl.facts dd, dl.facts dt { font-size: 1rem; }
.card ul { padding-left: 1.1rem; }
.lead { max-width: 40rem; }
.card dl.facts { grid-template-columns: 1fr; gap: .15rem; }
.card dl.facts dt { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-top: .5rem; }
.card dl.facts dd { margin-bottom: .4rem; }
.fig-flat { margin-bottom: 1.25rem; }

/* Due diligence as question-and-answer cards */
dl.facts.qa { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 22rem), 1fr)); gap: 1rem; margin-top: 1.25rem; }
.qa-item { background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 1rem 1.15rem; }
.qa-item dt { font-family: var(--font-head); font-size: 1.05rem; margin-bottom: .35rem; }
.qa-item dd { color: var(--muted); }

/* In-page navigation on long pages */
.page-nav { background: var(--tint); border-bottom: 1px solid var(--line); }
.page-nav .wrap { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; padding-top: .7rem; padding-bottom: .7rem; }
.page-nav a { font-size: .95rem; font-weight: 600; text-decoration: none; color: var(--text); padding: .15rem 0; border-bottom: 2px solid transparent; }
.page-nav a:hover { border-bottom-color: var(--accent); }

/* Breadcrumbs */
.breadcrumb { background: var(--bg); border-bottom: 1px solid var(--line); }
.breadcrumb ol { list-style: none; margin: 0; padding: .55rem 0; display: flex; flex-wrap: wrap; gap: .2rem .5rem; font-size: .88rem; color: var(--muted); }
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: .5rem; color: var(--line); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--text); }

/* Cards respond to hover */
.card, .tile, .article-card { transition: box-shadow .15s ease, transform .15s ease; }
.card:hover, .tile:hover { box-shadow: 0 10px 26px rgba(16, 33, 27, .12); transform: translateY(-2px); }

/* Print: clean reading copy for due diligence and articles */
@media print {
  .site-header, .site-footer, .skip, .nav-toggle, .page-nav, .breadcrumb, .cta-band, .hero-art, .actions, .btn { display: none !important; }
  body { background: #ffffff; color: #000000; font-size: 11pt; }
  main section, .hero { padding: 1rem 0 !important; background: #ffffff !important; border: 0 !important; }
  .alt { background: #ffffff; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000000; text-decoration: underline; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; }
  .card, .tile, .qa-item { break-inside: avoid; box-shadow: none; }
  .card:hover, .tile:hover { transform: none; box-shadow: none; }
}

/* Placeholder marker (legacy; no longer used in markup): remove each .todo span when the real fact is supplied. */
.todo { background: var(--todo-bg); color: var(--todo-text); padding: 0 .25em; border-radius: 2px; }

.site-footer { background: var(--ink); color: var(--on-ink-muted); padding: 2.25rem 0; font-size: .95rem; border-top: 1px solid var(--ink-2); }
.site-footer p { margin: 0 0 .4em; }
.site-footer a { color: var(--on-ink); }
.site-footer .brand { color: var(--on-ink); }
.site-footer .brand { margin-bottom: .75rem; font-size: 1.1rem; }
.site-footer .brand svg { height: 1.3rem; }

@media (min-width: 56rem) {
  .hero-grid { grid-template-columns: 1.15fr .95fr; gap: 3rem; }
  .split { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 47.99rem) {
  .js .nav-toggle {
    display: inline-block; background: transparent; color: var(--text);
    border: 1px solid var(--text); border-radius: 4px; padding: .45rem .9rem; font: inherit; cursor: pointer;
  }
  .js #site-nav { display: none; width: 100%; }
  .js #site-nav.open { display: block; }
  #site-nav { width: 100%; }
  #site-nav ul { flex-direction: column; align-items: flex-start; }
  dl.facts { grid-template-columns: 1fr; gap: .1rem; }
  dl.facts dd { margin-bottom: .75rem; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .card:hover, .tile:hover { transform: none; }
}
