/* ═══════════════════════════════════════════════════════════════════
   MORGAN BOOK — layout and components.
   Reproduces the live morganbook.co.uk design. Every value references a
   token from tokens.css; no hard-coded colour, typeface or spacing here.
   ═══════════════════════════════════════════════════════════════════ */

/* ── Reset ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: hidden; }
html.mb-locked { overflow: hidden; }

body {
  font-family: var(--f-body);
  font-weight: var(--fw-body);
  font-size: var(--t-body);
  line-height: var(--lh-body);
  color: var(--muted);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; display: block; }
img { height: auto; }
ul, ol { list-style: none; }
a { color: inherit; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }

h1, h2, h3, h4 {
  font-family: var(--f-display);
  font-weight: var(--fw-head);
  line-height: var(--lh-head);
  color: var(--ink-soft);
  text-wrap: balance;
}

/* ...but hero and page-banner titles are Playfair REGULAR on the live
   site. Only these three carry --fw-display. */
.home-hero__title,
.page-banner__title,
.home-hero__standfirst { font-weight: var(--fw-display); }

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

.screen-reader-text {
  position: absolute !important;
  width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link:focus {
  position: fixed; inset-block-start: var(--s3); inset-inline-start: var(--s3);
  z-index: 9999; width: auto; height: auto; clip-path: none;
  padding: var(--s3) var(--s4); background: var(--ink); color: var(--paper);
  border-radius: var(--r-sm);
}
.mb-live-region { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

/* ── Layout ─────────────────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }

/* ── Buttons (the style carried over from the design) ───────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: var(--s3) var(--s6);
  border-radius: var(--r-pill);
  font-family: var(--f-body);
  font-weight: var(--fw-heavy);
  font-size: var(--t-small);
  letter-spacing: .04em;
  line-height: 1;
  text-align: center;
  text-decoration: none;
  transition: filter var(--dur), transform var(--dur-fast);
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn:active { transform: none; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; filter: none; }

.btn--primary { background: var(--accent); color: var(--accent-ink); }
.btn--cta     { background: var(--ink); color: var(--paper); }
.btn--buy     { background: var(--accent-blue); color: var(--blue-ink); min-height: 44px; padding: var(--s3) var(--s5); }
.btn__icon    { width: 20px; height: 20px; flex-shrink: 0; }

/* ── Icons ──────────────────────────────────────────────────────── */
.icon { width: 18px; height: 18px; flex-shrink: 0; }
.icon--feature { width: 34px; height: 34px; }
.icon--faq { width: 26px; height: 26px; }

/* ── Header ─────────────────────────────────────────────────────── */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); }
.site-header__inner {
  display: flex;
  align-items: center;
  gap: var(--s6);
  min-height: 104px;
}
.site-logo { display: inline-flex; align-items: center; text-decoration: none; }
.site-logo img { width: auto; height: 84px; }
.site-logo__text { font-family: var(--f-display); font-size: var(--t-h3); color: var(--ink-soft); }

.site-nav { margin-inline-start: auto; }
.site-nav__list { display: flex; align-items: center; gap: var(--s6); }
.site-nav__item > a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  padding-block: var(--s4);
  font-size: 0.95rem;
  color: var(--muted);
  text-decoration: none;
  transition: color var(--dur);
}
.site-nav__item > a:hover { color: var(--accent-alt); }
.site-nav__item.is-current > a { color: var(--accent-alt); }
.site-nav__item.is-current > a::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  inset-block-end: -1px;
  height: 3px;
  background: var(--accent-alt);
}

.site-header__actions { display: flex; align-items: center; gap: var(--s3); }

/* Icon and count sit on one line. Deliberately NOT absolutely positioned:
   an earlier build overlaid the count as a badge, and when WooCommerce
   replaced the cart fragment without the class the count dropped below the
   icon. Both the class and the ID are styled here so a class-less fragment
   still renders correctly. */
.basket-trigger {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  height: 44px;
  padding-inline: var(--s2);
  color: var(--ink-soft);
}
.basket-trigger .icon { width: 24px; height: 24px; }
.basket-trigger__count,
#mb-cart-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding-inline: 5px;
  border-radius: var(--r-pill);
  background: var(--accent-alt);
  color: var(--paper);
  font-size: 12px;
  font-weight: var(--fw-heavy);
  line-height: 1;
}

.nav-toggle { display: none; flex-direction: column; justify-content: space-between; width: 44px; height: 44px; padding: 13px 9px; }
.nav-toggle__bar { display: block; height: 2px; background: var(--ink-soft); border-radius: 2px; }

/* ── Mobile navigation ──────────────────────────────────────────── */
.mobile-nav {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 1100;
  width: min(320px, 85vw);
  padding: var(--s8) var(--s6);
  background: var(--paper);
  box-shadow: var(--sh-3);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
}
.mobile-nav.is-open { transform: translateX(0); }
.mobile-nav__buy { display: none; width: 100%; margin-bottom: var(--s5); }
@media (max-width: 980px) { .mobile-nav__buy { display: inline-flex; } }
.mobile-nav__list li a {
  display: flex; align-items: center; gap: var(--s3);
  padding-block: var(--s4);
  border-bottom: 1px solid var(--line);
  color: var(--ink-soft);
  text-decoration: none;
}
.mobile-nav-scrim, .cart-scrim {
  position: fixed; inset: 0; z-index: 1050;
  background: rgb(0 0 0 / .5);
  opacity: 0;
  transition: opacity var(--dur-slow);
}
.mobile-nav-scrim.is-open, .cart-scrim.is-open { opacity: 1; }
.cart-scrim { z-index: 200; }

/* ── Photographic page banner (About, Contact) ──────────────────── */
.page-banner {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(280px, 30vw, 440px);
  padding-block: var(--s8);
  background: var(--ink) center / cover no-repeat;
  text-align: center;
  color: var(--paper);
}
.page-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ink) 92%, transparent) 0%,
    color-mix(in srgb, var(--ink) 55%, transparent) 55%,
    color-mix(in srgb, var(--ink) 25%, transparent) 100%);
}
.page-banner .wrap { position: relative; z-index: 1; }
.page-banner__title { font-size: var(--t-hero); line-height: 1.12; color: var(--paper); text-wrap: wrap; }
.page-banner__sub { margin-top: var(--s2); font-size: var(--t-body); color: rgb(255 255 255 / .78); }

/* ── Closing CTA band ───────────────────────────────────────────── */
.cta-band { background: linear-gradient(90deg, var(--grad-from) 0%, var(--grad-to) 100%); }
.cta-band__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--s6);
  padding-block: var(--s6);
}
.cta-band__text {
  max-width: 62ch;
  font-family: var(--f-display);
  font-weight: var(--fw-display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.55;
  color: var(--paper);
}
.cta-band .btn { flex-shrink: 0; }

/* ── Home hero ──────────────────────────────────────────────────── */
.home-hero {
  position: relative;
  background: var(--ink) center / cover no-repeat;
  color: var(--paper);
}
.home-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(90deg,
    color-mix(in srgb, var(--ink) 94%, transparent) 0%,
    color-mix(in srgb, var(--ink) 70%, transparent) 45%,
    color-mix(in srgb, var(--ink) 20%, transparent) 100%);
}
.home-hero__inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  align-items: center;
  gap: var(--s7);
  padding-block: var(--s8);
  align-items: start;
}
.home-hero__copy { max-width: 32rem; }
.home-hero__flash {
  display: inline-block;
  margin-bottom: var(--s4);
  padding: var(--s2) var(--s4);
  border-radius: var(--r-sm);
  background: var(--accent);
  color: var(--accent-ink);
  font-weight: var(--fw-heavy);
  font-size: var(--t-small);
  letter-spacing: .06em;
}
.home-hero__title {
  font-size: var(--t-hero);
  line-height: 1.12;
  color: var(--paper);
  margin-bottom: var(--s5);
  /* text-wrap: balance is inherited from the h1 rule and would rebalance
     this into three even lines. The break point comes from the <br> in the
     copy instead, which is deterministic across browsers. */
  text-wrap: wrap;
}
@media (max-width: 700px) {
  .home-hero__title br { display: none; }
}
.home-hero__standfirst {
  font-family: var(--f-display);
  font-size: clamp(1.05rem, 1.5vw, 1.3rem);
  line-height: 1.4;
  letter-spacing: .01em;
  text-transform: uppercase;
  color: var(--paper);
  max-width: 28rem;
  margin-bottom: var(--s5);
}
.home-hero__intro {
  font-size: 0.95rem;
  line-height: 1.85;
  color: rgb(255 255 255 / .88);
  margin-bottom: var(--s5);
}
.home-hero__note {
  margin-top: var(--s5);
  font-size: 0.875rem;
  line-height: 1.85;
  color: rgb(255 255 255 / .8);
}
.home-hero__cover { max-width: 27rem; margin-inline-start: auto; }
.home-hero__cover img { width: 100%; }

/* ── Feature row ────────────────────────────────────────────────── */
.features { padding-block: var(--s9); }
.features__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: var(--s7);
}
.feature { display: flex; gap: var(--s4); }
.feature__icon { flex-shrink: 0; color: var(--accent-alt); }
.feature__title {
  font-family: var(--f-display);
  font-size: var(--t-h3);
  color: var(--ink-soft);
  margin-bottom: var(--s2);
}
.feature__text { font-size: var(--t-small); }

/* ── Pitch (stack image + copy) ─────────────────────────────────── */
.pitch { padding-block: var(--s8) var(--s9); }
.pitch__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s8);
}
.pitch__title { font-size: var(--t-h2); margin-bottom: var(--s4); }
.pitch__text { font-size: var(--t-small); }

/* ── Five-across photo strip ────────────────────────────────────── */
.photo-strip__list { display: grid; grid-template-columns: repeat(5, 1fr); }
.photo-strip__item img { width: 100%; height: clamp(150px, 16vw, 230px); object-fit: cover; }

/* ── Newsletter + homepage FAQ ──────────────────────────────────── */
.home-lower { padding-block: var(--s9); }
.home-lower__inner {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: var(--s8);
}
.newsletter__title { font-size: var(--t-h2); }
.newsletter__sub { font-style: italic; font-size: var(--t-small); margin-bottom: var(--s5); }
.newsletter__body { font-size: var(--t-small); margin-bottom: var(--s4); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: var(--s2); }
.newsletter__form input {
  flex: 1 1 12rem;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  color: var(--ink-soft);
}

.home-faqs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: var(--s6) var(--s7); }
.home-faq { display: flex; gap: var(--s3); }
.home-faq__icon { flex-shrink: 0; color: var(--accent-alt); }
.home-faq__q { font-family: var(--f-body); font-weight: var(--fw-bold); font-size: var(--t-body); color: var(--ink-soft); margin-bottom: var(--s2); }
.home-faq__a { font-size: var(--t-small); }

/* ── About ──────────────────────────────────────────────────────── */
.about-intro { padding-block: var(--s9); }
.about-intro__inner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--s8);
}
.about-intro__heading { font-size: var(--t-h2); margin-bottom: var(--s4); }
.about-intro__copy p { font-size: var(--t-small); margin-bottom: var(--s4); }
.about-intro__copy .btn { margin-top: var(--s3); }

.spreads { padding-block: var(--s7) var(--s9); }
.spreads__viewport { overflow: hidden; }
.spreads__track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.spreads__track::-webkit-scrollbar { display: none; }
.spreads__slide { flex: 0 0 100%; scroll-snap-align: center; }
.spreads__slide img { width: 100%; margin-inline: auto; }
.spreads__dots { display: flex; justify-content: center; gap: var(--s2); margin-top: var(--s5); }
.spreads__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line); transition: background var(--dur); }
.spreads__dot.is-active { background: var(--muted); }

.author { padding-block: var(--s9); background: var(--paper-warm); text-align: center; }
.author__badge { display: inline-grid; place-items: center; width: 46px; height: 46px; color: var(--accent-alt); }
.author__badge svg { width: 100%; height: 100%; }
.author__heading { font-size: var(--t-h2); margin-block: var(--s3) var(--s7); }
.author__inner {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  align-items: start;
  gap: var(--s7);
  max-width: 56rem;
  margin-inline: auto;
  text-align: start;
}
.author__figure { text-align: center; }
.author__figure img { width: 180px; height: 180px; border-radius: 50%; object-fit: cover; margin-inline: auto; }
.author__name { margin-top: var(--s4); font-size: var(--t-small); color: var(--ink-soft); }
.author__bio p { font-size: var(--t-small); }

/* ── FAQ page ───────────────────────────────────────────────────── */
.faq-page { padding-block: var(--s9); background: var(--paper-warm); }
.faq-page__heading { font-size: clamp(3rem, 7vw, 5.5rem); text-align: center; margin-bottom: var(--s8); color: var(--ink-soft); }

.accordion { max-width: 62rem; margin-inline: auto; display: flex; flex-direction: column; gap: var(--s3); }
.accordion__item { border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); overflow: hidden; }
.accordion__q {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s4);
  padding: var(--s4) var(--s5);
  background: var(--paper-warm);
  color: var(--ink-soft);
  font-size: var(--t-body);
  cursor: pointer;
  list-style: none;
}
.accordion__q::-webkit-details-marker { display: none; }
.accordion__chevron { width: 20px; height: 20px; flex-shrink: 0; color: var(--muted); transition: transform var(--dur); }
.accordion__item[open] .accordion__q { background: var(--paper); }
.accordion__item[open] .accordion__chevron { transform: rotate(180deg); }
.accordion__a { padding: var(--s5); border-top: 1px solid var(--line); }
.accordion__a p { font-size: var(--t-small); }
.accordion__a p + p { margin-top: var(--s4); }
.faq-page__extra { max-width: 62rem; margin: var(--s7) auto 0; }

/* ── Contact ────────────────────────────────────────────────────── */
.contact { padding-block: var(--s9); background: var(--paper-warm); }
.contact__inner {
  display: grid;
  grid-template-columns: minmax(0, .55fr) minmax(0, 1fr);
  gap: var(--s8);
  align-items: start;
}
.contact-col__heading { font-size: var(--t-h3); margin-bottom: var(--s4); }
.contact-col__logo { margin-bottom: var(--s4); }
.contact-col__logo--mscc img { width: 180px; height: auto; }
.contact-col__logo--offstone img { width: 180px; height: auto; }
.contact-col__line { font-size: var(--t-small); margin-bottom: var(--s3); color: var(--accent-alt); }
.contact-col__line a { text-decoration: none; }
.contact-col__line a:hover { text-decoration: underline; }
.contact-col__note { font-size: var(--t-small); margin-bottom: var(--s3); }
.contact-col__heading + .contact-col__heading { margin-top: var(--s7); }
.contact__aside .contact-col__heading:nth-of-type(2) { margin-top: var(--s7); }

.contact__heading { font-size: var(--t-h2); margin-bottom: var(--s4); }
.contact__lead { font-size: var(--t-small); margin-bottom: var(--s3); }

.contact-form { margin-top: var(--s5); display: flex; flex-direction: column; gap: var(--s4); }
.contact-form__row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); gap: var(--s4); }
.contact-form input, .contact-form textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font: inherit;
  color: var(--ink-soft);
}
.contact-form textarea { resize: vertical; }
.contact-form .btn { align-self: flex-start; }
.contact-form__notice { font-size: var(--t-micro); color: var(--muted); }

/* Contact Form 7, styled to match the live layout: name and email side by
   side, message and submit full width. Uses :has() so it adapts to whatever
   fields the form actually contains rather than assuming an order. */
.wpcf7 { margin-top: var(--s5); }

/* Contact Form 7 6.x wraps EVERY control in one <p>, separated by <br>, with
   the hidden fields in a fieldset before it. So the layout has to go on that
   <p>, not on the form. Verified against CF7 6.1.6.

   Single column: every field spans the full width of the contact column. */
.wpcf7-form { display: flex; flex-direction: column; gap: var(--s4); }
.wpcf7-form .hidden-fields-container { display: none; }

.wpcf7-form > p {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  margin: 0;
}
.wpcf7-form > p > br { display: none; }

.wpcf7-form-control-wrap { display: block; width: 100%; }

.wpcf7-form label { display: block; font-size: var(--t-small); color: var(--muted); }

.wpcf7-form input[type="text"],
.wpcf7-form input[type="email"],
.wpcf7-form input[type="tel"],
.wpcf7-form input[type="url"],
.wpcf7-form input[type="number"],
.wpcf7-form select,
.wpcf7-form textarea {
  width: 100%;
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--paper);
  font: inherit;
  color: var(--ink-soft);
}
.wpcf7-form textarea { min-height: 220px; resize: vertical; }
.wpcf7-form :is(input, select, textarea):focus {
  border-color: var(--accent-alt);
  outline: 2px solid var(--focus);
  outline-offset: 1px;
}

.wpcf7-form input[type="submit"], .wpcf7-form .wpcf7-submit {
  align-self: flex-start;
  width: auto;
  min-height: 48px;
  padding: var(--s3) var(--s6);
  border: none;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--f-body);
  font-weight: var(--fw-heavy);
  font-size: var(--t-small);
  letter-spacing: .04em;
  cursor: pointer;
  transition: filter var(--dur), transform var(--dur-fast);
}
.wpcf7-form input[type="submit"]:hover { filter: brightness(1.06); transform: translateY(-1px); }

.wpcf7-spinner { margin-inline-start: var(--s3); }
.wpcf7 form .wpcf7-response-output {
  margin: 0;
  padding: var(--s3) var(--s4);
  border-width: 2px;
  border-radius: var(--r-sm);
  font-size: var(--t-small);
}
.wpcf7-not-valid-tip { margin-top: var(--s1); font-size: var(--t-micro); }



/* ── Generic page ───────────────────────────────────────────────── */
/* padding-inline is NOT optional here. Without it every page using .pg-body
   runs edge to edge on mobile and tablet, including the WooCommerce cart and
   checkout, which inherit this container. */
.pg-body {
  max-width: var(--wrap-narrow);
  margin-inline: auto;
  padding-block: var(--s9);
  padding-inline: var(--gutter);
}
.pg-section + .pg-section { margin-block-start: var(--s7); }
.pg-section > * + * { margin-block-start: var(--s4); }
.pg-address {
  padding: var(--s4) var(--s5);
  border-inline-start: 3px solid var(--accent);
  background: var(--paper-warm);
  font-style: normal;
  line-height: 1.7;
  color: var(--ink-soft);
}
.pg-table-wrap { overflow-x: auto; }
.pg-table { width: 100%; border-collapse: collapse; font-size: var(--t-small); }
.pg-table th, .pg-table td {
  padding: var(--s3) var(--s4);
  border: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}
.pg-table th { background: var(--paper-warm); color: var(--ink-soft); font-weight: var(--fw-bold); }
.pg-list { padding-inline-start: var(--s5); }
.pg-list li { list-style: disc; margin-block-start: var(--s2); }
.pg-body > * + * { margin-block-start: var(--s4); }
.pg-body h2 { font-size: var(--t-h2); margin-block-start: var(--s7); }
.pg-body h3 { font-size: var(--t-h3); margin-block-start: var(--s6); }
.pg-body a { color: var(--accent-alt); }
.pg-body ul, .pg-body ol { padding-inline-start: var(--s5); }
.pg-body ul li { list-style: disc; }
.pg-body ol li { list-style: decimal; }

/* ── Footer ─────────────────────────────────────────────────────── */
.site-footer { padding-block: var(--s6); background: var(--paper); border-top: 1px solid var(--line); }
.site-footer__list { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.site-footer__list a { font-size: var(--t-small); color: var(--accent-alt); text-decoration: none; }
.site-footer__list a:hover { text-decoration: underline; }
.site-footer__copy { margin-top: var(--s3); font-size: var(--t-small); }
.site-footer__copy a { color: var(--accent-alt); text-decoration: none; }

/* ── Basket drawer ──────────────────────────────────────────────── */
.cart-drawer {
  position: fixed; inset-block: 0; inset-inline-end: 0; z-index: 201;
  display: flex; flex-direction: column;
  width: min(400px, 100%);
  background: var(--paper);
  transform: translateX(100%);
  transition: transform var(--dur-slow) var(--ease);
}
.cart-drawer.is-open { transform: translateX(0); }
.admin-bar .cart-drawer { inset-block-start: 32px; }
@media (max-width: 782px) { .admin-bar .cart-drawer { inset-block-start: 46px; } }

.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--s4) var(--s5);
  background: var(--ink);
  color: var(--paper);
}
.cart-drawer__title { font-size: var(--t-h3); color: var(--paper); }
.cart-drawer__close { font-size: 1.6rem; line-height: 1; color: rgb(255 255 255 / .8); }
/* Style by WooCommerce's OWN class, not ours. Its cart fragment replaces
   this element wholesale and strips any class we added, which silently
   collapsed the drawer layout after every add-to-cart. */
.cart-drawer__body,
.cart-drawer .widget_shopping_cart_content {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* No "View cart" button. There is no basket page to view: /cart/ redirects
   straight to the checkout. Leaving the button would send people through a
   pointless redirect and offer two buttons where there is one decision.
   Targeted from .cart-drawer, which sits OUTSIDE the fragment WooCommerce
   swaps on every add-to-cart, so the rule survives the swap. */
.cart-drawer .woocommerce-mini-cart__buttons a:not(.checkout) { display: none; }
.cart-drawer .woocommerce-mini-cart__buttons a.checkout { width: 100%; }

.woocommerce-mini-cart { flex: 1; overflow-y: auto; padding: var(--s4) var(--s5); }
/* WooCommerce nests the thumbnail INSIDE the product link, and the remove
   link is absolutely positioned, so a two-column grid on the <li> put the
   product link in the 64px image column and the title wrapped one word per
   line. The grid belongs on the link itself: image in column one, title in
   column two as an anonymous grid item. */
.woocommerce-mini-cart-item {
  position: relative;
  display: block;
  padding: var(--s4) var(--s6) var(--s4) 0;
  border-bottom: 1px solid var(--line);
}
.woocommerce-mini-cart-item > a:not(.remove) {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: var(--s4);
  align-items: start;
  font-family: var(--f-display);
  /* Deliberately smaller than --t-h3: the drawer is ~300px of usable width
     and the full book title needs to sit on two lines, not four. */
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--ink-soft);
  text-decoration: none;
}
.woocommerce-mini-cart-item img { width: 64px; box-shadow: var(--sh-1); }
/* WooCommerce 10 emits no .quantity wrapper: the price and stepper are
   direct children of the <li>. Indent them to line up under the title
   rather than under the thumbnail. */
.woocommerce-mini-cart-item > .mb-qty-price,
.woocommerce-mini-cart-item > .mb-qty {
  margin-inline-start: calc(64px + var(--s4));
}
.woocommerce-mini-cart-item > .mb-qty-price { margin-top: var(--s2); }
.cart-drawer a.remove, .cart-drawer a.remove_from_cart_button {
  position: absolute; inset-block-start: var(--s4); inset-inline-end: 0;
  width: 24px; height: 24px; display: grid; place-items: center;
  color: var(--muted) !important; background: none !important; border-radius: 50%;
}
.cart-drawer a.remove:hover { color: var(--accent-alt) !important; }

.mb-qty-price { display: block; margin-top: var(--s2); font-family: var(--f-display); font-size: var(--t-h3); color: var(--ink-soft); }
.mb-qty { display: flex; align-items: center; gap: var(--s2); margin-top: var(--s2); }
.mb-qty-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); color: var(--ink-soft); }
.mb-qty-btn:hover:not(:disabled) { border-color: var(--accent-alt); color: var(--accent-alt); }
.mb-qty-btn:disabled { opacity: .4; cursor: default; }
.mb-qty-val { min-width: 24px; text-align: center; font-family: var(--f-display); color: var(--ink-soft); }

.woocommerce-mini-cart__total {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: var(--s4) var(--s5) var(--s1);
  border-top: 1px solid var(--line);
  font-size: var(--t-micro); font-weight: var(--fw-heavy);
  letter-spacing: var(--ls-caps); text-transform: uppercase;
}
.woocommerce-mini-cart__total .amount { font-family: var(--f-display); font-size: var(--t-h3); color: var(--ink-soft); }
.cart-discount { padding: var(--s3) var(--s5) 0; }
.cart-discount__row {
  display: flex;
  justify-content: space-between;
  gap: var(--s3);
  font-size: var(--t-small);
  padding-block: var(--s1);
}
.cart-discount__row--total {
  margin-top: var(--s2);
  padding-top: var(--s2);
  border-top: 1px solid var(--line);
  font-weight: var(--fw-heavy);
  color: var(--ink-soft);
}
.cart-discount__row--total .amount { font-family: var(--f-display); font-size: var(--t-h3); }
.cart-shipping-note { padding-inline: var(--s5); margin-block: var(--s2) var(--s4); font-size: var(--t-small); }
.woocommerce-mini-cart__buttons { padding-inline: var(--s5); }
.woocommerce-mini-cart__buttons .button {
  display: block; width: 100%; min-height: 48px;
  padding: var(--s4); border-radius: var(--r-pill);
  text-align: center; text-decoration: none;
  font-weight: var(--fw-heavy); font-size: var(--t-small); letter-spacing: .04em;
}
.woocommerce-mini-cart__buttons .button:not(.checkout) { display: none; }
.woocommerce-mini-cart__buttons .button.checkout { background: var(--accent); color: var(--accent-ink); }
.cart-continue { display: block; width: 100%; padding: var(--s3) var(--s5) var(--s5); font-size: var(--t-small); }
.woocommerce-mini-cart__empty-message { padding: var(--s7) var(--s5); text-align: center; }

/* Membership / discount code, in the drawer above the checkout button. */
.cart-coupon { padding: var(--s4) var(--s5) var(--s2); }
.cart-coupon__label {
  display: block;
  margin-bottom: var(--s2);
  font-size: var(--t-micro);
  font-weight: var(--fw-heavy);
  letter-spacing: var(--ls-caps);
  text-transform: uppercase;
  color: var(--muted);
}
.cart-coupon__row { display: flex; gap: var(--s2); }
.cart-coupon__row input {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: var(--s2) var(--s3);
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  font: inherit;
  font-size: var(--t-small);
  color: var(--ink-soft);
}
.cart-coupon__row input:focus { border-color: var(--accent-alt); outline: 2px solid var(--focus); outline-offset: 1px; }
.cart-coupon__btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding-inline: var(--s4);
  border-radius: var(--r-sm);
  background: var(--ink-soft);
  color: var(--paper);
  font-size: var(--t-small);
  font-weight: var(--fw-heavy);
}
.cart-coupon__btn:hover { filter: brightness(1.15); }
.cart-coupon__msg:empty { display: none; }
.cart-coupon__msg {
  margin-top: var(--s2);
  font-size: var(--t-micro);
  color: var(--muted);
}
.cart-coupon__msg.is-error { color: #B3261E; }
.cart-coupon__msg.is-ok { color: var(--accent-alt); }
.cart-coupon__applied {
  padding: var(--s3) var(--s4);
  border: 1px solid var(--accent-alt);
  border-radius: var(--r-sm);
  background: color-mix(in srgb, var(--accent-alt) 10%, var(--paper));
  font-size: var(--t-small);
  color: var(--ink-soft);
}

/* ── Holiday mode ───────────────────────────────────────────────── */
.mb-holiday-bar { background: var(--accent-alt); color: var(--paper); }
.mb-holiday--banner { max-width: var(--wrap); margin-inline: auto; padding: var(--s3) var(--gutter); text-align: center; }
.mb-holiday--banner .mb-holiday__text { font-size: var(--t-small); font-weight: var(--fw-bold); }
.mb-holiday--product, .mb-holiday--checkout, .mb-holiday--thankyou {
  margin-block: 0 var(--s5);
  padding: var(--s4) var(--s5);
  border: 2px solid var(--accent-alt);
  border-radius: var(--r-md);
  background: color-mix(in srgb, var(--accent-alt) 12%, var(--paper));
  color: var(--ink-soft);
}
.mb-holiday--thankyou { margin-block: var(--s5); }
@media print { .mb-holiday-bar { display: none; } }

/* ── Responsive ─────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .site-nav { display: none; }

  /* Buy Now moves into the slide-out panel on mobile, and the basket and
     hamburger sit hard right. */
  .site-header__actions > .btn--buy { display: none; }
  .site-header__actions { margin-inline-start: auto; }
  .nav-toggle { display: flex; }
  .site-header__inner { min-height: 76px; }
  .site-logo img { height: 58px; }

  .home-hero__inner,
  .pitch__inner,
  .about-intro__inner,
  .home-lower__inner,
  .contact__inner,
  .author__inner { grid-template-columns: 1fr; }

  .home-hero__cover { order: -1; max-width: 320px; margin-inline: auto; }
  .pitch__media { max-width: 420px; margin-inline: auto; }

  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .cta-band__text { font-size: var(--t-body); }

  .photo-strip__list { grid-template-columns: repeat(2, 1fr); }
  .photo-strip__item:last-child { grid-column: span 2; }

  .author__inner { text-align: center; }
  .author__bio { text-align: start; }
}

@media (max-width: 780px) {
  /* 96px of dead space above the checkout on a phone is a lot of thumb work
     before anyone sees a field. */
  .pg-body { padding-block: var(--s7); }
  .faq-page { padding-block: var(--s7); }
}

@media (max-width: 560px) {
  .faq-page__heading { font-size: 3rem; }
  .accordion__q { padding: var(--s4); font-size: var(--t-small); }
  .accordion__a { padding: var(--s4); }
  .photo-strip__list { grid-template-columns: 1fr; }
  .photo-strip__item:last-child { grid-column: auto; }
}

@media print {
  .site-header, .cart-drawer, .cart-scrim, .mobile-nav, .cta-band, .site-footer { display: none !important; }
  body { color: #000; background: #fff; }
}
