/*
  TariffBoost site.css: the brand tokens and the page CSS that sits on the Taste Skill kit
  (static/kit/system.css, ui/cards.css, motion/motion.css, layout/layout.css). The kit sets the
  rhythm, grid, buttons, cards, nav and motion; this file sets the TariffBoost palette and type, and
  styles what sits inside the visuals (product UI, the ledger, the ticker) and the site's own markup
  (server-rendered news, the calculator, forms).

  Brand: paper ground, carbon ink, TariffBoost red as the one action colour. Instrument Sans for
  words, DM Mono for customs data (entries, HTS codes, values). Sharp radii, one hairline.
*/

/* ---------------------------------------------------------------- fonts (self-hosted Latin subsets) */
@font-face {
  font-family: "Instrument Sans"; font-style: normal; font-weight: 400 700; font-stretch: 75% 100%; font-display: swap;
  src: url("/static/fonts/InstrumentSans-Variable-Latin.woff2") format("woff2");
}
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("/static/fonts/DMMono-400-Latin.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("/static/fonts/DMMono-500-Latin.woff2") format("woff2"); }

/* ---------------------------------------------------------------- tokens (start.mjs brand, as printed) */
:root {
  --p-bg: #fbfbfa; --p-surface: #f1f1ef; --p-ink: #16171a; --p-muted: #6b6b6d;
  --p-accent: #99000f; --p-accent-ink: #fbfbfa; --p-action: #99000f; --p-action-ink: #fbfbfa;
  --p-inv-bg: #16171a; --p-inv-surface: #232427; --p-inv-ink: #fbfbfa; --p-inv-muted: #9b9b9c;
  --p-inv-accent: #fbfbfa; --p-inv-accent-ink: #16171a; --p-inv-action: #fbfbfa; --p-inv-action-ink: #16171a;
  --font-display: "Instrument Sans", system-ui, sans-serif;
  --font-text: "Instrument Sans", system-ui, sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  --display-weight: 500;
  --display-tracking: -0.028em;
  --display-tracking-xl: -0.036em;
  --display-stretch: 96%;
  --ly-scale: 1.04;
}
/* the site's own: the header carries the news ticker above the bar, so --nav is both rows */
:root {
  --ticker-h: 36px;
  --bar-h: 72px;
  --nav: calc(var(--ticker-h) + var(--bar-h));
  --padt: calc(var(--nav) + 48px);
  --tb-flag: color-mix(in oklab, var(--p-accent) 9%, #fff);
  --tb-flag-line: color-mix(in oklab, var(--p-accent) 28%, transparent);
}
@media (max-width: 639px) {
  :root { --ticker-h: 32px; --bar-h: 56px; --nav: calc(var(--ticker-h) + var(--bar-h)); --padt: calc(var(--nav) + 40px); }
}

/* ---------------------------------------------------------------- shared type and marks */
.tb-kicker, .tr-kicker {
  display: inline-flex; align-items: center; gap: var(--s-2);
  font: 500 var(--t-label)/1.4 var(--font-mono); letter-spacing: 0; color: var(--muted);
}
.tb-kicker::before, .tr-kicker::before {
  content: ""; width: 6px; height: 6px; flex: none; background: var(--accent);
}
.mono, .tb-mono { font-family: var(--font-mono); }
/* one link look: the kit's .link; the site's own arrows (<span aria-hidden>→</span>) replace the kit's drawn one */
.tr-text-link {
  display: inline-flex; align-items: center; gap: var(--s-2); font-weight: 500; color: var(--ink);
  text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px;
  transition: text-decoration-color var(--dur) var(--ease);
}
.tr-text-link:hover { text-decoration-color: currentColor; }
.link:has(> span[aria-hidden="true"])::after { content: none; display: none; }
:is(.link, .tr-text-link) > span[aria-hidden="true"], .btn > b[aria-hidden="true"] {
  display: inline-block; font-weight: 400; text-decoration: none; transition: transform var(--dur) var(--ease);
}
@media (hover: hover) and (pointer: fine) {
  :is(.link, .tr-text-link):hover > span[aria-hidden="true"], .btn:hover > b[aria-hidden="true"] { transform: translateX(3px); }
}
.btn > b[aria-hidden="true"] { font-size: 1.1em; line-height: 1; }
.brand-wordmark { display: block; width: auto; }
h1, h2, h3, h4 { hyphens: manual; -webkit-hyphens: manual; }
/* the nav words as plain links (the markup an app process started before the nav change still renders): the same
   look as .nav__item > .nav__link, so the bar never depends on when the server restarts */
.nav__links > a {
  position: relative; display: inline-flex; align-items: center; align-self: center; height: 36px; padding: 0 var(--s-3); border-radius: var(--r-sm);
  font-size: 15px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: color var(--dur) var(--ease);
}
.nav__links .nav__link, .nav__links > a { text-transform: capitalize; }
.nav__links > a::before { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -2px; height: 2px; border-radius: 2px; background: currentColor;
  transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); pointer-events: none; }
.nav__links > a:hover::before, .nav__links > a:focus-visible::before { transform: scaleX(1); transform-origin: left; }
.nav__links > a[aria-current="page"]::after { content: ""; position: absolute; left: var(--s-3); right: var(--s-3); bottom: -2px; height: 2px; border-radius: 2px; background: currentColor; }
@media (min-width: 1024px) { .nav--centre .nav__links:has(> a) { align-items: center; gap: var(--s-1); } }
@media (max-width: 1023px) {
  .nav.is-open .nav__links > a { display: flex; align-self: stretch; height: 56px; padding: 0; font-size: 20px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav.is-open .nav__links > a::before { display: none; }
  .nav.is-open .nav__links > a[aria-current="page"]::after { left: 0; right: auto; width: 24px; bottom: 10px; }
}
/* a small laptop (1024-1279): six words, Contact and the button share the bar, so it runs as one flex row */
@media (min-width: 1024px) and (max-width: 1279px) {
  .nav--centre .nav__bar { display: flex; gap: var(--s-4); }
  .nav .nav__logo .brand-wordmark { height: 18px; }
  .nav--centre .nav__links { flex: 1; justify-content: center; }
  .nav__links .nav__link, .nav__links > a { padding: 0 5px; font-size: 14px; }
  .nav__links .nav__link::before, .nav__links .nav__link[aria-current="page"]::after,
  .nav__links > a::before, .nav__links > a[aria-current="page"]::after { left: 5px; right: 5px; }
  .nav__actions { gap: var(--s-3); }
  .nav__actions .nav__link { font-size: 14px; }
}

/* ---------------------------------------------------------------- header: the ticker row and the bar */
.nav { height: var(--nav); display: flex; flex-direction: column; background: linear-gradient(var(--p-accent), var(--p-accent)) top / 100% var(--ticker-h) no-repeat, var(--bg); }
.nav > .nav__bar { height: var(--bar-h); flex: none; }
.nav > .news-ticker { order: -1; }
.nav__logo { min-height: 44px; }
.nav__logo .brand-wordmark { height: 20px; }
@media (max-width: 639px) { .nav__logo .brand-wordmark { height: 17px; } }
.nav__actions .nav__link { height: 44px; }

.news-ticker {
  height: var(--ticker-h); flex: none; overflow: hidden; margin-inline: auto;
  color: var(--p-inv-ink);
  --line: color-mix(in oklab, var(--p-inv-ink) 16%, transparent);
}
.news-ticker__row { height: 100%; display: flex; align-items: center; gap: var(--s-4); }
.news-ticker-label {
  display: inline-flex; align-items: center; gap: var(--s-2); flex: none;
  font: 500 var(--t-label)/1 var(--font-mono); color: var(--p-inv-ink); white-space: nowrap;
}
/* the live sign inside the looping row: the dot is still, a ring grows from it and fades (2.4 s) */
.news-ticker-pulse { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--p-inv-ink); }
.news-ticker-pulse::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--p-inv-ink); opacity: 0;
  animation: tb-live 2.4s linear infinite;
}
@keyframes tb-live { 0% { transform: scale(.4); opacity: .9; } 70%, 100% { transform: scale(1.4); opacity: 0; } }
.news-ticker-viewport {
  flex: 1 1 auto; min-width: 0; height: 100%; overflow: hidden; display: flex; align-items: center;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent);
}
.news-ticker-track { display: flex; width: max-content; }
.news-ticker-group { display: flex; flex: none; align-items: center; }
.news-ticker-item {
  display: inline-flex; align-items: baseline; gap: var(--s-3); padding: 0 var(--s-6); white-space: nowrap;
  font-size: var(--t-label); line-height: var(--ticker-h); color: var(--p-inv-ink);
  border-left: 1px solid var(--line);
}
.news-ticker-group > .news-ticker-item:first-child { border-left: 0; }
.news-ticker-item strong { font-weight: 500; }
.news-ticker-item .news-source { font: 400 var(--t-label)/1 var(--font-mono); color: color-mix(in oklab, var(--p-inv-ink) 76%, transparent); }
.news-ticker-item:hover strong, .news-ticker-item:focus-visible strong { text-decoration: underline; text-underline-offset: 3px; }
.news-ticker-item:focus-visible { outline-color: var(--p-inv-ink); outline-offset: -3px; }
.news-ticker-track.is-ready { animation: tb-ticker var(--ticker-dur, 70s) linear infinite; }
.news-ticker:hover .news-ticker-track, .news-ticker:focus-within .news-ticker-track, .news-ticker.is-paused .news-ticker-track { animation-play-state: paused; }
@keyframes tb-ticker { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
.news-ticker-toggle {
  flex: none; display: inline-grid; place-items: center; width: 28px; height: 28px; padding: 0; border-radius: 50%;
  border: 1px solid var(--line); background: transparent; color: var(--p-inv-ink); cursor: pointer;
}
.news-ticker-toggle svg { width: 12px; height: 12px; fill: currentColor; }
.news-ticker-toggle__play, .news-ticker.is-paused .news-ticker-toggle__pause { display: none; }
.news-ticker.is-paused .news-ticker-toggle__play { display: block; }
.news-ticker-toggle:focus-visible { outline-color: var(--p-inv-ink); }
@media (prefers-reduced-motion: reduce) {
  .news-ticker-track.is-ready { animation: none; }
  .news-ticker-viewport { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .news-ticker-track > [aria-hidden="true"] { display: none; }
  .news-ticker-toggle { display: none; }
  .news-ticker-pulse::after { animation: none; }
}
@media (max-width: 639px) {
  .news-ticker-track.is-ready { animation: none; }
  .news-ticker-viewport { overflow-x: auto; scrollbar-width: none; -webkit-mask-image: none; mask-image: none; }
  .news-ticker-track > [aria-hidden="true"] { display: none; }
  .news-ticker-toggle { display: none; }
  .news-ticker-label > span:last-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .news-ticker__row { gap: var(--s-3); }
  .news-ticker-item { padding: 0 var(--s-5); }
}

/* ---------------------------------------------------------------- the homepage hero (hero--centred) */
.tb-hero h1 { max-width: none; font-size: var(--ly-h1); }
.tb-hero .tr-hero-primary-line { display: block; }
.tb-hero h1 > br { display: none; }
.tb-hero .tr-hero-secondary-line {
  display: block; margin-top: var(--s-3); color: var(--muted);
  font-size: clamp(22px, 1.33vw + 16.8px, 36px); line-height: 1.15; letter-spacing: var(--display-tracking);
}
.tb-hero .btn-row { margin-top: var(--s-5); }
.tr-hero-checklist {
  display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s-2) var(--s-6);
  margin-top: var(--s-2); font-size: var(--t-small); color: var(--ink);
}
.tr-hero-checklist li { display: inline-flex; align-items: center; gap: var(--s-2); }
.tr-hero-checklist li::before {
  content: ""; flex: none; width: 14px; height: 14px; background: var(--accent);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l2.8 2.8L11.5 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 14'%3E%3Cpath d='M2.5 7.4l2.8 2.8L11.5 4' fill='none' stroke='black' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.tr-hero-checklist br { display: none; }
/* the frame: the harbor photograph is the lit ground the product window rises out of */
.tb-hero-window { background: #2a1a12; border: 0; }
.tb-hero-window__photo { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 38%; }

/* the product window (illustrative 7501 review) */
.tb-app {
  background: #fff; color: var(--p-ink); border: 1px solid rgba(22, 23, 26, .14); border-radius: var(--r-lg);
  box-shadow: 0 30px 70px -28px rgba(20, 10, 5, .65), 0 2px 6px rgba(20, 10, 5, .12);
  font: 400 13px/1.35 var(--font-text); overflow: hidden; text-align: left;
}
.tb-app__bar {
  height: 40px; display: flex; align-items: center; gap: var(--s-3); padding: 0 var(--s-4);
  border-bottom: 1px solid var(--p-surface); background: #fbfbfa; white-space: nowrap;
}
.tb-app__bar b { font-weight: 500; }
.tb-app__dots { display: inline-flex; gap: 6px; margin-right: var(--s-2); }
.tb-app__dots i { width: 9px; height: 9px; border-radius: 50%; background: #dcdcd8; }
.tb-app__crumb, .tb-app__live { font-family: var(--font-mono); color: var(--p-muted); }
.tb-app__sp { flex: 1; }
.tb-app__live::before { content: ""; display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: #2e8b57; vertical-align: 1px; }
.tb-app__body { display: grid; grid-template-columns: 196px minmax(0, 1fr); min-height: 0; }
.tb-app__list { border-right: 1px solid var(--p-surface); padding: var(--s-2) 0; }
.tb-app__q { padding: var(--s-2) var(--s-4); color: var(--p-muted); }
.tb-app__item { display: grid; grid-template-columns: 1fr auto; gap: 2px var(--s-2); padding: 9px var(--s-4); border-left: 2px solid transparent; }
.tb-app__item b { font: 500 13px/1.3 var(--font-mono); }
.tb-app__item span { grid-column: 1; color: var(--p-muted); }
.tb-app__item em { grid-column: 2; grid-row: 1 / span 2; align-self: center; font-style: normal; font-size: 13px; color: var(--p-accent); }
.tb-app__item em.is-ok { color: var(--p-muted); }
.tb-app__item.is-on { background: #f6f6f4; border-left-color: var(--p-accent); }
.tb-app__main { padding: var(--s-4); display: grid; grid-template-columns: minmax(0, 1fr) 264px; gap: var(--s-4); align-items: start; }
.tb-app__table { font-family: var(--font-mono); font-size: 13px; }
.tb-app__tr { display: grid; grid-template-columns: 34px 1.5fr 44px 1fr 1fr; gap: var(--s-2); align-items: center; height: 34px; padding: 0 var(--s-2); border-bottom: 1px solid var(--p-surface); }
.tb-app__tr > span:nth-child(n+4) { text-align: right; }
.tb-app__th { height: 30px; color: var(--p-muted); font-family: var(--font-text); }
.tb-app__tr.is-flag { background: var(--tb-flag); box-shadow: inset 2px 0 0 var(--p-accent); }
.tb-app__steps { display: grid; gap: var(--s-2); }
.tb-app__tool { display: flex; align-items: center; gap: var(--s-2); color: var(--p-muted); line-height: 1.35; }
.tb-app__tool i { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #d4d4d0; border-top-color: var(--p-accent); animation: tb-spin 1s linear infinite; }
@keyframes tb-spin { to { transform: rotate(360deg); } }
.tb-app__finding { display: grid; gap: 4px; padding: var(--s-3); border: 1px solid var(--tb-flag-line); border-radius: var(--r-md); background: var(--tb-flag); }
.tb-app__finding b { font-weight: 500; color: var(--p-accent); }
.tb-app__finding span { font-family: var(--font-mono); color: var(--p-ink); }
.tb-app__finding strong { font: 500 20px/1.1 var(--font-display); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tb-app__acts { display: flex; flex-wrap: wrap; gap: var(--s-2); }
.tb-app__acts span { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; white-space: nowrap; border-radius: var(--r-sm); border: 1px solid #d9d9d5; font-weight: 500; }
.tb-app__acts .is-primary { background: var(--p-accent); border-color: var(--p-accent); color: #fff; }
@media (max-width: 1279px) {
  .tb-app__body { grid-template-columns: 1fr; }
  .tb-app__list { display: none; }
}
@media (max-width: 767px) {
  .tb-app__main { grid-template-columns: 1fr; }
  .tb-app__crumb, .tb-app__live, .tb-app__tool { display: none; }
  .tb-app__tr { grid-template-columns: 34px 1.5fr 1fr; }
  .tb-app__tr > span:nth-child(3), .tb-app__tr > span:nth-child(4) { display: none; }
}
@media (prefers-reduced-motion: reduce) { .tb-app__tool i { animation: none; } }

/* ---------------------------------------------------------------- splits (text left, the visual right on k = 7) */
@media (min-width: 1024px) {
  .tb-split { align-items: start; }
  .tb-split > .tb-split__text { grid-column: 1 / span 5; }
  .tb-split > .tb-split__media { grid-column: 7 / span 6; }
  .tb-vision .tb-split > .tb-split__text { grid-column: 1 / span 6; }
}
.tb-split__text { display: grid; gap: var(--s-5); align-content: start; }
.tb-split__text > h2 { max-width: 18ch; }
.tb-split__text > p { font-size: var(--t-lead); line-height: 1.55; max-width: 46ch; }
.tb-split__text > .link, .tb-split__text > .tr-text-link { justify-self: start; }
.tb-split__media { --ratio: 64%; padding: 0; background: #eef1f4; }
@media (max-width: 1023px) { .tb-split { row-gap: var(--s-7); } }

/* ---------------------------------------------------------------- the analysis section and the four proof facts */
.tb-proof {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter);
  margin-top: var(--s-8);
}
.tb-proof li { display: grid; gap: var(--s-2); align-content: start; }
.tb-proof span { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--muted); }
.tb-proof strong { font: 500 var(--t-card)/1.35 var(--font-text); letter-spacing: -0.01em; }
@media (max-width: 1023px) { .tb-proof { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-6); } }

/* ---------------------------------------------------------------- how it works: the scene's copy and its ledger */
.tb-scene .pa__copy h2 { max-width: 15ch; }
.tb-scene .pa__copy h2 > span:first-child { display: block; }
.tb-scene .pa__copy h2 > span:not(:first-child) { color: var(--muted); }
[data-big-scene="product-assembles-into-its-action"].tb-scene .pa__steps { gap: var(--s-5); max-width: 46ch; counter-reset: none; }
[data-big-scene="product-assembles-into-its-action"].tb-scene .pa__steps li { font-size: var(--t-body); line-height: 1.5; }
.tb-scene .pa__steps article { display: grid; gap: var(--s-1); }
.tb-scene .pa__steps article > div { display: grid; gap: var(--s-1); }
.tb-scene .pa__steps article span { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--accent); }
.tb-scene .pa__steps article h3 { font: 500 var(--t-card)/1.4 var(--font-text); letter-spacing: -0.01em; color: inherit; }
.tb-scene .pa__steps article p { color: var(--ink); font-size: var(--t-body); line-height: 1.55; }
.tb-scene .pa__steps article strong { font-weight: 500; }
.tb-scene .pa__steps li { padding-top: var(--s-4); border-top: 1px solid var(--line); }
[data-big-scene].tb-scene:not(.is-live) .pa__steps li { transition: none; }
[data-big-scene="product-assembles-into-its-action"].tb-scene { --pa-screen-w: 600px; }
.tb-ledger { font-size: 13px; }
.tb-ledger .pa__row { padding-inline: var(--s-4); }
.tb-ledger__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s-3); padding-block: var(--s-4) var(--s-3); }
.tb-ledger__head b { font: 500 15px/1.3 var(--font-text); }
.tb-ledger__head span { font-family: var(--font-mono); color: var(--muted); }
.tb-ledger__tr { display: grid; grid-template-columns: 1.3fr 1.3fr .6fr 1fr; gap: var(--s-3); height: 36px; align-items: center; border-top: 1px solid var(--line); font-family: var(--font-mono); }
.tb-ledger__tr > span:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.tb-ledger__th { font-family: var(--font-text); color: var(--muted); }
.tb-ledger__finding { display: grid; grid-template-columns: 22px minmax(0, 1fr) auto auto; gap: var(--s-3); align-items: center; height: 44px; border-top: 1px solid var(--line); }
.tb-ledger__finding i { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 500 12px/1 var(--font-mono); font-style: normal; }
.tb-ledger__finding b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: clip; }
.tb-ledger__finding span { font-family: var(--font-mono); color: var(--muted); white-space: nowrap; }
.tb-ledger__finding strong { font: 500 15px/1 var(--font-mono); font-variant-numeric: tabular-nums; }
[data-big-scene].tb-scene .tb-ledger__action { flex-direction: column; align-items: flex-start; gap: var(--s-2); padding-block: var(--s-4); border-top: 1px solid var(--line); }
.tb-ledger__action > span { color: var(--muted); }
@media (max-width: 639px) {
  .tb-ledger__tr { grid-template-columns: 1.4fr 1.3fr 1fr; }
  .tb-ledger__tr > span:nth-child(3) { display: none; }
  .tb-ledger__finding { grid-template-columns: 22px minmax(0, 1fr) auto; height: auto; min-height: 44px; padding-block: var(--s-2); }
  .tb-ledger__finding b { white-space: normal; line-height: 1.3; }
  .tb-ledger__finding span { display: none; }
}

/* ---------------------------------------------------------------- the statement: the words and the AI mark, the photograph beside them */
main > :is(section, .section).tb-statement { height: auto; min-height: 0; padding: var(--s-9) 0 var(--s-6); }
main > .tb-statement > .wrap.grid { align-items: center; height: auto; row-gap: var(--s-7); }
.grid > .tb-statement__copy { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); min-height: 0; }
.tb-statement__copy p { font-size: var(--t-lead); line-height: 1.55; max-width: 44ch; }
/* the old site's decorative "AI" mark, set as the section's label in the page's one label style */
.tb-statement__mark { display: inline-flex; align-items: center; gap: var(--s-2); font: 500 var(--t-label)/1.4 var(--font-mono); letter-spacing: 0; color: var(--muted); }
.tb-statement__mark::before { content: ""; width: 6px; height: 6px; flex: none; background: var(--accent); }
.tb-statement__copy h2 { max-width: 20ch; }
.grid > .tb-statement__photo { grid-column: 7 / -1; align-self: center; aspect-ratio: 1800 / 978; padding: 0; border-radius: var(--r-lg); background: #0d2c38; }
.tb-statement__photo > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
@media (max-width: 1023px) {
  .grid > .tb-statement__copy, .grid > .tb-statement__photo { grid-column: 1 / -1; }
}
@media (max-width: 639px) { main > :is(section, .section).tb-statement { padding-top: var(--s-8); } }
.tb-statement + .tb-services { --padt: var(--s-8); }

/* ---------------------------------------------------------------- what TariffBoost analyzes: six linked cards */
.tb-cards { row-gap: var(--gutter); }
.tb-op { position: relative; display: grid; grid-template-rows: auto auto 1fr; row-gap: var(--s-3); padding: var(--s-3) var(--s-3) var(--s-5); background: #fff; }
@media (min-width: 1024px) { .tb-cards > .tb-op { grid-column: auto / span 4; } }
@media (min-width: 640px) and (max-width: 1023px) { .tb-cards > .tb-op { grid-column: auto / span 6; } }
.tb-op__media { height: 104px; margin-bottom: var(--s-2); border-radius: var(--r-md); background: var(--surface); display: grid; place-items: center; overflow: hidden; }
.tb-op__media svg { width: 76px; height: 76px; transition: transform 600ms var(--ease); }
.tb-op > h3 { padding: 0 var(--s-7) 0 var(--s-3); font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.tb-op > ul { display: grid; gap: var(--s-1); padding-inline: var(--s-3); color: var(--ink); }
.tb-op > ul li { position: relative; padding-left: var(--s-4); }
.tb-op > ul li::before { content: ""; position: absolute; left: 0; top: .72em; width: 6px; height: 1px; background: var(--muted); }
@media (max-width: 639px) {
  .tb-cards { row-gap: var(--s-3); }
  .tb-op { row-gap: var(--s-2); padding-bottom: var(--s-4); }
  .tb-op__media { height: 84px; margin-bottom: var(--s-1); }
  .tb-op__media svg { width: 64px; height: 64px; }
}
.tb-op__link { position: absolute; inset: 0; z-index: 2; border-radius: inherit; }
.tb-op__link::after {
  content: ""; position: absolute; top: calc(var(--s-3) + 6px); right: var(--s-5); width: 16px; height: 16px; background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M6 4h6v6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 12 12 4M6 4h6v6' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.tb-op__link:focus-visible { outline-offset: -2px; border-radius: var(--r-lg); }
@media (hover: hover) and (pointer: fine) {
  .tb-op:hover .tb-op__link::after { transform: translate(2px, -2px); background: var(--accent); }
  .tb-op:hover .tb-op__media svg { transform: scale(1.03); }
}
/* the opportunity icons: line work in ink, one accent disc */
.tr-opportunity-icon { overflow: visible; }
.tr-icon-soft { fill: #e7e6e1; }
.tr-icon-line { fill: none; stroke: var(--ink); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }
.tr-icon-fill { fill: color-mix(in oklab, var(--accent) 12%, #fff); stroke: var(--accent); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- mission */
.tb-vision .tb-split__text > h2 { max-width: 26ch; }
.tb-vision__list { display: grid; gap: var(--s-2); }
.tb-vision__list article { display: grid; gap: 2px; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.tb-vision__list article > span { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--accent); }
.tb-vision__list h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.tb-vision__list p { margin-top: var(--s-1); }
.tb-vision__note { padding-top: var(--s-3); border-top: 1px solid var(--line); color: var(--muted); max-width: 56ch; }
.tb-vision__media { --ratio: 92%; background: #f3f6f9; }
@media (min-width: 1024px) { .tb-vision__media { align-self: stretch; } }
.frame > .tb-float {
  position: absolute; z-index: 2; left: var(--s-5); bottom: var(--s-5); max-width: 300px;
  display: grid; gap: var(--s-1); padding: var(--s-4) var(--s-5); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: 0 16px 40px -20px rgba(22, 23, 26, .35);
}
.tb-float span { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--accent); }
.tb-float strong { font: 500 var(--t-card)/1.3 var(--font-text); }
.tb-float small { font-size: var(--t-small); line-height: 1.45; color: var(--muted); }

/* ---------------------------------------------------------------- news highlights (server-rendered cards) */
.tb-news__head { max-width: none; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-4); align-items: end; }
.tb-news__head > :first-child { grid-column: 1 / span 6; display: grid; gap: var(--s-4); justify-items: start; }
.tb-news__head > .tb-news__aside { grid-column: 7 / -1; display: grid; gap: var(--s-3); max-width: 52ch; }
@media (max-width: 1023px) { .tb-news__head > :first-child, .tb-news__head > .tb-news__aside { grid-column: 1 / -1; } }
.tb-news__aside .tr-text-link, .tb-news__aside .link { justify-self: start; }
.tb-news__grid { align-items: stretch; }
@media (min-width: 1024px) { .tb-news__grid > * { grid-column: auto / span 4; } .tb-news__grid > .tr-news-empty { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 1023px) { .tb-news__grid > .tr-news-card { grid-column: 1 / -1; } }
.tr-news-card {
  display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); background: #fff;
  border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0;
}
.tr-news-card-meta { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font: 400 var(--t-label)/1.4 var(--font-mono); color: var(--muted); }
.tr-news-card-meta > span:first-child { color: var(--accent); font-weight: 500; }
.tr-news-card h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.tr-news-card > p { color: var(--ink); }
.tr-news-relevance { display: grid; gap: var(--s-1); margin-top: auto; padding-top: var(--s-3); border-top: 1px solid var(--line); }
.tr-news-relevance strong { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--muted); }
.tr-news-card > a { display: inline-flex; gap: var(--s-2); align-self: flex-start; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.tr-news-card > a:hover { text-decoration-color: currentColor; }
@media (max-width: 639px) { .tr-news-card { padding: var(--s-5); gap: var(--s-2); } .tb-news__grid { row-gap: var(--s-3); } }
.tr-news-empty { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-7); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.tr-news-empty > span { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--accent); }
.tr-news-empty h3, .tr-news-empty h2 { font-size: var(--t-h3); }
.tr-news-empty p { max-width: 60ch; }

/* Live news copy is variable-length. At desktop widths the kit normally gives
   each section a fixed viewport height; Windows font metrics and display
   scaling can make a full news card row taller than that box. Let the news
   section and its following CTA grow instead of allowing text to cross a
   section boundary. Tablet and phone sizing remains controlled by the kit. */
@media (min-width: 1280px) {
  main > :is(section.tb-news, section.tb-close) {
    height: auto;
    min-height: 100vh;
    min-height: 100svh;
  }
  main > :is(section.tb-news, section.tb-close) > .wrap {
    height: auto;
    min-height: calc(100vh - var(--padt) - var(--padb) - var(--bar));
    min-height: calc(100svh - var(--padt) - var(--padb) - var(--bar));
  }
}

/* ---------------------------------------------------------------- the close (close-word: the button large, the name across the footer) */
.tb-close__head { display: flex; align-items: flex-end; justify-content: space-between; gap: var(--s-6); flex-wrap: wrap; margin-bottom: var(--s-7); }
.tb-close__media { min-height: 220px; padding: 0; border-radius: var(--r-lg); }
.tb-close__media > .frame__img { object-position: 50% 38%; }
@media (max-width: 639px) { .tb-close__media { min-height: 240px; flex: 1 0 auto; } }
.tb-close__copy { display: grid; gap: var(--s-5); max-width: 880px; }
.tb-close__copy h2 { max-width: 20ch; }
.tb-close__copy p { font-size: var(--t-lead); max-width: 52ch; }
.btn--xl > b[aria-hidden="true"] { font-size: 1em; }
.tb-close__head > .btn--xl { flex: none; }

/* ---------------------------------------------------------------- footer.closing (footer-columns) */
.site-footer { border-top: 1px solid var(--line); background: var(--bg); }
.footer__grid { row-gap: var(--s-6); }
@media (min-width: 1024px) {
  .footer__grid > .footer__brand { grid-column: 1 / span 6; }
  .footer__grid > .footer__col { grid-column: auto / span 2; }
}
@media (max-width: 1023px) { .footer__grid > .footer__brand { grid-column: 1 / -1; } .footer__grid > .footer__col { grid-column: auto / span 4; } }
@media (max-width: 639px) { .footer__grid > .footer__col { grid-column: auto / span 6; } .footer__grid > .footer__col:last-child { grid-column: 1 / -1; } }
.footer__brand .brand { display: inline-flex; min-height: 44px; align-items: center; }
.footer__brand .brand-wordmark { height: 20px; }
.site-footer .footer__col h3 { font: 500 var(--t-label)/1.4 var(--font-mono); letter-spacing: 0; color: var(--muted); margin-bottom: var(--s-3); }
.site-footer ul { display: grid; gap: 0; font-size: var(--t-small); }
.site-footer ul a, .site-footer ul span { display: inline-flex; align-items: center; min-height: 32px; }
.site-footer ul a { position: relative; }
.site-footer ul a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 6px; height: 1px; background: currentColor; transform: scaleX(0); transform-origin: right; transition: transform var(--dur) var(--ease); }
.site-footer ul a:hover::after, .site-footer ul a:focus-visible::after { transform: scaleX(1); transform-origin: left; }
@media (max-width: 1023px) { .site-footer ul a, .site-footer ul span { min-height: 44px; } }
.footer__legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--s-2) var(--s-6); margin-top: 0; padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--t-label); color: var(--muted); }

/* ================================================================ inner pages */

/* ---------------------------------------------------------------- the split hero (solution pages) */
.tb-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s-2); font: 400 var(--t-label)/1.4 var(--font-mono); color: var(--muted); }
.tb-crumbs a { color: var(--muted); text-decoration: underline; text-decoration-color: transparent; text-underline-offset: 3px; transition: color var(--dur) var(--ease), text-decoration-color var(--dur) var(--ease); }
.tb-crumbs a:hover { color: var(--ink); text-decoration-color: currentColor; }
.tb-crumbs [aria-current="page"] { color: var(--ink); }
@media (max-width: 639px) { .tb-crumbs a { display: inline-flex; align-items: center; min-height: 44px; } }
.tb-subhero__grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-7); }
.tb-subhero__copy { grid-column: 1 / span 6; display: flex; flex-direction: column; align-items: flex-start; gap: var(--s-5); min-height: 0; }
.tb-subhero__copy > .tb-crumbs { margin-bottom: var(--s-3); }
.tb-subhero h1 { font-size: clamp(36px, 2.29vw + 27px, 60px); line-height: 1.04; letter-spacing: var(--display-tracking-xl); max-width: 17ch; }
.tb-subhero .hero__lead { max-width: 44ch; color: var(--ink); }
.tb-subhero .btn-row { margin-top: var(--s-2); }
.tb-subhero__media { grid-column: 7 / -1; position: relative; min-height: 0; border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.tb-subhero__img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 50%; }
.tb-subhero__img.tr-subpage-hero-image--right { object-position: 70% 50%; }
.tb-subhero__media--ui { --ratio: 0px; padding: 0; background: #f3f6f9; border: 1px solid var(--line); }
.tb-subhero__media--ui > .frame__img { object-fit: contain; object-position: 50% 40%; padding: var(--s-5); }
.frame > .tb-float--fact { left: var(--s-5); right: auto; bottom: var(--s-5); max-width: 320px; }
.tb-float--fact strong { font: 500 var(--t-h3)/1.1 var(--font-display); letter-spacing: var(--display-tracking); }
.tb-float--fact span { font: 400 var(--t-small)/1.45 var(--font-text); color: var(--ink); }
.tb-proof--hero { margin-top: 0; }
@media (max-width: 1023px) {
  .tb-subhero__copy, .tb-subhero__media { grid-column: 1 / -1; }
  .tb-subhero__media { aspect-ratio: 16 / 10; }
}
@media (max-width: 639px) { .tb-subhero__media { aspect-ratio: 4 / 3; } }
/* the hero grows on a tablet and a phone so the photograph and the facts never sit on the next section */
@media (max-width: 1279px) { main > .tb-subhero { height: auto; min-height: 100vh; min-height: 100svh; } }

/* ---------------------------------------------------------------- the workflow: the lead left, numbered steps right */
.tb-split__text > .tb-kicker, .tb-split__text > .tr-kicker { justify-self: start; }
@media (min-width: 1024px) { .tb-split > .tb-steps, .tb-split > .tb-faq__list, .tb-split > .tb-source-rows { grid-column: 7 / span 6; } }
.tb-steps { display: grid; }
.tb-steps > li { padding-block: var(--s-5); border-top: 1px solid var(--line); }
.tb-steps > li:last-child { border-bottom: 1px solid var(--line); }
.tb-steps article { display: grid; gap: var(--s-1); }
.tb-steps article > div { display: grid; gap: var(--s-1); }
.tb-steps article span { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--accent); }
.tb-steps article h3 { font: 500 var(--t-card)/1.4 var(--font-text); letter-spacing: -0.01em; }
.tb-steps article p { max-width: 52ch; }

/* ---------------------------------------------------------------- showcase: three open cards, each its picture */
.tb-shots { row-gap: var(--s-7); }
@media (min-width: 1024px) { .tb-shots > .tb-shot { grid-column: auto / span 4; } }
.tb-shot { display: grid; align-content: start; gap: var(--s-2); }
.tb-shot__media { --ratio: 74%; padding: 0; margin-bottom: var(--s-3); background: #f2f5f9; }
.tb-shot__media > .frame__img { object-fit: contain; padding: var(--s-3); }
.tb-shot h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.tb-shot p { max-width: 44ch; }
.tb-shot > .tb-shot__link { justify-self: start; margin-top: var(--s-2); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; transition: text-decoration-color var(--dur) var(--ease); }
.tb-shot > .tb-shot__link:hover { text-decoration-color: currentColor; }
.tb-shot .frame__img { transition: transform 600ms var(--ease); }
@media (hover: hover) and (pointer: fine) { .tb-shot--linked:has(.tb-shot__link:hover) .frame__img { transform: scale(1.03); } }

/* ---------------------------------------------------------------- the photograph split (with the liquid-hover moment) */
.tb-proofsplit__media { --ratio: 75%; border-radius: var(--r-lg); background: #0d2c38; }
.tb-proofsplit__media > img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; }
.tb-proofsplit .tb-split__text > h2 { max-width: 20ch; }

/* ---------------------------------------------------------------- FAQ: every answer open */
.tb-faq .tb-split__text > p { font-size: var(--t-body); }
.tb-faq__list.faq > details > summary { font-size: var(--t-card); line-height: 1.35; }

/* ---------------------------------------------------------------- the close on an inner page */
main > .tb-solution-close > .wrap.grid { align-content: start; row-gap: var(--s-7); }
.grid > .tb-solution-close__copy { grid-column: 1 / span 6; display: grid; align-content: start; justify-items: start; gap: var(--s-5); }
.tb-solution-close__copy h2 { max-width: 18ch; }
.tb-solution-close__copy > p { max-width: 46ch; color: var(--muted); }
.grid > .tb-solution-close__media { grid-column: 7 / -1; --ratio: 74%; padding: 0; background: #f2f5f9; }
.tb-solution-close__media > .frame__img { object-fit: contain; padding: var(--s-4); }
@media (max-width: 1023px) { .grid > .tb-solution-close__copy, .grid > .tb-solution-close__media { grid-column: 1 / -1; } }

/* ---------------------------------------------------------------- tariff savings: benefits, process, sources */
.tb-benefits__grid { align-items: stretch; }
@media (min-width: 1024px) { .tb-benefits__grid > .tb-benefit { grid-column: auto / span 3; } }
@media (min-width: 640px) and (max-width: 1023px) { .tb-benefits__grid > .tb-benefit { grid-column: auto / span 6; } }
.tb-benefit { position: relative; gap: var(--s-3); padding: var(--s-6); background: #fff; }
.tb-benefit > h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.tb-benefit > p { flex: 1; }
.tb-benefit__link { align-self: flex-start; margin-top: var(--s-3); font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.tb-benefit__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tb-benefit:hover .tb-benefit__link { text-decoration-color: currentColor; }
.tb-process__head > h2 { max-width: 20ch; }
.tb-process__steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gutter); }
.tb-process__steps > li { display: grid; align-content: start; gap: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--ink); }
.tb-process__steps > li > span { font: 500 var(--t-stat)/1 var(--font-mono); color: var(--accent); letter-spacing: -0.02em; }
.tb-process__steps h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.tb-process__steps p { margin-top: var(--s-2); }
@media (max-width: 1023px) { .tb-process__steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: var(--s-7); } }
@media (max-width: 639px) { .tb-process__steps { grid-template-columns: 1fr; } }
.tb-source-rows { display: grid; align-content: start; }
.tb-source-rows > a {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4); min-height: 64px; padding-block: var(--s-3);
  border-top: 1px solid var(--line); font: 500 var(--t-card)/1.35 var(--font-text); letter-spacing: -0.01em;
  transition: color var(--dur) var(--ease);
}
.tb-source-rows > a:last-child { border-bottom: 1px solid var(--line); }
.tb-source-rows > a > span { color: var(--muted); transition: transform var(--dur) var(--ease), color var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) { .tb-source-rows > a:hover > span { transform: translate(3px, -3px); color: var(--accent); } }
.tb-source-rows > a:hover { color: var(--accent); }

/* ---------------------------------------------------------------- pages whose content is dynamic or a tool: sections take their content's height */
main > section.tb-flow { height: auto; min-height: 0; }
main > .hero.tb-flow { height: auto; min-height: 0; padding-bottom: var(--s-8); }
main > section.tb-flow:not(.hero) { padding: var(--s-9) 0; }
main > section.tb-flow:not(.hero) + section.tb-flow:not(.hero) { padding-top: 0; }
@media (max-width: 639px) { main > section.tb-flow:not(.hero) { padding: var(--s-8) 0; } }
.link-inline { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; transition: text-decoration-color var(--dur) var(--ease); }
.link-inline:hover { text-decoration-color: currentColor; }

/* ---------------------------------------------------------------- tariff news */
.tb-pagehero__grid { align-items: end; }
@media (min-width: 1024px) {
  .tb-pagehero__grid > .tb-pagehero__title { grid-column: 1 / span 6; }
  .tb-pagehero__grid > .tb-pagehero__aside { grid-column: 7 / -1; }
}
.tb-pagehero__title { display: grid; gap: var(--s-4); justify-items: start; }
.tr-news-hero h1 { font-size: clamp(48px, 5.33vw + 27.2px, 104px); line-height: .96; letter-spacing: var(--display-tracking-xl); }
.tb-pagehero__aside { display: grid; gap: var(--s-4); justify-items: start; }
.tb-pagehero__aside .hero__lead { color: var(--ink); max-width: 46ch; }
.tb-verified { display: inline-flex; align-items: center; gap: var(--s-2); font: 400 var(--t-label)/1.4 var(--font-mono); color: var(--muted); }
.tb-verified::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #2e8b57; }
.tb-jump { display: flex; flex-wrap: wrap; gap: var(--s-2); margin-top: var(--s-7); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.tb-jump a { display: inline-flex; align-items: center; height: 40px; padding: 0 var(--s-4); border: 1px solid var(--line-strong); border-radius: 999px; font-size: var(--t-small); font-weight: 500; transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease); }
.tb-jump a:hover { background: #fff; border-color: var(--ink); }
@media (max-width: 639px) { .tb-jump { margin-top: var(--s-6); } .tb-jump a { height: 44px; } main > .hero.tb-flow { padding-bottom: var(--s-6); } }
.tr-news-section-head > p { max-width: 46ch; color: var(--ink); }
.tb-archive__weeks { display: grid; gap: var(--s-7); }
.tr-news-week { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-3); }
.tr-news-week > header { grid-column: 1 / span 3; display: grid; align-content: start; gap: var(--s-1); padding-top: var(--s-4); border-top: 1px solid var(--ink); }
.tr-news-week > header > span { font: 500 var(--t-card)/1.3 var(--font-text); }
.tr-news-week > header > time { font: 400 var(--t-label)/1.4 var(--font-mono); color: var(--muted); }
.tr-news-week > ol { grid-column: 4 / -1; display: grid; border-top: 1px solid var(--line); }
@media (max-width: 1023px) { .tr-news-week > header, .tr-news-week > ol { grid-column: 1 / -1; } }
.tr-weekly-news-item > button {
  width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) auto 28px; align-items: center; gap: var(--s-4);
  min-height: 64px; padding: var(--s-3) var(--s-3) var(--s-3) 0; border: 0; border-bottom: 1px solid var(--line); background: none; text-align: left; cursor: pointer;
}
.tr-weekly-news-item > button > span { font: 500 var(--t-card)/1.35 var(--font-text); letter-spacing: -0.01em; }
.tr-weekly-news-item > button > small { font: 400 var(--t-label)/1.4 var(--font-mono); color: var(--muted); white-space: nowrap; }
.tr-weekly-news-item > button > b { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; font-weight: 400; transition: transform var(--dur) var(--ease), background-color var(--dur) var(--ease), color var(--dur) var(--ease); }
@media (hover: hover) and (pointer: fine) {
  .tr-weekly-news-item > button:hover > b { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: rotate(90deg); }
  .tr-weekly-news-item > button:hover > span { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
}
@media (max-width: 639px) { .tr-weekly-news-item > button { grid-template-columns: minmax(0, 1fr) 28px; } .tr-weekly-news-item > button > small { grid-column: 1; grid-row: 2; } .tr-weekly-news-item > button > b { grid-column: 2; grid-row: 1 / span 2; } }
.tr-news-modal { width: min(640px, calc(100% - 2 * var(--gut))); max-height: calc(100svh - 2 * var(--s-7)); padding: 0; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--bg); color: var(--ink); box-shadow: 0 40px 80px -30px rgba(22, 23, 26, .5); }
.tr-news-modal::backdrop { background: rgba(22, 23, 26, .4); }
.tr-news-modal-shell { position: relative; display: grid; gap: var(--s-4); justify-items: start; padding: var(--s-7); }
.tr-news-modal-close { position: absolute; top: var(--s-3); right: var(--s-3); width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 50%; background: var(--bg); font-size: 22px; line-height: 1; cursor: pointer; }
.tr-news-modal-close:hover { border-color: var(--ink); }
.tr-news-modal-source { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--accent); }
.tr-news-modal h2 { font-size: var(--t-h3); padding-right: var(--s-8); }
.tr-news-modal p { max-width: 60ch; }
.tb-rulings__grid { align-items: stretch; }
@media (min-width: 1024px) { .tb-rulings__grid > .tr-ruling-card { grid-column: auto / span 4; } .tb-rulings__grid > .tr-rulings-empty { grid-column: 1 / -1; } }
@media (min-width: 640px) and (max-width: 1023px) { .tb-rulings__grid > .tr-ruling-card { grid-column: auto / span 6; } }
.tr-ruling-card { display: flex; flex-direction: column; gap: var(--s-3); padding: var(--s-6); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.tr-ruling-card > div { display: flex; flex-wrap: wrap; gap: var(--s-1) var(--s-3); font: 400 var(--t-label)/1.4 var(--font-mono); color: var(--muted); }
.tr-ruling-number { color: var(--accent); font-weight: 500; }
.tr-ruling-card h3 { font: 500 var(--t-card)/1.3 var(--font-text); letter-spacing: -0.01em; }
.tr-ruling-card > a { margin-top: auto; align-self: flex-start; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.tr-ruling-card > a:hover { text-decoration-color: currentColor; }
.tr-rulings-empty { padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: #fff; }
.tb-limits:not(:has(aside)) { display: none; }
.tr-news-limitations { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--s-4); padding: var(--s-6); border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.tr-news-limitations > div { grid-column: 1 / span 4; display: grid; gap: var(--s-3); justify-items: start; align-content: start; }
.tr-news-limitations h2 { font-size: var(--t-h3); }
.tr-news-limitations > ul { grid-column: 5 / -1; display: grid; }
.tr-news-limitations li { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: var(--s-4); padding-block: var(--s-3); border-top: 1px solid var(--line); }
.tr-news-limitations li strong { font-weight: 500; }
@media (max-width: 1023px) { .tr-news-limitations > div, .tr-news-limitations > ul { grid-column: 1 / -1; } .tr-news-limitations li { grid-template-columns: 1fr; gap: var(--s-1); } }

/* ---------------------------------------------------------------- contact and the demo booking */
.tb-contact__intro, .tb-booking__intro { display: grid; align-content: start; justify-items: start; gap: var(--s-5); }
@media (min-width: 1024px) {
  .tb-contact__grid > .tb-contact__intro, .tb-booking__grid > .tb-booking__intro { grid-column: 1 / span 5; }
  .tb-contact__grid > .tb-form, .tb-booking__grid > .booking-calendar-region { grid-column: 7 / -1; }
}
.tb-pagehero h1 { font-size: clamp(36px, 2.29vw + 27px, 60px); line-height: 1.04; letter-spacing: var(--display-tracking-xl); max-width: 16ch; }
.tb-pagehero .hero__lead { color: var(--ink); max-width: 46ch; }
.tb-contact__card { width: 100%; display: grid; gap: var(--s-2); justify-items: start; margin-top: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.tb-contact__card h2, .tb-contact__card h3 { font: 500 var(--t-label)/1.4 var(--font-mono); letter-spacing: 0; color: var(--muted); }
.tb-contact__card > a { font: 500 var(--t-card)/1.4 var(--font-text); }
.tb-contact__card hr { width: 100%; height: 1px; margin: var(--s-4) 0; border: 0; background: var(--line); }
.tb-contact__card ul { display: grid; gap: var(--s-1); }
.tb-contact__card li { position: relative; padding-left: var(--s-5); }
.tb-contact__card li::before { content: ""; position: absolute; left: 0; top: .7em; width: 10px; height: 1px; background: var(--ink); }
.tb-form { display: grid; align-content: start; gap: var(--s-5); padding: var(--s-7); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.tb-form label { display: grid; gap: var(--s-2); }
.tb-form label > span { font-size: var(--t-small); font-weight: 500; }
.tb-form :is(input, textarea) {
  width: 100%; min-height: 48px; padding: 12px var(--s-4); border: 1px solid var(--line-strong); border-radius: var(--r-sm); background: var(--bg);
  font: 400 var(--t-body)/1.5 var(--font-text); color: var(--ink);
  transition: border-color 140ms var(--ease), box-shadow 140ms var(--ease);
}
.tb-form textarea { min-height: 148px; resize: vertical; }
.tb-form :is(input, textarea)::placeholder { color: var(--muted); }
.tb-form :is(input, textarea):focus { outline: none; border-color: var(--action); box-shadow: 0 0 0 3px color-mix(in oklab, var(--action) 18%, transparent); }
.tb-form .btn { width: 100%; height: 48px; }
.tb-form .btn:disabled { opacity: .45; cursor: not-allowed; }
.contact-form-status { min-height: 1.5em; font-size: var(--t-small); color: var(--muted); }
.contact-form-status.is-success { color: #1f7a4a; }
.contact-form-status.is-error { color: var(--accent); }
@media (max-width: 639px) { .tb-form { padding: var(--s-5); } }
.booking-details { width: 100%; display: grid; gap: var(--s-3); justify-items: start; margin-top: var(--s-4); padding-top: var(--s-5); border-top: 1px solid var(--line); }
.booking-details h2 { font-size: var(--t-h3); line-height: 1.2; }
.booking-details ul { width: 100%; display: grid; margin-top: var(--s-2); }
.booking-details li { display: grid; gap: 2px; padding-block: var(--s-3); border-top: 1px solid var(--line); }
.booking-details li strong { font-weight: 500; }
.booking-details li span { color: var(--muted); }
.booking-contact { color: var(--muted); }
.booking-contact a { color: var(--ink); }
.booking-calendar-region { min-width: 0; }
.booking-calendar-shell { display: grid; gap: var(--s-3); padding: var(--s-3); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.booking-calendar-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); padding: var(--s-2) var(--s-3); }
.booking-calendar-toolbar > div { display: grid; gap: 2px; }
.booking-calendar-toolbar span { font: 500 var(--t-label)/1.4 var(--font-mono); color: var(--accent); }
.booking-calendar-toolbar strong { font-weight: 500; }
.booking-calendar-toolbar a { display: inline-flex; align-items: center; gap: var(--s-2); min-height: 44px; font-weight: 500; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 4px; }
.booking-calendar { display: block; width: 100%; height: min(720px, calc(100svh - var(--nav) - 140px)); min-height: 560px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.booking-noscript { padding: var(--s-3); }
.booking-unavailable { display: grid; justify-items: start; gap: var(--s-4); padding: var(--s-8) var(--s-7); background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); }
.booking-unavailable-icon { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--surface); font-size: 20px; color: var(--accent); }
.booking-unavailable h2 { font-size: var(--t-h3); }
.booking-unavailable p { max-width: 44ch; }
.button.primary:not(.btn) {
  display: inline-flex; align-items: center; justify-content: center; height: var(--btn-h); padding: 0 var(--s-5); border-radius: var(--r-btn);
  background: var(--action); color: var(--action-ink); font-weight: 500; white-space: nowrap; transition: background-color var(--dur) var(--ease);
}
.button.primary:not(.btn):hover { background: color-mix(in oklab, var(--action) 86%, var(--ink)); }
@media (max-width: 639px) { .button.primary:not(.btn) { width: 100%; white-space: normal; text-align: center; } .booking-unavailable { padding: var(--s-6) var(--s-5); } }
