/* More Lessons Less Planning — storefront stylesheet
   Palette: canvas #F4F5F3, card #FFFFFF, ink #2E3A46, ink-soft #5C6B77,
   blue #6B8CAE, blue-deep #43648C, sage #A7C4B0, sage-bg #EAF0EC,
   green #3D8B78, coral #E8735A, line #E3E6E1, footer #2E3A46.
   Fonts: Fraunces (headings) + Karla (body). Zero JS. */

:root {
  --canvas: #F4F5F3;
  --card: #FFFFFF;
  --ink: #2E3A46;
  --ink-soft: #5C6B77;
  --blue: #6B8CAE;
  --blue-deep: #43648C;
  --sage: #A7C4B0;
  --sage-bg: #EAF0EC;
  --sage-ink: #28443A;
  --green: #3D8B78;
  --coral: #E8735A;
  --line: #E3E6E1;
  --footer: #2E3A46;
  --footer-text: #C7CFD6;
  --navy: #1B2A4A;
  --teal: #2A9D8F;
}

* { box-sizing: border-box; }

html { color-scheme: light; }

body {
  margin: 0;
  font-family: 'Karla', 'Segoe UI', system-ui, sans-serif;
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.5;
}

h1, h2, h3 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 650;
  margin: 0;
}

a { color: var(--blue-deep); }
a:hover { color: #2E4A6B; }

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

ul { margin: 0; padding: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Nav ---------- */
.site-nav {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 18px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand {
  font-family: 'Fraunces', Georgia, serif;
  font-size: 21px;
  font-weight: 650;
  color: var(--ink);
  text-decoration: none;
}
.brand span { color: var(--green); }
.nav-search { display: flex; flex: 0 1 220px; min-width: 180px; }
.nav-search input {
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
}
.nav-search input:focus { outline: 2px solid var(--blue-deep); outline-offset: 1px; }
.nav-links {
  display: flex;
  gap: 26px;
  align-items: center;
  font-size: 15px;
  font-weight: 500;
  flex-wrap: wrap;
}
.nav-links a {
  color: var(--ink);
  text-decoration: none;
}
.nav-links a:hover { color: var(--blue-deep); }
.nav-dropdown { position: relative; }
.nav-dropdown > summary {
  cursor: pointer;
  color: var(--ink);
  list-style: none;
}
.nav-dropdown > summary::-webkit-details-marker { display: none; }
.nav-dropdown-panel {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  z-index: 60;
}
.nav-dropdown-panel .course-chip { border: none; padding: 6px 8px; }
.nav-dropdown-all { font-weight: 700; color: var(--blue-deep); margin-top: 4px; }
/* Above the tip fab's z-index: 50 (Wave A step 3) -- an open dropdown panel
   must never render under the fixed fab. */
@media (max-width: 775px) {
  /* Absolute panels clip near a wrapping nav at this width. */
  .nav-dropdown-panel { position: static; box-shadow: none; }
}
.nav-cta {
  text-decoration: none;
  background: var(--green);
  color: var(--card) !important;
  font-weight: 700;
  padding: 9px 18px;
  border-radius: 9px;
}

/* ---------- Hero ---------- */
.hero {
  display: flex;
  gap: 48px;
  align-items: center;
  padding: 60px 24px;
  max-width: 1180px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.hero-copy { flex: 1 1 420px; max-width: 640px; }
.badge {
  display: inline-block;
  background: var(--sage);
  color: var(--sage-ink);
  font-size: 13px;
  font-weight: 700;
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.hero-copy h1 {
  font-size: 40px;
  line-height: 1.15;
}
.hero-copy .accent { color: var(--blue-deep); }
.hero-sub {
  margin-top: 16px;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-soft);
}
.hero-actions {
  display: flex;
  gap: 18px;
  align-items: center;
  margin-top: 26px;
  flex-wrap: wrap;
}
.btn-primary {
  text-decoration: none;
  background: var(--green);
  color: var(--card);
  font-weight: 700;
  font-size: 16px;
  padding: 13px 24px;
  border-radius: 10px;
  display: inline-block;
}
.btn-secondary {
  text-decoration: none;
  background: var(--blue-deep);
  color: var(--card);
  font-weight: 700;
  font-size: 14.5px;
  padding: 11px 18px;
  border-radius: 9px;
  display: inline-block;
}
.text-link { font-weight: 700; font-size: 15px; }

.hero-art {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  flex: 0 0 auto;
}
.hero-art-link { display: block; }
.hero-art img {
  width: 200px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 12px 28px rgba(27, 42, 74, 0.18);
}

/* ---------- Trust strip ---------- */
.trust-strip {
  display: flex;
  gap: 40px;
  justify-content: center;
  padding: 20px 24px;
  background: var(--card);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 14.5px;
  font-weight: 700;
  color: var(--blue-deep);
  flex-wrap: wrap;
  text-align: center;
}

/* ---------- Sections ---------- */
.section {
  padding: 56px 24px;
  max-width: 1180px;
  margin: 0 auto;
}
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.section h2 { font-size: 28px; }

/* ---------- Subject cards (course picker) ---------- */
.subject-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}
.subject-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
}
.subject-card summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 20px;
}
.subject-card summary::-webkit-details-marker { display: none; }
.subject-card summary h3 { font-size: 18px; margin: 0; }
.subject-card summary h3::after {
  content: " +";
  color: var(--ink-soft);
}
.subject-card[open] summary h3::after { content: " \2212"; }
.subject-count { font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.course-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0 20px 20px;
}
.course-chip {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
}
.course-chip:hover { border-color: var(--blue-deep); color: var(--blue-deep); }
.chip-count { color: var(--ink-soft); font-size: 12px; }

/* ---------- Spotlight (upcoming special topic) ---------- */
.spotlight-card {
  display: block;
  background: var(--sage-bg);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 26px 24px;
  text-decoration: none;
  color: var(--ink);
}
.spotlight-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
  margin-bottom: 6px;
}
.spotlight-card h2 { font-size: 26px; margin: 0 0 8px; }
.spotlight-card p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.55; margin: 0 0 10px; }
.spotlight-card .text-link { font-size: 13.5px; }

/* ---------- Verification band ---------- */
.verify-band {
  background: var(--sage-bg);
  padding: 52px 24px;
}
.verify-band-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.verify-band h2 { font-size: 26px; max-width: 32ch; }
.verify-band .lede { font-size: 15.5px; color: var(--ink-soft); max-width: 72ch; line-height: 1.6; }
.verify-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.verify-step {
  background: var(--card);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.step-label { font-weight: 700; color: var(--green); font-size: 13px; }
.verify-step .step-title { font-weight: 700; font-size: 15.5px; }
.verify-step p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; }

/* ---------- Product cards / grid ---------- */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: var(--ink);
}
.product-card.is-bundle { border: 2px solid var(--green); }
.product-card-cover {
  height: 230px;
  overflow: hidden;
  background: var(--sage-bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}
/* contain, not cover: the covers are designed compositions — never crop them */
.product-card-cover img { width: 100%; height: 100%; object-fit: contain; }
.product-card-body {
  padding: 16px 18px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.kicker.best-value { color: var(--green); }
.product-card h3 { font-size: 17px; }
.product-card .blurb { font-size: 13px; color: var(--ink-soft); line-height: 1.5; }
.price { font-weight: 700; font-size: 15.5px; margin-top: 2px; }
.price .save-note { color: var(--ink-soft); font-weight: 400; font-size: 12.5px; }

.cover-rail {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 8px;
  -webkit-overflow-scrolling: touch;
}
.cover-rail .product-card { flex: 0 0 220px; scroll-snap-align: start; }

/* ---------- Breadcrumb ---------- */
.breadcrumb {
  padding: 18px 24px 0 24px;
  max-width: 1180px;
  margin: 0 auto;
  font-size: 13px;
  color: var(--ink-soft);
}
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--blue-deep); }

/* ---------- Product page ---------- */
.product-main {
  display: flex;
  gap: 44px;
  padding: 24px 24px 52px 24px;
  max-width: 1180px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.product-media { flex: 1 1 440px; max-width: 520px; display: flex; flex-direction: column; gap: 12px; }
.product-cover {
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
}
.product-cover img { width: 100%; height: auto; }
.component-cover {
  max-width: 240px;
  border-radius: 14px;
  overflow: hidden;
  background: var(--navy);
}
.component-cover img { width: 100%; height: auto; }
.thumb-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.thumb {
  border: 1px solid var(--line);
  border-radius: 9px;
  overflow: hidden;
  background: var(--card);
}
.thumb img { width: 100%; height: 96px; object-fit: contain; background: #fff; }

.buy-panel { flex: 1 1 380px; display: flex; flex-direction: column; gap: 12px; }
.buy-panel h1 { font-size: 30px; line-height: 1.15; }
.buy-panel .lede { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; max-width: 52ch; }

.whats-inside {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}
.whats-inside-title { font-weight: 700; font-size: 14.5px; }
.whats-inside ul { list-style: none; display: flex; flex-direction: column; gap: 5px; }
.whats-inside li { font-size: 14px; color: var(--ink-soft); padding-left: 16px; position: relative; }
.whats-inside li::before { content: "—"; position: absolute; left: 0; }

.buy-row { display: flex; align-items: center; gap: 18px; margin-top: 4px; flex-wrap: wrap; }
.price-big { font-size: 28px; font-weight: 700; font-family: 'Fraunces', Georgia, serif; }
/* The free marker that replaced the price (free pivot Step 3). site_gate
   check 4 looks for the CLASS, so the class name is a contract, not a style
   hook -- renaming it here fails the build until the gate is changed too. */
.price-free {
  font-size: 28px;
  font-weight: 700;
  font-family: 'Fraunces', Georgia, serif;
  color: var(--green);
  letter-spacing: -0.01em;
}
.product-card .price-free, .product-card-body .price-free {
  font-size: 15.5px;
  margin-top: 2px;
  letter-spacing: 0;
}
.btn-buy {
  text-decoration: none;
  background: var(--green);
  color: var(--card);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 10px;
  display: inline-block;
}
.buy-placeholder {
  display: inline-block;
  background: var(--line);
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 14.5px;
  padding: 13px 22px;
  border-radius: 10px;
}
.delivery-note { font-size: 12.5px; color: var(--ink-soft); line-height: 1.55; max-width: 52ch; }

.verify-chip {
  display: flex;
  gap: 10px;
  align-items: center;
  background: var(--sage-bg);
  border-radius: 10px;
  padding: 11px 15px;
  max-width: 480px;
}
.verify-chip-dot { width: 8px; height: 8px; background: var(--green); border-radius: 50%; flex-shrink: 0; }
.verify-chip span { font-size: 13px; color: var(--sage-ink); font-weight: 500; }
.verify-chip a { color: var(--sage-ink); }

.product-lower {
  display: flex;
  gap: 44px;
  padding: 0 24px 56px 24px;
  max-width: 1180px;
  margin: 0 auto;
  flex-wrap: wrap;
}

/* Phase 1.5 Wave C (spec C2): the kicker-style "Fits: <course> · <duration>"
   line and the "What students do" / "What it covers" / "Learning targets"
   boxes. Both force a full-width row inside the flex .product-lower so they
   sit ABOVE the description/bundle-cross pair rather than squeezing into
   the same row as them. */
.product-fits {
  flex: 1 1 100%;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue-deep);
}
.product-detail-boxes {
  flex: 1 1 100%;
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.detail-box {
  flex: 1 1 260px;
  max-width: 380px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.detail-box h2 { font-size: 15.5px; margin: 0 0 10px 0; }
.detail-box ul { list-style: none; display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.detail-box li { font-size: 14px; color: var(--ink-soft); line-height: 1.5; padding-left: 16px; position: relative; }
.detail-box li::before { content: "—"; position: absolute; left: 0; }

.description { flex: 2 1 480px; max-width: 720px; }
.description h2 { font-size: 22px; margin-bottom: 12px; }
.description p { font-size: 15px; color: var(--ink-soft); line-height: 1.7; margin: 0 0 12px 0; }
.description ul { margin: 0 0 12px 20px; }
.description li { font-size: 15px; color: var(--ink-soft); line-height: 1.6; list-style: disc; }

.bundle-cross {
  flex: 1 1 320px;
  max-width: 360px;
  align-self: flex-start;
  background: var(--card);
  border: 2px solid var(--green);
  border-radius: 14px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bundle-cross .kicker { color: var(--green); }
.bundle-cross h3 { font-size: 17px; }
.bundle-cross p { font-size: 13.5px; color: var(--ink-soft); line-height: 1.5; margin: 0; }
.bundle-cross a { align-self: flex-start; margin-top: 4px; }

/* ---------- Hub page ---------- */
.hub-hero {
  background: var(--card);
  border-bottom: 1px solid var(--line);
  padding: 44px 24px;
}
.hub-hero-inner { max-width: 1180px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.hub-hero h1 { font-size: 34px; }
.hub-hero .lede { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; max-width: 68ch; }
.unit-chips { display: flex; gap: 10px; margin-top: 6px; flex-wrap: wrap; }
.chip {
  text-decoration: none;
  background: var(--sage-bg);
  color: var(--sage-ink);
  font-weight: 700;
  font-size: 13px;
  padding: 7px 15px;
  border-radius: 999px;
}
.chip.is-active { background: var(--green); color: var(--card); }

.bundle-promo {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  background: var(--blue-deep);
  padding: 22px 24px;
  flex-wrap: wrap;
}
.bundle-promo-inner {
  max-width: 1180px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.bundle-promo-copy .headline { color: var(--card); font-weight: 700; font-size: 16px; font-family: 'Fraunces', Georgia, serif; }
.bundle-promo-copy .sub { color: #D4DEEA; font-size: 13.5px; }
.bundle-promo .btn-secondary { background: var(--card); color: var(--blue-deep); }

.unit-group { margin-bottom: 36px; }
.unit-group h2 { font-size: 22px; }
.unit-count { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Browse + shelf search ---------- */
/* .search-box ships with the `hidden` attribute and static/search.js clears
   it once the index has loaded, so a no-JS visitor never sees a dead input. */
.search-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
  max-width: 480px;
}
/* Load-bearing, NOT redundant with the `hidden` attribute: the author-origin
   `display: flex` above outranks the user-agent stylesheet's
   `[hidden] { display: none }`, so without this rule the attribute is inert on
   this element and every no-JS visitor gets a fully rendered, dead search box.
   Specificity is (0,2,0) against the block's (0,1,0), so it wins from anywhere
   in the file. A bare `[hidden] { display: none }` would NOT work here: at
   (0,1,0) it ties the class rule and loses to whichever comes last. */
.search-box[hidden] { display: none; }
.search-box label { font-weight: 700; font-size: 13.5px; color: var(--ink-soft); }
.search-box input {
  font-family: inherit;
  font-size: 15.5px;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 14px;
  width: 100%;
}
.search-box input:focus { outline: 2px solid var(--blue-deep); outline-offset: 1px; }
.search-status { font-size: 13.5px; color: var(--ink-soft); min-height: 20px; }

.facet-row { display: flex; flex-direction: column; gap: 8px; margin-bottom: 20px; }
.facet-title { font-weight: 700; font-size: 13.5px; color: var(--ink-soft); }
.facet-row .unit-chips { margin-top: 0; }

/* ---------- Browse pagination (ERRATA v3 item 26) ---------- */
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 8px auto 56px;
  padding: 0 20px;
  max-width: 1160px;
}
/* Same load-bearing pairing as .search-box[hidden] above: `display: flex` is
   author-origin and outranks the user-agent `[hidden] { display: none }`, so
   without this rule search.js could not hide the pager while matches show. */
.pagination[hidden] { display: none; }
.pagination-numbers { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pagination-step,
.pagination-number {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 14px;
}
.pagination-step:hover,
.pagination-number:hover { border-color: var(--blue-deep); color: var(--blue-deep); }
.pagination-number.is-current {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--card);
}
.pagination-step.is-disabled { color: var(--ink-soft); opacity: 0.45; }
.pagination-step.is-disabled:hover { border-color: var(--line); color: var(--ink-soft); }

/* ---------- Blog ---------- */
.blog-article {
  display: flex;
  justify-content: center;
  padding: 48px 24px;
}
.blog-article-inner { max-width: 720px; display: flex; flex-direction: column; gap: 16px; }
.blog-article h1 { font-size: 32px; line-height: 1.15; }
.blog-meta { font-size: 13px; color: var(--ink-soft); }
.blog-body { font-size: 16px; line-height: 1.75; color: #3E4B57; display: flex; flex-direction: column; gap: 15px; }
.blog-body h2 { font-size: 21px; margin-top: 6px; }
.blog-body p { margin: 0; }
.blog-body ul { margin-left: 20px; }
.blog-body li { list-style: disc; margin-bottom: 6px; }

.blog-callout {
  display: flex;
  gap: 18px;
  align-items: center;
  background: var(--card);
  border: 2px solid var(--green);
  border-radius: 14px;
  padding: 20px 22px;
  margin: 8px 0;
  flex-wrap: wrap;
}
.blog-callout img { width: 100px; border-radius: 8px; flex-shrink: 0; }
.blog-callout-copy .kicker { color: var(--green); }

.author-box {
  display: flex;
  gap: 14px;
  align-items: center;
  background: var(--sage-bg);
  border-radius: 12px;
  padding: 16px 20px;
  margin-top: 10px;
}
.author-avatar {
  width: 46px;
  height: 46px;
  background: var(--green);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--card);
  font-family: 'Fraunces', Georgia, serif;
  font-size: 18px;
  flex-shrink: 0;
}
.author-box p { font-size: 13.5px; color: var(--sage-ink); line-height: 1.55; margin: 0; }

.blog-index-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 760px;
}
.blog-index-item {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
  text-decoration: none;
  color: var(--ink);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.blog-index-item h2 { font-size: 19px; }
.blog-index-item p { font-size: 14px; color: var(--ink-soft); margin: 0; }

.empty-state {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px;
  max-width: 640px;
  font-size: 15.5px;
  color: var(--ink-soft);
  line-height: 1.7;
}
.empty-state p { margin: 0 0 12px 0; }
.empty-state p:last-child { margin-bottom: 0; }

/* ---------- Generic static page ---------- */
.page-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 52px 24px 64px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.page-content h1 { font-size: 32px; }
.page-content h2 { font-size: 21px; margin-top: 8px; }
.page-content p { font-size: 15.5px; color: var(--ink-soft); line-height: 1.7; margin: 0; }
.page-content ul { margin-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.page-content li { font-size: 15.5px; color: var(--ink-soft); line-height: 1.6; list-style: disc; }

/* ---------- 404 ---------- */
.not-found {
  max-width: 640px;
  margin: 0 auto;
  padding: 90px 24px;
  text-align: center;
}
.not-found h1 { font-size: 34px; margin-bottom: 12px; }
.not-found p { font-size: 15.5px; color: var(--ink-soft); }

/* ---------- Footer ---------- */
.site-footer {
  background: var(--footer);
  color: var(--footer-text);
  padding: 40px 24px;
}
.footer-inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 40px;
  font-size: 14px;
  flex-wrap: wrap;
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 40ch;
}
.footer-brand .name { font-family: 'Fraunces', Georgia, serif; font-size: 18px; color: var(--card); }
.footer-cols { display: flex; gap: 48px; flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: 8px; }
.footer-col .col-title { color: var(--card); font-weight: 700; }
.footer-col .col-subject { color: var(--card); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; margin-top: 6px; }
.footer-col a { color: var(--footer-text); text-decoration: none; }
.footer-col a:hover { color: var(--card); }

/* ---------- Responsive ---------- */
@media (max-width: 860px) {
  .hero { flex-direction: column; align-items: flex-start; padding: 44px 20px; }
  .hero-copy { flex: 1 1 auto; }
  .hero-art { order: -1; }
  .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .verify-grid { grid-template-columns: 1fr; }
  .product-main { flex-direction: column; }
  .product-media, .buy-panel { flex: 1 1 auto; max-width: none; }
  .product-lower { flex-direction: column; }
  .description, .bundle-cross { flex: 1 1 auto; max-width: none; }
  .product-detail-boxes { flex-direction: column; }
  .detail-box { max-width: none; }
  .thumb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { flex-direction: column; gap: 24px; }
}

@media (max-width: 560px) {
  .subject-grid { grid-template-columns: 1fr; }
  .product-grid { grid-template-columns: 1fr; }
  .nav-links { gap: 14px; font-size: 14px; }
  .hero-copy h1 { font-size: 30px; }
}


/* --- Per-component download pages + product component/related lists
       (free pivot, Step 2) ------------------------------------------------ */

.component-main {
  max-width: 760px;
  margin: 0 auto;
  /* Bottom padding dropped from 56px: quick start, the verify chip and the
     sibling list moved out to .component-strip blocks below this article
     (free pivot Step 5), and the last of those carries the page's bottom
     space now. */
  padding: 34px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.component-main h1 { font-size: 32px; }
.component-main h2 { font-size: 20px; }
.component-blurb { font-size: 16px; color: var(--ink-soft); line-height: 1.7; margin: 0; max-width: 62ch; }

.get-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.btn-get {
  text-decoration: none;
  background: var(--green);
  color: var(--card);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border-radius: 10px;
  display: inline-block;
}
.get-filename { font-size: 12px; color: var(--ink-soft); font-family: 'Karla', sans-serif; }

.extra-downloads { list-style: none; margin: 0; padding: 0; display: flex; gap: 16px; flex-wrap: wrap; }
.extra-downloads a { font-size: 14px; font-weight: 700; }
.drive-note { font-size: 13.5px; color: var(--ink-soft); line-height: 1.6; margin: 0; max-width: 62ch; }

.quick-start { display: flex; flex-direction: column; gap: 10px; }
.quick-start ol { margin: 0 0 0 20px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.quick-start li { font-size: 15px; color: var(--ink-soft); line-height: 1.6; }

.siblings { display: flex; flex-direction: column; gap: 10px; }
.sibling-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 14px; }
.sibling-list a {
  display: inline-block;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 13.5px;
  text-decoration: none;
  color: var(--ink);
}
.sibling-list a:hover { border-color: var(--blue); color: var(--blue-deep); }

.component-list, .related-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px 20px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.component-list li, .related-list li { font-size: 15px; }
.related-unit { font-size: 13px; color: var(--ink-soft); }

@media (max-width: 700px) {
  .component-list, .related-list { grid-template-columns: 1fr; }
}

/* ---------- Email gate + tips (free pivot Steps 3 and 4) ---------- */
/* The panel ships with the `hidden` attribute and static/gate.js unhides it.
   Nothing here may un-hide it: a CSS rule that overrode `hidden` would show
   the signup to no-JS visitors, who have no way to dismiss it. */
.email-gate {
  margin: 22px 0 0 0;
  padding: 22px 24px;
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 12px;
  max-width: 62ch;
}
.email-gate h2 { font-size: 19px; margin: 0 0 8px 0; }
.email-gate p { font-size: 15px; color: var(--ink-soft); line-height: 1.65; margin: 0 0 14px 0; }
.email-gate-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.email-gate-form label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 5px;
}
.email-gate-form input {
  font: inherit;
  font-size: 15px;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  min-width: 16rem;
  flex: 1 1 16rem;
}
.email-gate-form button {
  font: inherit;
  font-weight: 700;
  font-size: 15px;
  padding: 12px 22px;
  border: 0;
  border-radius: 9px;
  background: var(--teal);
  color: var(--card);
  cursor: pointer;
}
.email-gate-skip { margin: 12px 0 0 0; }
.email-gate-skip button {
  font: inherit;
  font-size: 13.5px;
  color: var(--ink-soft);
  background: none;
  border: 0;
  padding: 0;
  text-decoration: underline;
  cursor: pointer;
}

.tip-row { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; margin: 0; max-width: 62ch; }
.tip-band {
  margin: 0 24px 32px 24px;
  padding: 18px 22px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
}
.tip-band p { font-size: 14.5px; color: var(--ink-soft); line-height: 1.65; margin: 0; max-width: 68ch; }
.btn-tip { font-weight: 700; color: var(--coral); }

/* ---------- Ad slots (free pivot, Step 5) ----------
   RESERVED HEIGHT is the point of this block. An ad unit that loads after
   first paint and pushes the page down is the single worst thing ads do to a
   reading page, so the container holds its space whether or not anything ever
   fills it. With gate_config.ADS_ENABLED False none of this renders at all;
   the rules stay here so the day the switch flips, nothing about the layout
   moves. */
.ad-slot {
  display: block;
  min-height: 280px;
  max-width: 760px;
  margin: 0 auto 28px auto;
  padding: 0 20px;
  box-sizing: border-box;
  overflow: hidden;
}
.ad-slot ins { display: block; width: 100%; }

@media (max-width: 700px) {
  .ad-slot { min-height: 250px; }
}

/* ad-slot-label: the "Advertisements" disclosure inside every rendered slot
   (Wave A step 2). Small and muted on purpose -- it exists to satisfy
   AdSense's ad-labeling policy, not to draw the eye away from content. */
.ad-slot-label {
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 6px;
}

/* ad-context-note: sponsor caption that sits directly above the ad on
   product pages, gated on ads_enabled alongside the slot itself (Wave A
   step 2). It is the ad's separation guarantor from the buy panel -- keep it
   a SIBLING of .ad-slot, never a shared wrapper. */
.ad-context-note {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px;
}
.ad-context-note p {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0 0 6px 0;
  line-height: 1.4;
}

/* ---------- Page strips (free pivot, Step 5) ----------
   The blocks that used to live inside .component-main and .buy-panel, lifted
   out to page level so an ad slot can sit between them and the download
   control without sharing a container with it (plan ERRATA item 17). */
.component-strip {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 18px;
}
.component-strip h2 { font-size: 20px; }
.component-strip-last { padding-bottom: 56px; }

.product-strip {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px 24px;
}

/* ---------- Tip fab (Wave A step 3) ----------
   A site-wide floating tip-jar button, distinct from the in-content
   .btn-tip inside .tip-band. It must never overlap an ad unit -- AdSense's
   accidental-click policy is strict about controls sitting near ad
   creative -- so this stays small, fully opaque, and well inset from the
   edge; ad slots are in-flow full-width blocks with a reserved min-height
   (280px, see .ad-slot above), never fixed/floating, so there is no
   scroll position where the two can occupy the same screen region. */
.tip-fab {
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 50;
  display: inline-flex;
  align-items: center;
  padding: 12px 20px;
  max-height: 48px;
  box-sizing: border-box;
  background: var(--coral);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  opacity: 1;
}
.tip-fab:hover { filter: brightness(0.96); }

@media (max-width: 700px) {
  .tip-fab { padding: 8px 14px; }
}
