/* TallyBrix theme — main stylesheet.
   Layout concept: international SaaS. Sea-blue hero, ink-black type in Geist,
   one electric blue accent, warm neutrals, hairline structure. Day and night palettes. */

@font-face {
  font-family: "Geist";
  src: url("../fonts/geist.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  /* Color: day */
  --c-ink: #13171b;
  --c-ink-2: #3b434d;
  --c-muted: #626b77;
  --c-line: #e7e5e2;
  --c-line-2: #d3d1d1;
  --c-bg: #ffffff;
  --c-bg-2: #f6f5f3;
  --c-card: #ffffff;
  --c-brand: #0b63e8;
  --c-brand-hover: #0a5ee0;
  --c-brand-ink: #0b3f99;
  --c-brand-soft: #eaf2ff;
  --c-hero-1: #d6ecf8;
  --c-hero-2: #eaf6fc;
  --c-hero-3: #ffffff;
  --c-foot: #13171b;
  --c-foot-2: #1c2228;
  --c-ok: #0a7a4b;
  --c-ok-soft: #e8f8ef;
  --c-warn: #9a3a0b;
  --c-warn-soft: #fff5ea;
  --c-err: #c0281b;
  --c-focus: rgba(15, 111, 255, .35);
  --c-header: rgba(255, 255, 255, .82);
  /* Type */
  --font: "Geist", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-xs: .8125rem;
  --fs-sm: .875rem;
  --fs-base: 1rem;
  --fs-md: 1.0625rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.625rem;
  --fs-2xl: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem);
  --fs-hero: clamp(2.25rem, 1.6rem + 2.8vw, 3.75rem);
  /* Shape */
  --wrap: 1240px;
  --gut: 16px;
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(19, 23, 27, .06);
  --shadow: 0 1px 2px rgba(19, 23, 27, .05), 0 18px 40px -18px rgba(19, 23, 27, .22);
  color-scheme: light;
}
@media (min-width: 640px) { :root { --gut: 24px; } }
@media (min-width: 1024px) { :root { --gut: 40px; } }

/* Night palette: only when the visitor chooses it. */
:root[data-mode="dark"] {
  --c-ink: #eef1f4; --c-ink-2: #c5ccd5; --c-muted: #8f99a6; --c-line: #242a31; --c-line-2: #333b45;
  --c-bg: #0d1014; --c-bg-2: #12161b; --c-card: #151a20;
  --c-brand: #4d94ff; --c-brand-hover: #75abff; --c-brand-ink: #cfe1ff; --c-brand-soft: #142640;
  --c-hero-1: #0f2333; --c-hero-2: #0e1820; --c-hero-3: #0d1014;
  --c-foot: #090b0e; --c-foot-2: #12161b;
  --c-ok: #4fd08e; --c-ok-soft: #0f2a1d; --c-warn: #f6b66b; --c-warn-soft: #2a1e10; --c-err: #ff7a6e;
  --c-focus: rgba(77, 148, 255, .45); --c-header: rgba(13, 16, 20, .8);
  color-scheme: dark;
}
.theme-anim, .theme-anim * { transition: background-color .25s ease, border-color .25s ease, color .25s ease !important; }

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--c-bg); color: var(--c-ink); font-family: var(--font); font-size: var(--fs-base); line-height: 1.6; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
a { color: var(--c-brand); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .2em; }
h1, h2, h3, h4 { font-weight: 600; line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; color: var(--c-ink); text-wrap: balance; }
p { margin: 0 0 1em; }
:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gut); }
.narrow { max-width: 740px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--c-brand); color: #fff; padding: .5rem .9rem; border-radius: var(--r-sm); }
.skip:focus { left: 8px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px, 1px, 1px, 1px); white-space: nowrap; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .625rem 1.2rem; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 500; font-size: var(--fs-sm); line-height: 1.2; text-decoration: none; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn:hover { text-decoration: none; }
.btn--sm { min-height: 36px; padding: .45rem .95rem; }
.btn--lg { min-height: 50px; padding: .8rem 1.5rem; font-size: var(--fs-base); }
.btn--primary { background: var(--c-ink); color: var(--c-bg); }
.btn--primary:hover { background: var(--c-brand); color: #fff; }
.btn--secondary, .btn--soft { background: var(--c-card); color: var(--c-ink); border-color: var(--c-line-2); }
.btn--secondary:hover, .btn--soft:hover { border-color: var(--c-ink); }
.btn--light, .site-footer .btn--light { background: #fff; color: #13171b; }
.btn--light:hover, .site-footer .btn--light:hover { background: #dfe9ff; color: #13171b; }
.btn--ghostlight { color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn--ghostlight:hover { border-color: #fff; color: #fff; }
.btn--block { width: 100%; }
.textlink { font-weight: 500; font-size: var(--fs-sm); white-space: nowrap; color: var(--c-ink); border-bottom: 1px solid var(--c-line-2); padding-bottom: 1px; }
.textlink:hover { text-decoration: none; border-color: var(--c-ink); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--c-header); -webkit-backdrop-filter: saturate(1.6) blur(14px); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid var(--c-line); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .site-header { background: var(--c-bg); } }
.site-header__in { display: flex; align-items: center; gap: 2rem; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--c-ink); min-width: 0; flex: 0 1 auto; }
.brand:hover { text-decoration: none; }
.brand__mark { flex: none; display: flex; }
.brand__name { font-weight: 600; font-size: 1.125rem; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand__logo { max-height: 36px; width: auto; }
.nav { flex: 1; }
.nav__list { list-style: none; margin: 0; padding: 0; display: flex; gap: .25rem; }
.nav__list a { display: block; padding: .45rem .75rem; border-radius: 999px; color: var(--c-ink-2); font-weight: 450; font-size: var(--fs-sm); white-space: nowrap; }
.nav__list a:hover { color: var(--c-ink); background: var(--c-bg-2); text-decoration: none; }
.nav__list .current-menu-item > a, .nav__list .current_page_item > a { color: var(--c-ink); background: var(--c-bg-2); }
.hdr-actions { display: flex; align-items: center; gap: .5rem; flex: none; }
.iconbtn { position: relative; appearance: none; display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--c-line-2); background: transparent; color: var(--c-ink); cursor: pointer; padding: 0; }
.iconbtn:hover { border-color: var(--c-ink); text-decoration: none; }
.themebtn__sun { display: none; }
:root[data-mode="dark"] .themebtn__sun { display: block; }
:root[data-mode="dark"] .themebtn__moon { display: none; }
.projlink__n { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--c-brand); color: #fff; font-size: .68rem; font-weight: 600; display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.projlink__n[hidden] { display: none; }
.navbtn { display: none; }
.navbtn__close { display: none; }
.nav-open .navbtn__open { display: none; }
.nav-open .navbtn__close { display: inline; }
@media (max-width: 1100px) {
  .site-header__in { gap: .75rem; }
  .brand { margin-right: auto; }
  .navbtn { display: inline-grid; }
  .nav { position: fixed; inset: 68px 0 auto 0; background: var(--c-bg); border-bottom: 1px solid var(--c-line); padding: .5rem var(--gut) 1.25rem; display: none; box-shadow: var(--shadow); max-height: calc(100vh - 68px); overflow: auto; }
  .nav-open .nav { display: block; }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list a { padding: .85rem .25rem; font-size: var(--fs-base); border-bottom: 1px solid var(--c-line); border-radius: 0; }
  .nav__list a:hover { background: none; }
}
@media (max-width: 560px) { .hdr-cta { display: none; } }

/* Hero */
.hero { position: relative; background: linear-gradient(180deg, var(--c-hero-1) 0%, var(--c-hero-2) 55%, var(--c-hero-3) 100%); overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -1; width: 720px; height: 720px; right: -160px; top: -260px; background: radial-gradient(circle, rgba(255, 255, 255, .75), rgba(255, 255, 255, 0) 65%); pointer-events: none; }
:root[data-mode="dark"] .hero::before { background: radial-gradient(circle, rgba(77, 148, 255, .14), rgba(77, 148, 255, 0) 65%); }
.hero__in { display: grid; gap: 2rem; padding-block: clamp(2.75rem, 2rem + 3.5vw, 5.5rem) clamp(1.5rem, 1rem + 2vw, 3rem); align-items: center; }
@media (min-width: 1000px) { .hero__in { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 3rem; } }
.hero__copy { min-width: 0; }
.hero__kicker { display: inline-flex; align-items: center; gap: .5rem; font-size: var(--fs-sm); color: var(--c-ink-2); background: rgba(255, 255, 255, .6); border: 1px solid var(--c-line); padding: .3rem .8rem .3rem .6rem; border-radius: 999px; margin-bottom: 1.5rem; }
:root[data-mode="dark"] .hero__kicker { background: rgba(255, 255, 255, .04); }
.hero__kdot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-brand); box-shadow: 0 0 0 3px var(--c-brand-soft); }
.hero__title { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -.035em; font-weight: 600; margin-bottom: 1.25rem; max-width: 15ch; }
.hero__lead { font-size: clamp(1.0625rem, 1rem + .35vw, 1.25rem); line-height: 1.55; color: var(--c-muted); max-width: 34rem; margin-bottom: 2rem; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1.5rem; }
.hero__art { min-width: 0; display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 600px; height: auto; display: block; }
.hero-art__dim, .hero-art__lead { stroke: var(--c-ink); stroke-width: 1.2; opacity: .75; }
.hero-art__pill { fill: var(--c-card); stroke: var(--c-line-2); }
.hero-art__txt { font: 600 12.5px var(--font); fill: var(--c-ink); }
.hero-art__glow { opacity: .9; }
:root[data-mode="dark"] .hero-art__glow { opacity: .06; }
@media (max-width: 999px) { .hero__art { order: 2; } .hero-art { max-width: 460px; } }

.finder { position: relative; max-width: 30rem; }
.finder__box { display: flex; align-items: center; gap: .6rem; background: var(--c-card); color: var(--c-muted); border: 1px solid var(--c-line-2); border-radius: 999px; padding: 0 .55rem 0 1.1rem; transition: border-color .15s, box-shadow .15s; }
.finder__box:focus-within { border-color: var(--c-brand); box-shadow: 0 0 0 4px var(--c-focus); }
.finder__box input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; color: var(--c-ink); height: 48px; }
.finder__box input::placeholder { color: var(--c-muted); }
.finder__kbd { font: inherit; font-size: .75rem; color: var(--c-muted); border: 1px solid var(--c-line-2); border-radius: 6px; padding: .05rem .45rem; }
@media (hover: none) { .finder__kbd { display: none; } }
.finder__results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 8px); list-style: none; margin: 0; padding: .35rem; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r); box-shadow: var(--shadow); }
.finder__results a { display: block; padding: .6rem .75rem; border-radius: var(--r-sm); color: var(--c-ink); }
.finder__results a:hover, .finder__results a:focus { background: var(--c-bg-2); outline: none; text-decoration: none; }
.finder__results strong { display: block; font-weight: 600; font-size: var(--fs-sm); }
.finder__results span { display: block; font-size: var(--fs-xs); color: var(--c-muted); }
.finder__none { padding: .7rem; color: var(--c-muted); font-size: var(--fs-sm); }

/* Scrolling strip */
.strip { padding-block: 1.25rem 2.5rem; }
.strip__label { text-align: center; font-size: var(--fs-sm); color: var(--c-muted); margin: 0 0 1rem; }
.strip__viewport { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.strip__track { list-style: none; margin: 0; padding: 0; display: flex; gap: 3rem; width: max-content; animation: strip 48s linear infinite; }
.strip__viewport:hover .strip__track, .strip__viewport:focus-within .strip__track { animation-play-state: paused; }
.strip__track li, .strip__track a { display: inline-flex; align-items: center; gap: .55rem; font-size: 1.0625rem; font-weight: 500; color: var(--c-ink-2); white-space: nowrap; letter-spacing: -.01em; }
.strip__track a:hover { color: var(--c-ink); text-decoration: none; }
.strip__track .bdt-icon { color: var(--c-muted); }
@keyframes strip { to { transform: translateX(calc(-50% - 1.5rem)); } }
@media (prefers-reduced-motion: reduce) {
  .strip__viewport { -webkit-mask-image: none; mask-image: none; }
  .strip__track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; gap: .75rem 2rem; padding-inline: var(--gut); }
  .strip__track li[aria-hidden="true"] { display: none; }
}

/* Section headings */
.band { padding-block: clamp(3.5rem, 2.6rem + 3.5vw, 6rem); }
.band--tint { background: var(--c-bg-2); }
.sechead { max-width: 46rem; margin-bottom: 2.5rem; }
.sechead--row { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.sechead--row > div { max-width: 46rem; }
.sechead__title { font-size: var(--fs-2xl); letter-spacing: -.03em; line-height: 1.1; margin-bottom: .75rem; }
.sechead__sub { color: var(--c-muted); font-size: var(--fs-md); margin: 0; }

/* Metrics */
.metrics { display: grid; gap: 1px; background: var(--c-line); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; grid-template-columns: 1fr; }
@media (min-width: 640px) { .metrics { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .metrics { grid-template-columns: repeat(4, 1fr); } }
.metric { background: var(--c-card); padding: 1.75rem 1.5rem 1.5rem; display: flex; flex-direction: column; min-width: 0; }
.metric__n { font-size: clamp(2.5rem, 2rem + 1.6vw, 3.25rem); font-weight: 600; letter-spacing: -.04em; line-height: 1; margin: 0 0 .9rem; color: var(--c-ink); font-variant-numeric: tabular-nums; }
.metric__t { font-weight: 600; margin: 0 0 .4rem; }
.metric__d { color: var(--c-muted); font-size: var(--fs-sm); margin: 0 0 1.25rem; }
.metric__a { margin-top: auto; font-size: var(--fs-sm); font-weight: 500; color: var(--c-ink); }
.metric__a::after { content: ""; display: inline-block; width: 6px; height: 6px; border-top: 1.5px solid currentColor; border-right: 1.5px solid currentColor; transform: rotate(45deg); margin-left: .45rem; vertical-align: .1em; transition: margin-left .15s; }
.metric__a:hover { text-decoration: none; color: var(--c-brand); }
.metric__a:hover::after { margin-left: .65rem; }

/* Live estimate panel */
.panel { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow); width: 100%; min-width: 0; font-variant-numeric: tabular-nums; overflow: hidden; }
.panel__bar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1.15rem; border-bottom: 1px solid var(--c-line); }
.panel__title { font-size: var(--fs-sm); font-weight: 600; margin: 0; letter-spacing: 0; }
.panel__live { display: inline-flex; align-items: center; gap: .45rem; font-size: var(--fs-xs); color: var(--c-muted); }
.panel__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--c-ok); box-shadow: 0 0 0 3px var(--c-ok-soft); }
.panel__form { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; padding: 1rem 1.15rem; }
@media (max-width: 420px) { .panel__form { grid-template-columns: 1fr 1fr; } .panel__form .pf:last-child { grid-column: 1 / -1; } }
.pf { display: block; min-width: 0; }
.pf__l { display: block; font-size: var(--fs-xs); font-weight: 500; color: var(--c-ink-2); margin-bottom: .3rem; }
.pf__in { position: relative; display: flex; align-items: center; border: 1px solid var(--c-line-2); border-radius: var(--r-sm); background: var(--c-card); transition: border-color .15s, box-shadow .15s; }
.pf__in:focus-within { border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-focus); }
.pf__in input, .pf__in select { flex: 1; width: 100%; min-width: 0; border: 0; outline: none; background: transparent; font: inherit; font-size: 16px; font-weight: 500; color: var(--c-ink); height: 42px; padding: 0 .7rem; appearance: none; -webkit-appearance: none; }
.pf__in select option { background: var(--c-card); color: var(--c-ink); }
.pf__in > span { padding-right: .7rem; color: var(--c-muted); font-size: var(--fs-xs); }
.pf__in input[aria-invalid="true"] { color: var(--c-err); }
.pf__in--sel::after { content: ""; position: absolute; right: .8rem; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--c-muted); border-bottom: 1.5px solid var(--c-muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
.panel__t { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.panel__t thead th { font-size: var(--fs-xs); font-weight: 500; color: var(--c-muted); text-align: left; padding: .55rem 1.15rem; background: var(--c-bg-2); border-top: 1px solid var(--c-line); border-bottom: 1px solid var(--c-line); }
.panel__t thead th:last-child, .panel__t td { text-align: right; }
.panel__t tbody th { text-align: left; font-weight: 450; color: var(--c-ink-2); padding: .7rem 1.15rem; border-bottom: 1px solid var(--c-line); }
.panel__t td { padding: .7rem 1.15rem; border-bottom: 1px solid var(--c-line); color: var(--c-muted); white-space: nowrap; }
.panel__t td strong, .panel__t td span { color: var(--c-ink); font-weight: 600; font-size: var(--fs-base); }
.panel__t tbody tr:first-child td strong { color: var(--c-brand); font-size: var(--fs-lg); }
.panel__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding: .9rem 1.15rem; }
.panel__sum { margin: 0; font-size: var(--fs-xs); color: var(--c-muted); }

/* Calculators by job */
.jobs { display: grid; gap: 2rem 2.5rem; grid-template-columns: 1fr; }
@media (min-width: 720px) { .jobs { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1080px) { .jobs { grid-template-columns: repeat(3, 1fr); } }
.job { min-width: 0; }
.job__head { display: flex; align-items: center; gap: .6rem; padding-bottom: .8rem; border-bottom: 1px solid var(--c-ink); }
.job__icon { color: var(--c-brand); display: flex; }
.job__title { font-size: var(--fs-base); font-weight: 600; margin: 0; letter-spacing: -.01em; }
.job__title a { color: var(--c-ink); }
.job__tools { list-style: none; margin: 0; padding: 0; }
.job__tools a { display: block; padding: .8rem 1.5rem .8rem 0; border-bottom: 1px solid var(--c-line); position: relative; color: var(--c-ink); }
.job__tools a::after { content: ""; position: absolute; right: .35rem; top: 50%; width: 6px; height: 6px; border-top: 1.5px solid var(--c-line-2); border-right: 1.5px solid var(--c-line-2); transform: translateY(-50%) rotate(45deg); transition: border-color .15s, right .15s; }
.job__tools a:hover { text-decoration: none; }
.job__tools a:hover .job__name { color: var(--c-brand); }
.job__tools a:hover::after { border-color: var(--c-brand); right: .15rem; }
.job__name { display: block; font-weight: 500; font-size: var(--fs-sm); }
.job__desc { display: block; font-size: var(--fs-xs); color: var(--c-muted); margin-top: .15rem; line-height: 1.45; }

/* Steps (a real sequence) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.5rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.steps__item { display: flex; gap: 1rem; min-width: 0; }
.steps__n { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--c-ink); color: var(--c-bg); display: grid; place-items: center; font-weight: 600; font-size: var(--fs-sm); }
.steps__item h3 { font-size: var(--fs-base); margin: .35rem 0 .35rem; letter-spacing: -.01em; }
.steps__item p { color: var(--c-muted); margin: 0; font-size: var(--fs-sm); }

/* Split sections */
.split { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 960px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 5rem; } }
.split__copy { min-width: 0; }
.split__copy > p { color: var(--c-muted); font-size: var(--fs-md); max-width: 32rem; }
.ticks { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: .6rem; color: var(--c-ink-2); font-size: var(--fs-sm); }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: .15rem; top: .42em; width: 9px; height: 5px; border-left: 2px solid var(--c-brand); border-bottom: 2px solid var(--c-brand); transform: rotate(-45deg); }
.sheet { margin: 0; min-width: 0; background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); box-shadow: var(--shadow); font-variant-numeric: tabular-nums; overflow: hidden; }
.sheet__head { display: flex; justify-content: space-between; align-items: center; gap: 1rem; font-weight: 600; font-size: var(--fs-sm); padding: .9rem 1.15rem; border-bottom: 1px solid var(--c-line); }
.sheet__tag { font-size: var(--fs-xs); font-weight: 500; color: var(--c-muted); background: var(--c-bg-2); border: 1px solid var(--c-line); padding: .1rem .55rem; border-radius: 999px; }
.sheet__scroll { overflow-x: auto; }
.sheet__t { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.sheet__t th, .sheet__t td { text-align: right; padding: .65rem 1.15rem; border-bottom: 1px solid var(--c-line); white-space: nowrap; }
.sheet__t th:first-child, .sheet__t td:first-child { text-align: left; }
.sheet__t thead th { font-size: var(--fs-xs); color: var(--c-muted); font-weight: 500; background: var(--c-bg-2); }
.sheet__t td { color: var(--c-ink-2); }
.sheet__t td:last-child { color: var(--c-ink); font-weight: 600; }
.sheet__t tfoot th, .sheet__t tfoot td { border-bottom: 0; font-weight: 600; color: var(--c-ink); font-size: var(--fs-base); }
.sheet__t tfoot th { text-align: left; }

/* FAQ */
.faqwrap { display: grid; gap: 1.5rem 4rem; }
@media (min-width: 920px) { .faqwrap { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); } }
.faq { border-top: 1px solid var(--c-line); min-width: 0; }
.faq details { border-bottom: 1px solid var(--c-line); }
.faq summary { list-style: none; cursor: pointer; padding: 1.15rem 2rem 1.15rem 0; font-weight: 500; font-size: var(--fs-md); position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: .25rem; top: 1rem; font-size: 1.4rem; font-weight: 300; color: var(--c-muted); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--c-muted); margin: 0 0 1.15rem; max-width: 62ch; }

/* Posts */
.posts { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pcard { background: var(--c-card); border: 1px solid var(--c-line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; }
.pcard__img img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.pcard__body { padding: 1.1rem 1.2rem 1.25rem; }
.pcard__title { font-size: var(--fs-base); margin: 0 0 .4rem; letter-spacing: -.01em; }
.pcard__title a { color: var(--c-ink); }
.pcard__text { color: var(--c-muted); font-size: var(--fs-sm); margin: 0 0 .5rem; }
.pcard__meta { color: var(--c-muted); font-size: var(--fs-xs); margin: 0; }

/* Pages and articles */
.page-tool { padding-block: 1.25rem 4rem; }
.page-doc, .listing { padding-block: 2.75rem 4rem; }
.entry { margin: 0 auto; }
.entry__head { margin-bottom: 1.75rem; padding-bottom: 1.25rem; border-bottom: 1px solid var(--c-line); }
.entry__title { font-size: var(--fs-2xl); letter-spacing: -.03em; line-height: 1.12; margin: 0; }
.entry__meta { color: var(--c-muted); font-size: var(--fs-sm); margin: .6rem 0 0; }
.entry__img { margin: 0 0 2rem; }
.entry__img img { border-radius: var(--r-lg); display: block; }
.entry__content { font-size: var(--fs-md); line-height: 1.72; color: var(--c-ink-2); }
.entry__content > * { max-width: 68ch; }
.entry__content h2 { font-size: var(--fs-xl); margin: 2.25rem 0 .75rem; color: var(--c-ink); }
.entry__content h3 { font-size: var(--fs-lg); margin: 1.75rem 0 .5rem; color: var(--c-ink); }
.entry__content ul, .entry__content ol { padding-left: 1.25rem; }
.entry__content li { margin-bottom: .35rem; }
.entry__content strong { color: var(--c-ink); font-weight: 600; }
.entry__content table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); margin: 0 0 1.5rem; }
.entry__content th, .entry__content td { border-bottom: 1px solid var(--c-line); padding: .55rem .6rem; text-align: left; }
.entry__content blockquote { margin: 1.5rem 0; padding-left: 1.25rem; border-left: 3px solid var(--c-line-2); color: var(--c-ink); }
.crumbs { font-size: var(--fs-sm); color: var(--c-muted); margin-bottom: 1rem; }
.crumbs a { color: var(--c-muted); }
.cta-box { margin: 3rem 0 2rem; padding: 1.5rem; border-radius: var(--r-lg); border: 1px solid var(--c-line); background: var(--c-bg-2); }
.cta-box h2 { font-size: var(--fs-lg); margin-bottom: .4rem; }
.cta-box p { color: var(--c-ink-2); }
.listing__head { margin-bottom: 2rem; max-width: 740px; }
.listing__head h1 { font-size: var(--fs-2xl); letter-spacing: -.03em; }
.listing__desc { color: var(--c-ink-2); }
.searchform { display: flex; gap: .5rem; max-width: 520px; }
.searchform input { flex: 1; min-width: 0; font: inherit; font-size: 16px; padding: 0 1rem; height: 44px; border: 1px solid var(--c-line-2); border-radius: 999px; background: var(--c-card); color: var(--c-ink); }
.searchform input:focus { outline: none; border-color: var(--c-brand); box-shadow: 0 0 0 3px var(--c-focus); }
.nav-links { display: flex; gap: .4rem; margin-top: 2rem; flex-wrap: wrap; }
.nav-links .page-numbers { padding: .45rem .85rem; border: 1px solid var(--c-line-2); border-radius: 999px; font-size: var(--fs-sm); }
.nav-links .current { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.slot, .slots { margin: 2rem 0; text-align: center; }
.comments { margin-top: 3rem; }
.comment-form input:not([type=submit]):not([type=checkbox]), .comment-form textarea { width: 100%; font: inherit; font-size: 16px; padding: .6rem .8rem; border: 1px solid var(--c-line-2); border-radius: var(--r-sm); background: var(--c-card); color: var(--c-ink); }
.comment-form .submit { background: var(--c-ink); color: var(--c-bg); border: 0; border-radius: 999px; padding: .7rem 1.2rem; font: inherit; font-weight: 500; cursor: pointer; }
.empty { padding: 1rem 0; color: var(--c-ink-2); }

/* Footer */
.site-footer { position: relative; background: var(--c-foot); color: #9aa3ad; font-size: var(--fs-sm); overflow: hidden; }
.site-footer a { color: #e9edf1; }
.site-footer a:hover { color: #fff; }
.fcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.5rem 2rem; padding-block: 3.5rem; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.fcta__copy { max-width: 40rem; }
.fcta__title { color: #fff; font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.25rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin: 0 0 .5rem; }
.fcta__text { margin: 0; font-size: var(--fs-md); }
.fcta__actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.site-footer__grid { display: grid; gap: 2rem; padding-block: 3rem 2.5rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); }
@media (min-width: 900px) { .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.site-footer__about p { max-width: 26rem; margin-top: 1rem; }
.brand--footer .brand__name { color: #fff; }
.site-footer__h { color: #fff; font-weight: 500; margin-bottom: 1rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .65rem; }
.site-footer__base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem 2rem; border-top: 1px solid rgba(255, 255, 255, .1); padding-block: 1.25rem 1.5rem; font-size: var(--fs-xs); color: #7d8792; }
.site-footer__base p { margin: 0; max-width: 46rem; }
.site-footer__legal { display: flex; gap: 1.25rem; }
.site-footer__legal li { margin: 0; }
.site-footer__word { margin: 0; padding: 0 var(--gut); text-align: center; font-weight: 700; letter-spacing: -.06em; line-height: .78; font-size: clamp(4rem, 17vw, 15rem); color: transparent; background: linear-gradient(180deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, 0) 85%); -webkit-background-clip: text; background-clip: text; white-space: nowrap; overflow: hidden; user-select: none; transform: translateY(14%); }

/* Back to top */
.totop { position: fixed; right: calc(16px + env(safe-area-inset-right, 0px)); bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 60; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--c-line-2); background: var(--c-card); color: var(--c-ink); box-shadow: var(--shadow); display: grid; place-items: center; cursor: pointer; transition: transform .15s, border-color .15s; }
.totop:hover { border-color: var(--c-ink); transform: translateY(-2px); }
.totop[hidden] { display: none; }

@media print {
  .site-header, .site-footer, .totop, .bdt-slot, .bdt-related, .bdt-toc, .bdt-actions, .bdt-next, .bdt-form__actions, .skip, .slots, .cta-box, .comments { display: none !important; }
  body { background: #fff; color: #000; }
  .bdt-app { display: block !important; }
  .bdt-result { position: static !important; max-height: none !important; overflow: visible !important; }
}
.brand { flex: none; }
@media (min-width: 1101px) and (max-width: 1320px) {
  .nav__list a { padding: .45rem .5rem; }
  .hdr-cta { padding-left: 1rem; padding-right: 1rem; }
}
/* Links inside running text are underlined so they never rely on colour alone. */
.sechead__sub a, .entry-content p a, .page-content p a, .site-main p a:not(.btn):not(.textlink):not(.metric__a) { text-decoration: underline; text-underline-offset: 2px; }
