/* RoomParentHub design system. Classroom bright, notice board cards, pushpin details. */

:root {
  --bg: #F8FAFD;
  --surface: #FFFFFF;
  --ink: #1A1F26;
  --primary: #2F6FA8;
  --accent: #FF9E80;
  --muted: #5D666F;

  --primary-100: #EAF2F9;
  --primary-200: #D3E4F2;
  --primary-300: #A9C8E2;
  --primary-500: #2F6FA8;
  --primary-600: #24587F;
  --accent-100: #FFF0EA;
  --accent-200: #FFDCCE;
  --accent-400: #FF9E80;
  --paper: #FDFEFF;
  --line: #DCE5EE;
  --line-strong: #C3D2E0;

  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;

  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;
  --s8: 72px;
  --s9: 104px;

  --shadow-pin: 0 10px 24px rgba(26, 31, 38, 0.09);
  --shadow-card: 0 2px 0 var(--line), 0 14px 30px rgba(47, 111, 168, 0.08);
  --shadow-lift: 0 20px 44px rgba(47, 111, 168, 0.16);

  --font-display: "Gantari", "Trebuchet MS", "Segoe UI", sans-serif;
  --font-body: "Source Sans 3", "Source Sans Pro", Calibri, system-ui, sans-serif;

  --step--1: clamp(0.86rem, 0.84rem + 0.1vw, 0.94rem);
  --step-0: clamp(1rem, 0.97rem + 0.16vw, 1.12rem);
  --step-1: clamp(1.18rem, 1.1rem + 0.4vw, 1.4rem);
  --step-2: clamp(1.42rem, 1.28rem + 0.7vw, 1.85rem);
  --step-3: clamp(1.75rem, 1.5rem + 1.2vw, 2.5rem);
  --step-4: clamp(2.15rem, 1.7rem + 2.2vw, 3.5rem);

  --wrap: 1200px;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 92px; }

body {
  margin: 0;
  background-color: var(--bg);
  background-image:
    linear-gradient(90deg, rgba(47, 111, 168, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(47, 111, 168, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: var(--step-0);
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .wordmark, .stat-num, .price-figure {
  font-family: var(--font-display);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
}

h1 { font-size: var(--step-4); font-weight: 800; margin: 0 0 var(--s4); }
h2 { font-size: var(--step-3); font-weight: 700; margin: 0 0 var(--s4); }
h3 { font-size: var(--step-1); font-weight: 700; margin: 0 0 var(--s2); }
p { margin: 0 0 var(--s4); }
a { color: var(--primary-600); }
img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2.5rem, var(--wrap)); margin-inline: auto; }
.section { padding: var(--s8) 0; }
.section--tint { background-color: var(--primary-100); }
.section--paper { background-color: var(--surface); }
.lede { font-size: var(--step-1); color: var(--muted); max-width: 62ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--step--1);
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--primary-600);
  background-color: var(--primary-100);
  border: 1px solid var(--primary-200);
  border-radius: 999px; padding: 6px 14px; margin-bottom: var(--s4);
}
.eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background-color: var(--accent-400);
  box-shadow: 0 0 0 3px var(--accent-100);
}
.section-head { max-width: 64ch; margin-bottom: var(--s7); }

/* ---------- skip link ---------- */
.skip-link {
  position: absolute; left: var(--s4); top: -60px; z-index: 200;
  background-color: var(--surface); color: var(--primary-600);
  border: 2px solid var(--primary); border-radius: var(--radius-sm);
  padding: 10px 16px; font-weight: 700; text-decoration: none;
  transition: top 0.18s ease;
}
.skip-link:focus { top: var(--s3); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-0);
  border-radius: 999px; padding: 13px 26px; text-decoration: none; cursor: pointer;
  border: 2px solid transparent; transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;
}
.btn--primary { background-color: var(--primary); color: #FFFFFF; box-shadow: 0 8px 18px rgba(47, 111, 168, 0.25); }
.btn--primary:hover { background-color: var(--primary-600); transform: translateY(-2px); }
.btn--ghost { background-color: var(--surface); color: var(--primary-600); border-color: var(--primary-300); }
.btn--ghost:hover { border-color: var(--primary); transform: translateY(-2px); }
.btn--coral { background-color: var(--accent-400); color: #43220F; }
.btn--coral:hover { background-color: #FFB79F; transform: translateY(-2px); }
.btn--wide { width: 100%; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background-color: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header.is-stuck { box-shadow: 0 6px 20px rgba(26, 31, 38, 0.07); }
.header-inner { display: flex; align-items: center; gap: var(--s5); min-height: 74px; }
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.2rem; text-decoration: none; color: var(--ink); }
.wordmark svg { width: 34px; height: 34px; }
.wordmark span em { font-style: normal; color: var(--primary); }
.site-nav { margin-left: auto; }
.site-nav ul { display: flex; gap: var(--s5); list-style: none; margin: 0; padding: 0; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; padding: 6px 0; border-bottom: 2px solid transparent; }
.site-nav a:hover { border-bottom-color: var(--accent-400); }
.header-cta { margin-left: var(--s4); }
.nav-toggle {
  display: none; margin-left: auto; background-color: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  width: 44px; height: 44px; align-items: center; justify-content: center; cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* ---------- notice board cards ---------- */
.card {
  position: relative;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--s6) var(--s5) var(--s5);
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.card:hover { transform: translateY(-4px) rotate(-0.35deg); box-shadow: var(--shadow-lift); }
.card--pinned::before,
.card--pinned::after {
  content: ""; position: absolute; left: 50%; transform: translateX(-50%);
}
.card--pinned::before {
  top: -9px; width: 18px; height: 18px; border-radius: 50%;
  background-image: radial-gradient(circle at 34% 32%, #FFC9B6 0 34%, var(--accent-400) 36% 100%);
  box-shadow: var(--shadow-pin);
}
.card--pinned::after {
  top: 8px; width: 3px; height: 12px; border-radius: 2px;
  background-color: var(--line-strong);
}
.card p:last-child { margin-bottom: 0; }
.grid { display: grid; gap: var(--s5); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--2 { grid-template-columns: repeat(2, 1fr); }

/* ---------- hero ---------- */
.hero { padding: var(--s8) 0 var(--s8); position: relative; overflow: hidden; }
.hero::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background-image: repeating-linear-gradient(90deg, var(--accent-400) 0 22px, var(--primary-200) 22px 44px);
  opacity: 0.6;
}
.hero-grid { display: grid; grid-template-columns: 1.06fr 1fr; gap: var(--s8); align-items: center; }
.hero p.lede { margin-bottom: var(--s5); }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-bottom: var(--s6); }
.trust-strip { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; margin: 0; padding: var(--s4) 0 0; border-top: 1px dashed var(--line-strong); }
.trust-strip li { display: flex; align-items: center; gap: 9px; font-weight: 600; color: var(--muted); font-size: var(--step--1); }
.trust-strip svg { width: 19px; height: 19px; flex: none; }
.hero-figure { position: relative; }
.hero-figure img {
  border-radius: var(--radius-lg); border: 8px solid var(--surface);
  box-shadow: var(--shadow-lift); transform: rotate(0.8deg);
}
.hero-figure::before {
  content: ""; position: absolute; z-index: 2; top: -14px; right: 42px;
  width: 26px; height: 26px; border-radius: 50%;
  background-image: radial-gradient(circle at 34% 32%, #7FB3DE 0 32%, var(--primary) 34% 100%);
  box-shadow: var(--shadow-pin);
}
.hero-tag {
  position: absolute; left: -18px; bottom: 26px; z-index: 3;
  background-color: var(--surface); border: 1px solid var(--line);
  border-left: 5px solid var(--accent-400);
  border-radius: var(--radius); padding: var(--s3) var(--s4);
  box-shadow: var(--shadow-pin); font-size: var(--step--1); font-weight: 600; max-width: 230px;
}
.hero-tag strong { display: block; font-family: var(--font-display); font-size: 1.5rem; color: var(--primary-600); }

/* ---------- checklist motif ---------- */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s3); }
.checklist li { display: flex; gap: var(--s3); align-items: flex-start; }
.checklist svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
.check-path { stroke-dasharray: 26; stroke-dashoffset: 26; }
.is-visible .check-path { animation: drawCheck 0.55s ease forwards; }
@keyframes drawCheck { to { stroke-dashoffset: 0; } }

/* ---------- problem cards ---------- */
.cost {
  display: inline-block; margin-top: var(--s3); font-family: var(--font-display);
  font-weight: 700; color: var(--primary-600); background-color: var(--primary-100);
  border-radius: var(--radius-sm); padding: 4px 10px; font-size: var(--step--1);
}

/* ---------- steps ---------- */
.steps { counter-reset: step; display: grid; gap: var(--s5); }
.step { display: grid; grid-template-columns: 56px 1fr; gap: var(--s4); align-items: start; }
.step-num {
  counter-increment: step; width: 56px; height: 56px; border-radius: 14px;
  background-color: var(--surface); border: 2px solid var(--primary-200);
  display: grid; place-items: center; font-family: var(--font-display);
  font-weight: 800; font-size: 1.4rem; color: var(--primary-600);
  box-shadow: var(--shadow-pin);
}
.step-num::before { content: counter(step); }
.how-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--s8); align-items: center; }
.how-figure img { border-radius: var(--radius-lg); border: 8px solid var(--surface); box-shadow: var(--shadow-lift); transform: rotate(-0.9deg); }

/* ---------- features ---------- */
.feature .icon-badge {
  width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center;
  background-color: var(--primary-100); border: 1px solid var(--primary-200); margin-bottom: var(--s4);
}
.icon-badge svg { width: 26px; height: 26px; }
.ico { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--primary-600); }
.ico--coral { color: #C2542F; }

/* ---------- outcomes ---------- */
.outcome { border-left: 4px solid var(--accent-400); padding-left: var(--s5); }
.stat-num { font-size: var(--step-4); font-weight: 800; color: var(--primary-600); display: block; line-height: 1; margin-bottom: var(--s2); }

/* ---------- testimonials ---------- */
.testimonial {
  background-color: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--s6) var(--s5) var(--s5);
  box-shadow: var(--shadow-card); margin: 0; position: relative;
}
.testimonial::before {
  content: ""; position: absolute; top: -9px; left: 26px; width: 18px; height: 18px; border-radius: 50%;
  background-image: radial-gradient(circle at 34% 32%, #A9CDEA 0 34%, var(--primary) 36% 100%);
  box-shadow: var(--shadow-pin);
}
.testimonial p { font-size: var(--step-1); line-height: 1.5; }
.testimonial figcaption { border-top: 1px dashed var(--line-strong); padding-top: var(--s3); font-size: var(--step--1); color: var(--muted); }
.testimonial figcaption strong { display: block; color: var(--ink); font-family: var(--font-display); font-size: var(--step-0); }
.results {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5);
  margin-top: var(--s7); background-color: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s6);
}
.results div { text-align: center; }
.results .stat-num { font-size: var(--step-3); }

/* ---------- pricing ---------- */
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); align-items: start; }
.tier { background-color: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: var(--s6); box-shadow: var(--shadow-card); }
.tier--rec { border: 2px solid var(--primary); box-shadow: var(--shadow-lift); position: relative; }
.tier--rec::after {
  content: "Recommended"; position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background-color: var(--accent-400); color: #43220F; font-family: var(--font-display);
  font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase;
  border-radius: 999px; padding: 5px 16px; white-space: nowrap;
}
.price-figure { font-size: var(--step-4); font-weight: 800; color: var(--primary-600); }
.price-figure small { font-family: var(--font-body); font-size: var(--step--1); font-weight: 600; color: var(--muted); }
.tier ul { list-style: none; margin: var(--s5) 0; padding: 0; display: grid; gap: var(--s3); }
.tier li { display: flex; gap: 10px; align-items: flex-start; font-size: var(--step--1); }
.tier li svg { width: 19px; height: 19px; flex: none; margin-top: 3px; }
.billing-note { margin-top: var(--s5); font-size: var(--step--1); color: var(--muted); text-align: center; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 860px; }
.faq-item { border-bottom: 1px solid var(--line-strong); background-color: var(--surface); }
.faq-item:first-child { border-top: 1px solid var(--line-strong); }
.faq-q {
  width: 100%; text-align: left; background-color: transparent; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--ink);
  padding: var(--s5) var(--s6) var(--s5) var(--s4); position: relative;
}
.faq-q::after {
  content: ""; position: absolute; right: var(--s4); top: 50%; width: 12px; height: 12px;
  border-right: 2px solid var(--primary); border-bottom: 2px solid var(--primary);
  transform: translateY(-70%) rotate(45deg); transition: transform 0.2s ease;
}
.faq-q[aria-expanded="true"]::after { transform: translateY(-20%) rotate(-135deg); }
.faq-a { padding: 0 var(--s6) var(--s5) var(--s4); color: var(--muted); }
.faq-a p:last-child { margin-bottom: 0; }

/* ---------- form ---------- */
.form-panel { background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s7); box-shadow: var(--shadow-card); }
.field { margin-bottom: var(--s4); }
.field label { display: block; font-weight: 700; margin-bottom: 6px; font-size: var(--step--1); }
.field input, .field select, .field textarea {
  width: 100%; font: inherit; font-size: var(--step-0); color: var(--ink);
  background-color: var(--paper); border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm); padding: 11px 13px;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--primary); }
.field [aria-invalid="true"] { border-color: #B23A17; background-color: var(--accent-100); }
.err { display: block; color: #96300F; font-size: var(--step--1); font-weight: 600; margin-top: 5px; min-height: 1px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); }
.consent { display: flex; gap: 10px; align-items: flex-start; }
.consent input { width: 20px; height: 20px; flex: none; margin-top: 3px; }
.consent label { font-weight: 500; }
.form-note { margin-top: var(--s4); font-size: var(--step--1); color: var(--muted); }
.contact-aside ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s4); }

/* ---------- author byline ---------- */
.byline {
  display: flex; gap: var(--s4); align-items: center; flex-wrap: wrap;
  background-color: var(--primary-100); border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg); padding: var(--s5); margin-top: var(--s7);
}
.byline img { width: 76px; height: 76px; border-radius: 50%; border: 3px solid var(--surface); }
.byline p { margin: 0; flex: 1 1 260px; color: var(--muted); }

/* ---------- footer ---------- */
.site-footer { background-color: var(--primary-100); border-top: 3px solid var(--primary-200); padding: var(--s8) 0 var(--s5); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: var(--s6); }
.footer-col h2, .footer-col h3 { font-size: var(--step-0); text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: var(--s4); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--ink); text-decoration: none; }
.footer-col a:hover { text-decoration: underline; }
.socials { display: flex; gap: 10px; margin-top: var(--s4); }
.socials a {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background-color: var(--surface); border: 1px solid var(--primary-200);
}
.socials svg { width: 19px; height: 19px; }
.footer-base {
  margin-top: var(--s7); padding-top: var(--s4); border-top: 1px solid var(--primary-200);
  display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: space-between;
  font-size: var(--step--1); color: var(--muted);
}

/* ---------- prose pages ---------- */
.prose { max-width: 76ch; }
.prose h2 { font-size: var(--step-2); margin-top: var(--s7); }
.prose h3 { margin-top: var(--s5); }
.prose ul, .prose ol { padding-left: 1.3rem; }
.prose li { margin-bottom: 8px; }
.page-head { padding: var(--s8) 0 var(--s5); border-bottom: 1px solid var(--line); background-color: var(--surface); }
.map-group { background-color: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s5); box-shadow: var(--shadow-card); }
.map-group ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.map-group li span { display: block; color: var(--muted); font-size: var(--step--1); }

/* ---------- reveal motion: cards pin onto the board ---------- */
.reveal { opacity: 0; transform: translateY(22px) rotate(-1.2deg); transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.22, 1.1, 0.36, 1); }
.reveal.is-visible { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .how-grid { grid-template-columns: 1fr; gap: var(--s6); }
  .grid--3, .tiers, .results { grid-template-columns: 1fr; }
  .grid--2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .nav-toggle { display: inline-flex; }
  .site-nav { display: none; margin-left: 0; width: 100%; }
  .site-nav.is-open { display: block; padding-bottom: var(--s4); }
  .site-nav ul { flex-direction: column; gap: var(--s3); }
  .header-inner { flex-wrap: wrap; padding: var(--s3) 0; }
  .header-cta { display: none; }
  .hero-tag { position: static; max-width: none; margin-top: var(--s4); }
}
@media (max-width: 560px) {
  .footer-grid { grid-template-columns: 1fr; }
  .field-row { grid-template-columns: 1fr; }
  .form-panel { padding: var(--s5); }
  .section { padding: var(--s7) 0; }
}

@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;
  }
  .reveal { opacity: 1; transform: none; }
  .check-path { stroke-dashoffset: 0; }
}

/* ================================================================
   The Class List: the magazine
   Light only, built from the tokens above. Notice board vocabulary.
   ================================================================ */

/* ---------- breadcrumb ---------- */
.mag-crumbs { padding: var(--s5) 0 0; }
.mag-crumbs ol {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; gap: var(--s2) var(--s3);
  font-size: var(--step--1); color: var(--muted);
}
.mag-crumbs li { display: flex; align-items: center; gap: var(--s3); max-width: 100%; }
.mag-crumbs li + li::before {
  content: ""; width: 6px; height: 6px; border-radius: 50%;
  background-color: var(--line-strong); flex: none;
}
.mag-crumbs a { color: var(--primary-600); text-decoration: none; font-weight: 600; }
.mag-crumbs a:hover { text-decoration: underline; }
.mag-crumbs [aria-current="page"] {
  color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 46ch;
}

/* ---------- magazine masthead ---------- */
.mag-masthead {
  background-color: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: var(--s7) 0 var(--s7);
  position: relative;
}
.mag-masthead::after {
  content: ""; position: absolute; inset: auto 0 0 0; height: 5px;
  background-image: repeating-linear-gradient(90deg, var(--accent-400) 0 22px, var(--primary-200) 22px 44px);
  opacity: 0.6;
}
.mag-masthead h1 { max-width: 18ch; }
.mag-masthead-meta { color: var(--muted); font-size: var(--step--1); margin: 0; }

.mag-standfirst {
  font-family: var(--font-body);
  font-size: var(--step-1);
  line-height: 1.5;
  color: var(--muted);
  max-width: 62ch;
  margin: 0 0 var(--s5);
}

/* ---------- index grid ---------- */
.mag-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s6) var(--s5); }
.mag-index-foot {
  margin: var(--s7) 0 0; padding-top: var(--s5);
  border-top: 1px dashed var(--line-strong);
  color: var(--muted); max-width: 68ch;
}

.mag-card {
  position: relative;
  display: flex; flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mag-card:hover { transform: translateY(-4px) rotate(-0.3deg); box-shadow: var(--shadow-lift); }
.mag-card::before {
  content: ""; position: absolute; z-index: 2; top: 12px; left: 50%; transform: translateX(-50%);
  width: 16px; height: 16px; border-radius: 50%;
  background-image: radial-gradient(circle at 34% 32%, #FFC9B6 0 34%, var(--accent-400) 36% 100%);
  box-shadow: var(--shadow-pin);
}
.mag-card-media { display: block; background-color: var(--primary-100); }
.mag-card-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.mag-card-body { padding: var(--s5); display: flex; flex-direction: column; gap: var(--s3); flex: 1; }
.mag-kicker {
  margin: 0; font-family: var(--font-display); font-weight: 700;
  font-size: 0.76rem; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--primary-600);
}
.mag-card-title { font-size: var(--step-1); margin: 0; }
.mag-card-title a { color: var(--ink); text-decoration: none; }
.mag-card-title a:hover { color: var(--primary-600); text-decoration: underline; text-underline-offset: 3px; }
.mag-card-dek { margin: 0; color: var(--muted); font-size: var(--step--1); }
.mag-card-meta {
  margin: auto 0 0; padding-top: var(--s3);
  border-top: 1px dashed var(--line-strong);
  display: flex; align-items: center; gap: var(--s3);
  font-size: var(--step--1); font-weight: 600; color: var(--muted);
}
.mag-dot {
  display: inline-block; width: 5px; height: 5px; border-radius: 50%;
  background-color: var(--accent-400); flex: none;
}

.mag-card.lead { grid-column: 1 / -1; flex-direction: row; align-items: stretch; }
.mag-card.lead .mag-card-media { flex: 1 1 56%; }
.mag-card.lead .mag-card-media img { height: 100%; aspect-ratio: auto; min-height: 320px; }
.mag-card.lead .mag-card-body { flex: 1 1 44%; padding: var(--s7) var(--s6); justify-content: center; }
.mag-card.lead .mag-card-title { font-size: var(--step-3); }
.mag-card.lead .mag-card-dek { font-size: var(--step-0); }
.mag-card.lead::before { left: 40px; transform: none; }

/* ---------- article header ---------- */
.mag-article { padding: var(--s6) 0 var(--s8); }
.mag-head { max-width: 74ch; }
.mag-head h1 { font-size: var(--step-3); max-width: 22ch; max-width: 26ch; }
.mag-byline {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3) var(--s5);
  padding: var(--s4) 0; margin-bottom: var(--s6);
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.mag-byline p { margin: 0; }
.mag-byline-who { font-family: var(--font-display); font-weight: 700; font-size: var(--step-0); }
.mag-byline-who a { color: var(--primary-600); text-decoration: none; }
.mag-byline-who a:hover { text-decoration: underline; }
.mag-byline-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s3);
  font-size: var(--step--1); color: var(--muted); font-weight: 600;
}

.mag-figure { margin: 0 0 var(--s7); }
.mag-figure img {
  width: 100%; border-radius: var(--radius-lg);
  border: 8px solid var(--surface); box-shadow: var(--shadow-lift);
}
.mag-figure figcaption {
  margin-top: var(--s3); font-size: var(--step--1); color: var(--muted);
  border-left: 4px solid var(--accent-400); padding-left: var(--s3);
}

/* ---------- article body typography ---------- */
.mag-body { max-width: 68ch; font-size: 1.06rem; line-height: 1.72; }
.mag-body > p { margin: 0 0 var(--s5); }
.mag-body h2 { font-size: var(--step-2); margin: var(--s7) 0 var(--s4); }
.mag-body h3 { font-size: var(--step-1); margin: var(--s6) 0 var(--s3); }
.mag-body ul, .mag-body ol { padding-left: 1.3rem; margin: 0 0 var(--s5); }
.mag-body li { margin-bottom: var(--s3); }
.mag-body a { color: var(--primary-600); text-underline-offset: 3px; }
.mag-body strong { color: var(--ink); }
.mag-body blockquote {
  margin: var(--s6) 0; padding: var(--s5) var(--s5) var(--s5) var(--s6);
  background-color: var(--primary-100);
  border-left: 5px solid var(--primary);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-size: var(--step-1); line-height: 1.5;
}
.mag-body blockquote p:last-child { margin-bottom: 0; }
.mag-body table {
  width: 100%; border-collapse: collapse; margin: var(--s5) 0;
  font-size: var(--step--1); background-color: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.mag-body th, .mag-body td { text-align: left; padding: 10px 13px; border-bottom: 1px solid var(--line); }
.mag-body th { background-color: var(--primary-100); font-family: var(--font-display); }
.mag-body tr:last-child td { border-bottom: 0; }

.inline-read {
  margin: var(--s5) 0; padding: var(--s4) var(--s5);
  background-color: var(--accent-100);
  border: 1px solid var(--accent-200);
  border-radius: var(--radius);
  font-size: var(--step--1); font-weight: 600; color: #7A3C22;
}
.inline-read a { color: var(--primary-600); }

/* ---------- call to action ---------- */
.mag-cta {
  margin: var(--s7) 0 0; padding: var(--s6);
  background-color: var(--primary-100);
  border: 1px solid var(--primary-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.mag-cta h2 { font-size: var(--step-2); margin: 0 0 var(--s3); }
.mag-cta p { color: var(--muted); }
.mag-cta p:last-child { margin: var(--s5) 0 0; }

/* ---------- author box ---------- */
.mag-author {
  margin-top: var(--s6); padding: var(--s6);
  display: grid; grid-template-columns: 120px 1fr; gap: var(--s5);
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-left: 5px solid var(--accent-400);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}
.mag-author img { width: 120px; height: 120px; border-radius: 50%; border: 4px solid var(--primary-100); object-fit: cover; }
.mag-author h2 { font-size: var(--step-1); margin: 0 0 var(--s3); }
.mag-author p { font-size: var(--step--1); color: var(--muted); margin: 0 0 var(--s3); }
.mag-author p:last-child { margin: 0; }
.mag-author a { color: var(--primary-600); font-weight: 600; }

/* ---------- Read also ---------- */
.mag-related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.mag-rel {
  display: flex; flex-direction: column;
  background-color: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mag-rel:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.mag-rel-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.mag-rel-body { padding: var(--s5); }
.mag-rel-title { font-size: var(--step-0); margin: 0 0 var(--s2); line-height: 1.3; }
.mag-rel-title a { color: var(--ink); text-decoration: none; }
.mag-rel-title a:hover { color: var(--primary-600); text-decoration: underline; }
.mag-rel-dek { font-size: var(--step--1); color: var(--muted); margin: 0 0 var(--s3); }
.mag-rel-meta { font-size: var(--step--1); color: var(--muted); margin: 0; font-weight: 600; }
.mag-related-all { margin: var(--s6) 0 0; font-weight: 600; }
.mag-related-all a { color: var(--primary-600); }

/* ---------- home page magazine teaser ---------- */
.mag-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s5); }
.mag-teaser-all { margin: var(--s6) 0 0; font-weight: 600; }
.mag-teaser-all a { color: var(--primary-600); }

/* ---------- author page article list ---------- */
.mag-list { list-style: none; margin: var(--s5) 0 0; padding: 0; display: grid; gap: var(--s3); }
.mag-list li {
  background-color: var(--surface); border: 1px solid var(--line);
  border-left: 4px solid var(--primary-300);
  border-radius: var(--radius-sm); padding: var(--s4) var(--s5);
}
.mag-list a { color: var(--primary-600); font-weight: 600; text-decoration: none; }
.mag-list a:hover { text-decoration: underline; }
.mag-list time { display: block; color: var(--muted); font-size: var(--step--1); margin-top: 4px; }

/* ---------- magazine responsive ---------- */
@media (max-width: 960px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr 1fr; }
  .mag-card.lead { flex-direction: column; }
  .mag-card.lead .mag-card-media img { min-height: 0; aspect-ratio: 3 / 2; }
  .mag-card.lead .mag-card-body { padding: var(--s5); }
  .mag-card.lead::before { left: 50%; transform: translateX(-50%); }
}
@media (max-width: 620px) {
  .mag-grid, .mag-related-grid, .mag-teaser-grid { grid-template-columns: 1fr; }
  .mag-article { padding: var(--s5) 0 var(--s7); }
  .mag-head h1 { font-size: var(--step-2); }
  .mag-figure img { border-width: 5px; }
  .mag-cta { padding: var(--s5); }
  .mag-author { grid-template-columns: 1fr; padding: var(--s5); }
  .mag-author img { width: 92px; height: 92px; }
  .mag-crumbs [aria-current="page"] { max-width: 22ch; }
  .mag-body { font-size: 1.02rem; }
  .mag-body blockquote { padding: var(--s4); font-size: var(--step-0); }
  .mag-body table { display: block; overflow-x: auto; }
}


/* Network column: five sibling products, rotated so every site is linked the same
   number of times. Sits in the footer link grid and inherits its type and colour. */
.site-network ul { list-style: none; margin: 0; padding: 0; }
.site-network li + li { margin-top: 0.4rem; }
.site-network a { text-decoration: none; border-bottom: 1px solid transparent; }
.site-network a:hover, .site-network a:focus-visible { border-bottom-color: currentColor; }
