.resource-center {
  --resource-ivory: #faf7f0;
  --resource-stone: #e9e0d3;
  --resource-ink: #242522;
  --resource-wine: #783d43;
  --resource-line: #d5c9ba;
  background: var(--resource-ivory);
  color: var(--resource-ink);
  font-family: "Instrument Sans", system-ui, sans-serif;
}
.resource-center a { color: var(--resource-wine); text-underline-offset: .2em; }
.resource-shell { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.resource-intro { padding: clamp(2rem, 6vw, 5rem) 0; background: var(--resource-stone); }
.resource-kicker { margin: 0 0 .5rem; color: var(--resource-wine); font-size: .8rem; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; }
.resource-center h1, .resource-center h2, .resource-center h3 { color: inherit; font-family: inherit; }
.resource-center h1 { max-width: 17ch; margin: 0; font-size: clamp(2.6rem, 6vw, 5rem); line-height: 1; letter-spacing: -.045em; }
.resource-intro p:last-child { max-width: 56ch; margin-bottom: 0; }
.resource-feature, .resource-catalog { padding-block: clamp(2rem, 5vw, 4rem); }
.resource-center h2 { margin: 0 0 1rem; font-size: clamp(1.7rem, 4vw, 2.5rem); letter-spacing: -.03em; }
.feature-lessons { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.feature-lesson { overflow: hidden; background: white; border: 1px solid var(--resource-line); border-radius: .65rem; }
.feature-lesson img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--resource-stone); }
.feature-lesson-copy { padding: 1rem; }
.feature-lesson h3 { margin: 0 0 .6rem; font-size: 1.35rem; }
.resource-actions { display: flex; flex-wrap: wrap; gap: .45rem .85rem; }
.resource-catalog { border-top: 1px solid var(--resource-line); }
.resource-search { margin-bottom: 1rem; }
.resource-search label { display: block; font-weight: 700; margin-bottom: .35rem; }
.resource-search input { box-sizing: border-box; width: min(100%, 28rem); padding: .7rem .85rem; background: white; border: 1px solid var(--resource-wine); border-radius: .35rem; font: inherit; }
.resource-search p { margin: .4rem 0 0; min-height: 1.5em; }
.resource-center .teacher-library { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); gap: .75rem; max-width: none; padding: 0; margin: 0; }
.resource-center .teacher-library details { margin: 0; background: white; border: 1px solid var(--resource-line); border-radius: .45rem; }
.resource-center .teacher-library details[open] { grid-column: 1 / -1; }
.resource-center .teacher-library summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 1rem; font-size: 1.05rem; line-height: 1.3; }
.resource-center summary::-webkit-details-marker { display: none; }
.resource-center summary::after { content: "+"; color: var(--resource-wine); font-size: 1.35rem; }
.resource-center details[open] summary::after { content: "−"; }
.resource-center summary:hover, .resource-center details[open] summary { background: var(--resource-stone); }
.resource-center .topic-content { padding: .25rem 1rem .85rem; }
.resource-center :focus-visible { outline: 2px solid var(--resource-wine); outline-offset: 3px; }
.resource-center [hidden] { display: none !important; }

.resource-center {
  --resource-ivory: #fdfbf5;
  --resource-stone: #f3eadb;
  --resource-ink: #20284c;
  --resource-wine: #155a68;
}
.resource-center :is(h1, h2, h3) { font-family: Georgia, serif; }
.resource-center h1 { max-width: none; font-size: clamp(2.3rem, 5vw, 4.25rem); }
.resource-intro { padding-block: clamp(1.75rem, 4vw, 3rem); }
.resource-intro .resource-search { margin: 1.35rem 0 0; }
.resource-filters { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .75rem; }
.resource-filters button { cursor: pointer; border: 1px solid var(--resource-wine); border-radius: 999px; padding: .4rem .85rem; color: var(--resource-wine); background: white; font: inherit; font-weight: 600; }
.resource-filters button[aria-pressed="true"], .resource-filters button:hover { background: var(--resource-wine); color: white; }
.resource-search p:empty { display: none; }
.feature-lesson-copy { display: grid; gap: .6rem; }
.feature-lesson-copy :is(h3, p) { margin: 0; }
.resource-actions a { border: 1px solid var(--resource-wine); padding: .35rem .65rem; border-radius: .35rem; text-decoration: none; }
.resource-actions a[data-format="video"] { background: var(--resource-wine); color: white; }
.resource-actions a:hover { text-decoration: underline; }
.resource-center .teacher-library details { --topic-accent: #287987; border-top: .3rem solid var(--topic-accent); box-shadow: 0 .25rem .7rem #29251412; transition: translate .18s ease, box-shadow .18s ease; }
.resource-center .teacher-library details:nth-child(3n+2) { --topic-accent: #b67132; }
.resource-center .teacher-library details:nth-child(3n) { --topic-accent: #885072; }
.resource-center .teacher-library details:not([open]):hover { translate: 0 -.16rem; box-shadow: 0 .5rem 1rem #29251420; }
.resource-center .teacher-library summary { height: 100%; box-sizing: border-box; align-items: start; cursor: pointer; }
.resource-center .teacher-library details[open] summary { height: auto; }
.topic-card-copy { display: grid; align-content: start; gap: .55rem; }
.topic-card-copy strong { font: bold 1.25rem/1.2 Georgia, serif; }
.topic-description { font-size: .95rem; font-weight: 400; }
.topic-formats { display: flex; flex-wrap: wrap; gap: .35rem; }
.topic-formats > span { padding: .2rem .45rem; border-radius: 999px; background: #ebf3f3; color: #155a68; font-size: .75rem; }
.resource-icon { display: inline-block; min-width: 1em; font-size: .9em; }
@media (prefers-reduced-motion: reduce) {
  .resource-center .teacher-library details { transition: none; }
}
