/* Support (owner note 55): The Depths at night. Brass question tags in the dark water; a riveted brass plate where the
   submarine's third searchlight lands. One screen on a laptop. */
:root { --ink: #EAF2F4; --dim: #B9C9CF; --faint: #84979F; --brass: #C99A4B; --brass-hi: #E9C47E; --brass-lo: #7A5826; --glass: #0d1b26; --gold: #FFC867; }
body.support { margin: 0; color: var(--ink); background: #070d16; }

.bar { position: absolute; z-index: 20; left: 0; right: 0; top: 0; display: flex; justify-content: space-between; align-items: center;
  padding: 18px clamp(18px, 3vw, 48px); }
.bar .wordmark { font-family: var(--pixel); font-size: 18px; letter-spacing: .08em; color: var(--ink); text-decoration: none; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
.bar-links { display: flex; align-items: center; gap: 22px; }
.bar .back { font-family: var(--tiny); font-size: 12px; letter-spacing: .06em; color: var(--ink); text-decoration: none; opacity: .9; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); }
.bar .get { font-family: var(--tiny); font-size: 11.5px; letter-spacing: .07em; text-transform: uppercase; text-decoration: none; color: #1F1915;
  background: var(--gold); padding: 9px 13px; border-radius: 8px; white-space: nowrap; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.deep { position: relative; height: 100vh; height: 100svh; min-height: 640px; overflow: hidden; }
.view { position: absolute; inset: 0; overflow: hidden; }
.world { position: absolute; inset: 0; }
.shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(90deg, rgba(4, 8, 14, .72) 0, rgba(4, 8, 14, .45) 20%, rgba(4, 8, 14, 0) 34%), linear-gradient(to bottom, rgba(4, 8, 14, .5), rgba(4, 8, 14, 0) 15%); }
.fx { position: absolute; image-rendering: pixelated; image-rendering: crisp-edges; pointer-events: none; }

/* The questions, in the dark water on the left */
.panel { position: absolute; z-index: 5; left: clamp(18px, 2.6vw, 48px); top: clamp(80px, 11vh, 120px); width: min(280px, 19.5vw); }
.kicker { margin: 0 0 6px; font-family: var(--tiny); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--brass-hi); }
h1 { margin: 0 0 16px; font-family: var(--pixel); font-weight: 500; font-size: clamp(28px, 2.6vw, 40px); line-height: 1.05; text-shadow: 0 2px 16px rgba(0, 0, 0, .7); }
.questions h2 { margin: 14px 0 6px; font-family: var(--tiny); font-weight: 400; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.questions h2:first-child { margin-top: 0; }
.q { position: relative; display: block; width: 100%; margin: 0 0 5px; padding: 7px 10px 7px 24px; border: 0; cursor: pointer; text-align: left;
  font: 500 13px/1.3 var(--body); color: var(--dim); background: rgba(10, 22, 32, .55);
  box-shadow: inset 0 0 0 1px rgba(201, 154, 75, .28); transition: background .25s, color .25s, box-shadow .25s; }
.q::before { content: ""; position: absolute; left: 10px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, var(--brass-hi), var(--brass-lo)); }
.q:hover { color: var(--ink); background: rgba(14, 30, 42, .75); }
.q[aria-selected="true"] { color: #1c140a; background: linear-gradient(var(--brass-hi), var(--brass)); box-shadow: inset 0 0 0 1px var(--brass-lo), 0 0 18px rgba(233, 196, 126, .25); }
.q[aria-selected="true"]::before { background: #fff6dc; box-shadow: 0 0 6px #fff6dc; }
.q.up { margin-top: 14px; }

/* The brass plate: riveted, stepped corners, dark glass inside, lit by the beam */
.plate { position: absolute; z-index: 6; width: min(420px, 32vw); padding: 20px 22px 18px; color: var(--ink);
  --b: 5px;
  background:
    radial-gradient(circle at 12px 12px, var(--brass-hi) 0 2px, transparent 2.5px), radial-gradient(circle at calc(100% - 12px) 12px, var(--brass-hi) 0 2px, transparent 2.5px),
    radial-gradient(circle at 12px calc(100% - 12px), var(--brass-hi) 0 2px, transparent 2.5px), radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), var(--brass-hi) 0 2px, transparent 2.5px),
    radial-gradient(120% 90% at 0% 50%, rgba(200, 230, 255, .12), rgba(200, 230, 255, 0) 60%),
    linear-gradient(var(--glass), #0a141d);
  box-shadow: inset 0 0 0 var(--b) var(--brass), inset 0 0 0 calc(var(--b) + 1px) var(--brass-lo), inset 0 1px 0 calc(var(--b) - 3px) var(--brass-hi), 0 18px 40px rgba(0, 0, 0, .55);
  clip-path: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  opacity: 0; transform: translateX(-10px); transition: opacity .4s, transform .5s var(--ease); }
.plate.on { opacity: 1; transform: none; }
.plate h3 { margin: 4px 0 10px; font-family: var(--pixel); font-weight: 400; font-size: 21px; line-height: 1.15; color: var(--brass-hi); }
.plate p { margin: 0 0 9px; font-size: 14.5px; line-height: 1.55; color: var(--dim); }
.plate p b, .plate li b { color: var(--ink); font-weight: 600; }
.plate ol { margin: 0 0 10px; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 7px; }
.plate li { counter-increment: s; display: grid; grid-template-columns: 24px minmax(0, 1fr); font-size: 14.5px; line-height: 1.5; color: var(--dim); }
.plate li::before { content: counter(s); font-family: var(--tiny); font-size: 11px; color: #1c140a; background: var(--brass-hi); width: 17px; height: 17px; display: grid; place-items: center; margin-top: 2px; }
.plate .note { font-size: 13px; color: var(--faint); }
.plate a { color: var(--brass-hi); text-underline-offset: 3px; }
.plate .k { font-family: var(--tiny); font-size: 13px; letter-spacing: .03em; color: var(--ink); }   /* the path people must follow: 13 px (review S4) */

.fine { position: absolute; z-index: 5; right: clamp(18px, 3vw, 48px); bottom: 10px; margin: 0; font-size: 11px; color: var(--faint); }
.draft { opacity: .8; }

@media (max-width: 900px) {
  .bar .back .lbl { display: none; }
  .deep { height: auto; min-height: 0; overflow: visible; }
  .view { position: relative; inset: auto; height: 60vw; }
  .shade { background: linear-gradient(to bottom, rgba(4, 8, 14, .5), rgba(4, 8, 14, 0) 30%, rgba(4, 8, 14, 0) 75%, #070d16 100%); }
  .fx { display: none; }
  .panel { position: static; width: auto; padding: 14px 18px 0; }
  .q { font-size: 15px; padding: 10px 12px 10px 26px; }
  .plate { position: static; width: auto; margin: 2px 0 10px; transform: none; }
  .fine { position: static; padding: 14px 18px 26px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* Without JavaScript (and for search engines): the questions and answers as a plain, readable page (#faq). */
html:not(.js) .deep { height: auto; min-height: 0; overflow: visible; }
html:not(.js) .panel { position: relative; left: auto; top: auto; width: auto; max-width: 680px; padding: 96px clamp(18px, 4vw, 48px) 48px; }
.page-text h2 { margin: 30px 0 4px; font-family: var(--tiny); font-weight: 400; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.page-text .qa h3 { margin: 22px 0 6px; font-family: var(--pixel); font-weight: 500; font-size: 20px; color: var(--brass-hi); }
.page-text .a { font-size: 15px; line-height: 1.5; color: var(--dim); }
.page-text .a p, .page-text .a ol { margin: 0 0 8px; }
.page-text a { color: var(--brass-hi); }

/* Short laptop windows (review S-7): the twelve tags sit a little closer, and if they still don't fit, the list
   scrolls inside its own column instead of being cut off ("Still stuck?" must always be reachable). */
@media (min-width: 901px) and (max-height: 760px) {
  h1 { margin-bottom: 10px; }
  .questions h2 { margin: 10px 0 4px; }
  .q { margin-bottom: 3px; padding-top: 5px; padding-bottom: 5px; }
  .q.up { margin-top: 10px; }
  .panel { max-height: calc(100vh - clamp(80px, 11vh, 120px) - 16px); max-height: calc(100svh - clamp(80px, 11vh, 120px) - 16px); overflow-y: auto; scrollbar-width: thin; }
}
