/* Shared editorial collection layout. The existing site shell supplies the font and navigation. */
body[data-page="collection"] {
  --collection-ink: #0b1c30;
  --collection-muted: #46534f;
  --collection-green: #0d5c3a;
  --collection-wash: #eff4ff;
  --collection-mint: #e8f8f0;
  --collection-line: #e2e8f0;
  --collection-shadow: 0 2px 8px rgb(11 28 48 / 4%);
  background: #f8f9ff;
  color: var(--collection-ink);
}
body[data-page="collection"] .about-header { background: #f8f9ff; }
body[data-page="collection"] .about-footer { background: var(--collection-wash); }
body[data-page="collection"] .about-header .header-cta { background: var(--collection-green); }

.collection-main {
  width: min(100%, 1184px);
  margin-inline: auto;
  padding: 40px 32px 64px;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}
.collection-main * { min-width: 0; }
.collection-main :is(h1, h2, h3, p, dl, dd) { margin: 0; }
.collection-main :is(h1, h2, h3) {
  color: var(--collection-ink);
  letter-spacing: -.025em;
  text-wrap: pretty;
}
.collection-main h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; font-weight: 700; }
.collection-main h2 { font-size: 2rem; line-height: 1.2; font-weight: 650; }
.collection-main h3, .collection-feature h2 { font-size: 1.45rem; line-height: 1.3; font-weight: 650; }
.collection-main p { color: var(--collection-muted); }
.collection-main a { color: var(--collection-green); text-underline-offset: .2em; }
.collection-main a:hover { text-decoration: underline; }
.collection-main a:focus-visible { outline: 3px solid var(--collection-green); outline-offset: 3px; }
.collection-breadcrumb { margin-bottom: 36px; font-size: .875rem; }
.collection-breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; padding: 0; margin: 0; list-style: none; }
.collection-breadcrumb li + li::before { content: '/'; color: #67736f; margin-right: 8px; }
.collection-breadcrumb a { color: var(--collection-muted); }
.collection-breadcrumb [aria-current] { font-weight: 600; }

.collection-hero { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 24px; }
.collection-hero h1 { margin-block: 12px 16px; }
.collection-lead { max-width: 58ch; font-size: 1.125rem; }
.collection-label, .collection-feature .collection-eyebrow {
  display: inline-block;
  font-size: .75rem;
  line-height: 1.4;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .055em;
  color: var(--collection-green);
}
.collection-hero .collection-label { padding: 4px 12px; border-radius: 2em; background: var(--collection-mint); }
.collection-hero .collection-label::before {
  content: '';
  display: inline-block;
  width: .5em;
  height: .5em;
  margin-right: .55em;
  border-radius: 50%;
  vertical-align: .12em;
  background: currentColor;
}
.collection-feature, .collection-choice, .collection-guidance, .collection-excerpt li {
  background-color: #fff;
  border: 1px solid var(--collection-line);
  border-radius: 16px;
  padding: 24px;
  box-shadow: var(--collection-shadow);
}
.collection-feature {
  display: grid;
  gap: 14px;
  align-content: start;
  background-image: radial-gradient(circle at 100% 0, #eff8f3 0 24%, transparent 24.4%);
}
.collection-feature .collection-eyebrow { color: var(--collection-muted); }
.collection-meta { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.collection-meta span {
  max-width: 100%;
  padding: 3px 9px;
  border-radius: 1em;
  background: var(--collection-wash);
  color: var(--collection-ink);
  font-size: .8125rem;
  line-height: 1.45;
}
.collection-meta .collection-duration { background: var(--collection-mint); color: var(--collection-green); font-weight: 650; }
.collection-main .collection-button, .collection-home-link a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--collection-green);
  color: #fff;
  text-decoration: none;
  font-weight: 650;
  text-align: center;
  line-height: 1.4;
}
.collection-main .collection-button:hover, .collection-home-link a:hover { background: #08492d; }
.collection-feature .collection-button { margin-top: 6px; }

.collection-section { margin-top: 60px; scroll-margin-top: 112px; }
.collection-section > h2 + p { max-width: 82ch; margin-top: 8px; }
.collection-choices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 24px 0 56px; }
.collection-choice { display: flex; flex-direction: column; gap: 12px; }
.collection-choice h3 a, .collection-table tbody th > a:first-child { color: var(--collection-ink); text-decoration: none; }
.collection-choice h3 a:hover, .collection-table tbody th > a:first-child:hover { text-decoration: underline; }
.collection-choice .collection-open { align-self: flex-start; margin-top: auto; }
.collection-open, .collection-row-link, .collection-guidance a, .collection-excerpt a, .collection-editorial-links a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding-block: 5px;
  font-weight: 600;
  text-decoration: none;
}

.collection-table {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--collection-line);
  border-radius: 14px;
  background: #fff;
  font-size: .9375rem;
}
.collection-table caption { padding-bottom: 16px; text-align: left; }
.collection-table :is(th, td) { padding: 14px 16px; text-align: left; vertical-align: top; }
.collection-table thead th { background: var(--collection-wash); font-size: .75rem; text-transform: uppercase; letter-spacing: .045em; }
.collection-table thead th:first-child { width: 43%; border-top-left-radius: 13px; }
.collection-table thead th:nth-child(2) { width: 19%; }
.collection-table thead th:last-child { width: 13%; border-top-right-radius: 13px; }
.collection-table tr > :last-child { text-align: right; }
.collection-table tbody tr:nth-child(even) { background: #f9fbfd; }
.collection-table tbody tr:last-child > :first-child { border-bottom-left-radius: 13px; }
.collection-table tbody tr:last-child > :last-child { border-bottom-right-radius: 13px; }
.collection-table tbody th { font-weight: 650; }
.collection-table tbody th p { font-size: .875rem; font-weight: 400; margin-top: 5px; }
.collection-table .collection-row-link { font-size: .875rem; }
.collection-cell-label { display: none; }

.collection-session > .collection-label { margin-bottom: 6px; }
.collection-excerpt { list-style: none; padding: 0; display: grid; gap: 16px; margin: 22px 0 16px; }
.collection-excerpt li {
  display: grid;
  grid-template-columns: 144px minmax(0, 1fr);
  grid-template-areas: 'image heading' 'image details';
  align-content: center;
  gap: 6px 24px;
}
.collection-excerpt img {
  grid-area: image;
  align-self: center;
  width: 100%;
  height: 144px;
  padding: 6px;
  object-fit: contain;
  border: 1px solid #dce6f4;
  border-radius: 10px;
  background: #fff;
}
.collection-excerpt h3 { grid-area: heading; }
.collection-exercise-body { grid-area: details; }
.collection-excerpt .collection-dose { white-space: pre-line; font-weight: 600; color: var(--collection-ink); }
.collection-rest { display: grid; grid-template-columns: fit-content(75%) minmax(0, 1fr); gap: 4px 12px; font-size: .9375rem; }
.collection-rest dt { color: var(--collection-muted); }
.collection-rest dd { font-weight: 600; }
.collection-session > .collection-button { padding-inline: 24px; }
.collection-guidance-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 24px; margin-top: 24px; }
.collection-guidance p { margin-top: 14px; }
.collection-guidance a { margin-top: 6px; }
.collection-home-link, .collection-provenance { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; }
.collection-home-link { padding: 32px; margin-top: 44px; background: var(--collection-mint); border-radius: 16px; }
.collection-home-link p { margin-top: 6px; }
.collection-home-link a { max-width: 26ch; }
.collection-provenance { border-top: 1px solid var(--collection-line); margin-top: 40px; padding-top: 24px; font-size: .875rem; }
.collection-provenance h3 { font-size: 1rem; margin-bottom: 6px; }
.collection-editorial-links { display: flex; flex-wrap: wrap; gap: 0 16px; }
.collection-editorial-links a { font-size: .8125rem; }

@media (min-width: 720px) {
  body[data-page="collection"] #home-primary-navigation ul { flex-wrap: wrap; }
}
@media (max-width: 1023px) {
  .collection-hero { grid-template-columns: 1fr; }
  .collection-home-link, .collection-provenance { grid-template-columns: 1fr; gap: 12px; }
  .collection-home-link a { justify-self: start; max-width: 100%; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .collection-choices, .collection-guidance-grid { gap: 16px; }
  .collection-choice, .collection-guidance { padding: 18px; }
  .collection-choice h3 { font-size: 1.25rem; }
}
@media (max-width: 767px) {
  .collection-main { padding: 22px max(16px, env(safe-area-inset-right)) 40px max(16px, env(safe-area-inset-left)); }
  .collection-main h1 { font-size: 2rem; }
  .collection-main h2 { font-size: 1.5rem; }
  .collection-main h3, .collection-feature h2 { font-size: 1.125rem; }
  .collection-breadcrumb { margin-bottom: 22px; font-size: .8125rem; }
  .collection-hero { gap: 18px; }
  .collection-lead { font-size: 1rem; }
  .collection-feature, .collection-choice, .collection-guidance, .collection-excerpt li { padding: 16px; border-radius: 12px; }
  .collection-section { margin-top: 36px; scroll-margin-top: calc(84px + env(safe-area-inset-top)); }
  .collection-choices, .collection-guidance-grid { grid-template-columns: 1fr; gap: 12px; }
  .collection-choices { margin: 16px 0 32px; }
  .collection-choice { gap: 8px; }
  .collection-choice .collection-label { align-self: flex-start; padding: 3px 8px; border-radius: 6px; background: var(--collection-wash); }
  .collection-table, .collection-table caption, .collection-table tbody { display: block; }
  .collection-table { background: transparent; border: 0; }
  .collection-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .collection-table tbody { display: grid; gap: 10px; }
  .collection-table tbody tr, .collection-table tbody tr:nth-child(even) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 12px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid var(--collection-line);
    background: #fff;
    box-shadow: var(--collection-shadow);
  }
  .collection-table tbody th { grid-column: 1 / -1; padding: 0; font-size: 1rem; }
  .collection-table tbody td { display: block; padding: 0; text-align: left; font-size: .875rem; }
  .collection-cell-label { display: block; font-size: .8125rem; font-weight: 650; color: var(--collection-muted); }
  .collection-excerpt li { grid-template-columns: 1fr; grid-template-areas: 'heading' 'image' 'details'; gap: 12px; }
  .collection-excerpt img { height: 144px; background: var(--collection-wash); }
  .collection-session > .collection-button, .collection-home-link a { width: 100%; }
  .collection-guidance-grid { margin-top: 16px; }
  .collection-home-link { padding: 20px; margin-top: 28px; }
  .collection-provenance { margin-top: 28px; }
}
@media (prefers-reduced-motion: no-preference) {
  html:has(.collection-main) { scroll-behavior: smooth; }
}

/* Contextual reading is part of the topic, before the site footer. */
.editorial-related { margin-top: 40px; padding: 24px; background: var(--collection-mint); border-radius: 16px; }
.editorial-related h2 { font-size: 1.5rem; margin-bottom: 18px; }
.editorial-related ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; list-style: none; padding: 0; margin: 0; }
.editorial-related li p { margin-bottom: 8px; }
.editorial-related a { font-weight: 600; }
@media (max-width: 600px) { .editorial-related ul { grid-template-columns: 1fr; } }
