/* Jewish Living Academy — global system
 * One canvas, one grid, one hierarchy. Monochrome by design.
 *
 * Doctrine
 *   Contrast comes from value, not hue.
 *   Precision comes from structure: hairlines, one radius, an 8px rhythm.
 *   Ink is the only strong color and it is reserved for interaction and text.
 *   The exceptions are Facebook's own blue, scoped to .fb-mock, and Amazon's
 *   yellow buy pill, scoped to .button--buy.
 *
 * Fonts are self-hosted (fonts/, OFL): one variable DM Sans file for
 * 400-700 and Source Serif 4 Display 700, latin first, latin-ext only if a page
 * uses it. Each page preloads the two latin files; never @import.
 */

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/wp-content/themes/webshellnav/assets/fonts/dm-sans-latin-ext.woff2") format("woff2"), url("/wp-content/themes/webshellnav/assets/fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("/wp-content/themes/webshellnav/assets/fonts/dm-sans-latin.woff2") format("woff2"), url("/wp-content/themes/webshellnav/assets/fonts/dm-sans-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

@font-face {
  font-family: "Source Serif 4 Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/wp-content/themes/webshellnav/assets/fonts/source-serif-4-display-700-latin-ext.woff2") format("woff2"), url("/wp-content/themes/webshellnav/assets/fonts/source-serif-4-display-700-latin-ext.woff2") format("woff2"), url("https://cdn.jsdelivr.net/npm/@fontsource/source-serif-4@5.2.5/files/source-serif-4-latin-ext-700-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: "Source Serif 4 Display";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/wp-content/themes/webshellnav/assets/fonts/source-serif-4-display-700-latin.woff2") format("woff2"), url("/wp-content/themes/webshellnav/assets/fonts/source-serif-4-display-700-latin.woff2") format("woff2"), url("https://cdn.jsdelivr.net/npm/@fontsource/source-serif-4@5.2.5/files/source-serif-4-latin-700-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Metric-matched stand-ins, shown for the instant before the web fonts land.
   Sized to the real faces so the swap doesn't reflow text; local() means no
   download, and devices without these fonts skip them. */
@font-face {
  font-family: "DM Sans Fallback";
  font-weight: 400 500;
  src: local("Arial");
  size-adjust: 103.83%;
  ascent-override: 95.54%;
  descent-override: 29.86%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "DM Sans Fallback";
  font-weight: 600 700;
  src: local("Arial Bold"), local("Arial-BoldMT");
  size-adjust: 102.1%;
  ascent-override: 97.16%;
  descent-override: 30.36%;
  line-gap-override: 0%;
}

@font-face {
  font-family: "Display Fallback";
  font-weight: 700;
  src: local("Times New Roman Bold"), local("TimesNewRomanPS-BoldMT");
  size-adjust: 106.63%;
  ascent-override: 101.47%;
  descent-override: 23.54%;
  line-gap-override: 0%;
}

/* Cross-fade between full-page navigations instead of a hard flash, kept
   short so it reads as polish and not as waiting. Skipped for reduced motion. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-group(root) { animation-duration: 180ms; }
}

:root {
  color-scheme: light;

  /* Palette — six values. Text ratios are against --paper / --wash. */
  --ink: #161616;          /* headings, buttons, active state      18.1 / 16.7 */
  --ink-hover: #333333;    /* pressed/hover step of --ink                      */
  --text: #3d3d3d;         /* body copy                            10.9 / 10.1 */
  --muted: #666666;        /* secondary copy, eyebrows              5.7 /  5.3 */
  --mid: #8c8c8c;          /* control borders, soft display line    3.4 /  3.1 */
  --line: #e4e4e4;         /* hairlines: decoration only                       */
  --wash: #f6f6f6;         /* alternate band and quiet fills                   */
  --paper: #ffffff;

  /* Type */
  --font-body: "DM Sans", "DM Sans Fallback", system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
  --font-display: "Source Serif 4 Display", "Source Serif 4", "Display Fallback", Georgia, serif;
  --step--2: .75rem;                                    /* eyebrows, tags, table heads */
  --step--1: .875rem;                                   /* secondary text, table cells */
  --step-0: 1rem;
  --step-1: clamp(1.125rem, 1.05rem + .3vw, 1.25rem);
  --step-2: clamp(1.5rem, 1.35rem + .6vw, 1.875rem);
  --step-3: clamp(2.25rem, 1.85rem + 1.6vw, 2.75rem);

  /* Geometry — an 8px rhythm and two radii. */
  --space-1: .5rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.5rem;
  --space-5: 2rem;
  --space-6: 3rem;
  --space-7: 4rem;
  --space-8: clamp(4rem, 8vw, 6rem);
  --gutter: clamp(1rem, 4vw, 2rem);

  /* Notch, status bar and home indicator. All 0 in an ordinary browser tab. */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-inline: max(env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px));
  --edge: max(var(--gutter), var(--safe-inline));
  --content: 68rem;
  --copy: 40rem;
  --radius-sm: .25rem;     /* things nested inside a container: tiles, tags */
  --radius: .5rem;         /* containers and controls: cards, buttons, tables */
  --radius-full: 999px;    /* circles only */
}

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

html {
  text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior-y: none;
  overflow-x: clip;        /* never a sideways page scroll; clip, not hidden, keeps sticky working */
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* Desktop: reserve the scrollbar's lane so short and long pages don't
   shift sideways between navigations. Overlay scrollbars ignore it. */
html { scrollbar-gutter: stable; }

/* Native checkboxes, radios and range sliders in the site's ink. */
:root { accent-color: var(--ink); }

/* Images hold a quiet wash until they paint, so slow photos read as a
   placeholder rather than a hole. Static: no shimmer, no repaint cost.
   JPEGs only: they can't be transparent, so no box behind a logo. */
.site-main img:is([src$=".jpg"], [src$=".jpeg"]) { background-color: var(--wash); }

/* Anchor jumps (#leadership, #contact) land with air above, not flush to the edge. */
:target { scroll-margin-block-start: var(--space-6); }

body {
  min-width: 20rem;
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 var(--step-0)/1.6 var(--font-body);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  padding-top: var(--safe-top);
}

/* Home-screen mode draws the page under the status bar; an ink cap keeps the
   clock legible and matches the tab bar. Zero height in a normal tab. */
body::before {
  content: "";
  position: fixed;
  z-index: 1001;
  inset: 0 0 auto;
  height: var(--safe-top);
  background: var(--ink);
  pointer-events: none;
}

/* No 300ms tap delay or double-tap zoom on controls; pinch-zoom stays. */
:where(a, button, .button) { touch-action: manipulation; }

:where(h1, h2, h3, h4, p, ul, ol, dl, dd, figure, blockquote) { margin-block: 0; }

:where(h1, h2, h3, h4) {
  max-width: 22ch;
  color: var(--ink);
  line-height: 1.1;
  text-wrap: balance;
}

:where(h1, h2) {
  font-weight: 700;
  letter-spacing: -.025em;
}

/* The one serif moment: the home hero headline. Everywhere else headings
   share the body face, so pages read as one app rather than a magazine. */
.conversion-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 2rem + 2.5vw, 3.75rem);
  letter-spacing: -.02em;
}

:where(h3, h4) { font-weight: 700; }

h1 { font-size: var(--step-3); line-height: 1.08; }
h2 { font-size: var(--step-2); }
h3 { font-size: var(--step-1); line-height: 1.25; }
h4 { font-size: var(--step-0); }

/* Two-tone page title: same face and size as any h1, second line steps back. */
.display-heading { display: flex; flex-direction: column; }
.display-heading__soft { color: var(--mid); }

:where(p, li, dd) { text-wrap: pretty; overflow-wrap: break-word; }

a {
  color: var(--ink);
  text-decoration-line: underline;
  text-decoration-color: var(--mid);
  text-decoration-thickness: 1px;
  text-underline-offset: .22em;
  transition: text-decoration-color 120ms ease;
}

a:active { text-decoration-color: var(--ink); }

:where(img, svg, video, canvas, iframe) { display: block; max-width: 100%; }
:where(img, video) { height: auto; }
:where(button, input, select, textarea) { font: inherit; }

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

::selection { background: var(--line); color: var(--ink); }

/* Accessibility */
.skip-link {
  position: fixed;
  z-index: 1000;
  inset: var(--space-3) auto auto var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-200%);
}

.skip-link:focus { transform: none; }

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Shell. The webshellnav sidebar owns the left edge; pages own everything
   else, so bands run full-bleed and the footer sits on the bottom edge.
   The theme sets no padding on .site-main, only a zero-specificity default,
   so this padding wins whatever the stylesheet order. */
.site-main {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: calc(100dvh - var(--safe-top));
  padding: 0;
}

@media (max-width: 640px) {
  .site-main { padding: 0 0 calc(var(--mobile-nav-height, 64px) + env(safe-area-inset-bottom, 0px)); }
}

/* Layout primitives */
.container {
  width: min(var(--content), calc(100% - 2 * var(--edge)));
  margin-inline: auto;
}

.section { padding-block: var(--space-7); }
.section--tight { padding-block: var(--space-6); }
/* No alternating grey bands: sections part by space and one hairline. */
.section + .section { border-block-start: 1px solid var(--line); }
/* A section that opens on its own ruled strip already has its line. */
.section + .section > .metric-grid:first-child { border-block-start: 0; }

/* Sections past the first skip layout and paint until they scroll near.
   Height only, so a placeholder never widens the page; "auto" remembers each one's real height, so anchors and the scrollbar stay put. */
.section ~ .section {
  content-visibility: auto;
  contain-intrinsic-block-size: auto 640px;
}

/* Fills whatever height the page has left, centring its content. */
.section--fill {
  display: flex;
  flex: 1;
  align-items: center;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--stack-gap, var(--space-5));
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--cluster-gap, var(--space-3));
}

/* Vertical rhythm inside a block of content. Spacing is applied here and
   nowhere else — a component that sets its own margin will silently beat it. */
.flow > * + * { margin-block-start: var(--flow-gap, var(--space-3)); }
.flow > :where(p, blockquote) { max-width: var(--copy); }

/* Page titles and section heads get more air below than paragraphs get
   between each other. */
.flow > :where(h1, h2) + * { margin-block-start: var(--space-4); }

/* Plain prose lists, unmarked like the rest of the site's lists; classed lists
   (.checklist, .timeline) size themselves. Stated here so it never depends on
   another stylesheet's reset. */
.flow > :where(ul, ol):not([class]) {
  display: grid;
  gap: var(--space-1);
  max-width: var(--copy);
  padding: 0;
  list-style: none;
}

.grid,
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: var(--space-5);
}

.grid > *,
.split > * { min-width: 0; }

.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.split { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }

/* Label voice: small, tracked capitals for eyebrows, tags, table heads and dates. */
.eyebrow,
.tag,
.data-table caption,
.data-table thead th,
.fineprint dt,
.timeline__year,
.timeline__era {
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.eyebrow {
  color: var(--muted);
  line-height: 1.25;
}

.muted { color: var(--muted); }

.icon-label { display: inline-flex; align-items: center; gap: var(--space-2); }

/* Icons sit in a small tile that echoes the card geometry. */
.icon {
  display: inline-flex;
  flex: 0 0 1.75rem;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  padding: .3rem;
  border-radius: var(--radius-sm);
  background: var(--wash);
  color: var(--ink);
  stroke-width: 1.75;
}

.icon--lg {
  display: flex;
  width: 2.5rem;
  height: 2.5rem;
  flex: 0 0 2.5rem;
  margin-bottom: var(--space-2);
  padding: .5rem;
  stroke-width: 1.5;
}

/* Inline arrow / external-link glyph, drawn so its stroke matches the label. */
.glyph {
  display: inline-block;
  width: 1em;
  height: 1em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: -.125em;
}

/* Controls
   One shape (--radius), one height (3rem). Primary is ink, secondary is a
   hairline outline; nothing else. */
.button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: 0 var(--space-4);
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: var(--paper);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -.005em;
  text-align: center;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
  transition: background-color 120ms ease, border-color 120ms ease, transform 100ms ease;
}

/* Touch has no hover, so the press carries the feedback. */
.button:active {
  border-color: var(--ink-hover);
  background: var(--ink-hover);
  transform: scale(.98);
}

.button .glyph { transition: transform 150ms ease; }

.button--outline {
  border-color: var(--mid);
  background: var(--paper);
  color: var(--ink);
}

.button--outline:active {
  border-color: var(--ink);
  background: var(--wash);
}

.button:disabled,
.button[aria-disabled="true"] {
  cursor: not-allowed;
  opacity: .5;
}

/* Form field: same shape and height as a button. */
.input {
  width: 100%;
  max-width: 22.5rem;
  min-height: 3rem;
  padding: 0 var(--space-3);
  border: 1px solid var(--mid);
  border-radius: var(--radius);
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Small non-interactive label. */
.tag {
  display: inline-flex;
  align-items: center;
  padding: .25rem var(--space-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  line-height: 1.25;
}

/* Containers: a hairline box, --radius, nothing else. */
.card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: background-color 120ms ease;
}

.card__header,
.card__body { padding: var(--space-4); }

.card__header + .card__body { border-top: 1px solid var(--line); }

/* A card with a heading link is one big target: the link stretches over the
   whole card, so a thumb doesn't have to find a line of text. */
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card h3 a:focus-visible { outline: 0; }
.card h3 a:focus-visible::after { outline: 2px solid var(--ink); outline-offset: -2px; }
.card:has(h3 a):active { background: var(--wash); }
.card h3 a:active { text-decoration: underline; }

/* Tables remain tables. */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.data-table {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  color: var(--text);
  font-size: var(--step--1);
  line-height: 1.5;
}

.data-table caption {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-align: start;
}

.data-table :where(th, td) {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--line);
  text-align: start;
  vertical-align: top;
}

.data-table thead th {
  background: var(--wash);
  color: var(--muted);
}

.data-table tbody th { color: var(--ink); font-weight: 600; }
.data-table tbody tr:last-child > * { border-bottom: 0; }
.data-table tbody th .eyebrow { display: block; margin-bottom: var(--space-1); }

/* Icon sits left of the eyebrow and title, so the row header's first line
   lines up with the first line of the cells beside it. */
.data-table tbody th > .icon--lg { float: left; margin: 0 var(--space-3) 0 0; }
.data-table thead th { white-space: nowrap; }

/* Row-header column wide enough that "03 · Psalms & prayer" and the title don't wrap. */
.data-table--labelled tbody th { width: 16rem; }

@media (hover: hover) {
  .data-table tbody tr:hover > * { background: var(--wash); }
}

/* Phones: one row becomes one block, each cell carrying its column name from
   data-label, so long cells read at full width instead of scrolling sideways. */
@media (max-width: 40rem) {
  .data-table { min-width: 0; }

  .data-table,
  .data-table :where(caption, tbody, tr, th, td) { display: block; }

  .data-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
  }

  .data-table tbody tr { padding-block: var(--space-2); border-bottom: 1px solid var(--line); }
  .data-table tbody tr:last-child { border-bottom: 0; }
  .data-table tbody :where(th, td) { padding-block: var(--space-2); border-bottom: 0; }
  .data-table--labelled tbody th { width: auto; }

  .data-table td[data-label]::before {
    content: attr(data-label);
    display: block;
    margin-bottom: .25rem;
    color: var(--muted);
    font-size: var(--step--2);
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
  }
}

/* Metrics: a ruled strip of stacked figures, not a box of boxes. */
.metric-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(9rem, 1fr));
  gap: var(--space-4) var(--space-5);
  padding-block: var(--space-4);
  border-block: 1px solid var(--line);
}

.metric { display: flex; flex-direction: column; gap: .25rem; }

.metric__value {
  color: var(--ink);
  font-size: var(--step-2);
  font-weight: 700;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
}

.metric__label { color: var(--muted); font-size: var(--step--1); line-height: 1.4; }

/* Star rating: plain glyphs in ink. */
.rating__stars {
  color: var(--ink);
  font-size: var(--step-1);
  letter-spacing: .1em;
  line-height: 1;
}

.rating__text { color: var(--muted); font-size: var(--step--1); }
.rating__text strong { color: var(--ink); }

/* Rows: label on the left, its action on the right, ruled. */
.rows { border-block-start: 1px solid var(--line); }

.rows__item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: var(--space-2) var(--space-5);
  padding-block: var(--space-4);
  border-block-end: 1px solid var(--line);
}

.rows__item p { max-width: var(--copy); }
.rows__item strong { color: var(--ink); }
/* Dated rows (holiday calendar): past ones step back, the next one leads. */
.rows__item.is-past { opacity: .5; }
.rows__item.is-next .eyebrow { display: block; margin-block-end: var(--space-1); }

/* CTA note: a single line of fine print under a primary button. */
.cta-note { color: var(--muted); font-size: var(--step--1); }

/* FAQ: plain <details>/<summary>, ruled like .rows. No script. */
.faq { border-block-start: 1px solid var(--line); }

.faq__item { border-block-end: 1px solid var(--line); }

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-block: var(--space-4);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::marker { content: ""; }

.faq__item .glyph--plus {
  flex: 0 0 auto;
  width: 1.25rem;
  height: 1.25rem;
  color: var(--mid);
  transition: transform 150ms ease;
}

.faq__item[open] .glyph--plus { transform: rotate(45deg); }

.faq__item p {
  max-width: var(--copy);
  padding-block-end: var(--space-4);
  color: var(--text);
  text-align: justify;
  text-align-last: start;
  hyphens: auto;
}

/* Notice: a flat rule, not a card. */
.notice {
  padding-inline-start: var(--space-3);
  border-inline-start: 2px solid var(--mid);
  color: var(--text);
}

.notice strong { color: var(--ink); }

/* Fine print: sources and small references as ruled label/link rows, set
   small and quiet. Links stay underlined so they still read as links. */
.fineprint {
  border-block-start: 1px solid var(--line);
  color: var(--muted);
  font-size: var(--step--1);
  line-height: 1.5;
}

.fineprint > div {
  display: grid;
  grid-template-columns: 8rem minmax(0, 1fr);
  gap: var(--space-1) var(--space-3);
  padding-block: var(--space-2);
  border-block-end: 1px solid var(--line);
}

.fineprint dd {
  display: flex;
  flex-wrap: wrap;
  gap: .25rem var(--space-4);
  margin: 0;
}

.fineprint a { color: var(--muted); text-decoration-color: var(--mid); }

@media (max-width: 40rem) {
  .fineprint > div { grid-template-columns: minmax(0, 1fr); }
}

/* Checklist: label/value rows boxed as one container. */
.checklist {
  padding-inline: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  list-style: none;
}

.checklist li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: baseline;
  gap: var(--space-1) var(--space-4);
  padding-block: var(--space-3);
  border-bottom: 1px solid var(--line);
}

.checklist li:last-child { border-bottom: 0; }

.checklist strong { color: var(--ink); }
.checklist span { color: var(--muted); font-size: var(--step--1); text-align: end; }

@media (max-width: 30rem) {
  .checklist li { grid-template-columns: minmax(0, 1fr); }
  .checklist span { text-align: start; }
}

/* Includes: a checklist variant for "what you get". A check leads each row and
 * the note sits under its label instead of a column away; two columns when wide. */
.checklist--includes li {
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0 var(--space-3);
  align-items: start;
}

.checklist--includes li::before {
  content: "";
  grid-row: 1 / span 2;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin-block-start: .125rem;
  background: var(--ink);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / contain no-repeat;
}

.checklist--includes span { grid-column: 2; text-align: start; }

@media (forced-colors: active) {
  .checklist--includes li::before { background: CanvasText; }
}

@media (min-width: 48rem) {
  .checklist--includes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: var(--space-6);
  }
  .checklist--includes li:nth-last-child(2) { border-bottom: 0; }
}

/* Timeline: a rail and nodes for sequential, dated history. */
.timeline { position: relative; margin: 0; padding: 0; list-style: none; }

.timeline::before {
  content: "";
  position: absolute;
  top: .625rem;
  bottom: .625rem;
  left: .625rem;
  width: 1px;
  background: var(--line);
}

.timeline__item {
  position: relative;
  display: grid;
  grid-template-columns: 1.25rem 1fr;
  gap: 0 var(--space-3);
  padding-block: var(--space-3);
}

.timeline__node {
  position: relative;
  z-index: 1;
  align-self: start;
  justify-self: center;
  width: 11px;
  height: 11px;
  margin-top: .4rem;
  border: 2px solid var(--mid);
  border-radius: var(--radius-full);
  background: var(--paper);
}

.timeline__year {
  margin: 0 0 .25rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.timeline__body strong { display: block; color: var(--ink); }
.timeline__body p + p { margin-top: .25rem; }

.timeline__era {
  position: relative;
  margin-top: var(--space-5);
  padding-inline-start: calc(1.25rem + var(--space-3));
  color: var(--ink);
}

.timeline__era:first-child { margin-top: 0; }

/* Directory: a lookup index boxed as one container. Cells draw their own
   right/bottom rules and the list bleeds 1px past the frame, so a short last
   row still closes cleanly. */
.directory {
  overflow: hidden;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

.directory__group {
  display: grid;
  grid-template-columns: minmax(11rem, 1fr) minmax(0, 3fr);
}

.directory__group + .directory__group { border-top: 1px solid var(--line); }

.directory__head {
  display: flex;
  flex-direction: column;
  gap: .25rem;
  padding: var(--space-4);
  border-inline-end: 1px solid var(--line);
  background: var(--wash);
}

.directory__title { font-family: var(--font-body); font-size: var(--step-0); font-weight: 700; }

.directory__count {
  color: var(--muted);
  font-size: var(--step--1);
  font-variant-numeric: tabular-nums;
}

.directory__list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
  margin: 0 -1px -1px 0;
  padding: 0;
  list-style: none;
}

.directory__list li {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-inline-end: 1px solid var(--line);
  border-block-end: 1px solid var(--line);
  color: var(--ink);
  font-weight: 500;
  line-height: 1.3;
}

.directory__code {
  display: inline-flex;
  flex: 0 0 auto;
  min-width: 3rem;
  justify-content: center;
  padding: .2rem .45rem;
  border-radius: var(--radius-sm);
  background: var(--wash);
  color: var(--muted);
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .06em;
}

@media (max-width: 40rem) {
  .directory__group { grid-template-columns: minmax(0, 1fr); }
  .directory__head {
    flex-direction: row;
    align-items: baseline;
    justify-content: space-between;
    border-inline-end: 0;
    border-block-end: 1px solid var(--line);
  }
}

/* Footer: one hairline, one quiet row of links, one legal line.
   Pinned to the bottom edge. Markup is written by scripts/build-nav.py. */
.site-footer {
  margin-top: auto;
  padding-block: var(--space-4);
  border-top: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  font-size: var(--step--1);
}

.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-4);
}

.site-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-1) var(--space-3);
  margin: 0;
  padding: 0;
  list-style: none;
}
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--ink); text-decoration: underline; }

.site-footer__inner {
  display: grid;
  gap: .25rem;
}

.site-footer__inner p { margin: 0; }
.site-footer__legal { color: var(--ink); }
.site-footer__links { margin-top: var(--space-2) !important; }

.site-footer__row--fine {
  padding-top: var(--space-3);
  border-top: 1px solid var(--line);
}

.site-footer .site-footer__social { gap: var(--space-2); }
.site-footer__social a { display: inline-flex; padding: .25rem; }
.site-footer__social a:hover { text-decoration: none; }
.site-footer__social .nav-icon { width: 1.25rem; height: 1.25rem; }

.site-footer__legal,
.site-footer__credit { margin: 0; }
.site-footer__credit { opacity: .8; }


/* Community landing page */
.conversion-page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--paper);
}

.conversion-page > main { display: flex; flex: 1; flex-direction: column; }


.conversion-hero {
  display: flex;
  flex: 1;
  align-items: center;
  padding-block: var(--space-8);
  background: var(--wash);
}

.conversion-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 5fr) minmax(18rem, 4fr);
  align-items: center;
  gap: clamp(var(--space-5), 6vw, var(--space-7));
}

.conversion-hero__copy { --flow-gap: var(--space-4); }
.conversion-hero__copy h1 { max-width: 16ch; }
.conversion-lead { max-width: 36rem; font-size: var(--step-1); }
.conversion-cta { display: grid; justify-items: start; gap: var(--space-3); }
.conversion-cta__note { color: var(--muted); font-size: var(--step--1); }

/* Facebook group preview. Facebook's own blue and 6px button are the one
   deliberate exception to the monochrome rule. */
.fb-mock {
  --fb-blue: #0866FF;
  --fb-blue-pressed: #77A7FF;
  --fb-radius: 6px;
  --fb-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI Historic", "Segoe UI", Helvetica, Arial, sans-serif;

  display: flex;
  flex-direction: column;
  gap: var(--space-4);
  padding: var(--space-4);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}

/* Monthly cover, synced by scripts/sync-group.sh; bleeds to the card edge. */
.fb-mock__cover {
  width: calc(100% + 2 * var(--space-4));
  max-width: none;
  margin: calc(-1 * var(--space-4)) calc(-1 * var(--space-4)) 0;
  border-radius: var(--radius) var(--radius) 0 0;
  aspect-ratio: 1571 / 600;
  object-fit: cover;
}

.fb-mock__top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2) var(--space-3);
}

.fb-mock__title { display: grid; gap: .25rem; }
.fb-mock__title strong { font-size: var(--step-1); color: var(--ink); }
.fb-mock__title span { color: var(--muted); font-size: var(--step--1); }
.fb-mock__title a { color: inherit; text-decoration: none; }
.fb-mock__title a:active { text-decoration: underline; }

.fb-mock__join {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 2.25rem;
  align-items: center;
  justify-content: center;
  gap: .375rem;
  padding: 0 var(--space-3);
  border-radius: var(--fb-radius);
  background: var(--fb-blue);
  color: var(--paper);
  font-family: var(--fb-font);
  font-size: .9375rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  -webkit-user-select: none;
  user-select: none;
}

.fb-mock__join:active { background: var(--fb-blue-pressed); }

.fb-mock__featured {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--wash);
}

.fb-mock__thumb {
  width: clamp(7rem, 22vw, 9.5rem);
  height: clamp(7rem, 22vw, 9.5rem);
  border-radius: var(--radius-sm);
  object-fit: cover;
}

.fb-mock__featured-body { display: grid; min-width: 0; gap: .25rem; }
.fb-mock__featured-author { color: var(--muted); font-size: var(--step--1); }
.fb-mock__featured-title { color: var(--ink); font-weight: 700; line-height: 1.3; }
.fb-mock__excerpt { grid-column: 1 / -1; color: var(--ink); font-size: var(--step--1); line-height: 1.5; }
.fb-mock__more { color: var(--ink); font-weight: 700; text-decoration: none; }
.fb-mock__more:active { text-decoration: underline; }

/* Amazon buy link. Like Facebook's blue, Amazon's yellow pill is a deliberate
   exception to the monochrome rule, scoped to this one button so a parent
   knows at a glance it leaves for Amazon. Text stays ink; the yellow is only
   a surface. */
.button--buy {
  --amz-yellow: #FFD814;
  --amz-edge: #FCD200;
  --amz-hover: #F7CA00;
  --amz-pressed: #F0B800;

  border-color: var(--amz-edge);
  border-radius: var(--radius-full);
  background: var(--amz-yellow);
  color: var(--ink);
  font-weight: 500;
}

.button--buy:active {
  border-color: var(--amz-edge);
  background: var(--amz-pressed);
}

/* Amazon listing: cover on a wash tile, then title, details, why we chose it,
   and the buy button. It carries no price, rating, or delivery date: those go
   stale, and Amazon's Associates terms only allow them from Amazon's own feed. */
.listing {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.listing__media {
  display: grid;
  place-items: center;
  padding: var(--space-2);
  background: var(--wash);
}

/* Amazon's cover art has a white ground; multiply lets the tile show through. */
.listing__media img {
  width: 100%;
  max-width: 9rem;
  height: auto;
  aspect-ratio: 1;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.listing__body {
  display: grid;
  align-content: center;
  justify-items: start;
  gap: var(--space-1);
  padding: var(--space-3) var(--space-4);
}

/* No cover yet: same box, a quiet glyph in place of the image. */
.listing__media svg { width: 3rem; height: 3rem; color: var(--muted); }
.listings { --stack-gap: var(--space-3); }

.listing__title {
  max-width: none;
  font-family: var(--font-body);
  font-size: var(--step-1);
  font-weight: 500;
  letter-spacing: 0;
}

.listing__meta { color: var(--muted); font-size: var(--step--1); }
.listing__note { max-width: var(--copy); }
.listing .button { margin-block-start: var(--space-2); }

@media (max-width: 40rem) {
  .listing { grid-template-columns: minmax(0, 1fr); }
  .listing__media img { width: 8rem; }
}

/* Fingers: quiet links and the Join pill grow to a 44px target without
   changing how they look. */
@media (pointer: coarse) {
  .site-footer a,
  .fineprint a,
  .fb-mock__title a { padding-block: .875rem; }
  .fb-mock__join { min-height: 2.75rem; }
}

/* Pointer hover. A touch screen leaves :hover stuck on whatever was tapped last,
   so only devices that can really hover get it. */
@media (hover: hover) {
  a:hover { text-decoration-color: var(--ink); }
  .fineprint a:hover { color: var(--ink); }
  .button:hover { border-color: var(--ink-hover); background: var(--ink-hover); }
  .button--outline:hover { border-color: var(--ink); background: var(--paper); }
  .button--buy:hover { border-color: var(--amz-edge); background: var(--amz-hover); }
  .button:hover .glyph--arrow { transform: translateX(2px); }
  .button:hover .glyph--ext { transform: translate(1px, -1px); }
  .card:has(h3 a):hover { background: var(--wash); }
  .card h3 a:hover,
  .fb-mock__title a:hover,
  .fb-mock__more:hover { text-decoration: underline; text-decoration-color: var(--ink); }
}

/* The chat widget is styled inside its shadow root (CHAT_CSS in build-nav.py). */

/* Dialog: a native <dialog> as a reading card, closed by a corner ×.
   Open with showModal(); the backdrop and Esc come free. */
.dialog {
  width: calc(100% - 2 * var(--gutter));
  max-width: var(--copy);
  max-height: 85vh;
  padding: var(--space-5) var(--space-4) var(--space-4);
  color: var(--text);
  background: var(--paper);
  border: 0;
  border-radius: var(--radius);
  box-shadow: 0 1.25rem 3.75rem rgb(0 0 0 / .25);
  line-height: 1.65;
}
.dialog::backdrop { background: rgb(0 0 0 / .45); }
.dialog__body p { margin: 0 0 1em; }
.dialog__close {
  position: absolute;
  top: var(--space-1);
  right: var(--space-2);
  font-size: 1.75rem;
  line-height: 1;
  color: inherit;
  background: none;
  border: 0;
  cursor: pointer;
}

/* Responsive */
@media (max-width: 56rem) {
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .split,
  .conversion-hero__grid { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 40rem) {
  .grid--2,
  .grid--3 { grid-template-columns: minmax(0, 1fr); }

  .rows__item { grid-template-columns: minmax(0, 1fr); }

  .conversion-lead { font-size: var(--step-0); }
}

@media (max-width: 30rem) {
  .button { width: 100%; }
}

/* Cards lift on real hover: a soft shadow and a 2px rise, images drift in. */
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .card { transition: background-color 120ms ease, transform 220ms cubic-bezier(.2, .7, .2, 1), box-shadow 220ms ease; }
  .card:has(h3 a):hover { transform: translateY(-2px); box-shadow: 0 10px 30px -12px rgb(0 0 0 / .18); }
  .card img { transition: transform 600ms cubic-bezier(.2, .7, .2, 1); }
  .card:has(h3 a):hover img { transform: scale(1.03); }
  .button:active { transform: translateY(1px); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

@media print {
  body { color: #000; }
  .site-nav,
  .mobile-nav,
  .skip-link,
  .button,
  [data-no-print] { display: none !important; }
  .site-main,
  .site-shell > .site-main { min-height: 0; margin: 0; padding: 0; }
  .section { padding-block: var(--space-5); }
  .table-wrap { overflow: visible; }
  .data-table { min-width: 0; }
  .card,
  .table-wrap,
  tr { break-inside: avoid; }
}


/* Hero photo: the emotional anchor; the Facebook preview sits below as proof. */
.conversion-photo { margin: 0; }
.conversion-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 50%;
}
.conversion-proof { padding-block: var(--space-7); }
.conversion-proof__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
  align-items: center;
  gap: clamp(var(--space-5), 6vw, var(--space-7));
}
@media (max-width: 56rem) {
  .conversion-proof__grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .conversion-photo img { aspect-ratio: 1 / 1; object-position: 30% 50%; }
}

/* Curriculum: shorter hero photo and a strip of real workbook pages. */
.conversion-photo--compact img { aspect-ratio: 5 / 4; max-height: 22rem; object-position: 50% 40%; }

.page-peek {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}
.page-peek__item { margin: 0; display: grid; align-content: start; gap: var(--space-2); }
.page-peek__item img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  object-position: top;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
/* Short captions in a narrow column: ragged right, never justified. */
.page-peek__item figcaption { color: var(--muted); font-size: var(--step--1); line-height: 1.5; text-align: start; }
.page-peek__item figcaption strong { color: var(--ink); }

@media (max-width: 40rem) {
  .page-peek { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Includes: an icon per item replaces the generic check when one is given. */
.checklist--includes li { align-content: start; }
.checklist--includes li:has(> svg)::before { content: none; }
.checklist--includes li > svg {
  grid-row: 1 / span 2;
  inline-size: 1.25rem;
  block-size: 1.25rem;
  margin-block-start: .125rem;
  color: var(--ink);
}

/* The theme spaces stacked blog posts (article + article); cards in a grid
   were inheriting it and stepping down one by one. */
.site-main .grid > * { margin-block-start: 0; }

/* ---------- Growth timeline (curriculum ages) ---------- */
.timeline-wrap > .eyebrow { margin-bottom: var(--space-5); }
.timeline-wrap .timeline,
.timeline__step {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 0;
}
.timeline-wrap .timeline { display: grid; gap: 0; }
/* the generic history rail must not draw here */
.timeline-wrap .timeline::before { content: none; }
.timeline__step {
  align-content: start; /* extra row height goes below, not into the marker row */
  --dot: 2.75rem;
  position: relative;
  display: grid;
  grid-template-columns: var(--dot) 1fr;
  column-gap: var(--space-4);
  padding-bottom: var(--space-6);
}
.timeline__step::before { content: none; }
/* connector, centred on the marker */
.timeline__step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--dot) / 2 - .5px);
  top: var(--dot);
  bottom: 0;
  width: 1px;
  background: var(--mid);
}
.timeline__marker {
  box-sizing: border-box;
  width: var(--dot);
  height: var(--dot);
  margin: 0;
  border-radius: var(--radius-full);
  display: grid;
  place-items: center;
  background: var(--paper);
  border: 1px solid var(--mid);
  color: var(--ink);
  position: relative;
  z-index: 1;
}
.timeline__icon { width: 1.25rem; height: 1.25rem; display: block; }
.timeline__step .timeline__body { padding-top: .5rem; }
.timeline__step .timeline__body > * { margin: 0; }
.timeline__age {
  font-size: var(--step-1);
  font-weight: 700;
  line-height: 1.2;
  color: var(--ink);
}
.timeline__child { margin-top: var(--space-1) !important; color: var(--text); }
.timeline__part {
  margin-top: var(--space-3) !important;
  padding-top: var(--space-2);
  border-top: 1px solid var(--line);
  font-size: var(--step--1);
  color: var(--muted);
}
.timeline__part .eyebrow { display: block; margin-bottom: .125rem; font-size: var(--step--2); }
.timeline__tag {
  display: block;
  margin-bottom: var(--space-1) !important;
  font-size: var(--step--2);
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
/* milestone: the destination */
.timeline__step--milestone { padding-bottom: 0; }
.timeline__step--milestone .timeline__marker {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
  box-shadow: 0 0 0 4px var(--paper), 0 0 0 5px var(--ink);
}
.timeline__step--milestone .timeline__body { padding-top: 0; }

@media (min-width: 48rem) {
  .timeline-wrap .timeline { grid-template-columns: repeat(4, 1fr); column-gap: var(--space-4); }
  .timeline__step {
    grid-template-columns: 1fr;
    row-gap: var(--space-3);
    padding-bottom: 0;
  }
  .timeline__step:not(:last-child)::after {
    left: var(--dot);
    right: calc(-1 * var(--space-4));
    top: calc(var(--dot) / 2 - .5px);
    bottom: auto;
    width: auto;
    height: 1px;
  }
  .timeline__step .timeline__body { padding-top: 0; }
  /* keep the milestone label from pushing its age down */
  .timeline__tag { position: absolute; top: calc(var(--dot) / 2 - .5em); left: calc(var(--dot) + var(--space-3)); }
}

/* ---------- Audience chips (curriculum) ---------- */
.chips { display: flex; flex-wrap: wrap; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.chips > li { margin: 0; }
.chip {
  display: flex; align-items: center; gap: var(--space-2);
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  border: 1px solid var(--line); border-radius: var(--radius-full);
  background: var(--paper); color: var(--ink); font-weight: 600; line-height: 1.2;
}
.chip::before { content: none; }
.chip svg { width: 1.25rem; height: 1.25rem; flex: none; color: var(--ink); }

/* ---------- Not / Instead contrast (curriculum) ---------- */
.contrast { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.contrast__row {
  display: grid; grid-template-columns: 1fr auto 1.4fr; align-items: center;
  gap: var(--space-4); padding-block: var(--space-4);
  border-bottom: 1px solid var(--line);
}
.contrast__row::before { content: none; }
.contrast__not { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--mid); }
.contrast__arrow { color: var(--mid); }
.contrast__is { font-size: var(--step-1); font-weight: 700; line-height: 1.25; color: var(--ink); }
@media (max-width: 40rem) {
  .contrast__row { grid-template-columns: 1fr; gap: var(--space-1); }
  .contrast__arrow { display: none; }
}

/* About: community photos. One crop, one radius, one caption format.
   Desktop: portrait lead on the left, four landscapes in a 2x2 beside it. */
.photo-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--space-5) var(--space-4);
}
.photo-strip__item { display: grid; grid-template-rows: auto auto; align-content: start; gap: var(--space-2); }
.photo-strip__item img {
  width: 100%;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--wash);
}
.photo-strip__item--tall { grid-row: span 2; grid-template-rows: minmax(0, 1fr) auto; }
.photo-strip__item--tall img { height: 100%; aspect-ratio: auto; object-position: 50% 30%; }
.photo-strip__item figcaption { color: var(--muted); font-size: var(--step--1); line-height: 1.4; }
.photo-strip__item figcaption strong { display: block; color: var(--ink); font-weight: 600; }
@media (max-width: 48rem) {
  .photo-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-3); }
  .photo-strip__item--tall { grid-column: 1 / -1; grid-row: auto; }
  .photo-strip__item--tall img { aspect-ratio: 4 / 5; max-height: 32rem; }
}

/* About: press card (our own photo, linking to the outlet's coverage). */
.press-card {
  display: grid;
  grid-template-columns: minmax(0, 8rem) minmax(0, 1fr);
  gap: var(--space-4);
  align-items: center;
  padding-block: var(--space-4);
  border-block: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
}
.press-card img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
}
.press-card__body > * { display: block; }
.press-card__outlet { font-family: var(--font-display); font-size: var(--step-1); color: var(--ink); }
.press-card__cta { color: var(--ink); text-decoration: underline; text-underline-offset: .2em; }
.press-card:hover .press-card__cta, .press-card:focus-visible .press-card__cta { text-decoration-thickness: 2px; }

/* About: an occasional photo inside a timeline entry. */
.timeline__photo { display: grid; gap: var(--space-1); max-width: 20rem; margin-top: var(--space-2); }
.timeline__photo img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--radius); background: var(--wash); }
.timeline__photo figcaption { color: var(--muted); font-size: var(--step--2); }

/* About: founder portrait — an editorial two-column, not an avatar in a box. */
.founder {
  display: grid;
  grid-template-columns: 12rem minmax(0, 1fr);
  gap: var(--space-6);
  align-items: center;
}
.founder__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  border-radius: var(--radius);
  background: var(--wash);
}
.founder .flow > h2 + .muted { margin-block-start: var(--space-1); }
.founder--reverse { grid-template-columns: minmax(0, 1fr) 12rem; }
.founder--reverse .founder__photo { order: 2; }
.credentials { border-top: 1px solid var(--line, currentColor); padding-block-start: var(--space-3); }
.credentials summary { cursor: pointer; font-weight: 600; }
.credentials ul { list-style: none; padding: 0; margin-block-start: var(--space-3); display: grid; gap: var(--space-2); font-size: var(--step--1); }
.credentials__year { color: var(--muted); font-variant-numeric: tabular-nums; margin-inline-end: var(--space-1); }
@media (max-width: 48rem) {
  .founder { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .founder__photo { max-width: 9rem; }
  .founder--reverse .founder__photo { order: 0; }
}

/* Pod share kit: numbered steps, a grid of share-image cards, message cards. */
.kit > h2 {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-block-start: var(--space-6);
}

.kit-step {
  display: inline-flex;
  flex: 0 0 1.75rem;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.75rem;
  border-radius: var(--radius-full);
  background: var(--ink);
  color: var(--paper);
  font: 600 var(--step--1)/1 var(--font-body);
  letter-spacing: 0;
}

.kit-field { display: grid; gap: var(--space-1); }

.kit-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(12.5rem, 1fr));
  align-items: start;
  gap: var(--space-4);
}

.kit-card {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  padding: var(--space-2);
}

.kit-card canvas {
  width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  background: var(--wash);
}

.kit-card small { color: var(--muted); }

.kit-msgs { --stack-gap: var(--space-3); }
.kit-msgs p { white-space: pre-line; }

/* Fine-print note under staged/illustrative photos. */
.photo-note { margin-top: 0.35rem; color: var(--muted); font-size: 0.7rem; letter-spacing: 0.02em; text-align: end; font-style: italic; }

/* Organization facts: quiet, document-style reference line */
.org-facts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr));
  gap: 1rem 2rem;
  margin: 0;
  padding-block: 1.25rem;
  border-block: 1px solid var(--color-border, #e5e5e5);
  font-size: 0.9375rem;
}
.org-facts dt {
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text-muted, #6b6b6b);
  margin-bottom: 0.25rem;
}
.org-facts dd { margin: 0; }
.org-facts > div {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.75rem;
  align-items: start;
}
.org-facts .icon {
  grid-row: span 2;
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.125rem;
  color: var(--color-text-muted, #6b6b6b);
}

/* Nine tabs in the mobile bar: the theme's 56px floor pushed the last two
   off a 390px screen behind a hidden scroll. Share the width instead. */
.mobile-nav li { min-width: 0; }

.group-rules { list-style: none; padding: 0; }
.group-rules li { display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: .75rem; align-items: start; }
.group-rules__icon { width: 1.25rem; height: 1.25rem; margin-top: .2em; color: var(--muted); }

/* ---------- App layer: phone and tablet ----------
   One set of widths for every sheet, matching the theme's shell:
     phone    below 40rem (640px)  bottom tab bar
     tablet   40rem to 64rem       side rail, touch first
     desktop  64rem and up         side rail, pointer
   Everything here is about feeling like an installed app on touch: no tap
   flash, no long-press menus on controls, a visible press on every tap,
   inputs that don't zoom, and anchors that never land under the tab bar. */
a, button, summary, label, .button, [role="button"] {
  -webkit-tap-highlight-color: transparent;
}

.button, button, summary, .card, .listing {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

img, svg, video { -webkit-user-drag: none; }

/* iOS zooms into any field under 16px. */
input, select, textarea { font-size: max(16px, 1em); }

/* Pressed state stands in for hover on touch: a quick dip, released on lift. */
.button, .card:has(h3 a), .listing, .press-card {
  transition: transform 100ms ease, background-color 120ms ease, border-color 120ms ease;
}

.card:has(h3 a):active,
.listing:active,
.press-card:active { transform: scale(.985); }

@media (prefers-reduced-motion: reduce) {
  .button:active,
  .card:has(h3 a):active,
  .listing:active,
  .press-card:active { transform: none; }
}

/* Long text reads ragged-right below desktop width: justified lines open
   rivers in a narrow column. */
@media (max-width: 64rem) {
  .faq__item p { text-align: start; }
}

/* Phone: a scroll view, not a web page. Sections sit closer, and the page
   scrolls clear of the tab bar and the home indicator. */
@media (max-width: 40rem) {
  html {
    scroll-padding-block-end: calc(64px + env(safe-area-inset-bottom, 0px) + var(--space-3));
  }

  .section { padding-block: var(--space-6); }
  .section--tight { padding-block: var(--space-5); }
}

/* Older theme: address, email and links arrive inside the credit line. */
.site-footer__row--fine:has(.site-footer__credit br) { display: grid; gap: .25rem; padding-top: 0; border-top: 0; }
.site-footer__row--fine .site-footer__credit:has(br) { opacity: 1; line-height: 1.7; }

/* Reel: a portrait video beside its pitch, with share icons. */
.reel { align-items: center; }
.reel__frame { margin: 0; justify-self: center; width: min(100%, 22rem); }
.reel__video { width: 100%; aspect-ratio: 9 / 16; border-radius: var(--radius); background: var(--wash); object-fit: cover; }
.share { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.share__label { margin-right: .25rem; color: var(--muted); font-size: .75rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
.share__icon { display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; padding: 0; border: 1px solid var(--mid); border-radius: var(--radius-full); background: var(--paper); color: var(--ink); cursor: pointer; }
.share__icon svg { width: 1.2rem; height: 1.2rem; }
.share__icon[hidden] { display: none; }
@media (hover: hover) { .share__icon:hover { border-color: var(--ink); background: var(--wash); } }
.share__icon:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.share__toast { color: var(--text); font-size: .85rem; font-weight: 600; }

/* This week strip (home): one quiet line under the hero — Hebrew date,
   parsha, next holiday, candle lighting. Filled by js/pages/index.js from
   Hebcal; hidden until data arrives. */
.week-strip { border-block-end: 1px solid var(--line); background: var(--wash); font-size: var(--step--1); color: var(--muted); }
.week-strip__row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) 0; padding-block: var(--space-2); }
.week-strip__item { display: inline-flex; align-items: center; gap: .35em; }
.week-strip__item + .week-strip__item::before { content: "·"; margin-inline: var(--space-2); color: var(--mid); }
.week-strip b, .week-strip a { color: var(--ink); font-weight: 600; }
.week-strip a { text-decoration: none; }
.week-strip a:hover { text-decoration: underline; text-underline-offset: .2em; }
.week-strip__zip { display: inline-flex; gap: .35em; align-items: center; }
.week-strip__zip[hidden] { display: none; }
.week-strip__zip .input { min-height: 1.75rem; width: 4.5rem; padding-inline: var(--space-1); font-size: var(--step--1); }
.link-button { padding: 0; border: 0; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: .2em; cursor: pointer; }
@media (max-width: 40rem) {
  .week-strip__row { gap: var(--space-1) var(--space-4); }
  .week-strip__item + .week-strip__item::before { display: none; }
}

/* Form rows (Ask, Sponsor, finder): a label over a control, a choice list. */
.form { display: grid; gap: var(--space-4); max-width: var(--copy); }
.form > label { display: grid; gap: var(--space-1); }
.form fieldset { display: grid; gap: var(--space-1); margin: 0; padding: 0; border: 0; }
.form legend, .form label > span:first-child { color: var(--ink); font-weight: 600; margin-block-end: var(--space-1); }
.form .choice { display: flex; gap: var(--space-1); align-items: center; font-weight: 400; }
.form textarea.input { min-height: 7rem; max-width: 100%; padding-block: var(--space-2); resize: vertical; }
.form select.input { max-width: 22.5rem; }
.form__result:empty { display: none; }

/* Finder (Near You) and search results: ruled result rows. */
.results { display: grid; gap: 0; border-block-start: 1px solid var(--line); }
.results:empty { display: none; }
.results > * { padding-block: var(--space-3); border-block-end: 1px solid var(--line); }
.results a { color: var(--ink); font-weight: 600; }
.results p { margin: .25rem 0 0; color: var(--muted); font-size: var(--step--1); }

/* ===== Phone, free scroll (Nov 20): floating pill, slide-up panel, sideways galleries ===== */
@media (max-width:40rem){
  body.phone-lux:not(.cf-in) .mobile-nav{background:rgba(255,253,249,.92)!important;--nav-bg:rgba(255,253,249,.92);--nav-bg-hover:#f3ede2;--nav-fg:#8a837c;--nav-fg-active:#161616;--nav-accent:#161616;border-top:1px solid rgba(22,22,22,.1);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px)}
  /* while a page film plays (body.cf-in, set by the page script), the bar goes dark with it */
  body.phone-lux.cf-in .mobile-nav{background:#050403;--nav-bg:#050403;--nav-bg-hover:#1c1916;--nav-fg:rgba(245,238,228,.5);--nav-fg-active:#f5eee4;--nav-accent:#f5eee4;border-top:1px solid rgba(245,238,228,.08);transition:background .5s}
  .m-pill{position:fixed;z-index:90;left:50%;bottom:calc(var(--mobile-nav-height,64px) + env(safe-area-inset-bottom,0px) + 12px);transform:translateX(-50%);display:flex;align-items:center;gap:.5rem;padding:.65rem 1rem .65rem 1.15rem;border-radius:999px;border:1px solid rgba(22,22,22,.08);background:rgba(255,253,249,.88);-webkit-backdrop-filter:saturate(180%) blur(18px);backdrop-filter:saturate(180%) blur(18px);box-shadow:0 10px 30px -10px rgba(0,0,0,.35);color:#161616;font:600 .9rem/1 var(--font-body);cursor:pointer;transition:transform .45s cubic-bezier(.2,.8,.2,1),opacity .3s}
  .m-pill svg{width:1rem;height:1rem;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
  .m-pill.is-tucked,body.m-sheet-open .m-pill{transform:translate(-50%,180%);opacity:0}
  body.phone-lux chat-widget{display:none}
  .m-scrim{position:fixed;inset:0;z-index:120;background:rgba(20,15,10,.32);opacity:0;pointer-events:none;transition:opacity .35s}
  .m-scrim.is-on{opacity:1;pointer-events:auto}
  .m-sheet{position:fixed;z-index:121;left:0;right:0;bottom:0;max-height:86vh;overflow-y:auto;overscroll-behavior:contain;background:#fffdf9;color:#161616;border-radius:1.5rem 1.5rem 0 0;box-shadow:0 -20px 50px rgba(0,0,0,.22);padding:0 1.15rem calc(1.4rem + env(safe-area-inset-bottom,0px));transform:translateY(105%);transition:transform .45s cubic-bezier(.2,.8,.2,1)}
  .m-sheet.is-on{transform:none}
  .m-sheet__bar{position:sticky;top:0;z-index:1;display:grid;place-items:center;height:2.6rem;background:#fffdf9}
  .m-sheet__grab{width:2.4rem;height:5px;border-radius:5px;background:rgba(22,22,22,.18)}
  .m-sheet__x{position:absolute;right:-.35rem;top:.35rem;width:2.4rem;height:2.4rem;border:0;border-radius:50%;background:rgba(22,22,22,.06);color:#161616;font-size:1.3rem;line-height:1;cursor:pointer}
  .m-nav__list{list-style:none;margin:0 0 1.2rem;padding:0}
  .m-nav__list a{display:flex;justify-content:space-between;align-items:baseline;gap:1rem;padding:.95rem 0;border-bottom:1px solid rgba(22,22,22,.1);color:#161616;text-decoration:none}
  .m-nav__list b{font-family:var(--font-display);font-size:1.2rem;font-weight:600}
  .m-nav__list span{font-size:.85rem;color:#6b6560;white-space:nowrap}
  .m-btn{display:flex;justify-content:center;align-items:center;min-height:3.1rem;border-radius:999px;background:#161616;color:#fff!important;font-weight:600;text-decoration:none}
  .m-link{display:block;width:max-content;margin:.9rem auto 0;color:#161616!important;font-weight:600;font-size:.92rem;text-decoration:none;border-bottom:1px solid #c9a24a;padding-bottom:2px}
  .m-detail .m-k{font-size:.72rem;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#836729}
  .m-detail h3{margin:.4rem 0 .35rem;font-family:var(--font-display);font-size:1.5rem;line-height:1.12}
  .m-detail p{margin:0 0 1rem;color:#5b544e}
  .m-detail img{display:block;width:100%;aspect-ratio:1/1;object-fit:cover;border-radius:4px;box-shadow:0 14px 28px -16px rgba(40,30,20,.45)}
  .m-gal{margin:1.2rem -16px 0}
  .m-gal__track{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;outline:none}
  .m-gal__track::-webkit-scrollbar{display:none}
  .m-gal__slide{flex:0 0 100%;scroll-snap-align:center;padding:.4rem 16px 1.4rem}
  .m-gal__bar{display:flex;justify-content:space-between;align-items:center;padding:0 16px}
  .m-gal__dash{display:flex;gap:5px}
  .m-gal__dash i{width:18px;height:3px;border-radius:3px;background:rgba(22,22,22,.15);transition:width .3s,background .3s}
  .m-gal__dash i.on{width:30px;background:#161616}
  .m-gal__cnt{font-size:.8rem;color:#6b6560}
  .m-gal__name{margin:.6rem 0 0;font-family:var(--font-display);font-size:1.15rem;line-height:1.25;min-height:1.5em}
  .m-spread{position:relative;display:grid;grid-template-columns:1fr 1fr;aspect-ratio:1600/1036;border-radius:3px;overflow:hidden;box-shadow:0 22px 34px -20px rgba(40,30,20,.5),0 2px 6px rgba(40,30,20,.12)}
  .m-spread img{width:100%;height:100%;object-fit:cover;object-position:top;display:block}
  .m-spread::after{content:"";position:absolute;left:50%;top:0;bottom:0;width:20px;transform:translateX(-50%);background:linear-gradient(90deg,transparent,rgba(0,0,0,.14) 50%,transparent);pointer-events:none}
  .m-plus{display:flex;gap:.5rem;overflow-x:auto;margin:1rem -16px 0;padding:.2rem 16px .5rem;scrollbar-width:none}
  .m-plus::-webkit-scrollbar{display:none}
  .m-plus button{flex:none;display:flex;align-items:center;gap:.5rem;padding:.6rem .95rem .6rem .65rem;border:0;border-radius:999px;background:#fff;box-shadow:0 1px 8px rgba(40,30,20,.12);color:#161616;font:600 .85rem/1 var(--font-body);cursor:pointer}
  .m-plus i{display:grid;place-items:center;width:1.3rem;height:1.3rem;border:1.5px solid #161616;border-radius:50%;font-style:normal;font-size:.95rem;line-height:1}
}
@media (max-width:40rem) and (prefers-reduced-motion:reduce){.m-pill,.m-sheet,.m-scrim{transition:none}}
@media (max-width:40rem){
  .m-pill.is-away{transform:translate(-50%,180%);opacity:0;pointer-events:none}
  /* comfortable thumbs: inline links get a taller hit area without moving the text */
  body.phone-lux #main-content p a,body.phone-lux #main-content li a:not(.button):not(.btn),body.phone-lux .week-strip a,body.phone-lux .author a{padding-block:12px;margin-block:-12px}
  body.phone-lux .week-strip input{min-height:40px}
}

/* The live theme (until its zip is re-uploaded) sets --font-display to Playfair inline, whose file 404s.
   html:root outranks its :root, so headlines use Source Serif everywhere. */
html:root{--font-display:"Source Serif 4 Display","Source Serif 4","Display Fallback",Georgia,serif}

/* ===== Finish (Nov 20): the small things that read as premium ===== */
@media (prefers-reduced-motion:no-preference){html{scroll-behavior:smooth}}
html{scroll-padding-top:4.5rem}
h1,h2,h3{text-wrap:balance}
p,li,summary{text-wrap:pretty}
::selection{background:rgba(201,162,74,.28);color:inherit}
:where(a,button,summary,input,[tabindex]):focus-visible{outline:2px solid #c9a24a;outline-offset:3px;border-radius:4px}
:where(.btn,.button,.m-btn,.h-bar__btn,.buybar__btn,.pill){transition:transform .2s cubic-bezier(.2,.8,.2,1),box-shadow .25s,background-color .2s,color .2s}
@media (hover:hover){:where(.btn--primary,.button:not(.button--outline),.m-btn,.h-bar__btn,.buybar__btn):hover{transform:translateY(-1px);box-shadow:0 10px 22px -12px rgba(22,22,22,.55)}}
:where(.btn,.button,.m-btn,.h-bar__btn,.buybar__btn):active{transform:scale(.98)}
/* images settle in instead of popping */
img.t2g-fade{opacity:0;transition:opacity .6s ease}
img.t2g-fade.is-loaded{opacity:1}
@media (prefers-reduced-motion:reduce){img.t2g-fade{opacity:1;transition:none}}
@media (max-width:40rem){body.phone-lux a,body.phone-lux button{-webkit-tap-highlight-color:transparent}}
