/* Oakland Newborn Photographers: surface pack stylesheet.
 * Source of truth: brand/DESIGN.md (tokens locked in section 4, amendments in section 13).
 * Class contract for writers: pack/README.md. Light only. No shadows, no gradients, no JS-driven layout.
 * Colors and font stacks appear only in the :root block; everything below references a token. */

@font-face {
  font-family: "Jost";
  src: url("/fonts/jost-latin-variable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Bree Serif";
  src: url("/fonts/bree-serif-latin-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  color-scheme: light;
  --color-paper:        oklch(99.4% 0.003 205);
  --color-paper-2:      oklch(96.5% 0.018 205);
  --color-paper-3:      oklch(93%   0.030 205);
  --color-paper-warm:   oklch(96.5% 0.020 75);
  --color-photo-fallback: oklch(93% 0.015 230);
  --color-ink:          oklch(25%   0.010 215);
  --color-ink-2:        oklch(45%   0.012 215);
  --color-rule:         oklch(88%   0.012 205);
  --color-bar:          oklch(18%   0.008 215);
  --color-bar-ink:      var(--color-paper);
  --color-teal:         oklch(62.9% 0.102 210);
  --color-band:         oklch(54%   0.090 210);
  --color-band-ink:     var(--color-paper);
  --color-band-strong:  oklch(49%   0.085 210);
  --color-teal-ink:     oklch(44%   0.072 210);
  --color-peach:        oklch(95.5% 0.028 65);
  --color-apricot:      oklch(80%   0.090 55);
  --color-clay:         oklch(48%   0.130 42);
  --color-clay-deep:    oklch(42%   0.120 42);
  --color-link:         oklch(47%   0.160 262);
  --color-focus:        oklch(48%   0.200 262);
  --color-focus-inverse: var(--color-paper);
  --color-footer:       oklch(26%   0.008 215);
  --color-footer-ink:   oklch(94%   0.006 215);
  --color-footer-muted: oklch(78%   0.008 215);
  --color-footer-rule:  oklch(38%   0.008 215);

  --font-sans: "Jost", system-ui, sans-serif;
  --font-display: "Bree Serif", Georgia, "Times New Roman", serif;
  --font-body: var(--font-sans);
  --w-body: 400; --w-label: 500; --w-ui: 600; --w-head: 700; --w-title: 800; --w-display: 400;

  --text-xs:   0.8125rem;
  --text-sm:   0.9375rem;
  --text-base: 1.0625rem;
  --text-lede: clamp(1.1875rem, 1.1rem + 0.45vw, 1.375rem);
  --text-h3:   clamp(1.25rem, 1.15rem + 0.5vw, 1.5rem);
  --text-h2:   clamp(1.75rem, 1.4rem + 1.4vw, 2.375rem);
  --text-title-long: clamp(3.25rem, 1.9rem + 2.2vw, 3.5rem);
  --text-title:      clamp(3.25rem, 2.2rem + 3.4vw, 4.5rem);
  --text-title-vw:   13.4vw;
  --text-stat: clamp(2.5rem, 2rem + 2vw, 3.5rem);
  --text-quote: clamp(1.375rem, 1.2rem + 0.8vw, 1.75rem);
  --lh-body: 1.6; --lh-tight: 1.1; --lh-ui: 1.3;

  --space-3xs: 0.25rem; --space-2xs: 0.5rem; --space-xs: 0.75rem; --space-sm: 1rem;
  --space-md: 1.5rem; --space-lg: 2rem; --space-xl: 3rem; --space-2xl: 4rem; --space-3xl: 6rem; --space-4xl: 8rem;

  --page-max:  72rem;
  --prose-max: 48rem;
  --gutter:    clamp(1rem, 4vw, 2.5rem);

  --radius-0: 0;
  --radius-1: 4px;
  --border-1: 1px solid var(--color-rule);
  --shadow-none: none;

  --dur-fast: 150ms; --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ---------- Reset and base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-x: clip; }
body {
  margin: 0;
  overflow-x: clip;
  background: var(--color-paper);
  color: var(--color-ink);
  font-family: var(--font-body);
  font-weight: var(--w-body);
  font-size: var(--text-base);
  line-height: var(--lh-body);
  text-wrap: pretty;
  -webkit-font-smoothing: antialiased;
}
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > main { flex: 1 0 auto; }
img, picture, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  letter-spacing: 0;
  font-style: normal;
  text-wrap: balance;
  overflow-wrap: anywhere;
  min-width: 0;
  margin: 0;
  font-weight: var(--w-display);
  font-synthesis: none;
}
h2 { font-size: var(--text-h2); font-weight: var(--w-display); }
h3 { font-size: var(--text-h3); font-weight: var(--w-display); }
h4 { font-size: var(--text-base); font-weight: var(--w-ui); }
p, ul, ol, dl, figure, blockquote { margin: 0; }
blockquote { text-wrap: balance; }
a {
  color: var(--color-link);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
  transition: color var(--dur-fast) var(--ease-out);
}
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }
.vh {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: var(--space-sm); top: -4rem; z-index: 100;
  background: var(--color-paper); color: var(--color-ink);
  padding: var(--space-xs) var(--space-sm); font-weight: var(--w-ui);
}
.skip-link:focus { top: var(--space-sm); outline-color: var(--color-focus); }
.nb { white-space: nowrap; }

.wrap, .wrap--prose {
  width: 100%;
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.wrap { max-width: calc(var(--page-max) + 2 * var(--gutter)); }
.wrap--prose { max-width: calc(var(--prose-max) + 2 * var(--gutter)); }

/* ---------- Top bar and menu ---------- */
.bar {
  position: relative;
  background: var(--color-bar);
  color: var(--color-bar-ink);
  min-height: 3.5rem;
}
.bar a { color: var(--color-bar-ink); }
.bar :focus-visible, .title-band :focus-visible, .foot :focus-visible { outline-color: var(--color-focus-inverse); }
.bar__inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-md);
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  min-height: 3.5rem;
  margin-inline: auto; padding-inline: var(--gutter);
}
.wordmark {
  font-family: var(--font-display); font-weight: var(--w-display); font-size: var(--text-lede);
  white-space: nowrap; text-decoration: none;
  display: inline-flex; align-items: center; min-height: 2.75rem;
}
.wordmark:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.menu { margin: 0; }
@media (max-width: 25rem) { .wordmark { font-size: var(--text-base); } .bar__inner { gap: var(--space-sm); } }
@media (max-width: 22.5rem) { .wordmark { font-size: var(--text-sm); } .bar__inner { gap: var(--space-2xs); } .menu__button { padding-inline: 0; } }
.menu__button {
  list-style: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: var(--space-2xs);
  min-height: 2.75rem; padding-inline: var(--space-2xs);
  font-weight: var(--w-label); font-size: var(--text-sm); white-space: nowrap;
}
.menu__button::-webkit-details-marker { display: none; }
.menu__sign::before { content: "+"; display: inline-block; width: 0.75em; text-align: center; }
.menu[open] .menu__sign::before { content: "\2212"; }
.menu__sheet {
  position: absolute; left: 0; right: 0; top: 100%; z-index: 30;
  background: var(--color-bar);
}
.nav__list { list-style: none; margin: 0; padding: 0; }
.nav-link {
  display: flex; align-items: center; min-height: 3.5rem;
  padding-inline: var(--gutter);
  font-weight: var(--w-label); font-size: var(--text-base);
  text-decoration: none; white-space: nowrap;
}
.nav-link:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.nav-link[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 6px; }
@media (min-width: 64rem) {
  .bar__inner { min-height: 4rem; }
  .menu__button { display: none; }
  .menu__sheet { position: static; background: transparent; }
  .nav__list { display: flex; align-items: center; gap: var(--space-md); }
  .nav-link { min-height: 2.75rem; padding-inline: 0; font-size: var(--text-sm); }
}
/* Just above the breakpoint the wordmark plus seven links need more than the bar holds (DD-017). */
@media (min-width: 64rem) and (max-width: 66.9375rem) { .nav__list { gap: var(--space-sm); } }

/* ---------- Title band, meta row, breadcrumb ---------- */
.title-band { background: var(--color-band); color: var(--color-band-ink); text-align: center; padding-block: var(--space-xl); border-bottom: 0.625rem solid var(--color-apricot); }
.title-band__inner {
  max-width: calc(var(--prose-max) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
  display: grid; gap: var(--space-sm); justify-items: center;
}
.title-band h1 {
  font-weight: var(--w-display);
  font-size: min(var(--text-title-long), var(--text-title-vw));
  color: var(--color-band-ink);
}
.title-band__lede { font-size: var(--text-lede); line-height: var(--lh-ui); text-wrap: balance; }
body[data-slug="about"] .title-band h1,
body[data-slug="contact"] .title-band h1,
body[data-slug="privacy"] .title-band h1,
body[data-slug="how-this-list-is-made"] .title-band h1,
body.t-404 .title-band h1 { font-size: min(var(--text-title), var(--text-title-vw)); }
@media (min-width: 40rem) { .title-band { padding-block: var(--space-2xl) var(--space-xl); } }

.meta-row { background: var(--color-peach); }
.meta-row__inner {
  display: flex; flex-direction: column; align-items: flex-start; gap: 0;
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
}
@media (min-width: 40rem) {
  .meta-row__inner { flex-direction: row; justify-content: space-between; align-items: center; gap: var(--space-md); }
}
.updated { font-size: var(--text-sm); font-weight: var(--w-label); color: var(--color-ink-2); margin: 0; padding-block: var(--space-2xs); }
.crumbs { font-size: var(--text-sm); color: var(--color-ink-2); }
.crumbs__list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: nowrap; align-items: center; }
.crumbs__item { white-space: nowrap; display: inline-flex; align-items: center; min-height: 2.75rem; }
.crumbs__item a { color: var(--color-ink-2); display: inline-flex; align-items: center; min-height: 2.75rem; }
.crumbs__sep { padding-inline: var(--space-2xs); }
@media (max-width: 39.9375rem) {
  .crumbs__item {
    position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
  }
  .crumbs__item:nth-last-child(2) {
    position: static; width: auto; height: auto; overflow: visible; clip: auto; clip-path: none;
  }
  .crumbs__item:nth-last-child(2) a::before { content: "Back to\00a0"; }
  .crumbs__item:nth-last-child(2) .crumbs__sep { display: none; }
  .crumbs { min-height: 2.75rem; display: flex; align-items: center; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 2.75rem; padding: 0 var(--space-md);
  border-radius: var(--radius-1);
  background: var(--color-clay); color: var(--color-band-ink);
  border: 1px solid var(--color-clay);
  font-family: var(--font-sans); font-weight: var(--w-ui); font-size: var(--text-base);
  line-height: var(--lh-ui);
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out);
}
.btn:hover { background: var(--color-clay-deep); border-color: var(--color-clay-deep); text-decoration: none; }
.btn:active { background: var(--color-clay-deep); transform: translateY(1px); }
.btn--secondary {
  background: transparent; color: var(--color-link);
  border: 1px solid var(--color-ink-2);
}
.btn--secondary:hover { background: var(--color-peach); border-color: var(--color-ink-2); }
.btn--secondary:active { background: var(--color-peach); }
.btn:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 2px; }

/* ---------- Flow: hub, home and page bodies ---------- */
.flow { padding-bottom: var(--space-xl); }
.flow > * { width: min(100% - 2 * var(--gutter), var(--prose-max)); margin-inline: auto; margin-top: var(--space-md); }
.flow > section, .flow > .fb { width: auto; margin-inline: 0; margin-top: 0; }
.flow > :where(h2) { margin-top: var(--space-xl); }
.flow > :where(h3) { margin-top: var(--space-lg); }
/* A filled band never touches the block above it: prose and callouts keep paper between them and the tint. */
.flow > :not(section, .fb) + :is(.group, .band, .method, .faq, .rows, .glance, .compare) { margin-top: var(--space-xl); }
.page-prose { padding-block: var(--space-xl) var(--space-2xl); }
.flow:has(> :is(.band, .method):last-child) { padding-bottom: 0; }
.page-prose:has(> .band:last-child), .guide-wrap:has(.guide > .band:last-child) { padding-bottom: 0; }
.page-prose > * + * { margin-top: var(--space-md); }
.page-prose > :where(h2) { margin-top: var(--space-xl); }
.page-prose > :where(h3) { margin-top: var(--space-lg); }
:where(.flow, .page-prose, .guide) :where(ul, ol) { padding-left: 1.4em; }
:where(.flow, .page-prose, .guide) li + li { margin-top: var(--space-2xs); }
.band > * + * , .callout > * + * { margin-top: var(--space-sm); }

/* ---------- Home hero ---------- */
.hero { position: relative; background: var(--color-photo-fallback); }
.hero__picture, .hero__picture img { width: 100%; }
.hero__picture img { height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--color-photo-fallback); }
.hero__text { background: var(--color-paper); padding-block: var(--space-lg) var(--space-xl); }
.hero__wrap {
  max-width: calc(var(--page-max) + 2 * var(--gutter));
  margin-inline: auto; padding-inline: var(--gutter);
}
.hero__box { display: grid; gap: var(--space-sm); justify-items: start; }
.hero h1 {
  font-weight: var(--w-display); font-size: min(var(--text-title), var(--text-title-vw));
  color: var(--color-ink);
}
.hero h1 .h1-light { display: block; }
.hero__lede { font-size: var(--text-lede); line-height: var(--lh-ui); }
.hero__box .updated { color: var(--color-ink); padding-block: 0; }
.hero__box .btn { margin-top: var(--space-xs); width: 100%; }
@media (min-width: 40rem) { .hero__box .btn { width: auto; } }
@media (min-width: 60rem) {
  /* Over the photograph the text uses the bar's near-black: --color-ink measured 6.7:1 against the darkest
     fabric pixels at 1280 px; --color-bar clears 7:1 everywhere sampled. */
  .hero__text { color: var(--color-bar); }
  .hero h1, .hero__box .updated { color: var(--color-bar); }
  /* The text overlays the photo in one grid cell, so the hero is as tall as the taller of the two:
     it grows with a long lede instead of the text box overflowing the photo's top edge. */
  .hero { display: grid; grid-template-rows: minmax(clamp(26rem, 42vw, 34rem), auto); }
  .hero__picture, .hero__text { grid-area: 1 / 1; }
  .hero__picture { position: relative; }
  .hero__picture img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-position: 25% 30%; }
  .hero__text { position: relative; z-index: 1; background: transparent; display: flex; align-items: center; padding-block: var(--space-xl) var(--space-2xl); }
  .hero__wrap { width: 100%; }
  .hero__box { width: 52%; margin-left: auto; }
  .hero h1 { font-size: clamp(2.5rem, 3.6vw, 3.25rem); }
  .hero__box .btn { margin-top: var(--space-md); }
}

/* ---------- Order note, jump links ---------- */
.order-note { background: var(--color-peach); padding-block: var(--space-md); }
.order-note > .wrap { display: grid; gap: var(--space-xs); }
.order-note p + p { margin-top: 0; }
.jumps { display: flex; flex-wrap: wrap; gap: 0 var(--space-md); font-size: var(--text-sm); font-weight: var(--w-label); }
.jumps a { display: inline-flex; align-items: center; min-height: 2.75rem; white-space: nowrap; }

/* ---------- Group strip and listing rows ---------- */
.group { padding-bottom: var(--space-2xl); }
.group__head { background: var(--color-paper-2); padding-block: var(--space-md); margin-bottom: var(--space-sm); }
.group__head .wrap { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2xs) var(--space-md); }
.group__count { font-size: var(--text-sm); font-weight: var(--w-ui); color: var(--color-clay); margin: 0; }
.group + .group, .glance + .group { margin-top: 0; }
.order-note + .group, .order-note + .compare { margin-top: var(--space-lg); }
.listing {
  display: grid; gap: var(--space-sm);
  padding-block: var(--space-xl);
}
.listing__id { display: grid; gap: var(--space-3xs); align-content: start; min-width: 0; }
.listing__name { font-size: var(--text-h3); }
.listing__name a { color: var(--color-ink); text-decoration-thickness: 1px; display: inline-flex; align-items: center; min-height: 2.75rem; }
.listing__place, .listing__types { font-size: var(--text-base); color: var(--color-ink-2); overflow-wrap: anywhere; }
/* Screenshot of the photographer's own website (owner instruction, 2026-12-01). One hairline: many sites are white. */
.listing__shot { margin: var(--space-sm) 0 0; }
.listing__shot img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top; border: var(--border-1); border-radius: var(--radius-1); background: var(--color-paper-2); }
.listing__shot figcaption { font-size: var(--text-xs); color: var(--color-ink-2); margin-top: var(--space-2xs); }
.facts { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-xs) var(--space-md); }
.facts > div { display: contents; }
.facts dt { font-size: var(--text-sm); font-weight: var(--w-label); color: var(--color-ink-2); margin-top: var(--space-2xs); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts__rating dd { grid-column: 1 / -1; }
.price__figure { font-family: var(--font-display); font-size: var(--text-h3); font-weight: var(--w-display); line-height: var(--lh-tight); color: var(--color-clay); font-variant-numeric: tabular-nums; }
.price__figure-note, .price__read { font-size: var(--text-sm); color: var(--color-ink-2); }
.facts__price dd { display: grid; gap: var(--space-3xs); }
.price__theirs { font-size: var(--text-sm); }
.listing__body { display: grid; gap: var(--space-md); min-width: 0; align-content: start; }
.listing__actions { display: grid; gap: var(--space-xs); grid-template-columns: minmax(0, 1fr); }
.listing__note { font-size: var(--text-sm); color: var(--color-ink-2); }
@media (min-width: 40rem) {
  .listing__actions { grid-template-columns: repeat(2, minmax(0, max-content)); }
}
/* Tablet: the row is still one column, so a full-width screenshot was drawn larger than its 720 px file
   and took half a screen per row (DD-020). Put it beside the name at its desktop size instead. */
@media (min-width: 40rem) and (max-width: 59.9375rem) {
  .listing__id { grid-template-columns: minmax(0, 1fr) minmax(0, 22rem); column-gap: var(--space-lg); }
  .listing__id > * { grid-column: 1; }
  .listing__id > .listing__shot { grid-column: 2; grid-row: 1 / span 4; margin-top: 0; }
}
@media (min-width: 60rem) {
  .listing { grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); column-gap: var(--space-lg); }
  .facts { grid-template-columns: minmax(0, 9rem) minmax(0, 1fr); }
  .facts dt { margin-top: 0; padding-top: 0.2em; }
  .listing__actions { grid-template-columns: repeat(2, minmax(0, max-content)); }
}

/* ---------- Comparison tables ---------- */
.glance, .compare { padding-block: var(--space-xl); }
.compare--tint { background: var(--color-paper-2); }
.ctable { width: 100%; border-collapse: collapse; font-size: var(--text-sm); line-height: var(--lh-ui); }
.ctable caption { text-align: left; font-size: var(--text-sm); color: var(--color-ink-2); padding-bottom: var(--space-sm); caption-side: top; }
.ctable th, .ctable td { text-align: left; vertical-align: top; padding: var(--space-sm); }
.ctable thead th { background: var(--color-paper-3); font-weight: var(--w-ui); }
.ctable tbody tr:nth-child(even) > * { background: var(--color-paper-2); }
.ctable tbody .group-row > * { background: var(--color-peach); }
.ctable tbody th[scope="row"] { font-weight: var(--w-head); font-size: var(--text-base); }
.ctable tbody th[scope="row"] a { color: var(--color-ink); display: inline-flex; align-items: flex-start; min-height: 2.75rem; }
.ctable .group-row th { font-size: var(--text-base); font-weight: var(--w-head); padding-block: var(--space-xs); }
.ctable .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ctable .num .cell-note { white-space: normal; }
.ctable thead .num { text-align: right; }
.ctable .cell-note { display: block; font-size: var(--text-xs); color: var(--color-ink-2); margin-top: var(--space-3xs); }
.table-wrap { overflow-x: auto; }
@media (max-width: 59.9375rem) {
  .table-wrap:has(.ctable) { overflow: visible; }
  .ctable, .ctable tbody, .ctable tr, .ctable th, .ctable td { display: block; }
  .ctable thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); }
  .ctable caption { display: block; }
  .ctable tr { padding-block: var(--space-sm); margin-top: var(--space-2xs); }
  .ctable tbody tr:nth-child(even) > * { background: transparent; }
  .ctable tbody tr:nth-child(even) { background: var(--color-paper-2); }
  .ctable tbody tr.group-row { background: var(--color-peach); padding: 0; margin-top: var(--space-md); }
  .ctable tbody .group-row > * { background: transparent; }
  .ctable .group-row th { border: 0; padding-inline: var(--space-sm); }
  .ctable tbody th[scope="row"] { border: 0; font-size: var(--text-h3); padding-block: var(--space-2xs); }
  .ctable td { display: grid; grid-template-columns: minmax(0, 8rem) minmax(0, 1fr); gap: var(--space-sm); border: 0; padding-block: var(--space-3xs); }
  .ctable td::before { content: attr(data-label); font-weight: var(--w-label); color: var(--color-ink-2); }
  .ctable .num { text-align: left; }
  .ctable .cell-note { margin-top: var(--space-3xs); grid-column: 1 / -1; }
  @media (max-width: 22.5rem) { .ctable td { grid-template-columns: minmax(0, 6.5rem) minmax(0, 1fr); gap: var(--space-xs); } }
}
/* generic markdown tables written by writers */
.table-wrap table:not(.ctable) { border-collapse: collapse; width: 100%; font-size: var(--text-sm); }
.table-wrap table:not(.ctable) th, .table-wrap table:not(.ctable) td { text-align: left; padding: var(--space-xs) var(--space-sm); vertical-align: top; }
.table-wrap table:not(.ctable) th { background: var(--color-paper-3); font-weight: var(--w-ui); }
.table-wrap table:not(.ctable) tbody tr:nth-child(even) > * { background: var(--color-paper-2); }

/* ---------- Guide and session index rows ---------- */
.rows { padding-block: var(--space-xl); }
.rows > .wrap { max-width: calc(var(--prose-max) + 2 * var(--gutter)); }
.rows__list { list-style: none; margin: var(--space-md) 0 0; padding: 0; }
.rows__item { display: grid; gap: var(--space-3xs); padding-block: var(--space-md); }
.rows__title { font-size: var(--text-h3); font-weight: var(--w-display); overflow-wrap: anywhere; }
.rows__title a { display: inline-block; min-height: 2.75rem; padding-block: var(--space-3xs); }
.rows__line { color: var(--color-ink); }
.rows__meta { font-size: var(--text-sm); color: var(--color-ink-2); }

/* ---------- Intro split, stat block, rail ---------- */
.intro-split { padding-block: var(--space-xl) var(--space-lg); }
.intro-split__grid { display: grid; gap: var(--space-lg); grid-template-columns: minmax(0, 1fr); }
.intro-split__text > * + * { margin-top: var(--space-sm); }
.intro-split__aside { min-width: 0; }
@media (min-width: 60rem) {
  .intro-split__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 24rem); column-gap: var(--space-xl); align-items: start; }
}
.rail__label { font-size: var(--text-sm); font-weight: var(--w-ui); color: var(--color-ink-2); margin-bottom: var(--space-xs); }
.stat-block { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-md); }
.stat-item { display: grid; align-content: start; gap: var(--space-3xs); background: var(--color-peach); padding: var(--space-sm); min-width: 0; }
.stat-number { font-family: var(--font-display); font-size: var(--text-stat); font-weight: var(--w-display); line-height: var(--lh-tight); color: var(--color-clay); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat-label { font-size: var(--text-base); line-height: var(--lh-ui); }
.stat-source { display: block; font-size: var(--text-xs); color: var(--color-ink-2); margin-top: var(--space-3xs); }
@media (max-width: 19.9375rem) { .stat-block { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Callouts, pull quote, bands ---------- */
.callout { padding: var(--space-md); border-radius: var(--radius-1); background: var(--color-paper-2); }
.callout-warning { background: var(--color-paper-warm); }
.callout strong:first-child { font-weight: var(--w-head); }
.callout ul { padding-left: 1.2em; }
.pullquote { margin: 0; padding: var(--space-lg); background: var(--color-paper-3); border-radius: var(--radius-0); }
.pullquote p:first-child { font-family: var(--font-display); font-size: var(--text-quote); font-weight: var(--w-display); line-height: var(--lh-ui); color: var(--color-teal-ink); text-wrap: balance; }
.pullquote p + p { margin-top: var(--space-sm); font-size: var(--text-sm); color: var(--color-ink-2); }
@media (max-width: 39.9375rem) { .pullquote { padding: var(--space-md); } }
.band { background: var(--color-paper-2); color: var(--color-ink); padding-block: var(--space-xl) var(--space-2xl); }
.band-warm { background: var(--color-paper-warm); }
.flow > .band > *, .page-prose > .band > * { width: min(100% - 2 * var(--gutter), var(--prose-max)); margin-inline: auto; }
.band h2 { margin-bottom: var(--space-sm); }
.band ul, .band ol { padding-left: 1.4em; }
.band .callout { background: var(--color-paper); }
.band li + li { margin-top: var(--space-2xs); }

/* ---------- FAQ, method note ---------- */
.faq { padding-block: var(--space-xl); }
.faq h2 { margin-bottom: var(--space-md); }
.faq__inner { max-width: calc(var(--prose-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
details.q { background: var(--color-paper-2); margin-top: var(--space-2xs); padding-inline: var(--space-sm); }
details.q > summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--space-sm);
  min-height: 3.25rem; padding-block: var(--space-xs);
  font-weight: var(--w-ui); font-size: var(--text-base); line-height: var(--lh-ui);
}
details.q > summary::-webkit-details-marker { display: none; }
details.q > summary::after {
  content: "+"; flex: none; width: 2.75rem; height: 2.75rem; margin: -0.5rem -0.75rem -0.5rem 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: var(--w-body); line-height: 1;
  transition: transform var(--dur-fast) var(--ease-out);
}
details.q[open] > summary::after { transform: rotate(45deg); }
details.q > :not(summary) { padding-bottom: var(--space-sm); }
.method { background: var(--color-paper-2); padding-block: var(--space-lg); }
.method__inner { max-width: calc(var(--prose-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.method h2 { margin-bottom: var(--space-sm); }
.method p + p { margin-top: var(--space-sm); }

/* ---------- Guide article: prose column + rail ---------- */
.guide-wrap { padding-block: var(--space-xl) var(--space-2xl); }
.guide { display: grid; grid-template-columns: minmax(0, 1fr); position: relative; isolation: isolate; }
.guide > * { grid-column: 1; margin: 0 0 var(--space-md); min-width: 0; }
.guide > :where(h2) { margin-top: var(--space-xl); }
.guide > :where(h3) { margin-top: var(--space-lg); }
.guide > .rail { margin-top: 0; }
.rail { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-md); align-content: start; }
.rail > * { margin: 0; }
.rail__toc ul { list-style: none; padding: 0; margin: 0; }
.rail__toc a { display: flex; align-items: center; min-height: 2.75rem; }
.rail__toc--narrow { background: var(--color-paper-2); padding-inline: var(--space-sm); }
.rail__toc--narrow > summary { cursor: pointer; font-weight: var(--w-ui); min-height: 2.75rem; display: flex; align-items: center; justify-content: space-between; list-style: none; }
.rail__toc--narrow > summary::-webkit-details-marker { display: none; }
.rail__toc--narrow > summary::after { content: "+"; font-size: 1.5rem; font-weight: var(--w-body); }
.rail__toc--narrow[open] > summary::after { content: "\2212"; }
.rail__toc--wide { display: none; }
.guide > .band { position: relative; background: transparent; padding-block: var(--space-xl); }
.guide > .band::before {
  /* full bleed from a left-hand grid column: reach back to the viewport's left edge, then span 100vw */
  content: ""; position: absolute; inset-block: 0; width: 100vw; z-index: -1;
  left: calc(-1 * ((100vw - min(100vw, var(--page-max) + 2 * var(--gutter))) / 2 + var(--gutter)));
  background: var(--color-paper-2);
}
.guide > .band-warm::before { background: var(--color-paper-warm); }
.guide > .band { margin-top: var(--space-md); }
.guide > .band > * { width: auto; margin-inline: 0; }
.guide :is(.compare, .glance) { padding-block: var(--space-md); }
.guide :is(.compare, .glance) > .wrap { max-width: none; padding-inline: 0; }
.guide > .band > * + * { margin-top: var(--space-sm); }
.guide figure img { width: 100%; height: auto; }
figure.fig { margin: 0; }
.guide > figure.fig { margin-bottom: var(--space-md); }
figure.fig figcaption, .fig-caption { font-size: var(--text-xs); color: var(--color-ink-2); margin-top: var(--space-2xs); }
.guide h2#common-questions ~ h3 {
  font-size: var(--text-base); font-weight: var(--w-ui); line-height: var(--lh-ui);
  margin-top: var(--space-lg);
}
/* Two columns start at 63.125rem, not 60rem: from 960 to 1009 px the prose column was too narrow for the
   five-column price table, which was cut on its right (DD-019). Below this the guide is one column. */
@media (min-width: 63.125rem) {
  /* The rail keeps 15rem; the prose column gives way first (DD-016: the rail was cut off from 960 to 1081 px). */
  .guide { grid-template-columns: minmax(0, var(--prose-max)) minmax(15rem, 1fr); column-gap: var(--space-xl); }
  /* The rail runs the full height of the guide. Its glance block and button sit first; the contents list is
     last and sticky, so it rides alongside the text for the rest of the guide and stops at the guide's end. */
  .guide > .rail { grid-column: 2; grid-row: 1 / span 60; align-self: stretch; align-content: start; }
  .rail > .rail__label { order: 1; }
  .rail > .stat-block { order: 2; grid-template-columns: minmax(0, 1fr); gap: var(--space-2xs); }
  .rail .stat-item { grid-template-columns: auto minmax(0, 1fr); align-items: center; column-gap: var(--space-sm); padding: var(--space-xs) var(--space-sm); }
  .rail .stat-number { font-size: var(--text-h2); }
  .rail > .btn { order: 3; }
  .rail > .rail__toc--wide {
    order: 4; display: block;
    position: sticky; top: var(--space-md);
    max-height: calc(100vh - 2 * var(--space-md)); overflow-y: auto;
  }
  .rail__toc--wide .rail__label { margin-bottom: var(--space-2xs); }
  .rail__toc--wide a { min-height: 2.25rem; padding-block: 0.15rem; font-size: var(--text-sm); line-height: var(--lh-ui); }
  .rail__toc--wide li + li { margin-top: 0; }
  .rail__toc--narrow { display: none; }
  .rail .btn { justify-self: start; }
}
/* While the rail is at its narrowest, stack the count over its label: beside the figure, the word
   "photographers" ran past the tile on three guides (DD-016, third review). */
@media (min-width: 63.125rem) and (max-width: 76.9375rem) { .rail .stat-item { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Footer ---------- */
.foot { background: var(--color-footer); color: var(--color-footer-ink); padding-block: var(--space-xl); }
.foot a { color: var(--color-paper); text-decoration: none; }
.foot a:hover { text-decoration: underline; }
.foot__inner { display: grid; gap: var(--space-sm); justify-items: center; text-align: center; max-width: calc(var(--page-max) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.foot__links { width: 100%; }
.foot__links ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.foot__links a { display: flex; align-items: center; justify-content: center; min-height: 2.75rem; font-size: var(--text-sm); font-weight: var(--w-label); white-space: nowrap; }
.foot__links ul li:last-child:nth-child(odd) { grid-column: 1 / -1; }
.foot__statement { font-size: var(--text-sm); color: var(--color-footer-muted); }
.foot__copy { font-size: var(--text-sm); color: var(--color-footer-muted); }
.foot .updated { display: inline; color: inherit; font-weight: inherit; padding: 0; }
@media (max-width: 23.75rem) { .foot__links ul { grid-template-columns: minmax(0, 1fr); } }
@media (min-width: 40rem) and (max-width: 63.9375rem) {
  .foot__links ul { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot__links ul li:last-child:nth-child(odd) { grid-column: auto; }
}
@media (min-width: 64rem) {
  .foot__links ul { display: flex; flex-wrap: wrap; justify-content: center; gap: 0 var(--space-md); }
}

/* ---------- 404 ---------- */
.not-found { padding-block: var(--space-xl) var(--space-2xl); display: grid; gap: var(--space-md); justify-items: start; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
