/* Shared transmission redesign. The circuit geometry belongs to ARCHIVE; the story remains the Unit's voice. */
.transmission-page { --tx-accent: #d398f6; --tx-bar-filter: hue-rotate(115deg); background: #030305; }
.transmission-page::before { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .38;
    background: url('../assets/archive/computer-left-v2.webp') left top / clamp(100px, 24vw, 340px) auto no-repeat,
        url('../assets/archive/computer-right-v2.webp') right top / clamp(100px, 24vw, 340px) auto no-repeat; }
.transmission-page .transmission-doc { width: min(960px, 94%); max-width: none; min-height: 0; margin: 36px auto 64px;
    padding: 56px clamp(24px, 5vw, 64px) 48px; gap: 38px; opacity: 1; transition: none;
    background: none; border: 0; box-shadow: none; }

.transmission-page .tx-header { gap: 12px; }
.transmission-page .tx-label { color: #85efb1; font-family: 'Courier New', monospace; font-size: 13px; letter-spacing: .14em; text-shadow: none; }
.transmission-page .tx-title { color: #f1edf4; font-size: clamp(28px, 4vw, 44px); letter-spacing: .06em; margin: 0; line-height: 1.25; }
.transmission-page .tx-meta { padding: 16px 18px; margin: 0; background: #07110c; border-block: 1px solid #244c38; border-left: 2px solid #ff514b;
    color: #b9dcc7; font-size: 12px; letter-spacing: .06em; overflow-wrap: anywhere; }
.transmission-page .tx-prose { max-width: 72ch; font-size: 17px; }
.transmission-page .tx-prose p { font-size: 17px; line-height: 1.95; color: #e2dce8; letter-spacing: 0; }
.transmission-page .tx-prose em { color: #c6bdce; }
.transmission-page .tx-section-label { color: var(--tx-accent); font-size: 13px; letter-spacing: .13em; border-color: #39303f; }
.transmission-page .tx-timestamp { color: #c0aacd; font-size: 13px; letter-spacing: .08em; }
.transmission-page .archive-report { border: 1px solid #2f7052; border-left: 2px solid #ff514b; padding: 24px; background: #07110c; }
.transmission-page .archive-report pre { font-size: 14px; line-height: 1.85; color: #dff5e8; overflow-wrap: anywhere; }
.transmission-page .tx-divider { border-color: #29222f; }
.transmission-page .tx-end-doctrine { color: var(--tx-accent); letter-spacing: .14em; }
.transmission-page .tx-end-label { color: #bcb6c4; font-size: 12px; letter-spacing: .12em; }
.transmission-page .transmission-gate { width: 100%; max-width: none; height: 100%; max-height: none; margin: 0; border: 0;
    padding: 32px 20px; color: #dff5e8; background: #030305; }
.transmission-page .transmission-gate::before { content: ''; position: fixed; inset: 0; pointer-events: none; opacity: .32; background: url('../assets/archive/computer-left-v2.webp') left top / clamp(100px, 24vw, 340px) auto no-repeat, url('../assets/archive/computer-right-v2.webp') right top / clamp(100px, 24vw, 340px) auto no-repeat; }
.transmission-page .transmission-gate:not([open]) { display: none; }
.transmission-page .transmission-gate::backdrop { background: #030705; }
.transmission-page .gate-terminal { max-width: 820px; z-index: 1; gap: 22px; flex-shrink: 0; font-family: 'Courier New', monospace; }
.transmission-page .gate-header { color: #b9dcc7; font-size: 12px; letter-spacing: .1em; border-color: #244c38; }
.transmission-page .gate-warning-label { color: #ff8a84; border-left: 2px solid #ff514b; padding: 12px 14px; background: rgba(255, 81, 75, .08); font-size: 14px; line-height: 1.6; letter-spacing: .1em; text-shadow: none; }
.transmission-page .gate-body { color: #dff5e8; font-size: 15px; line-height: 1.9; }
.transmission-page .gate-actions { border-color: #244c38; gap: 12px; }
.transmission-page .gate-btn-access, .transmission-page .gate-btn-return { min-height: 48px; font-size: 12px; letter-spacing: .08em; justify-content: center; }
.transmission-page .gate-btn-access { background: #b62029; color: #fff; border-color: #ff6464; }
.transmission-page .gate-btn-access:hover { background: #d12c35; color: #fff; }
.transmission-page .gate-btn-access:disabled { cursor: wait; opacity: .65; }
/* In-story actions (Stream, Become an Ember) reuse the gate button class; sized to their text and left-aligned
   instead of stretching across the column like a banner (user request). */
.transmission-page .transmission-doc .gate-btn-access { display: inline-flex; align-items: center; align-self: flex-start; width: auto; max-width: 100%;
    padding: 12px 28px; text-decoration: none; }
/* Streaming icons replace the old DistroKid Stream button and "STREAM ON: ALL PLATFORMS" line (Nov 3). */
.transmission-page .transmission-doc .stream-icons { align-self: flex-start; margin: 16px 0; }
/* Record links are green; the icons keep the label's red so the row reads as one action. */
.transmission-page .transmission-doc .stream-dsp { color: var(--stream-accent, #ff8a84); }
.transmission-page .transmission-doc .stream-dsp:hover, .transmission-page .transmission-doc .stream-dsp:focus-visible { color: #fff; }
.transmission-page .gate-btn-return { color: #c9f5d9; border-color: #47785b; }
.transmission-page .gate-decrypt-status { min-height: 20px; font-size: 12px; letter-spacing: .08em; text-shadow: none; }
/* Record navigation under the frame (built by scripts/transmission-nav.mjs): the HUD sheet's own boxes and
   waveform. Boxes stretch to fit their text; the waveform is the archive link. */
.tx-record-nav { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 14px;
    width: min(960px, 94%); margin: -28px auto 64px; }
.tx-nav-box { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; min-height: 104px;
    padding: 20px 40px 20px 66px; color: #dff5e8; }
/* The box art sits on its own layer, dimmed to the frame outline's .55, so the text stays at full strength. */
.tx-nav-box::before { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .55; pointer-events: none; transition: opacity .2s;
    background: url('../assets/archive/hud-nav-prev.webp') center / 100% 100% no-repeat; }
.tx-nav-next { align-items: flex-end; padding: 20px 66px 20px 40px; text-align: right; }
.tx-nav-next::before { background-image: url('../assets/archive/hud-nav-next.webp'); }
a.tx-nav-box:hover::before { opacity: .9; }
.tx-nav-label { color: #c9f5d9; font-family: 'Orbitron', sans-serif; font-size: 12px; letter-spacing: .16em; text-transform: uppercase; }
.tx-nav-record { max-width: 100%; overflow: hidden; color: #85efb1; font-family: 'Courier New', monospace; font-size: 14px; letter-spacing: .14em;
    text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.tx-nav-title { color: #e2dce8; letter-spacing: .06em; text-transform: uppercase; }
.tx-nav-box .arrow { position: absolute; top: 50%; right: 30px; width: 20px; height: 20px; color: #85efb1; transform: translateY(-50%); }
.tx-nav-prev .arrow { right: auto; left: 30px; transform: translateY(-50%) scaleX(-1); }
.tx-nav-archive:hover { filter: brightness(1.3) drop-shadow(0 0 10px rgba(133, 239, 177, .35)); }
a.tx-nav-box:focus-visible, .tx-nav-archive:focus-visible { outline: 2px solid #85efb1; outline-offset: 4px; }
.tx-nav-box.is-end { opacity: .45; }
.tx-nav-archive { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 6px; color: #85efb1; transition: filter .2s; }
.tx-nav-archive img { width: 52px; height: auto; }
.tx-nav-archive span { font-family: 'Orbitron', sans-serif; font-size: 10px; letter-spacing: .14em; text-align: center; text-transform: uppercase; }
@media (max-width: 700px) {
    .tx-record-nav { grid-template-columns: minmax(0, 1fr); gap: 10px; margin-top: -20px; }
    .tx-nav-box { min-height: 88px; padding-block: 16px; }
    .tx-nav-box::before { opacity: .48; }
    .tx-nav-archive { order: 3; }
}
@media (prefers-reduced-motion: reduce) {
    .tx-nav-box::before, .tx-nav-archive { transition: none; }
}
@media (max-width: 600px) {
    /* Phones skip the circuit scenery (user decision Nov 3): at 20% behind the frame it cost about 270 KB per page.
       Overriding the background means the browser never downloads the two images. */
    .transmission-page::before, .transmission-page .transmission-gate::before { background: none; }
    .transmission-page .transmission-doc { width: 94%; margin-top: 20px; padding: 32px 22px; gap: 28px; }
    .transmission-page .tx-prose p { font-size: 16px; line-height: 1.9; }
    .transmission-page .archive-report { padding: 18px 14px; }
    .transmission-page .transmission-gate { padding: 16px 8px; align-items: safe center; }
    .transmission-page .gate-terminal { gap: 16px; }
    .transmission-page .gate-header { font-size: 12px; }
    .transmission-page .gate-body { font-size: 14px; }
}

/* Layered edging and section bars are cropped from the user's HUD artwork. Border-image
   stretches only its side rails, so a long story never stretches the corner details. */
.transmission-page .pilot-outline { position: relative; isolation: isolate; border: 0; background: none; }
.transmission-page .pilot-outline::before { content: ''; position: absolute; inset: -12px; z-index: -1; width: auto; height: auto;
    border: 1px solid transparent; border-image-source: url('../assets/archive/hud-outline-v2.webp');
    border-image-slice: 146 73 146 73; border-image-width: clamp(42px, 7vw, 82px) clamp(18px, 3.4vw, 40px);
    border-image-repeat: stretch; opacity: .55; background: none; clip-path: none; pointer-events: none; }
.transmission-page .pilot-outline::after { content: ''; position: absolute; inset: -10px; z-index: -2; width: auto; height: auto;
    border: 0; background: #050608; opacity: 1; clip-path: polygon(18px 0, calc(100% - 18px) 0, 100% 18px, 100% calc(100% - 18px), calc(100% - 18px) 100%, 18px 100%, 0 calc(100% - 18px), 0 18px); }
.transmission-page .gate-terminal { padding: 68px 52px 48px; }
.pilot-outline-label { position: absolute; top: 18px; left: 100px; right: 100px; margin: 0; color: #9fc9b0; font-family: 'Courier New', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.pilot-outline-label span { color: #df777b; }
.transmission-page .tx-section-label { position: relative; isolation: isolate; display: flex; align-items: center;
    min-height: 48px; padding: 8px 20px; border: 0; }
.transmission-page .tx-section-label::before { content: ''; position: absolute; inset: 0; z-index: -1;
    background: url('../assets/archive/hud-section.webp') left center / 100% 100% no-repeat; opacity: .62; filter: var(--tx-bar-filter); pointer-events: none; }
.transmission-page .tx-section-label span { background: #050608; padding: 3px 10px; margin-left: -2px; }
.transmission-page .archive-report { border-left-width: 3px; border-left-color: #b84b50; }
.transmission-page .archive-report .archive-asset-link { color: #ef9999; text-decoration: underline; text-underline-offset: 4px; }
.transmission-page .archive-report .archive-asset-link:hover { color: #ffc3c3; }
.transmission-page .archive-report .archive-asset-link:focus-visible { outline-color: #ff8a84; }
@media (max-width: 600px) {
    .transmission-page .gate-terminal { padding: 38px 28px 32px; }
    .transmission-page .pilot-outline::before { inset: -6px; opacity: .48; }
    .transmission-page .pilot-outline::after { inset: -4px; }
    .transmission-page .tx-section-label { min-height: 46px; padding-inline: 10px; }
    .transmission-page .tx-section-label span { padding-inline: 6px; }
    .pilot-outline-label { display: none; }
}

.transmission-page .tx-section-archive { color: #85efb1; }
.transmission-page .tx-section-archive::before { filter: none; }

/* Existing member signature records retain their own voice and colour. */
.transmission-page[data-voice="ara"], .transmission-page .ara-sig { --tx-accent: #ff6464; --tx-bar-filter: hue-rotate(205deg); --signature: #ff9875; }
.transmission-page[data-voice="yuri"], .transmission-page .yuri-sig { --tx-accent: #d2dce8; --tx-bar-filter: saturate(0) brightness(1.1); --signature: #c3d3e4; }
.transmission-page[data-voice="minji"], .transmission-page .minji-sig { --tx-accent: #59c9ff; --tx-bar-filter: hue-rotate(50deg); --signature: #70c4ff; }
.transmission-page[data-voice="hana"], .transmission-page .hana-sig { --tx-accent: #d398f6; --tx-bar-filter: hue-rotate(115deg); --signature: #d398f6; }
.transmission-page .archive-report:is(.ara-sig, .yuri-sig, .minji-sig, .hana-sig) { border-left-color: var(--signature); }
.transmission-page .archive-report:is(.ara-sig, .yuri-sig, .minji-sig, .hana-sig) pre { color: var(--signature); }
/* Album layouts keep their content and actions, within the narrower reading frame. */
.transmission-page .album-dossier-hero { grid-template-columns: minmax(220px, 320px) minmax(0, 1fr); gap: 32px; margin-bottom: 12px; }
.transmission-page .album-dossier-title { font-size: clamp(26px, 3.2vw, 44px); line-height: 1.12; overflow-wrap: anywhere; }
.transmission-page .album-dossier-status { color: #d398f6; font-size: 12px; }
.transmission-page .album-dossier-copy { color: #d1c7d9; font-size: 14px; }
.transmission-page .album-track { min-height: 64px; }
.transmission-page .album-track-link { display: inline-flex; align-items: center; min-height: 44px; font-size: 12px; color: #d1c7d9; }
.transmission-page .album-track-number { font-size: 12px; color: #d398f6; }
@media (max-width: 700px) {
    .transmission-page .album-dossier-hero { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}
