/* ══════════════════════════════════════════════════════════════════════════
   components.css — the reusable merchandising vocabulary.
   Buttons · chips · dots · product cards · brand tiles · guide cards ·
   spec rows · FAQ · trust band · pagination · prose.
   ══════════════════════════════════════════════════════════════════════════ */

/* ── BUTTONS ───────────────────────────────────────────────────────────── */
.tv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: 52px;
  padding-inline: 26px;
  border-radius: var(--tv-r-pill);
  font-family: var(--tv-font-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.01em;
  text-align: center;
  white-space: nowrap;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform var(--tv-dur-fast) var(--tv-ease),
              box-shadow var(--tv-dur-base) var(--tv-ease),
              background-color var(--tv-dur-base), color var(--tv-dur-base);
}
.tv-btn:hover { transform: translateY(-1px); }
.tv-btn:active { transform: translateY(0); }
.tv-btn[disabled], .tv-btn.is-busy { opacity: .55; pointer-events: none; transform: none; }

.tv-btn--brand {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 30px -12px color-mix(in srgb, var(--brand) 70%, transparent);
}
.tv-btn--brand:hover { color: #fff; box-shadow: 0 14px 34px -12px color-mix(in srgb, var(--brand) 80%, transparent); }
/* On a Kiosk ground the mid-tone brand loses contrast; --brand-2 carries it. */
[data-theme="dark"] .tv-btn--brand, .tv-invert .tv-btn--brand {
  background: var(--brand-2);
  color: var(--tv-on-accent);
}
[data-theme="dark"] .tv-btn--brand:hover, .tv-invert .tv-btn--brand:hover { color: var(--tv-on-accent); }

.tv-btn--ghost { border-color: var(--tv-hair-2); color: var(--tv-ink); background: var(--tv-glass); }
.tv-btn--ghost:hover { border-color: var(--tv-ink); color: var(--tv-ink); }

.tv-btn--dark { background: var(--tv-ink); color: var(--tv-paper); }
.tv-btn--dark:hover { color: var(--tv-paper); }

.tv-btn--sm { height: 40px; padding-inline: 18px; font-size: 14px; }
.tv-btn--block { width: 100%; }

/* ── CHIPS & STATUS DOTS ───────────────────────────────────────────────── */
.tv-chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 30px;
  padding-inline: 13px;
  border-radius: var(--tv-r-pill);
  border: 1px solid var(--tv-hair);
  background: var(--tv-glass);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--tv-ink-2);
  white-space: nowrap;
}
.tv-chip .tv-num { color: var(--tv-ink); }
.tv-chip--brand {
  border-color: color-mix(in srgb, var(--brand) 40%, transparent);
  color: var(--brand-ink);
  background: var(--brand-soft);
}
.tv-chips { display: flex; flex-wrap: wrap; gap: 8px; }

.tv-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tv-ink-4); flex: 0 0 auto; }
.tv-dot--ok   { background: var(--tv-signal-ok); }
.tv-dot--warn { background: var(--tv-signal-warn); }
.tv-dot--err  { background: var(--tv-signal-err); }

/* ── PRODUCT CARD ──────────────────────────────────────────────────────── */
/* Column count comes from WooCommerce's "Products per row" setting, printed
   onto the element as --tv-cols by tv_prod_grid_style(). The -md / -sm values
   are pre-clamped in PHP so a 2-column shop never widens on a small screen. */
.tv-prod-grid {
  display: grid;
  grid-template-columns: repeat(var(--tv-cols, 4), minmax(0, 1fr));
  gap: var(--tv-s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}
@media (max-width: 1024px) { .tv-prod-grid { grid-template-columns: repeat(var(--tv-cols-md, 3), minmax(0, 1fr)); } }
@media (max-width:  760px) { .tv-prod-grid { grid-template-columns: repeat(var(--tv-cols-sm, 2), minmax(0, 1fr)); gap: var(--tv-s-3); } }

/* Kit band: fixed four across rather than the shop's products-per-row, and a
   tinted image well so the range reads apart from the best-sellers grid. */
.tv-prod-grid--kits { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tv-prod-grid--kits .tv-prod-media { background: var(--tv-paper-deep); }
@media (max-width: 1024px) { .tv-prod-grid--kits { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tv-prod-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border-radius: var(--tv-r-lg);
  border: 1px solid var(--tv-hair);
  background: var(--tv-glass);
  overflow: hidden;
  color: var(--tv-ink);
  transition: transform var(--tv-dur-base) var(--tv-ease),
              box-shadow var(--tv-dur-base) var(--tv-ease),
              border-color var(--tv-dur-base);
}
.tv-prod-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--tv-elev-2);
  border-color: var(--tv-hair-2);
  color: var(--tv-ink);
}

.tv-prod-media {
  position: relative;
  aspect-ratio: 4 / 3;
  /* Product photography always sits on a consistent white ground. */
  background: #fff;
  overflow: hidden;
}
.tv-prod-media img {
  width: 100%; height: 100%;
  object-fit: contain;
  border-radius: 0;
  padding: 10px;
  transition: transform var(--tv-dur-slow) var(--tv-ease);
}
.tv-prod-card:hover .tv-prod-media img { transform: scale(1.04); }

.tv-prod-flag {
  position: absolute; top: 10px; left: 10px;
  height: 24px; padding-inline: 10px;
  display: inline-flex; align-items: center;
  border-radius: var(--tv-r-pill);
  background: var(--brand); color: #fff;
  font-family: var(--tv-font-mono); font-size: 10px;
  letter-spacing: .08em; text-transform: uppercase; font-weight: 700;
}
.tv-prod-flag--out { background: var(--tv-ink-3); }

.tv-prod-body {
  padding: 16px 17px 18px;
  display: flex; flex-direction: column; gap: 9px;
  flex: 1;
}
.tv-prod-brand {
  font-family: var(--tv-font-mono);
  font-size: 10px; letter-spacing: .1em; text-transform: uppercase;
  font-weight: 700; color: var(--brand-ink);
}
.tv-prod-name {
  font-family: var(--tv-font-display);
  font-weight: 700; font-size: 15px; line-height: 1.28;
  letter-spacing: -0.01em; margin: 0;
  /* Two lines keeps every card in a row the same height. */
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tv-prod-meta {
  font-family: var(--tv-font-mono);
  font-size: 10.5px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--tv-ink-3);
}
/* Price and stock always share one line. The row is nowrap and holds exactly
   two items — the price group and the stock badge — so the only thing that can
   ever move is the struck-through price, which wraps inside its own group. At
   a 4-column grid the card is ~198px wide and the row has ~162px to work in,
   which is why the type here runs a notch smaller than it looks like it could. */
.tv-prod-foot {
  margin-top: auto; padding-top: 4px;
  display: flex; align-items: baseline; gap: 6px; flex-wrap: nowrap;
}
.tv-prod-prices {
  display: flex; align-items: baseline; gap: 5px; flex-wrap: wrap;
  min-width: 0;
}
.tv-prod-price {
  font-family: var(--tv-font-display);
  font-weight: 800; font-size: 18px; color: var(--brand-ink);
  white-space: nowrap;
}
.tv-prod-list {
  font-size: 12.5px; color: var(--tv-ink-4); text-decoration: line-through;
  white-space: nowrap;
}
.tv-prod-stock {
  margin-left: auto;
  flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; color: var(--tv-ink-3);
  white-space: nowrap;
}
/* A product with no price to show leaves stock alone in the row; pinning it
   right would read as a layout slip rather than a choice. */
.tv-prod-stock:only-child { margin-left: 0; }

/* ── KIT CARD VARIANT ────────────────────────────────────────────────────
   Mirrors the reference shop's kit tile: a lighter 4px card, a square image
   well, the name leading, a two-cell spec strip, short copy, and a filled
   button pinned to the bottom so every card in a row ends level. */
.tv-prod-card--kit {
  border-radius: 4px;
  border-color: #D9DEE5;
  background: #fff;
}
.tv-prod-card--kit:hover { border-color: #C7CDD9; box-shadow: 0 12px 28px -20px rgba(16, 24, 40, .45); }

.tv-prod-card--kit .tv-prod-media { aspect-ratio: 1 / 1; background: #fff; }
.tv-prod-card--kit .tv-prod-media img { padding: 34px 26px 6px; }

/* The reference tile leads with the name; the mono eyebrow, spec line and
   stock note are all carried elsewhere (name, strip, image flag). */
.tv-prod-card--kit .tv-prod-brand,
.tv-prod-card--kit .tv-prod-meta,
.tv-prod-card--kit .tv-prod-stock { display: none; }

.tv-prod-card--kit .tv-prod-body { padding: 0 14px 14px; gap: 0; }
.tv-prod-card--kit .tv-prod-name {
  margin-top: 12px;
  font-size: 14px; font-weight: 700; line-height: 1.32;
  -webkit-line-clamp: 3;
}
.tv-prod-card--kit .tv-prod-foot { margin-top: 0; padding-top: 8px; }
.tv-prod-card--kit .tv-prod-price { font-size: 17px; color: var(--tv-ink); }

.tv-kit-specs {
  display: flex;
  margin: 10px -14px 0;
  border-top: 1px solid #D9DEE5;
  border-bottom: 1px solid #D9DEE5;
}
.tv-kit-specs > span {
  flex: 1 1 50%;
  min-width: 0;
  padding: 7px 8px;
  font-size: 12px; line-height: 1.3;
  color: #455168; text-align: center;
  border-right: 1px solid #D9DEE5;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tv-kit-specs > span:last-child { border-right: 0; }

.tv-kit-desc {
  margin: 10px 0 12px;
  font-size: 12px; line-height: 1.42;
  color: #6A778E;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-prod-card--kit .tv-prod-cta {
  margin-top: auto;
  display: flex; justify-content: center; align-items: center;
  height: 40px;
  border-radius: 4px;
  background: var(--brand);
  color: #fff;
  font-family: var(--tv-font-display);
  font-size: 13.5px; font-weight: 700;
  letter-spacing: 0; text-transform: none;
}
.tv-prod-card--kit:hover .tv-prod-cta { background: var(--brand-ink); color: #fff; }
.tv-prod-card--kit .tv-prod-cta.is-off { background: var(--tv-ink-4); color: #fff; }

/* ── BRAND TILE — the Brand Index directory ───────────────────────────────
   Every tile used to be painted in the same accent at 138px tall, so the wall
   read as a grid of identical orange slabs, and a letter holding one brand
   still opened a full-height section. Tiles are neutral rows now: brand name,
   real stock count, arrow — the accent is left to the ghosted initial and to
   hover. Compact height lets a one-brand letter cost a single row. */
.tv-brandgrid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
@media (max-width: 1100px) { .tv-brandgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width:  640px) { .tv-brandgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.tv-brandtile {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 72px;
  padding: 12px 14px;
  border-radius: var(--tv-r-md);
  background: var(--tv-paper-deep);
  border: 1px solid transparent;
  color: var(--tv-ink);
  overflow: hidden;
  transition:
    transform var(--tv-dur-base) var(--tv-ease),
    background var(--tv-dur-base) var(--tv-ease),
    border-color var(--tv-dur-base) var(--tv-ease),
    box-shadow var(--tv-dur-base) var(--tv-ease);
}
.tv-brandtile:hover {
  transform: translateY(-2px);
  background: var(--tv-surf-solid);
  border-color: color-mix(in srgb, var(--brand) 34%, var(--tv-hair));
  box-shadow: var(--tv-glass-shadow);
  color: var(--tv-ink);
}

/* The initial, at a whisper — it used to be a 110px white slab that fought
   the brand name for the same corner. */
.tv-brandtile-wm {
  position: absolute; right: -6px; top: -14px;
  font-family: var(--tv-font-display); font-weight: 900; font-size: 54px; line-height: 1;
  color: color-mix(in srgb, var(--brand) 13%, transparent);
  pointer-events: none; user-select: none;
  transition: color var(--tv-dur-base) var(--tv-ease);
}
.tv-brandtile:hover .tv-brandtile-wm { color: color-mix(in srgb, var(--brand) 26%, transparent); }

.tv-brandtile-arr {
  order: 2; flex: 0 0 auto;
  display: inline-flex;
  color: var(--tv-ink-4);
  transition: transform var(--tv-dur-base) var(--tv-ease), color var(--tv-dur-base) var(--tv-ease);
}
.tv-brandtile:hover .tv-brandtile-arr { transform: translateX(3px); color: var(--brand); }

/* The name + count block. `order` puts it ahead of the arrow, which sits
   second in the markup. */
.tv-brandtile > span:nth-child(3) {
  order: 1; flex: 1 1 auto; min-width: 0; position: relative;
}

.tv-brandtile-name {
  display: block;
  font-family: var(--tv-font-display); font-weight: 700; font-size: 16px;
  letter-spacing: -0.015em; line-height: 1.2;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tv-brandtile-meta {
  display: block; margin-top: 3px;
  font-family: var(--tv-font-mono); font-size: 9.5px;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--tv-ink-3);
  transition: color var(--tv-dur-base) var(--tv-ease);
}
.tv-brandtile:hover .tv-brandtile-meta { color: var(--tv-ink-2); }

@media (max-width: 640px) {
  .tv-brandgrid { gap: 8px; }
  .tv-brandtile { min-height: 64px; padding: 10px 12px; gap: 8px; }
  .tv-brandtile-name { font-size: 14.5px; }
  .tv-brandtile-wm { font-size: 44px; top: -10px; }
}

/* ── BRAND RAIL (home) ───────────────────────────────────────────────────
   Dark navy cards, following the reference shop's "popular ranges": a line
   mark above the name, the whole card clickable. The wall on the Brand Index
   page keeps the filled tiles — there the colour IS the wayfinding, and there
   are many more brands per screen. */
.tv-brandrail {
  display: grid;
  /* Four across on desktop, like the reference shop's range row — the cards are
     meant to be wide enough to read as panels, not as chips. */
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
@media (max-width: 1024px) {
  .tv-brandrail { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .tv-brandrail { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

.tv-brandrail-item {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 18px;
  min-height: 180px;
  padding: 28px 20px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, .08);
  /* The navy is the card's own ground, not a theme token: it has to stay dark
     in both light and dark themes so the white label keeps its contrast. */
  background: linear-gradient(160deg, #22384F 0%, #17293A 100%);
  color: #fff;
  text-align: center;
  transition: transform var(--tv-dur-base) var(--tv-ease),
              border-color var(--tv-dur-base),
              box-shadow var(--tv-dur-base) var(--tv-ease);
}
.tv-brandrail-item:hover,
.tv-brandrail-item:focus-visible {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(44, 155, 224, .55);
  box-shadow: 0 14px 30px -14px rgba(10, 24, 38, .55);
}
.tv-brandrail-item:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* The mark is a light-blue glyph. Brands with their own logo show it, flattened
   to white so every card reads as one line-art family; the rest use the house
   vape icon rather than a letter. */
.tv-brandrail-mark {
  display: grid; place-items: center;
  width: 56px; height: 56px;
  /* Alternates per card: blue, amber, blue… while the card ground stays navy. */
  color: var(--tv-rail-mark, #2C9BE0);
}
.tv-brandrail-item:nth-child(even) { --tv-rail-mark: #F2A44A; }
/* The size lives here rather than on the SVG attributes so the phone breakpoint
   can shrink it with the card. */
.tv-brandrail-mark svg { display: block; width: 52px; height: 52px; }
/* Uploaded brand logos keep their own colours — the white flattening belonged
   to the house glyph fallback and made real artwork unreadable. */
.tv-brandrail-img {
  width: 100%; height: 100%;
  object-fit: contain;
  opacity: .95;
}
.tv-brandrail-name {
  display: block;
  font-family: var(--tv-font-display);
  font-size: clamp(19px, 1.55vw, 22px); font-weight: 700; line-height: 1.25;
  letter-spacing: -.01em;
  color: #fff;
  /* Long names wrap inside the card instead of widening the column. */
  max-width: 22ch;
}
@media (max-width: 640px) {
  .tv-brandrail-item { min-height: 144px; padding: 20px 14px; gap: 12px; }
  .tv-brandrail-mark { width: 44px; height: 44px; }
  .tv-brandrail-mark svg { width: 42px; height: 42px; }
  .tv-brandrail-name { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) {
  .tv-brandrail-item { transition: none; }
  .tv-brandrail-item:hover,
  .tv-brandrail-item:focus-visible { transform: none; }
}

/* ── TRUST CARDS ─────────────────────────────────────────────────────────
   Four promise cards on paper, modelled on the reference shop's service row:
   a blue line icon, a capitalised headline, a grey note. */
.tv-trust {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--tv-s-4);
}
@media (max-width: 1024px) { .tv-trust { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .tv-trust { grid-template-columns: 1fr; } }

.tv-trust-item {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  min-height: 152px;
  padding: 26px 22px 24px;
  text-align: center;
  border-radius: 6px;
  border: 1px solid #D9DEE5;
  background: #fff;
}

.tv-trust-i { display: inline-flex; color: #2C9BE0; }
.tv-trust-i svg { display: block; width: 28px; height: 28px; }

.tv-trust-item h3 {
  font-family: var(--tv-font-display);
  font-size: 14px; font-weight: 700; line-height: 1.35;
  letter-spacing: .04em; text-transform: uppercase;
  color: #263042;
}

.tv-trust-item p {
  font-size: 13.5px; line-height: 1.5;
  color: #7A8699;
  /* Three lines keeps the row level while leaving room for the promise. */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ── GUIDE CARD ────────────────────────────────────────────────────────── */
/* Follows the reference blog tile: image on top, date · author, a heavy
   headline, the excerpt, and a full-width navy button at the foot. */
.tv-guidegrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--tv-s-5);
}
@media (max-width: 900px) { .tv-guidegrid { grid-template-columns: 1fr; } }

.tv-guidecard {
  display: flex; flex-direction: column;
  border-radius: 6px;
  border: 1px solid #D9DEE5;
  background: #fff;
  overflow: hidden;
  color: var(--tv-ink);
  transition: transform var(--tv-dur-base) var(--tv-ease), box-shadow var(--tv-dur-base), border-color var(--tv-dur-base);
}
.tv-guidecard:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 40px -28px rgba(16, 24, 40, .5);
  border-color: #C7CDD9;
  color: var(--tv-ink);
}

.tv-guidecard-media {
  display: block;
  aspect-ratio: 16 / 10;
  background: var(--tv-paper-deep);
  overflow: hidden;
}
.tv-guidecard-media img {
  display: block; width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--tv-dur-slow) var(--tv-ease);
}
.tv-guidecard:hover .tv-guidecard-media img { transform: scale(1.03); }

.tv-guidecard-body {
  display: flex; flex-direction: column;
  flex: 1;
  padding: 22px 22px 22px;
  gap: 10px;
}

.tv-guidecard-meta {
  display: flex; align-items: center; gap: 10px;
  font-size: 15px; line-height: 1.3;
  color: #455168;
}
.tv-guidecard-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #2C9BE0;
  flex: 0 0 auto;
}

.tv-guidecard h3 {
  font-size: clamp(19px, 1.6vw, 22px);
  font-weight: 700; line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--tv-ink);
  /* Three lines keeps the row aligned without hiding the subject. */
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
  overflow: hidden;
}
.tv-guidecard p {
  font-size: 15.5px; line-height: 1.55;
  color: #455168;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical;
  overflow: hidden;
}

.tv-guide-go {
  margin-top: auto;
  display: flex; align-items: center; justify-content: center;
  height: 48px;
  border-radius: 4px;
  background: #263042;
  color: #fff;
  font-family: var(--tv-font-display); font-weight: 700; font-size: 15px;
  transition: background-color var(--tv-dur-base);
}
.tv-guidecard:hover .tv-guide-go { background: #1B2534; }

/* ── KIT CATEGORY TILES ──────────────────────────────────────────────────
   Modelled on the reference shop's "Browse Vape Kits": a heading and intro,
   then three photographic tiles with a white tab riding the left edge. */
.tv-kitcats-head { max-width: 920px; margin-bottom: var(--tv-s-8); }
.tv-kitcats-head h2 {
  font-family: var(--tv-font-display); font-weight: 800;
  font-size: clamp(26px, 2.4vw, 34px); line-height: 1.2;
  letter-spacing: -.02em; color: var(--tv-ink);
}
.tv-kitcats-intro { margin-top: var(--tv-s-4); }
.tv-kitcats-intro p {
  margin: 0 0 12px;
  font-size: 15.5px; line-height: 1.65;
  color: #455168;
}
.tv-kitcats-intro p:last-child { margin-bottom: 0; }

.tv-kitcats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 900px) { .tv-kitcats { grid-template-columns: 1fr; } }

.tv-kitcat {
  position: relative;
  display: block;
  aspect-ratio: 2 / 1;
  border-radius: 4px;
  overflow: hidden;
  /* Brands that have no tile image yet still get a photographic-feeling
     ground rather than an empty box. */
  background: linear-gradient(135deg, #22384F, #0E1A26);
  isolation: isolate;
}
.tv-kitcat-img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform var(--tv-dur-base) var(--tv-ease);
}
/* A light scrim keeps the white tab legible over bright product shots. */
.tv-kitcat::after {
  content: "";
  position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(10, 18, 26, .35), rgba(10, 18, 26, .12) 45%, rgba(10, 18, 26, .4));
  pointer-events: none;
}
.tv-kitcat-tab {
  position: absolute; left: 0; top: 18px; z-index: 2;
  display: inline-block;
  padding: 9px 26px 9px 16px;
  background: #fff;
  color: #16202B;
  font-family: var(--tv-font-display); font-weight: 700;
  font-size: 15.5px; line-height: 1.2;
  /* The slanted right edge is the tab shape from the reference tiles. */
  clip-path: polygon(0 0, 100% 0, calc(100% - 14px) 100%, 0 100%);
}
.tv-kitcat:hover .tv-kitcat-img { transform: scale(1.04); }
.tv-kitcat:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) {
  .tv-kitcat-img { transition: none; }
  .tv-kitcat:hover .tv-kitcat-img { transform: none; }
}

/* ── SPEC ROW ──────────────────────────────────────────────────────────── */
.tv-specs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 1px;
  background: var(--tv-hair);
  border: 1px solid var(--tv-hair);
  border-radius: var(--tv-r-md);
  overflow: hidden;
}
.tv-spec { background: var(--tv-glass); padding: 14px 16px; display: flex; flex-direction: column; gap: 3px; }
.tv-spec-l { font-family: var(--tv-font-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--tv-ink-3); }
.tv-spec-v { font-family: var(--tv-font-display); font-weight: 800; font-size: 17px; color: var(--tv-ink); }

/* ── FAQ ───────────────────────────────────────────────────────────────── */
.tv-faq { border-top: 1px solid var(--tv-hair); }
.tv-faq-item { border-bottom: 1px solid var(--tv-hair); }
.tv-faq-item > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 4px;
  font-family: var(--tv-font-display); font-weight: 700; font-size: 16.5px;
  color: var(--tv-ink); cursor: pointer; list-style: none;
}
.tv-faq-item > summary::-webkit-details-marker { display: none; }
.tv-faq-item > summary::after {
  content: "+";
  font-family: var(--tv-font-display); font-weight: 400; font-size: 22px;
  color: var(--tv-ink-3); flex: 0 0 auto; line-height: 1;
  transition: transform var(--tv-dur-base) var(--tv-ease);
}
.tv-faq-item[open] > summary::after { transform: rotate(45deg); }
.tv-faq-a { padding: 0 4px 20px; font-size: 15px; color: var(--tv-ink-2); line-height: var(--tv-lh-loose); max-width: 78ch; }

/* ── PROSE (post body, product description, legal pages) ───────────────── */
.tv-prose { font-size: 16.5px; line-height: var(--tv-lh-loose); color: var(--tv-ink-2); }
.tv-prose > *:first-child { margin-top: 0; }
.tv-prose h2 { font-size: var(--tv-fs-h3); margin: var(--tv-s-10) 0 var(--tv-s-3); color: var(--tv-ink); }
.tv-prose h3 { font-size: var(--tv-fs-h4); margin: var(--tv-s-8) 0 var(--tv-s-2); color: var(--tv-ink); }
.tv-prose ul, .tv-prose ol { padding-left: 1.3em; margin-bottom: 1.2em; }
.tv-prose li { margin-bottom: .5em; }
.tv-prose img { border-radius: var(--tv-r-md); margin-block: var(--tv-s-6); }
.tv-prose a { text-decoration: underline; text-underline-offset: 2px; }
/* A .tv-btn authored into post content would otherwise pick up the prose link
   underline, which has the higher specificity of the two. */
.tv-prose a.tv-btn { text-decoration: none; }
.tv-prose--wide { max-width: none; }

/* ── TEAM GRID ───────────────────────────────────────────────────────────
   Authored from the editor rather than a template, so a page like /team/ can
   lay people out as cards without hardcoding names into PHP. Both classes are
   written to sit inside .tv-prose, whose descendant rules would otherwise
   apply a page-sized margin to every heading in a card. */
.tv-team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-block: var(--tv-s-8);
}

.tv-teammate {
  padding: var(--tv-s-5);
  border: 1px solid var(--tv-hair);
  border-radius: var(--tv-r-lg);
  background: var(--tv-glass);
  box-shadow: var(--tv-glass-shadow);
}

/* Cards are self-contained: no page rhythm inside them, and the heading is a
   card title rather than a section title. */
.tv-teammate > :first-child { margin-top: 0; }
.tv-teammate h2,
.tv-teammate h3 {
  font-size: var(--tv-fs-h4);
  margin: 0 0 var(--tv-s-2);
}
.tv-teammate p {
  font-size: 15.5px;
  line-height: 1.6;
  margin: 0 0 var(--tv-s-3);
}
.tv-teammate > :last-child { margin-bottom: 0; }

/* Scoped one class deeper than the paragraph rule above so the mono role line
   keeps its own size and colour. */
.tv-teammate .tv-teammate-role {
  font-family: var(--tv-font-mono);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tv-ink-3);
  margin: 0 0 var(--tv-s-3);
}

.tv-teammate .tv-teammate-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--tv-font-mono);
  font-size: 11.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--brand);
  text-decoration: none;
}
.tv-teammate .tv-teammate-link::after {
  content: "→";
  transition: transform var(--tv-dur-base) var(--tv-ease);
}
.tv-teammate .tv-teammate-link:hover::after { transform: translateX(3px); }

/* ── DATA TABLE ──────────────────────────────────────────────────────────
   Editor-authored tables, same reasoning as .tv-team-grid above. The wrapper
   is not optional: a 51-row table with four columns has to scroll inside its
   own box on a phone instead of widening the article. */
.tv-table-wrap {
  overflow-x: auto;
  margin-block: var(--tv-s-8);
}

.tv-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.5;
}

.tv-table th {
  padding: 10px 12px;
  border-bottom: 1px solid var(--tv-hair-2);
  font-family: var(--tv-font-mono);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--tv-ink-3);
  text-align: left;
  white-space: nowrap;
}

.tv-table td {
  padding: 12px;
  border-bottom: 1px solid var(--tv-hair);
  color: var(--tv-ink-2);
  vertical-align: top;
}

.tv-table tbody tr:last-child td { border-bottom: 0; }
.tv-table td:first-child {
  color: var(--tv-ink);
  font-weight: 600;
  white-space: nowrap;
}

/* ── PAGINATION ────────────────────────────────────────────────────────── */
.tv-pagination { margin-top: var(--tv-s-12); }
.tv-pagination .nav-links, .tv-pagination ul.page-numbers {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center;
  list-style: none; margin: 0; padding: 0;
}
.tv-pagination li { margin: 0; }
.tv-pagination .page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 42px; height: 42px; padding-inline: 12px;
  border-radius: var(--tv-r-pill);
  border: 1px solid var(--tv-hair);
  background: var(--tv-glass);
  font-family: var(--tv-font-display); font-weight: 700; font-size: 14px;
  color: var(--tv-ink-2);
}
.tv-pagination .page-numbers:hover { border-color: var(--tv-ink); color: var(--tv-ink); }
.tv-pagination .page-numbers.current { background: var(--brand); border-color: var(--brand); color: #fff; }
.tv-pagination .page-numbers.dots { border-color: transparent; background: none; }

/* ── WIDGETS ───────────────────────────────────────────────────────────── */
.tv-widget { margin-bottom: var(--tv-s-8); }
.tv-widget-title {
  font-family: var(--tv-font-mono); font-size: 11px;
  letter-spacing: var(--tv-tr-mono); text-transform: uppercase;
  color: var(--tv-ink-3); font-weight: 400;
  margin-bottom: var(--tv-s-3);
}
.tv-widget ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tv-widget li { margin: 0; font-size: 14px; }
.tv-widget a { color: var(--tv-ink-2); }
.tv-widget a:hover { color: var(--tv-ink); }

/* ── COMMENTS & REVIEWS ────────────────────────────────────────────────── */
.tv-comments { margin-top: var(--tv-s-12); padding-top: var(--tv-s-8); border-top: 1px solid var(--tv-hair); }
.tv-comments .comment-list { list-style: none; margin: 0 0 var(--tv-s-8); padding: 0; }
.tv-comments .comment-list ol.children { list-style: none; padding-left: var(--tv-s-6); }
.tv-comments .comment-body {
  padding: var(--tv-s-5);
  border: 1px solid var(--tv-hair);
  border-radius: var(--tv-r-md);
  background: var(--tv-glass);
  margin-bottom: var(--tv-s-4);
}
.tv-comments .comment-author { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.tv-comments .comment-author img { border-radius: 50%; }
.tv-comments .comment-author .fn { font-family: var(--tv-font-display); font-weight: 700; font-style: normal; color: var(--tv-ink); }
.tv-comments .comment-metadata { font-family: var(--tv-font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--tv-ink-4); margin: 6px 0 10px; }
.tv-comments .reply a { font-size: 12.5px; font-weight: 600; }

.tv-comments .comment-form { display: grid; gap: var(--tv-s-4); }
.tv-comments .comment-form p { margin: 0; }
.tv-comments .comment-form label {
  display: block;
  font-family: var(--tv-font-mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--tv-ink-3);
  margin-bottom: 7px;
}
.tv-comments .comment-form input[type="text"],
.tv-comments .comment-form input[type="email"],
.tv-comments .comment-form input[type="url"],
.tv-comments .comment-form textarea {
  width: 100%; height: 48px;
  border: 1px solid var(--tv-hair-2);
  border-radius: var(--tv-r-sm);
  background: var(--tv-paper);
  padding-inline: 14px;
  font: 500 15px var(--tv-font-body);
  color: var(--tv-ink);
}
.tv-comments .comment-form textarea { height: auto; min-height: 140px; padding: 12px 14px; line-height: 1.5; resize: vertical; }
.tv-comments .comment-form .form-submit { margin-top: 0; }

/* ── RELATED / UPSELL HEADINGS ─────────────────────────────────────────── */
.tv-related, .tv-upsells { margin-top: 0; }

/* Footer legal links sit inline in the bottom row. */
.tv-ftr-legal-menu { display: flex; gap: 16px; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; margin-left: auto; }
.tv-ftr-legal-menu li { margin: 0; }
.tv-ftr-legal-menu a { color: var(--tv-ink-4); font-size: 12px; }
.tv-ftr-legal-menu a:hover { color: var(--tv-ink-2); }

/* ── NOTICES ───────────────────────────────────────────────────────────── */
.tv-notice {
  border: 1px solid var(--tv-hair-2);
  border-left: 3px solid var(--brand);
  border-radius: var(--tv-r-sm);
  background: var(--tv-glass);
  padding: 14px 18px;
  font-size: 14.5px; color: var(--tv-ink-2);
}
.tv-notice--ok   { border-left-color: var(--tv-signal-ok); }
.tv-notice--warn { border-left-color: var(--tv-signal-warn); }
.tv-notice--err  { border-left-color: var(--tv-signal-err); }

/* Card call to action. Always present so every card in a row ends at the
   same height, whatever the title wrapped to. Blog cards share the look and
   only override their placement, over in pages.css. */
.tv-prod-cta,
.tv-postcard-cta {
  margin-top: 12px;
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--tv-font-mono);
  font-size: 10.5px; letter-spacing: .09em; text-transform: uppercase;
  font-weight: 700;
  color: var(--brand-ink);
}
.tv-prod-cta svg,
.tv-postcard-cta svg { transition: transform var(--tv-dur-base) var(--tv-ease); }
.tv-prod-card:hover .tv-prod-cta svg,
.tv-postcard:hover .tv-postcard-cta svg { transform: translateX(3px); }
.tv-prod-cta.is-off { color: var(--tv-ink-4); }
.tv-prod-card:hover .tv-prod-cta.is-off svg { transform: none; }
