/* Sharda Convent High School — "Learning, beautifully kept" (illuminated manuscript).
   Ivory ground, vellum leaves with a ruled ornamental border, indigo ink, teal actions,
   copper rubrics, gilt for fine ornament only. Yeseva One + Schibsted Grotesk. */

:root {
  --ivory: #F7F3EA;
  --vellum: #FBF8F1;
  --paper: #FBF6E9;
  --indigo: #22285E;
  --indigo-2: #474B73;
  --teal: #0F5C63;
  --teal-d: #0A454B;
  --copper: #A35A26;
  --copper-d: #8A4A1E;
  --gilt: #C9A13B;
  --line: #DDD3BD;
  --line-2: #E8E0CD;
  --err: #A1251B;
  --display: "Yeseva One", "Georgia", serif;
  --body: "Schibsted Grotesk", "Segoe UI", system-ui, sans-serif;
  --hi: "Noto Sans Devanagari", "Kohinoor Devanagari", "Mangal", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --shadow: 0 1px 0 rgba(34, 40, 94, .05), 0 22px 44px -28px rgba(34, 40, 94, .42);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: var(--indigo-2) var(--ivory); }
body {
  margin: 0;
  background: var(--ivory);
  color: var(--indigo);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
  font-variant-numeric: lining-nums;
  caret-color: var(--teal);
  accent-color: var(--teal);
  overflow-x: hidden;
}
::selection { background: var(--teal); color: var(--vellum); }
:lang(hi) { font-family: var(--hi); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--teal); text-decoration-thickness: 1px; text-underline-offset: .2em; }
a:hover { color: var(--teal-d); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--copper); outline-offset: 3px; border-radius: 2px; }
main:focus { outline: none; }
p { margin: 0 0 1rem; text-wrap: pretty; }
h1, h2, h3 { font-family: var(--display); font-weight: 400; color: var(--indigo); margin: 0 0 .9rem; line-height: 1.15; letter-spacing: 0; text-wrap: balance; }
h2 { font-size: clamp(1.75rem, 3vw, 2.45rem); }
h3 { font-size: 1.3rem; line-height: 1.25; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 38em; }
.note { font-size: .95rem; color: var(--indigo-2); max-width: 46em; }
.hi-line { font-size: 1.1rem; color: var(--copper-d); }
.narrow { max-width: 820px; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--indigo); color: var(--vellum); padding: .75rem 1.1rem; border-radius: 3px; font-weight: 600; }
.skip:focus, .skip:hover { top: 1rem; color: var(--vellum); }
.nw { white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.3rem; border-radius: 3px;
  font: 600 1rem/1.2 var(--body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: background-color .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease), transform .2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-go { background: var(--teal); color: var(--vellum); border-color: var(--teal); }
.btn-go:hover { background: var(--teal-d); border-color: var(--teal-d); color: var(--vellum); }
.btn-line { background: transparent; color: var(--indigo); border-color: var(--indigo); }
.btn-line:hover { background: rgba(34, 40, 94, .07); color: var(--indigo); }
.btn-sm { min-height: 44px; padding: .5rem 1rem; font-size: .95rem; }
.btn-lg { min-height: 54px; padding: .85rem 1.6rem; font-size: 1.05rem; }
.btn-icon { width: 48px; padding: 0; }
.btn[disabled] { opacity: .7; cursor: progress; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 1rem; }

/* ---------------------------------------------------------------- ornament */
.orn-rule { display: block; width: 240px; max-width: 60vw; height: 16px; color: var(--gilt); }
.head-rule { display: flex; align-items: center; gap: 0; margin: .35rem 0 .2rem; }
.head-rule::before, .head-rule::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.init {
  float: left; display: grid; place-items: center;
  width: 1.14em; height: 1.14em; margin: .05em .13em 0 0; padding-bottom: .06em;
  font-size: 1.95em; line-height: 1; color: var(--vellum);
  background: var(--indigo) url(/assets/vine.svg) center / .42em repeat;
  border-radius: 2px;
  box-shadow: inset 0 0 0 4px var(--indigo), inset 0 0 0 5.5px var(--gilt), 0 10px 22px -14px rgba(34, 40, 94, .6);
}
.init-sm { color: var(--copper); font-size: 1.2em; line-height: 0; margin-right: .02em; }

/* the manuscript leaf: vellum page with a ruled, ornamented border (border-image tile) */
.leaf { position: relative; background: var(--vellum); padding: clamp(3.6rem, 6vw, 5rem); box-shadow: var(--shadow); }
.leaf::before {
  content: ""; position: absolute; inset: 12px; pointer-events: none;
  border: 30px solid transparent; border-image: url(/assets/border.svg) 30 round;
}
.leaf-card { padding: clamp(2.4rem, 5vw, 3.4rem); }
.leaf-card::before { inset: 8px; border-width: 22px; }
@media (prefers-reduced-motion: no-preference) {
  .leaf-hero::before { animation: draw-border 1.4s var(--ease) .1s both; }
  @keyframes draw-border { from { clip-path: inset(0 100% 100% 0); } 60% { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
}

/* photographs set into the page like plates */
.plate { margin: 0 0 1.5rem; }
.plate-frame { display: block; padding: 7px; background: var(--vellum); border: 1px solid var(--gilt); outline: 1px solid var(--line); outline-offset: 4px; }
.plate img { width: 100%; }
.plate figcaption, .g-cap { margin-top: .75rem; font-size: .875rem; line-height: 1.45; color: var(--indigo-2); }
.plate-hero img { aspect-ratio: 4 / 5; object-fit: cover; object-position: 42% 50%; }
@media (max-width: 991.98px) { .plate-hero img { aspect-ratio: 3 / 2; } }
.plate-side { margin-top: 1.75rem; max-width: 360px; }
.plate-portrait img { aspect-ratio: 4 / 5; object-fit: cover; }
.plate-tall img { aspect-ratio: 4 / 3; object-fit: cover; }

/* placeholders and glosses */
.todo { margin: 0 0 1.25rem; padding: 1rem 1.2rem; border: 1.5px dashed var(--copper); border-radius: 3px; background: rgba(163, 90, 38, .05); color: var(--indigo); }
.todo-tag { display: block; font-weight: 600; font-size: .875rem; color: var(--copper-d); margin-bottom: .2rem; }
.gloss { font-size: .86em; color: var(--indigo-2); }
.gloss-line { display: flex; gap: .55rem; align-items: flex-start; font-size: .98rem; color: var(--indigo); margin-top: .5rem; }
.gloss-line .ic { color: var(--teal); margin-top: .18rem; }

/* ---------------------------------------------------------------- header */
.site-head { background: var(--ivory); border-bottom: 1px solid var(--line); position: relative; z-index: 20; }
.head-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-top: .9rem; }
.brand { display: flex; align-items: center; gap: .8rem; text-decoration: none; color: var(--indigo); min-width: 0; }
.brand img { width: 52px; height: 52px; flex: none; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-name { font-family: var(--display); font-size: 1.4rem; line-height: 1.15; }
.brand-sub { font-size: .9rem; color: var(--indigo-2); line-height: 1.4; }
.brand:hover { color: var(--indigo); }
.head-actions { display: flex; align-items: center; gap: 1.1rem; }
.head-link { display: inline-flex; align-items: center; gap: .45rem; min-height: 44px; font-weight: 600; color: var(--indigo); text-decoration: none; font-variant-numeric: tabular-nums; }
.head-link .ic { color: var(--teal); }
.head-link span { white-space: nowrap; }
.head-link:hover { color: var(--teal-d); text-decoration: underline; }
.menu-btn { display: none; }
.main-nav ul { list-style: none; display: flex; justify-content: center; gap: clamp(1.2rem, 3vw, 2.6rem); margin: 0; padding: 0 0 .35rem; }
.main-nav a { display: inline-block; padding: .55rem .1rem .5rem; color: var(--indigo); font-weight: 600; text-decoration: none; border-bottom: 3px double transparent; }
.main-nav a:hover { border-bottom-color: var(--line); color: var(--teal-d); }
.main-nav a[aria-current="page"] { color: var(--copper-d); border-bottom-color: var(--copper); }

@media (max-width: 1099.98px) {
  .main-nav, .head-cta { display: none; }
  .menu-btn { display: inline-flex; }
  .head-top { padding-bottom: .9rem; }
  .head-rule { display: none; }
}
@media (max-width: 719.98px) {
  .head-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .head-link { width: 44px; justify-content: center; }
  .head-wa { display: none; }
  .head-actions { gap: .35rem; }
  .brand img { width: 44px; height: 44px; }
  .brand-name { font-size: 1.12rem; }
  .brand-sub { font-size: .82rem; }
  .menu-btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .menu-btn { width: 44px; padding: 0; }
}

/* drawer */
.sheet-scrim { position: fixed; inset: 0; z-index: 60; background: rgba(34, 40, 94, .45); opacity: 0; transition: opacity .3s var(--ease); }
.sheet-scrim.open { opacity: 1; }
.sheet {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(380px, 90vw); overflow-y: auto;
  background: var(--vellum); padding: 1.25rem 1.5rem 2rem; border-left: 4px double var(--gilt);
  transform: translateX(102%); transition: transform .32s var(--ease);
}
.sheet.open { transform: none; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding-bottom: .9rem; margin-bottom: .5rem; }
.sheet-title { font-family: var(--display); font-size: 1.6rem; margin: 0; }
.sheet-links { list-style: none; margin: 0; padding: 0; }
.sheet-links a { display: flex; align-items: center; min-height: 54px; font-family: var(--display); font-size: 1.45rem; color: var(--indigo); text-decoration: none; border-bottom: 1px dotted var(--line); }
.sheet-links a[aria-current="page"] { color: var(--copper-d); }
.sheet-actions { display: grid; gap: .7rem; margin-top: 1.5rem; }
body.sheet-open { overflow: hidden; }

/* ---------------------------------------------------------------- sections */
.sec { padding: clamp(3.5rem, 8vw, 6.5rem) 0; }
.sec-vellum { background: var(--vellum); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.sec-head { max-width: 46em; margin-bottom: 2rem; }

/* hero */
.hero { padding: clamp(1.5rem, 4vw, 3rem) 0 clamp(3rem, 6vw, 4.5rem); }
.hero-h { font-size: clamp(2.3rem, 3.7vw, 3.75rem); line-height: 1.1; margin-bottom: 1rem; text-wrap: pretty; }
.hero-hi { font-size: 1.15rem; color: var(--copper-d); margin-bottom: 1rem; clear: left; }
.hero .lead { clear: left; }
.hero .plate { margin: 0; }

/* inner page heads */
.page-head { padding: clamp(2.5rem, 6vw, 4.5rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2.4rem, 5vw, 4rem); line-height: 1.08; }
.page-head .lead { clear: left; }
.page-head .plate { margin-bottom: 0; }
.ph-acad { text-align: center; }
.ph-acad h1 { display: inline-block; text-align: left; }
.ph-acad .lead { margin-inline: auto; }
.ph-acad .container::after { content: ""; display: block; width: 240px; height: 16px; margin: 1.8rem auto 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 16'%3E%3Cpath d='M0 8h100M140 8h100' stroke='%23C9A13B'/%3E%3Cpath d='M120 1l7 7-7 7-7-7z' fill='%230F5C63'/%3E%3Ccircle cx='106' cy='8' r='2' fill='%23C9A13B'/%3E%3Ccircle cx='134' cy='8' r='2' fill='%23C9A13B'/%3E%3C/svg%3E") center / contain no-repeat; }
.ph-life { background: var(--indigo); color: #EFEAF7; }
.ph-life h1 { color: var(--vellum); }
.ph-life .init { background-color: var(--teal); box-shadow: inset 0 0 0 4px var(--teal), inset 0 0 0 5.5px var(--gilt); }
.ph-life .lead { color: #E4E0F0; }
.ph-contact h1 { margin-bottom: .4rem; }
.ph-contact .hi-line { clear: left; }

/* codex (about): text with margin glosses */
.codex { display: grid; gap: 2.5rem; }
@media (min-width: 992px) { .codex { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 4rem; } }
.codex-text h2 { margin-top: 2.2rem; }
.codex-text h2:first-child { margin-top: 0; }
.codex-gloss { border-left: 1px solid var(--gilt); padding-left: 1.5rem; font-size: .95rem; color: var(--indigo-2); align-self: start; }
.codex-gloss strong { color: var(--indigo); }
.gloss-h { font-family: var(--display); font-size: 1.25rem; color: var(--copper-d); }

/* ---------------------------------------------------------------- report card */
.report { background: var(--vellum); border: 1px solid var(--line); padding: clamp(1.25rem, 3vw, 2rem); box-shadow: inset 0 0 0 5px var(--vellum), inset 0 0 0 6px var(--gilt); }
.sec-vellum .report { background: #fff; box-shadow: inset 0 0 0 5px #fff, inset 0 0 0 6px var(--gilt); }
.report-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .25rem 1.5rem; border-bottom: 3px double var(--indigo); padding: .4rem .25rem .7rem; margin-bottom: .25rem; }
.report-title { font-family: var(--display); font-size: 1.65rem; margin: 0; }
.report-sub { font-size: .92rem; color: var(--indigo-2); margin: 0; }
.report-table { width: 100%; border-collapse: collapse; font-size: .98rem; }
.report-table th, .report-table td { text-align: left; vertical-align: top; padding: .8rem .6rem; border-bottom: 1px dotted var(--line); }
.report-table thead th { font-size: .85rem; font-weight: 600; color: var(--copper-d); border-bottom: 1px solid var(--line); padding-top: .5rem; padding-bottom: .5rem; }
.report-table tbody th { font-weight: 600; width: 28%; }
.rc-src { display: block; font-size: .86rem; color: var(--indigo-2); margin-top: .2rem; }
.rc-remark { width: 1%; white-space: nowrap; }
.remark { display: inline-flex; align-items: center; gap: .3rem; font-weight: 600; font-size: .88rem; padding: .15rem .55rem; border-radius: 2px; }
.remark .ic { width: 1.05em; height: 1.05em; }
.rk-v { color: var(--teal); background: rgba(15, 92, 99, .08); }
.rk-l { color: var(--copper-d); background: rgba(163, 90, 38, .08); }
.rk-t { color: var(--indigo-2); border: 1px dashed var(--indigo-2); }
.report-key { font-size: .86rem; color: var(--indigo-2); margin: 1rem .25rem 0; line-height: 2; }
.report-key .remark { margin-right: .2rem; }
.stage-table tbody th { width: 16%; }
@media (max-width: 719.98px) {
  .report-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .report-table tr { display: block; padding: .85rem .25rem; border-bottom: 1px dotted var(--line); }
  .report-table th, .report-table td { display: block; padding: 0; border: 0; width: auto !important; }
  .report-table tbody th { font-family: var(--display); font-weight: 400; font-size: 1.1rem; margin-bottom: .2rem; }
  .report-table td + td { margin-top: .4rem; }
  .rc-remark { white-space: normal; }
}

/* ---------------------------------------------------------------- subjects shelf */
.shelf-wrap { display: grid; gap: 2rem; align-items: end; }
@media (min-width: 992px) { .shelf-wrap { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 3.5rem; } }
.shelf-books { min-width: 0; }
.shelf-hint { font-size: .92rem; color: var(--indigo-2); }
.shelf { list-style: none; margin: 0; padding: 1.5rem .5rem 0; display: flex; align-items: flex-end; gap: 6px; height: 330px; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; }
.shelf li { height: 100%; display: flex; align-items: flex-end; flex: none; }
.spine {
  width: 58px; height: var(--h); display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  padding: .7rem 0; border: 0; border-radius: 3px 3px 1px 1px; cursor: pointer; font: 400 1.08rem/1 var(--display);
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
  box-shadow: inset -6px 0 0 rgba(0, 0, 0, .12), inset 2px 0 0 rgba(255, 255, 255, .12);
}
.spine-t { writing-mode: vertical-rl; transform: rotate(180deg); padding: .4rem 0; white-space: nowrap; }
.spine-band { display: block; width: 70%; height: 9px; border-top: 1.5px solid var(--gilt); border-bottom: 1.5px solid var(--gilt); flex: none; }
.s-indigo { background: var(--indigo); color: var(--vellum); }
.s-teal { background: var(--teal); color: var(--vellum); }
.s-copper { background: var(--copper-d); color: var(--vellum); }
.s-ivory { background: #EDE3CC; color: var(--indigo); }
.spine:hover { transform: translateY(-6px); }
.spine[aria-pressed="true"] { transform: translateY(-20px); box-shadow: inset -6px 0 0 rgba(0, 0, 0, .12), 0 14px 18px -10px rgba(34, 40, 94, .55); }
.spine[aria-pressed="true"] .spine-band { border-color: #F0D58A; }
.spine:focus-visible { outline-offset: 4px; }
.shelf-plank { height: 16px; background: var(--indigo); border-top: 3px solid var(--gilt); box-shadow: 0 14px 20px -14px rgba(34, 40, 94, .7); }
.shelf-open { background: var(--paper); border: 1px solid var(--gilt); outline: 1px solid var(--line); outline-offset: 5px; padding: clamp(1.4rem, 3vw, 2.2rem); min-height: 250px; }
.sec .shelf-open { background: #fff; }
.shelf-leaf h3 { font-size: 1.8rem; color: var(--copper-d); }
.leaf-note { font-size: .9rem; color: var(--indigo-2); border-top: 1px dotted var(--line); padding-top: .8rem; margin-top: 1.2rem; }
@media (max-width: 575.98px) {
  .shelf { height: 270px; gap: 5px; }
  .spine { width: 48px; font-size: 1rem; }
}

/* ---------------------------------------------------------------- admission steps: one ruled line */
.steps { list-style: none; margin: 1.5rem 0 0; padding: 0; position: relative; max-width: 40em; }
.steps::before { content: ""; position: absolute; left: 1.375rem; top: 1.4rem; bottom: 2.6rem; width: 1px; background: var(--gilt); }
.step { position: relative; padding: 0 0 1.6rem 4.2rem; }
.step-n { position: absolute; left: 0; top: 0; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1.5px solid var(--teal); border-radius: 50%; background: var(--vellum); color: var(--teal); font: 400 1.3rem/1 var(--display); }
.step h3 { margin: .45rem 0 .3rem; }
.step p { margin: 0; color: var(--indigo); }
.steps-note { font-size: .92rem; color: var(--indigo-2); margin: .25rem 0 1.25rem; }

/* ---------------------------------------------------------------- notice scroll */
.scroll { max-width: 600px; margin-inline: auto; padding: 0 12px; }
.scroll-rod { position: relative; height: 22px; margin: 0 -12px; background: var(--indigo); border-radius: 11px; box-shadow: inset 0 -5px 0 rgba(0, 0, 0, .18); }
.scroll-rod::before, .scroll-rod::after { content: ""; position: absolute; top: -4px; width: 30px; height: 30px; border-radius: 50%; background: var(--gilt); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .15); }
.scroll-rod::before { left: -14px; }
.scroll-rod::after { right: -14px; }
.scroll-paper {
  max-height: 360px; overflow-y: auto; background: var(--paper); padding: 1.6rem clamp(1.25rem, 3vw, 2.25rem);
  box-shadow: inset 10px 0 12px -10px rgba(122, 90, 40, .35), inset -10px 0 12px -10px rgba(122, 90, 40, .35);
  scrollbar-color: var(--gilt) var(--paper); scrollbar-width: thin;
}
.notices { list-style: none; margin: 0; padding: 0; }
.notices li { padding: 1rem 0 1.1rem; border-bottom: 1px dotted var(--line); }
.notices li:last-child { border-bottom: 0; }
.n-tag { font-size: .84rem; font-weight: 600; color: var(--copper-d); margin: 0 0 .25rem; }
.notices h3 { margin-bottom: .35rem; }
.notices p:last-child { margin: 0; }

/* ---------------------------------------------------------------- visit / map */
.visit-addr, .visit-hours { display: flex; gap: .6rem; align-items: flex-start; font-size: 1.12rem; }
.visit-addr .ic, .visit-hours .ic { color: var(--teal); margin-top: .25rem; }
.visit-meta { font-size: .92rem; color: var(--indigo-2); }
.map-block { position: relative; min-height: 320px; height: 100%; border: 1px solid var(--gilt); outline: 1px solid var(--line); outline-offset: 5px; background: var(--vellum) url(/assets/vine.svg) center / 40px repeat; }
.map-block iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-load { position: absolute; inset: 0; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .4rem; border: 0; background: rgba(251, 248, 241, .82); color: var(--indigo); font: 600 1.1rem/1.3 var(--body); cursor: pointer; }
.map-load .ic { width: 2rem; height: 2rem; color: var(--teal); }
.map-small { font-weight: 400; font-size: .9rem; color: var(--indigo-2); }
.map-load:hover { background: rgba(251, 248, 241, .7); }

/* contact */
.addr-h { font-size: 1.25rem; color: var(--copper-d); margin: 1.4rem 0 .4rem; }
.addr-h:first-child { margin-top: 0; }
.addr { font-style: normal; font-size: 1.15rem; line-height: 1.6; margin-bottom: .5rem; }
.big-phone { font-family: var(--display); font-size: clamp(2rem, 4vw, 2.6rem); margin: 0 0 .2rem; font-variant-numeric: tabular-nums; }
.big-phone a { text-decoration: none; color: var(--teal); }

/* ---------------------------------------------------------------- FAQ, checklist */
.faq-list { border-top: 3px double var(--indigo); }
.faq { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 52px; padding: .8rem 0; cursor: pointer; list-style: none; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq-mark { position: relative; width: 16px; height: 16px; flex: none; }
.faq-mark::before, .faq-mark::after { content: ""; position: absolute; left: 0; top: 7px; width: 16px; height: 2px; background: var(--teal); transition: transform .25s var(--ease); }
.faq-mark::after { transform: rotate(90deg); }
.faq[open] .faq-mark::after { transform: rotate(0); }
.faq-a { padding: 0 0 1rem; color: var(--indigo); }
.checklist { list-style: none; margin: 1.25rem 0 1.5rem; padding: 0; border-top: 1px solid var(--line); }
.checklist li { border-bottom: 1px dotted var(--line); }
.checklist label { display: flex; gap: .8rem; align-items: flex-start; min-height: 48px; padding: .7rem 0; cursor: pointer; }
.checklist input { width: 20px; height: 20px; margin-top: .2rem; flex: none; }
.checklist input:checked + span { text-decoration: line-through; text-decoration-color: var(--copper); color: var(--indigo-2); }

/* ---------------------------------------------------------------- bookplate form */
.bookplate { position: relative; background: #fff; padding: clamp(2.4rem, 5vw, 3.6rem); box-shadow: var(--shadow); }
.bookplate::before { content: ""; position: absolute; inset: 8px; pointer-events: none; border: 22px solid transparent; border-image: url(/assets/border.svg) 30 round; }
.bp-head { text-align: center; margin-bottom: 1.6rem; padding-bottom: 1.1rem; border-bottom: 3px double var(--indigo); }
.bp-head img { width: 56px; height: 56px; margin: 0 auto .5rem; }
.bp-title { font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.2rem); line-height: 1.1; margin: 0; }
.bp-sub { margin: .2rem 0 0; color: var(--indigo-2); font-size: .95rem; }
.field label { display: block; font-weight: 600; margin-bottom: .35rem; }
.opt { font-weight: 400; color: var(--indigo-2); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .8rem; font: 400 1rem/1.4 var(--body); color: var(--indigo);
  background: var(--vellum); border: 1px solid #B9AE95; border-bottom: 2px solid var(--indigo); border-radius: 2px;
}
.field textarea { resize: vertical; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 3px solid var(--copper); outline-offset: 1px; }
.field [aria-invalid="true"] { border-color: var(--err); border-bottom-color: var(--err); background: #FDF3F1; }
.hint { font-size: .88rem; color: var(--indigo-2); margin: .3rem 0 0; }
.err { font-size: .92rem; font-weight: 600; color: var(--err); margin: .3rem 0 0; }
.form-summary { border: 1.5px solid var(--err); background: #FDF3F1; color: var(--err); padding: .9rem 1.1rem; margin-bottom: 1.2rem; font-weight: 600; }
.form-summary ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.form-summary a { color: var(--err); }
.form-foot { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; }
.form-note { margin: 0; font-size: .92rem; color: var(--indigo-2); flex: 1 1 16rem; }
.form-state { margin-top: 1.25rem; padding: 1rem 1.2rem; border: 1.5px solid var(--teal); background: rgba(15, 92, 99, .07); }
.form-fail { border-color: var(--err); background: #FDF3F1; }
.fs-h { font-family: var(--display); font-size: 1.3rem; margin-bottom: .25rem; }
.hp { position: absolute; left: -9999px; }

/* ---------------------------------------------------------------- gallery + expectations */
.gallery { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 2rem 1.75rem; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.g-btn { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; text-align: left; }
.g-btn img { width: 100%; height: clamp(260px, 32vw, 440px); object-fit: cover; transition: transform .4s var(--ease); }
.g-btn .plate-frame { overflow: hidden; }
.g-btn:hover img { transform: scale(1.03); }
.expect { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.75rem 2.5rem; }
@media (min-width: 768px) { .expect { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.expect li { border-top: 1px solid var(--gilt); padding-top: 1rem; }
.expect p { margin: 0; color: var(--indigo-2); }

.lightbox { border: 0; padding: 0; max-width: min(1100px, 94vw); background: var(--vellum); box-shadow: var(--shadow); }
.lightbox::backdrop { background: rgba(20, 24, 58, .82); }
.lb-inner { padding: 1rem; }
.lb-img { max-height: 76vh; width: auto; margin: 0 auto; }
.lb-cap { font-size: .92rem; color: var(--indigo-2); margin: .75rem 0; }
.lb-ctl { display: flex; gap: .6rem; justify-content: flex-end; }

/* prose */
.prose { max-width: 40em; clear: left; }
.prose h2 { font-size: 1.6rem; margin-top: 2rem; }
.toc { list-style: none; padding: 0; margin: 1rem 0 0; }
.toc a { display: inline-block; padding: .35rem 0; font-weight: 600; }

/* ---------------------------------------------------------------- footer */
.site-foot { background: var(--indigo); color: #EDE9F6; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; border-top: 4px double var(--gilt); }
.site-foot a { color: #FFFFFF; }
.site-foot a:hover { color: #F0D58A; }
.foot-brand { display: inline-flex; align-items: center; gap: .8rem; text-decoration: none; font-family: var(--display); font-size: 1.45rem; margin-bottom: 1rem; }
.foot-brand img { width: 56px; height: 56px; }
.foot-addr { margin-bottom: .3rem; }
.foot-hi { color: #D8D3EA; }
.foot-phone { font-family: var(--display); font-size: 1.6rem; text-decoration: none; }
.foot-h { font-family: var(--display); font-size: 1.2rem; color: #FFFFFF; margin: 0 0 .7rem; }
.foot-list { list-style: none; margin: 0; padding: 0; }
.foot-list a { display: inline-block; padding: .3rem 0; }
.site-foot .foot-list a { min-height: 32px; }
.foot-notes { margin-top: 2.5rem; padding-top: 1.25rem; border-top: 1px solid rgba(201, 161, 59, .45); font-size: .88rem; color: #D2CEE4; }
.foot-notes p { margin-bottom: .4rem; max-width: 44em; }

/* ---------------------------------------------------------------- responsive leaf */
@media (max-width: 575.98px) {
  .leaf { padding: 2.7rem 1.9rem 2.4rem; }
  .leaf::before { inset: 6px; border-width: 18px; }
  .leaf-hero { margin-inline: -.25rem; }
  .bookplate { padding: 2.4rem 1.6rem; }
  .bookplate::before { inset: 5px; border-width: 16px; }
  .plate-hero img { aspect-ratio: 4 / 3; }
  .btn-row .btn { flex: 1 1 auto; }
  .init { font-size: 1.8em; }
}

/* ---------------------------------------------------------------- motion + print */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: .01ms !important; animation: none !important; scroll-behavior: auto !important; }
}
@media print {
  .site-head, .site-foot, .sheet, .sheet-scrim, .btn, .skip { display: none !important; }
  body { background: #fff; }
  body.print-docs main > section { display: none; }
  body.print-docs main > section:has(.checklist) { display: block; }
  body.print-docs main > section:has(.checklist) .col-lg-6 + .col-lg-6 { display: none; }
}
