/* Sheet catalog and sheet pages (templates/site.html). Tokens, header, buttons and frames: landing.css. */
.crumbs { padding: 20px 0 0; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--muted); }
.intro { border-top: 0; padding: 32px 0 24px; display: grid; gap: 14px; justify-items: start; }
.intro h1 { font-size: 38px; }
.intro h1 em { font-style: italic; color: var(--red); }
.intro p { max-width: 60ch; margin: 0; }

.age-group { padding: 36px 0; }
.age-group .head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 16px; margin-bottom: 20px; }
.age-group .head a { color: var(--ink); font-weight: 700; }
.age-group > h2 { margin-bottom: 20px; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 16px; }
.card { display: grid; gap: 4px; align-content: start; color: var(--ink); text-decoration: none; }
.card .thumb { display: block; background: #fff; border: 2px solid var(--ink); padding: 6px; box-shadow: 6px 6px 0 var(--yellow);
  margin-bottom: 10px; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover .thumb { transform: translateY(-4px); box-shadow: 9px 9px 0 var(--yellow); }
.card:focus-visible { outline: 3px solid var(--red); outline-offset: 4px; }
.card .fmt { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.card b { font: 600 19px/1.25 var(--serif); }
.card .meta { font-size: 14px; color: var(--muted); }

.sheet-page { display: grid; gap: 32px; padding: 24px 0 48px; }
.sheet-page .frame { width: min(420px, 88%); justify-self: center; }
.sheet-page h1 { font-size: 40px; margin-bottom: 14px; }
.sheet-page h2 { font-size: 22px; margin: 24px 0 8px; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 12px; font-size: 14px; }
.chips a { color: var(--ink); }
.chips a:hover { color: var(--red); }
.task { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.get { margin-top: 28px; padding: 20px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--yellow);
  border-radius: 8px; display: grid; gap: 14px; justify-items: start; }
.get p { margin: 0; }
.get .also { font-size: 15px; color: var(--muted); }
.how { padding: 40px 0; }
.page-signup { padding: 48px 0; display: grid; gap: 14px; }
.page-signup h2 em { font-style: italic; color: var(--red); }
.page-signup p { margin: 0 0 8px; max-width: 60ch; }
.page-signup .signup-box { max-width: 720px; }
.get .form { padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: transparent; }
.steps-list { margin: 16px 0 0; padding-left: 22px; display: grid; gap: 10px; max-width: 70ch; }
.tip { max-width: 70ch; margin: 24px 0 0; padding: 14px 18px; background: #fff; border-radius: 8px; border: 1px solid var(--line); }
.faq-wrap { padding: 40px 0; }
.sheet-articles { padding: 40px 0; }
.sheet-articles ul { list-style: none; margin: 16px 0 0; padding: 0; max-width: 780px; }
.sheet-articles li { border-top: 1px solid var(--line); padding: 16px 0; display: grid; gap: 4px; }
.sheet-articles .cat { font: 700 12px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--red);
  text-decoration: none; justify-self: start; }
.sheet-articles .t { font: 600 21px/1.3 var(--serif); color: var(--ink); text-decoration: none; }
.sheet-articles .t:hover { color: var(--red); }
.sheet-articles .meta { font-size: 14px; color: var(--muted); }

@media (min-width: 860px) {
  .intro h1 { font-size: 52px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sheet-page { grid-template-columns: 440px 1fr; align-items: start; padding-top: 40px; }
  .sheet-page .frame { width: 100%; position: sticky; top: 90px; }
}

/* Catalog: numbers, filters with counts, results */
.stats { list-style: none; margin: 6px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.stats li { font-size: 15px; color: var(--muted); }
.stats b { font: 600 30px/1 var(--serif); color: var(--ink); margin-right: 2px; }
.catalog { padding: 8px 0 40px; }
.catalog[aria-busy] { opacity: .55; transition: opacity .15s; }
/* filter dropdowns (<details>): a list under the button on desktop, a bottom sheet on phones */
.dropbar { display: flex; flex-wrap: wrap; gap: 8px; }
.dd { position: relative; }
.dd summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: 15px; user-select: none; }
.dd summary::-webkit-details-marker { display: none; }
.dd summary::after { content: ""; width: 7px; height: 7px; border: solid var(--ink); border-width: 0 2px 2px 0; transform: translateY(-2px) rotate(45deg); }
.dd[open] summary::after { transform: translateY(1px) rotate(-135deg); }
.dd.chosen summary { background: var(--ink); color: #fff; border-color: var(--ink); }
.dd.chosen summary::after { border-color: #fff; }
.dd summary:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; }
.dd .menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 260px; max-height: min(60vh, 440px); overflow: auto;
  background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 32px rgb(31 36 51 / .14); padding: 6px; }
.dd .menu-title { display: none; }
.dd .menu a, .dd .menu > span { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 15px; }
.dd .menu a:hover { background: var(--bg); }
.dd .menu i { flex: none; width: 16px; height: 16px; border: 2px solid var(--line); border-radius: 50%; }
.dd .menu a.on i { border: 5px solid var(--red); }
.dd .menu span span, .dd .menu a span { margin-left: auto; font-size: 13px; color: var(--muted); }
.dd .menu .off { opacity: .4; }
.found .pill { display: inline-flex; gap: 6px; align-items: center; padding: 4px 10px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-size: 14px; color: var(--ink); text-decoration: none; }
.found .pill span { color: var(--muted); }
.found .pill:hover { border-color: var(--red); }
.found .reset { font-size: 14px; }
@media (max-width: 859px) {
  .dropbar { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-right: -16px; padding-right: 16px; }
  .dropbar::-webkit-scrollbar { display: none; }
  .dd { flex: none; }
  .dd[open] summary::before { content: ""; position: fixed; inset: 0; z-index: 19; background: rgb(31 36 51 / .35); cursor: default; }
  .dd .menu { position: fixed; top: auto; left: 0; right: 0; bottom: 0; max-height: 72vh; min-width: 0; border-radius: 16px 16px 0 0;
    padding: 10px 10px calc(14px + env(safe-area-inset-bottom)); }
  .dd .menu-title { display: block; margin: 4px 10px 6px; font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .dd .menu a, .dd .menu > span { padding: 13px 10px; font-size: 16px; }
}
.found { display: flex; flex-wrap: wrap; gap: 8px 10px; align-items: center; margin: 22px 0 18px; }
.found b { margin-right: 6px; }
.found b { font: 600 22px var(--serif); }
.found a { color: var(--ink); font-weight: 700; }
.catalog .cards + .cards { margin-top: 24px; }
.more-wrap { display: flex; justify-content: center; margin-top: 32px; }
.more[aria-busy] { opacity: .6; pointer-events: none; }
.collections { padding: 40px 0 56px; border-top: 1px solid var(--line); }
.collections .cols { display: grid; gap: 24px; margin-top: 16px; }
.collections h3 { font: 700 13px var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.collections ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.collections a { color: var(--ink); }
.collections span { font-size: 13px; color: var(--muted); }
@media (min-width: 860px) {
  .collections .cols { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 859px) { .stats b { font-size: 24px; } }

