/* Scholars Paradise Pre School: library card catalogue.
   Bootstrap 5.3.3 grid supplies container/row/col only; everything else is here. */
:root {
  --ground: #F8F3E8;
  --ground-2: #F0E7D3;
  --paper: #FFFCF4;
  --ink: #232019;
  --ink-soft: #4B463B;
  --green: #2F5D4E;
  --green-deep: #24473C;
  --green-dark: #1C382F;
  --manila: #E9D7A8;
  --manila-lite: #F5EACB;
  --manila-line: #CDB57A;
  --maroon: #8E2C3A;
  --brass: #B88A2E;
  --rule: #8C836C;
  --head-h: 84px;
  --display: "Libre Caslon Display", "Libre Caslon Text", Georgia, serif;
  --body: "Work Sans", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--head-h) + 16px); }
body {
  margin: 0; background: var(--ground); color: var(--ink);
  font: 400 1.0625rem/1.65 var(--body); font-variant-numeric: lining-nums;
  caret-color: var(--green); overflow-x: clip;
  scrollbar-color: var(--green) var(--ground-2);
}
::selection { background: var(--manila); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-underline-offset: .2em; text-decoration-thickness: 1px; }
a:hover { color: var(--maroon); }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.12; letter-spacing: -.01em; margin: 0 0 .5em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.4rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.6rem); }
h3 { font-size: 1.45rem; }
p { margin: 0 0 1em; }
.small { font-size: .9rem; }
.muted { color: var(--ink-soft); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
.mt-h { margin-top: 2.2rem; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--manila); color: var(--ink); padding: .7rem 1rem; font-weight: 600; border-radius: 4px; }
.skip:focus { top: 1rem; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .75rem 1.25rem; border-radius: 4px; border: 2px solid transparent;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  transition: background-color .2s var(--ease), color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.btn-green { background: var(--green); color: #fff; box-shadow: 0 2px 6px rgba(28, 56, 47, .25); }
.btn-green:hover { background: var(--green-deep); color: #fff; box-shadow: 0 4px 12px rgba(28, 56, 47, .3); }
.btn-line { background: transparent; color: var(--green); border-color: var(--green); }
.btn-line:hover { background: var(--manila-lite); color: var(--green-deep); }
.btn:disabled { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.5rem; }
.btn-col { display: grid; gap: .6rem; margin-top: 1.2rem; }

/* ---------- header: the cabinet ---------- */
.site-head {
  position: sticky; top: 0; z-index: 50; background: var(--green);
  border-bottom: 3px solid var(--brass);
  box-shadow: 0 6px 18px rgba(28, 56, 47, .18);
}
.head-row { display: flex; align-items: center; gap: 1rem; min-height: var(--head-h); }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; color: #fff; margin-right: auto; min-height: 48px; }
.brand img { width: 48px; height: 48px; }
.brand-txt { display: grid; line-height: 1.1; }
.brand-name { font-family: var(--display); font-size: 1.4rem; color: #fff; }
.brand-sub { font-size: .8rem; color: var(--manila); letter-spacing: .01em; }
.brand:hover .brand-name { color: var(--manila); }

.main-nav ul { list-style: none; display: flex; gap: .55rem; margin: 0; padding: 0; }
.dl { display: grid; justify-items: center; text-decoration: none; color: var(--ink); padding-top: 4px; transition: transform .25s var(--ease); }
.dl-frame {
  display: flex; align-items: baseline; gap: .4rem; min-height: 40px; padding: .45rem .7rem .4rem;
  background: var(--manila-lite); border: 2px solid var(--brass); border-radius: 3px;
  box-shadow: inset 0 0 0 2px var(--manila), 0 1px 0 rgba(0, 0, 0, .25);
}
.dl-no { font: 600 .75rem/1 var(--body); color: var(--maroon); font-variant-numeric: tabular-nums; }
.dl-name { font: 500 .95rem/1.2 var(--body); white-space: nowrap; }
.dl-pull { width: 18px; height: 7px; margin-top: 3px; border: 2px solid var(--brass); border-top: 0; border-radius: 0 0 10px 10px; }
.dl:hover { color: var(--ink); transform: translateY(2px); }
.dl[aria-current="page"] { transform: translateY(6px); }
.dl[aria-current="page"] .dl-frame { background: #fff; box-shadow: inset 0 0 0 2px var(--manila), 0 6px 10px rgba(0, 0, 0, .3); }
.site-head :focus-visible, .site-foot :focus-visible, .act-bar :focus-visible { outline-color: var(--manila); }
.head-call { display: inline-flex; align-items: center; gap: .45rem; min-height: 48px; padding: 0 .3rem; color: #fff; font-weight: 600; text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; }
.head-call:hover { color: var(--manila); }
.menu-btn {
  display: none; align-items: center; gap: .45rem; min-height: 48px; padding: .5rem .9rem;
  background: var(--manila-lite); color: var(--ink); border: 2px solid var(--brass); border-radius: 3px;
  font: 600 1rem/1 var(--body); cursor: pointer;
}

/* phone drawer */
.drawer-scrim { position: fixed; inset: 0; top: var(--head-h); background: rgba(28, 32, 25, .45); opacity: 0; transition: opacity .3s var(--ease); z-index: -1; }
.drawer-scrim.open { opacity: 1; }
.drawer {
  position: absolute; left: 0; right: 0; top: 100%; z-index: -1;
  max-height: calc(100dvh - var(--head-h) - 8px); overflow: auto;
  background: var(--green-dark); border-bottom: 3px solid var(--brass);
  transform: translateY(-104%); transition: transform .38s var(--ease);
  box-shadow: 0 18px 30px rgba(0, 0, 0, .3);
}
.drawer.open { transform: translateY(0); }
.drawer-box { padding: 1.2rem 1rem .5rem; max-width: 640px; margin: 0 auto; }
.dcards { list-style: none; margin: 0; padding: 0; display: grid; gap: .5rem; }
.dcard {
  position: relative; display: flex; align-items: center; gap: .9rem; min-height: 56px; padding: .6rem 1rem;
  background: var(--manila-lite) linear-gradient(transparent calc(100% - 9px), rgba(205, 181, 122, .7) calc(100% - 9px) calc(100% - 8px), transparent calc(100% - 8px));
  border-radius: 4px; text-decoration: none; color: var(--ink);
  box-shadow: 0 2px 4px rgba(0, 0, 0, .25);
}
.dcard-tab { display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 3px 3px 0 0; background: var(--manila); color: var(--maroon); font-weight: 600; font-variant-numeric: tabular-nums; }
.dcard-name { font: 400 1.55rem/1.1 var(--display); }
.dcard[aria-current="page"] { background-color: #fff; box-shadow: inset 4px 0 0 var(--maroon), 0 2px 4px rgba(0, 0, 0, .25); }
.drawer-acts { display: grid; gap: .6rem; margin: 1rem 0 .4rem; }
.drawer-acts .btn-line { color: var(--manila); border-color: var(--manila); }
.drawer-acts .btn-line:hover { background: var(--green); color: #fff; }
.drawer-front {
  display: grid; justify-items: center; width: 100%; padding: .8rem 1rem 1rem; border: 0; cursor: pointer;
  background: var(--green); border-top: 2px solid rgba(184, 138, 46, .6); color: var(--ink);
}
.drawer-front { color: var(--manila-lite); }
.drawer-front .dl-frame { color: var(--ink); }
.drawer-front .dl-name { font-size: .95rem; }
body.drawer-open { overflow: hidden; }

/* ---------- hero: the shelf ---------- */
.hero { padding: clamp(2.2rem, 5vw, 4rem) 0 clamp(2.5rem, 4vw, 3rem); }
.hero h1 { max-width: 13ch; margin-bottom: .35em; }
.lead { font-size: 1.15rem; max-width: 34em; color: var(--ink); }
.hero-hi { font-size: 1.1rem; color: var(--green); margin-bottom: 1.2rem; }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.facts p, .rating { display: flex; align-items: flex-start; gap: .5rem; margin: 0; }
.rating .star { color: var(--brass); fill: var(--brass); margin-top: .15em; }
[data-hours] .ic { margin-top: .15em; color: var(--green); }
[data-hours].is-open .open-txt { color: var(--green); font-weight: 600; }

.shelf { color: #fff; position: relative; padding: 1.4rem 1.1rem 0; background: var(--green-deep); border-radius: 6px 6px 0 0; box-shadow: inset 0 10px 24px rgba(0, 0, 0, .35); }
.shelf-row { display: flex; align-items: flex-end; gap: 5px; }
.spine {
  position: relative; flex: none; width: 50px; display: flex; align-items: center; justify-content: center;
  border-radius: 3px 3px 1px 1px; text-decoration: none; writing-mode: vertical-rl; transform-origin: bottom;
  font: 400 1.05rem/1 var(--display); padding: 1.1rem 0; box-shadow: inset -6px 0 8px rgba(0, 0, 0, .18), inset 3px 0 4px rgba(255, 255, 255, .12);
  transition: transform .3s var(--ease);
}
.spine span { transform: rotate(180deg); white-space: nowrap; }
.spine::before, .spine::after { content: ""; position: absolute; left: 6px; right: 6px; height: 3px; border-top: 1px solid var(--brass); border-bottom: 1px solid var(--brass); }
.spine::before { top: 10px; } .spine::after { bottom: 10px; }
.spine:hover { transform: translateY(-10px); }
.sp-a { height: 330px; background: var(--maroon); color: #fff; }
.sp-b { height: 368px; background: var(--manila); color: var(--ink); }
.sp-c { height: 352px; background: #3E7565; color: #fff; }
.sp-d { height: 320px; background: var(--ink); color: var(--manila); }
.sp-a:hover, .sp-c:hover { color: #fff; } .sp-b:hover { color: var(--ink); } .sp-d:hover { color: var(--manila); }
.book { position: relative; flex: 1 1 auto; min-width: 0; margin: 0 6px; padding-bottom: 6px; }
.book-cover { position: absolute; inset: -8px -8px 0; background: var(--green-dark); border-radius: 5px; box-shadow: 0 8px 18px rgba(0, 0, 0, .35); }
.book-pages { position: relative; border-radius: 2px; overflow: hidden; box-shadow: 0 3px 0 -1px #F4EEDD, 0 5px 0 -1px #E6DCC2, 0 7px 0 -1px #F4EEDD; }
.book-photo { width: 100%; aspect-ratio: 3 / 2.25; object-fit: cover; object-position: 50% 40%; }
.gutter { position: absolute; top: 0; bottom: 0; left: 50%; width: 64px; transform: translateX(-50%);
  background: linear-gradient(90deg, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, .28) 46%, rgba(255, 255, 255, .18) 50%, rgba(0, 0, 0, .28) 54%, rgba(0, 0, 0, 0) 100%); }
.pocket { position: absolute; right: 3%; bottom: -26px; width: 236px; z-index: 2; }
.due {
  position: relative; transform: rotate(-3deg); margin-bottom: -38px; padding: .7rem .85rem 46px;
  background: var(--manila-lite) repeating-linear-gradient(transparent 0 1.42rem, rgba(205, 181, 122, .7) 1.42rem calc(1.42rem + 1px));
  border-radius: 3px; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); font-size: .82rem; line-height: 1.42rem; color: var(--ink);
}
.due-h { font: 400 1.15rem/1.2 var(--display); margin: 0 0 .1rem; padding-bottom: .2rem; border-bottom: 2px solid var(--maroon); }
.due dl { margin: 0; }
.due dl div { display: grid; grid-template-columns: auto 1fr; gap: .6rem; }
.due dt { color: var(--ink-soft); }
.due dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.due a { color: var(--maroon); }
.stamp-ink { display: inline-block; padding: 0 .4rem; border: 2px solid var(--maroon); border-radius: 4px; color: var(--maroon); font-weight: 700; transform: rotate(-6deg); }
.pocket-front {
  position: relative; display: grid; place-items: center; height: 46px; border-radius: 0 0 4px 4px;
  background: var(--manila); border-top: 1px dashed var(--manila-line); color: var(--green-deep);
  font: 400 .95rem/1 var(--display); box-shadow: 0 4px 8px rgba(0, 0, 0, .25);
}
.plank { height: 22px; margin: 0 -1.1rem; background: linear-gradient(#C99B3E, var(--brass) 40%, #8E6A22); border-radius: 0 0 3px 3px; box-shadow: 0 8px 14px rgba(0, 0, 0, .22); }
.shelf-note { margin: 2.2rem 0 0; font-size: .8rem; color: var(--ink-soft); }

/* ---------- sections ---------- */
.sec { padding: clamp(3rem, 7vw, 5.5rem) 0; }
.sec-tint { background: var(--ground-2); }
.sec-lead { max-width: 38em; }
.sec-cat { padding-top: clamp(3.5rem, 6vw, 4.5rem); }

/* catalogue drawer */
.catalogue { --pulled: 0; }
.dividers { display: flex; gap: 4px; overflow-x: auto; scroll-snap-type: x proximity; padding: 6px 2px 0; scrollbar-width: thin; }
.divider {
  flex: none; scroll-snap-align: start; display: grid; text-align: left; gap: .1rem; min-height: 48px;
  padding: .5rem .8rem .55rem; border: 1.5px solid var(--manila-line); border-bottom: 0; border-radius: 8px 8px 0 0;
  background: var(--manila); color: var(--ink); font: 500 .95rem/1.2 var(--body); cursor: pointer;
  transform: translateY(5px); transition: transform .2s var(--ease), background-color .2s var(--ease);
}
.div-call { font-size: .78rem; color: var(--maroon); font-weight: 600; font-variant-numeric: tabular-nums; }
.divider:hover { transform: translateY(1px); }
.divider[aria-selected="true"] { background: var(--manila-lite); transform: none; position: relative; z-index: 1; }
.tray { position: relative; }
.icard::before, .entry::before, .form-card::before { content: ""; position: absolute; left: 0; right: 0; top: 12px; height: 2px; background: var(--maroon); opacity: .85; }
.icard, .entry, .record, .form-card {
  position: relative; border-radius: 4px; box-shadow: 0 2px 4px rgba(35, 32, 25, .12), 0 12px 28px rgba(35, 32, 25, .12);
}
.icard {
  padding: 1.9rem 1.6rem 2.6rem;
  background: var(--manila-lite) repeating-linear-gradient(transparent 0 calc(1.75rem - 1px), rgba(205, 181, 122, .55) calc(1.75rem - 1px) 1.75rem);
  background-position: 0 4.35rem;
}
.icard-body { display: grid; grid-template-columns: 5rem 1fr 230px; gap: 1.4rem; align-items: start; }
.icard-call { margin: .3rem 0 0; font: 400 1.25rem/1.25 var(--display); color: var(--maroon); font-variant-numeric: tabular-nums; }
.icard-call span { font-family: var(--body); font-size: .85rem; font-weight: 600; }
.icard h3 { font-size: 1.8rem; margin-bottom: .3rem; }
.icard-subj { font-size: .9rem; color: var(--ink-soft); }
.icard-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border: 7px solid #fff; box-shadow: 0 3px 8px rgba(0, 0, 0, .2); transform: rotate(1.5deg); }
.icard-hole { position: absolute; left: 50%; bottom: .9rem; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .3); }
.sec-tint .icard-hole { background: var(--ground-2); }

/* placeholders */
.tbc { margin: 1rem 0; padding: .75rem 1rem; border: 1.5px dashed var(--rule); border-radius: 4px; background: rgba(255, 252, 244, .7); font-size: .95rem; }
.tbc-k { font-weight: 600; color: var(--maroon); }

/* borrowing record */
.record { background: var(--manila-lite); padding: 1.3rem 1.4rem 1rem; margin-top: 1.4rem; }
.record-top { border-bottom: 2px solid var(--maroon); margin-bottom: .2rem; }
.record-h { font: 400 1.5rem/1.2 var(--display); margin: 0 0 .25rem; }
.record-sub { font-size: .9rem; color: var(--ink-soft); }
.rec { width: 100%; border-collapse: collapse; }
.rec th, .rec td { padding: .6rem .5rem; border-bottom: 1px solid var(--manila-line); text-align: left; vertical-align: middle; }
.rec thead th { font-size: .8rem; font-weight: 600; color: var(--ink-soft); }
.rec tbody th { font-weight: 600; white-space: nowrap; }
.rec td + td, .rec .st { width: 6.5rem; text-align: center; }
.stamp { display: inline-block; min-width: 4.6rem; padding: .1rem .45rem; border: 2px solid currentColor; border-radius: 5px; font-weight: 700; font-size: .85rem; letter-spacing: .02em; }
.stamp.s0 { color: var(--maroon); transform: rotate(-7deg); }
.stamp.s1 { color: var(--green); transform: rotate(4deg); }
.stamp.s2 { color: #5B3A6E; transform: rotate(-2deg); }
.will-stamp .stamp { opacity: 0; scale: 1.8; }
.stamped .stamp { animation: press .32s var(--ease) forwards; }
.stamped tr:nth-child(2) .stamp { animation-delay: .12s; } .stamped tr:nth-child(3) .stamp { animation-delay: .24s; }
.stamped tr:nth-child(4) .stamp { animation-delay: .36s; } .stamped tr:nth-child(5) .stamp { animation-delay: .48s; }
.stamped tr:nth-child(6) .stamp { animation-delay: .6s; } .stamped tr:nth-child(7) .stamp { animation-delay: .72s; }
@keyframes press { 0% { opacity: 0; scale: 1.8; } 70% { opacity: 1; scale: .94; } 100% { opacity: .92; scale: 1; } }

/* review slips */
.slips { display: grid; gap: 1rem; margin: 1rem 0; }
.slip { margin: 0; padding: 1.1rem 1.2rem 1rem; background: var(--paper); border-top: 2px dashed var(--manila-line); border-radius: 0 0 4px 4px; box-shadow: 0 2px 8px rgba(35, 32, 25, .1); }
.slip-stars { display: flex; gap: 2px; margin: 0 0 .4rem; color: var(--brass); }
.slip-stars .ic { width: 1rem; height: 1rem; fill: var(--brass); }
.slip blockquote { margin: 0; }
.slip blockquote p { font: 400 1.25rem/1.4 var(--display); margin: 0 0 .5rem; }
.slip figcaption { font-size: .88rem; color: var(--ink-soft); }

/* reading nook FAQ */
.sec-nook { position: relative; }
.lamp { position: absolute; left: -6rem; top: -3rem; width: 560px; height: 460px; pointer-events: none; background: radial-gradient(closest-side, rgba(233, 215, 168, .5), rgba(233, 215, 168, 0)); }
.sec-nook .col-lg-4 { position: relative; }
.sec-nook .col-lg-4 > :not(.lamp) { position: relative; }
.nook-hi { color: var(--green); }
.stack { display: grid; gap: 6px; }
.vol { border-radius: 4px; }
.vol.v1 { margin-left: 14px; } .vol.v2 { margin-left: 4px; margin-right: 10px; } .vol.v3 { margin-left: 22px; }
.vol summary {
  position: relative; list-style: none; display: flex; align-items: center; gap: 1rem; min-height: 60px; cursor: pointer;
  padding: .7rem 1.1rem .7rem 3rem; border-radius: 4px; font: 500 1.05rem/1.35 var(--body);
  box-shadow: inset 0 -5px 8px rgba(0, 0, 0, .15), 0 2px 3px rgba(0, 0, 0, .15);
}
.vol summary::-webkit-details-marker { display: none; }
.vol summary::before { content: ""; position: absolute; left: 14px; top: 8px; bottom: 8px; width: 12px; border-left: 2px solid var(--brass); border-right: 2px solid var(--brass); }
.vol-q { flex: 1; }
.vol-mark { position: relative; width: 16px; height: 16px; flex: none; }
.vol-mark::before, .vol-mark::after { content: ""; position: absolute; left: 0; right: 0; top: 7px; height: 2px; background: currentColor; transition: transform .25s var(--ease); }
.vol-mark::after { transform: rotate(90deg); }
.vol[open] .vol-mark::after { transform: rotate(0); }
.v0 summary { background: var(--green); color: #fff; }
.v1 summary { background: var(--maroon); color: #fff; }
.v2 summary { background: var(--manila); color: var(--ink); }
.v3 summary { background: var(--ink); color: var(--manila); }
.vol summary:hover { filter: brightness(1.08); }
.vol-page { margin: 0 .6rem; padding: 1rem 1.2rem .3rem; background: var(--paper); border: 1px solid var(--manila-line); border-top: 0; border-radius: 0 0 4px 4px; }

/* visit + form */
.visit { padding: 1.6rem; background: var(--green); color: #fff; border-radius: 4px; }
.visit h2, .visit h3 { color: #fff; }
.v-line { display: flex; gap: .6rem; align-items: flex-start; }
.v-line .ic { margin-top: .2em; color: var(--manila); }
.visit a:not(.btn) { color: #fff; }
.visit .muted { color: var(--manila); }
.visit .btn-green { background: var(--manila); color: var(--ink); }
.visit .btn-green:hover { background: #fff; color: var(--ink); }
.visit .btn-line { color: #fff; border-color: var(--manila); }
.visit .btn-line:hover { background: var(--green-deep); color: #fff; }
.visit :focus-visible { outline-color: var(--manila); }
.sec-visit .visit h3 { font-size: 1.8rem; }
.form-card { padding: 1.7rem clamp(1.1rem, 3vw, 2rem) 1.6rem; background: var(--paper); }
.fc-top { display: flex; justify-content: space-between; align-items: center; font-size: .85rem; font-weight: 600; color: var(--maroon); margin-bottom: .5rem; }
.fc-hole { width: 16px; height: 16px; border-radius: 50%; background: var(--ground); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .3); }
.form-h { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.form-intro { color: var(--ink-soft); max-width: 40em; }
.field label { display: block; font-weight: 600; margin-bottom: .3rem; }
.opt { font-weight: 400; color: var(--ink-soft); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; border: 1.5px solid var(--rule); border-radius: 4px;
  background: #fff; color: var(--ink); font: 400 1rem/1.4 var(--body);
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder { color: #6E6758; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--green); outline-offset: 1px; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: var(--maroon); background: #FFF6F4; }
.hint { font-size: .85rem; color: var(--ink-soft); margin: .3rem 0 0; }
.err { font-size: .9rem; color: var(--maroon); font-weight: 600; margin: .3rem 0 0; }
.hp { position: absolute; left: -9999px; }
.form-summary { margin-bottom: 1rem; padding: .8rem 1rem; border: 2px solid var(--maroon); border-radius: 4px; background: #FFF6F4; color: var(--maroon); font-weight: 600; }
.form-summary ul { margin: .3rem 0 0; padding-left: 1.2rem; }
.form-summary a { color: var(--maroon); }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.2rem; margin-top: 1.3rem; }
.form-foot p { margin: 0; }
.form-ok, .form-fail { display: flex; gap: .6rem; margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 4px; font-weight: 500; }
.form-ok { background: #E7F0EA; color: var(--green-deep); border: 2px solid var(--green); }
.form-fail { display: block; background: #FFF6F4; color: var(--maroon); border: 2px solid var(--maroon); }

/* inner page band: a bookplate */
.band { padding: 2rem 0 2.6rem; background: var(--ground-2); border-bottom: 1px solid var(--manila-line); }
.crumbs { font-size: .9rem; margin-bottom: 1rem; color: var(--ink-soft); }
.plate { position: relative; max-width: 860px; padding: clamp(1.4rem, 4vw, 2.4rem) clamp(1.2rem, 4vw, 2.6rem); border: 2px solid var(--green); outline: 1px solid var(--brass); outline-offset: -9px; background: var(--paper); }
.plate-call { position: absolute; right: 1.4rem; top: 1rem; margin: 0; font: 400 1.05rem/1.2 var(--display); color: var(--maroon); font-variant-numeric: tabular-nums; }
.plate h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 16ch; }
.band-lead { font-size: 1.15rem; max-width: 40em; margin-bottom: .5rem; }
.band-hi { color: var(--green); margin: 0; }

/* about: entry card */
.entry { padding: 1.9rem 1.6rem 3rem; background: var(--manila-lite); }
.entry-dl { margin: 0; }
.entry-dl div { display: grid; grid-template-columns: 10rem 1fr; gap: 1rem; padding: .55rem 0; border-bottom: 1px solid var(--manila-line); }
.entry-dl dt { color: var(--ink-soft); font-size: .92rem; }
.entry-dl dd { margin: 0; font-weight: 500; }
.entry-dl .blank dd { font-weight: 400; font-style: italic; color: var(--maroon); border-bottom: 1.5px dashed var(--rule); }
.entry-foot { font-size: .85rem; color: var(--ink-soft); margin: .8rem 0 0; }
.mounted { margin: 0 0 1.5rem; }
.mounted img { border: 8px solid #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .15); }
.mounted figcaption { font-size: .85rem; color: var(--ink-soft); margin-top: .5rem; }

/* learning: shelf list */
.shelflist { list-style: none; margin: 1.4rem 0; padding: 0; border-top: 2px solid var(--green); }
.sl-row { display: grid; grid-template-columns: 5.5rem 1fr; gap: 1.2rem; padding: 1.2rem 0; border-bottom: 1px solid var(--manila-line); }
.sl-call { margin: .2rem 0 0; font: 400 1.25rem/1.2 var(--display); color: var(--maroon); font-variant-numeric: tabular-nums; }
.sl-body h3 { margin-bottom: .1rem; }
.sl-age { font-weight: 600; color: var(--green); margin-bottom: .3rem; }
.sl-here { font-size: .92rem; }
.sl-link { font-weight: 600; }
.ticks { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.6rem; }
.ticks li::before { content: ""; position: absolute; left: .1rem; top: .45em; width: .7rem; height: .7rem; border: 2px solid var(--green); border-radius: 2px; background: var(--manila); }

/* admissions: stations */
.stations { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: 1rem; }
.station { display: grid; grid-template-columns: 3.4rem 1fr; gap: 1rem; padding: 1.1rem 1.2rem; background: var(--paper); border-radius: 4px; box-shadow: 0 2px 8px rgba(35, 32, 25, .1); }
.st-no { display: grid; place-items: center; width: 3.2rem; height: 3.2rem; border: 2px solid var(--brass); outline: 2px solid var(--manila); outline-offset: -6px; border-radius: 3px; background: var(--manila-lite); font: 400 1.6rem/1 var(--display); color: var(--maroon); }
.station h3 { margin-bottom: .2rem; }
.station p { margin-bottom: .4rem; }
.st-act { font-weight: 600; }
.ages, .hours { width: 100%; border-collapse: collapse; margin: .6rem 0 1rem; background: var(--paper); border-radius: 4px; overflow: hidden; }
.ages caption, .hours caption { caption-side: bottom; text-align: left; font-size: .85rem; color: var(--ink-soft); padding-top: .5rem; }
.ages th, .ages td, .hours th, .hours td { padding: .65rem .9rem; border-bottom: 1px solid var(--manila-line); text-align: left; font-variant-numeric: tabular-nums; }
.ages thead th { background: var(--green); color: #fff; font-weight: 600; font-size: .9rem; }
.hours th { font-weight: 500; }
.hours tr.today { background: var(--manila-lite); }
.hours tr.today th, .hours tr.today td { font-weight: 700; }
.today-tag { color: var(--maroon); font-weight: 600; }

/* campus: sleeves + expectations */
.sleeves { list-style: none; margin: 1rem 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
.sleeve:first-child { grid-row: span 2; }
.sleeve-btn { position: relative; display: block; width: 100%; padding: 0; border: 8px solid #fff; background: #fff; cursor: zoom-in; box-shadow: 0 3px 10px rgba(0, 0, 0, .15); border-radius: 2px; }
.sleeve-btn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; }
.sleeve:first-child { display: flex; flex-direction: column; }
.sleeve:first-child .sleeve-btn { flex: 1; display: flex; }
.sleeve:first-child .sleeve-btn img { aspect-ratio: auto; height: 100%; min-height: 0; }
.sleeve-zoom { position: absolute; right: 8px; bottom: 8px; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--green); color: #fff; }
.sleeve-cap { font-size: .88rem; color: var(--ink-soft); margin: .5rem 0 0; }
.expects { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(175px, 1fr)); gap: 1rem; }
.expect { padding: 1.1rem 1.2rem; border: 1.5px dashed var(--rule); border-radius: 4px; background: rgba(255, 252, 244, .6); }
.expect h3 { font-size: 1.3rem; display: flex; align-items: center; gap: .5rem; }
.expect p { margin-bottom: .4rem; }
.expect .tbc-k, .expect .v-k { font-size: .85rem; margin: 0; }
.expect-v { border: 2px solid var(--green); background: var(--paper); }
.v-k { font-weight: 600; color: var(--green); }
.lightbox { max-width: min(92vw, 900px); padding: 0; border: 0; border-radius: 4px; background: var(--ink); color: var(--manila-lite); }
.lightbox::backdrop { background: rgba(20, 18, 14, .82); }
.lightbox figure { margin: 0; }
.lightbox img { max-height: 76vh; width: auto; margin: 0 auto; }
.lightbox figcaption { padding: .7rem 1rem 0; font-size: .92rem; }
.lb-bar { display: flex; flex-wrap: wrap; gap: .5rem; padding: .8rem 1rem 1rem; }
.lb-bar button { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; padding: .4rem .9rem; border: 2px solid var(--manila); border-radius: 4px; background: transparent; color: var(--manila-lite); font: 600 .95rem/1 var(--body); cursor: pointer; }
.lb-bar button:hover { background: var(--green); }
.lb-close { margin-left: auto; }
.lightbox :focus-visible { outline-color: var(--manila); }

/* map */
.map-card { position: relative; margin-top: 1rem; border-radius: 4px; overflow: hidden; background: var(--paper); box-shadow: 0 2px 8px rgba(35, 32, 25, .12); }
.map-fallback { padding: 1.3rem; }
.map-addr { display: flex; gap: .6rem; }
.map-addr .ic { color: var(--green); margin-top: .2em; }
.map-card iframe { display: block; width: 100%; height: 380px; border: 0; }

/* prose pages */
.prose { max-width: 44rem; }
.prose h2 { font-size: 1.7rem; margin-top: 1.6rem; }
.sec-plain { padding: clamp(3rem, 8vw, 6rem) 0; }
.center-card { margin: 0 auto; }
.due-solo { width: 16rem; transform: rotate(-2deg); margin: 0 0 2rem; padding-bottom: 1rem; }

/* footer: back of the cabinet */
.site-foot { background: var(--green); color: #EFE3C2; padding: 3.2rem 0 6rem; border-top: 3px solid var(--brass); }
.foot-logo { width: 232px; height: auto; margin-bottom: .4rem; }
.foot-note { font-size: .8rem; color: var(--manila); }
.foot-addr { display: flex; gap: .55rem; align-items: flex-start; }
.foot-addr .ic { margin-top: .2em; color: var(--manila); }
.site-foot a { color: #fff; }
.site-foot a:hover { color: var(--manila); }
.foot-h { font-size: 1.35rem; color: #fff; margin-bottom: .7rem; }
.foot-links { list-style: none; margin: 0; padding: 0; display: grid; gap: .1rem; }
.foot-links a { display: inline-block; padding: .35rem 0; min-height: 44px; }
.foot-small { font-size: .9rem; }
.foot-base { margin: 2rem 0 0; padding-top: 1rem; border-top: 1px solid rgba(233, 215, 168, .35); font-size: .85rem; }

/* phone action bar */
.act-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: none; grid-template-columns: repeat(3, 1fr); background: var(--green-dark); border-top: 2px solid var(--brass); padding-bottom: env(safe-area-inset-bottom); }
.act-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; min-height: 58px; color: #fff; text-decoration: none; font-size: .82rem; font-weight: 600; }
.act-bar a + a { border-left: 1px solid rgba(233, 215, 168, .25); }
.act-bar .ic { color: var(--manila); }

/* ---------- responsive ---------- */
@media (max-width: 1199.98px) {
  .main-nav ul { gap: .35rem; }
  .dl-frame { padding: .45rem .5rem .4rem; }
  .dl-name { font-size: .88rem; }
  .head-call span { display: none; }
  .icard-body { grid-template-columns: 4.2rem 1fr 190px; }
}
@media (max-width: 991.98px) {
  :root { --head-h: 72px; }
  .main-nav { display: none; }
  .menu-btn { display: inline-flex; }
  .head-call { display: none; }
  .act-bar { display: grid; }
  .site-foot { padding-bottom: 6.5rem; }
  .hero h1 { max-width: 14ch; }
  .shelf { margin-top: .5rem; }
  .lamp { width: 360px; height: 300px; }
}
@media (max-width: 767.98px) {
  .icard { padding: 1.2rem 1.1rem 2.6rem; }
  .icard-body { grid-template-columns: 1fr; gap: .8rem; }
  .icard-call { display: none; }
  .icard-photo { order: -1; max-width: 300px; }
  .icard-photo img { aspect-ratio: 4 / 3; transform: none; }
  .entry-dl div { grid-template-columns: 1fr; gap: .1rem; }
  .sl-row { grid-template-columns: 1fr; gap: .2rem; }
  .sleeves { grid-template-columns: 1fr 1fr; }
  .sleeve:first-child { grid-row: auto; grid-column: span 2; }
  .sleeve:first-child .sleeve-btn img { aspect-ratio: 4 / 3; height: auto; }
  .rec td + td, .rec .st { width: 5.2rem; }
  .rec tbody th { white-space: normal; }
  .plate-call { position: static; margin-bottom: .4rem; }
}
@media (max-width: 575.98px) {
  body { font-size: 1rem; }
  .brand-name { font-size: 1.2rem; }
  .brand img { width: 42px; height: 42px; }
  .lead { font-size: 1.08rem; }
  .shelf { padding: 1rem .6rem 0; }
  .shelf-row { gap: 4px; }
  .spine { width: 38px; font-size: .95rem; }
  .sp-a, .sp-d { display: none; }
  .sp-b { height: 230px; } .sp-c { height: 214px; }
  .plank { margin: 0 -.6rem; }
  .book { margin: 0 4px; }
  .book-photo { aspect-ratio: 4 / 3.4; }
  .pocket { position: relative; right: auto; bottom: auto; width: auto; margin: 1.3rem .2rem -6px; }
  .due { transform: rotate(-1.5deg); }
  .shelf-note { margin-top: .7rem; }
  .shelf { margin-bottom: 0; }
  .btn-row .btn { flex: 1 1 100%; }
  .stamp { min-width: 0; font-size: .78rem; }
  .rec thead { display: none; }
  .rec tr { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: .6rem; padding: .55rem 0; border-bottom: 1px solid var(--manila-line); }
  .rec th, .rec td { padding: 0; border: 0; }
  .rec td:not(.st) { grid-column: 1 / -1; grid-row: 2; font-size: .95rem; }
  .rec td + td, .rec .st { width: auto; }
  .vol summary { padding-left: 2.6rem; font-size: 1rem; }
  .vol.v1, .vol.v3 { margin-left: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .will-stamp .stamp { opacity: .92; scale: 1; }
}
