/* The Forms page and its drawer (assets/js/forms.js). Linked from forms.html only, so no other page pays for it. */
/* forms page: a form that is not open yet says so in words, in the card's own place for the button */
.route-soon { margin: 0; font-size: 14.5px; font-weight: 600; color: var(--ink-soft); border-left: 2px solid var(--gold); padding-left: 12px; }
.plain-list { list-style: none; margin: 0; padding: 0; max-width: 78ch; border-top: 1px solid var(--line); }
.plain-list li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.plain-list a { font-weight: 700; color: var(--navy); margin-right: 8px; border-bottom: 2px solid var(--gold); }
.plain-list a:hover { color: var(--gold-deep); }

/* ==================================================================
   Forms drawer (assets/js/forms.js): a Google Form opens inside the site.
   Slides in from the right on the drawer curve the motion study found at
   Linear, Vercel and Notion; a full-screen sheet from below on phones.
   No boxed frame: one hairline under the header, a gold kanok stroke over
   the title, and white space everywhere else.
   ================================================================== */
.fsheet { position: fixed; inset: 0; z-index: 820; }
.fsheet[hidden] { display: none !important; }
.fsheet-backdrop {
  position: absolute; inset: 0;
  background: color-mix(in srgb, var(--navy-deep) 62%, transparent);
  backdrop-filter: blur(3px);
  opacity: 0; transition: opacity .32s var(--ease);
}
.fsheet-in .fsheet-backdrop { opacity: 1; }

.fsheet-panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(720px, 100%);
  display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  box-shadow: -40px 0 90px -50px rgba(10,18,32,.7);
  transform: translateX(100%);
  transition: transform .45s cubic-bezier(.32,.72,0,1);
}
.fsheet-in .fsheet-panel { transform: none; }
.fsheet-panel:focus { outline: none; }

.fsheet-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 16px;
  padding: 22px 24px 18px 30px;
  border-bottom: 1px solid var(--line);
}
.fsheet-eyebrow {
  display: flex; align-items: center; gap: 10px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint);
}
.fsheet-eyebrow::before { content: ''; width: 5px; height: 14px; background: var(--gold); transform: skewX(-30deg); }
.fsheet-head h2 { margin: 8px 0 0; font-size: clamp(1.25rem, 1rem + 1vw, 1.65rem); letter-spacing: -.025em; line-height: 1.2; max-width: 26ch; }
.fsheet-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.fsheet-ext { font-size: 13.5px; font-weight: 700; color: var(--navy); border-bottom: 2px solid var(--gold); padding: 2px 0; white-space: nowrap; }
.fsheet-ext::after { content: " \2197"; }
.fsheet-ext:hover { color: var(--gold-deep); }
.fsheet-close {
  width: 44px; height: 44px; line-height: 1;
  background: none; border: 0; cursor: pointer;
  font-size: 28px; color: var(--ink-faint);
  transition: color .25s, transform .25s var(--ease);
}
.fsheet-close:hover { color: var(--ink); transform: rotate(90deg); }

.fsheet-stage { position: relative; flex: 1; min-height: 0; background: var(--paper); }
.fsheet-frame {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent;
  opacity: 0; transition: opacity .35s var(--ease);
}
.is-ready .fsheet-frame { opacity: 1; }

.fsheet-load {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  transition: opacity .3s var(--ease);
}
.is-ready .fsheet-load { opacity: 0; pointer-events: none; }
.fsheet-load-text { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink-soft); text-align: center; padding: 0 24px; }
.fsheet-bar { position: relative; display: block; width: 132px; height: 3px; background: var(--line); overflow: hidden; }
.fsheet-bar::after {
  content: ''; position: absolute; inset: 0 auto 0 0; width: 44%; background: var(--gold);
  transform: translateX(-110%) skewX(-30deg); animation: fsheet-run 1.15s cubic-bezier(.65,0,.35,1) infinite;
}
@keyframes fsheet-run { to { transform: translateX(260%) skewX(-30deg); } }
.is-slow .fsheet-bar::after { animation: none; transform: none; width: 100%; }
.is-slow .fsheet-ext { color: var(--ink); }

.fsheet-note { margin: 0; padding: 10px 24px 12px 30px; font-size: 12px; line-height: 1.5; color: var(--ink-faint); border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .fsheet-panel { width: 100%; height: 100dvh; transform: translateY(100%); box-shadow: none; }
  .fsheet-in .fsheet-panel { transform: none; }
  .fsheet-head { padding: 14px 8px 12px 20px; }
  .fsheet-note { padding-left: 20px; padding-right: 20px; }
}
@media (prefers-reduced-motion: reduce) {
  .fsheet-backdrop, .fsheet-panel, .fsheet-frame, .fsheet-load { transition: none; }
  .fsheet-panel { transform: none; }
  .fsheet-bar::after { animation: none; transform: none; width: 100%; }
  .fsheet-close:hover { transform: none; }
}
