/* ── Dossier / creative-pages stylesheet ─────────────────────────────────
   Shared by templates/template-{cv,missions,about,uses,bitsol}.php
   Reuses the design tokens defined in style.css :root (--bg, --surface,
   --border, --accent, --accent-dim, --text, --muted). No new hex colors
   duplicate an existing token.
   ────────────────────────────────────────────────────────────────────── */

.dossier-wrap {
    max-width: 760px;
    margin: 0 auto;
    padding: 64px 24px 96px;
}

/* ── Section headers (echo .hud-label from style.css) ───────────────── */
.dossier-section {
    margin-top: 48px;
}
.dossier-section .hud-label {
    margin-bottom: 18px;
    font-size: 0.72rem;
}

/* ── Header block ─────────────────────────────────────────────────────── */
.dossier-header {
    position: relative;
    overflow: hidden;
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: 0 0 0 1px var(--accent), 0 0 40px rgba(0, 255, 204, 0.05);
    padding: 28px 28px 32px;
}
.dossier-header::before {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    height: 40%;
    background: linear-gradient(to bottom, transparent, rgba(0, 255, 204, 0.08), transparent);
    animation: dossier-scanline 5s linear infinite;
    pointer-events: none;
}
@keyframes dossier-scanline {
    0%   { transform: translateY(-120%); }
    100% { transform: translateY(320%); }
}

.dossier-header-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}
.status-led {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 6px var(--accent), 0 0 12px var(--accent);
    animation: dossier-blink 1.6s ease-in-out infinite;
    flex-shrink: 0;
}
@keyframes dossier-blink {
    0%, 100% { opacity: 1; }
    50%      { opacity: 0.25; }
}
.dossier-stamp {
    font-size: 0.66rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 3px 8px;
    opacity: 0.85;
}

.dossier-callsign {
    font-size: 1.6rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    color: var(--text);
    margin-bottom: 6px;
}
.dossier-rank,
.dossier-status {
    font-size: 0.8rem;
    color: var(--muted);
    letter-spacing: 0.04em;
}
.dossier-profile {
    margin-top: 18px;
    font-size: 0.9rem;
    line-height: 1.8;
    color: var(--text);
}

.dossier-download {
    margin-top: 48px;
    text-align: center;
}

/* ── Timeline (Mission Log) ──────────────────────────────────────────── */
.timeline {
    list-style: none;
    position: relative;
    padding-left: 28px;
}
.timeline::before {
    content: "";
    position: absolute;
    left: 5px;
    top: 6px;
    bottom: 6px;
    width: 2px;
    background: var(--border);
}
.timeline li {
    position: relative;
    padding-bottom: 32px;
}
.timeline li:last-child {
    padding-bottom: 0;
}
.timeline li::before {
    content: "";
    position: absolute;
    left: -28px;
    top: 4px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--bg);
    border: 2px solid var(--accent);
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.3);
}
.timeline-date {
    font-size: 0.7rem;
    color: var(--accent);
    letter-spacing: 0.05em;
    opacity: 0.75;
    font-variant-numeric: tabular-nums;
    margin-bottom: 4px;
}
.timeline-org {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.timeline-role {
    font-size: 0.78rem;
    color: var(--muted);
    margin-top: 2px;
    margin-bottom: 8px;
    letter-spacing: 0.03em;
}
.timeline-desc {
    font-size: 0.84rem;
    line-height: 1.7;
    color: var(--muted);
}

/* ── Training / education cards ──────────────────────────────────────── */
.training-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.training-card {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 18px 20px;
}
.training-range {
    font-size: 0.68rem;
    color: var(--accent);
    opacity: 0.75;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
    font-variant-numeric: tabular-nums;
}
.training-title {
    font-size: 0.98rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 2px;
}
.training-org {
    font-size: 0.78rem;
    color: var(--muted);
    margin-bottom: 8px;
}
.training-desc {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--muted);
}

/* ── Gauges (systems proficiency / languages) ────────────────────────── */
.gauge-list {
    list-style: none;
}
.gauge-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px solid var(--border);
}
.gauge-list li:last-child {
    border-bottom: none;
}
.gauge-name {
    flex: 0 0 160px;
    font-size: 0.82rem;
    color: var(--text);
}
.gauge-sub {
    color: var(--muted);
    font-size: 0.72rem;
}
.gauge-track {
    flex: 1;
    height: 8px;
    background: var(--bg);
    border: 1px solid var(--border);
    overflow: hidden;
    display: block;
}
.gauge-bar {
    display: block;
    height: 100%;
    width: var(--lvl);
    background: linear-gradient(to right, var(--accent), var(--accent));
    box-shadow: 0 0 8px rgba(0, 255, 204, 0.35);
    transition: width 1.1s cubic-bezier(0.16, 1, 0.3, 1);
}
.gauge-val {
    flex: 0 0 30px;
    text-align: right;
    font-size: 0.74rem;
    color: var(--accent);
    opacity: 0.8;
    font-variant-numeric: tabular-nums;
}

/* Bars start collapsed only once JS has taken over reveal duty. */
html.js-reveal .gauge-bar { width: 0; }
html.js-reveal .in-view .gauge-bar { width: var(--lvl); }

/* ── Mission cards (Missions template) ───────────────────────────────── */
.mission-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.mission-card {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    transition: border-color 0.15s, box-shadow 0.15s;
}
.mission-card:hover {
    border-color: var(--accent);
    box-shadow: 0 0 18px rgba(0, 255, 204, 0.12);
}
.mission-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.mission-code {
    font-size: 0.68rem;
    color: var(--muted);
    letter-spacing: 0.08em;
}
.mission-card-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text);
}
.mission-card-brief {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--muted);
}
.mission-card-link {
    font-size: 0.78rem;
    color: var(--accent);
    opacity: 0.8;
    align-self: flex-start;
}
.mission-card-link:hover {
    opacity: 1;
}

/* ── Status badges ────────────────────────────────────────────────────── */
.status-badge {
    font-size: 0.62rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    padding: 3px 9px;
    border: 1px solid var(--border);
    white-space: nowrap;
}
.status-active {
    color: var(--accent);
    border-color: var(--accent);
}
.status-completed {
    color: var(--muted);
}
.status-dev {
    color: #e8c34a;
    border-color: #e8c34a;
}

/* ── Stack tag chips ──────────────────────────────────────────────────── */
.stack-tags {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.stack-tag {
    font-size: 0.68rem;
    letter-spacing: 0.04em;
    color: var(--muted);
    border: 1px solid var(--border);
    padding: 3px 9px;
}

/* ── Contact row (About template) ────────────────────────────────────── */
.contact-row {
    margin-top: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.86rem;
}

/* ── Info cards (title + short paragraph — Bitsol template) ───────────── */
.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}
.info-card {
    border: 1px solid var(--border);
    background: var(--surface);
    padding: 18px 20px;
}
.info-card-title {
    font-size: 0.92rem;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}
.info-card-desc {
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--muted);
}

/* ── Subsection label (e.g. expertise categories within a section) ────── */
.subsection-label {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--accent);
    opacity: 0.8;
    margin: 22px 0 8px;
}
.subsection-label:first-child {
    margin-top: 0;
}

/* ── Scroll reveal ────────────────────────────────────────────────────── */
.reveal {
    opacity: 1;
    transform: none;
    transition: opacity 0.6s ease, transform 0.6s ease;
}
html.js-reveal .reveal {
    opacity: 0;
    transform: translateY(16px);
}
html.js-reveal .reveal.in-view {
    opacity: 1;
    transform: none;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 720px) {
    .dossier-wrap {
        padding: 48px 16px 72px;
    }
    .dossier-callsign {
        font-size: 1.3rem;
    }
    .mission-grid,
    .training-grid,
    .info-grid {
        grid-template-columns: 1fr;
    }
    .gauge-name {
        flex-basis: 108px;
        font-size: 0.74rem;
    }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .gauge-bar { transition: none; }
  .dossier-header::before, .status-led { animation: none; }
}
