/* ============================================================
   E-tech Publishers — Modern Children's Publisher
   Editorial, premium, trustworthy. Built around the logo:
   every colour derives from its two brand values, and the
   artwork is never redrawn.

   Palette budget — roughly 65% white/neutral, 20% brand blue,
   8% red, the rest in pale supporting tints.
   ============================================================ */

:root {
  /* Brand — read from miscellaneous/E Tech Logo 1.svg, not sampled */
  --brand:      #3e4095;   /* logo blue / purple */
  --brand-700:  #2e3072;
  --brand-900:  #1f2050;
  --brand-100:  #e4e6f6;
  --brand-50:   #f1f2fb;

  --accent:     #ed3237;   /* logo red */
  --accent-600: #d2272c;
  --accent-50:  #fdeced;

  /* Neutrals — the site is mostly these */
  --white:      #ffffff;
  --cream:      #fcfaf6;
  --grey-50:    #f7f7fa;
  --grey-100:   #eff0f5;
  --grey-200:   #e3e4ec;
  --line:       #e6e7ef;

  --ink:        #15162b;
  --ink-2:      #4a4c66;
  --ink-3:      #797b95;

  /* Type */
  --sans:    "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
  --display: "DM Serif Display", Georgia, serif;

  /* Spacing scale */
  --s1: .25rem;  --s2: .5rem;   --s3: .75rem;  --s4: 1rem;
  --s5: 1.5rem;  --s6: 2rem;    --s7: 3rem;    --s8: 4rem;
  --s9: 6rem;

  /* Shape */
  --r-btn: 10px;
  --r-card: 16px;
  --r-img: 14px;

  --maxw: 1400px;        /* the CONTENT width, not the box — see .wrap */
  --pad: clamp(1.15rem, 4vw, 3.5rem);
  --ease: cubic-bezier(.22, 1, .36, 1);

  --shadow-sm: 0 1px 2px rgba(21,22,43,.05);
  --shadow:    0 4px 16px -6px rgba(21,22,43,.12);
  --shadow-lg: 0 18px 40px -18px rgba(21,22,43,.26);
}

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

/* The UA rule for [hidden] loses to any author rule that sets
   display — and several below do. Filtering, the variant picker
   and the enquiry badge all depend on `hidden` actually hiding. */
[hidden] { display: none !important; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }

::selection { background: var(--brand-100); color: var(--brand-900); }

/* ── type scale ─────────────────────────────────────────── */
.t-display { font-family: var(--display); font-weight: 400; letter-spacing: -.015em; }
.h1 { font-size: clamp(2.4rem, 5.2vw, 4rem); }
.h2 { font-size: clamp(1.85rem, 3.4vw, 2.75rem); }
.h3 { font-size: clamp(1.15rem, 1.6vw, 1.4rem); font-weight: 700; }

.eyebrow {
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 var(--s3);
}
/* the reading / writing link that rides in a product's eyebrow */
.eyebrow__link { color: var(--brand); text-decoration: none; border-bottom: 1px solid var(--brand-100); }
.eyebrow__link:hover { border-bottom-color: var(--brand); }
.lede { font-size: clamp(1.02rem, .5vw + .92rem, 1.2rem); color: var(--ink-2); }

/* ── layout ─────────────────────────────────────────────── */
/* --pad is added OUTSIDE the cap, so --maxw is the width of the content
   itself. Capping the box instead subtracts the padding from the measure,
   which cost 112px on every screen wider than the cap — where the centring
   margin already keeps content clear of the edges and the padding earns
   nothing. .nav__inner must use the same cap or the logo stops lining up
   with the page content below it. */
.wrap { max-width: calc(var(--maxw) + var(--pad) * 2); margin: 0 auto; padding-inline: var(--pad); }
section { padding-block: clamp(3.5rem, 7vw, 6rem); }
.section-head { max-width: 46rem; margin-bottom: var(--s7); }
.section-head p { margin: var(--s3) 0 0; }
.band { background: var(--grey-50); }
.band--cream { background: var(--cream); }
.band--brand { background: var(--brand-50); }

.skip {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -120%);
  z-index: 200; background: var(--brand); color: #fff;
  font-size: .8rem; font-weight: 600; padding: .7rem 1.3rem;
  border-radius: 0 0 var(--r-btn) var(--r-btn); transition: transform .2s var(--ease);
}
.skip:focus { transform: translate(-50%, 0); }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
  outline: 3px solid var(--brand);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ── buttons ────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: .5em;
  font-family: var(--sans); font-size: .94rem; font-weight: 600;
  padding: .78em 1.4em; border-radius: var(--r-btn);
  border: 1.5px solid transparent; cursor: pointer;
  transition: background .25s var(--ease), color .25s var(--ease),
              border-color .25s var(--ease), transform .25s var(--ease),
              box-shadow .25s var(--ease);
}
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-600); transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--secondary { background: transparent; color: var(--brand); border-color: var(--brand); }
.btn--secondary:hover { background: var(--brand); color: #fff; transform: translateY(-1px); }
.btn--ghost { background: var(--white); color: var(--brand); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); transform: translateY(-1px); }
.btn--full { width: 100%; justify-content: center; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

.textlink { color: var(--brand); font-weight: 600; border-bottom: 2px solid var(--brand-100); transition: border-color .25s var(--ease), color .25s var(--ease); }
.textlink:hover { color: var(--accent); border-color: var(--accent); }

/* ── header ─────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav__inner {
  max-width: calc(var(--maxw) + var(--pad) * 2); margin: 0 auto; padding: .7rem var(--pad);
  display: flex; align-items: center; gap: var(--s5);
}
.brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.brand__logo { height: 42px; width: auto; transition: transform .3s var(--ease); }
.brand:hover .brand__logo { transform: scale(1.02); }

.nav__links { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }
.nav__links a {
  font-size: .94rem; font-weight: 500; color: var(--ink-2);
  padding: .35rem 0; position: relative; white-space: nowrap;
  transition: color .25s var(--ease);
}
.nav__links a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 2px;
  background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__links a:hover { color: var(--ink); }
.nav__links a:hover::after, .nav__links a.is-here::after { transform: scaleX(1); }
.nav__links a.is-here { color: var(--brand); font-weight: 700; }

.nav__cta { margin-left: var(--s2); }
.nav__badge {
  display: inline-grid; place-items: center; min-width: 1.45em; height: 1.45em;
  padding: 0 .4em; margin-left: .15em; border-radius: 999px;
  background: #fff; color: var(--accent); font-size: .74em; font-weight: 800; line-height: 1;
}
.nav__toggle {
  display: none; margin-left: auto; flex-direction: column; gap: 5px;
  background: none; border: 0; padding: 10px; cursor: pointer;
}
.nav__toggle span { width: 24px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s var(--ease), opacity .25s var(--ease); }
.nav__toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── hero ───────────────────────────────────────────────── */
.hero { padding-block: clamp(3rem, 7vw, 5.5rem) clamp(3rem, 6vw, 5rem); overflow: hidden; }
.hero__grid {
  display: grid; grid-template-columns: 1.05fr .95fr;
  gap: clamp(2rem, 5vw, 4.5rem); align-items: center;
}
.hero h1 { margin-bottom: var(--s5); }
.hero h1 em { font-style: italic; color: var(--brand); }
.hero__sub { max-width: 34rem; margin: 0 0 var(--s6); }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
.hero__stats { display: flex; flex-wrap: wrap; gap: var(--s6); margin-top: var(--s7); padding-top: var(--s5); border-top: 1px solid var(--line); }
.hero__stat b { display: block; font-family: var(--display); font-size: 1.9rem; color: var(--brand); line-height: 1; }
.hero__stat span { font-size: .82rem; color: var(--ink-3); }

/* a fan of real covers — the books are the hero image */
.fan { position: relative; aspect-ratio: 1 / .92; }
.fan__item {
  position: absolute; width: 46%; border-radius: var(--r-img); overflow: hidden;
  box-shadow: var(--shadow-lg); background: var(--grey-100);
  transition: transform .5s var(--ease);
}
.fan__item img { width: 100%; height: auto; }
.fan__item:nth-child(1) { left: 2%;  top: 10%; transform: rotate(-7deg); z-index: 2; }
.fan__item:nth-child(2) { left: 28%; top: 0;   transform: rotate(-1deg); z-index: 3; width: 48%; }
.fan__item:nth-child(3) { right: 0;  top: 14%; transform: rotate(6deg);  z-index: 2; }
.fan__item:nth-child(4) { left: 16%; bottom: 0; transform: rotate(3deg); z-index: 1; width: 42%; }
.fan:hover .fan__item:nth-child(1) { transform: rotate(-9deg) translateY(-6px); }
.fan:hover .fan__item:nth-child(2) { transform: rotate(-1deg) translateY(-10px); }
.fan:hover .fan__item:nth-child(3) { transform: rotate(8deg) translateY(-6px); }

/* restrained brand shapes behind the fan */
.fan::before, .fan::after { content: ""; position: absolute; border-radius: 50%; z-index: 0; }
.fan::before { width: 38%; aspect-ratio: 1; background: var(--accent-50); left: -6%; bottom: 4%; }
.fan::after  { width: 30%; aspect-ratio: 1; background: var(--brand-100); right: -4%; top: -4%; }

/* ── pills (category nav) ───────────────────────────────── */
.pills { display: flex; flex-wrap: wrap; gap: var(--s2); }
.pill {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .88rem; font-weight: 600; color: var(--ink-2);
  background: var(--white); border: 1.5px solid var(--line);
  border-radius: 999px; padding: .5rem 1rem; cursor: pointer;
  transition: border-color .25s var(--ease), color .25s var(--ease), background .25s var(--ease);
}
.pill:hover { border-color: var(--brand); color: var(--brand); }
.pill__n { font-size: .76rem; color: var(--ink-3); font-weight: 600; }
/* the reading / writing pair leads the subject pills */
.pills--lead { margin-bottom: var(--s3); }
.pill--lead { border-color: var(--brand-100); background: var(--brand-50); color: var(--brand); font-weight: 700; }
.pill--lead:hover { border-color: var(--brand); }
.pill--lead .pill__n { color: var(--brand); }
.pill:hover .pill__n { color: var(--brand); }

/* ── book cards ─────────────────────────────────────────── */
.grid-books {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  gap: clamp(1rem, 2vw, 1.6rem);
}
.bcard {
  display: flex; flex-direction: column;
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--r-card); overflow: hidden;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
  animation: rise .45s var(--ease) both;
  animation-delay: calc(var(--i, 0) * 30ms);
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bcard:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--grey-200); }
.bcard__art { background: var(--grey-100); aspect-ratio: 3 / 3.9; overflow: hidden; display: block; }
.bcard__art img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.bcard:hover .bcard__art img { transform: scale(1.035); }
.bcard__art--blank {
  display: grid; place-items: center; text-align: center; padding: var(--s4);
  background: linear-gradient(160deg, var(--brand-50), var(--grey-100));
}
.bcard__art--blank span { font-family: var(--display); font-size: 1.15rem; color: var(--brand); line-height: 1.2; }
.bcard__body { padding: var(--s4); display: flex; flex-direction: column; flex: 1; gap: .3rem; }
.bcard__cat {
  font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); display: flex; flex-wrap: wrap; align-items: center; gap: .4rem;
}
/* the reading / writing split, as the owner's book list makes it */
.bcard__type {
  color: var(--brand); background: var(--brand-50); border-radius: 999px;
  padding: .1rem .45rem; letter-spacing: .06em;
}
.bcard__title { font-size: 1.02rem; font-weight: 700; color: var(--ink); line-height: 1.28; }
.bcard__meta { font-size: .82rem; color: var(--ink-3); margin-top: auto; padding-top: var(--s3); }
.bcard__badge {
  position: absolute; top: var(--s3); left: var(--s3);
  background: var(--brand); color: #fff; font-size: .68rem; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: .3rem .6rem; border-radius: 6px;
}
.bcard__wrap { position: relative; }

/* ── stage cards ────────────────────────────────────────── */
.grid-stages { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--s4); }
.stage {
  display: flex; flex-direction: column; gap: .3rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s5); transition: transform .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.stage:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--brand-100); }
.stage__n { font-family: var(--display); font-size: 1.6rem; color: var(--brand); }
.stage h3 { font-size: 1.05rem; }
.stage p { font-size: .86rem; color: var(--ink-3); margin: .2rem 0 var(--s4); }
.stage__go { margin-top: auto; font-size: .82rem; font-weight: 700; color: var(--accent); }

/* ── feature list (why) ─────────────────────────────────── */
.grid-why { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: var(--s6); }
.why__icon {
  width: 44px; height: 44px; margin-bottom: var(--s4);
  color: var(--brand);
}
.why h3 { font-size: 1.05rem; margin-bottom: .4rem; }
.why p { font-size: .9rem; margin: 0; }

/* ── split (about / schools) ────────────────────────────── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.split--narrow { grid-template-columns: 1.1fr .9fr; }
.checks { list-style: none; margin: var(--s5) 0 var(--s6); padding: 0; display: grid; gap: var(--s3); }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s3); align-items: start; font-size: .94rem; }
.checks svg { width: 22px; height: 22px; color: var(--accent); margin-top: 2px; }

/* ── download card ──────────────────────────────────────── */
.download {
  display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5);
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s5); box-shadow: var(--shadow-sm);
}
.download__icon { width: 46px; height: 46px; color: var(--accent); flex: 0 0 auto; }
.download__body { flex: 1 1 16rem; }
.download__body h2, .download__body h3 { font-size: 1.05rem; font-weight: 700; font-family: var(--sans); letter-spacing: -.01em; }
.download__body p { margin: .25rem 0 0; font-size: .88rem; color: var(--ink-3); }

/* ── soft panel — the same card, for copy with its own actions ── */
.panel {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card);
  padding: var(--s5); box-shadow: var(--shadow-sm);
}
.panel p { margin: .5rem 0 0; font-size: .92rem; color: var(--ink-2); }

/* ── footer ─────────────────────────────────────────────── */
.footer { background: var(--brand-900); color: rgba(255,255,255,.72); padding-block: var(--s8) var(--s6); }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: var(--s7); }
.footer__plate { background: #fff; border-radius: 12px; padding: 12px 16px; display: inline-block; }
.footer__plate img { height: 46px; width: auto; }
.footer__tag { margin: var(--s5) 0 0; max-width: 28ch; font-size: .92rem; }
.footer h4, .footer__h { color: #fff; font-size: .76rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; margin-bottom: var(--s4); }
.footer__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; font-size: .92rem; }
.footer__list a:hover { color: #fff; }
.footer__list a { transition: color .2s var(--ease); }
.footer address { font-style: normal; font-size: .92rem; line-height: 1.7; }
.footer address a:hover { color: #fff; }
.footer__base {
  margin-top: var(--s8); padding-top: var(--s5); border-top: 1px solid rgba(255,255,255,.14);
  display: flex; flex-wrap: wrap; gap: var(--s4); justify-content: space-between; font-size: .84rem;
}
.footer a:focus-visible, .footer__plate:focus-visible { outline-color: #fff; }

/* ── page header (interior pages) ───────────────────────── */
.phead { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
.phead h1 { max-width: 20ch; }
.phead p { max-width: 52ch; margin: var(--s4) 0 0; }
.crumb { display: flex; flex-wrap: wrap; gap: .45rem; font-size: .82rem; color: var(--ink-3); margin-bottom: var(--s4); }
.crumb a { color: var(--ink-3); }
.crumb a:hover { color: var(--brand); }
.crumb [aria-current] { color: var(--ink); }

/* ── catalogue explorer ─────────────────────────────────── */
.explorer { padding-block: var(--s6) 0; }
.explorer__tabs { display: flex; flex-wrap: wrap; gap: var(--s2); border-bottom: 1px solid var(--line); padding-bottom: var(--s4); margin-bottom: var(--s4); }
.tab {
  appearance: none; background: none; border: 1.5px solid transparent; border-radius: 999px;
  padding: .45rem 1rem; cursor: pointer; font-family: var(--sans);
  font-size: .9rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.tab:hover { color: var(--brand); border-color: var(--brand-100); }
.tab[aria-selected="true"] { background: var(--brand); color: #fff; border-color: var(--brand); }
.tab__n {
  margin-left: .45rem; font-size: .76rem; font-weight: 600; color: var(--ink-3);
  font-variant-numeric: tabular-nums;
}
.tab:hover .tab__n { color: var(--brand); }
.tab[aria-selected="true"] .tab__n { color: rgba(255,255,255,.75); }

.explorer__filters { display: flex; flex-wrap: wrap; gap: var(--s4) var(--s6); align-items: flex-start; }
.filterset { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.filterset__key { font-size: .74rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.filterset__chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip {
  appearance: none; cursor: pointer; font-family: var(--sans);
  font-size: .84rem; font-weight: 500; line-height: 1;
  padding: .5em .9em; border: 1.5px solid var(--line); border-radius: 999px;
  background: var(--white); color: var(--ink-2);
  transition: border-color .2s var(--ease), background .2s var(--ease), color .2s var(--ease), opacity .2s var(--ease);
}
.chip:hover:not(:disabled) { border-color: var(--brand); color: var(--brand); }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.chip:disabled { opacity: .35; cursor: not-allowed; }
.filter-reset {
  appearance: none; background: none; border: 0; cursor: pointer; margin-left: auto;
  font-family: var(--sans); font-size: .82rem; font-weight: 700; color: var(--accent);
}
.filter-reset:hover { text-decoration: underline; text-underline-offset: 3px; }
.explorer__count { font-size: .84rem; color: var(--ink-3); margin: var(--s5) 0 var(--s4); }
.explorer__empty { margin: var(--s6) 0 0; color: var(--ink-2); }
.explorer__empty button { appearance: none; background: none; border: 0; padding: 0; font: inherit; cursor: pointer; color: var(--brand); font-weight: 600; text-decoration: underline; }

/* ── product page ───────────────────────────────────────── */
.product { padding-block: clamp(2rem, 4vw, 3rem) clamp(3rem, 6vw, 5rem); }
.product__grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.product__media { position: sticky; top: 92px; }
.pcover { border-radius: var(--r-img); overflow: hidden; box-shadow: var(--shadow-lg); background: var(--grey-100); }
.pcover img { width: 100%; height: auto; }
.pcover--blank { aspect-ratio: 3 / 3.9; display: grid; place-content: center; text-align: center; gap: .6rem; padding: var(--s6); background: linear-gradient(160deg, var(--brand-50), var(--grey-100)); }
.pcover--blank b { font-family: var(--display); font-size: 1.5rem; color: var(--brand); }
.pcover--blank span { font-size: .8rem; color: var(--ink-3); }
.product h1 { margin-bottom: var(--s4); }
.product__blurb { margin: 0 0 var(--s6); }

.vpick { margin: 0 0 var(--s6); }
.vpick__key { display: flex; align-items: baseline; gap: .6rem; font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 var(--s3); }
.vpick__count { color: var(--accent); letter-spacing: .04em; }
.vpick__opts { display: flex; flex-wrap: wrap; gap: var(--s3); }
.vopt {
  appearance: none; cursor: pointer; background: var(--white);
  border: 2px solid var(--line); border-radius: 12px; padding: .45rem;
  width: 100px; display: flex; flex-direction: column; gap: .45rem; align-items: center;
  transition: border-color .2s var(--ease), transform .2s var(--ease), box-shadow .2s var(--ease);
}
/* An explicit height is required: the img carries width/height
   attributes, and without `height` in CSS the attribute wins over
   aspect-ratio, leaving a tall box that object-fit crops to a
   sliver. `contain` so the picker shows each whole cover. */
.vopt__art { width: 100%; height: 108px; object-fit: contain; border-radius: 7px; background: var(--grey-100); }
.vopt__art--blank { display: grid; place-items: center; height: 108px; font-size: .72rem; font-weight: 700; color: var(--brand); background: var(--brand-50); }
.vopt__label { font-size: .74rem; font-weight: 600; line-height: 1.2; text-align: center; color: var(--ink-2); }
.vopt:hover { border-color: var(--brand-100); transform: translateY(-2px); box-shadow: var(--shadow); }
.vopt.is-on { border-color: var(--accent); }
.vopt.is-on .vopt__label { color: var(--ink); }

.spec { margin: 0 0 var(--s6); border-top: 1px solid var(--line); }
.spec__row { display: grid; grid-template-columns: 9rem 1fr; gap: var(--s4); padding: .7rem 0; border-bottom: 1px solid var(--line); }
.spec dt { font-size: .82rem; font-weight: 700; color: var(--ink-3); }
.spec dd { margin: 0; font-size: .92rem; color: var(--ink); }
.pnote { font-size: .84rem; color: var(--ink-3); margin: var(--s4) 0 0; max-width: 46ch; }
.product__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
#addToEnquiry.is-added { background: var(--brand); }
#addToEnquiry.is-added:hover { background: var(--brand-700); }

.block { margin-top: clamp(3rem, 6vw, 4.5rem); }
.block h2 { margin-bottom: var(--s5); }
.syllabus { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.syllabus li { display: grid; grid-template-columns: 6.5rem 1fr; gap: var(--s4); padding: .85rem 0; border-bottom: 1px solid var(--line); }
.syllabus__n { font-size: .78rem; font-weight: 700; color: var(--accent); }
.syllabus p { margin: 0; font-size: .92rem; }
.chips-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.chips-list li { background: var(--grey-50); border: 1px solid var(--line); border-radius: 999px; padding: .4rem .9rem; font-size: .86rem; }

/* ── bundle contents (All In One) ───────────────────────── */
.bundle {
  list-style: none; margin: var(--s6) 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden;
}
.bundle__item { background: var(--white); padding: var(--s4) var(--s5); display: grid; grid-template-columns: auto 1fr; gap: var(--s4); align-items: start; }
.bundle__n { font-family: var(--display); font-size: 1.1rem; color: var(--accent); line-height: 1.3; }
.bundle__body { display: grid; gap: .2rem; }
.bundle__body b { font-size: 1rem; color: var(--ink); }
.bundle__also { font-size: .82rem; color: var(--brand); }
.bundle__also em { font-style: normal; font-weight: 600; }
.bundle__also:hover { color: var(--accent); }
.bundle__also--none { color: var(--ink-3); }

/* marks a bundle title in the catalogue grid */
.bcard__bundle {
  display: inline-block; margin-top: .35rem;
  font-size: .7rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--brand); background: var(--brand-50);
  border-radius: 999px; padding: .2rem .6rem;
}

/* ── enquiry list ───────────────────────────────────────── */
.elist { background: var(--grey-50); border: 1px solid var(--line); border-radius: var(--r-card); padding: var(--s5); margin-bottom: var(--s5); }
.elist__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4); }
.elist__head h3 { font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.elist__clear { appearance: none; background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; color: var(--accent); }
.elist__clear:hover { text-decoration: underline; text-underline-offset: 3px; }
.elist__empty { font-size: .88rem; color: var(--ink-3); margin: var(--s3) 0 0; }
.elist__items { list-style: none; margin: var(--s4) 0 0; padding: 0; display: grid; gap: var(--s3); }
.elist__item { display: grid; grid-template-columns: auto 1fr auto; gap: var(--s3); align-items: center; }
.elist__art { width: 40px; height: 52px; object-fit: cover; object-position: top center; border-radius: 5px; background: var(--grey-100); }
.elist__art--blank { display: block; width: 40px; height: 52px; border-radius: 5px; background: var(--brand-50); }
.elist__title { font-size: .88rem; color: var(--ink); font-weight: 500; }
.elist__title:hover { color: var(--brand); }
.elist__x { appearance: none; background: none; border: 0; cursor: pointer; color: var(--ink-3); padding: .3rem; border-radius: 6px; line-height: 1; transition: background .2s var(--ease), color .2s var(--ease); }
.elist__x:hover { background: var(--accent); color: #fff; }

/* ── forms ──────────────────────────────────────────────── */
.form { display: grid; gap: var(--s4); }
.field { display: grid; gap: .4rem; }
.field label { font-size: .82rem; font-weight: 700; color: var(--ink); }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .94rem; color: var(--ink);
  background: var(--white); border: 1.5px solid var(--line); border-radius: var(--r-btn);
  padding: .7rem .85rem; transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-100);
}
.field textarea { resize: vertical; min-height: 7rem; }
.field ::placeholder { color: var(--ink-3); }
.form-note { font-size: .86rem; color: var(--brand); font-weight: 600; margin: 0; }
.book-note { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0; }

/* ── contact ────────────────────────────────────────────── */
.contact__grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
.contact__details { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s5); }
.contact__details h3 { font-size: .76rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: .4rem; }
.contact__details a { color: var(--brand); font-weight: 500; }
.contact__details a:hover { color: var(--accent); }
.map-facade {
  display: block; width: 100%; aspect-ratio: 16/7; margin-top: var(--s6);
  border: 1px solid var(--line); border-radius: var(--r-card); cursor: pointer;
  background: var(--brand-50); position: relative; overflow: hidden; text-align: center;
}
.map-facade__label { position: absolute; inset: auto 0 0 0; padding: var(--s4); background: rgba(255,255,255,.9); font-size: .86rem; color: var(--ink); }
/* The real map replaces the facade on click, so it must occupy the same
   box. An iframe with no width/height attributes otherwise falls back to
   the UA default of 300x150 and the panel visibly collapses. */
.map-frame {
  display: block; width: 100%; aspect-ratio: 16/7; margin-top: var(--s6);
  border: 1px solid var(--line); border-radius: var(--r-card);
}
.map-facade__label b { display: block; color: var(--brand); font-size: .8rem; }
.map-facade svg { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); color: var(--accent); }
.map-facade:hover { border-color: var(--brand); }

/* ── reveal ─────────────────────────────────────────────── */
/* Opt-IN: only hidden when JS is present to bring it back, and a
   watchdog in script.js drops `js` if the observer never fires.
   Text must never be left invisible. */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal[data-d="1"] { transition-delay: .07s; }
.js .reveal[data-d="2"] { transition-delay: .14s; }
.js .reveal[data-d="3"] { transition-delay: .21s; }
.js .reveal[data-d="4"] { transition-delay: .28s; }
.js .reveal[data-d="5"] { transition-delay: .35s; }
.js .reveal[data-d="6"] { transition-delay: .42s; }

/* ── responsive ─────────────────────────────────────────── */
@media (max-width: 980px) {
  .hero__grid, .split, .split--narrow, .product__grid, .contact__grid, .footer__grid { grid-template-columns: 1fr; }
  .product__media { position: static; max-width: 340px; }
  .fan { max-width: 420px; margin-inline: auto; }
  .footer__grid { gap: var(--s6); }
}

@media (max-width: 820px) {
  .nav__links, .nav__cta { display: none; }
  .nav__toggle { display: flex; }
  .nav.menu-open .nav__links {
    display: flex; position: absolute; inset: 100% 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 0; margin: 0;
    background: var(--white); border-bottom: 1px solid var(--line);
    padding: var(--s3) var(--pad) var(--s5); box-shadow: var(--shadow);
  }
  .nav.menu-open .nav__links a { padding: .85rem 0; border-bottom: 1px solid var(--line); font-size: 1.02rem; }
  .nav.menu-open .nav__links a::after { display: none; }
  .nav.menu-open .nav__cta { display: inline-flex; margin: var(--s4) 0 0; justify-content: center; }
  .explorer__tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .explorer__tabs::-webkit-scrollbar { display: none; }
  .tab { flex: 0 0 auto; }
  .filter-reset { margin-left: 0; }
  .syllabus li { grid-template-columns: 1fr; gap: .2rem; }
  .spec__row { grid-template-columns: 7rem 1fr; }
}

@media (max-width: 560px) {
  .grid-books { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--s3); }
  .hero__stats { gap: var(--s5); }
}

@media print {
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .nav, .skip, .footer { display: none !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
}
