/* The alumni questionnaire (/story/) and the alumni wall (/stories/). */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.hp { position: absolute; inset-inline-start: -9999px; }
.link-btn { font: inherit; font-size: 15px; font-weight: 700; color: var(--ink); background: none; border: 0; border-bottom: 2px solid var(--ink); padding: 0 0 1px; cursor: pointer; }

/* ---- questionnaire ---- */
.sq-body { min-height: 100dvh; }
.sq-top {
  display: flex; align-items: center; gap: 14px; padding: 12px 18px;
  padding-top: max(12px, env(safe-area-inset-top));
}
.sq-top .brand img { width: 84px; }
.sq-track { flex: 1; display: flex; align-items: center; justify-content: space-between; position: relative; height: 16px; }
.sq-track::before { content: ""; position: absolute; inset-inline: 0; top: 50%; height: 3px; margin-top: -1.5px; background: var(--ink); opacity: .22; }
.sq-track[hidden] { display: none; }
.sq-track i { position: relative; width: 12px; height: 12px; border-radius: 50%; background: var(--cream); border: 2.5px solid var(--ink); transition: transform .24s var(--ease-out), background-color .24s var(--ease-out); }
.sq-track i.past { background: var(--ink); }
.sq-track i.now { background: var(--lime); transform: scale(1.35); }
.sq-count { margin: 0; font-size: 14px; font-weight: 700; color: var(--muted); white-space: nowrap; }

.sq { max-width: 560px; margin: 0 auto; padding: 10px 20px 48px; position: relative; }
.sq-step { display: grid; gap: 16px; }
.sq-step[hidden] { display: none; }
.sq-step.enter { animation: sq-in .32s var(--ease-out); }
@keyframes sq-in { from { opacity: 0; transform: translateX(-18px); } to { opacity: 1; transform: none; } }
.sq-step h1 { font-size: clamp(42px, 12vw, 64px); margin: 0; }
.sq-step h2 { font-size: clamp(30px, 8vw, 42px); margin: 0; outline: 0; }
.sq-step .lead { font-size: 20px; line-height: 1.45; margin: 0; }
.sq-hint { margin: 0; color: var(--muted); font-size: 17px; }
.sq-err { margin: 0; color: #b23a28; font-weight: 700; font-size: 16px; min-height: 0; }
.sq-err:empty { display: none; }

.sq-intro { justify-items: start; position: relative; padding-top: 8px; }
.sq-intro > * { position: relative; z-index: 1; }
.sq-art { position: absolute; z-index: 0; inset-inline-end: -6px; top: 8px; width: 88px; height: auto; pointer-events: none; }
.sq-intro h1, .sq-intro .lead { padding-inline-end: 92px; }
.sq-intro .tag { margin: 0; }
.sq-facts { list-style: none; margin: 4px 0 6px; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.sq-facts li { display: grid; gap: 0; line-height: 1.2; }
.sq-facts b { font-size: 46px; font-weight: 800; line-height: 1; }
.sq-facts span { font-size: 15px; font-weight: 700; color: var(--muted); }

.fld { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.fld > span, .fld > legend { font-weight: 800; font-size: 17px; padding: 0; margin-bottom: 2px; }
.fld em { font-style: normal; font-weight: 600; color: var(--muted); }
.fld small, .sq-photo small { display: block; font-size: 14px; color: var(--muted); }
.fld input[type=text], .fld input[type=url], .fld input[type=tel], .fld textarea {
  font: inherit; font-size: 18px; color: var(--ink); background: var(--paper); width: 100%;
  border: 2.5px solid var(--ink); border-radius: 14px; padding: 11px 14px; min-height: 52px;
}
.fld textarea { resize: vertical; line-height: 1.45; }
.fld input[dir=ltr] { text-align: left; }
.fld input:focus-visible, .fld textarea:focus-visible, .pick input:focus-visible + span { outline: 3px solid var(--coral); outline-offset: 2px; }
.sq-counter { margin: -8px 0 0; font-size: 14px; color: var(--muted); }

.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chips-col { flex-direction: column; }
.pick { display: block; cursor: pointer; }
.pick input { position: absolute; opacity: 0; }
.pick span {
  display: block; font-weight: 700; font-size: 17px; background: var(--paper);
  border: 2.5px solid var(--ink); border-radius: 14px; padding: 11px 16px; min-height: 50px;
  box-shadow: 0 3px 0 var(--ink); transition: transform .12s var(--ease-out), box-shadow .12s var(--ease-out), background-color .12s linear;
  user-select: none; -webkit-user-select: none;
}
.chips:not(.chips-col) .pick span { border-radius: 999px; padding: 9px 16px; min-height: 46px; }
.chips-num .pick span { min-width: 58px; text-align: center; font-size: 20px; font-weight: 800; }
.pick input:checked + span { background: var(--lime); }
.pick:active span { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
@media (hover: hover) and (pointer: fine) { .pick:hover span { background: #f3f7d9; } .pick:hover input:checked + span { background: var(--lime); } }

.sq-photo { display: flex; align-items: center; gap: 14px; }
.sq-photo > div { display: grid; gap: 6px; justify-items: start; }
.sq-photo-prev { flex: none; width: 84px; height: 84px; border-radius: 50%; border: 2.5px dashed var(--ink); background: var(--paper) center / cover no-repeat; }
.sq-photo-prev.on { border-style: solid; }
.sq-consent { display: flex; align-items: flex-start; gap: 10px; font-weight: 700; font-size: 17px; line-height: 1.4; cursor: pointer; }
.sq-consent input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--ink); }

.sq-back { font: inherit; font-weight: 700; font-size: 16px; color: var(--muted); background: none; border: 0; cursor: pointer; padding: 14px 4px; margin-top: 6px; }
.sq-card { width: 100%; height: auto; border-radius: 14px; box-shadow: var(--shadow); }
.sq-done { justify-items: stretch; }
.sq-done .tag { justify-self: start; margin: 0; }
.sq-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
#preview .wcard { box-shadow: 0 6px 0 var(--ink); }

/* ---- one story card ---- */
.wcard {
  display: grid; gap: 12px; background: var(--paper); border: 2.5px solid var(--ink);
  border-radius: 20px; padding: 18px 20px; box-shadow: 0 6px 0 var(--ink); break-inside: avoid; scroll-margin-top: 90px;
}
.wcard p { margin: 0; }
.wcard:target { background: #f6fbdf; }
.wc-head { display: flex; gap: 12px; align-items: center; }
.wc-photo {
  flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
  background: var(--lime); border: 2.5px solid var(--ink); font-weight: 800; font-size: 32px;
}
.wc-photo img { width: 100%; height: 100%; object-fit: cover; }
.wc-name { font-weight: 800; font-size: 21px; line-height: 1.2; }
.wc-what { font-weight: 700; font-size: 16px; line-height: 1.3; }
.wc-cohort { font-size: 14px; color: var(--muted); font-weight: 700; }
.wc-quote { margin: 0; font-size: 22px; font-weight: 700; line-height: 1.38; white-space: pre-line; }
.wc-before { font-size: 15px; color: var(--muted); }
.wc-before s { text-decoration-color: var(--coral); text-decoration-thickness: 2.5px; }
.wc-made { display: flex; flex-wrap: wrap; gap: 6px; }
.wc-made .chip { font-size: 14px; padding: 2px 10px; }
.wc-line { font-size: 16px; }
.wc-muscle { font-size: 15px; }
.wc-links { display: flex; flex-wrap: wrap; gap: 8px 16px; padding-top: 2px; }
.wc-links a { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--ink); }

/* ---- the wall ---- */
.wall-hero { max-width: 1180px; margin: 0 auto; padding: 40px 20px 8px; }
.wall-hero h1 { margin: 10px 0 14px; font-size: clamp(44px, 11vw, 80px); }
.wall-hero p { max-width: 640px; font-size: 20px; line-height: 1.45; }
.wall { max-width: 1180px; margin: 0 auto; padding: 18px 20px 30px; columns: 1; column-gap: 18px; }
.wall .wcard { margin: 0 0 18px; }
.wall-empty { max-width: 1180px; margin: 0 auto; padding: 10px 20px 40px; font-size: 20px; }
.wall-end { max-width: 1180px; margin: 0 auto; padding: 10px 20px 70px; display: grid; gap: 16px; }
.wall-end div { background: var(--ink); color: var(--cream); border-radius: 20px; padding: 22px; display: grid; gap: 12px; justify-items: start; }
.wall-end h2 { margin: 0; font-size: 28px; }
.wall-end p { margin: 0; }
@media (min-width: 760px) {
  .wall { columns: 2; }
  .wall-end { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1080px) {
  .wall { columns: 3; }
  .wall-hero { padding-top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .sq-step.enter { animation: none; }
  .sq-track i, .pick span { transition: none; }
}
