/* The Kids Evergreen Play School: "Always growing" (patchwork quilt and stitches).
   Bootstrap 5.3.3 grid gives the columns; everything else is hand-written here. */

:root {
  --ground: #F7F3EA;
  --paper: #FCF8EF;
  --ink: #26302A;
  --ink-2: #4A5A50;
  --green: #2E6B4F;
  --green-dk: #1F4A37;
  --apple: #8CC152;
  --coral: #E9765B;
  --coral-txt: #A2462F;
  --thread: #F3E3BF;
  --denim: #3F5D7D;
  --seam: 6px;
  --r: 10px;
  --shadow: 0 2px 0 rgba(38, 48, 42, .06), 0 12px 28px -12px rgba(38, 48, 42, .22);
  --display: "Delius Swash Caps", "Delius", "Trebuchet MS", system-ui, sans-serif;
  --body: "Delius", "Trebuchet MS", system-ui, sans-serif;
}

@property --sew {
  syntax: "<angle>";
  initial-value: 360deg;
  inherits: false;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-padding-top: 92px; -webkit-text-size-adjust: 100%; scrollbar-color: var(--green) var(--thread); }
body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.6;
  font-synthesis: none;
  caret-color: var(--green);
}
::selection { background: var(--apple); color: var(--ink); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green-dk); text-decoration-thickness: 1.5px; text-underline-offset: .2em; }
a:hover { color: var(--green); }
:focus-visible { outline: 3px solid var(--coral-txt); outline-offset: 3px; border-radius: 4px; }
strong { font-weight: 400; color: var(--green-dk); }
h1, h2, h3 { font-family: var(--display); font-weight: 400; line-height: 1.15; margin: 0 0 .6rem; text-wrap: balance; }
h1 { font-size: clamp(2.2rem, 4.4vw, 3.5rem); letter-spacing: -.01em; }
h2 { font-size: clamp(1.8rem, 3.1vw, 2.55rem); }
h3 { font-size: 1.35rem; }
p { margin: 0 0 1rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ic { width: 1.25em; height: 1.25em; flex: none; }
[lang="hi"] { font-family: "Noto Sans Devanagari", "Kohinoor Devanagari", var(--body); }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 100; background: var(--paper); color: var(--ink); padding: .7rem 1rem; border-radius: 8px; }
.skip:focus { top: .75rem; }
.skip:hover { color: var(--green-dk); }

/* ---------- fabrics ---------- */
.fab-coral { --f1: #E9765B; --f2: #EE8F78; --fi: rgba(243, 227, 191, .9); }
.fab-apple { --f1: #8CC152; --f2: #A1CD6E; --fi: rgba(252, 248, 239, .85); }
.fab-denim { --f1: #3F5D7D; --f2: #50708F; --fi: rgba(243, 227, 191, .75); }
.fab-green { --f1: #2E6B4F; --f2: #3A7C5D; --fi: rgba(243, 227, 191, .7); }
.fab-thread { --f1: #F3E3BF; --f2: #E6D09F; --fi: rgba(46, 107, 79, .35); }
.fab-dots { background-color: var(--f1); background-image: radial-gradient(var(--fi) 17%, transparent 19%); background-size: 18px 18px; }
.fab-gingham {
  background-color: var(--f1);
  background-image: linear-gradient(90deg, rgba(252, 248, 239, .32) 50%, transparent 0), linear-gradient(rgba(252, 248, 239, .32) 50%, transparent 0);
  background-size: 20px 20px;
}
.fab-stripe { background-image: repeating-linear-gradient(45deg, var(--f1) 0 8px, var(--f2) 8px 16px); }
.fab-check { background: conic-gradient(var(--f1) 25%, var(--f2) 0 50%, var(--f1) 0 75%, var(--f2) 0) 0 0 / 22px 22px; }
.fab-chevron {
  background:
    linear-gradient(135deg, var(--f2) 25%, transparent 25%) -12px 0 / 24px 24px,
    linear-gradient(225deg, var(--f2) 25%, transparent 25%) -12px 0 / 24px 24px,
    linear-gradient(315deg, var(--f2) 25%, transparent 25%) 0 0 / 24px 24px,
    linear-gradient(45deg, var(--f2) 25%, transparent 25%) 0 0 / 24px 24px,
    var(--f1);
}
.fab-plain-thread { background: var(--thread); }
.fab-plain-apple { background: var(--apple); }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 48px; padding: .7rem 1.25rem; border-radius: var(--r); border: 2px solid transparent;
  font: inherit; font-size: 1rem; line-height: 1.2; text-decoration: none; cursor: pointer;
  transition: transform .18s cubic-bezier(.2, .8, .2, 1), background-color .18s, box-shadow .18s;
}
.btn::after { content: ""; position: absolute; inset: 4px; border: 1.5px dashed currentColor; border-radius: 7px; opacity: .45; pointer-events: none; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn-green { background: var(--green); color: #fff; box-shadow: 0 3px 0 var(--green-dk); }
.btn-green:hover { background: var(--green-dk); color: #fff; }
.btn-line { background: transparent; color: var(--green-dk); border-color: var(--green); }
.btn-line:hover { background: rgba(46, 107, 79, .08); color: var(--green-dk); }
.btn-ink { background: var(--ink); color: var(--paper); }
.btn-ink:hover { background: #111a15; color: var(--paper); }
.btn[disabled] { opacity: .7; cursor: progress; transform: none; }
.acts { display: flex; flex-wrap: wrap; gap: .7rem; margin-top: 1.25rem; }

/* ---------- header: the stitched ribbon ---------- */
.ribbon { position: sticky; top: 0; z-index: 50; background: var(--green); color: var(--thread); }
.ribbon::before, .ribbon::after { content: ""; position: absolute; left: 0; right: 0; border-top: 2px dashed rgba(243, 227, 191, .55); pointer-events: none; }
.ribbon::before { top: 5px; }
.ribbon::after { bottom: 5px; }
.ribbon-in { display: flex; align-items: center; gap: 1rem; min-height: 76px; }
.brand { display: flex; align-items: center; flex: none; border-radius: 6px; }
.brand-logo { height: 46px; width: auto; }
.nav-desk { margin-left: auto; }
.nav-desk ul { display: flex; gap: .2rem; list-style: none; margin: 0; padding: 0; }
.nav-a {
  position: relative; display: block; padding: .55rem .85rem; border-radius: 7px; color: var(--thread);
  text-decoration: none; font-size: 1rem;
}
.nav-a::after { content: ""; position: absolute; left: .85rem; right: .85rem; bottom: .3rem; border-bottom: 2px dashed var(--thread); transform: scaleX(0); transform-origin: left; transition: transform .25s cubic-bezier(.2, .8, .2, 1); }
.nav-a:hover { color: #fff; }
.nav-a:hover::after { transform: scaleX(1); }
.nav-a[aria-current="page"] { background: var(--coral); color: var(--ink); }
.nav-a[aria-current="page"]::after { transform: none; inset: 3px; border: 1.5px dashed rgba(38, 48, 42, .5); border-radius: 5px; }
.nav-a:focus-visible, .brand:focus-visible, .call-patch:focus-visible, .menu-btn:focus-visible { outline-color: var(--thread); }
.call-patch {
  position: relative; display: inline-flex; align-items: center; gap: .45rem; padding: .55rem .95rem; border-radius: 8px;
  background: var(--thread); color: var(--green-dk); text-decoration: none; flex: none;
}
.call-patch::after { content: ""; position: absolute; inset: 3px; border: 1.5px dashed rgba(46, 107, 79, .55); border-radius: 6px; }
.call-patch:hover { background: #fff6dd; color: var(--green-dk); }
.menu-btn {
  display: none; margin-left: auto; align-items: center; gap: .45rem; min-height: 46px; padding: .5rem .95rem;
  background: var(--thread); color: var(--green-dk); border: 0; border-radius: 8px; font: inherit; cursor: pointer;
}

/* phone sheet: the quilted menu */
.sheet { position: fixed; inset: 0; z-index: 80; background: var(--ground); overflow-y: auto; padding: 1rem 1rem 2rem; }
.sheet[hidden] { display: none; }
.sheet.is-open { animation: unfold .32s cubic-bezier(.2, .8, .2, 1); }
@keyframes unfold { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }
.sheet-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; }
.sheet-logo { height: 40px; width: auto; }
.sheet-close { display: inline-flex; align-items: center; gap: .4rem; min-height: 46px; padding: .5rem .9rem; background: var(--green); color: #fff; border: 0; border-radius: 8px; font: inherit; cursor: pointer; }
.sheet-grid { list-style: none; margin: 0; padding: var(--seam); display: grid; grid-template-columns: 1fr 1fr; gap: var(--seam); background: var(--thread); border-radius: 14px; }
.patch-link { position: relative; display: flex; align-items: flex-end; min-height: 104px; padding: .7rem; border-radius: 8px; text-decoration: none; }
.patch-link::after { content: ""; position: absolute; inset: 6px; border: 2px dashed rgba(252, 248, 239, .7); border-radius: 5px; pointer-events: none; }
.patch-link span { position: relative; z-index: 1; background: var(--paper); color: var(--ink); padding: .35rem .75rem; border-radius: 5px; font-size: 1.1rem; }
.patch-link[aria-current="page"] span { background: var(--ink); color: var(--paper); }
.sheet-acts { display: grid; gap: .6rem; margin-top: 1rem; }
body.sheet-open { overflow: hidden; }

/* phone quick actions */
.act-bar { display: none; }

/* ---------- hero quilt ---------- */
.hero { padding: clamp(1.25rem, 3vw, 2.5rem) 0 clamp(2.5rem, 5vw, 4rem); }
.quilt {
  display: grid; gap: var(--seam); padding: var(--seam); background: var(--thread); border-radius: 18px;
  grid-template-columns: repeat(4, 1fr); box-shadow: var(--shadow);
}
.qp { position: relative; border-radius: 7px; overflow: hidden; margin: 0; }
.qp::after { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(243, 227, 191, .8); border-radius: 5px; pointer-events: none; }
.q-a, .q-b, .q-c, .q-d { min-height: 46px; }
.q-e, .q-f, .q-g { display: none; }
.q-label { grid-column: 1 / -1; background: var(--paper); padding: clamp(1.4rem, 4vw, 2.6rem); }
.q-label::after { border-color: rgba(46, 107, 79, .45); }
.q-label h1 { max-width: 15ch; }
.hero-hi { font-size: 1.15rem; color: var(--green-dk); margin-bottom: .8rem; }
.hero-lead { max-width: 46ch; color: var(--ink-2); }
.q-photo { grid-column: 1 / -1; aspect-ratio: 4 / 3.3; background: var(--green); }
.q-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; }
.q-photo::after { display: none; }
.sew {
  position: absolute; inset: 10px; border: 3px dashed var(--thread); border-radius: 6px; pointer-events: none;
  -webkit-mask: conic-gradient(from 0deg, #000 var(--sew), transparent 0);
  mask: conic-gradient(from 0deg, #000 var(--sew), transparent 0);
  animation: sewin 1.8s cubic-bezier(.3, .7, .2, 1) .35s both;
}
@keyframes sewin { from { --sew: 0deg; } to { --sew: 360deg; } }
.q-fact {
  grid-column: span 2; display: flex; align-items: flex-start; gap: .6rem; padding: 1rem 1.05rem; color: var(--ink);
  text-decoration: none; font-size: .95rem; line-height: 1.4; min-height: 84px;
}
.q-fact::after { border-color: rgba(38, 48, 42, .3); }
.q-fact strong { display: block; font-family: var(--display); font-size: 1.08rem; color: var(--ink); }
.q-fact .ic { margin-top: .15rem; color: var(--green-dk); }
a.q-fact:hover { filter: brightness(1.04); color: var(--ink); }
a.q-fact:hover strong { text-decoration: underline; text-underline-offset: .2em; }
.q-basted {
  grid-column: span 3; background: var(--ground);
}
.q-basted::after { border: 0; inset: 7px; background:
  linear-gradient(90deg, var(--ink-2) 55%, transparent 0) top left / 22px 2px repeat-x,
  linear-gradient(90deg, var(--ink-2) 55%, transparent 0) bottom left / 22px 2px repeat-x,
  linear-gradient(var(--ink-2) 55%, transparent 0) top left / 2px 22px repeat-y,
  linear-gradient(var(--ink-2) 55%, transparent 0) top right / 2px 22px repeat-y; opacity: .55; }
.q-h { grid-column: span 1; }
.stock-note, .gen-note { font-size: .88rem; color: var(--ink-2); margin: .8rem 0 0; }

@media (min-width: 576px) {
  .q-basted { grid-column: span 2; }
  .q-h { display: none; }
  .quilt { grid-template-columns: repeat(6, 1fr); }
  .q-a, .q-b, .q-c, .q-d { grid-column: span 1; }
  .q-e, .q-f { display: block; grid-column: span 1; grid-row: 1; min-height: 46px; }
  .q-photo { aspect-ratio: 16 / 10; }
}
@media (min-width: 992px) {
  .quilt { grid-template-columns: .65fr repeat(7, 1fr) .65fr; grid-template-rows: repeat(3, minmax(140px, auto)) auto; }
  .q-label h1 { font-size: clamp(2.3rem, 3.5vw, 3.4rem); }
  .q-a { grid-area: 1 / 1; } .q-b { grid-area: 2 / 1; } .q-e { grid-area: 3 / 1; }
  .q-c { grid-area: 1 / 9; } .q-d { grid-area: 2 / 9; } .q-f { grid-area: 3 / 9; }
  .q-g { display: block; grid-area: 4 / 1; }
  .q-h { display: block; grid-area: 4 / 9; }
  .q-label { grid-area: 1 / 2 / 4 / 6; display: flex; flex-direction: column; justify-content: center; }
  .q-photo { grid-area: 1 / 6 / 4 / 9; aspect-ratio: auto; min-height: 100%; }
  .q-fact { grid-column: span 2; grid-row: 4; }
  .q-basted { grid-column: 6 / 9; grid-row: 4; }
}
@media (min-width: 992px) {
  a.q-fact.fab-plain-thread { grid-column: 2 / 4; }
  a.q-fact.fab-plain-apple { grid-column: 4 / 6; }
}

/* ---------- section rhythm ---------- */
main > section { padding: clamp(3.25rem, 7vw, 6rem) 0; }
main > section.hero { padding-top: clamp(1.25rem, 3vw, 2.5rem); }
.sec-lead { max-width: 62ch; color: var(--ink-2); margin-bottom: 2rem; }
.sample {
  display: inline-block; margin-right: .45rem; padding: .05rem .55rem; border-radius: 4px; font-size: .85rem;
  background: var(--thread); color: var(--ink); border: 1.5px dashed var(--coral-txt); vertical-align: .08em;
}

/* placeholders */
.tbc { border: 2px dashed #8E9C93; border-radius: var(--r); padding: 1rem 1.2rem; background: rgba(252, 248, 239, .6); color: var(--ink-2); margin: 0 0 1rem; max-width: 70ch; }
.tbc-k { display: block; font-family: var(--display); color: var(--green-dk); font-size: 1.08rem; margin-bottom: .15rem; }
.tbc-chip { display: inline-block; border: 1.5px dashed #6F7E74; border-radius: 999px; padding: .1rem .65rem; font-size: .85rem; color: var(--ink-2); white-space: nowrap; }

/* ---------- voices ---------- */
.voices {
  background-color: var(--green); color: var(--thread);
  background-image: repeating-linear-gradient(45deg, rgba(243, 227, 191, .06) 0 2px, transparent 2px 26px), repeating-linear-gradient(-45deg, rgba(243, 227, 191, .06) 0 2px, transparent 2px 26px);
}
.voices h2 { color: #fff; }
.voices-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .5rem 2rem; margin-bottom: 2rem; }
.voices-meta { display: flex; align-items: center; gap: .5rem; margin: 0; }
.voices-meta strong { color: #fff; font-family: var(--display); font-size: 1.3rem; }
.voices-meta .ic { color: var(--apple); }
.voices-wall { display: grid; gap: 1rem; }
.voice { position: relative; margin: 0; background: var(--paper); color: var(--ink); padding: 1.5rem 1.6rem 1.2rem; border-radius: 8px; box-shadow: 0 10px 22px -12px rgba(0, 0, 0, .45); }
.voice::after { content: ""; position: absolute; inset: 7px; border: 2px dashed rgba(46, 107, 79, .4); border-radius: 5px; pointer-events: none; }
.voice blockquote { margin: 0; }
.voice p { margin: 0 0 .6rem; font-size: 1.12rem; line-height: 1.45; }
.voice-big p { font-family: var(--display); font-size: clamp(1.35rem, 2.3vw, 1.85rem); line-height: 1.3; }
.voice figcaption { font-size: .9rem; color: var(--ink-2); }
.voice figcaption::before { content: ""; display: inline-block; width: 18px; border-top: 2px dashed var(--coral-txt); vertical-align: middle; margin-right: .5rem; }
.voices-foot { margin: 1.6rem 0 0; font-size: .95rem; }
.voices-foot a { color: #fff; }
@media (min-width: 768px) {
  .voices-wall { grid-template-columns: repeat(12, 1fr); align-items: start; }
  .voice-big { grid-column: 1 / 8; grid-row: span 2; transform: rotate(-.6deg); padding: 2.2rem 2.2rem 1.6rem; }
  .voice-mid { grid-column: 8 / 13; transform: rotate(.7deg); }
  .voice-mid:nth-child(3) { grid-column: 1 / 8; margin-left: 2.5rem; transform: rotate(.4deg); }
  .voice-small { grid-column: 8 / 13; margin-right: 2rem; transform: rotate(-.8deg); }
}

/* ---------- stages: patch by patch ---------- */
.quilt-squares { list-style: none; margin: 0; padding: var(--seam); display: grid; gap: var(--seam); grid-template-columns: 1fr; background: var(--thread); border-radius: 16px; box-shadow: var(--shadow); }
.sq { position: relative; padding: 12px; border-radius: 7px; display: flex; flex-direction: column; gap: 10px; }
.sq-photo { border-radius: 5px; overflow: hidden; aspect-ratio: 1; }
.sq-photo img { width: 100%; height: 100%; object-fit: cover; }
.sq-label { position: relative; flex: 1; background: var(--paper); border-radius: 5px; padding: 1rem 1.05rem 1.1rem; }
.sq-label::after { content: ""; position: absolute; inset: 5px; border: 1.5px dashed rgba(46, 107, 79, .4); border-radius: 4px; pointer-events: none; }
.sq-label h3 { margin-bottom: .2rem; }
.sq-label p { color: var(--ink-2); margin-bottom: .6rem; }
.sq-link { position: relative; z-index: 1; font-size: .98rem; }
.sq-basted { background: var(--ground); justify-content: center; }
.sq-basted .sq-label { background: transparent; }
.sq-basted .sq-label::after { border: 0; background:
  linear-gradient(90deg, var(--ink-2) 55%, transparent 0) top left / 24px 2px repeat-x,
  linear-gradient(90deg, var(--ink-2) 55%, transparent 0) bottom left / 24px 2px repeat-x,
  linear-gradient(var(--ink-2) 55%, transparent 0) top left / 2px 24px repeat-y,
  linear-gradient(var(--ink-2) 55%, transparent 0) top right / 2px 24px repeat-y; opacity: .6; }
.sq-yours { background: var(--coral); justify-content: center; }
.sq-yours .btn { position: relative; z-index: 1; margin-top: .2rem; }
@media (min-width: 576px) { .quilt-squares { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) {
  .quilt-squares { grid-template-columns: repeat(4, 1fr); }
  .sq-basted, .sq-yours { grid-column: span 2; }
  .sq-yours .sq-label, .sq-basted .sq-label { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.2rem; }
  .sq-yours .sq-label p, .sq-basted .sq-label p { flex: 1 1 18rem; margin: 0; }
  .sq-yours .sq-label h3, .sq-basted .sq-label h3 { flex: 1 1 100%; }
}

/* ---------- a day, stitch by stitch ---------- */
.day { background: var(--paper); }
.stitch-line { list-style: none; margin: 0; padding: 0 0 0 2.4rem; position: relative; display: grid; gap: 1.5rem; }
.stitch-line::before { content: ""; position: absolute; left: .85rem; top: .6rem; bottom: .6rem; width: 3px; background: linear-gradient(var(--coral) 60%, transparent 0) 0 0 / 3px 16px repeat-y; }
.knot { position: relative; }
.knot h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.knot p { color: var(--ink-2); margin: 0; font-size: .98rem; }
.knot-dot { position: absolute; left: -2.15rem; top: .15rem; width: 22px; height: 22px; border-radius: 50%; background: var(--green); box-shadow: inset 0 0 0 4px var(--thread), 0 0 0 2px var(--green); }
.knot:nth-child(3n+2) .knot-dot { background: var(--denim); box-shadow: inset 0 0 0 4px var(--thread), 0 0 0 2px var(--denim); }
.knot:nth-child(3n) .knot-dot { background: var(--coral); box-shadow: inset 0 0 0 4px var(--thread), 0 0 0 2px var(--coral-txt); }
@media (min-width: 992px) {
  .stitch-line { padding: 2.6rem 0 0; grid-template-columns: repeat(7, 1fr); gap: 1.1rem; }
  .stitch-line::before { left: 0; right: 0; top: .6rem; bottom: auto; width: auto; height: 3px; background: linear-gradient(90deg, var(--coral) 60%, transparent 0) 0 0 / 16px 3px repeat-x; }
  .knot-dot { left: 0; top: -2.55rem; }
}

/* ---------- sewn in / still to sew ---------- */
.sewn-patch, .basted-patch, .form-patch { position: relative; border-radius: 14px; padding: clamp(1.4rem, 3vw, 2.2rem); }
.sewn-patch, .form-patch { background: var(--paper); box-shadow: var(--shadow); }
.sewn-patch::after, .form-patch::after { content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(46, 107, 79, .38); border-radius: 9px; pointer-events: none; }
.basted-patch { background:
  linear-gradient(90deg, #6F7E74 55%, transparent 0) top left / 26px 2px repeat-x,
  linear-gradient(90deg, #6F7E74 55%, transparent 0) bottom left / 26px 2px repeat-x,
  linear-gradient(#6F7E74 55%, transparent 0) top left / 2px 26px repeat-y,
  linear-gradient(#6F7E74 55%, transparent 0) top right / 2px 26px repeat-y; }
.sewn-src { color: var(--ink-2); font-size: .92rem; }
.sewn-list, .basted-list { list-style: none; margin: 0; padding: 0; }
.sewn-list li { padding: .65rem 0; border-top: 1.5px dashed #D9CBA6; display: grid; gap: .1rem; }
.sewn-list li:first-child { border-top: 0; }
.sewn-list .k { font-size: .85rem; color: var(--green-dk); }
.basted-list li { position: relative; padding: .4rem 0 .4rem 1.6rem; color: var(--ink-2); }
.basted-list li::before { content: ""; position: absolute; left: 0; top: 1.05rem; width: 14px; border-top: 2px dashed var(--coral-txt); }
.sewn { padding-top: clamp(3.25rem, 7vw, 6rem); }

/* ---------- FAQ: button and thread ---------- */
.thread { position: relative; }
.thread-q { border-bottom: 1.5px dashed #D9CBA6; }
.thread-q summary { display: flex; align-items: center; gap: 1rem; padding: .9rem 0; cursor: pointer; list-style: none; border-radius: 8px; }
.thread-q summary::-webkit-details-marker { display: none; }
.thread-q summary .q { font-size: 1.12rem; }
.thread-q summary:hover .q { color: var(--green-dk); text-decoration: underline; text-underline-offset: .2em; text-decoration-style: dashed; }
.btn4 { flex: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.b-face { fill: var(--coral); }
.b-rim { fill: none; stroke: rgba(38, 48, 42, .35); stroke-width: 1.5; }
.b-hole { fill: var(--ground); }
.b-x { stroke: var(--paper); stroke-width: 1.6; stroke-linecap: round; }
.thread-q:nth-child(4n+2) .b-face { fill: var(--apple); }
.thread-q:nth-child(4n+3) .b-face { fill: var(--denim); }
.thread-q:nth-child(4n) .b-face { fill: var(--green); }
.thread-q[open] .btn4 { transform: rotate(45deg); }
.thread-a { position: relative; margin: 0 0 1rem 19px; padding: .2rem 0 .4rem 2rem; color: var(--ink-2); max-width: 64ch; }
.thread-a::before { content: ""; position: absolute; left: -1px; top: -.9rem; bottom: .3rem; width: 2px; background: var(--green); border-radius: 2px; }
.thread-q[open] .thread-a { animation: drop .45s cubic-bezier(.2, .8, .2, 1); }
@keyframes drop { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0); } }
.patch-frame { margin: 0; padding: 10px; background: var(--thread); border-radius: 14px; box-shadow: var(--shadow); }
.patch-frame img { border-radius: 8px; width: 100%; }
.patch-frame figcaption { font-size: .85rem; color: var(--ink-2); padding: .5rem .2rem 0; }
@media (min-width: 992px) { .tilt-l { transform: rotate(-1deg); } .tilt-r { transform: rotate(1deg); } .faq-photo { transform: rotate(1.2deg); margin-top: 3.5rem; } }

/* ---------- visit + form ---------- */
.visit { background: var(--thread); }
.visit-solo { background: var(--ground); }
.visit-list { list-style: none; margin: 0 0 .5rem; padding: 0; display: grid; gap: .85rem; }
.visit-list li { display: flex; gap: .7rem; align-items: flex-start; }
.visit-list .ic { color: var(--green); margin-top: .2rem; }
.mf-small { font-size: .9rem; color: var(--ink-2); }
.form-h { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.form-lead { color: var(--ink-2); }
.field label { display: block; margin-bottom: .3rem; font-size: .98rem; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: .65rem .85rem; border: 2px solid #CDBF9C; border-radius: 9px; background: #fff;
  color: var(--ink); font: inherit; font-size: 1rem;
}
.field textarea { min-height: 96px; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: #5A695F; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 3px solid rgba(46, 107, 79, .3); outline-offset: 1px; border-color: var(--green); }
.field [aria-invalid="true"] { border-color: var(--coral-txt); background: #FFF8F5; }
.hint { font-size: .86rem; color: var(--ink-2); margin: .3rem 0 0; }
.err { font-size: .9rem; color: var(--coral-txt); margin: .3rem 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-summary { border: 2px solid var(--coral-txt); background: #FBE9E2; border-radius: 9px; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.form-summary ul { margin: .4rem 0 0; padding-left: 1.2rem; }
.form-summary a { color: var(--coral-txt); }
.btn-send { margin-top: 1.2rem; }
.note { margin: 1rem 0 0; padding: .9rem 1.1rem; border-radius: 9px; border: 2px solid var(--green); background: #E8F1E2; }
.note-bad { border-color: var(--coral-txt); background: #FBE9E2; }
.form-small { font-size: .85rem; color: var(--ink-2); margin: 1rem 0 0; }

/* ---------- inner page band ---------- */
.band { padding: clamp(1.5rem, 4vw, 3rem) 0 0 !important; }
.band-label { position: relative; background: var(--paper); border-radius: 14px; padding: clamp(1.5rem, 4vw, 2.6rem); max-width: 820px; box-shadow: var(--shadow); }
.band-label::after { content: ""; position: absolute; inset: 9px; border: 2px dashed rgba(46, 107, 79, .4); border-radius: 9px; pointer-events: none; }
.band-hi { color: var(--green-dk); font-size: 1.12rem; }
.band-lead { color: var(--ink-2); max-width: 60ch; margin: 0; }
.band-strip { display: flex; gap: var(--seam); padding: var(--seam); background: var(--thread); margin-top: clamp(1.5rem, 3vw, 2.5rem); }
.strip-p { flex: 1; height: 42px; border-radius: 5px; }

/* about */
.about-known { background: var(--paper); }
.about-made { padding-bottom: clamp(3.25rem, 7vw, 6rem); }

/* classes table + sampler */
.table-wrap { overflow-x: auto; }
.stitched-table { width: 100%; border-collapse: collapse; background: var(--paper); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); font-variant-numeric: tabular-nums lining-nums; }
.stitched-table th, .stitched-table td { text-align: left; padding: 1rem 1.1rem; border-bottom: 1.5px dashed #D9CBA6; }
.stitched-table thead th { font-family: var(--display); font-weight: 400; background: var(--green); color: #fff; border-bottom: 0; }
.stitched-table tbody tr:last-child th, .stitched-table tbody tr:last-child td { border-bottom: 0; }
.stitched-table th[scope="row"] { font-weight: 400; font-family: var(--display); font-size: 1.12rem; }
.sw { display: inline-block; width: 22px; height: 22px; border-radius: 5px; margin-right: .6rem; vertical-align: -4px; }
.sampler { background: var(--paper); }
.sampler-grid { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1rem; }
.smp { background: var(--ground); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.smp-sw { display: block; height: 54px; }
.smp h3, .smp p { padding: 0 1.1rem; }
.smp h3 { padding-top: 1rem; font-size: 1.15rem; }
.smp p { color: var(--ink-2); padding-bottom: .4rem; }
@media (min-width: 576px) { .sampler-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .sampler-grid { grid-template-columns: repeat(3, 1fr); } }

/* admissions */
.steps { list-style: none; margin: 0 0 2rem; padding: 0; display: grid; gap: 1.2rem; counter-reset: s; }
.step { position: relative; display: flex; gap: 1rem; align-items: flex-start; background: var(--paper); border-radius: 12px; padding: 1.2rem 1.2rem 1rem; box-shadow: var(--shadow); }
.step h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.step p { color: var(--ink-2); margin: 0; }
.step-n { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--coral); color: var(--ink); font-family: var(--display); font-size: 1.35rem; box-shadow: inset 0 0 0 4px var(--paper), 0 0 0 2px var(--coral-txt); }
@media (min-width: 992px) {
  .steps { grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }
  .step { flex-direction: column; }
  .step:not(:last-child)::after { content: ""; position: absolute; top: 2.6rem; right: -1.5rem; width: 1.5rem; border-top: 3px dashed var(--coral); }
}
.docs-sec { background: var(--paper); }
.doc-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.doc-list li { display: flex; gap: .6rem; align-items: flex-start; }
.doc-list .ic { color: var(--green); margin-top: .2rem; }
.age-strip { list-style: none; margin: 0; padding: var(--seam); display: grid; gap: var(--seam); background: var(--thread); border-radius: 14px; }
.age-strip li { display: flex; flex-wrap: wrap; align-items: baseline; gap: .2rem .8rem; padding: .7rem; border-radius: 7px; }
.age-strip strong, .age-strip span { background: var(--paper); border-radius: 5px; padding: .3rem .7rem; }
.age-strip strong { font-family: var(--display); color: var(--ink); font-size: 1.1rem; }
.age-strip span { color: var(--ink-2); font-size: .95rem; }

/* campus life */
.expect-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.exp { position: relative; padding: 1.3rem 1.3rem 1.2rem; border-radius: 12px; background:
  linear-gradient(90deg, #6F7E74 55%, transparent 0) top left / 24px 2px repeat-x,
  linear-gradient(90deg, #6F7E74 55%, transparent 0) bottom left / 24px 2px repeat-x,
  linear-gradient(#6F7E74 55%, transparent 0) top left / 2px 24px repeat-y,
  linear-gradient(#6F7E74 55%, transparent 0) top right / 2px 24px repeat-y; }
.exp h3 { font-size: 1.15rem; }
.exp p { color: var(--ink-2); }
@media (min-width: 576px) { .expect-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 992px) { .expect-grid { grid-template-columns: repeat(3, 1fr); } }
.gallery { background: var(--paper); }
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; grid-template-columns: 1fr 1fr; }
.g-btn { display: block; width: 100%; padding: 8px; border: 0; border-radius: 12px; background: var(--thread); cursor: zoom-in; box-shadow: var(--shadow); transition: transform .2s cubic-bezier(.2, .8, .2, 1); }
.g-btn:hover { transform: rotate(-1deg); }
.g-btn img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 7px; }
.g-cap { font-size: .92rem; color: var(--ink-2); margin: .5rem 0 0; }
@media (min-width: 992px) { .g-grid { grid-template-columns: repeat(4, 1fr); gap: 1.4rem; } }
.lightbox { border: 0; border-radius: 16px; padding: 12px; background: var(--paper); width: min(1000px, 94vw); max-height: 94vh; }
.lightbox::backdrop { background: rgba(20, 28, 24, .82); }
.lightbox figure { margin: 0; }
.lightbox img { width: 100%; height: auto; max-height: 70vh; object-fit: contain; border-radius: 8px; background: var(--ground); }
.lightbox figcaption { padding: .6rem .2rem; color: var(--ink-2); }
.lb-nav { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: flex-end; }
.notice-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .8rem; max-width: 760px; }
.notice-list li { position: relative; background: var(--paper); border-radius: 10px; padding: 1rem 1.2rem; box-shadow: var(--shadow); }

/* contact map */
.map-card { display: grid; gap: var(--seam); padding: var(--seam); background: var(--thread); border-radius: 16px; box-shadow: var(--shadow); }
.map-frame { position: relative; min-height: 300px; border-radius: 9px; overflow: hidden; display: grid; place-items: center; align-content: center; gap: .6rem; padding: 1.5rem; text-align: center;
  background-color: #8CC152; background-image: linear-gradient(90deg, rgba(252, 248, 239, .32) 50%, transparent 0), linear-gradient(rgba(252, 248, 239, .32) 50%, transparent 0); background-size: 20px 20px; }
.map-frame .btn { background: var(--paper); }
.map-note { background: var(--paper); border-radius: 6px; padding: .3rem .7rem; font-size: .88rem; margin: 0; }
.map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-fallback { position: relative; background: var(--paper); border-radius: 9px; padding: 1.3rem 1.4rem; }
.mf-h { font-size: 1.3rem; }

/* prose + centred patch pages */
.prose-in { max-width: 68ch; }
.prose-in h2 { font-size: 1.5rem; margin-top: 1.8rem; }
.center-patch { min-height: 62vh; display: grid; align-items: center; }
.cp-in { max-width: 680px; margin: 0 auto; }

/* ---------- footer ---------- */
.foot { position: relative; background: var(--denim); color: #EEF2F6; padding: 3.5rem 0 2.5rem; font-size: .98rem; }
.foot::before { content: ""; position: absolute; top: 7px; left: 0; right: 0; border-top: 2px dashed rgba(243, 227, 191, .55); }
.foot a { color: #fff; }
.foot a:hover { color: var(--thread); }
.foot a:focus-visible { outline-color: var(--thread); }
.foot-logo { height: 52px; width: auto; margin-bottom: 1rem; }
.foot-addr { max-width: 40ch; }
.foot-strong { font-family: var(--display); font-size: 1.25rem; }
.foot-sep { display: inline-block; width: 14px; border-top: 2px dashed rgba(243, 227, 191, .6); vertical-align: middle; margin: 0 .35rem; }
.foot-h { font-size: 1.7rem; color: var(--thread); }
.foot-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.foot-small { font-size: .9rem; color: #E1E8EF; }

/* ---------- phones and tablets ---------- */
@media (max-width: 991.98px) {
  .nav-desk, .call-patch { display: none; }
  .menu-btn { display: inline-flex; }
  .ribbon-in { min-height: 68px; }
  .brand-logo { height: 40px; }
  .act-bar {
    display: grid; grid-template-columns: repeat(3, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    background: var(--denim); border-top: 2px dashed rgba(243, 227, 191, .55); padding-bottom: env(safe-area-inset-bottom);
  }
  .act-bar a { display: flex; flex-direction: column; align-items: center; gap: .15rem; padding: .5rem 0 .55rem; color: #fff; text-decoration: none; font-size: .85rem; min-height: 56px; justify-content: center; }
  .act-bar a:focus-visible { outline-color: var(--thread); outline-offset: -4px; }
  body { padding-bottom: 60px; }
}
@media (max-width: 420px) {
  .brand-logo { height: 34px; }
  .menu-btn span { font-size: .95rem; }
  .q-label .acts .btn { flex: 1 1 100%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .sew { --sew: 360deg; }
}

/* small phones: facts as full-width strips, stage photos as wide patches */
@media (max-width: 575.98px) {
  .q-fact { grid-column: 1 / -1; min-height: 0; }
  .q-basted { grid-column: span 3; }
  .sq-photo { aspect-ratio: 16 / 10; }
}
