/*
Theme Name:  The Felt
Theme URI:   https://github.com/ghost-c2/felt-theme
Description: Casino & Betting editorial affiliate blog theme — "Crimson Signal" design. Ad units served from /var/www/tablos.json (not WordPress). SEO-optimized with rich snippets, breadcrumbs, TOC, Schema.org JSON-LD.
Version:     1.0.0
Author:      Ghost C2 Network
Author URI:  #
License:     Private / Proprietary
Text Domain: felt
Tags:        casino, affiliate, blog, dark, magazine
*/

/* =====================================================================
   The Felt — "Crimson Signal"
   Modern, technological editorial theme · White + Red
   Pure CSS · WordPress-portable · no JS framework
   ===================================================================== */

/* -------- Design tokens -------- */
:root {
  /* Brand red */
  --red: #e51935;
  --red-600: #cc0f2a;
  --red-700: #a80c22;
  --red-soft: #fff1f2;
  --red-100: #ffdfe3;
  --red-glow: rgba(229, 25, 53, 0.28);

  /* Ink / neutrals */
  --ink: #0e0e12;
  --ink-2: #16161c;
  --text: #2c2c34;
  --muted: #6c6c77;
  --faint: #9b9ba5;

  /* Lines / surfaces */
  --line: #ededf1;
  --line-2: #dfdfe5;
  --bg: #ffffff;
  --bg-2: #f6f6f9;
  --bg-3: #f0f0f4;
  --surface: #ffffff;

  /* Dark sections */
  --dark: #0c0c10;
  --dark-2: #14141b;
  --dark-line: rgba(255, 255, 255, 0.1);

  /* Radius */
  --r-xs: 8px;
  --r-sm: 10px;
  --r: 14px;
  --r-lg: 20px;
  --r-pill: 999px;

  /* Shadows */
  --sh-xs: 0 1px 2px rgba(14, 14, 18, 0.05);
  --sh-sm: 0 4px 14px rgba(14, 14, 18, 0.06);
  --sh-md: 0 14px 34px rgba(14, 14, 18, 0.09);
  --sh-lg: 0 28px 64px rgba(14, 14, 18, 0.13);
  --sh-red: 0 12px 30px var(--red-glow);

  /* Motion */
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);

  /* Type */
  --font-display: "Space Grotesk", "Segoe UI", system-ui, sans-serif;
  --font-sans: "Manrope", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "SFMono-Regular", ui-monospace, monospace;

  --maxw: 1240px;
}

/* -------- Reset -------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
* {
  margin: 0;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: hidden;
}
body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
img,
svg,
video {
  display: block;
  max-width: 100%;
}
svg {
  fill: currentColor;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
  background: none;
  border: none;
}
ul {
  list-style: none;
  padding: 0;
}
h1,
h2,
h3,
h4 {
  font-family: var(--font-display);
  color: var(--ink);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  overflow-wrap: break-word;
}
::selection {
  background: var(--red);
  color: #fff;
}
:focus-visible {
  outline: 2px solid var(--red);
  outline-offset: 3px;
  border-radius: 4px;
}

/* -------- Layout helpers -------- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 26px;
}
.container--read {
  max-width: 740px;
}
.container--wide {
  max-width: 1000px;
}
.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Mono eyebrow */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.65em;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red);
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--red);
}

/* -------- Buttons -------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.01em;
  padding: 12px 20px;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease),
    background 0.2s var(--ease), color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.btn--red {
  background: var(--red);
  color: #fff;
  box-shadow: var(--sh-red);
}
.btn--red:hover {
  background: var(--red-600);
  transform: translateY(-2px);
  box-shadow: 0 16px 36px var(--red-glow);
}
.btn--dark {
  background: var(--ink);
  color: #fff;
}
.btn--dark:hover {
  background: var(--ink-2);
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}
.btn--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line-2);
}
.btn--ghost:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--sh-sm);
}
.btn--sm {
  padding: 9px 15px;
  font-size: 0.82rem;
}

/* Arrow link */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red);
}
.link-arrow svg {
  transition: transform 0.3s var(--ease);
}
.link-arrow:hover svg {
  transform: translateX(4px);
}

/* -------- Topbar -------- */
.topbar {
  background: var(--dark);
  color: #c7c7d0;
  border-top: 3px solid var(--red);
  font-size: 0.8rem;
}
.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 42px;
  gap: 16px;
}
.topbar__date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: #8a8a96;
}
.topbar__right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.topbar__nav {
  display: flex;
  gap: 18px;
}
.topbar__nav a {
  color: #c7c7d0;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.topbar__nav a:hover {
  color: #fff;
}
.topbar__sep {
  width: 1px;
  height: 16px;
  background: var(--dark-line);
}

/* -------- Social -------- */
.social {
  display: flex;
  gap: 8px;
}
.social a {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  color: var(--muted);
  transition: all 0.25s var(--ease);
}
.social a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}
.social--sm a {
  width: 28px;
  height: 28px;
  border-color: var(--dark-line);
  color: #9a9aa6;
}
.social--sm a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
}

/* -------- Header -------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  gap: 22px;
  min-height: 78px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}
.brand__mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  box-shadow: var(--sh-red);
  transition: transform 0.3s var(--ease);
}
.brand:hover .brand__mark {
  transform: rotate(-8deg);
}
.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.32rem;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.brand__tag {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--faint);
  margin-top: 3px;
}

.mainnav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}
.mainnav > a {
  position: relative;
  padding: 8px 14px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--text);
  border-radius: var(--r-sm);
  transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.mainnav > a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 2px;
  background: var(--red);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s var(--ease);
}
.mainnav > a:hover {
  color: var(--ink);
}
.mainnav > a:hover::after,
.mainnav > a.is-active::after {
  transform: scaleX(1);
}
.mainnav > a.is-active {
  color: var(--red);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

/* Search */
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search__icon {
  position: absolute;
  left: 14px;
  color: var(--faint);
  pointer-events: none;
}
.search input {
  width: 220px;
  padding: 11px 16px 11px 40px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: var(--bg-2);
  font-size: 0.88rem;
  transition: all 0.25s var(--ease);
}
.search input::placeholder {
  color: var(--faint);
}
.search input:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px var(--red-soft);
  width: 250px;
}
.search--mobile {
  display: none;
}

/* Burger (CSS-only) */
.nav-toggle {
  display: none;
}
/* Mobile drawer scrim + in-panel close — hidden on desktop, shown ≤860px */
.nav-scrim {
  display: none;
}
.mainnav__close {
  display: none;
}
.nav-burger {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  place-items: center;
  cursor: pointer;
}
.nav-burger__bars,
.nav-burger__bars::before,
.nav-burger__bars::after {
  content: "";
  display: block;
  width: 20px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease);
}
.nav-burger__bars::before {
  transform: translateY(-6px);
}
.nav-burger__bars::after {
  transform: translateY(4px);
}
.nav-toggle:checked ~ .header-actions .nav-burger__bars {
  background: transparent;
}
.nav-toggle:checked ~ .header-actions .nav-burger__bars::before {
  transform: rotate(45deg);
}
.nav-toggle:checked ~ .header-actions .nav-burger__bars::after {
  transform: rotate(-45deg);
}

/* -------- Trending bar -------- */
.trending {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
}
.trending__inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 54px;
  overflow: hidden;
}
.trending__label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: none;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.trending__list {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scrollbar-width: none;
}
.trending__list::-webkit-scrollbar {
  display: none;
}
.trending__list a {
  white-space: nowrap;
  font-size: 0.86rem;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s var(--ease);
}
.trending__list a::before {
  content: "#";
  color: var(--red);
  margin-right: 3px;
  font-family: var(--font-mono);
}
.trending__list a:hover {
  color: var(--ink);
}

/* -------- Main layout -------- */
main {
  display: block;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 54px;
  padding-block: 60px;
}
.content {
  min-width: 0;
}

/* Section head */
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 30px;
}
.section-head__title {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  margin-top: 10px;
}
.section-head--center {
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.section-head__sub {
  color: var(--muted);
  margin-top: 8px;
  max-width: 52ch;
}

/* -------- Placeholder media (felt-free, tech red) -------- */
.ph {
  position: relative;
  overflow: hidden;
  background-color: #f1f1f5;
  background-image: linear-gradient(135deg, #f7f7fa 0%, #e9e9ef 100%);
}
.ph::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(14, 14, 18, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(14, 14, 18, 0.045) 1px, transparent 1px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 78%);
  mask-image: radial-gradient(120% 100% at 50% 0%, #000 35%, transparent 78%);
}
.ph::after {
  content: "♦";
  position: absolute;
  right: -8px;
  bottom: -26px;
  font-size: 132px;
  line-height: 1;
  color: rgba(229, 25, 53, 0.12);
  transition: transform 0.6s var(--ease-out);
}
.ph--b {
  background-image: linear-gradient(135deg, #fbf2f3 0%, #f1e2e4 100%);
}
.ph--b::after {
  content: "♥";
  color: rgba(229, 25, 53, 0.14);
}
.ph--c::after {
  content: "♠";
  color: rgba(14, 14, 18, 0.1);
}
.ph--d::after {
  content: "♣";
  color: rgba(14, 14, 18, 0.09);
}

/* -------- Real media images -------- */
.card__media,
.post-card__media,
.prose__figure-media {
  overflow: hidden;
  background-color: #f1f1f5;
}
.card__media img,
.post-card__media img,
.prose__figure-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.card__media img {
  transition: transform 0.6s var(--ease-out);
}
.card:hover .card__media img {
  transform: scale(1.06);
}

/* -------- Category tag -------- */
.cat-tag {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: var(--r-xs);
  background: var(--red-soft);
  color: var(--red-600);
}
.cat-tag--solid {
  background: var(--red);
  color: #fff;
}
.cat-tag--float {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  backdrop-filter: blur(6px);
  box-shadow: var(--sh-xs);
}
.cat-tag--ghost {
  background: transparent;
  color: var(--red-600);
  padding-inline: 0;
}

/* -------- Byline -------- */
.byline {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.84rem;
  color: var(--muted);
}
.byline--sm {
  font-size: 0.8rem;
}
.byline--xs {
  font-size: 0.74rem;
  font-family: var(--font-mono);
  letter-spacing: 0.02em;
}
.byline__by {
  font-weight: 600;
  color: var(--text);
}
.byline__read {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.dot {
  color: var(--line-2);
}
.avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  flex: none;
}
.avatar--sm {
  width: 26px;
  height: 26px;
  font-size: 0.6rem;
}
.avatar--lg {
  width: 48px;
  height: 48px;
  font-size: 0.9rem;
}

/* -------- Article cards grid -------- */
.card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 30px;
}
.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease),
    border-color 0.3s var(--ease);
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--sh-md);
  border-color: var(--line-2);
}
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
}
.card:hover .card__media.ph::after {
  transform: scale(1.12) rotate(-6deg);
}
.card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 22px;
  flex: 1;
}
.card__title {
  font-size: 1.22rem;
  line-height: 1.22;
}
.card__title a {
  background-image: linear-gradient(var(--red), var(--red));
  background-size: 0% 2px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size 0.35s var(--ease), color 0.2s var(--ease);
}
.card:hover .card__title a {
  color: var(--red);
  background-size: 100% 2px;
}
.card__excerpt {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.62;
}
.card__foot {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Featured card (first, spans full row) */
.card--feature {
  grid-column: 1 / -1;
  flex-direction: row;
}
.card--feature .card__media {
  flex: 0 0 52%;
  aspect-ratio: auto;
}
.card--feature .card__body {
  padding: 34px;
  justify-content: center;
}
.card--feature .card__title {
  font-size: clamp(1.5rem, 2.6vw, 2rem);
}
.card--feature .card__excerpt {
  font-size: 1rem;
}

/* More row */
.more-row {
  display: flex;
  justify-content: center;
  margin-top: 44px;
}

/* -------- Sidebar -------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 28px;
  position: sticky;
  top: 98px;
  align-self: start;
}
.widget {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
}
.widget__title {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.widget__title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 38px;
  height: 2px;
  background: var(--red);
}

/* Search widget */
.searchbox {
  display: flex;
  gap: 8px;
}
.searchbox input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-size: 0.88rem;
}
.searchbox input:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
}
.searchbox button {
  display: grid;
  place-items: center;
  width: 44px;
  border-radius: var(--r-sm);
  background: var(--red);
  color: #fff;
  transition: background 0.2s var(--ease);
}
.searchbox button:hover {
  background: var(--red-600);
}

/* About widget */
.aboutcard__top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.aboutcard__logo {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ink);
  color: var(--red);
}
.aboutcard__name {
  font-size: 1.05rem;
}
.aboutcard p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

/* Popular list */
.poplist {
  display: flex;
  flex-direction: column;
}
.poplist__item {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.poplist__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.poplist__item:first-child {
  padding-top: 0;
}
.poplist__rank {
  font-family: var(--font-mono);
  font-size: 1.3rem;
  font-weight: 700;
  color: transparent;
  -webkit-text-stroke: 1.3px var(--red);
  line-height: 1;
}
@supports not ((-webkit-text-stroke: 1px var(--red))) {
  .poplist__rank {
    color: var(--red);
  }
}
.poplist__link {
  display: grid;
  grid-template-columns: 60px 1fr;
  gap: 13px;
  align-items: center;
  min-width: 0;
}
.poplist__thumb {
  display: block;
  width: 60px;
  height: 60px;
  border-radius: 11px;
  overflow: hidden;
  background: var(--bg-2);
}
.poplist__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.poplist__item:hover .poplist__thumb img {
  transform: scale(1.09);
}
.poplist__text {
  min-width: 0;
}
.poplist__title {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.28;
  color: var(--ink);
  transition: color 0.2s var(--ease);
}
.poplist__item:hover .poplist__title {
  color: var(--red);
}
.poplist__meta {
  display: block;
  margin-top: 5px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  color: var(--faint);
}

/* Categories */
.catlist__item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--text);
  transition: color 0.2s var(--ease), padding-left 0.25s var(--ease);
}
.catlist__item:last-child {
  border-bottom: none;
}
.catlist__item:hover {
  color: var(--red);
  padding-left: 6px;
}
.catlist__item .count {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--faint);
  background: var(--bg-2);
  padding: 3px 9px;
  border-radius: var(--r-pill);
}
.catlist__item:hover .count {
  background: var(--red-soft);
  color: var(--red-600);
}

/* Tag cloud */
.tagcloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.tagcloud a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  color: var(--muted);
  transition: all 0.2s var(--ease);
}
.tagcloud a:hover {
  background: var(--red);
  border-color: var(--red);
  color: #fff;
  transform: translateY(-2px);
}

/* Newsletter mini */
.widget--news {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.widget--news .widget__title {
  color: #fff;
  border-color: var(--dark-line);
}
.widget--news p {
  font-size: 0.9rem;
  color: #b6b6c2;
  line-height: 1.6;
  margin-bottom: 14px;
}
.news-mini {
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.news-mini input {
  padding: 12px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.88rem;
}
.news-mini input::placeholder {
  color: #8a8a96;
}
.news-mini input:focus {
  outline: none;
  border-color: var(--red);
}

/* -------- Topics band (dark, technological) -------- */
.band {
  position: relative;
  background: var(--dark);
  color: #fff;
  padding-block: 78px;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  -webkit-mask-image: radial-gradient(80% 120% at 80% 0%, #000, transparent 70%);
  mask-image: radial-gradient(80% 120% at 80% 0%, #000, transparent 70%);
  pointer-events: none;
}
.band .container {
  position: relative;
}
.band .section-head__title,
.band .aboutcard__name {
  color: #fff;
}
.topic-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 36px;
}
.topic {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px;
  border: 1px solid var(--dark-line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, 0.025);
  overflow: hidden;
  transition: transform 0.4s var(--ease), border-color 0.3s var(--ease),
    background 0.3s var(--ease);
}
.topic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 100% at 100% 0%, var(--red-glow), transparent 55%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
  pointer-events: none;
}
.topic:hover {
  transform: translateY(-6px);
  border-color: rgba(229, 25, 53, 0.5);
  background: rgba(255, 255, 255, 0.04);
}
.topic:hover::after {
  opacity: 1;
}
.topic__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--red);
  color: #fff;
  box-shadow: var(--sh-red);
}
.topic__title {
  font-size: 1.2rem;
  color: #fff;
}
.topic__desc {
  font-size: 0.9rem;
  color: #aaaab4;
  line-height: 1.6;
}
.topic__count {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  color: var(--red);
  text-transform: uppercase;
}

/* -------- CTA -------- */
.cta {
  padding-block: 30px;
}
.cta__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 28px;
  padding: 48px 52px;
  border-radius: var(--r-lg);
  background: linear-gradient(120deg, var(--red) 0%, var(--red-700) 100%);
  color: #fff;
  overflow: hidden;
  box-shadow: var(--sh-red);
}
.cta__inner::before {
  content: "♦";
  position: absolute;
  right: -20px;
  top: -50px;
  font-size: 300px;
  line-height: 1;
  color: rgba(255, 255, 255, 0.08);
  pointer-events: none;
}
.cta__copy {
  position: relative;
  max-width: 30em;
}
.cta__title {
  color: #fff;
  font-size: clamp(1.5rem, 3vw, 2.05rem);
}
.cta__copy p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
}
.cta__form {
  position: relative;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cta__form input {
  padding: 14px 18px;
  min-width: 240px;
  border-radius: var(--r-sm);
  border: none;
  background: rgba(255, 255, 255, 0.95);
  color: var(--ink);
  font-size: 0.92rem;
}
.cta__form input:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.35);
}
.cta__form .btn--dark {
  background: var(--ink);
}
.cta__form .btn--dark:hover {
  background: #000;
}

/* -------- Footer -------- */
.site-footer {
  background: var(--dark);
  color: #b6b6c2;
}
.site-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.4fr;
  gap: 44px;
  padding-block: 64px 48px;
}
.brand--footer .brand__name {
  color: #fff;
}
.fcol__about {
  font-size: 0.9rem;
  line-height: 1.7;
  margin: 16px 0 18px;
  max-width: 34ch;
}
.fcol h4 {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 18px;
}
.fcol ul {
  display: flex;
  flex-direction: column;
  gap: 11px;
}
.fcol ul a {
  font-size: 0.9rem;
  color: #a0a0ac;
  transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
}
.fcol ul a:hover {
  color: #fff;
  padding-left: 5px;
}
.fcol--news p {
  font-size: 0.9rem;
  margin-bottom: 14px;
}
.footer-news {
  display: flex;
  gap: 8px;
}
.footer-news input {
  flex: 1;
  min-width: 0;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--dark-line);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  font-size: 0.86rem;
}
.footer-news input:focus {
  outline: none;
  border-color: var(--red);
}

.responsible {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding-block: 26px;
  border-top: 1px solid var(--dark-line);
}
.rg-badge {
  flex: none;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 2px solid var(--red);
  color: var(--red);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
}
.responsible p {
  font-size: 0.8rem;
  line-height: 1.65;
  color: #8a8a96;
}
.site-footer__bar {
  border-top: 1px solid var(--dark-line);
}
.site-footer__bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-block: 22px;
  font-size: 0.82rem;
  color: #8a8a96;
}
.footer-legal {
  display: flex;
  gap: 18px;
}
.footer-legal a {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  transition: color 0.2s var(--ease);
}
.footer-legal a:hover {
  color: #fff;
}

/* =====================================================================
   Article / single-post page
   ===================================================================== */
/* Minimal, single-line breadcrumb — chevron separators, no pills.
   Parent crumbs never wrap; the current page truncates with an ellipsis,
   and the whole row scrolls horizontally only if it genuinely overflows. */
.breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 9px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  font-size: 0.8rem;
  letter-spacing: 0.01em;
  color: var(--muted);
}
.breadcrumb::-webkit-scrollbar {
  display: none;
}
.breadcrumb a {
  flex: 0 0 auto;
  white-space: nowrap;
  color: var(--muted);
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.breadcrumb a:hover {
  color: var(--red);
}
.breadcrumb__sep {
  flex: 0 0 auto;
  display: inline-flex;
  font-size: 0;
  color: var(--faint);
}
.breadcrumb__sep::before {
  content: "\203A";
  font-family: var(--font-sans);
  font-size: 0.95rem;
  line-height: 1;
}
.breadcrumb [aria-current="page"] {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ink);
  font-weight: 600;
}
.prose__figure figcaption {
  margin-top: 13px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--muted);
  text-align: center;
}

/* ---- Boxed blog layout ---- */
.page {
  background: var(--bg-2);
  padding-block: clamp(20px, 3vw, 34px) clamp(48px, 7vw, 80px);
}
/* The page wrapper already supplies the vertical rhythm — zero out the inner
   .layout padding so the header → content gap isn't doubled. */
.page .layout {
  align-items: start;
  padding-block: 0;
}
.breadcrumb--top {
  margin-bottom: 16px;
}

/* Boxed article card */
.post-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--sh-sm);
}
.post-card__media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 0;
}
.post-card__inner {
  padding: clamp(22px, 4vw, 48px);
}
.post-card__inner > .cat-tag {
  margin-bottom: 16px;
}
.post-card__title {
  font-size: clamp(1.7rem, 3.6vw, 2.55rem);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0;
}
.post-card__dek {
  font-size: clamp(1.02rem, 1.6vw, 1.18rem);
  line-height: 1.6;
  color: var(--muted);
  margin-top: 14px;
}

/* Post meta row */
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin-top: 22px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.post-meta__author {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}
.post-meta__author .byline__by {
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.post-meta__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.02em;
  color: var(--muted);
}
.post-meta__item svg {
  color: var(--red);
}
.post-card__inner .prose {
  margin-top: 30px;
}

/* Horizontal share row */
.share-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 11px;
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.share-row__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  margin-right: 2px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line-2);
  background: var(--surface);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  transition: color 0.22s var(--ease), background 0.22s var(--ease),
    border-color 0.22s var(--ease), transform 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.share-btn svg {
  width: 15px;
  height: 15px;
}
.share-btn:hover {
  color: #fff;
  background: var(--red);
  border-color: var(--red);
  transform: translateY(-2px);
  box-shadow: var(--sh-red);
}

/* Related posts (in content column) */
.related {
  margin-top: 40px;
}
.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 20px;
}
/* Light-context overrides for related cards on the white page */
.related .topic {
  padding: 0;
  overflow: hidden;
  border-color: var(--line);
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.related .topic:hover {
  border-color: rgba(229, 25, 53, 0.45);
  background: var(--surface);
}
.related__media {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--bg-2);
}
.related__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s var(--ease-out);
}
.related .topic:hover .related__media img {
  transform: scale(1.05);
}
.related__body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding: 20px 22px 24px;
}
.related .topic__title {
  font-size: 1.08rem;
  color: var(--ink);
}
.related .topic__desc {
  color: var(--muted);
}

/* Comments */
.comments {
  margin-top: 36px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(22px, 4vw, 40px);
  box-shadow: var(--sh-sm);
}
.comments__title {
  font-size: clamp(1.3rem, 2.4vw, 1.6rem);
  margin: 0;
}
.comments__count {
  color: var(--red);
}
.comments__sub {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 6px 0 26px;
}
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 22px;
  margin-bottom: 32px;
}
.comment {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 15px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  transition: border-color 0.25s var(--ease), box-shadow 0.25s var(--ease),
    transform 0.25s var(--ease);
}
.comment:hover {
  border-color: var(--line-2);
  box-shadow: var(--sh-sm);
  transform: translateY(-2px);
}
.comment--reply {
  margin-left: clamp(20px, 6vw, 54px);
  background: var(--surface);
  border-left: 3px solid var(--red);
}
.comment__avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ink), #2b2b34);
  color: #fff;
  display: grid;
  place-items: center;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 4px var(--line);
}
.comment:has(.comment__badge) .comment__avatar {
  background: linear-gradient(135deg, var(--red), var(--red-600));
}
.comment__head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-bottom: 6px;
}
.comment__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.98rem;
  color: var(--ink);
}
.comment__date {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--faint);
  margin-left: auto;
}
.comment__text {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.65;
  margin: 0;
}
.comment-form {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.comment-form__title {
  font-size: 1.15rem;
  margin: 0 0 6px;
}
.comment-form__note {
  color: var(--muted);
  font-size: 0.85rem;
  margin: 0 0 18px;
}
.comment-form__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-bottom: 14px;
}
.comment-form input,
.comment-form textarea {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-size: 0.92rem;
  font-family: var(--font-sans);
  color: var(--ink);
}
.comment-form textarea {
  min-height: 130px;
  resize: vertical;
  margin-bottom: 16px;
}
.comment-form input:focus,
.comment-form textarea:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px var(--red-soft);
}

/* Comments — toolbar, actions, badges, load-more */
.comments__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
  padding: 14px 18px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.comments__count--head {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.08rem;
  color: var(--ink);
}
.comments__count--head b {
  color: var(--red);
}
.comments__sort {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.comments__sort select {
  font-family: var(--font-sans);
  font-size: 0.84rem;
  padding: 7px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}
.comment__badge {
  font-family: var(--font-mono);
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #fff;
  background: var(--red);
  padding: 2px 7px;
  border-radius: var(--r-pill);
  vertical-align: middle;
}
.comment__badge--mod {
  background: var(--ink);
}
.comment__actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 13px;
}
.comment__act {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 6px 13px;
  cursor: pointer;
  text-decoration: none;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease),
    background 0.2s var(--ease);
}
.comment__act svg {
  width: 13px;
  height: 13px;
}
.comment__act:hover {
  color: var(--red);
  border-color: var(--red);
  background: var(--red-soft);
}
.comment__act--liked {
  color: var(--red-600);
  border-color: var(--red-100);
  background: var(--red-soft);
}
.comments__more {
  display: block;
  margin: 8px auto 30px;
}
.comment-form__check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 2px 0 18px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}
.comment-form__check input {
  width: auto;
  padding: 0;
  margin-top: 3px;
  accent-color: var(--red);
}
.comment-form__policy {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 16px;
}
.comment-form__policy a {
  color: var(--red-600);
  font-weight: 600;
}

/* Prose */
.prose {
  font-size: 1.085rem;
  line-height: 1.82;
  color: var(--text);
}
.prose > p {
  margin: 0 0 1.4em;
}
.prose h2 {
  font-size: clamp(1.5rem, 2.8vw, 1.95rem);
  line-height: 1.18;
  margin: 1.9em 0 0.5em;
}
.prose h3 {
  font-size: 1.3rem;
  margin: 1.7em 0 0.4em;
}
.prose strong {
  color: var(--ink);
  font-weight: 700;
}
.prose em {
  font-style: italic;
}
.prose a {
  color: var(--red-600);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: var(--red-100);
  text-underline-offset: 3px;
  text-decoration-thickness: 2px;
  transition: text-decoration-color 0.2s ease;
}
.prose a:hover {
  text-decoration-color: var(--red);
}
.prose__lead {
  font-size: 1.18rem;
}
.prose__lead::first-letter {
  float: left;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 3.4em;
  line-height: 0.74;
  padding: 0.06em 0.14em 0 0;
  color: var(--red);
}
.prose__list {
  margin: 0 0 1.5em;
  padding: 0;
}
.prose__list li {
  position: relative;
  padding-left: 1.7em;
  margin: 0.6em 0;
}
.prose__list li::before {
  content: "♦";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.78em;
  color: var(--red);
}
/* Auto-styled content lists — plain <ul>/<ol> in the article body get
   theme styling with no wrapper class needed (WordPress-friendly). */
.prose > ul:not([class]),
.prose > ol:not([class]) {
  margin: 0 0 1.5em;
  padding: 0;
}
.prose > ul:not([class]) > li,
.prose > ol:not([class]) > li {
  position: relative;
  padding-left: 1.9em;
  margin: 0.6em 0;
}
.prose > ul:not([class]) > li::before {
  content: "♦";
  position: absolute;
  left: 0;
  top: 0.05em;
  font-size: 0.78em;
  color: var(--red);
}
.prose > ol:not([class]) {
  counter-reset: prose-li;
}
.prose > ol:not([class]) > li {
  counter-increment: prose-li;
}
.prose > ol:not([class]) > li::before {
  content: counter(prose-li);
  position: absolute;
  left: 0;
  top: 0.16em;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.72em;
  color: var(--red);
}

/* Pull quote */
.pullquote {
  margin: 1.9em 0;
  padding: 4px 0 4px 26px;
  border-left: 3px solid var(--red);
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.3rem, 2.5vw, 1.65rem);
  line-height: 1.34;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.pullquote cite {
  display: block;
  margin-top: 0.7em;
  font-family: var(--font-mono);
  font-style: normal;
  font-weight: 500;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--red-600);
}

/* Inline figure */
.prose__figure {
  margin: 2.2em 0;
}
.prose__figure-media {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--r);
}

/* Callout */
.callout {
  margin: 2.3em 0;
  padding: 26px 28px;
  background: var(--red-soft);
  border: 1px solid var(--red-100);
  border-radius: var(--r);
  position: relative;
  overflow: hidden;
}
.callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--red);
}
.callout__title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-600);
}
.callout ul {
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.callout li {
  position: relative;
  padding-left: 1.6em;
  color: var(--text);
}
.callout li::before {
  content: "♦";
  position: absolute;
  left: 0.1em;
  top: 0.05em;
  font-size: 0.72em;
  color: var(--red);
}
.callout p {
  color: var(--text);
}
.callout p + p {
  margin-top: 0.7em;
}

/* Callout colour variants */
.callout--info {
  background: #eff5ff;
  border-color: #d6e4ff;
}
.callout--info::before {
  background: #2563eb;
}
.callout--info .callout__title {
  color: #1d4ed8;
}
.callout--info li::before {
  color: #2563eb;
}
.callout--warn {
  background: #fff7ed;
  border-color: #fde2c2;
}
.callout--warn::before {
  background: #ea8a0b;
}
.callout--warn .callout__title {
  color: #b45309;
}
.callout--warn li::before {
  color: #ea8a0b;
}
.callout--tip {
  background: #f0fdf6;
  border-color: #cdeed9;
}
.callout--tip::before {
  background: #16a34a;
}
.callout--tip .callout__title {
  color: #15803d;
}
.callout--tip li::before {
  color: #16a34a;
}

/* =====================================================================
   In-article rich blog components
   ===================================================================== */

/* Anchor offset for sticky header on TOC jumps */
.prose h2[id],
.prose h3[id] {
  scroll-margin-top: 96px;
}

/* Table of contents */
/* Collapsible table of contents (native <details>/<summary>).
   Built to hold many headings: nested h3 sub-items indent, and the list
   scrolls inside the box once it grows past ~58vh. */
.toc {
  margin: 2.2em 0;
  padding: 18px 24px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.toc__title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.toc__title::-webkit-details-marker {
  display: none;
}
.toc__title svg {
  width: 16px;
  height: 16px;
  color: var(--red);
}
.toc__chev {
  margin-left: auto;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease);
}
.toc[open] .toc__chev {
  transform: rotate(-135deg);
}
.toc[open] .toc__title {
  margin-bottom: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.toc__title:hover {
  color: var(--red);
}
.toc__title:hover .toc__chev {
  border-color: var(--red);
}
.toc ol {
  list-style: none;
  counter-reset: toc;
  display: grid;
  gap: 11px;
  padding: 0;
  margin: 0;
  max-height: 58vh;
  overflow-y: auto;
  scrollbar-width: thin;
}
.toc li {
  counter-increment: toc;
}
.toc a {
  display: flex;
  gap: 12px;
  align-items: baseline;
  font-size: 0.96rem;
  color: var(--text);
  font-weight: 500;
  text-decoration: none;
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  flex: 0 0 auto;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--red);
}
.toc a:hover {
  color: var(--red);
}
/* Nested h3 sub-items */
.toc ol ol {
  counter-reset: toc-sub;
  margin: 11px 0 2px;
  padding-left: 26px;
  gap: 9px;
  max-height: none;
  overflow: visible;
}
.toc ol ol li {
  counter-increment: toc-sub;
}
.toc ol ol a {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 500;
}
.toc ol ol a::before {
  content: "";
  align-self: center;
  width: 12px;
  height: 1px;
  background: var(--line-2);
}
.toc ol ol a:hover {
  color: var(--red);
}

/* Key facts grid */
.keyfacts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  margin: 2.3em 0;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.keyfact {
  background: var(--surface);
  padding: 22px 20px;
}
.keyfact__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.7rem;
  letter-spacing: -0.02em;
  color: var(--red);
}
.keyfact__label {
  margin-top: 5px;
  font-size: 0.86rem;
  line-height: 1.4;
  color: var(--muted);
}

/* Big stat band (dark) */
.bigstat {
  display: flex;
  align-items: center;
  gap: 24px;
  margin: 2.3em 0;
  padding: 28px 32px;
  background: var(--dark);
  border-radius: var(--r-lg);
}
.bigstat__num {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: clamp(2.4rem, 6vw, 3.4rem);
  line-height: 1;
  color: var(--red);
}
.bigstat__text {
  font-size: 1rem;
  line-height: 1.5;
  color: #c9c9d2;
}
.bigstat__text strong {
  color: #fff;
}

/* Data table */
.table-wrap,
.prose figure.wp-block-table {
  margin: 2.3em 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.prose figure.wp-block-table {
  padding: 0;
}
.prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 420px;
}
/* A plain <table> dropped straight into the article body becomes its own
   responsive, bordered scroll container — no .table-wrap div required.
   The :not([class]) bump raises specificity above the generic .prose table
   rule so it can drop the 420px min-width: the block fills its container and
   only scrolls internally when the content is genuinely too wide (instead of
   forcing a fixed 420px box that would clip on phones). */
.prose > table:not([class]) {
  display: block;
  width: 100%;
  min-width: 0;
  margin: 2.3em 0;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.prose thead th {
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-align: left;
  padding: 13px 16px;
}
.prose tbody td {
  padding: 13px 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
}
.prose tbody tr:nth-child(even) td {
  background: var(--bg-2);
}
.prose tbody td:first-child {
  font-weight: 600;
  color: var(--ink);
}
.prose .td-num {
  font-family: var(--font-mono);
  color: var(--red-600);
}

/* Stat bars */
.statbars {
  margin: 2.3em 0;
  display: grid;
  gap: 16px;
}
.statbar__top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 7px;
  font-size: 0.9rem;
}
.statbar__name {
  font-weight: 600;
  color: var(--ink);
}
.statbar__val {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--red-600);
}
.statbar__track {
  height: 10px;
  background: var(--bg-3);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.statbar__fill {
  height: 100%;
  border-radius: var(--r-pill);
  background: linear-gradient(90deg, var(--red), var(--red-600));
}

/* FAQ accordion (CSS-only via <details>) */
.faq {
  margin: 2.3em 0;
  display: grid;
  gap: 12px;
}
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
.faq__item[open] {
  border-color: var(--red-100);
  box-shadow: var(--sh-sm);
}
.faq__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 22px;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.02rem;
  color: var(--ink);
  list-style: none;
}
.faq__q::-webkit-details-marker {
  display: none;
}
.faq__q::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.4rem;
  line-height: 1;
  color: var(--red);
  transition: transform 0.25s var(--ease);
}
.faq__item[open] .faq__q::after {
  transform: rotate(45deg);
}
.faq__a {
  padding: 0 22px 20px;
  font-size: 0.96rem;
  line-height: 1.7;
  color: var(--muted);
}

/* Inline subscribe CTA */
.inline-cta {
  margin: 2.5em 0;
  padding: 30px 32px;
  border-radius: var(--r-lg);
  background: var(--red-soft);
  border: 1px solid var(--red-100);
  text-align: center;
}
.inline-cta__title {
  font-size: 1.32rem;
  color: var(--ink);
  margin-bottom: 6px;
}
.inline-cta__text {
  font-size: 0.95rem;
  color: var(--muted);
  margin-bottom: 18px;
}
.inline-cta form {
  display: flex;
  gap: 10px;
  max-width: 430px;
  margin: 0 auto;
}
.inline-cta input {
  flex: 1;
  padding: 12px 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 0.92rem;
  color: var(--ink);
}
.inline-cta input:focus {
  outline: none;
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(229, 25, 53, 0.14);
}

/* Read-also inline card */
.read-also {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 2em 0;
  padding: 16px 20px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--red);
  border-radius: var(--r);
  background: var(--bg-2);
  text-decoration: none;
}
.read-also:hover {
  background: var(--surface);
  box-shadow: var(--sh-sm);
}
.read-also__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-600);
}
.read-also__title {
  display: block;
  margin-top: 3px;
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.3;
  color: var(--ink);
}
.read-also__icon {
  margin-left: auto;
  flex: none;
  width: 18px;
  height: 18px;
  color: var(--red);
}

/* Glossary / key terms */
.glossary {
  margin: 2.3em 0;
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
}
.glossary dt {
  padding: 15px 20px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
}
.glossary dd {
  margin: 0;
  padding: 0 20px 15px;
  font-size: 0.95rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
}
.glossary dd:last-child {
  border-bottom: 0;
}

/* Editor / update note */
.post-note {
  display: flex;
  gap: 12px;
  margin: 2em 0;
  padding: 14px 18px;
  background: var(--bg-2);
  border-radius: var(--r-sm);
  font-size: 0.88rem;
  color: var(--muted);
}
.post-note__icon {
  flex: none;
  width: 17px;
  height: 17px;
  margin-top: 2px;
  color: var(--red);
}
.post-note strong {
  color: var(--ink);
}

/* Filed under (post taxonomy footer) */
.post-tax {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  font-size: 0.85rem;
}
.post-tax__group {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.post-tax__label {
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-tax a {
  color: var(--red-600);
  font-weight: 600;
  text-decoration: none;
}
.post-tax a:hover {
  color: var(--red);
}

/* Tags row */
.article__tags {
  margin: 2.5em 0 0;
}

/* Author box */
.author-box {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 18px;
  align-items: start;
  margin: 2.6em 0 0;
  padding: 26px 28px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.author-box__avatar {
  display: grid;
  place-items: center;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.05rem;
}
.author-box__eyebrow {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red-600);
}
.author-box__name {
  font-size: 1.22rem;
  margin: 5px 0 9px;
}
.author-box__bio {
  font-size: 0.94rem;
  color: var(--muted);
  line-height: 1.65;
  margin-bottom: 14px;
}

/* Prev / next */
.post-nav {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 2.5em 0 0;
  padding-top: 1.9em;
  border-top: 1px solid var(--line);
}
.post-nav__item {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease),
    border-color 0.3s var(--ease);
}
.post-nav__item--next {
  text-align: right;
  align-items: flex-end;
}
.post-nav__item:hover {
  border-color: var(--red);
  transform: translateY(-3px);
  box-shadow: var(--sh-sm);
}
.post-nav__label {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--red-600);
}
.post-nav__title {
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.28;
}

/* =====================================================================
   Responsive
   ===================================================================== */
@media (max-width: 1080px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
    gap: 50px;
  }
  .sidebar {
    position: static;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  .widget--news {
    grid-column: 1 / -1;
  }
}
@media (max-width: 920px) {
  .site-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 36px;
  }
}
@media (max-width: 860px) {
  /* Dim backdrop — also a <label for=nav-toggle> so tapping it closes */
  .nav-scrim {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(12, 12, 16, 0.5);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s var(--ease);
    z-index: 55;
  }
  .nav-toggle:checked ~ .nav-scrim {
    opacity: 1;
    pointer-events: auto;
  }
  .mainnav {
    position: fixed;
    inset: 0 0 0 auto;
    width: min(86vw, 360px);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 2px;
    padding: 80px 22px 30px;
    margin: 0;
    background: var(--bg);
    border-left: 1px solid var(--line);
    box-shadow: var(--sh-lg);
    transform: translateX(100%);
    transition: transform 0.4s var(--ease-out);
    overflow-y: auto;
    overscroll-behavior: contain;
    z-index: 60;
  }
  .nav-toggle:checked ~ .mainnav {
    transform: translateX(0);
  }
  /* In-panel close (×) — sits above the panel, always tappable */
  .mainnav__close {
    display: grid;
    place-items: center;
    position: absolute;
    top: 16px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: var(--r-sm);
    background: var(--bg-2);
    color: var(--ink);
    cursor: pointer;
    transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
  }
  .mainnav__close:hover {
    color: var(--red);
    border-color: var(--red-100);
  }
  .mainnav__close svg {
    width: 18px;
    height: 18px;
  }
  .mainnav > a {
    padding: 14px 14px;
    font-size: 1.05rem;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    transition: color 0.2s var(--ease), padding-left 0.2s var(--ease);
  }
  .mainnav > a:hover {
    color: var(--red);
    padding-left: 20px;
  }
  .mainnav > a.is-active {
    color: var(--red);
    box-shadow: inset 3px 0 0 var(--red);
    padding-left: 20px;
  }
  .mainnav > a::after {
    display: none;
  }
  .search--mobile {
    display: flex;
    margin-top: 14px;
  }
  .search--mobile input {
    width: 100%;
  }
  .search--desktop {
    display: none;
  }
  .nav-burger {
    display: grid;
  }
  /* Make the CSS-only toggle keyboard-focusable on mobile (hidden, not removed) */
  .nav-toggle {
    display: block;
  }
  .nav-toggle:focus-visible ~ .header-actions .nav-burger {
    outline: 2px solid var(--red);
    outline-offset: 2px;
  }
  .header-actions .btn {
    display: none;
  }
}
@media (max-width: 720px) {
  .topbar__nav {
    display: none;
  }
  .card--feature {
    flex-direction: column;
  }
  .card--feature .card__media {
    flex: none;
    aspect-ratio: 16 / 10;
  }
  .topic-grid {
    grid-template-columns: 1fr;
  }
  .related-grid {
    grid-template-columns: 1fr 1fr;
  }
  .cta__inner {
    padding: 36px 28px;
  }
  .inline-cta {
    padding: 26px 22px;
  }
  .read-also {
    flex-wrap: wrap;
  }
  .read-also__icon {
    display: none;
  }
}
@media (max-width: 600px) {
  .related-grid {
    grid-template-columns: 1fr;
  }
  .comment-form__row {
    grid-template-columns: 1fr;
  }
  .comment--reply {
    margin-left: 0;
  }
  .comment-form .btn {
    width: 100%;
  }
  .comments__sort {
    width: 100%;
    justify-content: space-between;
  }
  .container {
    padding-inline: 18px;
  }
  .card-grid {
    grid-template-columns: 1fr;
  }
  .sidebar {
    grid-template-columns: 1fr;
  }
  .site-footer__grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .post-nav {
    grid-template-columns: 1fr;
  }
  .post-nav__item--next {
    text-align: left;
    align-items: flex-start;
  }
  .author-box {
    grid-template-columns: 1fr;
  }
  .layout {
    padding-block: 40px;
  }
  .keyfacts {
    grid-template-columns: 1fr;
  }
  .bigstat {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 24px;
  }
  .inline-cta form {
    flex-direction: column;
  }
  .inline-cta input {
    text-align: center;
  }
  .comments__bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .comment {
    padding: 16px;
    gap: 12px;
  }
  .comments {
    padding: 22px 18px;
  }
}
@media (max-width: 460px) {
  .comment__avatar {
    width: 38px;
    height: 38px;
    font-size: 0.74rem;
  }
  .comment__date {
    margin-left: 0;
    flex-basis: 100%;
  }
  .comment__act {
    padding: 5px 11px;
  }
  .post-card__inner {
    padding: 22px 18px;
  }
  .faq__q {
    padding: 15px 16px;
    font-size: 0.96rem;
  }
  .faq__a {
    padding: 0 16px 16px;
  }
  .glossary dt {
    padding: 13px 16px 4px;
  }
  .glossary dd {
    padding: 0 16px 13px;
  }
  .post-meta {
    gap: 6px 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   Sub-pages — archive/author/static headers, pagination, 404
   (category.html · author.html · page.html · 404.html)
   ===================================================================== */

/* Archive / page header */
.arch {
  padding-bottom: 30px;
  margin-bottom: 38px;
  border-bottom: 1px solid var(--line);
}
.arch__title {
  font-size: clamp(2rem, 4vw, 2.9rem);
  margin-top: 12px;
}
.arch__desc {
  margin-top: 16px;
  max-width: 64ch;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.62;
}
.arch__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
}
.arch__meta strong {
  color: var(--red-600);
}

/* White content panel (static pages) */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: clamp(26px, 4vw, 48px);
}

/* Author profile header (dark "technological" band) */
.authorhead {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: clamp(26px, 3.4vw, 38px);
  margin-bottom: 42px;
  background: var(--dark);
  color: #fff;
  border-radius: var(--r-lg);
  position: relative;
  overflow: hidden;
}
.authorhead::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(130% 130% at 100% 0%, var(--red-glow), transparent 56%);
  pointer-events: none;
}
.authorhead__avatar {
  display: grid;
  place-items: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.7rem;
  box-shadow: var(--sh-red);
  position: relative;
}
.authorhead__body {
  position: relative;
}
.authorhead__role {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--red);
}
.authorhead__name {
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 7px 0 11px;
}
.authorhead__bio {
  color: rgba(255, 255, 255, 0.75);
  max-width: 62ch;
  font-size: 0.98rem;
  line-height: 1.64;
}
.authorhead__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 26px;
  margin-top: 20px;
}
.authorhead__stats {
  display: flex;
  gap: 26px;
}
.authorhead__stat {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
}
.authorhead__stat strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: #fff;
}
.authorhead .social a {
  color: rgba(255, 255, 255, 0.7);
  border-color: var(--dark-line);
}
.authorhead .social a:hover {
  color: #fff;
  border-color: var(--red);
}

/* Pagination */
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 48px;
}
.pagination__link {
  display: inline-grid;
  place-items: center;
  min-width: 44px;
  height: 44px;
  padding-inline: 8px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--surface);
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--text);
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease),
    background 0.25s var(--ease), transform 0.25s var(--ease);
}
.pagination__link:hover {
  border-color: var(--red);
  color: var(--red);
  transform: translateY(-2px);
}
.pagination__link.is-current {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}
.pagination__link--edge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding-inline: 18px;
}
.pagination__link[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
  transform: none;
}
.pagination__gap {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 44px;
  color: var(--faint);
}

/* 404 */
.nf {
  text-align: center;
  max-width: 680px;
  margin-inline: auto;
  padding: clamp(36px, 6vw, 76px) 0;
}
.nf__label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--red-600);
  margin-bottom: 16px;
}
.nf__code {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(5.5rem, 22vw, 12rem);
  line-height: 0.82;
  letter-spacing: -0.05em;
  color: var(--ink);
}
.nf__zero {
  color: var(--red);
  text-shadow: 0 12px 36px var(--red-glow);
}
.nf__title {
  font-size: clamp(1.6rem, 3.4vw, 2.3rem);
  margin: 22px 0 14px;
}
.nf__text {
  color: var(--muted);
  font-size: 1.05rem;
  max-width: 50ch;
  margin: 0 auto;
  line-height: 1.62;
}
.nf__search {
  margin: 30px auto 28px;
  max-width: 440px;
}
.nf__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  margin-bottom: 44px;
}
.nf__suggest {
  border-top: 1px solid var(--line);
  padding-top: 28px;
}
.nf__suggest-label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 16px;
}
.nf__links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.nf__links a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--surface);
  font-size: 0.9rem;
  font-weight: 600;
  transition: border-color 0.25s var(--ease), color 0.25s var(--ease);
}
.nf__links a:hover {
  border-color: var(--red);
  color: var(--red);
}

/* Sub-page responsive */
@media (max-width: 620px) {
  .authorhead {
    grid-template-columns: 1fr;
    text-align: center;
    justify-items: center;
    gap: 18px;
  }
  .authorhead__bio {
    margin-inline: auto;
  }
  .authorhead__foot {
    justify-content: center;
  }
  .pagination__link--edge span {
    display: none;
  }
}

/* =====================================================================
   Global polish & accessibility (added in SEO/a11y pass)
   ===================================================================== */

/* Skip to content — visible only on keyboard focus */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 999;
  padding: 12px 20px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: var(--r-sm);
  box-shadow: var(--sh-red);
  transition: top 0.18s ease;
}
.skip-link:focus {
  top: 12px;
  outline: none;
}

/* Offset anchored sections under the sticky header on every page */
html {
  scroll-padding-top: 96px;
}

/* Premium text selection */
::selection {
  background: var(--red);
  color: #fff;
}

/* Refined scrollbar (supporting browsers) */
* {
  scrollbar-width: thin;
  scrollbar-color: var(--red) transparent;
}
*::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
*::-webkit-scrollbar-thumb {
  background: var(--red);
  border: 3px solid #fff;
  border-radius: 999px;
}
*::-webkit-scrollbar-thumb:hover {
  background: var(--red-600);
}

/* Respect reduced-motion preferences */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* =====================================================================
   Contact page
   ===================================================================== */

.contact-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 34px;
  align-items: start;
  margin-top: 30px;
}

.contact-form-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
  box-shadow: 0 1px 0 var(--line);
}
.contact-form__title {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 22px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  margin-bottom: 16px;
}
.field__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.field__input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  background: var(--bg-2);
  font-size: 0.94rem;
  font-family: var(--font-sans);
  color: var(--ink);
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.field__input::placeholder {
  color: var(--faint);
}
.field__input:focus {
  outline: none;
  border-color: var(--red);
  background: #fff;
  box-shadow: 0 0 0 4px var(--red-soft);
}
.field__select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236c6c77' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 42px;
  cursor: pointer;
}
.field__textarea {
  min-height: 150px;
  resize: vertical;
}
.field-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
  margin: 4px 0 22px;
  cursor: pointer;
}
.field-check input {
  margin-top: 2px;
  width: 16px;
  height: 16px;
  accent-color: var(--red);
  flex-shrink: 0;
}
.contact-form__submit {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.contact-aside {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.contact-method {
  display: flex;
  gap: 15px;
  padding: 20px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.contact-method__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: var(--r-sm);
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red);
}
.contact-method__body {
  display: flex;
  flex-direction: column;
}
.contact-method__label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--faint);
  margin-bottom: 4px;
}
.contact-method__value {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
a.contact-method__value:hover {
  color: var(--red);
}
.contact-method__note {
  font-size: 0.84rem;
  color: var(--muted);
  margin: 5px 0 0;
  line-height: 1.5;
}
.contact-social {
  padding: 4px 2px;
}
.contact-social .social {
  margin-top: 12px;
}

/* =====================================================================
   Search page
   ===================================================================== */

.searchhero {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
  padding: 8px 8px 8px 18px;
  background: #fff;
  border: 1.5px solid var(--line-2);
  border-radius: var(--r-pill);
  max-width: 640px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.searchhero:focus-within {
  border-color: var(--red);
  box-shadow: 0 0 0 4px var(--red-soft);
}
.searchhero__icon {
  flex-shrink: 0;
  color: var(--faint);
}
.searchhero input {
  flex: 1;
  border: none;
  background: none;
  font-size: 1.02rem;
  font-family: var(--font-sans);
  color: var(--ink);
  padding: 12px 0;
}
.searchhero input:focus {
  outline: none;
}
.searchhero input::placeholder {
  color: var(--faint);
}
.searchhero .btn {
  flex-shrink: 0;
}

.searchtags {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 18px;
}
.searchtags__label {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--faint);
}
.searchtags a {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  padding: 5px 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.searchtags a:hover {
  color: var(--red);
  border-color: var(--red);
  background: #fff;
}

.searchmeta {
  margin: 30px 0 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
  font-size: 0.96rem;
  color: var(--muted);
}
.searchmeta strong {
  color: var(--ink);
}
.searchmeta__term {
  color: var(--red);
  font-weight: 700;
}

@media (max-width: 860px) {
  .contact-grid {
    grid-template-columns: 1fr;
    gap: 26px;
  }
}
@media (max-width: 620px) {
  .contact-form-wrap {
    padding: 22px;
  }
  .form-row {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .searchhero {
    flex-wrap: wrap;
    border-radius: var(--r);
    padding: 12px;
  }
  .searchhero input {
    width: 100%;
    flex-basis: 100%;
  }
  .searchhero .btn {
    width: 100%;
    justify-content: center;
  }
}

/* =====================================================================
   Print styles
   ===================================================================== */
@media print {
  .topbar,
  .site-header,
  .site-footer,
  .skip-link,
  .nav-burger,
  .header-actions,
  .share-row,
  .post-nav,
  .pagination,
  .searchhero,
  .searchtags,
  .inline-cta,
  .cta {
    display: none !important;
  }
  body {
    background: #fff;
    color: #000;
  }
  main {
    padding: 0 !important;
  }
  a {
    color: #000;
    text-decoration: underline;
  }
  .prose a[href^="http"]::after {
    content: " (" attr(href) ")";
    font-size: 0.85em;
    color: #555;
  }
  img {
    max-width: 100% !important;
  }
}

/* =====================================================================
   Sponsored ad units — betting/bonus promos
   Light, modern, reusable (shortcode-ready): logo · bonus · CTA button
   Brand logos are real horizontal <img> lockups in /assets/logos/*.svg
   ===================================================================== */

/* --- Shared: disclosure flag --- */
.ad-flag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.ad-flag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--red);
}

/* --- Shared: horizontal brand logo (real <img> lockup) --- */
.adlogo {
  display: block;
  height: 30px;
  width: auto;
  max-width: 100%;
  flex-shrink: 0;
}

/* Keep CTAs looking like buttons even inside prose / widgets */
.adrail .btn,
.adcta .btn,
.adpicks .btn,
.adwidget .btn {
  color: #fff;
  text-decoration: none;
}

/* --- Unit A: homepage promo rail --- */
.adrail {
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  padding: 15px 16px 16px;
}
.adrail__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}
.adrail__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink);
}
.adrail__eyebrow::before {
  content: "";
  width: 20px;
  height: 2px;
  background: var(--red);
}
.adrail__grid {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.adrail__grid.is-collapsed .promo:nth-child(n + 6) {
  display: none;
}
.promo {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 9px 14px 9px 18px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  box-shadow: 0 1px 2px rgba(12, 12, 16, 0.04);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
/* flatten the logo+rating wrapper into the single row */
.promo__top {
  display: contents;
}
.promo::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: var(--brand, var(--red));
}
.promo:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--brand, var(--red)) 35%, var(--line-2));
  box-shadow: var(--sh-md);
}
.promo--top {
  background: linear-gradient(90deg, var(--red-soft), #fff 58%);
  border-color: var(--red-100);
}
.promo--top::before {
  background: var(--red);
}
.promo__badge {
  position: absolute;
  top: 0;
  left: 20px;
  z-index: 1;
  transform: translateY(-50%);
  display: inline-flex;
  padding: 3px 9px 4px;
  background: var(--red);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--r-pill);
  box-shadow: 0 4px 10px -5px rgba(229, 25, 53, 0.7);
}
.promo .adlogo {
  order: 1;
  width: 112px;
  height: auto;
  flex-shrink: 0;
}
.promo__bonus {
  order: 2;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
}
.promo__amt {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.2;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo__amt b {
  color: var(--red);
}
.promo__note {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 3px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.promo__rating {
  order: 3;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  color: var(--muted);
}
.promo__rating svg {
  width: 13px;
  height: 13px;
  color: #f5b301;
}
.promo__cta {
  order: 4;
  flex-shrink: 0;
  width: auto;
  min-width: 108px;
  justify-content: center;
  text-align: center;
  white-space: nowrap;
  padding: 8px 15px;
  font-size: 0.78rem;
}

/* show-more (mobile, JS-driven) */
.adrail__more {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  margin-top: 9px;
  padding: 12px 16px;
  background: var(--bg-2);
  border: 1px solid var(--line-2);
  border-radius: var(--r);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
    color 0.18s var(--ease);
}
.adrail__more[hidden] {
  display: none;
}
.adrail__more:hover {
  background: var(--red-soft);
  border-color: var(--red-100);
  color: var(--red);
}
.adrail__more-count {
  color: var(--red);
}
.adrail__chev {
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
}
.adrail__more:disabled {
  cursor: default;
}
.adrail__more.is-loading .adrail__more-txt,
.adrail__more.is-loading .adrail__chev {
  visibility: hidden;
}
.adrail__more.is-loading::after {
  content: "";
  position: absolute;
  width: 16px;
  height: 16px;
  border: 2px solid var(--red-100);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: adrail-spin 0.6s linear infinite;
}
@keyframes adrail-spin {
  to {
    transform: rotate(360deg);
  }
}

/* --- Unit B: in-article CTA banner --- */
.adcta {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
  margin: 34px 0;
  padding: 20px 24px;
  background: radial-gradient(130% 180% at 100% 0%, rgba(229, 25, 53, 0.08), transparent 55%), #fff;
  border: 1px solid var(--red-100);
  border-left: 3px solid var(--red);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
}
.adcta .adlogo {
  height: 32px;
}
.adcta--lead {
  margin: 0 0 8px;
}
.adcta__offer {
  flex: 1 1 220px;
  min-width: 0;
}
.adcta__amt {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.26rem;
  line-height: 1.18;
  color: var(--ink);
}
.adcta__amt b {
  color: var(--red);
}
.adcta__note {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 6px;
}
.adcta__action {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}
.adcta__action .btn {
  white-space: nowrap;
}
.adcta__action .ad-flag {
  justify-content: center;
}

/* --- Unit C: in-article ranked picks --- */
.adpicks {
  margin: 34px 0;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}
.adpicks__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 20px;
  background: var(--bg-2);
  border-bottom: 1px solid var(--line);
}
.adpicks__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  color: var(--ink);
}
.adpicks__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.adpick {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 16px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--line);
  transition: background 0.16s ease;
}
.adpick:last-child {
  border-bottom: 0;
}
.adpick:hover {
  background: var(--bg-2);
}
.adpick__rank {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.9rem;
  color: #fff;
  background: var(--brand, var(--ink));
  background: linear-gradient(150deg, var(--brand, var(--ink)), color-mix(in srgb, var(--brand, var(--ink)) 64%, #000));
  box-shadow: 0 4px 10px -5px var(--brand, rgba(12, 12, 16, 0.5));
}
.adpick .adlogo {
  height: 24px;
}
.adpick__bonus {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
}
.adpick__bonus b {
  color: var(--red);
}
.adpick .btn {
  padding: 8px 15px;
  font-size: 0.8rem;
  white-space: nowrap;
}

/* --- Unit D: sidebar featured offer (minimal editorial) --- */
.adwidget {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 13px;
  padding: 17px 18px 15px;
  background: #fff;
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-xs);
  overflow: hidden;
}
.adwidget::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--brand, var(--red));
}
.adwidget__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.adwidget .adlogo {
  height: 28px;
  width: auto;
  margin: 0;
}
.adwidget__flag {
  flex-shrink: 0;
  font-family: var(--font-mono);
  font-size: 0.5rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  border: 1px solid var(--line-2);
  border-radius: var(--r-pill);
  padding: 3px 8px;
}
.adwidget__amt {
  display: block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.4rem;
  line-height: 1.12;
  color: var(--ink);
}
.adwidget__amt b {
  color: var(--red);
}
.adwidget__note {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.6rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  margin-top: 5px;
}
.adwidget__meta {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.adwidget__rating {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ink);
}
.adwidget__rating svg {
  width: 13px;
  height: 13px;
  color: #f5b301;
}
.adwidget__tag {
  font-family: var(--font-mono);
  font-size: 0.56rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 3px 9px;
}
.adwidget__cta {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 1px;
}
.adwidget__cta svg {
  width: 15px;
  height: 15px;
}
.adwidget__terms {
  font-family: var(--font-mono);
  font-size: 0.54rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--faint);
  line-height: 1.6;
}

/* --- Homepage ad slot wrapper --- */
.adslot--post {
  margin: 0 0 30px;
}
.adslot {
  margin-top: 26px;
}

/* --- Showcase page (reklam.html) --- */
.advar {
  margin-top: 48px;
}
.advar:first-of-type {
  margin-top: 30px;
}
.advar__head {
  margin-bottom: 18px;
}
.advar__title {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink);
  margin: 8px 0 7px;
}
.advar__desc {
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 13px;
  line-height: 1.6;
}
.advar__code {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid var(--red-100);
  border-radius: var(--r-sm);
  padding: 6px 12px;
}

/* --- Responsive --- */
@media (max-width: 720px) {
  .adcta {
    gap: 12px 16px;
    padding: 16px 18px;
  }
  .adcta__offer {
    flex: 1 1 auto;
  }
  .adcta__action {
    flex: 1 1 100%;
  }
  .adcta__action .btn {
    width: 100%;
  }
}

/* Turkish-style minimal: every ad stays a tight SINGLE ROW on mobile */
@media (max-width: 600px) {
  .adslot {
    margin-top: 20px;
  }
  .adrail {
    padding: 13px 12px 14px;
  }
  .adrail__head {
    margin-bottom: 11px;
  }
  .adrail__grid {
    gap: 8px;
  }
  .promo {
    gap: 10px;
    padding: 10px 12px 10px 15px;
  }
  .promo .adlogo {
    width: 96px;
    height: auto;
  }
  .promo__rating,
  .promo__note {
    display: none;
  }
  .promo__amt {
    font-size: 0.84rem;
  }
  .promo__cta {
    min-width: 84px;
    padding: 7px 11px;
    font-size: 0.74rem;
  }
  .promo__badge {
    left: 15px;
    padding: 2px 7px 3px;
    font-size: 0.46rem;
  }

  .adcta {
    margin: 26px 0;
    padding: 14px;
    gap: 10px 14px;
  }
  .adcta--lead {
    margin: 0 0 6px;
  }
  .adcta .adlogo {
    height: 26px;
  }
  .adcta__amt {
    font-size: 1.05rem;
  }
  .adcta__note {
    margin-top: 4px;
  }

  .adpicks {
    margin: 26px 0;
  }
  .adpicks__head {
    padding: 11px 14px;
  }
  .adpick {
    grid-template-columns: 22px auto minmax(0, 1fr) auto;
    gap: 9px;
    padding: 10px 13px;
  }
  .adpick__rank {
    width: 22px;
    height: 22px;
    font-size: 0.72rem;
  }
  .adpick .adlogo {
    height: 19px;
  }
  .adpick__bonus {
    font-size: 0.8rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .adpick .btn {
    padding: 7px 12px;
    font-size: 0.72rem;
  }
}

/* =====================================================================
   Interactive states (progressive enhancement via /ui.js)
   ===================================================================== */
.comment[hidden] {
  display: none;
}
.comments__more {
  position: relative;
}
.comments__more.is-loading {
  color: transparent;
  pointer-events: none;
}
.comments__more.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border: 2px solid var(--red-100);
  border-top-color: var(--red);
  border-radius: 50%;
  animation: adrail-spin 0.6s linear infinite;
}

/* Inline form confirmation (newsletter + comment) */
.form-feedback {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: var(--r);
  background: var(--red-soft);
  border: 1px solid var(--red-100);
  color: var(--red-600);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
}
.form-feedback svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}
.form-feedback--dark {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff;
}

/* Submit button busy spinner */
.btn.is-busy {
  position: relative;
  color: transparent !important;
  pointer-events: none;
}
.btn.is-busy::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 15px;
  height: 15px;
  margin: -8px 0 0 -8px;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  border-radius: 50%;
  animation: adrail-spin 0.6s linear infinite;
}
.btn--ghost.is-busy::after,
.btn--outline.is-busy::after {
  border-color: var(--red-100);
  border-top-color: var(--red);
}
