/* ============================================================
   The OC Guy — warm editorial rebuild
   Style authority: /root/workspace/shared/manifesto/STYLEGUIDE.md
   Palette: oat cream ground, espresso ink, honey oak and sand,
   restrained navy + olive accents. Soft rounded surfaces,
   chunky rounded display type (Fraunces), generous negative space.
   No stark white, no pure black, no cool blue cast.
   ============================================================ */

:root {
  /* palette — from STYLEGUIDE.md §2 */
  --oat: #f2e9d6;
  --sand: #d9c7a5;
  --oak: #ac8050;
  --espresso: #3b2619;
  --navy: #29444b;
  --olive: #747552;
  --terracotta: #b76d48;

  --paper: var(--oat);
  --ink: var(--espresso);
  --muted: #6f5641;
  --rule: rgba(59, 38, 25, 0.16);
  --rule-strong: rgba(59, 38, 25, 0.38);
  --tint: rgba(217, 199, 165, 0.52);

  --display: "Fraunces", "Iowan Old Style", Georgia, "Songti SC", "Noto Serif CJK SC", "Noto Sans SC", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;

  --pad: clamp(18px, 3.4vw, 44px);
  --max: 1180px;
  --gap: clamp(24px, 3vw, 44px);

  --r-img: 14px;
  --r-box: 20px;
  --r-btn: 999px;

  --step-xs: 12px;
  --step-sm: 14px;
  --step-body: 18px;
  --step-lead: clamp(19px, 1.15vw, 21px);
  --step-h3: clamp(20px, 1.6vw, 24px);
  --step-h2: clamp(30px, 3.4vw, 46px);
  --step-display: clamp(40px, 6.4vw, 92px);
}

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

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--step-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* a very soft warm wash, so the page is never flat cream */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(60% 42% at 78% 0%, rgba(172, 128, 80, 0.14), transparent 70%),
    radial-gradient(46% 36% at 4% 18%, rgba(217, 199, 165, 0.55), transparent 72%);
}

body > * { position: relative; z-index: 1; }

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }

:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; }
::selection { background: var(--espresso); color: var(--oat); }

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

.skip {
  position: fixed; top: 8px; left: 8px; z-index: 60;
  padding: 10px 18px; background: var(--espresso); color: var(--oat);
  border-radius: var(--r-btn);
  font-size: var(--step-sm); text-decoration: none;
  transform: translateY(-160%); transition: transform 220ms ease;
}
.skip:focus { transform: translateY(0); }

/* ---------- masthead ---------- */

.masthead {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(22px, 3vw, 36px) var(--pad) 18px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 14px;
  border-bottom: 1px solid var(--rule);
}

.wordmark {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(38px, 5.8vw, 72px);
  font-variation-settings: "SOFT" 80, "WONK" 1;
  letter-spacing: -0.035em;
  line-height: 0.88;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--espresso);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: clamp(12px, 1.8vw, 26px);
  font-size: var(--step-xs);
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.nav a { text-decoration: none; padding: 6px 0; color: var(--espresso); }
.nav a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 6px; text-decoration-thickness: 1.5px; }

.nav-cta {
  grid-column: 2;
  justify-self: end;
  margin-top: 10px;
  padding: 10px 20px;
  background: var(--espresso);
  color: var(--oat);
  border: 1px solid var(--espresso);
  border-radius: var(--r-btn);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.nav-cta:hover, .nav-cta:focus-visible { background: var(--oak); border-color: var(--oak); color: var(--espresso); transform: translateY(-1px); }

/* ---------- lead ---------- */

.lead {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(26px, 3.6vw, 48px) var(--pad) clamp(30px, 4vw, 52px);
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  row-gap: clamp(22px, 3vw, 32px);
}

.lead-intro { max-width: 46em; }
.lead-intro h1 {
  font-size: clamp(34px, 5vw, 66px);
  line-height: 1.02;
  max-width: 22ch;
}
.lead-intro .standfirst + .standfirst { margin-top: 10px; }

.lead-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 20px;
  margin-top: 26px;
}
.lead-note { font-size: var(--step-sm); color: var(--muted); }

.side-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 34px;
  margin: 0;
  padding: 16px 0 0;
  border-top: 1px solid var(--rule);
  list-style: none;
}
.side-list.side-row li { border-bottom: 0; padding: 0; }

.lead-side { display: flex; flex-direction: column; gap: clamp(22px, 3vw, 36px); }

.box {
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-box);
  padding: 24px 22px 22px;
  background: rgba(255, 250, 240, 0.42);
}
.box-kicker {
  margin: 0 0 12px;
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oak);
}
.box-lede {
  margin: 0 0 20px;
  font-family: var(--sans);
  font-size: var(--step-body);
  line-height: 1.55;
  color: var(--espresso);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 24px;
  background: var(--espresso);
  color: var(--oat);
  border: 1px solid var(--espresso);
  border-radius: var(--r-btn);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms ease;
}
.btn:hover, .btn:focus-visible { background: transparent; color: var(--espresso); transform: translateY(-1px); }

/* the channel is the main feature: the hero's one loud action */
.btn-watch {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: #fff7ec;
  min-height: 52px;
  padding: 0 30px;
  font-size: var(--step-sm);
  box-shadow: 0 6px 18px -8px rgba(59, 38, 25, 0.45);
}
.btn-watch:hover, .btn-watch:focus-visible {
  background: var(--espresso);
  border-color: var(--espresso);
  color: var(--oat);
  transform: translateY(-2px);
}
.btn-watch .play { font-size: 0.72em; margin-right: 9px; line-height: 1; }

.btn-quiet {
  color: var(--muted);
  font-size: var(--step-sm);
  text-decoration-color: var(--oak);
  text-underline-offset: 4px;
}
.btn-quiet:hover, .btn-quiet:focus-visible { color: var(--espresso); }

/* hero: the channel button is the first thing in the lead. On a phone it sits above the
   headline like a kicker; on a wide screen it moves to the top-right corner. */
.hero-watch { justify-self: start; margin-bottom: 4px; }
@media (min-width: 880px) {
  .lead { grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
  .lead-intro { grid-column: 1; grid-row: 1; }
  .hero-watch { grid-column: 2; grid-row: 1; justify-self: end; margin-bottom: 0; margin-top: 6px; }
  .side-row { grid-column: 1 / -1; }
}

.side-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--rule);
  font-size: var(--step-sm);
  line-height: 1.55;
}
.side-list li { padding: 13px 0; border-bottom: 1px solid var(--rule); }
.side-kicker {
  display: block;
  font-size: var(--step-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 3px;
}
.side-list a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--oak); }

.lead-media { grid-area: media; }
.lead-media img {
  width: 100%;
  aspect-ratio: 16 / 11;
  object-fit: cover;
  object-position: 50% 42%;
  border-radius: var(--r-img);
  /* warm grade: pulls the cool studio grey of stock photography back into the palette */
  filter: sepia(0.34) saturate(0.78) contrast(1.04) brightness(1.02) hue-rotate(-6deg);
}

.lead-caption { grid-area: caption; max-width: 38em; }

.meta {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin: 0 0 14px;
  font-size: var(--step-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.meta span:first-child {
  color: var(--espresso);
  font-weight: 600;
  background: var(--sand);
  border-radius: var(--r-btn);
  padding: 3px 10px;
}

h1 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  font-size: clamp(30px, 3.6vw, 50px);
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.standfirst {
  margin: 0;
  font-size: var(--step-lead);
  line-height: 1.62;
  color: var(--muted);
  max-width: 36em;
}

/* ---------- start here ---------- */

.start { padding-top: clamp(8px, 1.4vw, 16px); }

.start-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(18px, 2.6vw, 32px);
  max-width: 46em;
  padding: clamp(20px, 2.6vw, 30px);
  border: 1px solid var(--rule-strong);
  border-left: 4px solid var(--oak);
  border-radius: var(--r-box);
  background: rgba(255, 250, 240, 0.46);
}
.start-kicker {
  margin: 0 0 10px;
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--oak);
}
.start-body h2 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(24px, 2.7vw, 36px);
  font-weight: 600;
  font-variation-settings: "SOFT" 70;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.start-body p { margin: 0 0 18px; color: var(--muted); max-width: 34em; }

/* ---------- who this is for ---------- */

.who { padding-top: clamp(28px, 3.6vw, 44px); }
.who-title {
  margin: 0 0 18px;
  font-family: var(--sans);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.who-cols {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  padding-top: 18px;
  border-top: 1px solid var(--rule-strong);
}
.who-cols p { margin: 0 0 12px; max-width: 34em; }
.who-cols strong { font-weight: 600; color: var(--espresso); }

/* ---------- section frame ---------- */

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: clamp(34px, 4.5vw, 58px) var(--pad) 0;
}

.section-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: baseline;
  column-gap: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--rule-strong);
  margin-bottom: clamp(22px, 3vw, 36px);
}

.initial {
  font-family: var(--display);
  font-size: clamp(50px, 6.6vw, 84px);
  line-height: 0.72;
  font-weight: 600;
  font-variation-settings: "SOFT" 90;
  color: var(--oak);
}

.section-title {
  margin: 0;
  font-family: var(--sans);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}
.section-title em {
  font-family: var(--display);
  font-style: normal;
  font-size: var(--step-h3);
  font-weight: 600;
  font-variation-settings: "SOFT" 70;
  letter-spacing: -0.01em;
  text-transform: none;
  margin-left: 8px;
  color: var(--espresso);
}

.more {
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  border-bottom: 1px solid var(--oak);
  padding-bottom: 2px;
  justify-self: end;
  color: var(--espresso);
}
.more:hover, .more:focus-visible { color: var(--navy); border-color: var(--navy); }

/* ---------- cards ---------- */

.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(14px, 1.6vw, 22px);
}
/* one post in a three-column row should not look like a mistake */
.cards > .card:only-child { grid-column: span 2; max-width: 640px; }

.card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 16px 20px;
  text-decoration: none;
  border: 1px solid var(--rule);
  border-radius: var(--r-box);
  background: rgba(255, 250, 240, 0.38);
  transition: background-color 220ms ease, transform 220ms ease, border-color 220ms ease;
}
.card:hover, .card:focus-visible {
  background: var(--tint);
  border-color: var(--rule-strong);
  transform: translateY(-3px);
}

.card-img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: 50% 45%;
  border-radius: var(--r-img);
  background: var(--sand);
  filter: sepia(0.3) saturate(0.82) contrast(1.04) brightness(1.02) hue-rotate(-6deg);
}

.card-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 4px 12px;
  border-radius: var(--r-btn);
  background: var(--navy);
  color: var(--oat);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.card h3 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 60;
  font-size: var(--step-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.card-desc {
  margin: 0;
  font-size: var(--step-sm);
  line-height: 1.55;
  color: var(--muted);
}

.card-meta {
  margin-top: auto;
  padding-top: 4px;
  font-size: var(--step-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oak);
}

.card:hover h3, .card:focus-visible h3 { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }

/* ---------- featured module (espresso spread) ---------- */

.feature {
  background: var(--espresso);
  color: #f6ecda;
  border: 0;
  border-radius: var(--r-box);
  display: grid;
  grid-template-columns: 5fr 7fr;
  align-items: stretch;
  overflow: hidden;
}

.feature-photo { margin: 0; }
.feature-photo img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
  object-position: 50% 45%;
  filter: sepia(0.32) saturate(0.8) contrast(1.05) brightness(0.98) hue-rotate(-6deg);
}

.feature-body { padding: clamp(24px, 3vw, 40px); }

.plate-kicker {
  margin: 0 0 18px;
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(242, 233, 214, 0.62);
}

.feature-name {
  margin: 0 0 14px;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 70;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: #fbf5e8;
}

.feature-body > p { margin: 0 0 22px; max-width: 40em; color: rgba(246, 236, 218, 0.84); }

.benefits {
  margin: 0 0 26px;
  padding: 0;
  list-style: none;
  border-top: 1px solid rgba(242, 233, 214, 0.24);
}
.benefits li {
  padding: 13px 0;
  border-bottom: 1px solid rgba(242, 233, 214, 0.16);
  font-size: var(--step-sm);
  line-height: 1.55;
  color: rgba(246, 236, 218, 0.7);
}
.benefits strong {
  display: block;
  margin-bottom: 2px;
  font-family: var(--display);
  font-size: var(--step-body);
  font-weight: 600;
  font-variation-settings: "SOFT" 60;
  color: #fbf5e8;
}

.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.feature-note {
  font-size: var(--step-sm);
  color: rgba(246, 236, 218, 0.64);
}
.feature .btn { background: var(--sand); border-color: var(--sand); color: var(--espresso); }
.feature .btn:hover, .feature .btn:focus-visible { background: transparent; color: var(--sand); }

/* legacy plate block, kept for reuse */
.feature-plate { padding: clamp(20px, 2.4vw, 30px); border-right: 1px solid rgba(242, 233, 214, 0.24); background: rgba(242, 233, 214, 0.06); }
.plate-name { margin: 0; font-family: var(--display); font-weight: 600; font-size: clamp(34px, 4vw, 56px); line-height: 0.95; letter-spacing: -0.02em; }
.plate-facts { margin: 22px 0 0; padding: 0; list-style: none; border-top: 1px solid rgba(242, 233, 214, 0.24); font-size: var(--step-sm); }
.plate-facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid rgba(242, 233, 214, 0.16); }
.plate-facts span { font-size: var(--step-xs); letter-spacing: 0.14em; text-transform: uppercase; color: rgba(242, 233, 214, 0.58); }
.plate-note { margin: 18px 0 0; font-size: var(--step-sm); line-height: 1.45; color: rgba(242, 233, 214, 0.62); }

/* ---------- community news ---------- */

.news { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule-strong); }

.news li {
  display: grid;
  grid-template-columns: 120px 1fr 190px;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--rule);
}

.news-date {
  font-size: var(--step-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--oak);
  padding-top: 6px;
}

.news-body h3 {
  margin: 0 0 8px;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 60;
  font-size: var(--step-h3);
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.news-body h3 a { text-decoration: none; }
.news-body h3 a:hover { text-decoration: underline; text-underline-offset: 5px; text-decoration-thickness: 1.5px; }
.news-body p { margin: 0; font-size: var(--step-sm); line-height: 1.55; color: var(--muted); max-width: 52em; }

.news-source {
  font-size: var(--step-xs);
  letter-spacing: 0.1em;
  color: var(--olive);
  text-align: right;
  padding-top: 8px;
  overflow-wrap: anywhere;
}

/* ---------- ask ---------- */

.ask {
  max-width: var(--max);
  margin: clamp(40px, 6vw, 76px) auto 0;
  padding: 0 var(--pad);
}
.ask-inner {
  background: var(--sand);
  border-radius: var(--r-box);
  padding: clamp(26px, 3vw, 42px);
  display: grid;
  grid-template-columns: 3fr 7fr;
  gap: var(--gap);
  align-items: center;
}
.ask h2 {
  margin: 0;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 80, "WONK" 1;
  font-size: var(--step-h2);
  line-height: 1.04;
  letter-spacing: -0.025em;
}
.ask-lede { margin: 8px 0 0; font-size: var(--step-sm); color: #5d4632; }

.ask-form { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; grid-column: 1 / -1; }
.ask-form label {
  flex: 0 0 100%;
  font-size: var(--step-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #5d4632;
}
.ask-form input {
  flex: 1 1 240px;
  min-height: 48px;
  padding: 0 18px;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(59, 38, 25, 0.24);
  border-radius: var(--r-btn);
  font-size: var(--step-body);
}
.ask-form input::placeholder { color: rgba(59, 38, 25, 0.5); }
.ask-form input:focus-visible { border-color: var(--espresso); outline-color: var(--espresso); }

.ask-form textarea {
  flex: 1 1 100%;
  min-height: 132px;
  padding: 14px 18px;
  background: rgba(255, 250, 240, 0.72);
  border: 1px solid rgba(59, 38, 25, 0.24);
  border-radius: var(--r-box);
  font: inherit;
  font-size: var(--step-body);
  line-height: 1.5;
  resize: vertical;
}
.ask-form textarea::placeholder { color: rgba(59, 38, 25, 0.5); }
.ask-form textarea:focus-visible { border-color: var(--espresso); outline-color: var(--espresso); }

.ask-form .btn { margin-top: 2px; }
.ask-form .btn[disabled] { opacity: 0.55; cursor: progress; transform: none; }

.ask-status {
  flex: 0 0 100%;
  margin: 4px 0 0;
  font-size: var(--step-sm);
  line-height: 1.5;
  color: #5d4632;
}
.ask-status.is-sent { color: var(--navy); font-weight: 500; }
.ask-status.is-error { color: #9b3418; }
.ask-status a { color: inherit; }

/* ---------- footer ---------- */

.foot {
  margin-top: clamp(48px, 7vw, 92px);
  background: var(--espresso);
  color: var(--oat);
  border-radius: 26px 26px 0 0;
  padding: clamp(32px, 4vw, 54px) var(--pad) 26px;
}

.foot-name {
  max-width: var(--max);
  margin: 0 auto 26px;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 90, "WONK" 1;
  font-size: clamp(44px, 9vw, 116px);
  line-height: 0.84;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #fbf5e8;
}

.foot-cols {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid rgba(242, 233, 214, 0.24);
}

.foot-note { margin: 0; max-width: 34em; font-size: var(--step-sm); line-height: 1.6; color: rgba(246, 236, 218, 0.78); }

.foot-links { display: flex; flex-wrap: wrap; gap: 18px; font-size: var(--step-xs); letter-spacing: 0.14em; text-transform: uppercase; }
.foot-links a { text-decoration: none; border-bottom: 1px solid rgba(242, 233, 214, 0.4); padding-bottom: 2px; }
.foot-links a:hover { border-color: var(--sand); color: var(--sand); }

.foot-credits {
  max-width: var(--max);
  margin: 24px auto 0;
  font-size: var(--step-xs);
  line-height: 1.65;
  color: rgba(242, 233, 214, 0.58);
}
.foot-credits a { color: rgba(242, 233, 214, 0.8); }

/* ---------- motion ---------- */

html.js [data-rv] {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 520ms ease, transform 520ms ease;
}
html.js [data-rv].rv-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  html.js [data-rv] { opacity: 1; transform: none; transition: none; }
  .card:hover, .card:focus-visible, .btn:hover, .nav-cta:hover { transform: none; }
}

/* ---------- tablet ---------- */

@media (max-width: 900px) {
  .lead {
    grid-template-columns: 1fr;
  }
  .lead-side { flex-direction: row; flex-wrap: wrap; }
  .box { flex: 1 1 240px; }
  .side-list { flex: 1 1 260px; }

  .feature { grid-template-columns: 1fr; }
  .feature-photo img { min-height: 0; height: clamp(200px, 38vw, 300px); }

  .news li { grid-template-columns: 96px 1fr; }
  .news-source { grid-column: 2; text-align: left; padding-top: 0; }

  .ask-inner { grid-template-columns: 1fr; align-items: start; }
}

/* ---------- phone ---------- */

@media (max-width: 680px) {
  .masthead { grid-template-columns: 1fr; align-items: start; gap: 12px; }
  .nav { gap: 14px; }
  .nav-cta { grid-column: 1; justify-self: start; margin-top: 0; }

  .lead-side { flex-direction: column; }
  .side-row { flex-direction: column; gap: 8px; }
  .who-cols { grid-template-columns: 1fr; }
  .lead-intro h1 { max-width: none; }

  .cards { grid-template-columns: 1fr; }
  .card { padding: 14px 14px 18px; }
  .card-img { aspect-ratio: 16 / 9; }

  .section-head { grid-template-columns: auto 1fr; row-gap: 10px; }
  .more { grid-column: 1 / -1; justify-self: start; }

  .news li { grid-template-columns: 1fr; gap: 8px; }
  .news-date, .news-source { padding-top: 0; }

  .ask-form input { flex: 1 1 100%; }
  .ask-form .btn { width: 100%; }

  .foot-cols { grid-template-columns: 1fr; }
  .foot { border-radius: 20px 20px 0 0; }
}

/* ---------- touch targets on phones ---------- */
@media (max-width: 680px) {
  .nav a,
  .more,
  .foot-links a,
  .side-list a,
  .news-body h3 a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
  }
  .nav-cta { min-height: 44px; }
  .foot-links { gap: 10px 18px; }
}

/* ---------- OCA module status table ---------- */

.oca-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  font-size: var(--step-sm);
}
.oca-table thead th {
  padding: 0 0 12px;
  text-align: left;
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  border-bottom: 1px solid var(--rule-strong);
}
.oca-table thead th:nth-child(1) { width: 54%; }
.oca-table thead th:nth-child(2) { width: 26%; }
.oca-table thead th:nth-child(3) { width: 150px; text-align: right; }
.oca-table tbody td { padding: 14px 0; border-bottom: 1px solid var(--rule); vertical-align: middle; }
.oca-name a {
  font-family: var(--display);
  font-size: var(--step-h3);
  font-weight: 600;
  font-variation-settings: "SOFT" 60;
  line-height: 1.2;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.oca-name a:hover, .oca-name a:focus-visible { text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1.5px; }
.oca-area {
  font-size: var(--step-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
}
.oca-status { text-align: right; white-space: nowrap; }
.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-btn);
  font-size: 12px;
  line-height: 1;
  color: var(--muted);
}
.mark.is-on { background: var(--olive); border-color: var(--olive); color: var(--oat); }

@media (max-width: 600px) {
  .oca-table thead th:nth-child(2),
  .oca-table .oca-area { display: none; }
  .oca-name a { font-size: var(--step-body); }
  .oca-table tbody td { padding: 12px 0; }
}

/* ---------- feed tooling (posts.json driven) ---------- */

.feed-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.feed-search {
  flex: 1 1 300px;
  min-height: 46px;
  padding: 0 20px;
  background: rgba(255, 250, 240, 0.6);
  border: 1px solid var(--rule-strong);
  border-radius: var(--r-btn);
  font-size: var(--step-body);
  color: var(--espresso);
}
.feed-search::placeholder { color: rgba(59, 38, 25, 0.5); }
.feed-search:focus-visible { border-color: var(--espresso); outline-color: var(--espresso); }

.feed-count {
  font-size: var(--step-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

.feed-empty {
  margin: 0;
  padding: 22px 20px;
  border: 1px dashed var(--rule-strong);
  border-radius: var(--r-box);
  font-size: var(--step-sm);
  color: var(--muted);
}

/* ---------- single post page ---------- */

.post { padding-bottom: clamp(40px, 6vw, 72px); }
.post-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  font-size: var(--step-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-title {
  max-width: 22em;
  margin: 0 0 26px;
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 70, "WONK" 1;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.post-image {
  width: 100%;
  height: auto;
  border-radius: var(--r-img);
  margin-bottom: 28px;
  filter: sepia(0.18) saturate(0.9) contrast(1.03);
}
.post-body { max-width: 40em; font-size: var(--step-lead); line-height: 1.68; }
.post-body h2, .post-body h3 {
  font-family: var(--display);
  font-variation-settings: "SOFT" 60;
  letter-spacing: -0.02em;
  margin: 1.6em 0 0.5em;
}
.post-body p { margin: 0 0 1.1em; }
.post-body img { border-radius: var(--r-img); margin: 1.4em 0; }
.post-body a { text-decoration-color: var(--oak); text-underline-offset: 3px; }
.post-body code, .post-body pre {
  background: rgba(59, 38, 25, 0.08);
  border-radius: 8px;
  padding: 0.1em 0.35em;
  font-size: 0.9em;
}
.post-body pre { padding: 16px 18px; overflow-x: auto; }
.post-note {
  max-width: 40em;
  margin: 40px 0 0;
  padding-top: 16px;
  border-top: 1px solid var(--rule);
  font-size: var(--step-sm);
  color: var(--muted);
}

/* ---------- sponsor strip: one centred line under the masthead, one in the footer ---------- */
.sponsor { border-bottom: 1px solid var(--rule); }
.sponsor p {
  max-width: var(--max);
  margin: 0 auto;
  padding: 10px var(--pad) 11px;
  text-align: center;
  font-size: var(--step-sm);
  line-height: 1.35;
  color: var(--muted);
}
.sponsor a {
  color: var(--ink);
  text-decoration-color: var(--oak);
  text-underline-offset: 3px;
}
.sponsor a:hover { color: var(--navy); }
.sponsor-foot {
  max-width: var(--max);
  margin: 22px auto 0;
  text-align: center;
  font-size: var(--step-sm);
  color: rgba(246, 236, 218, 0.72);
}
.sponsor-foot a { color: rgba(246, 236, 218, 0.92); text-decoration-color: var(--oak); text-underline-offset: 3px; }
.sponsor-foot a:hover { color: var(--sand); }

/* ---------- featured module ---------- */
.featured-card {
  background: var(--tint);
  border: 1px solid var(--rule);
  border-radius: var(--r-box);
  padding: clamp(20px, 3vw, 34px);
  max-width: 46em;
}
.featured-kicker {
  margin: 0 0 6px;
  font-size: var(--step-xs);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--oak);
  font-weight: 600;
}
.featured-name {
  margin: 0 0 10px;
  font-family: var(--display);
  font-weight: 600;
  font-size: var(--step-h3);
  letter-spacing: -0.01em;
}
.featured-name a { text-decoration: none; color: var(--ink); }
.featured-name a:hover { color: var(--navy); text-decoration: underline; text-underline-offset: 4px; }
.featured-note { margin: 0 0 14px; color: var(--muted); font-size: var(--step-body); max-width: 38em; }
.featured-branches { margin: 0; display: flex; align-items: center; gap: 8px; }
.branch-label {
  font-size: var(--step-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.branch {
  font-size: var(--step-xs);
  letter-spacing: 0.08em;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--rule);
  color: var(--muted);
}
.branch.is-on {
  border-color: var(--olive);
  color: #46512f;
  background: rgba(116, 117, 82, 0.14);
  font-weight: 600;
}

/* ---------- related posts at the foot of an article ---------- */
.post-next {
  margin: clamp(34px, 4vw, 48px) 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--rule);
}
.post-next-kicker {
  margin: 0 0 12px;
  font-size: var(--step-xs);
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.post-next ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.post-next li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule);
}
.post-next li:last-child { border-bottom: 0; padding-bottom: 0; }
.post-next a {
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.3;
  color: var(--espresso);
  text-decoration-color: var(--oak);
  text-underline-offset: 3px;
}
.post-next a:hover, .post-next a:focus-visible { color: var(--navy); }
.post-next-meta {
  font-size: var(--step-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  white-space: nowrap;
}

/* ---------- language switch: real links, the current one marked ---------- */
.lang { display: inline-flex; flex-wrap: wrap; gap: 10px; }
.lang a {
  color: var(--muted);
  text-decoration: none;
  padding-bottom: 1px;
  border-bottom: 1px solid transparent;
}
.lang a:hover { color: var(--navy); border-bottom-color: var(--oak); }
.lang a[aria-current="true"] { color: var(--espresso); border-bottom-color: var(--oak); }

/* ---------- all-posts index ---------- */
.posts-index { max-width: var(--max); margin: 0 auto; padding: clamp(28px, 4vw, 52px) var(--pad) 0; }
.posts-index h1 { margin: 0 0 10px; font-size: clamp(30px, 4vw, 46px); line-height: 1.05; }
.posts-index .lede { max-width: 40em; margin: 0 0 28px; font-size: var(--step-sm); color: var(--muted); }

/* note above a feed on the translated pages: the posts themselves are English */
.feed-lang-note {
  margin: 0 0 14px;
  font-size: var(--step-sm);
  color: var(--muted);
}

/* ---------- the video shelf ---------- */
.video-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0 0 18px;
}
.video-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(16px, 2vw, 26px);
}
.video-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  border: 1px solid var(--rule);
  border-radius: var(--r-box);
  overflow: hidden;
  background: rgba(255, 250, 240, 0.55);
  transition: border-color 160ms ease, transform 160ms ease;
}
.video-card:hover, .video-card:focus-visible { border-color: var(--oak); transform: translateY(-2px); }
.video-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  background: var(--espresso);
  overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff7ec;
  font-size: 20px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}
.video-play { z-index: 1; pointer-events: none; font-size: 0; }
.video-play::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 52px;
  height: 52px;
  margin: -26px 0 0 -26px;
  border-radius: 50%;
  background: #b76d48;
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.65);
  transition: transform 160ms ease, background-color 160ms ease;
}
.video-play::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  margin: -9px 0 0 -5px;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #fff7ec;
}
.video-card:hover .video-play::before, .video-card:focus-visible .video-play::before {
  transform: scale(1.06);
  background: var(--espresso);
}
.video-body { display: block; padding: 14px 16px 16px; }
.video-title {
  display: block;
  font-family: var(--display);
  font-size: 18px;
  line-height: 1.28;
  color: var(--espresso);
}
.video-meta {
  display: block;
  margin-top: 8px;
  font-size: var(--step-xs);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.video-player {
  aspect-ratio: 16 / 9;
  border-radius: var(--r-box);
  overflow: hidden;
  background: #000;
}
.video-player iframe { display: block; width: 100%; height: 100%; border: 0; }
.video-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 22px 0 0;
}
.video-page {
  min-width: 40px;
  min-height: 40px;
  padding: 0 12px;
  background: transparent;
  border: 1px solid var(--rule-strong, rgba(59, 38, 25, 0.28));
  border-radius: var(--r-btn);
  font: inherit;
  font-size: var(--step-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--espresso);
  cursor: pointer;
}
.video-page:hover:not(:disabled), .video-page:focus-visible { border-color: var(--oak); color: var(--navy); }
.video-page[aria-current="true"] { background: var(--espresso); border-color: var(--espresso); color: var(--oat); }
.video-page:disabled { opacity: 0.4; cursor: default; }

@media (max-width: 900px) {
  .video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  .video-grid { grid-template-columns: 1fr; }
}

/* vertical (Shorts) players: 9:16, capped, and not stretched across the page */
.video-player--vertical {
  aspect-ratio: 9 / 16;
  max-width: 380px;
  margin: 0 auto;
}

/* ---------- click-to-load facade used on guide pages ---------- */
.video-facade {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: var(--r-box);
  overflow: hidden;
  background: var(--espresso);
  cursor: pointer;
  position: relative;
  aspect-ratio: 16 / 9;
}
.video-facade img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video-facade--vertical {
  aspect-ratio: 9 / 16;
  max-width: 380px;
  margin: 0 auto;
}
.video-facade:hover .video-play::before, .video-facade:focus-visible .video-play::before {
  transform: scale(1.06);
  background: var(--espresso);
}

/* ---------- a line pointing at the accounting guide ---------- */
.guide-link { margin: 14px 0 0; font-size: var(--step-sm); }
.guide-link a { color: var(--espresso); text-decoration-color: var(--oak); text-underline-offset: 3px; }
.post-guide {
  margin: 26px 0 0;
  padding: 12px 16px;
  border-left: 3px solid var(--terracotta);
  background: rgba(183, 109, 72, 0.08);
  font-size: var(--step-sm);
  line-height: 1.55;
}
.post-guide a { color: var(--espresso); }

/* ---------- release-notes landing pages (/odoo-20-community/, /de/, /es/) ----------
   The copy separates what we ran ourselves from what Odoo announces. The mark is
   information, so it sits in a fixed left column of each entry and scans down the page. */
.entry {
  display: grid;
  grid-template-columns: 9.5em minmax(0, 1fr);
  gap: 6px 22px;
  padding: 20px 0;
  border-top: 1px solid var(--rule);
}
.entry:last-of-type { border-bottom: 1px solid var(--rule); }
.post-body .entry p { margin: 0; }
/* an entry without a "tried it" mark leaves the mark column empty but keeps the
   text on the same left edge as the marked ones */
.entry > :not(.entry-mark) { grid-column: 2; }
.entry-mark {
  justify-self: start;
  align-self: start;
  margin: 2px 0 0;
  padding: 5px 9px 4px;
  background: var(--espresso);
  color: var(--oat);
  border-radius: 3px;
  font-family: var(--sans);
  font-size: var(--step-xs);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.15;
}
.entry-mark--quiet {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--rule-strong);
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: none;
}
.legend {
  margin: 0 0 26px;
  padding: 16px 18px;
  background: rgba(255, 250, 240, 0.5);
  border: 1px solid var(--rule);
  border-radius: var(--r-box);
  font-size: var(--step-sm);
  line-height: 1.55;
  color: var(--espresso);
}
.legend .entry-mark { display: inline-block; vertical-align: 1px; margin-right: 4px; }
.post-body .lang-row {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 18px;
  font-size: var(--step-sm);
}
.post-body .lang-row a { text-decoration-color: var(--oak); text-underline-offset: 3px; }
.post-body .lang-row a[aria-current="true"] { color: var(--muted); text-decoration: none; }
@media (max-width: 640px) {
  .entry { grid-template-columns: minmax(0, 1fr); }
  .entry > :not(.entry-mark) { grid-column: 1; }
}
