@charset "UTF-8";

:root {
  color-scheme: light;
  --ink: #244536;
  --muted: #556759;
  --paper: #f8f6ef;
  --cream: #efecdf;
  --line: #d7dacc;
  --accent: #96522b;
  --gutter: clamp(14px, 3vw, 46px);
  color: var(--ink);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  font-synthesis: none;
  scroll-padding: 12px 0 var(--viewport-clearance, 12px);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; padding-bottom: var(--viewport-clearance, 0px); }
a { color: inherit; text-underline-offset: .22em; }
button, input, select { font: inherit; color: inherit; }
button, summary, select { cursor: pointer; }
:where(button, a, input, select, summary, [tabindex]):focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
h1, h2, p, figure { margin: 0; }
h1, .school-card h2, .product-details h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -.03em;
}
p { line-height: 1.5; }
img { display: block; width: 100%; height: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: fixed;
  inset: -100px auto auto 12px;
  z-index: 60;
  padding: 12px;
  background: var(--ink);
  color: white;
}
.skip-link:focus { top: 12px; }

.site-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: min(100%, 100rem);
  min-height: 56px;
  margin: auto;
  padding: 5px var(--gutter);
  border-bottom: 1px solid var(--line);
}
.wordmark {
  display: inline-block;
  font-size: .62rem;
  letter-spacing: .24em;
  line-height: 1.3;
  font-weight: 700;
  text-decoration: none;
}
.wordmark span { display: block; font-size: .91rem; letter-spacing: .15em; }
.header-link { display: grid; align-items: center; min-height: 44px; font-size: .82rem; }
.site-footer {
  display: grid;
  grid-template-columns: minmax(170px, 1fr) auto auto;
  align-items: start;
  gap: 20px 28px;
  padding: 24px var(--gutter);
  border-top: 1px solid var(--line);
  background: var(--cream);
  font-size: .83rem;
}
.site-footer p { margin-top: 8px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.site-footer nav a { display: inline-flex; align-items: center; min-height: 44px; }
.footer-note { grid-column: 1 / -1; color: var(--muted); }

.collection { max-width: 100rem; min-height: 70vh; margin: auto; padding: 14px var(--gutter) 32px; }
.collection-tools { display: grid; gap: 8px; margin-bottom: 16px; }
.collection-title, .collection-fields, .collection-caption {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.collection-title { justify-content: space-between; }
.collection-title h1 { font-size: clamp(1.85rem, 3.1vw, 2.7rem); line-height: 1.08; }
.pause-all {
  min-height: 44px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  font-size: .82rem;
}
.pause-all:hover, .pause-all[aria-pressed="true"] { background: var(--cream); }
.search-field, .jump-field { display: flex; align-items: center; border: 1px solid #9ca998; border-radius: 6px; background: white; }
.search-field { flex: 0 1 22rem; }
.search-field svg { fill: none; stroke: currentColor; stroke-width: 1.7; width: 18px; margin-left: 10px; flex-shrink: 0; }
.search-field input, .jump-field select {
  width: 100%;
  min-height: 44px;
  min-width: 0;
  border: 0;
  padding: 6px 9px;
  background: transparent;
  font-size: 1rem;
}
.jump-field { flex: 0 1 16rem; }
.jump-field select { width: 100%; padding-inline: 6px; }
.jump-field button {
  min-width: 44px;
  min-height: 44px;
  border: 0;
  border-left: 1px solid var(--line);
  background: transparent;
  font-size: .84rem;
}
.collection-caption { justify-content: space-between; color: var(--muted); font-size: .78rem; }
.collection-caption #school-count { font-weight: 700; }
.collection-price-note, .empty-state { margin-top: 16px; color: var(--muted); font-size: .83rem; }
.empty-state button { min-height: 44px; border: 0; color: var(--ink); background: transparent; text-decoration: underline; }

.school-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(12px, 1.6vw, 24px); }
@media (min-width: 681px) { .school-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 821px) { .school-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1151px) { .school-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1450px) { .school-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.school-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fffdf8;
}
.school-card h2 { font-size: clamp(1.16rem, 1.8vw, 1.62rem); line-height: 1.12; overflow-wrap: anywhere; }
.school-card h2 a { display: flex; align-items: center; min-height: max(44px, 2.65em); padding: 7px 12px; }
.school-card h2 a:not(:hover) { text-decoration-color: transparent; }
.card-summary { display: grid; align-content: start; gap: 6px; padding: 10px; }
.card-facts { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 3px 8px; }
.card-price { font-size: .92rem; font-weight: 700; }
.card-price small, .price small { font: .72rem Arial, Helvetica, sans-serif; color: var(--muted); }
.stock { color: var(--muted); font-size: .78rem; }
.card-actions { display: grid; grid-template-columns: 1fr auto; align-items: stretch; gap: 8px; }
.buy-button, .details-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-height: 44px;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: .84rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}
.buy-button { background: var(--ink); color: white; font-weight: 700; text-decoration: none; }
.buy-button:hover { background: #366249; }
.details-link { text-align: center; }
.text-link { display: inline-block; padding: 10px 0; font-size: .86rem; }
.video-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #172921;
  color: white;
}
.video-poster, .video-stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.video-poster { z-index: 1; pointer-events: none; }
.video-stage video { pointer-events: none; }
.video-stage[data-frame-ready] .video-poster { visibility: hidden; }
.video-checkout { position: absolute; z-index: 2; inset: 0; display: flex; align-items: flex-end; justify-content: flex-end; padding: 8px; text-decoration: none; }
.video-checkout:focus-visible { outline: 3px solid #fff; outline-offset: -5px; }
.shop-cue, .play-button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid #ffffff52;
  border-radius: 6px;
  background: #14281ff5;
  color: white;
  font-size: .78rem;
  font-weight: 700;
  line-height: 1.2;
  min-height: 44px;
}
.shop-cue { max-width: 54%; }
.video-checkout:hover .shop-cue, .play-button:hover { background: #315a47; }
.play-button { position: absolute; z-index: 3; left: 8px; bottom: 8px; }
.play-button:focus-visible { outline-color: white; }
.video-error {
  position: absolute;
  z-index: 3;
  inset: auto 8px 59px;
  margin: 0;
  padding: 8px 10px;
  border-radius: 6px;
  background: #14281ff5;
  color: white;
  font-size: .82rem;
  pointer-events: none;
}

.product-hero {
  display: grid;
  grid-template: "media heading" auto "media purchase" 1fr / minmax(0, 1.1fr) minmax(0, 1fr);
  align-items: start;
  column-gap: clamp(20px, 6vw, 80px);
  row-gap: 14px;
  max-width: 69rem;
  margin: 0 auto;
  padding: 22px var(--gutter) 24px;
}
.product-heading { grid-area: heading; min-width: 0; }
.product-heading h1 { font-size: clamp(2rem, 4.6vw, 3.8rem); line-height: 1.04; overflow-wrap: anywhere; }
.price { margin-top: 8px; font: clamp(1.27rem, 2.4vw, 1.75rem)/1.2 Georgia, serif; }
.product-media { grid-area: media; width: 100%; min-width: 0; }
.media-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--cream); }
.media-tabs button {
  min-height: 44px;
  padding: 5px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  font-size: .86rem;
  line-height: 1.25;
}
.media-tabs button[aria-selected="true"] { background: var(--ink); color: white; font-weight: 700; }
.media-tabs button[aria-selected="false"]:hover { background: #e1e6d9; }
.media-panel { margin-top: 8px; }
.product-media .video-stage { width: min(100%, 21rem, 43svh); margin: auto; border-radius: 8px; }
.media-note { margin-top: 8px; color: var(--muted); font-size: .79rem; }
.credits { color: var(--muted); font-size: .77rem; line-height: 1.5; }
.credits summary { width: fit-content; padding: 10px 0; }
.credits li { margin-bottom: 10px; overflow-wrap: anywhere; }
.credits ul { padding-left: 20px; }
.photo-gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.product-photo { position: relative; min-width: 0; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: white; }
.product-photo:first-child { grid-column: 1 / -1; }
.product-photo img { aspect-ratio: 1; object-fit: contain; max-height: 55svh; }
.product-photo figcaption, .photo-fallback { padding: 8px 10px; color: var(--muted); font-size: .78rem; }
.product-photo .photo-fallback { display: grid; place-items: center; min-height: 108px; }
.product-purchase { grid-area: purchase; min-width: 0; }
.retailer-title { font: 700 1rem/1.4 Arial, Helvetica, sans-serif; }
.dimensions, .checked, .seller-note, .returns-note, .legacy-checkout { margin: 5px 0; font-size: .83rem; color: var(--muted); }
.card-legacy-checkout { margin: 0; font-size: .78rem; }
.product-purchase .buy-button { display: flex; width: min(100%, 28rem); margin: 10px 0 8px; padding-inline: 14px; font-size: .93rem; }
.purchase-links { display: flex; flex-wrap: wrap; gap: 0 17px; font-size: .85rem; }
.purchase-links a { display: flex; align-items: center; min-height: 44px; }
.product-details { max-width: min(63rem, calc(100% - 2 * var(--gutter))); margin: auto; padding: 22px 0 30px; border-top: 1px solid var(--line); }
.product-details h2 { margin-bottom: 8px; font-size: clamp(1.5rem, 3vw, 2.2rem); }
.description { color: var(--ink); font-size: .91rem; white-space: pre-line; }
.mobile-buy { display: none; }

.cn-consent-banner {
  position: fixed;
  z-index: 40;
  left: max(10px, env(safe-area-inset-left));
  bottom: calc(var(--purchase-height, 0px) + 8px);
  width: min(35rem, calc(100% - 20px));
  max-height: max(6rem, calc(100dvh - var(--purchase-height, 0px) - 18px));
  overflow: auto;
  padding: 12px;
  background: var(--paper);
  color: var(--ink);
  border: 1px solid var(--muted);
  border-radius: 9px;
  box-shadow: 0 6px 32px #142f2626;
  font: .85rem/1.4 Arial, Helvetica, sans-serif;
}
.cn-consent-banner strong { font-size: 1rem; }
.cn-consent-banner p { margin: 4px 0 8px; }
.cn-consent-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.cn-consent-actions button, .cn-consent-dialog button, [data-campaign-preferences] > button {
  font: inherit;
  min-height: 44px;
  padding: 4px 9px;
  border: 1px solid var(--ink);
  background: white;
  color: var(--ink);
  border-radius: 6px;
  cursor: pointer;
}
.cn-consent-dialog {
  width: min(35rem, calc(100% - 24px));
  max-height: 88dvh;
  overflow: auto;
  border: 1px solid var(--muted);
  border-radius: 10px;
  padding: clamp(12px, 4vw, 24px);
  background: var(--paper);
  color: var(--ink);
  font-size: .94rem;
  line-height: 1.5;
}
.cn-consent-dialog::backdrop { background: #172a26aa; }
.cn-consent-dialog h2 { font: 1.75rem/1.1 Georgia, serif; }
.cn-consent-dialog label { display: flex; gap: 8px; margin: 14px 0; }
.cn-consent-dialog input { flex-shrink: 0; width: 20px; height: 20px; margin-top: 3px; }
.cn-consent-dialog .cn-consent-actions { margin-top: 12px; }

@media (max-width: 680px) {
  .collection { padding-top: 10px; }
  .collection-tools { gap: 6px; margin-bottom: 12px; }
  .collection-fields { flex-wrap: nowrap; gap: 6px; }
  .search-field, .jump-field { flex: 1 1 0; min-width: 0; }
  .collection-caption { gap: 2px 8px; }
  .school-grid { width: min(100%, max(16rem, 47svh), 26rem); margin-inline: auto; }
  .school-card h2 a { min-height: 44px; }
  .product-page { --purchase-height: calc(61px + env(safe-area-inset-bottom)); padding-bottom: var(--viewport-clearance, var(--purchase-height)); }
  .product-hero { grid-template: "heading" "media" "purchase" / minmax(0, 1fr); padding-top: 11px; row-gap: 8px; }
  .product-heading h1 { font-size: clamp(1.8rem, 8vw, 2.6rem); }
  .price { margin-top: 3px; }
  .product-media .video-stage { width: min(100%, 22rem, max(11rem, 39svh)); }
  .product-media, .product-heading, .product-purchase { width: min(100%, 32rem); margin-inline: auto; }
  .media-note { margin-top: 5px; }
  .mobile-buy {
    position: fixed;
    z-index: 35;
    inset: auto 0 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 8px max(var(--gutter), env(safe-area-inset-right)) calc(8px + env(safe-area-inset-bottom)) max(var(--gutter), env(safe-area-inset-left));
    border-top: 1px solid var(--line);
    background: var(--paper);
    box-shadow: 0 -2px 12px #24453614;
  }
  .mobile-buy > span { flex: 0 1 46%; font-size: .82rem; line-height: 1.2; overflow-wrap: anywhere; }
  .mobile-buy small { display: block; margin-top: 4px; color: var(--muted); }
  .mobile-buy .buy-button { justify-content: space-between; flex: 0 1 53%; }
  .site-footer { grid-template-columns: 1fr; gap: 10px; }
  .cn-consent-banner .cn-consent-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .cn-consent-banner button { padding-inline: 4px; font-size: .8rem; overflow-wrap: anywhere; }
  .cn-consent-dialog .cn-consent-actions button { flex: 1 1 auto; }
}
