/* UK Chip Trail — design tokens */
:root {
  --ivory: #f7f2e6;
  --paper: #fffdf7;
  --lilac: #efe7f7;
  --lilac-deep: #e3d8f2;
  --gold: #f5b821;
  --gold-soft: #fbeac0;
  --purple: #3e1f6d;
  --purple-deep: #2a1349;
  --ink: #221833;
  --muted: #5d5470;

  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --s-7: 48px;
  --s-8: 64px;
  --s-9: 96px;

  --wrap: 1140px;
  --prose: 68ch;
  --radius: 12px;
  --radius-sm: 8px;
  --drop: 6px 6px 0 var(--purple);
  --drop-sm: 4px 4px 0 var(--purple);
  --dash: 2px dashed rgba(62, 31, 109, 0.35);

  --display: "Fraunces", "Iowan Old Style", Georgia, serif;
  --body: "Source Sans 3", "Segoe UI", Tahoma, sans-serif;

  --agebar: 40px;
}

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

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

body {
  margin: 0;
  padding-top: var(--agebar);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--ivory);
  /* fine-grain paper texture */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)' opacity='0.05'/%3E%3C/svg%3E");
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0 0 var(--s-4);
  color: var(--purple-deep);
}

h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); }
h3 { font-size: clamp(1.2rem, 2vw, 1.45rem); margin-bottom: var(--s-3); }
h4 { font-size: 1.05rem; margin-bottom: var(--s-2); }

p { margin: 0 0 var(--s-4); max-width: var(--prose); }

a {
  color: var(--purple);
  font-weight: 600;
  text-decoration-color: rgba(62, 31, 109, 0.35);
  text-underline-offset: 3px;
  transition: color 0.18s ease, text-decoration-color 0.18s ease;

  &:hover { color: var(--purple-deep); text-decoration-color: var(--gold); }
  &:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
}

/* LINKS: chevron suffix on standalone links */
a.arrow {
  text-decoration: none;
  &::after { content: " \203A"; font-weight: 700; }
  &:hover { text-decoration: underline; text-decoration-color: var(--gold); }
}

img { max-width: 100%; height: auto; display: block; }

.wrap { width: min(100% - 2 * var(--s-5), var(--wrap)); margin-inline: auto; }
.narrow { width: min(100%, 800px); }

.label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple);
  margin-bottom: var(--s-3);
}

.skip {
  position: absolute;
  left: -9999px;
  &:focus {
    left: var(--s-4);
    top: calc(var(--agebar) + var(--s-2));
    z-index: 60;
    background: var(--gold);
    color: var(--ink);
    padding: var(--s-2) var(--s-4);
    border-radius: var(--radius-sm);
  }
}

/* Age notice — slim, persistent, top of every page */
.agebar {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 50;
  height: var(--agebar);
  display: flex;
  align-items: center;
  background: var(--purple-deep);
  color: #efe8fb;
  font-size: 0.8125rem;

  & .wrap { display: flex; align-items: center; gap: var(--s-3); }

  & strong {
    background: var(--gold);
    color: var(--ink);
    border-radius: var(--radius-sm);
    padding: 1px var(--s-2);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    flex: none;
  }

  & p { margin: 0; max-width: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  & a { color: #fff; text-decoration-color: var(--gold); font-weight: 600; }
}

/* Header */
.site-header {
  position: sticky;
  top: var(--agebar);
  z-index: 40;
  background: var(--ivory);
  padding: var(--s-4) 0;

  & .wrap {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--s-4) var(--s-6);
  }

  & nav {
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-2) var(--s-5);
    margin-left: auto;
    font-size: 0.95rem;
  }

  & nav a {
    text-decoration: none;
    color: var(--ink);
    padding: var(--s-1) 0;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-repeat: no-repeat;
    background-position: 0 100%;
    background-size: 0 3px;
    transition: background-size 0.2s ease, color 0.2s ease;

    &:hover, &[aria-current="page"] { background-size: 100% 3px; color: var(--purple-deep); }
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: var(--s-3);
  text-decoration: none;

  & img { width: 38px; height: 38px; }

  & span {
    font-family: var(--display);
    font-weight: 900;
    font-size: 1.3rem;
    letter-spacing: -0.02em;
    color: var(--purple-deep);
    line-height: 1;
  }
}

/* Buttons — solid fill, accent colour */
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--ink);
  font-family: var(--body);
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: center;
  padding: var(--s-3) var(--s-5);
  border: 0;
  border-radius: var(--radius-sm);
  box-shadow: var(--drop-sm);
  cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, background-color 0.16s ease;

  &:hover { background: #ffc63f; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--purple); }
  &:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--purple); }
  &:focus-visible { outline: 3px solid var(--purple); outline-offset: 3px; }
}

.btn-quiet {
  background: var(--lilac);
  color: var(--purple-deep);
  &:hover { background: var(--lilac-deep); }
}

/* Badges — soft-rounded tag chips */
.chip {
  display: inline-block;
  background: var(--lilac);
  color: var(--purple-deep);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  padding: var(--s-1) var(--s-3);
  border-radius: var(--radius-sm);
}

.chip-gold { background: var(--gold-soft); color: #6b4a05; }

.chips { display: flex; flex-wrap: wrap; gap: var(--s-2); margin: 0 0 var(--s-3); padding: 0; list-style: none; }

/* Dividers — dashed rule motif */
.rule { border: 0; border-top: var(--dash); margin: 0; }

section { padding: var(--s-8) 0; }
section > .wrap > .label:first-child { margin-top: 0; }

.section-tight { padding-top: 0; }
.section-tint { background: var(--lilac); }
.section-gold { background: var(--gold-soft); }

/* Hero — poster, one dominant headline */
.hero {
  padding: var(--s-8) 0 var(--s-7);
  background-image: url("/images/hero-texture.jpg");
  background-size: cover;
  background-position: center;

  & h1 {
    font-size: clamp(2.9rem, 9.5vw, 6.4rem);
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.035em;
    max-width: 15ch;
    margin-bottom: var(--s-5);
  }

  /* Sized gradient rather than a plain fill so the highlight never rides over
     the descenders of the line above at this line-height. */
  & h1 em {
    font-style: normal;
    color: var(--purple);
    padding: 0 0.12em;
    border-radius: 4px;
    background-image: linear-gradient(var(--gold), var(--gold));
    background-repeat: no-repeat;
    background-size: 100% 0.94em;
    background-position: 0 0.11em;
    box-decoration-break: clone;
    -webkit-box-decoration-break: clone;
  }

  & .lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); max-width: 58ch; color: var(--ink); }
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-3) var(--s-5);
  align-items: center;
  margin-top: var(--s-5);
  font-size: 0.9rem;
  color: var(--muted);
}

/* Credibility strip */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: var(--s-4);
  margin: var(--s-7) 0 0;
  padding: 0;
  list-style: none;

  & li {
    background: var(--paper);
    border-radius: var(--radius);
    box-shadow: var(--drop-sm);
    padding: var(--s-4) var(--s-5);
  }

  & b {
    display: block;
    font-family: var(--display);
    font-size: 1.9rem;
    font-weight: 900;
    line-height: 1;
    color: var(--purple-deep);
    margin-bottom: var(--s-1);
  }

  & span { font-size: 0.88rem; color: var(--muted); }
}

/* Affiliate disclosure block */
.disclosure {
  background: var(--gold-soft);
  border-radius: var(--radius);
  box-shadow: var(--drop-sm);
  padding: var(--s-5);
  margin: 0 0 var(--s-6);

  & p { margin: 0; max-width: 78ch; font-size: 0.95rem; color: #4b3a12; }
  & strong { color: var(--ink); }
}

/* Operator showcase */
.featured {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--drop);
  padding: var(--s-6);
  margin-bottom: var(--s-6);
  position: relative;

  & .featured-flag {
    position: absolute;
    top: 0;
    right: var(--s-5);
    transform: translateY(-50%);
    background: var(--purple);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    padding: var(--s-1) var(--s-3);
    border-radius: var(--radius-sm);
  }

  & .featured-grid {
    display: grid;
    grid-template-columns: 200px 1fr 210px;
    gap: var(--s-6);
    align-items: start;
  }

  & h3 { font-size: 1.75rem; margin-bottom: var(--s-2); }
  & p { max-width: none; }

  & .grade {
    position: static;
    transform: none;
    justify-content: center;
    font-size: 1.6rem;
    padding: var(--s-3) var(--s-4);
  }
}

.logo-plate {
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--drop-sm);
  padding: var(--s-4);
  min-height: 92px;
  overflow: hidden;

  & img { max-height: 62px; width: auto; object-fit: contain; }
}

.op-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-4); }

.op-row {
  position: relative;
  display: grid;
  grid-template-columns: 168px 1fr 200px;
  gap: var(--s-5);
  align-items: center;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--drop-sm);
  padding: var(--s-5);

  & h3 { margin-bottom: var(--s-2); font-size: 1.3rem; }
  & p { margin-bottom: var(--s-3); font-size: 0.98rem; max-width: none; }
}

.op-action {
  display: grid;
  gap: var(--s-3);
  align-content: start;
  justify-items: stretch;
  text-align: center;

  & .btn { width: 100%; }
}

/* corner badge detail */
.grade {
  position: absolute;
  top: 0;
  right: var(--s-5);
  transform: translateY(-50%);
  display: inline-flex;
  align-items: baseline;
  gap: var(--s-1);
  background: var(--purple);
  color: #fff;
  font-family: var(--display);
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
  padding: var(--s-2) var(--s-3);
  border-radius: var(--radius-sm);

  & small { font-family: var(--body); font-size: 0.62rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; opacity: 0.85; }
}

.offer {
  font-size: 0.92rem;
  margin: 0 0 var(--s-2);
  & b { font-weight: 700; }
}

.smallprint { font-size: 0.78rem; color: var(--muted); margin: 0; line-height: 1.5; }

.op-note { font-size: 0.78rem; color: var(--muted); margin: 0; }

/* Themed category picks */
.picks {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.pick {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--drop-sm);
  padding: var(--s-5) var(--s-5) var(--s-6);
  display: flex;
  flex-direction: column;

  & h3 { margin-bottom: var(--s-2); }
  & > p { font-size: 0.95rem; }

  & ol { list-style: none; counter-reset: pick; margin: var(--s-5) 0 0; padding: 0; display: grid; gap: var(--s-3); }

  & ol li {
    counter-increment: pick;
    display: grid;
    grid-template-columns: 28px 1fr;
    gap: var(--s-3);
    align-items: baseline;
    font-size: 0.95rem;
    padding-top: var(--s-3);
    border-top: var(--dash);
  }

  & ol li::before {
    content: counter(pick);
    font-family: var(--display);
    font-weight: 900;
    font-size: 1.15rem;
    color: var(--purple);
  }

  & ol li b { display: block; font-size: 1rem; grid-column: 2; }
  & ol li span { grid-column: 2; color: var(--muted); font-size: 0.9rem; line-height: 1.5; }
}

/* Criteria table */
.table-scroll { overflow-x: auto; padding-bottom: var(--s-3); }

.table-hint { display: none; font-size: 0.85rem; color: var(--muted); margin-bottom: var(--s-4); }

@media (max-width: 1080px) {
  .table-hint { display: block; }
}

table.criteria {
  width: 100%;
  min-width: 1020px;
  border-collapse: separate;
  border-spacing: 0;
  font-size: 0.88rem;

  & th, & td { padding: var(--s-3) var(--s-4); text-align: left; vertical-align: top; }

  & thead th {
    background: var(--purple);
    color: #fff;
    font-family: var(--body);
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  & thead th:first-child { border-top-left-radius: var(--radius-sm); }
  & thead th:last-child { border-top-right-radius: var(--radius-sm); }

  & tbody tr:nth-child(odd) td { background: var(--paper); }
  & tbody tr:nth-child(even) td { background: var(--lilac); }

  & tbody th {
    background: var(--paper);
    font-family: var(--display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--purple-deep);
    white-space: nowrap;
  }

  & tbody tr:nth-child(even) th { background: var(--lilac); }

  & th:last-child, & td.grade-cell { text-align: center; }
  & td.grade-cell { font-family: var(--display); font-weight: 900; font-size: 1.15rem; color: var(--purple); font-variant-numeric: tabular-nums; }
  & tbody tr:last-child td:last-child { border-bottom-right-radius: var(--radius-sm); }
  & tbody tr:last-child th { border-bottom-left-radius: var(--radius-sm); }
}

.table-hint { font-size: 0.82rem; color: var(--muted); margin: var(--s-3) 0 0; }

/* Two-column reading layout with sidebar */
.with-aside {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: var(--s-7);
  align-items: start;
}

aside.card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--drop);
  padding: var(--s-5);
  position: sticky;
  top: calc(var(--agebar) + 84px);

  & img { border-radius: var(--radius-sm); margin-bottom: var(--s-4); }
  & h3 { font-size: 1.2rem; }
  & h3 + h3 { margin-top: var(--s-5); }
  & p, & li { font-size: 0.92rem; max-width: none; }
  & ul { padding-left: 1.1em; margin: 0 0 var(--s-4); }
  & li { margin-bottom: var(--s-2); }
}

/* Method steps */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: var(--s-5);
  margin: var(--s-6) 0;
  padding: 0;
  list-style: none;

  & li { padding-top: var(--s-4); border-top: var(--dash); }
  & b { display: block; font-family: var(--display); font-size: 1.1rem; color: var(--purple-deep); margin-bottom: var(--s-2); }
  & span { font-size: 0.94rem; color: var(--ink); }
}

/* Safety resources */
.safety {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: var(--s-5);
  margin: 0;
  padding: 0;
  list-style: none;
}

.safety a {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  height: 100%;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--drop-sm);
  padding: var(--s-5);
  text-decoration: none;
  color: var(--ink);
  transition: transform 0.16s ease, box-shadow 0.16s ease;

  &:hover { transform: translate(-2px, -2px); box-shadow: var(--drop); }

  & .safety-logo { display: grid; place-items: center; height: 68px; background: #fff; border-radius: var(--radius-sm); padding: var(--s-3); }
  & .safety-logo img { max-height: 44px; max-width: 100%; width: auto; height: auto; object-fit: contain; }
  & b { font-family: var(--display); font-size: 1.05rem; color: var(--purple-deep); }
  & span { font-size: 0.88rem; color: var(--muted); }
}

/* FAQ */
.faq {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--s-5) var(--s-7);
}

.faq li { padding-top: var(--s-5); border-top: var(--dash); }
.faq h3 { font-size: 1.15rem; margin-bottom: var(--s-2); }
.faq p { max-width: none; }
.faq p:last-child { margin-bottom: 0; }

/* Two-column prose blocks */
.two-col {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: var(--s-6) var(--s-7);

  & > div > :first-child { margin-top: 0; }
  & p:last-child { margin-bottom: 0; }
}

/* Figures */
figure { margin: 0 0 var(--s-6); }

figure img { border-radius: var(--radius); box-shadow: var(--drop-sm); }

figcaption { font-size: 0.85rem; color: var(--muted); margin-top: var(--s-3); max-width: 60ch; }

.figure-inline {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: var(--s-6);
  align-items: center;
  margin-bottom: var(--s-7);
}

.figure-inline.flip { grid-template-columns: 340px 1fr; }

.figure-inline + .rule { margin-bottom: var(--s-7); }

.block-gap { margin-top: var(--s-7); }

/* Prose pages */
.page-head {
  padding: var(--s-8) 0 var(--s-6);
  background-image: url("/images/hero-texture.jpg");
  background-size: cover;
  background-position: center;

  & h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); font-weight: 900; max-width: 20ch; }
  & p { font-size: 1.1rem; max-width: 62ch; color: var(--muted); margin-bottom: 0; }
}

.prose {
  & figure { max-width: 480px; margin-block: var(--s-6); }
  & h2 { margin-top: var(--s-7); }
  & h3 { margin-top: var(--s-5); }
  & ul, & ol { padding-left: 1.2em; margin-bottom: var(--s-4); max-width: var(--prose); }
  & li { margin-bottom: var(--s-2); }
  & > :first-child { margin-top: 0; }
}

.callout {
  background: var(--lilac);
  border-radius: var(--radius);
  box-shadow: var(--drop-sm);
  padding: var(--s-5);
  margin: var(--s-6) 0;

  & :last-child { margin-bottom: 0; }
  & h3 { margin-top: 0; }
}

.deflist { margin: 0; }
.deflist dt { font-family: var(--display); font-weight: 700; font-size: 1.05rem; color: var(--purple-deep); margin-top: var(--s-5); }
.deflist dd { margin: var(--s-2) 0 0; max-width: var(--prose); }

/* Contact form */
.form-card {
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--drop);
  padding: var(--s-6);

  & label { display: block; font-weight: 700; font-size: 0.9rem; margin-bottom: var(--s-2); color: var(--purple-deep); }
  & .field { margin-bottom: var(--s-5); }

  & input, & textarea, & select {
    width: 100%;
    font: inherit;
    font-size: 0.98rem;
    color: var(--ink);
    background: var(--ivory);
    border: 0;
    border-radius: var(--radius-sm);
    padding: var(--s-3) var(--s-4);
    box-shadow: inset 0 0 0 2px rgba(62, 31, 109, 0.12);

    &:focus { outline: 3px solid var(--gold); outline-offset: 1px; }
  }

  & textarea { min-height: 150px; resize: vertical; }
  & .form-note { margin-top: var(--s-4); margin-bottom: 0; }
}

/* Disclaimer */
.disclaimer {
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 90ch;
  margin: 0;
}

/* Footer */
.site-footer {
  background: var(--purple-deep);
  color: #ded4ee;
  padding: var(--s-8) 0 var(--s-6);
  margin-top: var(--s-8);
  position: relative;
  overflow: hidden;

  & h4 { color: #fff; font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; font-family: var(--body); font-weight: 700; margin-bottom: var(--s-4); }
  & a { color: #efe8fb; font-weight: 400; text-decoration-color: rgba(245, 184, 33, 0.5); }
  & a:hover { color: #fff; text-decoration-color: var(--gold); }
  & p { font-size: 0.9rem; }

  & .foot-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1fr;
    gap: var(--s-6);
    position: relative;
    z-index: 1;
  }

  & ul { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s-2); font-size: 0.92rem; }

  & .foot-brand img { width: 44px; height: 44px; margin-bottom: var(--s-3); }
  & .foot-brand p { max-width: 34ch; color: #c9bde0; }

  & .foot-base {
    margin-top: var(--s-7);
    padding-top: var(--s-5);
    border-top: 2px dashed rgba(245, 184, 33, 0.3);
    display: flex;
    flex-wrap: wrap;
    gap: var(--s-4);
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: #b7a9d1;
    position: relative;
    z-index: 1;
  }

  & .foot-mark {
    position: absolute;
    right: -60px;
    bottom: -70px;
    width: 320px;
    opacity: 0.07;
    z-index: 0;
    pointer-events: none;
  }
}

.foot-18 {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  & b { background: var(--gold); color: var(--ink); border-radius: var(--radius-sm); padding: 1px var(--s-2); font-size: 0.78rem; }
}

/* Cookie banner */
.cookiebar {
  position: fixed;
  left: var(--s-4);
  right: var(--s-4);
  bottom: var(--s-4);
  z-index: 45;
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--drop);
  padding: var(--s-5);
  display: none;
  gap: var(--s-5);
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  max-width: 860px;
  margin-inline: auto;

  &[data-visible="true"] { display: flex; }
  & p { margin: 0; font-size: 0.9rem; max-width: 56ch; }
  & .cookie-actions { display: flex; gap: var(--s-3); flex-wrap: wrap; }
}

/* Responsive */
@media (max-width: 960px) {
  .featured .featured-grid { grid-template-columns: 160px 1fr; }
  .featured .featured-grid .op-action { grid-column: 1 / -1; }
  .op-row { grid-template-columns: 140px 1fr; }
  .op-row .op-action { grid-column: 1 / -1; }
  .with-aside { grid-template-columns: 1fr; gap: var(--s-6); }
  aside.card { position: static; }
  .figure-inline, .figure-inline.flip { grid-template-columns: 1fr; gap: var(--s-5); }
  .site-footer .foot-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  :root { --agebar: 56px; }
  .agebar { font-size: 0.78rem; align-items: center; }
  .agebar p { white-space: normal; line-height: 1.3; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }
  section { padding: var(--s-7) 0; }
  /* The wrapped nav is too tall to keep pinned on a phone screen. */
  .site-header { position: static; padding: var(--s-3) 0; }
  .site-header nav { margin-left: 0; width: 100%; gap: var(--s-2) var(--s-4); font-size: 0.9rem; }
  .featured { padding: var(--s-5); }
  .featured .featured-grid, .op-row { grid-template-columns: 1fr; gap: var(--s-4); }
  .logo-plate { min-height: 78px; }
  .logo-plate img { max-height: 50px; }
  .grade, .featured .featured-flag { position: static; transform: none; align-self: start; justify-self: start; margin-bottom: var(--s-3); }
  .op-row, .featured { padding-top: var(--s-5); }
  .site-footer .foot-grid { grid-template-columns: 1fr; gap: var(--s-5); }
  .cookiebar { padding: var(--s-4); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
  .btn:hover { transform: none; }
}

@media print {
  .agebar, .cookiebar, .site-header { display: none; }
  body { padding-top: 0; background: #fff; }
}
