/* Seminars group: seminars.html, seminar-archive.html, seminar.html, testimonials.html.
   Loaded after style.css; uses its tokens and components (SYSTEM.md), adds only what these pages need.
   Photos use the shared .crop-* wrappers and .fig-cap captions. */

/* ==========================================================================
   1. Shared: head actions, sections, copy
   ========================================================================== */
.sec {
  padding-block: var(--space-section-m);
}
.sec--surface {
  background: var(--surface);
}
.sec--rule {
  border-top: 1px solid var(--line);
}
/* .sec--hair lives in style.css (shared with resources.html) */
.sec h2 {
  font-size: var(--step-4);
}
.copy {
  margin-top: 1.5rem;
}
.copy p {
  max-width: var(--measure);
  color: #2c3548;
  font-family: var(--font-serif);
  font-size: var(--text-prose);
  line-height: 1.68;
  font-variation-settings: "opsz" 16;
}
.copy p + p {
  margin-top: 1.25rem;
}
.copy + .link-arrow {
  margin-top: 1.5rem;
}

/* ==========================================================================
   2. Our Seminars (seminars.html). Four sections on white, divided by one hairline each:
      .ov-what   the Foundation's purpose, then the facts the head card does not hold
      .ov-year   the seminar year: 52 weeks, the reading in gold, the week together in navy
      .ov-recent the record: the latest seminars, generated by tools/build-seminars.mjs
      .ov-where  the Foundation's description and the places seminars met most often
      .ov-join   (#inquire) how to join, with one participant's words beside it
   ========================================================================== */
.ov-what {
  padding-block: var(--space-section-s);
}
.ov-year,
.ov-recent,
.ov-where,
.ov-join {
  padding-bottom: var(--space-section-s);
}
/* The hairline sits on the content width, not edge to edge */
.ov-year::before,
.ov-recent::before,
.ov-where::before,
.ov-join::before {
  content: "";
  display: block;
  width: min(var(--max), 100% - var(--gutter) * 2);
  height: 1px;
  margin: 0 auto var(--space-section-s);
  background: var(--line);
}
.ov-what h2,
.ov-recent h2,
.ov-where h2,
.ov-join h2 {
  font-size: var(--step-4);
}

/* 1. What a seminar is */
.ov-what-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
}
.ov-what-copy {
  grid-column: 1 / span 6;
}
.ov-facts {
  grid-column: 8 / -1;
  margin: 0.5rem 0 0;
  border-top: 1px solid var(--ink);
}
.ov-facts > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.25rem 1.25rem;
  padding-block: 1rem 1.0625rem;
  border-bottom: 1px solid var(--line);
}
.ov-facts dt {
  padding-top: 0.125rem;
  color: var(--muted);
  font-size: var(--text-meta);
  font-weight: 600;
  line-height: 1.5;
}
.ov-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: var(--text-meta-lg);
  line-height: 1.55;
}

/* 2. The seminar year. One scale across the twelve columns: 52 week ticks, a navy mark where
   the bibliography is chosen, a gold line for the reading, and one navy week where the gathering
   column begins. Each step's text sits under its own mark. */
.ov-year .section-head {
  margin-bottom: clamp(2rem, 1.5rem + 1.5vw, 2.75rem);
}
.ov-steps {
  --scale-h: 1.25rem;
  --gather-x: calc((100% - 11 * var(--col-gap)) * 8 / 12 + 8 * var(--col-gap));
  position: relative;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  padding-top: calc(var(--scale-h) + 1.75rem);
  list-style: none;
}
.ov-steps::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: var(--scale-h);
  background:
    linear-gradient(var(--navy), var(--navy)) 0 0 / 2px 100% no-repeat,
    linear-gradient(var(--gold), var(--gold)) 0 50% / var(--gather-x) 2px no-repeat,
    repeating-linear-gradient(90deg, var(--line-strong) 0 1px, transparent 1px calc(100% / 52)) 0 50% / 100% 8px no-repeat;
  border-right: 1px solid var(--line-strong);
}
.ov-steps::after {
  /* the week together: one fifty-second of the year */
  content: "";
  position: absolute;
  top: 0;
  left: var(--gather-x);
  width: calc(100% / 52);
  min-width: 6px;
  height: var(--scale-h);
  background: var(--navy);
}
.ov-step--choose {
  grid-column: 1 / span 4;
}
.ov-step--read {
  grid-column: 5 / span 4;
}
.ov-step--gather {
  grid-column: 9 / -1;
}
.ov-step h3 {
  font-size: var(--step-2);
  line-height: 1.2;
}
.ov-step p {
  max-width: var(--measure);
  margin-top: 0.75rem;
  font-size: var(--text-meta-lg);
}
.ov-step .link-arrow {
  margin-top: 0.5rem;
}
.ov-step p.ov-step-note {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line-strong);
  color: var(--ink);
}

/* 3. Recently read together. Intro, archive link and photograph in the left four columns; the
   record in the right seven. Year groups hang the year in the display serif (tabular). Each row:
   title (serif link, whole row is the hit area), place and leader, dates on the right. */
.ov-recent-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto auto 1fr;
  column-gap: var(--col-gap);
}
.ov-recent-intro {
  grid-column: 1 / span 4;
  grid-row: 1;
}
.ov-recent-intro p {
  margin-top: 1.25rem;
  font-size: var(--text-meta-lg);
}
.ov-recent-all {
  grid-column: 1 / span 4;
  grid-row: 2;
  justify-self: start;
  margin-top: 1rem;
}
.ov-recent-fig {
  grid-column: 1 / span 4;
  grid-row: 3;
  align-self: start;
  margin: 2.5rem 0 0;
}
.ov-rec {
  grid-column: 6 / -1;
  grid-row: 1 / span 3;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.ov-rec-yr {
  display: grid;
  grid-template-columns: 6rem minmax(0, 1fr);
  column-gap: var(--col-gap);
}
.ov-rec-yr + .ov-rec-yr {
  border-top: 1px solid var(--ink);
}
.ov-rec-y {
  padding-top: 0.875rem;
  font-size: var(--step-2);
  font-weight: 350;
  font-variant-numeric: tabular-nums lining-nums;
  font-variation-settings: "opsz" 48;
  letter-spacing: -0.01em;
}
.ov-rec-rows {
  list-style: none;
}
.ov-rec-row + .ov-rec-row {
  border-top: 1px solid var(--line);
}
/* the whole row is the link: a real target, at least 44px tall; the title is a heading inside it */
.ov-rec-a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 1.5rem;
  min-height: 44px;
  padding-block: 0.8125rem 0.875rem;
  color: inherit;
  text-decoration: none;
}
.ov-rec-t {
  grid-column: 1;
  color: var(--ink);
  font-size: clamp(1.1875rem, 1.05rem + 0.35vw, 1.375rem);
  font-weight: 400;
  font-variation-settings: "opsz" 24;
  line-height: 1.3;
  letter-spacing: -0.005em;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
  transition: color var(--t) var(--ease), text-decoration-color var(--t) var(--ease);
}
.ov-rec-a:hover .ov-rec-t {
  color: var(--navy);
  text-decoration-color: currentColor;
}
.ov-rec-m {
  grid-column: 1;
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: var(--text-meta-lg);
  line-height: 1.5;
}
.ov-rec-m span:not(:last-child)::after {
  content: " \00b7";
  margin-right: 0.375em;
}
.ov-rec-d {
  grid-column: 2;
  grid-row: 1;
  padding-top: 0.25rem;
  color: var(--muted);
  font-size: var(--text-meta);
  white-space: nowrap;
  text-align: right;
}

/* 4. Where seminars meet: the Foundation's own description on the left, the places the archive
   records most often on the right (counts from content/seminars.json, via the build script) */
.ov-where-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
}
.ov-where-copy {
  grid-column: 1 / span 6;
}
.ov-venues-col {
  grid-column: 8 / -1;
  padding-top: 0.5rem;
}
.ov-where-stat {
  margin-top: 1.5rem;
  color: var(--ink);
  font-size: var(--text-meta-lg);
}
.ov-where-stat strong {
  font-variant-numeric: tabular-nums lining-nums;
}
.ov-venues {
  margin-top: 0.75rem;
  list-style: none;
  border-top: 1px solid var(--ink);
}
.ov-venues li {
  border-bottom: 1px solid var(--line);
}
.ov-venues a {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.25rem 1.5rem;
  min-height: 44px;
  padding: 0.625rem 0;
  color: var(--ink);
  text-decoration: none;
}
.ov-venues .pl {
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.35;
  font-variation-settings: "opsz" 20;
}
.ov-venues .pl small {
  display: block;
  margin-top: 0.125rem;
  color: var(--muted);
  font-family: var(--font-sans);
  font-size: var(--text-meta);
}
.ov-venues .n {
  color: var(--muted);
  font-size: var(--text-meta);
  white-space: nowrap;
}
.ov-venues a:hover .pl {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

/* Joining a seminar (#inquire): the invitation on the left, one participant's words on the right */
.ov-join-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
}
.ov-join-copy {
  grid-column: 1 / span 6;
}
.ov-join-copy > p {
  max-width: var(--measure);
  margin-top: 1.25rem;
}
.ov-join-copy > p.ov-join-note {
  margin-top: 1rem;
  color: var(--muted);
  font-size: var(--text-meta-lg);
}
.ov-join-copy .btn-row {
  margin-top: 1.75rem;
  gap: 0.75rem;
}
.ov-join-phone {
  margin-top: 0.75rem;
  color: var(--muted);
  font-size: var(--text-meta);
}
.ov-join-phone a {
  display: inline-block;
  padding-block: 0.75rem;
  margin-block: -0.75rem;
}
.ov-join-quote {
  grid-column: 8 / -1;
  margin: 0.75rem 0 0;
  padding-top: 1.25rem;
  border-top: 1px solid var(--gold);
}
.ov-join-quote blockquote {
  margin: 0;
}
.ov-join-quote blockquote p {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: clamp(1.375rem, 1.1rem + 0.7vw, 1.75rem);
  font-weight: 350;
  font-variation-settings: "opsz" 48;
  line-height: 1.32;
  letter-spacing: -0.01em;
}
.ov-join-quote figcaption {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.ov-join-quote cite {
  color: var(--text);
  font-size: var(--text-meta-lg);
  font-style: normal;
}
.ov-join-quote cite strong {
  color: var(--ink);
}

/* testimonials.html: the invitation to join (copy beside a card) */
.inquire {
  align-items: start;
}
.inquire-copy {
  grid-column: 1 / span 6;
}
/* no box: a gold hairline on top, like the record card */
.inquire-card {
  grid-column: 8 / span 5;
  padding-top: 1.75rem;
  border-top: 1px solid var(--gold);
}
.inquire-card .profile {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.inquire-card .btn-row {
  margin-top: 1.75rem;
}

/* seminar.html: "more seminars" header */
.arch-strip-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.75rem;
}
.arch-strip-head h2 {
  font-size: var(--step-3);
}
.arch-strip-head p {
  margin-top: 0.5rem;
  color: var(--text);
  font-size: var(--text-meta-lg);
}

/* ==========================================================================
   3. Seminar rows: a hairline grid table (archive, strips, single record)
      Columns: Date | Seminar and leader | Place | Status. The whole row is the link
      (the title link's ::after covers the row). Under 768px each row becomes stacked
      "label value" lines; the .k labels are visible only there.
   ========================================================================== */
.sem-rows,
.yr-head {
  --sem-cols: 12rem minmax(0, 1fr) minmax(0, 19rem) 7rem;
}
.sem-rows {
  list-style: none;
  border-top: 1px solid var(--ink);
}
.sem-rows--compact {
  --sem-cols: 11rem minmax(0, 1fr);
}
/* Compact rows sit in a narrow column: the place goes under the title */
.sem-rows--compact .c-place {
  grid-column: 2;
  margin-top: 0.125rem;
}
.sem-row,
.sem-cols {
  display: grid;
  grid-template-columns: var(--sem-cols);
  column-gap: 1.5rem;
}
.sem-row {
  position: relative;
  align-items: baseline;
  padding: 1rem 0.75rem;
  margin-inline: -0.75rem;
  border-radius: var(--r);
  font-variant-numeric: tabular-nums lining-nums;
  transition: background-color var(--t) var(--ease);
}
.sem-row::before {
  /* the hairline between rows, inset so the hover fill reads as one block */
  content: "";
  position: absolute;
  left: 0.75rem;
  right: 0.75rem;
  bottom: 0;
  height: 1px;
  background: var(--line);
}
.sem-row:hover {
  background: var(--surface);
}
.sec--surface .sem-row:hover {
  background: #fff;
}
.sem-row[hidden] {
  display: none;
}
.sem-row .k {
  display: none;
}
.c-date {
  color: var(--navy);
  font-size: var(--text-meta-lg);
  line-height: 1.45;
  font-variant-numeric: tabular-nums lining-nums;
}
.c-date.is-tbd .v {
  /* muted roman: an italic here was the only reason this page fetched the serif italic file */
  color: var(--muted);
}
.sem-title {
  font-size: 1.1875rem;
  font-weight: 450;
  line-height: 1.32;
  letter-spacing: -0.005em;
  font-variation-settings: "opsz" 20;
}
.sem-title a {
  padding-block: 0.5625rem; /* a real 44px box; inline padding does not move the line */
  color: var(--ink);
  text-decoration: none;
}
.sem-title a::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--r);
}
.sem-title a:focus-visible {
  outline: none;
}
.sem-title a:focus-visible::after {
  outline: 2px solid var(--focus);
  outline-offset: -2px;
}
.sem-row:hover .sem-title a {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}
.sem-lead {
  margin-top: 0.25rem;
  color: var(--text);
  font-size: var(--text-meta);
  line-height: 1.45;
}
.c-place {
  color: var(--text);
  font-size: var(--text-meta);
  line-height: 1.45;
}
.pl-venue {
  display: block;
  color: var(--ink);
}
.pl-sep {
  display: none;
}
.pl-town {
  display: block;
  color: var(--muted);
}
.c-status {
  color: var(--muted);
  font-size: var(--text-meta);
  line-height: 1.45;
}

/* ==========================================================================
   4. Seminar archive
   ========================================================================== */
.archive {
  padding-block: var(--space-section-s) var(--space-section-l);
}
.arch-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
}
.arch-field {
  display: grid;
  gap: 0.375rem;
}
.arch-field label {
  color: var(--muted);
  font-size: var(--text-label);
  font-weight: 600;
}
.arch-field select {
  min-width: 18rem;
  max-width: 100%;
}
.arch-field select:disabled {
  color: var(--muted);
  cursor: default;
}
.archive .active-filters {
  padding-top: 1.25rem;
}

/* Year chips: the single year control. "All years" plus one chip per year, with counts.
   Scrolls sideways on narrow screens rather than wrapping into a block. */
.yr-chips {
  margin-top: 1.5rem;
}
.yr-chips[hidden] {
  display: none;
}
/* One joined row of hairline segments; scrolls sideways when the row is wider than the page */
.yr-chips ul {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  list-style: none;
  scrollbar-width: thin;
}
.yr-chips li {
  flex: none;
}
.yr-chips li + li {
  margin-left: -1px;
}
.yr-chips li:first-child button {
  border-radius: var(--r) 0 0 var(--r);
}
.yr-chips li:last-child button {
  border-radius: 0 var(--r) var(--r) 0;
}
.yr-chips button {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.4375rem;
  min-height: 44px;
  padding: 0.6875rem 0.625rem;
  border: 1px solid var(--line-strong);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: var(--text-meta);
  font-weight: 600;
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease), color var(--t) var(--ease);
}
.yr-chips button .n:empty {
  display: none;
}
.yr-chips button .n {
  color: var(--muted);
  font-size: var(--text-label);
  font-weight: 500;
}
.yr-chips button:hover {
  z-index: 1;
  border-color: var(--navy);
  color: var(--navy);
}
.yr-chips button:focus-visible {
  z-index: 2;
}
.yr-chips button[aria-pressed="true"] {
  z-index: 1;
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.yr-chips button[aria-pressed="true"] .n {
  color: rgba(255, 255, 255, 0.78);
}
.yr-chips button:disabled {
  border-color: var(--line);
  background: transparent;
  color: var(--muted);
  cursor: default;
}

.arch-list {
  margin-top: 2.25rem;
}
.yr-group + .yr-group {
  margin-top: 2.5rem;
}
.yr-group[hidden] {
  display: none;
}
/* Sticky year head doubles as the column header row */
.yr-head {
  position: sticky;
  top: var(--header-h);
  z-index: 3;
  align-items: end;
  padding: 1rem 0 0.625rem;
  background: #fff;
  border-bottom: 1px solid var(--ink);
  scroll-margin-top: -24px;  /* net of html scroll-padding */
}
.yr-head .yr {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
}
.yr-head h2 {
  color: var(--navy);
  font-size: var(--step-3);
  font-variant-numeric: tabular-nums lining-nums;
  line-height: 1;
}
.yr-head .n {
  color: var(--muted);
  font-size: var(--text-meta);
  font-variant-numeric: tabular-nums lining-nums;
}
.yr-head .col {
  color: var(--muted);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.yr-group .sem-rows {
  border-top: 0;
}
.arch-skeleton {
  display: grid;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--ink);
}
.arch-skeleton span {
  height: 56px;
  border-radius: var(--r);
  background: var(--surface);
}
.arch-skeleton span:nth-child(2n) {
  width: 86%;
}
.arch-note {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  font-size: var(--text-meta-lg);
}
.arch-note strong {
  color: var(--ink);
}
.arch-error[hidden] {
  display: none;
}
.archive .empty {
  margin-top: 1rem;
}

/* ==========================================================================
   5. Single seminar record (Mellon-style: record metadata as a label/value list)
   ========================================================================== */
.rec {
  padding-block: var(--space-section-s) var(--space-section-m);
}
.rec-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  column-gap: var(--col-gap);
  align-items: start;
}
.rec-main {
  grid-column: 1 / span 7;
}
.rec-main > figure {
  margin: 0;
}
.rec-sec {
  margin-top: var(--space-xl);
}
/* the group photograph now sits in the page head (style.css 11a), so the record opens on its prose */
.rec-main > .rec-sec:first-child {
  margin-top: 0;
}
.rec-sec h2 {
  font-size: var(--step-3);
}
.rec-sec .copy {
  margin-top: 1rem;
}
.leader {
  margin-top: 1.25rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.leader-name {
  font-size: var(--step-2);
}
.leader-role {
  margin-top: 0.25rem;
  color: var(--muted);
  font-size: var(--text-meta-lg);
}
.leader-board {
  margin-top: 0.375rem;
  font-size: var(--text-meta-lg);
}
.leader-board a {
  display: inline-block;
  margin-left: 0.25rem;
  padding-block: 0.625rem;
  font-weight: 600;
}
.rec-sub {
  margin: 2.25rem 0 1rem;
  font-family: var(--font-sans);
  font-variation-settings: normal;
  font-size: var(--text-ui);
  font-weight: 700;
  letter-spacing: 0;
}
.rec-aside {
  grid-column: 9 / span 4;
  position: sticky;
  top: calc(var(--header-h) + 2rem);
  display: grid;
  gap: 2.5rem;
}
/* The record: label left, value right, hairlines between (no box) */
.rec-meta {
  margin: 0;
  border-top: 1px solid var(--gold);
  font-variant-numeric: tabular-nums lining-nums;
}
.rec-meta > div {
  display: grid;
  grid-template-columns: 7.5rem minmax(0, 1fr);
  gap: 0.25rem 1rem;
  padding: 0.875rem 0;
  border-bottom: 1px solid var(--line);
}
.rec-meta dt {
  padding-top: 0.1875rem;
  color: var(--muted);
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.rec-meta dd {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.125rem;
  line-height: 1.4;
  font-variation-settings: "opsz" 20;
}
.rec-meta dd small {
  display: block;
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--text-meta);
}
.rec-meta .link-arrow {
  margin-top: 0.125rem;
  font-family: var(--font-sans);
  font-size: var(--text-meta);
}
.aside-join h2 {
  font-family: var(--font-sans);
  font-variation-settings: normal;
  font-size: var(--text-ui);
  font-weight: 700;
  letter-spacing: 0;
}
.aside-join p {
  margin-top: 0.5rem;
  font-size: var(--text-meta-lg);
}
.aside-join .btn {
  margin-top: 1.25rem;
}
.rec-back {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-top: 2.5rem;
}
.link-back {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 44px;
  color: var(--navy);
  font-weight: 600;
  text-decoration: none;
}
.link-back span {
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 0.28em;
  transition: text-decoration-color var(--t) var(--ease);
}
.link-back:hover span {
  text-decoration-color: currentColor;
}
.link-back .icon {
  transition: transform var(--t) var(--ease);
}
.link-back:hover .icon {
  transform: translateX(-3px);
}

/* ==========================================================================
   6. Testimonials: an index of short excerpts, then the full letters, each
      closed in a <details> so the page opens short.
   ========================================================================== */
.excerpts {
  padding-block: var(--space-section-m);
}
.excerpt-lead blockquote {
  margin: 0;
}
.excerpt-lead {
  max-width: 980px;
  margin: 0;
}
.excerpt-lead blockquote p {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: var(--step-3);
  font-weight: 350;
  line-height: 1.3;
  letter-spacing: -0.01em;
  font-variation-settings: "opsz" 60;
}
/* the lead excerpt is the page head's pull quote (style.css 11a); the grid opens the section */
.excerpts .sr-only + .excerpt-grid {
  margin-top: 0;
}
.excerpt-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 var(--col-gap);
  margin-top: var(--space-xl);
  list-style: none;
}
.excerpt-grid li {
  display: flex;
  flex-direction: column;
  padding-block: 1.5rem 1.75rem;
  border-top: 1px solid var(--line-strong);
}
.excerpt-grid li > figure {
  display: flex;
  flex: 1;
  flex-direction: column;
  margin: 0;
}
.excerpt-grid blockquote {
  flex: 1;
  margin: 0;
}
.excerpt-grid blockquote p {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.3125rem;
  font-weight: 380;
  line-height: 1.42;
  font-variation-settings: "opsz" 28;
}
.excerpt-cite {
  margin-top: 1.25rem;
  font-size: var(--text-meta);
  line-height: 1.45;
}
.excerpt-cite cite {
  display: block;
  color: var(--ink);
  font-style: normal;
  font-weight: 700;
}
.excerpt-cite .role {
  display: block;
  color: var(--muted);
}
.excerpt-cite .link-arrow,
.excerpt-lead .link-arrow {
  margin-top: 0.25rem;
  font-size: var(--text-meta);
}
.excerpt-lead .excerpt-cite {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 2rem;
  margin-top: 1.5rem;
}

.letters {
  padding-block: var(--space-section-m) var(--space-section-l);
  border-top: 1px solid var(--line);
}
.letters-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 1rem 2rem;
  margin-bottom: 1.5rem;
}
.letters-head h2 {
  font-size: var(--step-3);
}
.letters-head p {
  max-width: 52ch;
  color: var(--text);
  font-size: var(--text-meta-lg);
}
.letters-tools {
  display: flex;
  gap: 0.5rem;
}
.letter-list {
  list-style: none;
  border-top: 1px solid var(--ink);
}
.letter {
  border-bottom: 1px solid var(--line);
  scroll-margin-top: calc(1rem - 24px);  /* net of html scroll-padding */
}
.letter summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.25rem 1.5rem;
  min-height: 44px;
  padding: 1.125rem 0;
  cursor: pointer;
  list-style: none;
}
.letter summary::-webkit-details-marker {
  display: none;
}
.letter-who {
  display: grid;
  grid-template-columns: minmax(0, 20rem) minmax(0, 1fr);
  align-items: baseline;
  gap: 0.125rem 1.5rem;
}
.letter-name {
  color: var(--ink);
  font-family: var(--font-serif);
  font-size: 1.1875rem;
  line-height: 1.35;
  font-variation-settings: "opsz" 20;
}
.letter-role {
  color: var(--text);
  font-size: var(--text-meta);
  line-height: 1.45;
}
.letter-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  color: var(--navy);
  font-size: var(--text-meta);
  font-weight: 600;
  white-space: nowrap;
}
.letter-toggle .icon {
  transition: transform var(--t) var(--ease);
}
.letter[open] .letter-toggle .icon {
  transform: rotate(180deg);
}
.letter-toggle .when-open,
.letter[open] .letter-toggle .when-closed {
  display: none;
}
.letter[open] .letter-toggle .when-open {
  display: inline;
}
.letter summary:hover .letter-name {
  color: var(--navy);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}
.letter summary:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 2px;
  border-radius: var(--r);
}
.letter blockquote {
  max-width: var(--measure);
  margin: 0 0 0 calc(20rem + 1.5rem);
  padding: 0.25rem 0 2.25rem;
}
.letter blockquote p {
  color: #2c3548;
  font-family: var(--font-serif);
  font-size: var(--text-prose);
  line-height: 1.68;
  font-variation-settings: "opsz" 16;
}
.letter blockquote p + p {
  margin-top: 1.125rem;
}

/* ==========================================================================
   7. Responsive
   ========================================================================== */
@media (max-width: 1079px) {
  .rec-main {
    grid-column: 1 / span 7;
  }
  .rec-aside {
    grid-column: 8 / span 5;
  }
  .sem-rows,
  .yr-head {
    --sem-cols: 9rem minmax(0, 1fr) minmax(0, 14rem) 6.5rem;
  }
  .sem-rows--compact {
    --sem-cols: 9rem minmax(0, 1fr);
  }
  .excerpt-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .letter-who {
    grid-template-columns: minmax(0, 1fr);
  }
  .letter blockquote {
    margin-left: 0;
  }
}
@media (max-width: 959px) {
  .inquire-copy,
  .inquire-card {
    grid-column: 1 / -1;
  }
  .inquire-card {
    margin-top: 2.5rem;
  }
  /* Our Seminars: one column, in reading order */
  .ov-what-copy,
  .ov-facts,
  .ov-recent-intro,
  .ov-rec,
  .ov-recent-all,
  .ov-recent-fig,
  .ov-where-copy,
  .ov-join-copy,
  .ov-join-quote {
    grid-column: 1 / -1;
    grid-row: auto;
  }
  .ov-recent-grid {
    grid-template-rows: none;
  }
  .ov-facts {
    max-width: 40rem;
    margin-top: 2.25rem;
  }
  .ov-rec {
    margin-top: 2rem;
  }
  .ov-recent-all {
    margin-top: 1.25rem;
  }
  .ov-recent-fig {
    max-width: 40rem;
    margin-top: 2rem;
  }
  .ov-venues-col {
    grid-column: 1 / -1;
    max-width: 40rem;
    margin-top: 2rem;
    padding-top: 0;
  }
  .ov-join-quote {
    max-width: 40rem;
    margin-top: 2.5rem;
  }
  /* The year: steps stack under the scale; each heading carries its own mark from the scale */
  .ov-steps {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 2rem;
  }
  .ov-step--choose,
  .ov-step--read,
  .ov-step--gather {
    grid-column: 1;
  }
  .ov-step h3 {
    position: relative;
    padding-left: 2rem;
  }
  .ov-step h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
  }
  .ov-step--choose h3::before {
    width: 2px;
    height: 1.25rem;
    background: var(--navy);
  }
  .ov-step--read h3::before {
    width: 1.25rem;
    height: 2px;
    background: var(--gold);
  }
  .ov-step--gather h3::before {
    width: 0.625rem;
    height: 1.25rem;
    background: var(--navy);
  }
  .rec-main,
  .rec-aside {
    grid-column: 1 / -1;
  }
  /* On one column the record (dates, place, leader) follows the photograph, before the
     prose; the invitation to join closes the record */
  .rec-main,
  .rec-aside {
    display: contents;
  }
  .rec-main > figure {
    grid-column: 1 / -1;
    order: 1;
  }
  .rec-aside > section:first-child {
    grid-column: 1 / -1;
    order: 2;
    margin-top: 2rem;
  }
  .rec-main > .rec-sec {
    grid-column: 1 / -1;
    order: 3;
  }
  .aside-join {
    grid-column: 1 / -1;
    order: 4;
    max-width: 560px;
    margin-top: var(--space-xl);
  }
  /* Three columns: place moves under the seminar, status stays right */
  .sem-rows,
  .yr-head {
    --sem-cols: 8.5rem minmax(0, 1fr) 6.5rem;
  }
  .sem-rows--compact {
    --sem-cols: 8.5rem minmax(0, 1fr);
  }
  .sem-row .c-place {
    grid-column: 2;
    grid-row: 2;
    margin-top: 0.125rem;
  }
  .sem-row .c-status {
    grid-column: 3;
    grid-row: 1;
  }
  .yr-head .col--place {
    display: none;
  }
}
@media (max-width: 767px) {
  .ov-facts > div {
    grid-template-columns: minmax(0, 1fr);
  }
  /* The record: the year heads its group, rows run full width, dates join the place line */
  .ov-rec-yr {
    grid-template-columns: minmax(0, 1fr);
  }
  .ov-rec-y {
    padding-top: 1rem;
    font-size: var(--step-1);
  }
  .ov-rec-a {
    grid-template-columns: minmax(0, 1fr);
    padding-block: 0.875rem 0.9375rem;
  }
  .ov-rec-yr .ov-rec-rows > .ov-rec-row:first-child .ov-rec-a {
    padding-top: 0.5rem;
  }
  .ov-rec-d {
    grid-column: 1;
    grid-row: auto;
    padding-top: 0;
    text-align: left;
    white-space: normal;
  }
  .rec-aside {
    grid-template-columns: minmax(0, 1fr);
  }
  .excerpt-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .letter summary {
    grid-template-columns: minmax(0, 1fr);
  }
  .letter-toggle {
    justify-self: start;
  }

  /* Rows become stacked "label value" lines: seminar first, then date, place, status */
  .sem-row,
  .sem-rows--compact .sem-row {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 0.125rem;
    padding-block: 0.875rem;
  }
  .sem-row .c-sem {
    order: -1;
    margin-bottom: 0.1875rem;
  }
  .sem-row .c-place,
  .sem-row .c-status {
    grid-column: 1;
    grid-row: auto;
    margin-top: 0;
  }
  .sem-row .k {
    display: inline-block;
    min-width: 3.75rem;
    margin-right: 0.5rem;
    color: var(--muted);
    font-family: var(--font-sans);
    font-size: var(--text-label);
    font-style: normal;
    font-weight: 600;
    letter-spacing: 0.02em;
  }
  .c-date,
  .c-place,
  .c-status {
    display: flex;
    align-items: baseline;
    font-size: var(--text-meta);
  }
  .c-date .v,
  .c-place .v {
    min-width: 0;
  }
  .pl-venue,
  .pl-sep,
  .pl-town {
    display: inline;
    color: inherit;
  }
  /* Completed is the norm: on a phone only a postponed status earns a line */
  .c-status.is-done {
    display: none;
  }
  .sem-title {
    font-size: 1.1875rem;
  }
  .yr-head .sem-cols {
    display: flex;
    justify-content: space-between;
  }
  .yr-head .col {
    display: none;
  }
  .arch-tools,
  .arch-field {
    width: 100%;
  }
  .arch-field select {
    width: 100%;
    min-width: 0;
  }
  /* Year chips scroll sideways, edge to edge */
  .yr-chips {
    margin-inline: calc(var(--gutter) * -1);
  }
  .yr-chips ul {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0.125rem var(--gutter) 0.5rem;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
  }
  .yr-chips li {
    flex: none;
  }
}
@media (max-width: 479px) {
  .inquire-card .btn-row .btn,
  .ov-join-copy .btn-row .btn {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .letter-toggle .icon,
  .sem-row,
  .yr-chips button {
    transition: none;
  }
}

/* ==========================================================================
   Archive pages and the year bar (seminars.js, "Filter and page" and "Pager")
   24 records to a page. The results line is the focus target after a page change
   and the scroll stop. On phones the year chips become a sticky bar under the
   header, the always-reachable way to jump to a year; the year heads stick under it.
   ========================================================================== */
.archive .results-count,
.archive .arch-tools {
  scroll-margin-top: calc(1rem - 24px);  /* net of html scroll-padding */
  border-radius: var(--r);
}
.archive .results-count:focus {
  outline: none;
}
.archive .results-count:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 4px;
}
.arch-pager {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink);
  font-variant-numeric: tabular-nums lining-nums;
}
.arch-pager[hidden] {
  display: none;
}
.arch-pager .pg-nums {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  margin-inline: auto;
  list-style: none;
}
.arch-pager .pg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.375rem;
  min-width: 44px;
  min-height: 44px;
  padding-inline: 0.625rem;
  border: 1px solid transparent;
  border-radius: var(--r);
  color: var(--navy);
  font-size: var(--text-meta-lg);
  font-weight: 600;
  text-decoration: none;
  transition: border-color var(--t) var(--ease), background-color var(--t) var(--ease);
}
.arch-pager a.pg:hover {
  border-color: var(--line-strong);
  background: var(--surface);
}
.arch-pager a.pg[aria-current="page"] {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}
.arch-pager .pg-step {
  padding-inline: 0.875rem;
  border-color: var(--line-strong);
}
.arch-pager .pg-prev {
  padding-left: 0.625rem;
}
.arch-pager .pg-next {
  padding-right: 0.625rem;
}
.arch-pager .pg-step[aria-disabled="true"] {
  border-color: var(--line);
  color: var(--muted);
}
.arch-pager .pg-of {
  display: none;
  margin-inline: auto;
  color: var(--text);
  font-size: var(--text-meta);
}
@media (max-width: 599px) {
  .arch-pager .pg-nums {
    display: none;
  }
  .arch-pager .pg-of {
    display: block;
  }
}
@media (max-width: 767px) {
  /* The year bar: sticky under the header, 56px tall, edge to edge */
  .yr-chips {
    position: sticky;
    top: var(--header-h);
    z-index: 4;
    margin-top: 1.25rem;
    background: #fff;
    box-shadow: inset 0 -1px 0 var(--line);
  }
  .yr-chips ul {
    padding-block: 0.375rem;
  }
  .yr-head {
    top: calc(var(--header-h) + 3.5rem);
    scroll-margin-top: calc(3.5rem - 24px);  /* net of html scroll-padding */
  }
  .arch-list {
    margin-top: 1.5rem;
  }
  .arch-pager {
    margin-top: 2rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  .arch-pager .pg {
    transition: none;
  }
}

/* ==========================================================================
   Warm palette (proposal). The chosen year keeps its navy fill and gains a 2px gold foot.
   ========================================================================== */
html[data-palette="warm"] .yr-chips button[aria-pressed="true"] {
  box-shadow: inset 0 -2px 0 var(--gold);
}
html[data-palette="warm"] .yr-chips button[aria-pressed="true"] .n {
  color: var(--gold-light);
}
