/* BUILD 202 — Library kids' events: the pieces the BUILD 135 kit doesn't style.
   Part 1: directory-page rules copied unchanged from BUILD 139 drop-ins.css (kit-era rules), plus one functional rule: rows the page's
   ended-event script hides stay hidden even where a kit rule sets display (.nbf-times li is display:flex).
   Part 2: the new library pieces — CSS written by Gemini 3.8 Flash from the design brief (gemini/design/), applied verbatim. */
.nbf-library [hidden]{ display:none !important; }
.nbf-ages{ color:var(--muted, #5b6072); font-size:.86em; white-space:nowrap; }
.nbf-library > .hub-bc{ padding-top:1.1rem; }
.fam-dir{ max-width:var(--maxw, 1200px); margin:0 auto; padding:2.5rem var(--gut, 24px) 1rem; }
.hub-list .fam-dir{ padding-left:0; padding-right:0; }
.fam-dir h3{ font-family:Inter, system-ui, sans-serif; font-size:12px; letter-spacing:.12em; text-transform:uppercase; color:var(--muted, #5b6072); margin:1.2rem 0 .6rem; font-weight:600; }
.fam-dir-cols{ display:grid; grid-template-columns:1fr 1fr; gap:0 2.5rem; }
.fam-links{ list-style:none; margin:0; padding:0; display:flex; flex-wrap:wrap; gap:.5rem; }
.fam-links a{ display:inline-block; padding:.45rem .8rem; border:1px solid rgba(15, 26, 61, .22); color:var(--ink, #0F1A3D); text-decoration:none; font-size:14px; line-height:1.3; }
.fam-links a:hover, .fam-links a:focus-visible{ border-color:#A8482A; color:#A8482A; }
.fam-dirpage .hub-park .nbf-week{ margin:.7rem 0 .2rem; }
.fam-dirpage .hub-park .hp-actions{ display:flex; flex-wrap:wrap; gap:.5rem; }
@media (max-width:700px){
  .fam-dir-cols{ grid-template-columns:1fr; }
  .fam-dir{ padding-top:1.8rem; }
}

/* ---- Gemini design round 1 (gemini/design/design-r1.json, verbatim) ---- */
.nbf-library .lib-note { margin: .9rem 0 0; max-width: 62ch; font-size: 14.5px; line-height: 1.5; color: var(--muted, #5b6072); border-left: 2px solid var(--rule-strong, rgba(15, 26, 61, .22)); padding: .15rem 0 .15rem .85rem; }
.nbf-library .lib-note.is-stale { border-left-color: var(--brass, #A8482A); color: var(--ink, #0F1A3D); font-weight: 500; }
.nbf-library .lib-tags { font-size: 12px; line-height: 1.4; color: var(--muted, #5b6072); letter-spacing: .02em; margin: 0 0 .75rem; }
.nbf-library .hp-hook.lib-tags { font-size: 12.5px; margin: 0 0 .75rem; }
.nbf-library .d-cross + .lib-tags { margin-top: -.6rem; margin-bottom: 1.1rem; }
.nbf-library a.lib-ev { color: var(--ink, #0F1A3D); text-decoration: none; }
.nbf-library a.lib-ev:hover, .nbf-library a.lib-ev:focus-visible { color: var(--brass, #A8482A); text-decoration: underline; text-underline-offset: 2px; }
.nbf-library .lib-flag { display: inline-block; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; padding: .15rem .45rem; border: 1px solid var(--brass, #A8482A); color: var(--brass, #A8482A); background: transparent; vertical-align: baseline; line-height: 1.2; margin-left: .35rem; }
.nbf-library .lib-online { max-width: var(--maxw, 1280px); margin: 0 auto; padding: 2.5rem var(--gut, 24px) 1.5rem; }
.nbf-library .lib-online h2 { font-family: var(--display, "Cormorant Garamond", Georgia, serif); font-size: clamp(2rem, 3.5vw, 2.6rem); font-weight: 500; line-height: 1.15; color: var(--ink, #0F1A3D); margin: 0 0 .5rem; }
.nbf-library .lib-online-note { font-size: 14.5px; line-height: 1.5; color: var(--muted, #5b6072); margin: 0 0 1.2rem; max-width: 62ch; }
.nbf-library .lib-online .nbf-times { margin: 0; max-width: 760px; }
.nbf-library .lib-hours { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .4rem; font-size: 13.5px; line-height: 1.45; }
.nbf-library .lib-hours li { display: flex; align-items: baseline; gap: .75rem; }
.nbf-library .lib-day { min-width: 6.8rem; flex-shrink: 0; color: var(--muted, #5b6072); }
.nbf-library .lib-times { flex: 1 1 auto; color: var(--ink, #0F1A3D); font-variant-numeric: tabular-nums; }
.nbf-library .lib-hours li.is-today .lib-day { color: var(--brass, #A8482A); font-weight: 600; }
.nbf-library .lib-hours li.is-today .lib-times { font-weight: 600; color: var(--ink, #0F1A3D); }
.nbf-library .lib-range { white-space: nowrap; display: inline-block; }
.nbf-library .lib-hours-note { margin: .85rem 0 0; font-size: 12.5px; line-height: 1.45; color: var(--muted, #5b6072); }
.nbf-library .lib-more { font-size: 12px; color: var(--muted, #5b6072); margin: .35rem 0 .75rem; }
.nbf-library .lib-none { font-size: 13px; line-height: 1.45; color: var(--muted, #5b6072); margin: .5rem 0 .75rem; }
.nbf-library .lib-next { font-size: 12px; color: var(--muted, #5b6072); font-variant-numeric: tabular-nums; font-weight: 500; }
.nbf-library .d-directions.d-phone, .nbf-library .d-directions.d-web { background: transparent; color: var(--ink, #0F1A3D); border: 1px solid var(--ink, #0F1A3D); text-decoration: none; font-variant-numeric: tabular-nums; letter-spacing: 1px; padding: 0 14px; text-align: center; }
.nbf-library .d-directions.d-phone:hover, .nbf-library .d-directions.d-web:hover { background: transparent; color: var(--brass, #A8482A); border-color: var(--brass, #A8482A); }
@media (max-width: 700px) {
  .nbf-library .lib-online { padding: 2rem var(--gut, 20px) 1rem; }
  .nbf-library .lib-day { min-width: 5.8rem; }
  .nbf-library .lib-hours li { gap: .5rem; }
  .nbf-library .d-directions.d-phone { letter-spacing: .5px; padding: 0 10px; font-size: 11px; }
  .nbf-library .d-directions.d-web { flex: 1 1 100%; letter-spacing: .8px; padding: 0 12px; font-size: 11px; }
}
