/* =============================================================
   Imtindir — wayfinding system
   Each platform is a "line"; its tools are stations along it.
   --line is set per page and is the only colour that varies.
   ============================================================= */

:root {
  --ink:        #10151C;
  --ink-soft:   #3D4753;
  --muted:      #6B7885;
  --paper:      #EDF0F3;
  --card:       #FFFFFF;
  --rule:       #D3DAE1;
  --rule-soft:  #E4E9EE;
  --ok:         #0C7C55;
  --warn:       #B3341F;
  --line:       #2B3A4A;

  --shell:      1120px;
  --gap:        clamp(20px, 4vw, 40px);
  --radius:     4px;

  --display: "Bricolage Grotesque", ui-sans-serif, system-ui, sans-serif;
  --body:    "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body { overflow-x: hidden; }

.prose > * { min-width: 0; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  font-feature-settings: "tnum" 1;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--line); }

:focus-visible {
  outline: 2px solid var(--line);
  outline-offset: 3px;
}

.wrap { width: min(100% - var(--gap) * 2, var(--shell)); margin-inline: auto; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0;
  margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 50;
  background: var(--ink); color: #fff; padding: 10px 16px;
}
.skip:focus { left: 8px; top: 8px; }

/* ---------------------------------------------------- masthead */
.masthead {
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  position: sticky; top: 0; z-index: 20;
}

.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 60px;
}

.brand { display: inline-flex; text-decoration: none; }

/* Hamburger — shown on mobile, hidden from ~980px up */
.nav-toggle {
  display: inline-flex; flex-direction: column; justify-content: center; gap: 5px;
  width: 42px; height: 40px; padding: 0 9px; flex: 0 0 auto;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: var(--card); cursor: pointer;
  order: 1;   /* mobile: logo stays left, hamburger goes to the right corner */
}
.nav-toggle span { display: block; width: 100%; height: 2px; background: var(--ink); border-radius: 2px; }
.nav-toggle:hover { background: var(--paper); }
.nav-toggle:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; }

.masthead-nav { display: none; }   /* mobile: the drawer takes over */
.masthead-nav a,
.masthead-more {
  font-size: 14px; font-weight: 500; white-space: nowrap;
  padding: 6px 10px; border-radius: var(--radius); text-decoration: none;
  color: var(--ink-soft);
}
.masthead-nav a:hover,
.masthead-more:hover { background: var(--paper); color: var(--ink); }
.masthead-more { font-weight: 600; color: var(--ink); }

@media (min-width: 980px) {
  .nav-toggle { display: none; }
  .masthead-nav {
    display: flex; gap: 2px; align-items: center;
    overflow-x: auto; scrollbar-width: none;
  }
  .masthead-nav::-webkit-scrollbar { display: none; }
}

/* Off-canvas drawer (mobile navigation) */
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 60;
  width: min(84vw, 320px); background: var(--card);
  border-left: 1px solid var(--rule);
  transform: translateX(100%); visibility: hidden;
  transition: transform .25s ease, visibility .25s ease;
  display: flex; flex-direction: column; overflow-y: auto;
}
.drawer.is-open { transform: translateX(0); visibility: visible; box-shadow: 0 0 44px rgba(16, 21, 28, .22); }
.drawer-top {
  position: sticky; top: 0; background: var(--card);
  display: flex; align-items: center; justify-content: space-between;
  padding: 15px 16px 15px 18px; border-bottom: 1px solid var(--rule-soft);
}
.drawer-title { font-family: var(--display); font-weight: 700; font-size: 16px; }
.drawer-close {
  font-size: 26px; line-height: 1; width: 38px; height: 38px;
  background: none; border: 0; color: var(--muted); cursor: pointer; border-radius: var(--radius);
}
.drawer-close:hover { background: var(--paper); color: var(--ink); }
.drawer-close:focus-visible { outline: 2px solid var(--line); outline-offset: 2px; }
.drawer-nav { padding: 8px 12px 32px; display: flex; flex-direction: column; }
.drawer-group {
  font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 18px 10px 4px;
}
.drawer-group:first-child { margin-top: 8px; }
.drawer-nav a {
  padding: 11px 12px; border-radius: var(--radius); text-decoration: none;
  color: var(--ink-soft); font-weight: 500;
}
.drawer-nav a:hover { background: var(--paper); color: var(--ink); }
.drawer-more {
  margin-top: 10px; padding-top: 16px !important;
  border-top: 1px solid var(--rule-soft);
  font-weight: 700 !important; color: var(--ink) !important;
}
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 55; background: rgba(16, 21, 28, .44);
  opacity: 0; transition: opacity .25s ease;
}
.drawer-backdrop.is-open { opacity: 1; }
body.nav-open { overflow: hidden; }

@media (min-width: 980px) {
  .drawer, .drawer-backdrop { display: none; }
}

/* ---------------------------------------------------- hero */
.hero {
  background: var(--card);
  border-bottom: 1px solid var(--rule);
  padding: clamp(32px, 6vw, 64px) 0 clamp(28px, 5vw, 48px);
}

.hero-slim { padding-bottom: clamp(20px, 3vw, 32px); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  margin: 0 0 18px;
  font-size: 11px; font-weight: 600; letter-spacing: 0.16em;
  color: var(--muted);
}

.eyebrow-dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--line);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--line) 18%, transparent);
}

h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: clamp(30px, 5.6vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 0 14px;
  max-width: 20ch;
}

.deck {
  margin: 0;
  font-size: clamp(16px, 2vw, 19px);
  color: var(--ink-soft);
  max-width: 56ch;
}

/* ---------------------------------------------------- grabber */
.grabber { margin-top: 28px; max-width: 720px; }

.grabber-row {
  display: flex; align-items: stretch;
  border: 2px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
}

.grabber-row:focus-within { border-color: var(--line); }

.grabber-input {
  flex: 1; min-width: 0;
  border: 0; padding: 15px 16px;
  font-family: var(--body); font-size: 15px; color: var(--ink);
  background: transparent;
}
.grabber-input::placeholder { color: #97A3AF; }
.grabber-input:focus { outline: none; }

.grabber-paste {
  border: 0; border-left: 1px solid var(--rule-soft);
  background: #fff; cursor: pointer;
  padding: 0 16px; font-family: var(--body);
  font-size: 13px; font-weight: 600; color: var(--ink-soft);
}
.grabber-paste:hover { background: var(--paper); color: var(--ink); }

.grabber-go {
  margin-top: 12px; width: 100%;
  border: 0; border-radius: var(--radius);
  background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 17px;
  letter-spacing: 0.01em;
  padding: 15px 24px; cursor: pointer;
}
.grabber-go:hover { background: var(--line); }
.grabber-go[disabled] { opacity: 0.55; cursor: progress; }

@media (min-width: 620px) {
  .grabber { display: flex; gap: 12px; align-items: flex-start; }
  .grabber-row { flex: 1; }
  .grabber-go { margin-top: 0; width: auto; flex: 0 0 auto; }
}

.grabber-hint { margin: 12px 0 0; font-size: 13px; color: var(--muted); }

/* ---------------------------------------------------- result */
.result { margin-top: 22px; max-width: 720px; }

.result-card {
  background: #fff;
  border: 1px solid var(--rule);
  border-left: 4px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  display: grid; gap: 16px;
}

@media (min-width: 620px) {
  .result-card { grid-template-columns: 128px 1fr; }
}

.result-thumb {
  border-radius: var(--radius);
  background: var(--paper);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.result-title {
  font-family: var(--display); font-weight: 600; font-size: 16px;
  margin: 0 0 12px; line-height: 1.3;
}

.dl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }

.dl {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; text-align: left; cursor: pointer;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: #fff; padding: 11px 14px;
  font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--ink);
}
.dl:hover { border-color: var(--line); background: color-mix(in srgb, var(--line) 5%, #fff); }
.dl[disabled] { opacity: 0.5; cursor: progress; }

.dl-meta { font-size: 12px; color: var(--muted); font-weight: 400; }

.alert {
  margin-top: 16px; max-width: 720px;
  border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--rule));
  border-left: 4px solid var(--warn);
  background: #fff; border-radius: var(--radius);
  padding: 13px 16px; font-size: 14px; color: var(--ink);
}

/* ---------------------------------------------------- station rail */
.rail { margin-top: 34px; }

.rail ul {
  list-style: none; margin: 0; padding: 0;
  display: flex; align-items: flex-start;
  overflow-x: auto; scrollbar-width: none;
}
.rail ul::-webkit-scrollbar { display: none; }

.rail-stop { position: relative; flex: 1 1 0; min-width: 92px; text-align: center; }

/* the connecting line */
.rail-stop::before {
  content: ""; position: absolute; top: 6px; left: 0; right: 0;
  height: 2px; background: var(--rule);
}
.rail-stop:first-child::before { left: 50%; }
.rail-stop:last-child::before  { right: 50%; }

.rail-stop a, .rail-stop > span:last-child {
  position: relative; display: block; text-decoration: none;
}

.rail-dot {
  position: relative; z-index: 1;
  display: block; width: 14px; height: 14px; margin: 0 auto 10px;
  border-radius: 50%; background: var(--card);
  border: 2px solid var(--rule);
}

.rail-stop.is-here .rail-dot {
  background: var(--line); border-color: var(--line);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--line) 20%, transparent);
}

.rail-label { font-size: 13px; font-weight: 500; color: var(--muted); }
.rail-stop.is-here .rail-label { color: var(--ink); font-weight: 600; }
.rail-stop a:hover .rail-label { color: var(--ink); }
.rail-stop a:hover .rail-dot { border-color: var(--line); }

/* ---------------------------------------------------- body */
.body-grid {
  display: grid; gap: clamp(28px, 5vw, 52px);
  padding: clamp(32px, 5vw, 56px) 0 clamp(48px, 7vw, 80px);
}

@media (min-width: 900px) {
  .body-grid { grid-template-columns: minmax(0, 1fr) 300px; }
}

.prose { max-width: 68ch; min-width: 0; }
.prose-wide { max-width: 74ch; padding-block: clamp(28px, 4vw, 44px); }

.prose p { margin: 0 0 18px; }

.prose h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(20px, 2.6vw, 26px); letter-spacing: -0.015em;
  margin: 40px 0 16px; padding-top: 18px;
  border-top: 1px solid var(--rule);
}

.prose h3 {
  font-family: var(--display); font-weight: 600; font-size: 16px;
  margin: 0 0 4px;
}

.steps { list-style: none; margin: 0 0 8px; padding: 0; display: grid; gap: 18px; }

.steps li { display: grid; grid-template-columns: 34px 1fr; gap: 14px; align-items: start; }

.step-n {
  display: grid; place-items: center;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--line); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 15px;
}

.steps p { margin: 0; color: var(--ink-soft); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

.ticks li { position: relative; padding-left: 24px; color: var(--ink-soft); }

.ticks li::before {
  content: ""; position: absolute; left: 2px; top: 9px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--line);
}

.faq { display: grid; gap: 2px; }

.faq details {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
}

.faq summary {
  cursor: pointer; list-style: none;
  padding: 14px 16px;
  font-weight: 600; font-size: 15px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }

.faq summary::after {
  content: "+"; font-family: var(--display); font-size: 20px;
  color: var(--line); line-height: 1;
}
.faq details[open] summary::after { content: "\2212"; }

.faq p { margin: 0; padding: 0 16px 16px; color: var(--ink-soft); font-size: 15px; }

/* ---------------------------------------------------- aside */
.rail-aside { display: grid; gap: 16px; align-content: start; }

.side-card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 16px 18px;
}

.side-head {
  font-family: var(--display); font-size: 13px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}

.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.side-links a { font-size: 14px; font-weight: 500; text-decoration: none; }
.side-links a:hover { text-decoration: underline; text-decoration-color: var(--line); }

.side-note p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.55; }

.ad-slot {
  min-height: 250px; border: 1px dashed var(--rule);
  border-radius: var(--radius); display: grid; place-items: center;
}

/* ---------------------------------------------------- hub + home */
.tool-cards {
  list-style: none; margin: 0 0 clamp(48px, 7vw, 80px); padding: 0;
  display: grid; gap: 12px;
}

@media (min-width: 680px) {
  .tool-cards { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
}

.tool-cards a {
  display: grid; gap: 6px; height: 100%;
  background: var(--card);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--line);
  border-radius: var(--radius);
  padding: 18px; text-decoration: none;
}
.tool-cards a:hover { border-color: var(--line); }

.tool-card-nav {
  font-size: 11px; font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--line);
}
.tool-card-h { font-family: var(--display); font-weight: 700; font-size: 18px; }
.tool-card-d { font-size: 14px; color: var(--muted); }
.tool-card-go { margin-top: 6px; font-size: 13px; font-weight: 600; color: var(--ink-soft); }

.hero-home h1 { max-width: 16ch; }
.home-cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }

.btn {
  display: inline-block; text-decoration: none;
  background: var(--ink); color: #fff;
  font-weight: 600; font-size: 14px;
  padding: 11px 18px; border-radius: var(--radius);
}
.btn:hover { background: var(--line); }

.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--rule); }
.btn-ghost:hover { background: var(--card); border-color: var(--line); color: var(--ink); }

.line-block { padding: clamp(26px, 4vw, 40px) 0; border-bottom: 1px solid var(--rule); }

.line-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 18px; }

.line-head h2 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(19px, 2.4vw, 24px); margin: 0;
  padding-left: 14px; position: relative;
}
.line-head h2::before {
  content: ""; position: absolute; left: 0; top: 4px; bottom: 4px;
  width: 4px; border-radius: 2px; background: var(--line);
}

.line-all { font-size: 13px; font-weight: 600; color: var(--muted); }

.line-stops { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }

@media (min-width: 680px) {
  .line-stops { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
}

.line-stops a {
  display: grid; gap: 3px; height: 100%;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 14px 16px; text-decoration: none;
}
.line-stops a:hover { border-color: var(--line); }
.line-stops .rail-dot { margin: 0 0 8px; border-color: var(--line); }

.line-stop-name { font-weight: 600; font-size: 15px; }
.line-stop-deck { font-size: 13px; color: var(--muted); }

.home-note { border-bottom: 1px solid var(--rule); }

/* ---------------------------------------------------- legal */
.legal ul, .legal ol { color: var(--ink-soft); padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.muted { color: var(--muted); font-size: 14px; }
.legal-updated { margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--rule); }

/* ---------------------------------------------------- footer */
.footer {
  background: var(--card);
  border-top: 1px solid var(--rule);
  padding: clamp(36px, 5vw, 56px) 0 32px;
}

.footer-grid {
  display: grid; gap: 28px 24px;
  grid-template-columns: 1fr;
  padding-bottom: 30px; border-bottom: 1px solid var(--rule-soft);
}
@media (min-width: 560px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}
@media (min-width: 900px) {
  .footer-grid { grid-template-columns: 2.2fr 1.3fr 1fr 1fr; }
  .footer-brand { grid-column: auto; }
}

.footer-brand img { display: block; margin-bottom: 12px; }
.footer-brand .footer-note { margin-top: 0; max-width: 42ch; }

.footer-col ul.footer-platforms { display: block; columns: 2; column-gap: 22px; }
.footer-col ul.footer-platforms li { margin-bottom: 8px; break-inside: avoid; }

.footer-head {
  font-family: var(--display); font-size: 12px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted); margin: 0 0 12px;
}

.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.footer-col a { font-size: 14px; text-decoration: none; color: var(--ink-soft); }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }

.footer-note {
  margin: 24px 0 0; font-size: 12.5px; line-height: 1.6;
  color: var(--muted); max-width: 80ch;
}

.footer-legal { margin: 14px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------------------------------------------------- motion */
@media (prefers-reduced-motion: no-preference) {
  .hero h1, .hero .deck, .hero .grabber { animation: rise 420ms cubic-bezier(.22,.68,.36,1) both; }
  .hero .deck    { animation-delay: 60ms; }
  .hero .grabber { animation-delay: 110ms; }
  .rail-dot, .dl, .tool-cards a, .line-stops a { transition: all 160ms ease; }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}


/* =============================================================
   Rich content components
   ============================================================= */

.lede { color: var(--muted); font-size: 15px; margin: -6px 0 18px; }

/* ---- spec strip under the downloader ---- */
.specstrip {
  list-style: none; margin: 22px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--rule); border-radius: var(--radius);
  background: #fff; overflow: hidden; max-width: 720px;
}
@media (min-width: 620px) { .specstrip { grid-template-columns: repeat(4, 1fr); } }
.specstrip li {
  min-width: 0; padding: 11px 16px;
  border-right: 1px solid var(--rule-soft);
  border-top: 1px solid var(--rule-soft);
  display: flex; flex-direction: column; gap: 2px;
}
.specstrip li:nth-child(-n+2) { border-top: 0; }
.specstrip li:nth-child(2n) { border-right: 0; }
@media (min-width: 620px) {
  .specstrip li { border-top: 0; }
  .specstrip li:nth-child(2n) { border-right: 1px solid var(--rule-soft); }
  .specstrip li:last-child { border-right: 0; }
}
.specstrip span {
  font-size: 10.5px; font-weight: 700; letter-spacing: .09em;
  text-transform: uppercase; color: var(--muted);
}
.specstrip strong { font-size: 14px; font-weight: 600; }

/* ---- content images ---- */
.shot { margin: 22px 0; max-width: 100%; min-width: 0; }
.shot img {
  width: 100%; border-radius: var(--radius);
  border: 1px solid var(--rule); background: var(--paper);
  aspect-ratio: var(--ratio, 16/10); object-fit: cover;
}
.shot figcaption {
  margin-top: 8px; font-size: 12.5px; color: var(--muted); text-align: center;
}
.shot-ph {
  aspect-ratio: var(--ratio, 16/10); max-width: 100%; min-width: 0;
  border: 1px dashed var(--rule); border-radius: var(--radius);
  background:
    repeating-linear-gradient(45deg, transparent 0 11px, rgba(16,21,28,.022) 11px 22px),
    var(--card);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 9px; padding: 20px; text-align: center;
}
.shot-ph-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .16em;
  color: #fff; background: var(--line);
  padding: 3px 9px; border-radius: 999px;
}
.shot-ph code {
  font-size: 12.5px; color: var(--ink); background: var(--paper);
  padding: 5px 10px; border-radius: 4px;
  max-width: 100%; min-width: 0; overflow-wrap: anywhere; word-break: break-word;
}
.shot-ph small { font-size: 12px; color: var(--muted); max-width: 42ch; }

/* ---- device tabs ---- */
.tabs { margin: 6px 0 8px; }
.tabbar {
  display: flex; gap: 4px; padding: 4px;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); margin-bottom: 22px;
  overflow-x: auto; scrollbar-width: none;
}
.tabbar::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 1 auto; white-space: nowrap; cursor: pointer;
  border: 0; border-radius: 3px; background: transparent;
  font-family: var(--body); font-size: 14px; font-weight: 600;
  color: var(--muted); padding: 9px 16px;
}
.tab:hover { color: var(--ink); }
.tab.is-on { background: var(--ink); color: #fff; }
.tabpane { display: none; }
.tabpane.is-on { display: block; }

/* ---- feature grid ---- */
.fgrid { display: grid; gap: 12px; }
@media (min-width: 640px) { .fgrid { grid-template-columns: 1fr 1fr; } }
.fcard {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); padding: 16px 18px; position: relative;
}
.fcard-mark {
  display: block; width: 22px; height: 3px; border-radius: 2px;
  background: var(--line); margin-bottom: 11px;
}
.fcard h3 { font-family: var(--display); font-size: 15px; font-weight: 700; margin: 0 0 5px; }
.fcard p { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ---- comparison table ---- */
.tablewrap { overflow-x: auto; margin: 18px 0; -webkit-overflow-scrolling: touch; }
.ctable {
  width: 100%; border-collapse: separate; border-spacing: 0;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); overflow: hidden; font-size: 14px; min-width: 460px;
}
.ctable thead th {
  background: var(--ink); color: #fff; text-align: left;
  font-family: var(--display); font-weight: 700; font-size: 13px;
  padding: 11px 14px; white-space: nowrap;
}
.ctable thead th:first-child { background: var(--ink); }
.ctable tbody th {
  text-align: left; font-weight: 600; padding: 11px 14px;
  border-top: 1px solid var(--rule-soft); background: rgba(16,21,28,.018);
}
.ctable tbody td {
  padding: 11px 14px; border-top: 1px solid var(--rule-soft);
  border-left: 1px solid var(--rule-soft); color: var(--ink-soft);
}
.ctable tbody tr:last-child th, .ctable tbody tr:last-child td { border-bottom: 0; }

/* ---- troubleshooting ---- */
.trouble { display: grid; gap: 10px; }
.tcard {
  background: var(--card); border: 1px solid var(--rule);
  border-left: 3px solid var(--line);
  border-radius: var(--radius); padding: 14px 16px;
}
.tcard-q { margin: 0 0 5px; font-weight: 600; font-size: 14.5px; }
.tcard-a { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.55; }

/* ---- table of contents ---- */
.side-toc .side-links a { font-weight: 500; }

/* ---- contextual links in prose ---- */
.prose p a, .prose li a {
  color: var(--ink); font-weight: 500;
  text-decoration: underline; text-decoration-color: var(--line);
  text-decoration-thickness: 2px; text-underline-offset: 3px;
}
.prose p a:hover, .prose li a:hover { background: color-mix(in srgb, var(--line) 12%, transparent); }

/* ---- related tools ---- */
.relgrid { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
@media (min-width: 640px) { .relgrid { grid-template-columns: 1fr 1fr; } }
.relgrid a {
  display: grid; gap: 3px; height: 100%; text-decoration: none;
  background: var(--card); border: 1px solid var(--rule);
  border-left: 3px solid var(--line); border-radius: var(--radius);
  padding: 14px 16px;
}
.relgrid a:hover { border-color: var(--line); }
.relgrid strong { font-family: var(--display); font-size: 15px; font-weight: 700; }
.relgrid span { font-size: 13.5px; color: var(--muted); line-height: 1.5; }

/* ---- lawful-use notice on the phone lookup ---- */
.lawful-note {
  max-width: 720px;
  margin: 12px 0 0;
  padding: 11px 14px;
  border: 1px solid var(--rule);
  border-left: 3px solid var(--warn, #B26A00);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* ---- result preview ---- */
.result-figure { position: relative; align-self: start; }

.result-thumb {
  width: 100%;
  border-radius: var(--radius);
  background: var(--paper);
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
}

.result-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(16, 21, 28, .62);
  backdrop-filter: blur(2px);
  pointer-events: none;
}
.result-play::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  transform: translate(-50%, -50%);
  border-style: solid;
  border-width: 8px 0 8px 13px;
  border-color: transparent transparent transparent #fff;
}

/* per-row thumbnail for image results */
.dl-thumb {
  width: 40px; height: 40px;
  border-radius: 4px;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--rule);
  flex: 0 0 auto;
  margin-right: 2px;
}
.dl { gap: 10px; }

@media (min-width: 620px) {
  .result-card { grid-template-columns: 168px 1fr; }
}

/* ---------------------------------------------------- cookie consent */
.consent {
  position: fixed;
  left: 16px; right: 16px; bottom: 16px;
  z-index: 60;
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: 0 8px 30px rgba(16, 21, 28, .16);
  padding: 16px 18px;
}
.consent-inner {
  display: grid;
  gap: 12px;
  max-width: var(--shell);
  margin: 0 auto;
}
.consent-text {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.consent-text a { color: var(--ink); }
.consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.consent-btn {
  padding: 10px 20px;
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--ink);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
.consent-btn:hover { border-color: var(--ink-soft); }
.consent-btn:focus-visible {
  outline: 2px solid var(--line);
  outline-offset: 2px;
}
.consent-accept {
  background: var(--ink);
  color: var(--card);
  border-color: var(--ink);
}
.consent-reject { background: transparent; }
@media (min-width: 680px) {
  .consent-inner {
    grid-template-columns: 1fr auto;
    align-items: center;
  }
  .consent-actions { justify-content: flex-end; }
}
