/* The pilot request, on this page (js/pilot.js). One file, IDENTICAL in
   site/ and eridanus/: the accent comes from --pd-acc, which each film's
   close.css sets to its own. Dark glass over the film, logical properties
   only (CLAUDE.md §6). */
html.pd-open { overflow: hidden; }
.pd-backdrop {
  position: fixed; inset: 0; z-index: 200; /* above even the opening loader (100) */ display: grid; justify-items: center; align-items: start;
  overflow-y: auto; overscroll-behavior: contain; padding: 20px;
  background: rgba(2, 4, 8, .72); backdrop-filter: blur(8px);
}
@media (min-height: 760px) { .pd-backdrop { align-items: center; } }
.pd {
  position: relative; inline-size: min(520px, 100%); padding: 36px 32px 30px;
  border: 1px solid var(--line); border-radius: 22px; background: rgba(8, 12, 20, .94);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .7), 0 0 60px -30px var(--pd-acc);
  color: var(--text); text-align: start;
}
.pd-close {
  position: absolute; inset-block-start: 14px; inset-inline-end: 14px; inline-size: 36px; block-size: 36px;
  display: grid; place-items: center; border: 1px solid var(--line); border-radius: 999px;
  background: transparent; color: var(--mute); cursor: pointer;
}
.pd-close:hover, .pd-close:focus-visible { color: var(--text); border-color: var(--mute); }
.pd h2 { margin: 10px 0 8px; font-size: clamp(26px, 5vw, 34px); line-height: 1.15; font-weight: 600; }
.pd .dek { margin: 0 0 22px; color: var(--mute); font-size: 15px; line-height: 1.55; }
.pd form { display: grid; gap: 14px; }
.pd label { display: grid; gap: 6px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.pd input, .pd textarea {
  inline-size: 100%; box-sizing: border-box; padding: 11px 14px; border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255, 255, 255, .03); color: var(--text); font: 16px/1.4 var(--head); letter-spacing: normal; text-transform: none;
}
.pd input:focus-visible, .pd textarea:focus-visible { outline: 2px solid var(--pd-acc); outline-offset: 1px; border-color: transparent; }
.pd textarea { resize: vertical; min-block-size: 90px; }
.pd .hp {
  position: absolute; inline-size: 1px; block-size: 1px; margin: 0; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap; opacity: 0; pointer-events: none;
}
.pd .form-check:empty { display: none; }
.pd .form-error { margin: 0; color: var(--bad); font-size: 14px; line-height: 1.5; }
.pd .form-error a { color: inherit; }
.pd .send {
  justify-self: start; margin-block-start: 4px; padding: 12px 22px; border: 1px solid var(--pd-acc); border-radius: 999px;
  background: transparent; color: var(--pd-acc); font-family: var(--mono); font-size: 12.5px; letter-spacing: .08em; cursor: pointer;
}
.pd .send:hover, .pd .send:focus-visible { background: color-mix(in srgb, var(--pd-acc) 14%, transparent); }
.pd form[aria-busy="true"] .send { opacity: .6; cursor: progress; }
.pd-done .send { margin-block-start: 18px; }

/* [hidden] must WIN: an author `display` (the backdrop's grid, the form's)
   beats the browser's own rule for it, and the form then showed on load and
   could not be closed (2026-10-06). LAST in the file, so it wins
   on order as well as on weight — jsdom, which the test runs in, reads only
   order. ephor/css/base.css learned this first;
   web/tests/filmPilotDialog.test.js reads what is drawn. */
.pd-backdrop[hidden], .pd-backdrop [hidden] { display: none !important; }
