/* About Area 51: the declassified dossier. Mobile first. */

.ab-toc { margin-top: 8px; }
.ab-toc .chip { font-size: 14px; }
@media (hover: hover) { .ab-toc .chip:hover { border-color: var(--text); } }

/* ---------- incident report: a paper file on the black desk ---------- */
.ab-doc { --paper: #EDE6CF; --ink: #1b1a14; position: relative; max-width: 880px; margin-inline: auto; background: var(--paper); color: var(--ink); border-radius: 10px; padding: 32px 20px 24px; font-family: var(--mono); box-shadow: 0 24px 60px #000; }
.ab-doc::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background-image: radial-gradient(#0000000f 1px, transparent 1.5px); background-size: 6px 6px; }
@media (min-width: 900px) { .ab-doc { padding: 56px 64px 40px; transform: rotate(-.4deg); } }
.ab-doc :focus-visible { outline-color: #000; }
.ab-stamp { position: absolute; top: 18px; right: 14px; padding: 6px 12px; border: 4px solid #B3141A; color: #B3141A; font: 400 clamp(14px, 3.6vw, 24px)/1 var(--display); text-transform: uppercase; transform: rotate(9deg); opacity: .85; pointer-events: none; }
.ab-doc-meta { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; max-width: 60%; }
.ab-doc-title { margin-top: 20px; font: 600 clamp(22px, 4vw, 30px)/1.2 var(--mono); text-transform: uppercase; letter-spacing: -.01em; max-width: 22ch; }
.ab-lore-tag { margin-top: 14px; display: inline-block; padding: 6px 10px; border: 1.5px dashed #1b1a1488; border-radius: 6px; font-size: 13px; line-height: 1.4; }
.ab-doc-body { margin-top: 8px; }
.ab-doc-body p { margin-top: 16px; font-size: 16px; line-height: 1.75; max-width: 64ch; }
.ab-red { display: inline; font: inherit; line-height: inherit; text-align: left; color: var(--ink); background: #7cff2b66; border-radius: 2px; padding: 0 3px; -webkit-box-decoration-break: clone; box-decoration-break: clone; cursor: pointer; transition: background-color .45s var(--ease-out), color .45s var(--ease-out); }
.js .ab-red[aria-pressed="false"] { color: transparent; background: #111; } /* hidden only when JS can reveal it */
@media (hover: hover) { .ab-red[aria-pressed="false"]:hover { background: #333; } }
.ab-doc-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 16px; border-top: 1.5px dashed #1b1a1455; }
.ab-all { --bg: var(--ink); --fg: var(--paper); }
.ab-margin { margin-top: 24px; padding: 14px 16px; border-left: 4px solid #B3141A; background: #ffffff66; font-family: var(--body); }
.ab-margin-h { font: 600 12px/16px var(--mono); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; }
.ab-margin .tbc { color: #5a4a00; background: #ffe60055; outline-color: #8a7400; }

/* ---------- timeline of sightings ---------- */
.ab-key-lore, .ab-key-real { font-weight: 600; color: var(--text); }
.ab-tl { list-style: none; margin-top: 16px; position: relative; padding-left: 28px; }
.ab-tl::before { content: ""; position: absolute; left: 7px; top: 8px; bottom: 8px; width: 2px; background: var(--s5); }
.ab-tl li { position: relative; padding: 18px 0; display: flex; flex-direction: column; gap: 6px; }
.ab-tl li::before { content: ""; position: absolute; left: -28px; top: 24px; width: 16px; height: 16px; border-radius: 50%; background: var(--void); border: 3px solid var(--muted); }
.ab-tl li:has(.ab-t-real)::before { border-color: var(--yellow); background: var(--yellow); }
.ab-tl-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ab-t-lore { color: var(--muted); border-style: dashed; }
.ab-t-real { color: var(--yellow); }

/* ---------- candy facts ---------- */
.ab-candy { background: var(--s1); border-block: 1px solid var(--line); }
.ab-facts { list-style: none; border-top: 1px solid var(--line); }
.ab-facts li { display: grid; grid-template-columns: 36px 1fr; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ab-facts .caption { padding-top: 4px; }
.ab-flavors span { font-weight: 600; }
.ab-specimen { display: grid; place-items: center; padding: 24px 0; }
.ab-specimen .pack { transform: rotate(-5deg); }

/* ---------- personnel ID badges (a short list, not a grid) ---------- */
.ab-badges { list-style: none; display: flex; flex-direction: column; gap: 16px; margin-top: 12px; }
@media (min-width: 760px) { .ab-badges { flex-direction: row; } .ab-badge { flex: 1; max-width: 460px; } }
.ab-badge { display: flex; gap: 16px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--s3); border: 1px solid var(--line); position: relative; }
.ab-badge::before { content: ""; position: absolute; top: -8px; left: 50%; width: 44px; height: 10px; margin-left: -22px; border-radius: 6px; background: var(--s6); }
.ab-photo { width: 84px; height: 104px; flex: none; display: grid; place-items: center; border-radius: 10px; border: 2px dashed var(--line-2); color: var(--muted); }
.ab-photo .i { width: 32px; height: 32px; }

/* ---------- values ---------- */
.ab-vlist { list-style: none; margin-top: 24px; border-top: 1px solid var(--line); }
.ab-vlist li { display: grid; grid-template-columns: 56px 1fr; gap: 16px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.ab-vlist li > div { display: flex; flex-direction: column; gap: 8px; max-width: 62ch; }
.ab-vnum { font: 400 28px/1 var(--display); color: var(--s6); -webkit-text-stroke: 1px var(--muted); padding-top: 2px; }
@media (min-width: 900px) { .ab-vlist li { grid-template-columns: 120px 1fr; } .ab-vnum { font-size: 44px; } }

/* ---------- find a store ---------- */
.ab-photo-fig { max-width: 440px; margin-inline: auto; width: 100%; }
.ab-photo-fig img { width: 100%; aspect-ratio: 1024 / 1536; object-fit: cover; border-radius: var(--r-card); border: 1px solid var(--line); background: var(--s3); }
.ab-photo-fig figcaption { margin-top: 8px; }
.ab-stores { display: flex; flex-direction: column; gap: 8px; }
.ab-inl { display: inline-block; width: 18px; height: 18px; vertical-align: -4px; margin-right: 6px; color: var(--muted); }

/* ---------- contact ---------- */
.ab-contact { border-top: 1px solid var(--line); }
.ab-contact > div { display: grid; gap: 4px; padding: 14px 0; border-bottom: 1px solid var(--line); }
@media (min-width: 600px) { .ab-contact > div { grid-template-columns: 12em 1fr; gap: 16px; } }
.ab-contact dt { font-weight: 600; }
@media (max-width: 899px) { .ab-find .ab-photo-fig { order: 2; max-width: 360px; } }
