/* ==========================================================================
   torque.news — custom layer on top of Tailwind + Flowbite
   Brand tokens, stateful components and animations only;
   all layout/spacing/typography is Tailwind utilities in the markup.
   ========================================================================== */

/* ---------- brand config (drives the whole re-skin) ---------- */
:root {
  --accent: #f49731;
  --accent-deep: #c76902;
  --accent-contrast: #16181d;
  --sb-w: 332px;
}

/* accent-contrast is the text colour shown on top of --accent (badges,
   buttons). White fails AA here for both titles against their own accent:
   on-scene's red is 4.51:1 (sits right on the 4.5 line, no safe margin) and
   heavytorque's orange is 3.25:1 (fails outright). Black passes comfortably
   on both (4.65:1 red, 6.45:1 orange) without touching the brand colour
   itself. These two selectors are not wired to anything live yet (data-brand
   stays "torque" everywhere; see header.php and the note in
   template-parts/subscription-product.php — a deliberate choice, since the
   client's standing rule is one amber accent, not per-title colour), so this
   is a latent-code correctness fix with no visible change today, kept ready
   for if that ever switches on. */
[data-brand="onscene"] {
  --accent: #e03131;
  --accent-deep: #b32424;
  --accent-contrast: #000000;
}

[data-brand="heavytorque"] {
  --accent: #f2600c;
  --accent-deep: #c94e06;
  --accent-contrast: #000000;
}

/* ---------- light / dark mode (8 Oct 2026) ----------
   The light side of the palette as r g b channels. Tailwind's bg-white,
   bg-paper, bg-gray-50..300, text-ink, text-gray-500..900, text-sdark,
   border-ink, border-gray-100..300, divide-ink and ring-gray-200 read these
   (see tailwind/tailwind.config.js), and so does every hand-written rule
   below that paints a light surface or dark text on one. The dark bands
   (bg-ink, bg-coal, #16181d in this file), photo overlays and white-on-dark
   text are NOT variables: they look the same in both modes.
   The mode is decided on <html> by the inline head script in inc/setup.php:
   data-theme="dark" when the reader chose Dark, or chose Auto on a device
   set to dark; otherwise light, the original site. */
:root {
  color-scheme: light;
  --sf-page: 246 244 239;   /* #f6f4ef paper: the page behind everything */
  --sf-panel: 255 255 255;  /* white: the main column, cards, pop-ups */
  --sf-raised: 249 250 251; /* gray-50 */
  --sf-tint: 243 244 246;   /* gray-100 */
  --sf-tint2: 229 231 235;  /* gray-200 */
  --sf-tint3: 209 213 219;  /* gray-300 */
  --sf-warm: 250 249 246;   /* #faf9f6: form fields, table row hover */
  --sf-stripe: 247 245 240; /* #f7f5f0: table stripes */
  --sf-sec: 239 236 228;    /* #efece4: the subscription page paper section */
  --tx-ink: 22 24 29;       /* ink and gray-900: headings, body copy */
  --tx-strong: 31 41 55;    /* gray-800 */
  --tx-body: 55 65 81;      /* gray-700 */
  --tx-mid: 75 85 99;       /* gray-600 */
  --tx-muted: 107 114 128;  /* gray-500 */
  --tx-sdark: 93 100 110;   /* sdark: the quiet meta text on light */
  --tx-copy: 51 54 60;      /* #33363c: article and page body copy */
  --tx-dim: 74 79 88;       /* #4a4f58: table copy */
  --tx-gray900: 17 24 39;   /* Tailwind gray-900 */
  --tx-copy2: 58 62 69;     /* #3a3e45: the About page copy */
  --tx-ad: #a4a19a;         /* the advert placeholder label */
  --ln-ink: 22 24 29;       /* hairlines: border-ink/10 and friends */
  --ln-100: 243 244 246;
  --ln-200: 229 231 235;
  --ln-300: 209 213 219;
  --sf-band: 235 231 222;   /* #ebe7de: the warm ad bands and paper sections */
  --sf-ad: 238 236 230;     /* #eeece6: the advert placeholder */
  --ln-ad: #cfccc4;         /* its dashed edge */
  --page-dots: rgba(22, 24, 29, 0.05);
  --sf-field: 246 245 242;   /* #f6f5f2: checkout/basket field background */
  --sf-field-h: 241 240 236; /* #f1f0ec: its hover shade */
  /* WooCommerce's own woocommerce.css reads these two itself
     (".woocommerce form .form-row .input-text" etc fall back to #fff/#000
     when they are unset), so every WC-rendered input this theme has not
     restyled by hand (the stock lost-password endpoint, My Account's
     login/register fields) picks up the dark-mode tokens too. */
  --wc-form-color-background: rgb(var(--sf-panel));
  --wc-form-color-text: rgb(var(--tx-ink));
}

:root[data-theme="dark"] {
  color-scheme: dark;
  --sf-page: 11 12 15;
  --sf-panel: 27 30 37;
  --sf-raised: 30 33 39;
  --sf-tint: 36 40 47;
  --sf-tint2: 46 51 59;
  --sf-tint3: 58 63 73;
  --sf-warm: 30 33 39;
  --sf-stripe: 24 27 33;
  --sf-sec: 11 12 15;
  --tx-ink: 245 246 248;
  --tx-strong: 232 234 238;
  --tx-body: 213 216 221;
  --tx-mid: 190 196 205;
  --tx-muted: 171 177 186;
  --tx-sdark: 158 165 175;
  --tx-copy: 213 216 221;
  --tx-dim: 190 196 205;
  --tx-gray900: 245 246 248;
  --tx-copy2: 213 216 221;
  --tx-ad: #7d838d;
  --ln-ink: 255 255 255;
  --ln-100: 40 44 52;
  --ln-200: 52 57 66;
  --ln-300: 66 72 82;
  --sf-band: 30 33 39;
  --sf-ad: 30 33 39;
  --ln-ad: rgba(255, 255, 255, 0.16);
  --page-dots: rgba(255, 255, 255, 0.04);
  --sf-field: 30 33 39;
  --sf-field-h: 36 40 47;
}


html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-x: clip; /* clip, not hidden: hidden makes html/body scroll containers and breaks every position:sticky */
}

body {
  background-color: rgb(var(--sf-page));
  background-image: radial-gradient(var(--page-dots) 1px, transparent 1px);
  background-size: 22px 22px;
  overflow-x: hidden;
  overflow-x: clip;
  max-width: 100vw;
}

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

/* ---------- buttons (single source of truth => always aligned) ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.94rem;
  line-height: 1;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-contrast);
  border: 0;
  border-radius: 3px;
  padding: 0.85em 1.4em 0.72em; /* optical balance for Rajdhani's high baseline */
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.btn:hover {
  background: var(--accent-deep);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;
  color: rgb(var(--tx-ink));
  box-shadow: inset 0 0 0 2px rgb(var(--tx-ink));
}

.btn--ghost:hover {
  background: rgb(var(--tx-ink));
  color: rgb(var(--sf-panel));
}

.btn--ghost-light {
  background: transparent;
  color: #fff;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.btn--ghost-light:hover {
  background: #fff;
  color: #16181d;
  box-shadow: inset 0 0 0 2px #fff;
}

/* template-parts/feature/locked.php's secondary buttons: btn--ghost-light's white text and ring
   assume a dark ground (a built, ink-themed feature's own --tf-card). A migrated feature (Site
   settings > Paywall > "The paywall covers" = every feature) shows this same panel on the page's
   plain light background instead, where white text fails contrast - and feature.css, which
   defines --tf-fg, is not even enqueued there (inc/feature-render.php only loads it for a built
   feature), so the fallback matters on every migrated page, not just as a backstop. The explicit
   "inherit" keyword is the fallback, not currentColor: currentColor is only treated as inherit
   when it is the literal value of the color property itself, not when it arrives via a var()
   fallback. Where --tf-fg is defined (every built feature), var() never reaches the fallback, so
   this changes nothing there; color-mix() keeps the outline's current 50%-strength look either
   way, reading whatever color the line above resolved to. */
.tf-locked__actions .btn--ghost-light {
  color: var(--tf-fg, inherit);
  box-shadow: inset 0 0 0 2px color-mix(in srgb, currentColor 50%, transparent);
}

.btn--sm {
  font-size: 0.8rem;
  padding: 0.72em 1.1em 0.6em;
}

/* Tailwind v3 cannot push an alpha into a var()-based colour, so `bg-accent/10`
   silently renders transparent. These stay brand-aware via color-mix. */
.bg-accent-10  { background-color: color-mix(in srgb, var(--accent) 10%, transparent); }
.bg-accent-25  { background-color: color-mix(in srgb, var(--accent) 25%, transparent); }
.bg-accent-30  { background-color: color-mix(in srgb, var(--accent) 30%, transparent); }
.border-accent-60 { border-color: color-mix(in srgb, var(--accent) 60%, transparent); }

/* ---------- layout shell ---------- */
.main-col {
  margin-left: var(--sb-w);
  min-width: 0;
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sb-w);
  z-index: 60;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #262a32 #16181d;
}

/* ---------- collapsible sidebar (desktop) ---------- */
@media (min-width: 1100px) {
  .sidebar {
    transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }

  body.sb-collapsed {
    --sb-w: 0px;
  }

  body.sb-collapsed .sidebar {
    width: 332px;
    transform: translateX(-100%);
  }

  body.sb-collapsed .main-col,
  body.sb-collapsed .art-progress,
  body.sb-collapsed .dock,
  body.sb-collapsed .dock-badge,
  body.sb-collapsed .toast {
    transition: margin-left 0.32s cubic-bezier(0.22, 1, 0.36, 1), left 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  }
}

/* the tab that hides / brings back the menu */
.sb-toggle {
  position: fixed;
  top: 50%;
  left: var(--sb-w);
  z-index: 61;
  display: none;
  align-items: center;
  gap: 6px;
  transform: translateY(-50%);
  background: #1e2127;
  border: 1px solid #32363e;
  border-left: 0;
  border-radius: 0 6px 6px 0;
  color: #a9afb8;
  padding: 14px 6px;
  cursor: pointer;
  writing-mode: vertical-rl;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  transition: left 0.32s cubic-bezier(0.22, 1, 0.36, 1), color 0.15s ease, background 0.15s ease;
}

@media (min-width: 1100px) {
  .sb-toggle {
    display: flex;
  }
}

.sb-toggle:hover {
  background: #262a32;
  color: #fff;
}

/* ---------- light / dark switch (sidebar menu) ---------- */
.tswitch {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3px;
  padding: 3px;
  background: #1e2127;
  border: 1px solid #32363e;
  border-radius: 4px;
}

.tswitch__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 32px;
  border: 0;
  border-radius: 3px;
  background: transparent;
  color: #8a919c;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}

.tswitch__btn svg {
  width: 13px;
  height: 13px;
  flex: none;
}

.tswitch__btn:hover {
  background: #262a32;
  color: #fff;
}

html[data-theme-choice="light"] .tswitch__btn[data-theme-set="light"],
html[data-theme-choice="dark"] .tswitch__btn[data-theme-set="dark"],
html[data-theme-choice="auto"] .tswitch__btn[data-theme-set="auto"] {
  background: var(--accent);
  color: var(--accent-contrast);
}

body.sb-collapsed .sb-toggle {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.sb-toggle svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  transform: rotate(90deg);
  transition: transform 0.32s ease;
}

body.sb-collapsed .sb-toggle svg {
  transform: rotate(-90deg);
}

@media (max-width: 1099.98px) {
  .main-col {
    margin-left: 0;
  }

  .sidebar {
    transform: translateX(-100%);
    transition: transform 0.28s ease;
    width: min(var(--sb-w), 88vw);
    z-index: 80;
  }

  body.nav-open .sidebar {
    transform: translateX(0);
  }
}

.scrim {
  position: fixed;
  inset: 0;
  background: rgba(10, 11, 14, 0.6);
  z-index: 75;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

body.nav-open .scrim {
  opacity: 1;
  pointer-events: auto;
}

/* ---------- trending ticker ---------- */
.ticker-track {
  overflow: hidden;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  /* the requested fade: items dissolve before the flag and at the right edge */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 56px, #000 calc(100% - 56px), transparent 100%);
}

/* two identical groups, each exactly half the strip => -50% loops seamlessly */
.ticker-items {
  display: flex;
  width: max-content;
  white-space: nowrap;
  animation: ticker-scroll 38s linear infinite;
}

.ticker-group {
  display: flex;
  flex: none;
  gap: 52px;
  padding-right: 52px;
}

.ticker-track:hover .ticker-items {
  animation-play-state: paused;
}

.ticker-items span::before {
  content: "▪";
  color: var(--accent);
  margin-right: 10px;
  font-size: 0.7em;
}

@keyframes ticker-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-flag {
  position: relative;
  z-index: 2;
}

.ticker-flag::after {
  content: "";
  position: absolute;
  right: -9px;
  top: 0;
  bottom: 0;
  width: 9px;
  background: var(--accent);
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

/* ---------- ken burns hero background ---------- */
.kb {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.kb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 3.5s ease;
  will-change: transform, opacity;
}

/* scale never drops below 1.08 so edges can never show; very slow drift */
.kb img.kb-on {
  opacity: 0.08;
  animation: kenburns 44s ease-in-out both;
}

.kb img:nth-child(odd).kb-on {
  animation-name: kenburns-alt;
}

@keyframes kenburns {
  from { transform: scale(1.08) translate(0, 0); }
  to   { transform: scale(1.2) translate(-1.6%, 1.2%); }
}

@keyframes kenburns-alt {
  from { transform: scale(1.2) translate(1.6%, -1.2%); }
  to   { transform: scale(1.08) translate(0, 0); }
}

/* ---------- ad slots (reusable, labelled, Google sizes) ---------- */
.ad-unit {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  min-width: 0;
}

.ad-label {
  font-size: 0.6rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #9aa0a9;
}

.ad-slot {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px dashed var(--ln-ad);
  border-radius: 3px;
  background:
    repeating-linear-gradient(135deg, rgb(var(--ln-ink) / 0.03) 0 12px, transparent 12px 24px),
    rgb(var(--sf-ad));
  color: var(--tx-ad);
  text-align: center;
  overflow: hidden;
}

.ad-slot .sz {
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.14em;
  color: #b5b2aa;
}

.ad-slot .hint {
  font-size: 0.68rem;
  letter-spacing: 0.05em;
}

.ad-unit--dark .ad-slot {
  border-color: #32363e;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.03) 0 12px, transparent 12px 24px),
    #1e2127;
  color: #5d646e;
}

.ad-unit--dark .ad-slot .sz {
  color: #5d646e;
}

.ad-unit--dark .ad-label {
  color: #5d646e;
}

/* ---------- advert position preview mode (Adverts → Positions, admin only) ---------- */
.ad-unit[data-tn-preview-label] {
  position: relative;
  outline: 2px dashed var(--accent);
  outline-offset: 3px;
}

.ad-unit[data-tn-preview-label]::before {
  content: attr(data-tn-preview-label);
  position: absolute;
  top: 2px;
  left: 2px;
  z-index: 5;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: Barlow, sans-serif;
  font-size: 0.64rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 1px 7px;
  border-radius: 2px;
  white-space: nowrap;
}

.tn-ad-preview-banner {
  position: fixed;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 200;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgb(var(--sf-panel));
  color: rgb(var(--tx-ink));
  border: 1px solid var(--accent);
  border-radius: 6px;
  padding: 8px 10px 8px 14px;
  font-family: Barlow, sans-serif;
  font-size: 0.82rem;
  box-shadow: 0 6px 20px rgb(var(--tx-ink) / 0.18);
}

.tn-ad-preview-banner form {
  display: inline;
}

.tn-ad-preview-banner button {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-contrast);
  border: none;
  border-radius: 4px;
  padding: 5px 10px;
  cursor: pointer;
}

.ad--728x90  { max-width: 728px; height: 90px; }
.ad--970x250 { max-width: 970px; height: 250px; }
.ad--300x250 { max-width: 300px; height: 250px; }
.ad--300x600 { max-width: 300px; height: 600px; }

@media (max-width: 700px) {
  .ad--728x90  { max-width: 320px; height: 100px; }
  .ad--970x250 { max-width: 336px; height: 280px; }
}

/* a booked advert (V9CLAE): no placeholder border or fill, and the slot takes the artwork's own
   height, so a slot narrower than the artwork never leaves an empty band around it */
.ad-unit .ad-slot[data-tn-ad] {
  display: block;
  height: auto;
  border: 0;
  border-radius: 0;
  background: none;
}

.ad-unit .ad-slot[data-tn-ad] picture {
  display: block;
}

.ad-unit .ad-slot[data-tn-ad] img {
  height: auto !important;
}

/* filled house creative */
.ad-house {
  position: relative;
  display: flex;
  border: 0;
  border-radius: 3px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  text-align: left;
}

.ad-house::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(200deg, rgba(22, 24, 29, 0.1) 0%, rgba(22, 24, 29, 0.9) 80%);
}

/* ---------- in-content ad: squeezed into a feature's text column gap ---------- */
.ad-inline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  margin: 6px 0;
}

.ad-inline .ad-label {
  align-self: center;
}

.ad-inline__slot {
  flex: 1 1 auto;
  width: 100%;
  min-height: 250px;
}

/* ---------- "You might be interested" cards: Ken Burns background, darkened ---------- */
.kb-card {
  position: relative;
  isolation: isolate;
  min-height: 320px;
}

.kb-card__bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  animation: kbCard 20s ease-in-out infinite alternate;
  will-change: transform;
}

.kb-card__bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(22, 24, 29, 0.35) 0%, rgba(22, 24, 29, 0.72) 52%, rgba(22, 24, 29, 0.96) 100%),
    linear-gradient(0deg, rgba(244, 151, 49, 0.14) 0%, rgba(244, 151, 49, 0) 42%);
}

.kb-card:hover .kb-card__bg {
  animation-play-state: paused;
  transform: scale(1.13);
  transition: transform 1.6s ease;
}

.kb-card:nth-child(2) .kb-card__bg { animation-duration: 24s; animation-delay: -6s; }
.kb-card:nth-child(3) .kb-card__bg { animation-duration: 22s; animation-delay: -12s; }
.kb-card:nth-child(4) .kb-card__bg { animation-duration: 26s; animation-delay: -3s; }

@keyframes kbCard {
  from { transform: scale(1.08) translate3d(0, 0, 0); }
  to   { transform: scale(1.2) translate3d(-2.5%, -2%, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .kb-card__bg { animation: none; transform: scale(1.08); }
}

/* ---------- section headers: solid badge + rule (reference style) ---------- */
.badge-head {
  display: flex;
  align-items: flex-end;
  gap: 16px;
  border-bottom: 2px solid var(--accent);
}

.badge-head__label {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  background: var(--accent);
  color: var(--accent-contrast);
  padding: 8px 16px 6px;
  border-radius: 3px 3px 0 0;
  line-height: 1;
}

.badge-head__all {
  margin-left: auto;
  padding-bottom: 8px;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-deep);
  white-space: nowrap;
  transition: color 0.15s ease;
}

.badge-head__all:hover {
  color: rgb(var(--tx-ink));
}

/* narrow screens: a long "view all" label would otherwise push past the edge */
@media (max-width: 640px) {
  .badge-head {
    flex-wrap: wrap;
  }

  .badge-head__all {
    margin-left: 0;
    padding-bottom: 6px;
    white-space: normal;
  }
}

.badge-head--dark .badge-head__all:hover {
  color: #fff;
}

/* generic fade helper for JS-swapped content */
.hero-fade {
  transition: opacity 0.5s ease;
}

.hero-fade.is-out {
  opacity: 0;
}

.cover-fade {
  transition: opacity 0.7s ease;
}

.cover-fade.is-out {
  opacity: 0;
}

/* hero mini rows (rendered by JS) */
.hs-row {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: center;
  padding: 10px 16px;
  flex: 1;
}

.hs-row img {
  width: 92px;
  height: 64px;
  object-fit: cover;
  border-radius: 2px;
}

.hs-row .t {
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.12;
  color: #e8eaee;
  transition: color 0.15s ease;
}

.hs-row:hover .t {
  color: var(--accent);
}

.hs-row .k {
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
}

.hs-row .d {
  font-size: 0.66rem;
  color: rgb(var(--tx-sdark));
}

/* hero slider dots */
#hl-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: background 0.2s ease, transform 0.2s ease;
}

#hl-dots button.on {
  background: var(--accent);
  transform: scale(1.25);
}

/* ---------- editorial touches ---------- */
.rule-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.rule-head::after {
  content: "";
  flex: 1;
  height: 1px;
  background: rgba(22, 24, 29, 0.16);
}

.rule-head--light::after {
  background: rgba(255, 255, 255, 0.14);
}

.dropcap::first-letter {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 3.1em;
  float: left;
  line-height: 0.82;
  padding: 0.06em 0.12em 0 0;
  color: var(--accent-deep);
}

/* interviews: duotone portraits */
.duo img {
  filter: grayscale(1) contrast(1.06);
  transition: filter 0.45s ease, transform 0.6s ease;
}

.duo:hover img {
  filter: grayscale(0) contrast(1);
  transform: scale(1.04);
}

/* back-issue covers: a 3D tilt on hover (perspective, rotation, a small lift toward the
   reader). No box-shadow for the depth cue: the client's standing rule is no shadows
   anywhere (29 Sep 2026), so this leans on the tilt and lift alone. Scoped to devices that
   can actually hover with a precise pointer, and to no preference for reduced motion: on
   touch, :hover either never fires or sticks after a tap with nothing to clear it, and a
   moving, rotating cover is exactly the kind of motion prefers-reduced-motion asks us to
   drop. Neither gets a replacement effect; they just keep the flat, static cover. */
.bi-card {
  perspective: 900px;
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .bi-card .bi-cover {
    transition: transform 0.35s ease;
  }

  .bi-card:hover .bi-cover {
    transform: rotateX(6deg) rotateY(-8deg) translateY(-10px) scale(1.02);
  }
}

/* Magazine page: a reader who can buy an issue digitally gets a second button on that card.
   Every card in the same year keeps room for it, so the copy, "In this issue" and the first
   button stay level across the row (Andy, Bugpot EVRB2E). One column has no row to match. */
@media (min-width: 640px) {
  .grid:has(.bi-foot .tf-pwl-buy, .bi-foot .tf-pwl-incart) .bi-foot {
    min-height: 98px;
    align-content: flex-start;
  }
}

/* The digital issue button stays inside its card: on a narrow card it wraps onto a second
   line instead of running across the next card (Andy, Bugpot 5ATU3F). */
.bi-foot .tf-pwl-buy {
  min-width: 0;
  max-width: 100%;
}

.bi-foot .tf-pwl-buy .btn {
  max-width: 100%;
  white-space: normal;
  text-align: left;
}

/* hero news slider */
.hero-slide {
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.hero-slide.is-out {
  opacity: 0;
  transform: translateY(10px);
}

/* sidebar niceties */
.sb-link {
  border-left: 2px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.sb-link:hover,
.sb-link[aria-current="page"] {
  border-left-color: var(--accent);
  background: #1e2127;
  color: #fff;
  padding-left: 14px;
}

/* masthead dot: yellow half pokes out of the NEWS badge, white half sits on it.
   Absolutely positioned on the badge, bottom-aligned with the wording. */
.logo-dot {
  position: absolute;
  left: 0;
  bottom: 0.09em;
  width: 0.3em;
  height: 0.3em;
  border-radius: 9999px;
  transform: translateX(-60%);
  background: linear-gradient(90deg, var(--accent) 0 50%, #16181d 50% 100%);
}

/* burger */
.burger span {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: #fff;
}

.burger span + span {
  margin-top: 5px;
}

/* issue-tab logos */
.issue-tab {
  opacity: 0.38;
  border-bottom: 3px solid transparent;
  transition: opacity 0.2s ease, border-color 0.2s ease;
}

.issue-tab:hover {
  opacity: 0.75;
}

.issue-tab.is-active {
  opacity: 1;
  border-bottom-color: var(--accent);
}

/* modal image side */
#nl-modal {
  transition: opacity 0.3s ease;
}

/* ---------- bottom dock navigation (centred on the content column) ---------- */
.dock {
  position: fixed;
  left: calc(50% + var(--sb-w) / 2);
  bottom: 16px;
  transform: translateX(-50%);
  z-index: 85;
  display: flex;
  gap: 8px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

.dock--hidden {
  transform: translateX(-50%) translateY(100px);
  opacity: 0;
  pointer-events: none;
}

.dock--pop {
  animation: dock-pop 0.65s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes dock-pop {
  0%   { transform: translateX(-50%) translateY(100px); opacity: 0; }
  55%  { transform: translateX(-50%) translateY(-12px); opacity: 1; }
  75%  { transform: translateX(-50%) translateY(5px); }
  100% { transform: translateX(-50%) translateY(0); }
}

/* each icon lives in its own circle, mac-style */
.dock a {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(30, 33, 39, 0.96);
  border: 1px solid #32363e;
  color: #a9afb8;
  backdrop-filter: blur(8px);
  transition: color 0.15s ease, background 0.15s ease, transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.dock a:hover {
  color: #fff;
  background: #32363e;
  transform: translateY(-9px) scale(1.24);
}

/* section title appears above the hovered circle */
.dock a::after {
  content: attr(data-label);
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  white-space: nowrap;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: #16181d;
  color: #fff;
  border: 1px solid #32363e;
  border-radius: 4px;
  padding: 3px 9px 2px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.dock a:hover::after {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.dock a svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
  transition: fill 0.15s ease;
}

.dock a:hover svg {
  fill: var(--accent);
}

@media (max-width: 1099.98px) {
  .dock,
  .dock-badge { left: 50%; }

  /* on mobile the trending ticker and quick-nav dock move into the sidebar */
  [aria-label="Trending stories"],
  #dock,
  #dock-badge { display: none !important; }
}

/* injected sidebar extras (mobile only) */
.sb-extra svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex-shrink: 0;
}

.sb-trend a {
  position: relative;
  display: block;
  padding-left: 14px;
  color: #c6cad1;
  transition: color 0.15s ease;
}

.sb-trend a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.sb-trend a:hover {
  color: #fff;
}

@media (max-width: 700px) {
  .dock { gap: 4px; padding: 7px 9px; }
  .dock a { width: 40px; height: 40px; }
  .dock a svg { width: 19px; height: 19px; }
}

/* badge that brings the dock back */
.dock-badge {
  position: fixed;
  left: calc(50% + var(--sb-w) / 2);
  bottom: 0;
  transform: translateX(-50%);
  z-index: 85;
  border: 0;
  background: var(--accent);
  color: var(--accent-contrast);
  border-radius: 8px 8px 0 0;
  padding: 5px 20px 3px;
  cursor: pointer;
  transition: padding 0.15s ease;
}

.dock-badge:hover {
  padding-bottom: 8px;
}

.dock-badge svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ---------- shared panel entrance (basket modal) ---------- */
.ip-panel {
  animation: gate-in 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}

/* agree button counts down before it unlocks */
.btn:disabled {
  background: #e6e4de;
  color: #98958d;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

@keyframes gate-in {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   FEATURE ARTICLE PAGE
   ========================================================================== */

/* reading progress bar */
.art-progress {
  position: fixed;
  top: 0;
  left: var(--sb-w);
  right: 0;
  height: 4px;
  z-index: 90;
  background: rgba(22, 24, 29, 0.12);
}

.art-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.1s linear;
}

@media (max-width: 1099.98px) {
  .art-progress { left: 0; }
}

/* cinematic hero: single very slow zoom */
.art-hero-img {
  animation: art-zoom 30s ease-out both;
}

@keyframes art-zoom {
  from { transform: scale(1.12); }
  to   { transform: scale(1); }
}

.art-scroll-cue {
  animation: cue-bob 2s ease-in-out infinite;
}

@keyframes cue-bob {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(8px); }
}

/* article typography */
.art-body p {
  font-size: 1.02rem;
  line-height: 1.62;
  color: rgb(var(--tx-copy));
  margin-bottom: 1.15em;
}

/* subheadings typed into a story's copy (Heading 2 / 3 in the editor) */
.art-body > h2:not([class]),
.art-body > h3:not([class]),
.art-body > h4:not([class]) {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.15;
  color: rgb(var(--tx-ink));
}
.art-body > h2:not([class]) { font-size: 1.55rem; letter-spacing: 0.01em; margin: 1.6em 0 0.55em; }
.art-body > h3:not([class]),
.art-body > h4:not([class]) { font-size: 1.15rem; letter-spacing: 0.03em; margin: 1.4em 0 0.5em; }
.art-body > h2:not([class]):first-child,
.art-body > h3:not([class]):first-child { margin-top: 0; }

/* news reports open on a plain lead paragraph — the dropcap is for features */
.art-body p.art-lede--plain {
  font-size: 1.14rem;
  line-height: 1.6;
  color: rgb(var(--tx-ink));
}

.art-body p.art-lede--plain::first-letter {
  font-family: inherit;
  font-weight: inherit;
  font-size: inherit;
  float: none;
  line-height: inherit;
  padding: 0;
  color: inherit;
}

.art-body .art-lede::first-letter {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 4.4em;
  float: left;
  line-height: 0.78;
  padding: 0.04em 0.12em 0 0;
  color: var(--accent-deep);
}

/* text in two newspaper columns for the closing section */
.art-cols {
  column-gap: 48px;
}

@media (min-width: 1100px) {
  .art-cols { columns: 2; }
}

/* photos under a news story or feature: a grid of whole photos, two to a row, square corners
   like the story's own photo; an odd first photo runs the full width above the pairs */
.art-gallery {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 2.6em 0 0;
}

.art-gallery__photo {
  margin: 0;
}

.art-gallery {
  align-items: start;
}

/* the whole photo, never cropped (U29BSW): each keeps its own shape */
.art-gallery__photo img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0;
}

@media (min-width: 640px) {
  .art-gallery { grid-template-columns: 1fr 1fr; }
  .art-gallery__photo--lead { grid-column: 1 / -1; }
}

.art-pull {
  position: relative;
  margin: 2.6em 0;
  padding-left: 26px;
  border-left: 4px solid var(--accent);
}

.art-pull blockquote {
  font-family: Lora, serif;
  font-style: italic;
  font-size: 1.45rem;
  line-height: 1.45;
  color: rgb(var(--tx-ink));
}

.art-pull cite {
  display: block;
  font-family: Rajdhani, sans-serif;
  font-style: normal;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a919c;
  margin-top: 12px;
}

.art-fig {
  margin: 0;
}

.art-fig img {
  border-radius: 0;
  width: 100%;
}

/* text + image side by side */
.art-row {
  display: grid;
  gap: 40px;
  align-items: center;
  margin: 2.6em 0;
}

@media (min-width: 1100px) {
  .art-row { grid-template-columns: 1fr 1fr; }
}

.art-row p:last-child {
  margin-bottom: 0;
}

.art-fig figcaption {
  display: flex;
  gap: 10px;
  font-size: 0.78rem;
  color: #8a919c;
  margin-top: 10px;
}

.art-fig figcaption::before {
  content: "";
  flex: none;
  width: 22px;
  height: 3px;
  margin-top: 7px;
  background: var(--accent);
}

/* the content gate */
.art-gated {
  display: none;
}

.art-open .art-gated {
  display: block;
}

.art-fade {
  position: relative;
}

.art-fade::after {
  content: "";
  position: absolute;
  inset: 55% 0 0;
  background: linear-gradient(180deg, rgb(var(--sf-page) / 0) 0%, rgb(var(--sf-page)) 82%);
  pointer-events: none;
}

.art-open .art-fade::after {
  display: none;
}

.art-gate-card {
  animation: gate-in 0.5s ease both;
}

/* ==========================================================================
   ISSUE FEATURES PAGE (live-site editorial pattern)
   ========================================================================== */
.i43-title {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 2.1rem;
  line-height: 1;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--accent-deep);
}

.i43-stand {
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.55;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgb(var(--tx-ink));
  margin: 14px 0 6px;
}

.i43-text {
  display: flow-root;
  margin-top: 14px;
}

.i43-text p {
  font-size: 1rem;
  line-height: 1.62;
  color: rgb(var(--tx-copy));
  margin-bottom: 1.1em;
}

/* text wraps around floated images */
.i43-float {
  float: right;
  width: 46%;
  margin: 6px 0 16px 30px;
}

.i43-float--l {
  float: left;
  margin: 6px 30px 16px 0;
}

.i43-float img {
  width: 100%;
}

.i43-thumbs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 18px 0 6px;
}

.i43-thumbs img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
}

@media (max-width: 700px) {
  .i43-float,
  .i43-float--l {
    float: none;
    width: 100%;
    margin: 14px 0;
  }

  .i43-thumbs { grid-template-columns: 1fr 1fr; }
  .i43-title { font-size: 1.6rem; }
}

/* hero checklist: plain text, no bullets */
.i43-check {
  display: flex;
  align-items: baseline;
}

/* ---------- v3: hero ken burns + ghost numeral ---------- */
.i43-hero-kb {
  animation: i43-kb 26s ease-in-out infinite alternate;
  will-change: transform;
}
/* WooCommerce's .woocommerce img { height: auto } outranks h-full on issue pages. */
.woocommerce img.i43-hero-kb { height: 100%; }

@keyframes i43-kb {
  from { transform: scale(1.06) translate(0, 0); }
  to   { transform: scale(1.18) translate(-2%, 1.5%); }
}

.i43-ghost {
  position: absolute;
  right: -10px;
  bottom: -40px;
  z-index: 1;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 17rem;
  line-height: 1;
  color: transparent;
  -webkit-text-stroke: 2px rgba(244, 151, 49, 0.3);
  pointer-events: none;
  user-select: none;
  animation: ghost-float 14s ease-in-out infinite;
}
/* Issue pages: the hero runs taller than a laptop window, so at its foot the number sat
   below the fold and behind the buttons. Beside the title it shows on the first screen. */
.single-product .i43-ghost { top: 110px; bottom: auto; }

/* uneven keyframes so the drift never feels like a loop */
@keyframes ghost-float {
  0%   { transform: translate(0, 0) rotate(0deg); }
  16%  { transform: translate(-16px, -28px) rotate(-1.7deg); }
  34%  { transform: translate(12px, -10px) rotate(0.9deg); }
  52%  { transform: translate(-7px, -38px) rotate(-0.6deg); }
  71%  { transform: translate(16px, -16px) rotate(1.5deg); }
  87%  { transform: translate(-11px, -5px) rotate(-1.1deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

/* white-background page variant */
body.page-white {
  background-color: rgb(var(--sf-panel));
  background-image: none;
}

/* ---------- demo basket ---------- */
.qty-btn {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 3px;
  border: 1px solid rgba(22, 24, 29, 0.2);
  background: rgb(var(--sf-panel));
  color: rgb(var(--tx-sdark));
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.qty-btn:hover {
  border-color: var(--accent);
  color: rgb(var(--tx-ink));
}

.pay-chip {
  display: inline-block;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.6rem;
  letter-spacing: 0.1em;
  border: 1px solid rgba(22, 24, 29, 0.18);
  border-radius: 3px;
  padding: 3px 7px 2px;
  color: rgb(var(--tx-sdark));
}

.cart-pop {
  animation: cart-pop 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes cart-pop {
  0%   { transform: scale(0.4); }
  70%  { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* ---------- v2: hero entrance + canvas ---------- */
.hr-a {
  opacity: 0;
  animation: hero-up 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hero-up {
  from { opacity: 0; transform: translateY(34px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hr-line {
  position: relative;
  display: inline-block;
}

.hr-line::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -10px;
  height: 4px;
  width: 0;
  background: var(--accent);
  animation: hr-draw 0.9s ease 1s both;
}

@keyframes hr-draw {
  to { width: 72px; }
}

/* ---------- v2: scroll reveals ---------- */
.rv {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}

.rv.on {
  opacity: 1;
  transform: none;
}

/* ---------- v4: one 24px rhythm everywhere, no movement ---------- */
.i43-collage {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.i43-main {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.i43-main img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: 3px;
}

/* accent tab in the corner keeps the brand mark without breaking alignment */
.i43-main::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 52px;
  height: 6px;
  background: var(--accent);
}

.i43-smalls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

/* when the image column holds only the main photo, let it fill the taller text column */
.i43-collage.is-fill {
  justify-content: stretch;
}

.i43-collage.is-fill .i43-main {
  flex: 1 1 auto;
  display: flex;
  min-height: 0;
}

.i43-collage.is-fill .i43-main img {
  height: 100%;
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

.i43-smalls--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* text column spreads evenly between the image top and bottom edges */
.i43-copy {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 28px;
  padding: 0;
}

/* clickable hero checklist items */
.i43-check.is-linked {
  cursor: pointer;
}

.i43-check.is-linked b {
  transition: color 0.15s ease;
}

.i43-check.is-linked:hover b {
  color: var(--accent);
}

.i43-copy .i43-text { margin-top: 0; }
.i43-copy .i43-text p:last-child { margin-bottom: 0; }
.i43-copy .i43-stand { margin-bottom: 0; }

.i43-smalls img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
  filter: grayscale(0.7);
  transition: filter 0.35s ease;
}

.i43-smalls img:hover {
  filter: grayscale(0);
}

/* strip of extra frames under a section — same column rhythm as the smalls */
.i43-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 24px;
}

.i43-strip img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 3px;
  filter: grayscale(0.7);
  transition: filter 0.35s ease;
}

.i43-strip img:hover {
  filter: grayscale(0);
}

/* ---------- v2: buy band ---------- */
.i43-buy {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  background:
    repeating-linear-gradient(135deg, rgba(244, 151, 49, 0.05) 0 14px, transparent 14px 28px),
    linear-gradient(120deg, #111318 0%, #1e2127 60%, #111318 100%);
  border-top: 3px solid var(--accent);
}

/* cover fully visible at natural ratio AND flush to the band's top/bottom edges:
   the band height comes from the text, the cover's width follows its ratio */
.i43-buy__cover {
  position: relative;
  align-self: stretch;
}

.i43-buy__cover img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* the column width is set to the exact cover ratio by JS */
}

@media (max-width: 767.98px) {
  .i43-buy__cover {
    aspect-ratio: 1600 / 1131;
    width: 100% !important;
  }
}

.i43-price {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 1.2rem;
}

.i43-perk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c6cad1;
}

.i43-perk::before {
  content: "";
  width: 7px;
  height: 7px;
  background: var(--accent);
  transform: rotate(45deg);
}

@media (max-width: 700px) {
  .i43-strip { grid-template-columns: 1fr 1fr; }
  .i43-smalls--3 { grid-template-columns: 1fr 1fr; }
  .i43-ghost { display: none; }
}

/* ---------- motion safety ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .ticker-items { animation: none; }
  .kb img.kb-on { animation: none; }
}

/* ==========================================================================
   NEWS ARTICLE + NEWS LISTING PAGES
   ========================================================================== */

/* breadcrumb trail */
.crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a919c;
  list-style: none;
  padding: 0;
  margin: 0;
}

.crumb a {
  color: #8a919c;
  transition: color 0.15s ease;
}

.crumb a:hover {
  color: var(--accent-deep);
}

.crumb li + li::before {
  content: "/";
  margin-right: 10px;
  color: #cfccc4;
}

/* category filter chips (light surface twin of .f41-chip) */
.cat-chip {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 8px 14px 7px;
  border-radius: 3px;
  background: rgb(var(--sf-panel));
  border: 1px solid rgba(22, 24, 29, 0.15);
  color: rgb(var(--tx-sdark));
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.cat-chip:hover {
  border-color: var(--accent);
  color: rgb(var(--tx-ink));
}

.cat-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

/* numbered pagination */
.pg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.pg-btn {
  display: grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 2px 10px 0;
  border-radius: 3px;
  background: rgb(var(--sf-panel));
  border: 1px solid rgba(22, 24, 29, 0.15);
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  color: rgb(var(--tx-sdark));
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.pg-btn:hover:not(:disabled):not(.is-current) {
  border-color: var(--accent);
  color: rgb(var(--tx-ink));
}

.pg-btn.is-current {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
  cursor: default;
}

.pg-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pg-btn svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* comment avatars: honest initials, no fake faces */
.cmt-ava {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 3px;
  background: #e9e6df;
  color: rgb(var(--tx-sdark));
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
}

.cmt-ava--staff {
  background: var(--accent);
  color: var(--accent-contrast);
}

/* comment like button */
.like-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid rgba(22, 24, 29, 0.15);
  border-radius: 999px;
  background: rgb(var(--sf-panel));
  padding: 4px 11px 3px;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  color: rgb(var(--tx-sdark));
  cursor: pointer;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
}

.like-btn:hover {
  border-color: var(--accent);
  color: rgb(var(--tx-ink));
}

.like-btn.is-liked {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

.like-btn svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
}

/* ==========================================================================
   SHOP PAGE — mega menu, archive bands, cover compositions
   ========================================================================== */

/* full-dark page variant */
body.page-dark {
  background-color: #16181d;
  background-image: none;
}

/* ---------- mega menu bar (sticky, top of the main column) ---------- */
.mm-bar {
  --mmh: 58px;
  position: sticky;
  top: 0;
  z-index: 70;
  background: rgba(22, 24, 29, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #32363e;
}

.mm-bar__in {
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 2px;
  height: var(--mmh);
}

@media (min-width: 640px) {
  .mm-bar__in { padding: 0 36px; }
}

.mm-item {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a9afb8;
  padding: 2px 13px 0;
  background: none;
  border: 0;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.mm-item svg {
  width: 12px;
  height: 12px;
  fill: currentColor;
  transition: transform 0.2s ease;
}

.mm-item:hover,
.mm-item.is-open {
  color: #fff;
}

.mm-item.is-open svg {
  transform: rotate(180deg);
}

.mm-item::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 0;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.mm-item.is-open::after,
.mm-item[aria-current="page"]::after {
  transform: scaleX(1);
}

/* ---------- mega panels ---------- */
.mm-wrap {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
}

.mm-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  max-width: 1344px;
  margin: 0 auto;
  padding: 10px 20px 0;
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

@media (min-width: 640px) {
  .mm-panel { padding: 10px 36px 0; }
}

.mm-panel.is-open {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

.mm-card {
  display: flex;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid #32363e;
  background: #1e2127;
}

/* small screens: the card scrolls inside the viewport */
@media (max-width: 1099.98px) {
  .mm-card { max-height: 72vh; overflow-y: auto; }
}

.mm-card--pad { display: block; padding: 22px 24px 22px; }

/* ---------- every issue: title tabs + one title's year rows ---------- */
.mm-card--split { align-items: stretch; }

.mm-tabs {
  flex: none;
  width: 230px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 14px 10px;
  background: #16181d;
  border-right: 1px solid #32363e;
}

.mm-tab {
  text-align: left;
  border-radius: 4px;
  padding: 10px 12px 9px;
  border-left: 3px solid transparent;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.mm-tab:hover { background: #22262d; }
.mm-tab.is-on { background: #262a32; border-left-color: var(--accent); }

.mm-tab__name {
  display: block;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
}

.mm-tab__meta { display: block; font-size: 0.74rem; color: #8b919c; margin-top: 1px; }
.mm-tab.is-on .mm-tab__meta { color: #c6cad1; }

.mm-tabpane { display: none; flex: 1; min-width: 0; gap: 24px; padding: 18px 24px 0; }
.mm-tabpane.is-on { display: flex; }

.mm-years { flex: 1 1 400px; min-width: 0; display: flex; flex-direction: column; }

.mm-year {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 7px 0;
  border-bottom: 1px solid #2a2e35;
}

.mm-year__y {
  flex: none;
  width: 48px;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 1rem;
  letter-spacing: 0.06em;
  color: #fff;
}

.mm-year__y:hover { color: var(--accent); }

.mm-year__chips { display: flex; flex-wrap: wrap; gap: 6px; }

.mm-chip {
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b919c;
  border: 1px solid #32363e;
  border-radius: 3px;
  padding: 3px 9px 2px;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.mm-chip b { color: #fff; font-weight: 700; }
.mm-chip:hover, .mm-chip:focus-visible { border-color: var(--accent); background: #262a32; color: #c6cad1; }
.mm-chip.is-sold { border-style: dashed; }

.mm-foot {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding: 12px 0 14px;
  font-size: 0.78rem;
  color: #8b919c;
}

.mm-foot a {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}

.mm-foot a:hover { color: #fff; }
.mm-foot--bar { margin: 18px -24px -22px; padding: 12px 24px; border-top: 1px solid #32363e; background: #1a1d23; }

/* The covers are landscape (1600 x 1131), so the preview takes their shape and
   whatever room the year rows leave, between 150px and 240px, never cropped. */
.mm-peek { flex: 100 1 0; min-width: 150px; max-width: 240px; padding-bottom: 16px; display: none; }
@media (min-width: 900px) { .mm-peek { display: block; } }

.mm-peek__img {
  display: block;
  aspect-ratio: 1600 / 1131;
  overflow: hidden;
  border-radius: 3px;
  background: #16181d;
}

.mm-peek__img img { width: 100%; height: 100%; object-fit: contain; }
.mm-peek__head { display: block; margin-top: 9px; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 0.88rem; text-transform: uppercase; color: #fff; line-height: 1.15; }
.mm-peek__sub { display: block; font-size: 0.72rem; color: #8b919c; margin-top: 2px; }

@media (max-width: 719.98px) {
  .mm-card--split { flex-direction: column; }
  .mm-tabs { width: auto; flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid #32363e; padding: 8px; }
  .mm-tab { flex: 1 0 auto; border-left: 0; border-bottom: 3px solid transparent; padding: 8px 9px 7px; text-align: center; }
  .mm-tab__name { font-size: 0.84rem; }
  .mm-tab.is-on { border-bottom-color: var(--accent); }
  .mm-tab__meta { display: none; }
  .mm-tabpane { padding: 12px 16px 0; }
  .mm-year { align-items: flex-start; }
}

/* ---------- titles + subscribe: one column per title ---------- */
.mm-cols { display: grid; gap: 14px; }
@media (min-width: 720px) { .mm-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.mm-title {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 4px;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.mm-title:hover { background: #22262d; }
.mm-title.is-current { border-color: rgba(244, 151, 49, 0.5); }

/* Real cover proportions: no fixed box, no cropping, no card frame round it. */
.mm-title__cover { flex: none; display: block; width: 78px; }
.mm-title__cover img { display: block; width: 100%; height: auto; transition: transform 0.3s ease; }
.mm-title:hover .mm-title__cover img { transform: scale(1.04); }

.mm-title__logo { display: block; height: 26px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
/* Logos must hold their size on WooCommerce pages, where woocommerce-page img { height: auto } would win.
   The extra element/body specificity keeps every mega-menu and footer mark identical site-wide. */
body img.mm-title__logo { display: block; height: 26px; width: auto; max-width: 100%; }
body img.tn-foot-logo { display: block; height: 16px; width: auto; max-width: none; }
/* Footer logo under a link column (Site settings > Logos): never wider than its column, shrinks without stretching. */
body .tn-foot-collogo img.tn-foot-logo { height: 40px; max-width: 100%; object-fit: contain; object-position: left center; }
/* Column logos shown full strength and 40px tall (were 16px at 60% opacity; Andy, Bugpot 1RWX9Q). */
/* A shorter link list (Your account has four links) keeps five links' room above its logo, so the column logos sit level. */
@media (min-width: 640px) { #site-footer ul:has(+ .tn-foot-collogo) { min-height: calc(7.5em + 2.5rem); } }
.mm-title__meta { font-size: 0.78rem; color: #c6cad1; margin-top: 8px; line-height: 1.35; }

.mm-title__links { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 8px; }
.mm-title__links a { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.mm-title__links a:hover { color: #fff; }

/* Titles panel: the cover leads (bigger, still its own ratio), logo and text step back. */
#mm-titles .mm-title { gap: 18px; align-items: center; }
#mm-titles .mm-title__cover { width: 132px; }
#mm-titles img.mm-title__logo { height: 18px; }
#mm-titles .mm-title__meta { font-size: 0.72rem; margin-top: 7px; }
#mm-titles .mm-title__links { margin-top: 7px; gap: 3px 12px; }
#mm-titles .mm-title__links a { font-size: 0.7rem; }
@media (max-width: 719px) { #mm-titles .mm-title__cover { width: 104px; } }
/* The sponsor line wraps (logo under "Sponsored by") when the column is narrow, e.g. with the side menu shown,
   rather than running under the next title's cover (Shell, Bugpot 4UIZCB). */
#mm-titles .tq-sponsor { flex-wrap: wrap; row-gap: 6px; }

.mm-here { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 0.64rem; letter-spacing: 0.14em; text-transform: uppercase; background: var(--accent); color: var(--accent-contrast); border-radius: 2px; padding: 2px 6px 1px; }

.mm-plans__head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 2px solid var(--accent); }
.mm-plans__head span { font-size: 0.72rem; color: #8b919c; text-align: right; }

.mm-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 8px;
  margin: 0 -8px;
  border-bottom: 1px solid #2a2e35;
  border-radius: 3px;
  transition: background 0.15s ease;
}

.mm-plan:hover { background: #262a32; }
.mm-plan b { display: block; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 0.9rem; letter-spacing: 0.04em; text-transform: uppercase; color: #fff; }
.mm-plan small { display: block; font-size: 0.72rem; color: #8b919c; }
.mm-plan__price { flex: none; font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 1.25rem; color: #fff; }
.mm-plan__price small { display: inline; font-size: 0.72rem; font-weight: 500; }
.mm-plan:hover .mm-plan__price { color: var(--accent); }

/* sold-out issues: a grey badge, and the cover greyed back so it reads instantly */
.is-soldout {
  background: #6f7580;
  color: #fff;
}

.is-soldout-card .bi-cover {
  filter: grayscale(1) contrast(0.92) brightness(0.82);
  transition: filter 0.35s ease;
}

.is-soldout-card:hover .bi-cover {
  filter: grayscale(0.55) contrast(1) brightness(0.95);
}

/* ---------- placeholder cover composition (approved convoy artwork) ---------- */
.cover-ph {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1600 / 1131;
  overflow: hidden;
  border-radius: 3px;
  background: #1e2127;
  container-type: inline-size;
}

.cover-ph > img:first-child {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.cover-ph__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(165deg, rgba(22, 24, 29, 0.05) 0%, rgba(22, 24, 29, 0.55) 55%, rgba(22, 24, 29, 0.92) 100%),
    linear-gradient(0deg, rgba(244, 151, 49, 0.12) 0%, transparent 34%);
}

/* a masthead bar across the top, the way the real covers carry it */
.cover-ph::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1.2cqi;
  background: var(--accent);
}

.cover-ph__logo {
  position: absolute;
  top: 7cqi;
  left: 7cqi;
  width: 42cqi;
  height: auto;
}

.cover-ph__num {
  position: absolute;
  right: 5cqi;
  bottom: 6cqi;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 27cqi;
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 0.5cqi rgba(244, 151, 49, 0.8);
  pointer-events: none;
}

.cover-ph__meta {
  position: absolute;
  left: 7cqi;
  bottom: 7cqi;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 4.1cqi;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #e8eaee;
}

/* ---------- archive year bands: big image, dark overlay, content on top ---------- */
.shop-band {
  position: relative;
  overflow: hidden;
  background: #16181d;
}

.shop-band__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.24;
}

.shop-band__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #16181d 2%, rgba(22, 24, 29, 0.66) 40%, rgba(22, 24, 29, 0.5) 72%, #16181d 100%),
    linear-gradient(180deg, #16181d 0%, rgba(22, 24, 29, 0) 20%, rgba(22, 24, 29, 0) 80%, #16181d 100%);
}

.shop-band--alt .shop-band__scrim {
  background:
    linear-gradient(270deg, #16181d 2%, rgba(22, 24, 29, 0.66) 40%, rgba(22, 24, 29, 0.5) 72%, #16181d 100%),
    linear-gradient(180deg, #16181d 0%, rgba(22, 24, 29, 0) 20%, rgba(22, 24, 29, 0) 80%, #16181d 100%);
}

/* giant outlined year, drifting behind the covers */
.yr-ghost {
  position: absolute;
  top: 4%;
  right: -1%;
  z-index: 1;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: clamp(7rem, 17vw, 15rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(244, 151, 49, 0.22);
  pointer-events: none;
  user-select: none;
}

.shop-band--alt .yr-ghost {
  right: auto;
  left: -1%;
}

/* archive year bands: animate open/closed instead of snapping.
   grid-template-rows 0fr -> 1fr animates to the content's natural height. */
.yr-panel {
  display: grid;
  grid-template-rows: 0fr;
  opacity: 0;
  transition: grid-template-rows 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.4s ease;
}

.yr-panel > * {
  overflow: hidden;
  min-height: 0;
}

.yr-panel.is-open {
  grid-template-rows: 1fr;
  opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
  .yr-panel { transition: none; }
}

/* ---------- sticky year rail under the hero ---------- */
.yr-rail {
  position: sticky;
  top: var(--mmh, 58px);
  z-index: 65;
  background: rgba(30, 33, 39, 0.92);
  backdrop-filter: blur(10px);
  border-block: 1px solid #32363e;
}

@media (max-width: 1099.98px) {
  .yr-rail { position: static; }
}

.yr-rail__in {
  max-width: 1344px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

@media (min-width: 640px) {
  .yr-rail__in { padding: 12px 36px; }
}

/* ==========================================================================
   WOOCOMMERCE: BASKET, CHECKOUT AND MY ACCOUNT
   Class names deliberately echo WooCommerce's own so this maps onto the
   real templates (cart.php, form-checkout.php, myaccount/*.php).
   ========================================================================== */

/* ---------- my-account endpoint nav ---------- */
.acct-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 20px;
  border-left: 3px solid transparent;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--tx-sdark));
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.acct-link svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
  flex: none;
  opacity: 0.75;
}

.acct-link:hover {
  background: rgb(var(--sf-page));
  color: rgb(var(--tx-ink));
}

.acct-link.is-active {
  border-left-color: var(--accent);
  background: rgb(var(--sf-page));
  color: rgb(var(--tx-ink));
}

.acct-link.is-active svg {
  fill: var(--accent-deep);
  opacity: 1;
}

/* ---------- order / subscription status pills ---------- */
.wc-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 4px 11px 3px;
  border: 1px solid transparent;
  white-space: nowrap;
}

.wc-status::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.wc-status--completed,
.wc-status--active   { background: #e7f5ec; color: #1c6b3f; border-color: #b8e0c8; }
.wc-status--processing { background: #e8f0fb; color: #1d4e89; border-color: #bcd3ef; }
.wc-status--on-hold  { background: #fdf3d8; color: #8a6100; border-color: #efdca4; }
.wc-status--pending,
.wc-status--pending-cancel { background: #f2f0ea; color: #5d646e; border-color: #ddd9cf; }
.wc-status--cancelled,
.wc-status--failed   { background: #fbeaea; color: #96231f; border-color: #eec4c2; }
.wc-status--refunded { background: #efeaf6; color: #55367f; border-color: #d5c9e6; }

/* Dark mode: the same statuses as tinted pills on the dark panel. */
[data-theme="dark"] .wc-status--completed,
[data-theme="dark"] .wc-status--active   { background: rgba(60, 180, 110, 0.16); color: #86dca8; border-color: rgba(60, 180, 110, 0.4); }
[data-theme="dark"] .wc-status--processing { background: rgba(80, 140, 220, 0.16); color: #9ec3f3; border-color: rgba(80, 140, 220, 0.4); }
[data-theme="dark"] .wc-status--on-hold  { background: rgba(233, 176, 3, 0.16); color: #f0c94a; border-color: rgba(233, 176, 3, 0.4); }
[data-theme="dark"] .wc-status--pending,
[data-theme="dark"] .wc-status--pending-cancel { background: rgba(255, 255, 255, 0.07); color: #b4bac4; border-color: rgba(255, 255, 255, 0.18); }
[data-theme="dark"] .wc-status--cancelled,
[data-theme="dark"] .wc-status--failed   { background: rgba(224, 49, 49, 0.16); color: #f09a9a; border-color: rgba(224, 49, 49, 0.4); }
[data-theme="dark"] .wc-status--refunded { background: rgba(150, 110, 210, 0.16); color: #cbb6ec; border-color: rgba(150, 110, 210, 0.4); }

/* on dark bands */
.wc-status--ondark {
  background: rgba(255, 255, 255, 0.08);
  border-color: #32363e;
  color: #d5d8dd;
}

/* ---------- commerce tables (cart, order review, order history) ---------- */
.wc-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.wc-table th {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #fff;
  background: #16181d;
  padding: 13px 18px;
  white-space: nowrap;
}

.wc-table td {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(22, 24, 29, 0.1);
  vertical-align: middle;
}

.wc-table tbody tr:last-child td {
  border-bottom: 0;
}

.wc-table tbody tr:hover {
  background: rgb(var(--sf-warm));
}

.wc-table .num {
  text-align: right;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 1.02rem;
  white-space: nowrap;
}

/* totals block: label left, figure right, the grand total heavier */
.wc-totals {
  width: 100%;
  border-collapse: collapse;
}

.wc-totals th {
  text-align: left;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--tx-sdark));
  padding: 11px 0;
  border-bottom: 1px solid rgba(22, 24, 29, 0.08);
}

.wc-totals td {
  text-align: right;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  padding: 11px 0;
  border-bottom: 1px solid rgba(22, 24, 29, 0.08);
  white-space: nowrap;
}

.wc-totals tr:last-child th,
.wc-totals tr:last-child td {
  border-bottom: 0;
  border-top: 2px solid rgb(var(--tx-ink));
  padding-top: 15px;
  font-size: 1.5rem;
  color: rgb(var(--tx-ink));
}

.wc-totals tr:last-child th {
  font-size: 0.86rem;
  padding-top: 19px;
}

/* ---------- payment method radios ---------- */
.wc-pay {
  display: block;
  border: 1px solid rgba(22, 24, 29, 0.15);
  border-radius: 4px;
  padding: 15px 17px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.wc-pay + .wc-pay {
  margin-top: 10px;
}

.wc-pay:hover {
  border-color: var(--accent);
}

.wc-pay:has(input:checked) {
  border-color: var(--accent);
  background: #fdf7f0;
  box-shadow: inset 0 0 0 1px var(--accent);
}

.wc-pay__body {
  display: none;
  font-size: 0.84rem;
  line-height: 1.6;
  color: rgb(var(--tx-sdark));
  margin-top: 11px;
  padding-top: 11px;
  border-top: 1px dashed rgba(22, 24, 29, 0.15);
}

.wc-pay:has(input:checked) .wc-pay__body {
  display: block;
}

/* ---------- checkout progress ---------- */
.wc-steps {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.wc-steps li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #8a919c;
}

.wc-steps li b {
  display: grid;
  place-items: center;
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid currentColor;
  font-size: 0.76rem;
  padding-top: 2px;
}

.wc-steps li.is-done { color: var(--accent-deep); }
.wc-steps li.is-done b { background: var(--accent); border-color: var(--accent); color: var(--accent-contrast); }
.wc-steps li.is-current { color: rgb(var(--tx-ink)); }
.wc-steps li.is-current b { border-color: rgb(var(--tx-ink)); }

.wc-steps li + li::before {
  content: "";
  width: 26px;
  height: 1px;
  background: rgba(22, 24, 29, 0.2);
  margin-right: 1px;
}

/* ---------- small stat card used across the account ---------- */
.acct-stat {
  background: rgb(var(--sf-panel));
  border: 1px solid rgba(22, 24, 29, 0.1);
  border-radius: 6px;
  padding: 18px 20px;
  transition: border-color 0.18s ease, transform 0.18s ease;
}

.acct-stat:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

@media (max-width: 640px) {
  .wc-table thead { display: none; }

  .wc-table td {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(22, 24, 29, 0.07);
  }

  .wc-table td::before {
    content: attr(data-label);
    font-family: Rajdhani, sans-serif;
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a919c;
  }

  .wc-table tbody tr {
    display: block;
    border: 1px solid rgba(22, 24, 29, 0.12);
    border-radius: 5px;
    margin-bottom: 12px;
    background: rgb(var(--sf-panel));
  }

  .wc-table .num { text-align: right; }
}

/* status toast (copy link, comment posted, newsletter joined) */
.toast {
  position: fixed;
  left: calc(50% + var(--sb-w) / 2);
  bottom: 84px;
  transform: translateX(-50%) translateY(16px);
  z-index: 96;
  background: #16181d;
  color: #fff;
  border: 1px solid #32363e;
  border-left: 3px solid var(--accent);
  border-radius: 4px;
  padding: 11px 18px 10px;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.toast.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@media (max-width: 1099.98px) {
  .toast { left: 50%; }
}

/* ==========================================================================
   Issue 41 — immersive image-led feature layout (parallax + canvas showcase)
   ========================================================================== */

/* thin scroll-progress bar pinned to the very top */
.f41-progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  z-index: 95;
  pointer-events: none;
}

.f41-progress i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

/* full-bleed parallax stage */
.f41-stage {
  position: relative;
  overflow: hidden;
  min-height: 92vh;
  display: flex;
  align-items: flex-end;
  background: #16181d;
}

.f41-bg {
  position: absolute;
  inset: -13% 0;
  z-index: 0;
}

.f41-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  will-change: transform;
  animation: f41kb 30s ease-in-out infinite alternate;
}

.f41--right .f41-bg img { animation-name: f41kb-alt; }

@keyframes f41kb {
  from { transform: scale(1.02); }
  to   { transform: scale(1.12) translate3d(-1.4%, 1%, 0); }
}

@keyframes f41kb-alt {
  from { transform: scale(1.12) translate3d(1.4%, -1%, 0); }
  to   { transform: scale(1.02); }
}

/* readability scrims: darker at the base + a side wash behind the copy */
.f41-scrim {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(22, 24, 29, 0.5) 0%, rgba(22, 24, 29, 0.08) 34%, rgba(22, 24, 29, 0.82) 78%, #16181d 100%);
}

.f41-scrim::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(22, 24, 29, 0.86) 0%, rgba(22, 24, 29, 0.48) 46%, transparent 72%);
}

.f41--right .f41-scrim::after {
  background: linear-gradient(270deg, rgba(22, 24, 29, 0.86) 0%, rgba(22, 24, 29, 0.48) 46%, transparent 72%);
}

/* giant outlined issue-feature numeral, drifts on its own parallax layer */
.f41-num {
  position: absolute;
  top: 5%;
  right: 3%;
  z-index: 1;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: clamp(9rem, 22vw, 20rem);
  line-height: 0.8;
  color: transparent;
  -webkit-text-stroke: 2px rgba(244, 151, 49, 0.3);
  user-select: none;
  pointer-events: none;
  will-change: transform;
}

.f41--right .f41-num {
  right: auto;
  left: 3%;
}

.f41-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 1344px;
  margin: 0 auto;
  padding: 120px 20px 76px;
}

@media (min-width: 640px) {
  .f41-inner { padding: 140px 36px 88px; }
}

/* each feature stage fits the viewport exactly — never taller than the page */
@media (min-width: 1100px) {
  .f41-stage { min-height: 0; height: 100vh; max-height: 100vh; }
  .f41-inner { padding: 0 36px 56px; }
}

.f41-copy { max-width: 660px; position: relative; }
.f41--right .f41-copy { margin-left: auto; }

/* soft dark halo guarantees readability whatever sits in the photo behind */
.f41-copy::before {
  content: "";
  position: absolute;
  inset: -48px -64px;
  z-index: -1;
  background: radial-gradient(ellipse at center, rgba(17, 19, 24, 0.74) 0%, rgba(17, 19, 24, 0.55) 55%, rgba(17, 19, 24, 0) 82%);
  pointer-events: none;
}

/* staggered content reveal once the stage enters the viewport */
.f41-copy > * {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.75s ease, transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}

.f41-stage.is-in .f41-copy > * { opacity: 1; transform: none; }
.f41-stage.is-in .f41-copy > :nth-child(1) { transition-delay: 0.05s; }
.f41-stage.is-in .f41-copy > :nth-child(2) { transition-delay: 0.16s; }
.f41-stage.is-in .f41-copy > :nth-child(3) { transition-delay: 0.28s; }
.f41-stage.is-in .f41-copy > :nth-child(4) { transition-delay: 0.4s; }
.f41-stage.is-in .f41-copy > :nth-child(5) { transition-delay: 0.52s; }

.f41-kicker {
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.74rem;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--accent);
}

.f41-title {
  font-size: clamp(2.7rem, 5.6vw, 4.7rem);
  line-height: 0.92;
  color: #fff;
  text-shadow: 0 2px 26px rgba(0, 0, 0, 0.45);
  letter-spacing: 0.015em; /* tightened kerning for the big display sizes */
  font-kerning: normal;
}

.f41-stand {
  font-size: 1.14rem;
  line-height: 1.6;
  color: #e6e9ee;
  max-width: 56ch;
  text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55);
}

.f41-body p {
  font-size: 0.98rem;
  line-height: 1.75;
  color: #ced2d9;
  max-width: 60ch;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.55);
}

.f41-body p + p { margin-top: 14px; }

/* gallery band under each stage — editorial mosaic, staggered clip reveal */
.f41-gallery {
  background: #16181d;
  padding: 14px 0 64px;
}

.f41-grid {
  max-width: 1344px;
  margin: 0 auto;
  padding: 0 20px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 205px;
  grid-auto-flow: dense;
  gap: 12px;
}

@media (min-width: 640px) {
  .f41-grid { padding: 0 36px; }
}

@media (max-width: 700px) {
  .f41-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 130px; }
}

/* mosaic spans: one hero image per band, the rest tile around it */
.f41-grid .is-big { grid-column: span 2; grid-row: span 2; }
.f41-grid .is-wide { grid-column: span 2; }
.f41-grid--flip .is-big { grid-column: 3 / span 2; }

@media (max-width: 700px) {
  .f41-grid--flip .is-big { grid-column: span 2; }
}

.f41-grid figure {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  clip-path: inset(0 0 100% 0);
  transition: clip-path 0.9s cubic-bezier(0.22, 1, 0.36, 1), transform 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.f41-grid figure:hover { transform: scale(1.015); z-index: 2; }

.f41-grid.is-in figure { clip-path: inset(0 0 0 0); }
.f41-grid.is-in figure:nth-child(2) { transition-delay: 0.12s; }
.f41-grid.is-in figure:nth-child(3) { transition-delay: 0.24s; }
.f41-grid.is-in figure:nth-child(4) { transition-delay: 0.36s; }
.f41-grid.is-in figure:nth-child(5) { transition-delay: 0.48s; }
.f41-grid.is-in figure:nth-child(6) { transition-delay: 0.6s; }

/* gallery images are alive: a slow perpetual drift, opposing directions */
.f41-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.1);
  animation: f41drift 18s ease-in-out infinite alternate;
  transition: filter 0.4s ease;
  will-change: transform;
}

.f41-grid figure:nth-child(even) img { animation-delay: -9s; animation-direction: alternate-reverse; }
.f41-grid figure:hover img { filter: brightness(1.1); }

@keyframes f41drift {
  from { transform: scale(1.1) translate3d(-1.6%, -1.1%, 0); }
  to   { transform: scale(1.1) translate3d(1.6%, 1.1%, 0); }
}

/* the Heavies house ad living as one cell of the mosaic */
.f41-adcell .ad-house {
  display: flex;
  height: 100%;
}

.f41-adcell .ad-label {
  position: absolute;
  top: 8px;
  left: 12px;
  z-index: 2;
  color: #c9ccd2;
}

/* auto-scrolling image marquee (final feature) */
.f41-marquee {
  overflow: hidden;
  padding: 14px 0 72px;
  background: #16181d;
}

.f41-marquee__track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: f41marq 46s linear infinite;
}

.f41-marquee:hover .f41-marquee__track { animation-play-state: paused; }

.f41-marquee__track img {
  height: 300px;
  width: auto;
  border-radius: 3px;
  object-fit: cover;
}

@media (max-width: 700px) {
  .f41-marquee__track img { height: 190px; }
}

@keyframes f41marq {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* issue-archive chips on the dark band (kerned wide) */
.f41-chip {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  padding: 8px 16px 7px;
  border-radius: 3px;
  background: #1e2127;
  border: 1px solid #32363e;
  color: #e8eaee;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.f41-chip:hover { border-color: var(--accent); color: #fff; }

.f41-chip.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

/* funky feature rail: skewed speed-chips, flyout labels, glow on active */
.f41-rail {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 65;
  display: none;
  flex-direction: column;
  gap: 8px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

@media (min-width: 1100px) {
  .f41-rail { display: flex; }
}

.f41-rail.is-on { opacity: 1; pointer-events: auto; }

.f41-rail a {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 36px;
  transform: skewX(-10deg);
  background: rgba(17, 19, 24, 0.82);
  border: 2px solid #32363e;
  border-radius: 4px;
  color: #8a919c;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.1em;
  backdrop-filter: blur(4px);
  transition: border-color 0.22s ease, background 0.22s ease, color 0.22s ease, box-shadow 0.22s ease;
}

.f41-rail a .num { transform: skewX(10deg); }

.f41-rail a .lbl {
  position: absolute;
  right: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) skewX(10deg) translateX(8px);
  white-space: nowrap;
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #e8eaee;
  background: #16181d;
  border: 1px solid #32363e;
  border-radius: 3px;
  padding: 7px 12px 6px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.f41-rail a:hover { border-color: var(--accent); color: #fff; }
.f41-rail a:hover .lbl { opacity: 1; transform: translateY(-50%) skewX(10deg) translateX(0); }

.f41-rail a.is-active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-contrast);
}

/* reading-depth chip, top right */
.f41-depth {
  position: fixed;
  top: 12px;
  right: 20px;
  z-index: 95;
  display: none;
  align-items: baseline;
  gap: 7px;
  transform: skewX(-10deg);
  background: rgba(17, 19, 24, 0.85);
  border: 1px solid #32363e;
  border-radius: 4px;
  padding: 7px 14px 6px;
  backdrop-filter: blur(4px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

@media (min-width: 1100px) {
  .f41-depth { display: flex; }
}

.f41-depth.is-on { opacity: 1; }

.f41-depth b {
  transform: skewX(10deg);
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.08em;
  color: var(--accent);
  min-width: 40px;
  text-align: right;
}

.f41-depth span {
  transform: skewX(10deg);
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: #8a919c;
}

@media (prefers-reduced-motion: reduce) {
  .f41-bg img, .f41-num { transform: none !important; animation: none !important; }
  .f41-grid img { animation: none; transform: none; }
  .f41-marquee__track { animation: none; }
  .f41-copy > *, .f41-grid figure { opacity: 1; transform: none; transition: none; clip-path: none; }
}

/* ==========================================================================
   THE TITLE SYSTEM — three magazines, one design
   Differentiation is by name, logo and content only. No per-title palette:
   the site never changes colour depending on which magazine you are reading.
   ========================================================================== */

/* ---------- the switcher (sidebar, dark) ---------- */
.t-switch {
  display: flex;
  flex-direction: column;
  border: 1px solid #32363e;
  border-radius: 4px;
  overflow: hidden;
  background: #1e2127;
}

.t-switch__btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 46px;
  padding: 0 14px 0 16px;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 1;
  color: #8a919c;
  transition: background 0.16s ease, color 0.16s ease;
}

.t-switch__btn + .t-switch__btn {
  border-top: 1px solid #2a2e35;
}

/* the logos are white, so the chosen title is marked by a bar and a dot rather than an amber fill */
.t-switch .t-switch__logo { /* two classes, so WooCommerce's .woocommerce-page img { height:auto } can't win on shop pages */
  display: block;
  height: 22px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
  object-position: left center;
  opacity: 0.5;
  transition: opacity 0.16s ease;
}

.t-switch__btn::after {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  border: 1px solid #4a4f58;
  flex-shrink: 0;
  transition: background 0.16s ease, border-color 0.16s ease;
}

.t-switch__btn:hover {
  background: #262a32;
  color: #fff;
}

.t-switch__btn:hover .t-switch__logo {
  opacity: 0.85;
}

.t-switch__btn:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: -2px;
}

.t-switch__btn[aria-pressed="true"] {
  background: #2a2e36;
  color: #fff;
}

.t-switch__btn[aria-pressed="true"]::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background: var(--accent);
}

.t-switch__btn[aria-pressed="true"]::after {
  background: var(--accent);
  border-color: var(--accent);
}

.t-switch__btn[aria-pressed="true"] .t-switch__logo {
  opacity: 1;
}

/* ---------- the badge every story carries in a mixed list ---------- */
.t-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
  padding: 5px 8px 4px 7px;
  border-radius: 2px;
  background: rgb(var(--ln-ink) / 0.06);
  color: rgb(var(--tx-ink));
  border-left: 2px solid var(--accent);
  white-space: normal;
  max-width: 100%;
}

.t-badge--light {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

/* ---------- title tabs (light pages: magazine, subscribe, advertise) ----------
   The logo does the identifying, so the tab carries the artwork itself. */
.t-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.t-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  min-height: 74px;
  flex: 1 1 148px;
  padding: 12px 16px;
  background: #16181d;
  border: 1px solid #32363e;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.t-tab:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.t-tab[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: #1e2127;
}

.t-tab img {
  height: 22px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.t-tab__meta {
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a919c;
  line-height: 1;
}

.t-tab[aria-pressed="true"] .t-tab__meta {
  color: var(--accent);
}

/* the All tab has no logo, so it needs its own wordmark */
.t-tab__all {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

/* ---------- title tabs, photo variant (Subscribe step one) ----------
   Tall cards: truck photo, the title's latest covers crossfading at their
   real aspect ratio, then logo, price line and a call to action. Selectors
   are scoped to .t-tabs--photo so the later generic .t-tab block can't
   flatten them back to 74px chips. */
.t-tabs--photo {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.t-tabs--photo .t-tab--photo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  gap: 0;
  min-height: 460px;
  padding: 0;
  overflow: hidden;
  background: #111317;
  border: 1px solid #2a2e36;
  border-radius: 4px;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.t-tabs--photo .t-tab--photo:hover { transform: translateY(-3px); border-color: var(--accent); }
.t-tabs--photo .t-tab--photo[aria-pressed="true"] { border-color: var(--accent); outline: 2px solid var(--accent); outline-offset: -2px; }

.t-tab__photo-bg { position: absolute; inset: 0; z-index: 0; }
.t-tabs--photo .t-tab__photo-bg img {
  display: block;
  max-width: none;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.75;
  transition: transform 0.6s ease, opacity 0.3s ease;
}
.t-tabs--photo .t-tab--photo:hover .t-tab__photo-bg img { transform: scale(1.05); opacity: 0.9; }

.t-tabs--photo .t-tab--photo::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(to top, #111317 34%, rgba(17, 19, 23, 0.55) 62%, rgba(17, 19, 23, 0.1));
}

/* the cover stage: fixed height, width follows each cover's own ratio */
.t-tab__stage {
  position: absolute;
  z-index: 2;
  top: 34px;
  left: 0;
  right: 0;
  height: 210px;
}

.t-tabs--photo .t-tab__cover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 84%;
  height: auto;
  max-width: none;
  max-height: 100%;
  margin: 0;
  object-fit: contain;
  translate: -50% -50%;
  opacity: 0;
  animation: t-tab-cover-fade 15s ease-in-out infinite;
}

@keyframes t-tab-cover-fade {
  0% { opacity: 0; transform: translateY(12px); }
  4%, 20% { opacity: 1; transform: none; }
  24%, 100% { opacity: 0; transform: none; }
}

/* All titles: the three latest covers fanned out */
.t-tabs--photo .t-tab__stage--fan .t-tab__fan-cover {
  position: absolute;
  top: 22%;
  left: 29%;
  width: 42%;
  height: auto;
  max-width: none;
  object-fit: contain;
  transform-origin: 50% 100%;
  transform: translateX(calc((var(--i) - 1) * 62%)) rotate(calc((var(--i) - 1) * 6deg));
  transition: transform 0.35s ease;
}
.t-tabs--photo .t-tab__stage--fan .t-tab__fan-cover[style*="--i:1"] { z-index: 2; top: 10%; }
.t-tabs--photo .t-tab--photo:hover .t-tab__stage--fan .t-tab__fan-cover { transform: translateX(calc((var(--i) - 1) * 70%)) rotate(calc((var(--i) - 1) * 8deg)); }

.t-tab__body {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 9px;
  padding: 20px 20px 20px;
}

.t-tabs--photo .t-tab__body img { height: 30px; width: auto; max-width: 100%; object-fit: contain; object-position: left center; }
.t-tabs--photo .t-tab__body .t-tab__all { font-size: 1.45rem; }
.t-tabs--photo .t-tab__meta { color: #aeb4bd; }

.t-tab__pitch {
  font-family: Barlow, sans-serif;
  font-size: 0.95rem;
  color: #fff;
  line-height: 1.3;
}

.t-tab__cta {
  margin-top: 6px;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 14px;
  background: var(--accent);
  color: #111317;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  line-height: 1.15;
  border-radius: 2px;
  transition: background 0.2s ease;
}
.t-tab__cta::after { content: "\2192"; transition: transform 0.2s ease; }
.t-tabs--photo .t-tab--photo:hover .t-tab__cta::after { transform: translateX(4px); }
.t-tab__cta-on { display: none; }
.t-tabs--photo .t-tab--photo[aria-pressed="true"] .t-tab__cta { background: rgb(var(--sf-panel)); color: rgb(var(--tx-ink)); }
.t-tabs--photo .t-tab--photo[aria-pressed="true"] .t-tab__cta::after { content: "\2713"; }
.t-tabs--photo .t-tab--photo[aria-pressed="true"] .t-tab__cta-off { display: none; }
.t-tabs--photo .t-tab--photo[aria-pressed="true"] .t-tab__cta-on { display: inline; }

@media (max-width: 1100px) {
  .t-tabs--photo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .t-tabs--photo { gap: 10px; }
  .t-tabs--photo .t-tab--photo { min-height: 360px; }
  .t-tab__stage { top: 16px; height: 150px; }
  .t-tab__body { padding: 14px 12px; gap: 7px; }
  .t-tabs--photo .t-tab__body img { height: 22px; }
  .t-tabs--photo .t-tab__body .t-tab__all { font-size: 1.1rem; }
  .t-tab__pitch { font-size: 0.82rem; }
  .t-tab__cta { font-size: 0.72rem; letter-spacing: 0.08em; padding: 9px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  .t-tabs--photo .t-tab__cover { animation: none; opacity: 0; }
  .t-tabs--photo .t-tab__cover:first-child { opacity: 1; }
}

/* ---------- the three-cover band ---------- */
.t-covers {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.t-cover {
  display: flex;
  flex-direction: column;
  background: rgb(var(--sf-panel));
  border: 1px solid rgba(22, 24, 29, 0.12);
  border-radius: 3px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.t-cover:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.t-cover__art {
  position: relative;
  display: block;
  background: #16181d;
}

.t-cover__art img {
  width: 100%;
  height: auto;
  display: block;
}

.t-cover__logo {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  height: 18px;
  width: auto;
  max-width: calc(100% - 24px);
  object-fit: contain;
  object-position: left bottom;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.6));
}

.t-cover__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 15px 15px;
  flex: 1;
}

.t-cover__no {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-deep);
  line-height: 1;
}

.t-cover__in {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgb(var(--tx-sdark));
}

.t-cover__in li {
  position: relative;
  padding-left: 12px;
}

.t-cover__in li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 1px;
  background: var(--accent);
}

.t-cover__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(22, 24, 29, 0.1);
}

.t-cover__price {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  line-height: 1;
  color: rgb(var(--tx-ink));
}

/* ---------- the free-reading meter ----------
   Three features a week, across all three magazines (Andy, 11 Aug 2026). */
.t-meter {
  display: flex;
  align-items: center;
  gap: 10px;
}

.t-meter__pips {
  display: flex;
  gap: 4px;
}

.t-meter__pip {
  width: 22px;
  height: 5px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.22);
}

.t-meter__pip.is-used {
  background: var(--accent);
}

.t-meter--ink .t-meter__pip {
  background: rgba(22, 24, 29, 0.16);
}

.t-meter--ink .t-meter__pip.is-used {
  background: var(--accent);
}

/* ---------- version switcher (v1 / v2 side by side for the client) ---------- */
.vswitch {
  position: fixed;
  left: 14px;
  bottom: 14px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
  background: rgba(22, 24, 29, 0.94);
  border: 1px solid #32363e;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}

.vswitch__lbl {
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgb(var(--tx-sdark));
  padding: 0 8px 0 10px;
}

.vswitch a {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  line-height: 1;
  padding: 7px 12px 6px;
  border-radius: 999px;
  color: #8a919c;
  transition: background 0.16s ease, color 0.16s ease;
}

.vswitch a:hover {
  color: #fff;
  background: #262a32;
}

.vswitch a[aria-current="true"] {
  background: var(--accent);
  color: var(--accent-contrast);
}

@media print {
  .vswitch { display: none; }
}

/* a tab row where "all three" is not a valid answer nudges for a choice */
.t-tabs--prompt {
  outline: 2px dashed rgba(244, 151, 49, 0.5);
  outline-offset: 6px;
  border-radius: 4px;
}

/* Client wants the three marks at one identical height (was tuned per-logo before). */

/* ---------- title tabs (ported from designs/assets/css/custom.css) ----------
   Anchors here, not buttons: they must be reset like the design's buttons. */
/* ---------- title tabs (light pages: magazine, subscribe, advertise) ----------
   The logo does the identifying, so the tab carries the artwork itself. */
.t-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: stretch;
}

.t-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 7px;
  min-height: 74px;
  flex: 1 1 148px;
  padding: 12px 16px;
  background: #16181d;
  border: 1px solid #32363e;
  border-radius: 3px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.t-tab:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.t-tab[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: #1e2127;
}

.t-tab img {
  height: 22px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  object-position: left center;
}

.t-tab__meta {
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.66rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a919c;
  line-height: 1;
}

.t-tab[aria-pressed="true"] .t-tab__meta {
  color: var(--accent);
}

/* the All tab has no logo, so it needs its own wordmark */
.t-tab__all {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  line-height: 1;
}

.t-tab, .t-tab:hover, .t-tab:focus-visible { text-decoration: none; color: #fff; }
.t-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.t-tabs--prompt .t-tab { animation: t-tab-nudge 1.2s ease 2; }
@keyframes t-tab-nudge { 0%, 100% { border-color: #32363e; } 50% { border-color: var(--accent); } }

/* ---------- newsletter pop-up: the photo reel ---------- */
/* clip the zoom: the outgoing photo scales up while it fades and must not spill over the form panel */
.nl-reel {
  overflow: hidden;
  isolation: isolate;
}

/* each photo runs whole across the top of the panel at its own landscape shape and fades
   into the dark panel under the copy, instead of filling the tall panel and losing both sides */
.nl-reel__img {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transform: scale(1.04);
  transform-origin: 50% 0;
  transition: opacity 1.4s ease, transform 1.4s ease-out;
  -webkit-mask-image: linear-gradient(180deg, #000 80%, transparent);
  mask-image: linear-gradient(180deg, #000 80%, transparent);
}

.nl-reel__img.is-on {
  opacity: 1;
  transform: scale(1);
}

.nl-reel__bar {
  flex: 1;
  max-width: 44px;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.nl-reel__bar i {
  display: block;
  height: 100%;
  width: 0;
  background: var(--accent);
}

.nl-reel__bar.is-on i {
  width: 100%;
  transition: width var(--nl-step, 5s) linear;
}

.nl-points li {
  position: relative;
  padding-left: 1.4em;
}

.nl-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 0.55em;
  height: 0.55em;
  background: var(--accent);
  transform: rotate(45deg);
}

@media (prefers-reduced-motion: reduce) {
  .nl-reel__img { transition: opacity 0.4s ease; transform: none; }
  .nl-reel__img.is-on { transform: none; }
}

/* ---------- header search pop-up (template-parts/search-overlay.php): all dark, amber accents ---------- */
#search-modal .sr-card { background: #16181d; border: 1px solid rgba(255, 255, 255, 0.08); color: #e6e8ec; }
#search-modal .sr-card form,
#search-modal .sr-card .sr-chips,
#search-modal .sr-card > div:last-child { border-color: rgba(255, 255, 255, 0.09); }
#search-modal #search-input { background: transparent; color: #fff; caret-color: #f49731; }
#search-modal #search-input, #search-modal #search-input:focus { outline: none; box-shadow: none; border: 0; }
#search-modal #search-input::-webkit-search-cancel-button { display: none; }
#search-modal #search-input::placeholder { color: #8b919c; }
#search-modal .sr-card svg { color: #f49731; }
#search-modal .sr-card [data-search-close] { color: #b6bbc4; }
#search-modal .sr-card [data-search-close]:hover { background: #262a31; color: #fff; }
#search-modal #search-count { color: #8b919c; }
#search-modal #search-seeall:hover { color: #fff; }

.sr-chip {
  flex: none;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #c6cad1;
  background: #262a31;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 5px 13px 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.sr-chip:hover { background: #30353d; color: #fff; }
.sr-chip.is-on { background: var(--accent); color: var(--accent-contrast); }

.sr-results { max-height: 56vh; overflow-y: auto; padding: 6px 8px; }

.sr-hint { padding: 28px 16px; text-align: center; font-size: 0.9rem; color: #9aa0ab; }

.sr-group__title {
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f49731;
  padding: 12px 10px 6px;
}

.sr-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 10px;
  border-radius: 6px;
  transition: background 0.12s ease;
}

.sr-item:hover, .sr-item.is-active { background: #262a31; }

.sr-item__thumb { flex: none; width: 42px; display: block; background: #262a31; border-radius: 2px; overflow: hidden; }
.sr-item__thumb img { display: block; width: 100%; height: auto; }
.sr-item__thumb--blank { aspect-ratio: 1 / 1; }

.sr-item__text { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.sr-item__text b { font-size: 0.92rem; color: #fff; line-height: 1.25; }
.sr-item__text small { font-size: 0.74rem; color: #9aa0ab; }
.sr-item:hover .sr-item__text b, .sr-item.is-active .sr-item__text b { color: #f49731; }

/* ---------- header sign-in / create-account pop-up (template-parts/signin-popup.php) ---------- */
.si-tabs { position: relative; }
.si-tabradio { position: absolute; opacity: 0; pointer-events: none; }

.si-tabbar { display: flex; gap: 22px; border-bottom: 2px solid #eceae4; }
.si-tablabel {
  cursor: pointer;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgb(var(--tx-sdark));
  padding: 4px 2px 12px;
  border-bottom: 2px solid transparent;
  margin-bottom: -2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.si-tablabel:hover { color: rgb(var(--tx-ink)); }

.si-panel { display: none; padding-top: 22px; }

#si-tab-in:checked ~ .si-tabbar label[for="si-tab-in"],
#si-tab-up:checked ~ .si-tabbar label[for="si-tab-up"] { color: rgb(var(--tx-ink)); border-color: var(--accent); }

#si-tab-in:checked ~ .si-panel--in,
#si-tab-up:checked ~ .si-panel--up { display: block; }

.si-field { display: block; margin-top: 14px; }
.si-field:first-child { margin-top: 0; }
.si-field label { display: block; font-size: 0.78rem; font-weight: 600; color: rgb(var(--tx-ink)); margin-bottom: 4px; }
.si-field input[type="text"],
.si-field input[type="email"],
.si-field input[type="password"] {
  width: 100%;
  border: 1px solid rgba(22, 24, 29, 0.2);
  border-radius: 3px;
  background: rgb(var(--sf-panel));
  font-size: 0.92rem;
  padding: 9px 12px;
}
.si-field input:focus { outline: 2px solid rgba(244, 151, 49, 0.35); outline-offset: 1px; border-color: var(--accent); }
.si-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: start; }
.si-row > .si-field { margin-top: 0; }
.si-row + .si-field { margin-top: 14px; }
.si-field.is-invalid input { border-color: #b3261e; }
.si-field__msg { display: block; font-size: 0.76rem; color: #b3261e; margin-top: 4px; }
.si-optin { display: flex; align-items: flex-start; gap: 9px; margin-top: 14px; font-size: 0.82rem; line-height: 1.45; color: rgb(var(--tx-sdark)); }
.si-optin input { margin-top: 3px; flex: none; accent-color: #f49731; }
.si-optin a { color: rgb(var(--tx-ink)); text-decoration: underline; text-underline-offset: 2px; }
.si-optin a:hover { color: #9a5100; }

.si-error {
  display: none;
  font-size: 0.82rem;
  color: #b3261e;
  background: #fbeceb;
  border: 1px solid #f2c7c4;
  border-radius: 4px;
  padding: 8px 11px;
  margin-top: 14px;
}
.si-error.is-on { display: block; }

/* ---------- print vs digital comparison (Subscribe page) ---------- */
.cmp-table-wrap {
  border-radius: 6px;
  overflow: hidden;
  border: 1px solid rgba(22, 24, 29, 0.1);
}

.cmp-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  background: rgb(var(--sf-panel));
}

/* The three column titles share one line: the flag sits in the top padding
   above "Digital only" rather than pushing it down. */
.cmp-table thead th {
  background: #16181d;
  color: #fff;
  padding: 41px 22px 20px;
  text-align: left;
  vertical-align: baseline;
}

.cmp-table__feature-h {
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #8a919c;
  width: 30%;
}

.cmp-table__plan-h {
  width: 35%;
}

.cmp-plan-h__name {
  display: block;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.cmp-plan-h__price {
  display: block;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 1.5rem;
  margin-top: 4px;
}

.cmp-plan-h__price span {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8a919c;
}

.cmp-table__plan-h--pick {
  background: var(--accent);
  color: rgb(var(--tx-ink));
  position: relative;
}

.cmp-table__plan-h--pick .cmp-plan-h__price span { color: #8a919c; }

/* The figure itself (one span per title choice) keeps the price's size and colour. */
.cmp-table .cmp-plan-h__price span[data-t] {
  font-size: inherit;
  font-weight: inherit;
  letter-spacing: normal;
  text-transform: none;
  color: inherit;
}

.cmp-plan-h__flag {
  display: block;
  font-family: Rajdhani, sans-serif;
  font-weight: 700;
  font-size: 0.62rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  line-height: 15px;
  position: absolute;
  top: 20px;
  left: 22px;
  right: 22px;
}

.cmp-table tbody th,
.cmp-table tbody td {
  padding: 16px 22px;
  text-align: left;
  vertical-align: top;
  border-top: 1px solid rgba(22, 24, 29, 0.08);
  font-size: 0.92rem;
}

.cmp-table tbody tr:nth-child(even) { background: rgb(var(--sf-stripe)); }

.cmp-table tbody th {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: Rajdhani, sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.cmp-table__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 3px;
  background: rgba(244, 151, 49, 0.14);
  color: var(--accent);
}

.cmp-table__icon svg { width: 15px; height: 15px; }

.cmp-table td { color: rgb(var(--tx-dim)); }

.cmp-table__pick {
  background: rgba(244, 151, 49, 0.07);
  font-weight: 500;
  color: rgb(var(--tx-ink));
  box-shadow: inset 2px 0 0 var(--accent);
}

.cmp-table__price-row th,
.cmp-table__price-row td {
  border-top: 2px solid rgba(22, 24, 29, 0.14);
  font-size: 1rem;
}

.cmp-table__price-row td b { font-family: Rajdhani, sans-serif; font-weight: 700; }

@media (max-width: 46.24em) {
  .cmp-table thead { display: none; }

  .cmp-table, .cmp-table tbody, .cmp-table tr, .cmp-table th, .cmp-table td {
    display: block;
    width: 100%;
  }

  .cmp-table tbody tr {
    padding: 14px 16px 16px;
    border-top: 1px solid rgba(22, 24, 29, 0.1);
  }

  .cmp-table tbody tr:first-child { border-top: none; }
  .cmp-table tbody tr:nth-child(even) { background: rgb(var(--sf-stripe)); }

  .cmp-table tbody th {
    padding: 0 0 10px;
    border: none;
    white-space: normal;
  }

  .cmp-table tbody td {
    padding: 9px 0 9px 36px;
    border: none;
    box-shadow: none !important;
    position: relative;
  }

  .cmp-table tbody td::before {
    content: attr(data-label);
    display: block;
    font-family: Rajdhani, sans-serif;
    font-weight: 700;
    font-size: 0.64rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a919c;
    margin-bottom: 2px;
  }

  .cmp-table__pick { background: none; }
  .cmp-table__pick::before { color: var(--accent) !important; }
}

/* Pop-up search loading state: spinner in the input row, results fade while fetching */
.sr-spin { width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid rgba(244,151,49,.25); border-top-color: #f49731; opacity: 0; transition: opacity .15s; }
.sr-spin.is-on { opacity: 1; animation: tn-spin .7s linear infinite; }
@keyframes tn-spin { to { transform: rotate(360deg); } }
.sr-results { transition: opacity .2s ease; }
.sr-results.is-loading { opacity: .35; pointer-events: none; }
.sr-results.is-in { animation: tn-fade-in .25s ease; }
@keyframes tn-fade-in { from { opacity: .35; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* Search results page: infinite scroll */
.srp-more { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 34px 0 6px; color: rgb(var(--tx-muted)); font-size: .82rem; }
.srp-more .srp-spin { width: 26px; height: 26px; border-radius: 50%; border: 2.5px solid rgba(244,151,49,.25); border-top-color: #f49731; animation: tn-spin .7s linear infinite; }
.srp-more[hidden] { display: none; }
.srp-end { text-align: center; padding: 30px 0 4px; font-family: Rajdhani, sans-serif; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; font-size: .74rem; color: rgb(var(--tx-muted)); border-top: 1px solid rgba(17,17,17,.1); margin-top: 34px; }
.srp-grid .srp-new { animation: tn-fade-in .35s ease both; }
@media (prefers-reduced-motion: reduce) { .sr-spin.is-on, .srp-more .srp-spin { animation-duration: 2s; } .sr-results.is-in, .srp-grid .srp-new { animation: none; } }

/* Client rule (29 Sep 2026): no box shadows anywhere. Flowbite's stylesheet
   ships its own .shadow-* utilities, so neutralise them here as well as in the
   Tailwind build (corePlugins.boxShadow is off). */
.shadow, .shadow-sm, .shadow-md, .shadow-lg, .shadow-xl, .shadow-2xl,
.hover\:shadow:hover, .hover\:shadow-md:hover, .hover\:shadow-lg:hover, .hover\:shadow-xl:hover { box-shadow: none !important; }

/* ---------- compact newsletter sign-up ---------- */
/* In a narrow column (beside an article) the row left the email box about 100px wide, which
   clipped "Email address"; the button now drops below whenever the box would be narrower than 9rem. */
@media (min-width: 640px) {
	.tn-nl-inline { flex-wrap: wrap; }
	.tn-nl-inline > input[type="email"] { flex: 1 1 9rem; }
}

/* ---------- team phone numbers (About page) ---------- */
/* The number shows in full. On a phone or tablet it is a tap-to-call link; with a mouse it is
   plain text, because a tel: link on a Mac opens FaceTime instead of letting you read the number. */
.team-tel--mouse { display: none; }
@media (hover: hover) and (pointer: fine) {
	.team-tel--touch { display: none; }
	.team-tel--mouse { display: inline; }
}

/* A web address in a feature's words, on the feature page and the issue page (Andy, Bugpot GJL66E, 23 Oct 2026). */
.tf-link { color: #f49731; font-weight: 600; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; overflow-wrap: anywhere; }
.tf-link:hover, .tf-link:focus-visible { text-decoration-thickness: 2px; }

/* ---- Issue sponsor: "Sponsored by" and the logo (inc/issue-render.php torque_issue_sponsor_tag, Bugpot QGR8VL) ---- */
.tq-sponsor { display: inline-flex; align-items: center; gap: 0.6rem; max-width: 100%; color: inherit; text-decoration: none; vertical-align: middle; }
.tq-sponsor__label { font-family: Rajdhani, sans-serif; font-weight: 600; font-size: 0.68rem; letter-spacing: 0.18em; text-transform: uppercase; line-height: 1; white-space: nowrap; opacity: 0.8; }
.tq-sponsor__logo { display: inline-flex; align-items: center; justify-content: center; flex: none; height: 2.1rem; padding: 0; background: transparent; border-radius: 3px; outline: 2px solid transparent; outline-offset: 3px; transition: outline-color 0.2s; }
/* Sponsor logos come as white or transparent PNGs and sit straight on the dark backgrounds; the one light place,
   the front page's current-issue cards, gives them the site's dark plate so a white-out logo still shows (Bugpot QGR8VL). */
.t-cover .tq-sponsor__logo { padding: 0.2rem 0.45rem; background: #111318; outline-offset: 0; }
/* .tq-sponsor in front so it outweighs WooCommerce's ".woocommerce img { height: auto }" on product pages */
.tq-sponsor .tq-sponsor__img { display: block; width: auto; height: 1.5rem; max-width: 7.5rem; object-fit: contain; }
.tq-sponsor__name { font-family: Rajdhani, sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.04em; text-transform: uppercase; line-height: 1.1; min-width: 0; overflow-wrap: anywhere; transition: color 0.2s; }
a.tq-sponsor:hover .tq-sponsor__logo, a.tq-sponsor:focus-visible .tq-sponsor__logo { outline-color: #f49731; }
a.tq-sponsor:hover .tq-sponsor__name, a.tq-sponsor:focus-visible .tq-sponsor__name { color: #f49731; }
.tq-sponsor--hero { gap: 0.8rem; }
.tq-sponsor--hero .tq-sponsor__label { font-size: 0.8rem; color: #c6cad1; opacity: 1; }
.tq-sponsor--hero .tq-sponsor__logo { height: 3.2rem; }
.tq-sponsor--hero .tq-sponsor__img { height: 2.3rem; max-width: 11rem; }
.tq-sponsor--hero .tq-sponsor__name { font-size: 1.3rem; color: #fff; }
.tq-sponsor--small { gap: 0.45rem; }
.tq-sponsor--small .tq-sponsor__label { font-size: 0.62rem; letter-spacing: 0.14em; }
.tq-sponsor--small .tq-sponsor__logo { height: 1.6rem; }
.tq-sponsor--small .tq-sponsor__img { height: 1.2rem; max-width: 5.5rem; }
.tq-sponsor--small .tq-sponsor__name { font-size: 0.8rem; }
.mm-peek__sponsor:empty, .sb-sponsor:empty { display: none; }
.mm-peek__sponsor { display: block; margin-top: 7px; color: #c6cad1; }

/* My account > Orders: the table sits beside the site menu and the account menu, so on a laptop its box is
   narrower than the six columns. When the box is narrow, each order becomes its own card (labels on the left,
   the same as on a phone) so nothing has to be scrolled sideways. */
.acct-orders { container-type: inline-size; }

@container (max-width: 760px) {
  .acct-orders .wc-table thead { display: none; }

  .acct-orders .wc-table td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 10px 14px;
    border-bottom: 1px solid rgba(22, 24, 29, 0.07);
    text-align: right;
  }

  .acct-orders .wc-table td::before {
    content: attr(data-label);
    flex: none;
    font-family: Rajdhani, sans-serif;
    font-weight: 700;
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #8a919c;
  }

  .acct-orders .wc-table tbody tr {
    display: block;
    border: 1px solid rgba(22, 24, 29, 0.12);
    border-radius: 5px;
    margin-bottom: 12px;
    background: rgb(var(--sf-panel));
  }

  .acct-orders .wc-table tbody tr:last-child { margin-bottom: 0; }
  .acct-orders .wc-table tbody tr td:last-child { border-bottom: 0; }
  .acct-orders .wc-table td > span { justify-content: flex-end; }
}

/* DL10ZJ (Shell, 16 Nov 2026): the order cards ran together like one long list (border the same tone as the
   lines inside, 12px apart). Each order is now its own card: firmer edge, more space between cards, the order
   number on a shaded top bar, and Date/Status and Total/View side by side so a card is shorter. */
@container (max-width: 760px) {
  .acct-orders .wc-table tbody tr {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border: 1px solid rgba(22, 24, 29, 0.22);
    border-radius: 6px;
    overflow: hidden;
    margin-bottom: 22px;
  }
  .acct-orders .wc-table tbody tr td { min-width: 0; }
  .acct-orders .wc-table td.woocommerce-orders-table__cell-order-number {
    grid-column: 1 / -1;
    background: rgba(22, 24, 29, 0.05);
    border-bottom: 1px solid rgba(22, 24, 29, 0.12);
    font-weight: 700;
    font-size: 1rem;
  }
  .acct-orders .wc-table td[data-label="Items"] { grid-column: 1 / -1; }
  .acct-orders .wc-table td.woocommerce-orders-table__cell-order-date,
  .acct-orders .wc-table td.woocommerce-orders-table__cell-order-total { border-right: 1px solid rgba(22, 24, 29, 0.07); }
  .acct-orders .wc-table tbody tr td.woocommerce-orders-table__cell-order-total { border-bottom: 0; }
}
@container (max-width: 380px) {
  .acct-orders .wc-table tbody tr { grid-template-columns: 1fr; }
  .acct-orders .wc-table td.woocommerce-orders-table__cell-order-date,
  .acct-orders .wc-table td.woocommerce-orders-table__cell-order-total { border-right: 0; }
  .acct-orders .wc-table tbody tr td.woocommerce-orders-table__cell-order-total { border-bottom: 1px solid rgba(22, 24, 29, 0.07); }
}

/* /magazine/ issue cards (2F1M84): the sponsor line's space is kept on every card once any
   issue in the grid has one, so the copy under it starts level across the row */
.tn-iss-spons { display: flex; align-items: center; min-height: 2.1rem; margin-top: 0.75rem; }
.tn-iss-spons:empty { display: none; }
*:has(> article .tq-sponsor) > article .tn-iss-spons:empty { display: block; }

/* ABB2DT (Shell, 16 Nov 2026): My account > View order. The order page sits beside the account menu, so its box is
   about 550px on a laptop, but the help + totals row split at the screen width (420px totals), crushing "Need help
   with this order?" into a 90px column. Inside My account the row now splits only when the box itself is wide
   enough, totals first when stacked; Customer details lines up with the order above instead of sitting 36px in.
   The checkout thank-you page is not inside .woocommerce-MyAccount-content and is unchanged. */
.woocommerce-MyAccount-content { container-type: inline-size; min-width: 0; }
@container (max-width: 759px) {
  .woocommerce-MyAccount-content .tq-order-foot { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .woocommerce-MyAccount-content .tq-order-foot > :last-child { order: -1; }
}
@container (min-width: 760px) {
  .woocommerce-MyAccount-content .tq-order-foot { grid-template-columns: minmax(0, 1fr) 380px; gap: 2.5rem; }
}
.woocommerce-MyAccount-content .woocommerce-customer-details { max-width: none; padding-left: 0; padding-right: 0; margin-top: 3rem; }
