/* ==========================================================================
   View System — switcher, containers, and the evidence wall
   ========================================================================== */

/* ---------- Floating top-right cluster (view switcher + theme toggle) ---- */

.floating-controls {
    position: fixed;
    top: 1rem;
    right: 1rem;
    z-index: 110;
    display: flex;
    align-items: center;
    gap: 8px;
    pointer-events: none;
}
.floating-controls > * {
    pointer-events: auto;
}

/* ---------- View switcher tabs (compact segmented control) -------------- */

.view-switcher {
    background: color-mix(in srgb, var(--color-surface) 78%, transparent);
    border: 1px solid var(--color-border);
    border-radius: 100px;
    box-shadow: var(--shadow-md);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    overflow: hidden;
}

.view-switcher-inner {
    display: flex;
    gap: 2px;
    padding: 3px;
}

.view-tab {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.8rem;
    font-weight: 500;
    font-family: var(--font-sans);
    color: var(--color-text-secondary);
    background: transparent;
    border: 1px solid transparent;
    border-radius: 100px;
    transition: background var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}
.view-tab svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}
.view-tab:hover {
    background: color-mix(in srgb, var(--color-text) 8%, transparent);
    color: var(--color-text);
}
.view-tab.active {
    background: var(--color-text);
    color: var(--color-surface);
}

@media (prefers-color-scheme: dark) {
    .view-tab.active {
        background: #ffffff;
        color: #111111;
    }
}

/* ---------- View containers --------------------------------------------- */

.view {
    display: none;
}
.view.active {
    display: block;
}

/* The evidence wall fills the entire viewport behind the floating controls. */
.view--evidence {
    --view-stage-h: 100vh;
    height: 100vh;
    position: relative;
}

/* When the evidence wall is active, the body background matches the cork
   frame so any overscroll edges look right. */
[data-view="evidence"] body { background: #2c1f12; }
[data-view="evidence"] .timeline-progress { display: none; }

/* ==========================================================================
   EVIDENCE WALL view
   ========================================================================== */

.view--evidence {
    overflow: hidden;
    color: #2a1d10;
}

/* Cork board frame: clips the draggable board */
.evidence-frame {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    cursor: grab;
    /* Disable browser default touch handling so pinch-to-zoom and drag-to-pan
       are dispatched as pointer events for our custom gesture handler. */
    touch-action: none;
    background:
        /* darker corners (vignette) */
        radial-gradient(ellipse at 0% 0%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 35%),
        radial-gradient(ellipse at 100% 0%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 35%),
        radial-gradient(ellipse at 0% 100%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 35%),
        radial-gradient(ellipse at 100% 100%, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0) 35%),
        /* cork color base */
        linear-gradient(135deg, #b08a55, #94703f 50%, #7e5a30);
    user-select: none;
    box-shadow: inset 0 0 80px rgba(0, 0, 0, 0.5);
}
.evidence-frame.is-panning { cursor: grabbing; }

.evidence-board {
    position: absolute;
    top: 0;
    left: 0;
    transform: translate3d(0, 0, 0);
    transform-origin: 0 0;
    will-change: transform;
    /* Cork texture: layered noise-y radial gradients */
    background-color: #a8814e;
    background-image:
        radial-gradient(circle at 20% 30%, rgba(60, 30, 0, 0.35) 1px, transparent 2px),
        radial-gradient(circle at 60% 70%, rgba(30, 15, 0, 0.32) 1px, transparent 2px),
        radial-gradient(circle at 80% 20%, rgba(80, 50, 20, 0.3) 0.8px, transparent 2px),
        radial-gradient(circle at 30% 80%, rgba(50, 25, 0, 0.4) 1.2px, transparent 2.5px),
        radial-gradient(circle at 70% 40%, rgba(40, 20, 0, 0.32) 1px, transparent 2px),
        radial-gradient(circle at 10% 60%, rgba(90, 60, 30, 0.28) 1.4px, transparent 3px),
        linear-gradient(135deg, #b58c5a, #9a7544 50%, #82602f);
    background-size:
        18px 18px,
        14px 14px,
        22px 22px,
        16px 16px,
        20px 20px,
        24px 24px,
        100% 100%;
}

/* SVG overlay for the red yarn — sits above papers but is non-interactive
   except for visuals */
.evidence-strings {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    z-index: 5; /* below hovered paper, above resting papers */
}
.yarn {
    transition: opacity 200ms ease, stroke-width 200ms ease;
}

/* Year banner — feels like masking-tape labels stuck above each column */
.year-banner {
    position: absolute;
    z-index: 2;
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 1.4rem;
    font-weight: 700;
    color: #2a1d10;
    background: linear-gradient(180deg, rgba(255, 240, 180, 0.92), rgba(245, 220, 150, 0.86));
    padding: 6px 22px;
    letter-spacing: 0.2em;
    border-left: 2px dashed rgba(80, 50, 10, 0.18);
    border-right: 2px dashed rgba(80, 50, 10, 0.18);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.18);
    text-transform: none;
}

/* ---------- Paper base ---------------------------------------------------- */

.paper {
    position: absolute;
    z-index: 4;
    width: 240px;
    cursor: pointer;
    transform: rotate(var(--rot, 0deg));
    transform-origin: 50% 18px;
    transition: transform 180ms cubic-bezier(0.34, 1.56, 0.64, 1), filter 180ms ease, opacity 200ms ease;
    color: #1a1410;
    font-family: var(--font-sans);
    will-change: transform;
    animation: paper-drop-in 540ms cubic-bezier(0.32, 1.4, 0.5, 1) backwards;
}
@keyframes paper-drop-in {
    0% {
        opacity: 0;
        transform: rotate(0) translateY(-40px) scale(0.92);
    }
    60% {
        opacity: 1;
    }
    100% {
        opacity: 1;
        transform: rotate(var(--rot, 0deg)) translateY(0) scale(1);
    }
}
.paper:hover {
    transform: rotate(0deg) translateY(-6px) scale(1.06);
    z-index: 50 !important;
    filter: drop-shadow(0 14px 22px rgba(0, 0, 0, 0.45));
}
.paper--filtered-out {
    opacity: 0.18;
    filter: grayscale(0.6);
    pointer-events: none;
}
.paper--dim {
    opacity: 0.45;
    filter: grayscale(0.3);
}

.paper .tack {
    position: absolute;
    top: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, #ff8a8a, var(--tack-color, #c1121f) 60%);
    box-shadow:
        0 0 0 1px rgba(0, 0, 0, 0.3),
        0 3px 4px rgba(0, 0, 0, 0.4),
        inset -2px -2px 3px rgba(0, 0, 0, 0.25);
    z-index: 5;
}
.paper .tack::after {
    content: '';
    position: absolute;
    top: 28%;
    left: 28%;
    width: 35%;
    height: 35%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255,255,255,0.9), rgba(255,255,255,0) 70%);
    pointer-events: none;
}

/* ---------- Polaroid ----------------------------------------------------- */

.paper--polaroid {
    width: 220px;
    background: #fdfbf2;
    padding: 12px 12px 28px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.5) inset,
        0 8px 16px rgba(0, 0, 0, 0.35),
        0 1px 0 rgba(0, 0, 0, 0.05);
    border: 1px solid #e6e1d0;
}
.polaroid-photo {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
    border: 1px solid #2a1d10;
}
/* Three image-style variants (gradients evoking a faded photograph) */
.polaroid-photo--v0 {
    background-image:
        radial-gradient(circle at 30% 40%, rgba(255, 60, 40, 0.55), transparent 50%),
        radial-gradient(circle at 70% 60%, rgba(20, 30, 60, 0.7), transparent 60%),
        linear-gradient(135deg, #2a1810, #4d2418 70%, #1a0d08);
}
.polaroid-photo--v1 {
    background-image:
        radial-gradient(circle at 50% 30%, rgba(255, 220, 180, 0.45), transparent 60%),
        radial-gradient(circle at 30% 80%, rgba(0, 0, 0, 0.7), transparent 60%),
        linear-gradient(180deg, #5a3320, #2a1810);
}
.polaroid-photo--v2 {
    background-image:
        radial-gradient(circle at 20% 70%, rgba(180, 30, 30, 0.5), transparent 55%),
        radial-gradient(circle at 80% 30%, rgba(40, 50, 80, 0.55), transparent 60%),
        linear-gradient(135deg, #1f2330, #3a2a1a);
}
.polaroid-photo--photo {
    background: #1a0d08;
    overflow: hidden;
}
.polaroid-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.85) contrast(0.95);
}
.polaroid-photo--photo::after {
    /* Skip the gradient grain when there's a real photo so the image stays legible */
    display: none;
}
.paper-photo {
    margin: 6px 0 8px;
    border: 1px solid rgba(0, 0, 0, 0.35);
    background: #0e0a06;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    box-shadow: 0 1px 0 rgba(255, 255, 255, 0.4) inset, 0 2px 4px rgba(0, 0, 0, 0.25);
}
.paper-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0.25) contrast(0.95);
}
.paper--clipping .paper-photo img {
    filter: grayscale(1) contrast(1.05);
}
.polaroid-photo::after {
    /* photographic grain overlay */
    content: '';
    position: absolute; inset: 0;
    background-image:
        radial-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
        radial-gradient(rgba(0,0,0,0.18) 1px, transparent 1px);
    background-size: 3px 3px, 5px 5px;
    background-position: 0 0, 1px 2px;
    mix-blend-mode: overlay;
    opacity: 0.7;
}
.polaroid-stamp {
    position: absolute;
    top: 8px;
    left: 8px;
    background: rgba(180, 30, 30, 0.85);
    color: #fff8e1;
    padding: 2px 6px;
    font-size: 9px;
    font-weight: 700;
    letter-spacing: 0.1em;
    transform: rotate(-4deg);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1;
}
.polaroid-date {
    position: absolute;
    bottom: 8px;
    right: 10px;
    font-family: 'Courier New', monospace;
    font-size: 10px;
    background: rgba(255, 200, 30, 0.95);
    color: #1a0d08;
    padding: 1px 4px;
    border-radius: 1px;
    z-index: 1;
}
.polaroid-textonly {
    position: relative;
    padding: 28px 8px 12px;
    margin-bottom: 8px;
    border-bottom: 1px dashed rgba(0, 0, 0, 0.18);
}
.polaroid-excerpt {
    font-family: var(--font-serif);
    font-size: 0.78rem;
    line-height: 1.4;
    color: #4a3a26;
    text-align: center;
    margin-bottom: 6px;
}
.polaroid-caption {
    font-family: 'Courier New', 'Courier', monospace;
    font-size: 0.85rem;
    line-height: 1.25;
    color: #1a1410;
    text-align: center;
    margin-bottom: 6px;
    font-weight: 700;
    letter-spacing: 0.01em;
}
.polaroid-source {
    text-align: center;
    font-size: 9px;
    color: #5a4a38;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-family: 'Courier New', monospace;
}

/* ---------- Document (watchdog reports: GAO/OIG) ------------------------- */

.paper--document {
    width: 240px;
    background: #f9f6ec;
    padding: 18px 16px 16px;
    box-shadow:
        0 1px 0 rgba(255, 255, 255, 0.7) inset,
        0 7px 14px rgba(0, 0, 0, 0.35);
    border: 1px solid #d8d0bc;
    /* paper grain */
    background-image:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.012) 0 1px, transparent 1px 3px),
        repeating-linear-gradient(90deg, rgba(0,0,0,0.012) 0 1px, transparent 1px 3px);
    position: absolute;
}
.doc-letterhead {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid #1f3d8a;
    margin-bottom: 10px;
}
.doc-seal {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, #6a85b8, #1f3d8a 70%);
    border: 2px solid #14275a;
    flex-shrink: 0;
    box-shadow: inset 0 0 0 2px rgba(255,255,255,0.2);
    position: relative;
}
.doc-seal::after {
    content: '★';
    position: absolute;
    inset: 0;
    color: #ffd76a;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.doc-letterhead-text { line-height: 1.15; }
.doc-agency {
    font-size: 8.5px;
    font-weight: 700;
    color: #1f3d8a;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.doc-classification {
    font-size: 8px;
    color: #6a5a3a;
    letter-spacing: 0.18em;
    margin-top: 2px;
}
.doc-meta {
    display: flex;
    justify-content: space-between;
    font-size: 9.5px;
    color: #6a5a3a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: 8px;
    font-family: 'Courier New', monospace;
}
.doc-cat {
    font-weight: 700;
    color: #14275a;
}
.doc-title {
    font-family: var(--font-serif);
    font-size: 0.95rem;
    line-height: 1.25;
    color: #1a1410;
    font-weight: 600;
    margin: 6px 0 8px;
}
.doc-excerpt {
    font-family: var(--font-serif);
    font-size: 0.8rem;
    line-height: 1.4;
    color: #4a3a26;
    margin-bottom: 10px;
}
.doc-stamp {
    position: absolute;
    bottom: 18px;
    right: 14px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    font-weight: 900;
    color: rgba(180, 30, 30, 0.65);
    letter-spacing: 0.08em;
    border: 2px solid rgba(180, 30, 30, 0.6);
    padding: 3px 8px;
    transform: rotate(-12deg);
    pointer-events: none;
}
.doc-source {
    font-size: 9px;
    color: #6a5a3a;
    font-style: italic;
    margin-top: 6px;
    border-top: 1px dotted #c0b598;
    padding-top: 6px;
}

/* ---------- Court filing ------------------------------------------------- */

.paper--court {
    width: 230px;
    background: linear-gradient(180deg, #eef2f7 0%, #e2e9f1 100%);
    padding: 16px 16px 14px;
    box-shadow:
        0 7px 14px rgba(0, 0, 0, 0.35);
    border: 1px solid #b9c5d4;
    position: absolute;
}
.court-header {
    text-align: center;
    border-bottom: 3px double #1a2c4a;
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.court-seal {
    font-size: 30px;
    color: #7c2d12;
    line-height: 1;
    margin-bottom: 4px;
}
.court-line {
    font-family: 'Times New Roman', Times, serif;
    font-size: 10px;
    font-weight: 700;
    color: #1a2c4a;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.court-line + .court-line {
    margin-top: 2px;
    font-style: italic;
    font-weight: 400;
}
.court-meta {
    text-align: center;
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: #4a3a26;
    margin-bottom: 8px;
    letter-spacing: 0.05em;
}
.court-title {
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    line-height: 1.3;
    color: #1a1410;
    text-align: center;
    font-weight: 700;
    margin-bottom: 8px;
}
.court-excerpt {
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.8rem;
    line-height: 1.45;
    color: #2a1d10;
    margin-bottom: 10px;
    text-align: justify;
    text-indent: 1em;
}
.court-source {
    font-size: 9px;
    color: #7c2d12;
    text-align: center;
    border-top: 1px solid #b9c5d4;
    padding-top: 6px;
    font-style: italic;
}

/* ---------- Newspaper clipping ------------------------------------------- */

.paper--clipping {
    width: 260px;
    background: linear-gradient(180deg, #f4ead4 0%, #e8dab8 100%);
    padding: 14px 14px 12px;
    box-shadow:
        0 7px 14px rgba(0, 0, 0, 0.4);
    border: 1px solid #d4c39e;
    /* simulate torn edges with a uneven clip-path */
    clip-path: polygon(
        0 4px, 5% 0, 12% 3px, 22% 1px, 35% 4px, 48% 1px, 60% 3px, 72% 0, 84% 4px, 95% 1px, 100% 5px,
        100% calc(100% - 5px), 95% 100%, 86% calc(100% - 3px), 72% 100%, 58% calc(100% - 4px), 44% 100%, 30% calc(100% - 2px), 16% 100%, 5% calc(100% - 4px), 0 100%
    );
    position: absolute;
}
.clip-tape {
    position: absolute;
    background: rgba(255, 240, 200, 0.55);
    border: 1px solid rgba(180, 150, 90, 0.25);
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
    pointer-events: none;
}
.clip-tape--top {
    top: -8px;
    left: 50%;
    width: 60px;
    height: 18px;
    transform: translateX(-50%) rotate(-3deg);
}
.clip-masthead {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    border-bottom: 2px solid #1a1410;
    padding-bottom: 4px;
    margin-bottom: 8px;
}
.clip-outlet {
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.95rem;
    font-weight: 900;
    letter-spacing: 0.04em;
    color: #1a1410;
    font-variant: small-caps;
}
.clip-date {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: #5a4a38;
    letter-spacing: 0.04em;
}
.clip-headline {
    font-family: 'Times New Roman', Times, serif;
    line-height: 1.15;
    color: #1a1410;
    margin-bottom: 8px;
    font-weight: 900;
}
.clip-headline--v0 { font-size: 1.05rem; }
.clip-headline--v1 { font-size: 1.1rem; font-style: italic; }
.clip-headline--v2 { font-size: 1.0rem; text-transform: uppercase; letter-spacing: 0.02em; }
.clip-deck {
    font-family: 'Times New Roman', Times, serif;
    font-size: 0.78rem;
    line-height: 1.4;
    color: #2a1d10;
    margin-bottom: 8px;
    column-count: 2;
    column-gap: 10px;
    column-rule: 1px solid rgba(0,0,0,0.1);
    text-align: justify;
    hyphens: auto;
}
.clip-byline {
    font-family: 'Times New Roman', Times, serif;
    font-size: 9px;
    font-style: italic;
    color: #5a4a38;
    border-top: 1px dotted #b8a982;
    padding-top: 4px;
    text-align: right;
}

/* ---------- Memo (policy) ------------------------------------------------ */

.paper--memo {
    width: 230px;
    background: linear-gradient(180deg, #fbf6df 0%, #f0e8c4 100%);
    padding: 14px 14px 14px;
    box-shadow:
        0 7px 14px rgba(0, 0, 0, 0.4);
    border: 1px solid #d4c882;
    position: absolute;
    /* faint horizontal lined paper feel */
    background-image:
        repeating-linear-gradient(0deg, rgba(0,0,0,0.04) 0 1px, transparent 1px 22px),
        linear-gradient(180deg, #fbf6df 0%, #f0e8c4 100%);
}
.memo-header {
    border-bottom: 1px solid #6a5a3a;
    padding-bottom: 8px;
    margin-bottom: 10px;
}
.memo-line {
    font-family: 'Courier New', monospace;
    font-size: 10.5px;
    color: #2a1d10;
    line-height: 1.6;
    letter-spacing: 0.02em;
}
.memo-line span {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.15em;
    color: #166534;
}
.memo-line strong {
    color: #166534;
    margin-right: 6px;
}
.memo-title {
    font-family: 'Courier New', monospace;
    font-size: 12.5px;
    line-height: 1.35;
    color: #1a1410;
    font-weight: 700;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}
.memo-body {
    font-family: 'Courier New', monospace;
    font-size: 10.5px;
    line-height: 1.55;
    color: #2a1d10;
    margin-bottom: 10px;
}
.memo-source {
    font-family: 'Courier New', monospace;
    font-size: 9px;
    color: #6a5a3a;
    letter-spacing: 0.04em;
    text-align: center;
    border-top: 1px dashed #b8a982;
    padding-top: 6px;
}

/* ---------- Zoom controls ------------------------------------------------ */

.evidence-zoom {
    position: fixed;
    right: 1rem;
    bottom: 1.25rem;
    z-index: 95;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 4px;
    background: rgba(28, 18, 8, 0.85);
    border: 1px solid rgba(255, 220, 170, 0.18);
    border-radius: 12px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.45);
}
[data-view="timeline"] .evidence-zoom { display: none; }

.evidence-zoom .zoom-btn {
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 8px;
    color: rgba(250, 240, 210, 0.85);
    cursor: pointer;
    transition: background var(--transition-fast), color var(--transition-fast), opacity var(--transition-fast);
}
.evidence-zoom .zoom-btn svg {
    width: 16px;
    height: 16px;
}
.evidence-zoom .zoom-btn:hover {
    background: rgba(255, 220, 170, 0.14);
    color: rgba(255, 245, 220, 1);
}
.evidence-zoom .zoom-btn:disabled {
    opacity: 0.35;
    cursor: not-allowed;
}

/* ---------- Hint pill ---------------------------------------------------- */

.evidence-hint {
    position: fixed;
    bottom: 1.25rem;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(28, 18, 8, 0.85);
    border: 1px solid rgba(255, 220, 170, 0.18);
    border-radius: 100px;
    padding: 8px 18px;
    font-size: 0.75rem;
    color: rgba(250, 240, 210, 0.85);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    pointer-events: none;
    white-space: nowrap;
    z-index: 90;
}
.evidence-hint .hint-key {
    background: rgba(255, 220, 170, 0.14);
    border-color: rgba(255, 220, 170, 0.22);
    color: rgba(255, 245, 220, 0.95);
}
/* The hint is part of the evidence view; hide it when timeline is active. */
[data-view="timeline"] .evidence-hint { display: none; }

.hint-key {
    display: inline-block;
    padding: 1px 6px;
    margin: 0 1px;
    background: rgba(180, 200, 240, 0.16);
    border: 1px solid rgba(180, 200, 240, 0.22);
    border-radius: 4px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* ---------- Mobile tweaks ------------------------------------------------ */

@media (max-width: 640px) {
    .view-tab span {
        font-size: 0.78rem;
    }
    .view-tab {
        padding: 5px 10px;
    }
    .evidence-hint { font-size: 0.7rem; padding: 6px 12px; }
    .evidence-zoom { display: none; }
}

/* Mobile: collapse view-switcher to icon-only tabs and align it vertically
   with the 38px search pill on the opposite side of the top bar. Defined
   here (after the base .floating-controls rules) so source order doesn't
   override the mobile top/right values. */
@media (max-width: 720px) {
    .floating-controls {
        top: 0.5rem;
        right: 0.5rem;
        height: 38px;
    }
    .view-switcher { height: 38px; }
    .view-switcher-inner { height: 100%; align-items: center; }
    .view-tab span { display: none; }
    .view-tab {
        gap: 0;
        padding: 0 10px;
        height: 100%;
        line-height: 1;
    }
    .view-tab svg { width: 16px; height: 16px; }
}
