/* ═══════════════════════════════════════════
   A QUOTE A DAY — style.css
   Contributor Hall of Fame + compact masthead
═══════════════════════════════════════════ */

/* ─── 0. RESET & BASE ─── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --paper:        #f8f5ef;
    --paper-warm:   #f2ede4;
    --ink:          #1c1a16;
    --ink-mid:      #4a4640;
    --ink-muted:    #8a837a;
    --ink-ghost:    #c5bdb5;

    --gold:         #b8913a;
    --gold-light:   #d4aa58;
    --gold-pale:    rgba(184, 145, 58, 0.10);
    --gold-border:  rgba(184, 145, 58, 0.22);

    --crimson:      #6b0f1a;
    --surface:      #ffffff;
    --surface-alt:  #faf8f4;

    --serif:   'Cormorant Garamond', Georgia, serif;
    --fell:    'IM Fell English', Georgia, serif;
    --mono:    'DM Mono', monospace;
    --sans:    'Jost', system-ui, sans-serif;

    --sh-sm:   0 1px 4px rgba(0,0,0,0.06), 0 4px 16px rgba(0,0,0,0.04);
    --sh-md:   0 4px 20px rgba(0,0,0,0.08), 0 12px 40px rgba(0,0,0,0.06);
    --sh-lg:   0 20px 60px rgba(0,0,0,0.14), 0 4px 12px rgba(0,0,0,0.08);
    --sh-gold: 0 8px 30px rgba(184,145,58,0.18);

    --ease:    cubic-bezier(0.4, 0, 0.2, 1);
    --spring:  cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ─── 1. GLOBAL ─── */
html { scroll-behavior: smooth; }

body {
    background-color: var(--paper);
    color: var(--ink);
    font-family: var(--sans);
    font-weight: 300;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.03'/%3E%3C/svg%3E");
    background-attachment: fixed;
}

/* ─── 2. MASTHEAD ─── */
.masthead {
    position: sticky;
    top: 0;
    z-index: 900;
    background: rgba(248, 245, 239, 0.92);
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    transition: box-shadow 0.3s var(--ease);
}

.masthead.scrolled { box-shadow: var(--sh-sm); }

.masthead-rule {
    height: 1px;
    background: linear-gradient(to right,
        transparent 0%, var(--gold-border) 20%, var(--gold) 50%, var(--gold-border) 80%, transparent 100%);
}

.masthead-inner { padding: 28px 40px 20px; }

.masthead-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.masthead-title-block { text-align: center; flex: 1; }

.masthead-eyebrow {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 6px;
}

.masthead-title {
    font-family: var(--fell);
    font-style: italic;
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 400;
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.5px;
}

.masthead-subtitle {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 6px;
}

.meta-pill {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--ink-muted);
    border: 1px solid var(--gold-border);
    border-radius: 20px;
    padding: 5px 14px;
    white-space: nowrap;
    min-width: 90px;
    text-align: center;
}

/* NAV */
.nav-bar {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    padding: 12px 20px 16px;
    overflow-x: auto;
    scrollbar-width: none;
    flex-wrap: wrap;
}
.nav-bar::-webkit-scrollbar { display: none; }

.quick-tab {
    font-family: var(--sans);
    font-size: 10px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1.8px;
    padding: 8px 20px;
    cursor: pointer;
    background: none;
    border: 1px solid var(--gold-border);
    border-radius: 30px;
    color: var(--ink-muted);
    transition: all 0.25s var(--ease);
    white-space: nowrap;
}
.quick-tab:hover {
    background: var(--gold-pale);
    color: var(--gold);
    border-color: var(--gold);
}
.quick-tab.active {
    background: var(--gold);
    color: #fff;
    border-color: var(--gold);
    box-shadow: var(--sh-gold);
}

/* SEARCH */
.search-wrap { position: relative; margin-left: 6px; }

.search-input {
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 400;
    letter-spacing: 0.5px;
    padding: 8px 16px 8px 32px;
    background: var(--gold-pale);
    border: 1px solid var(--gold-border);
    border-radius: 30px;
    color: var(--ink);
    outline: none;
    width: 180px;
    transition: all 0.3s var(--ease);
}
.search-input::placeholder { color: var(--ink-muted); }
.search-input:focus {
    width: 240px;
    border-color: var(--gold);
    background: var(--surface);
    box-shadow: 0 0 0 3px var(--gold-pale);
}

.search-icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    color: var(--ink-muted);
    pointer-events: none;
    line-height: 1;
}

/* ─── 3. EMPTY / LOADER ─── */
.loader-state { text-align: center; padding: 120px 40px; }

.loader-ornament {
    font-size: 48px;
    color: var(--gold);
    animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50%       { opacity: 1;   transform: scale(1.1); }
}

.loader-text {
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--ink-ghost);
    margin-top: 20px;
}

.empty-state { text-align: center; padding: 80px 40px; color: var(--ink-muted); font-family: var(--sans); }

/* ─── 4. ARCHIVE GRID ─── */
.newspaper-body {
    max-width: 1440px;
    margin: 0 auto;
    padding: 48px 32px 120px;
}

.results-header {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-ghost);
    margin-bottom: 32px;
    display: flex;
    align-items: center;
    gap: 16px;
}
.results-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gold-border);
}

.col-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

/* QUOTE CARD */
.q-card {
    background: var(--surface);
    border: 1px solid var(--gold-border);
    border-radius: 20px;
    padding: 32px 28px 24px;
    cursor: pointer;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.25s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 20px;
    position: relative;
    overflow: hidden;
    animation: cardIn 0.5s var(--ease) both;
}
@keyframes cardIn {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}
.q-card::before {
    content: '\201C';
    position: absolute;
    top: -10px; right: 20px;
    font-family: var(--fell);
    font-size: 120px;
    color: var(--gold-pale);
    line-height: 1;
    pointer-events: none;
    transition: color 0.3s;
}
.q-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); border-color: var(--gold); }
.q-card:hover::before { color: rgba(184,145,58,0.18); }

.q-card-num { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--gold); text-transform: uppercase; }

.q-card-text {
    font-family: var(--serif);
    font-style: italic;
    font-size: 1.25rem;
    line-height: 1.55;
    color: var(--ink);
    flex: 1;
    position: relative;
    z-index: 1;
}

.q-card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--gold-border);
    padding-top: 16px;
    gap: 12px;
}

.q-card-author { font-family: var(--sans); font-weight: 500; font-size: 13px; color: var(--ink-mid); letter-spacing: 0.3px; }
.q-card-contrib { font-weight: 300; color: var(--ink-muted); font-size: 12px; }
.q-card-dept { font-family: var(--mono); font-size: 9px; letter-spacing: 1.5px; text-transform: uppercase; color: var(--ink-ghost); }

.q-card-arrow {
    width: 28px; height: 28px;
    border-radius: 50%;
    border: 1px solid var(--gold-border);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px; color: var(--gold);
    flex-shrink: 0;
    transition: all 0.25s var(--spring);
}
.q-card:hover .q-card-arrow { background: var(--gold); color: #fff; border-color: var(--gold); transform: translateX(3px); }

.q-card-reflection {
    font-family: var(--sans);
    font-style: italic;
    font-size: 12px;
    line-height: 1.6;
    color: var(--ink-muted);
    border-left: 2px solid var(--gold-border);
    padding-left: 12px;
    margin-top: -6px;
}
.q-card-reflection-by { font-style: normal; font-weight: 500; color: var(--ink-ghost); font-size: 11px; }

/* Department grouped sections */
.dept-section { margin-bottom: 52px; }
.dept-heading {
    display: flex; align-items: baseline; gap: 14px;
    margin-bottom: 20px; padding-bottom: 12px;
    border-bottom: 1px solid var(--gold-border);
}
.dept-heading-name { font-family: var(--fell); font-style: italic; font-size: 22px; color: var(--ink); }
.dept-heading-count { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); }

/* ─── 5. CONTRIBUTOR HALL OF FAME ─── */
.hof-section {
    margin-bottom: 16px;
}

.hof-masthead {
    display: flex;
    align-items: center;
    gap: 24px;
    margin-bottom: 40px;
    padding-top: 8px;
}

.hof-rule {
    flex: 1;
    height: 1px;
    background: linear-gradient(to right, transparent, var(--gold-border), transparent);
}

.hof-title-wrap { text-align: center; flex-shrink: 0; }

.hof-eyebrow {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--gold);
    margin-bottom: 4px;
}

.hof-title {
    font-family: var(--fell);
    font-style: italic;
    font-size: clamp(28px, 5vw, 48px);
    color: var(--ink);
    line-height: 1;
    letter-spacing: -0.5px;
}

.hof-sub {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--ink-muted);
    margin-top: 5px;
}

/* Podium row — visual order: 2nd · 1st · 3rd */
.hof-podium {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 16px;
}

.hof-card {
    background: var(--surface);
    border: 1px solid var(--gold-border);
    border-radius: 20px;
    padding: 28px 20px 24px;
    text-align: center;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
    animation: cardIn 0.6s var(--spring) both;
    position: relative;
    flex: 1;
    max-width: 280px;
}

/* 1st place: tallest, gold border */
.hof-rank-1 {
    border-color: var(--gold);
    box-shadow: var(--sh-gold);
    padding-top: 36px;
}
.hof-rank-1::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 4px;
    background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
    border-radius: 20px 20px 0 0;
}

.hof-rank-2, .hof-rank-3 {
    opacity: 0.92;
    padding-bottom: 16px;
}

.hof-card:hover { transform: translateY(-6px); box-shadow: var(--sh-md); }
.hof-rank-1:hover { box-shadow: var(--sh-md), var(--sh-gold); }

.hof-medal { font-size: 28px; line-height: 1; }

.hof-avatar {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.5px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.18);
    flex-shrink: 0;
}

.hof-rank-1 .hof-avatar {
    width: 80px;
    height: 80px;
    font-size: 26px;
    box-shadow: 0 6px 24px rgba(184,145,58,0.35);
    outline: 3px solid var(--gold);
    outline-offset: 3px;
}

.hof-name {
    font-family: var(--serif);
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.2;
}
.hof-rank-1 .hof-name { font-size: 1.4rem; }

.hof-dept {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: -4px;
}

.hof-count {
    display: flex;
    align-items: baseline;
    gap: 5px;
    background: var(--gold-pale);
    border: 1px solid var(--gold-border);
    border-radius: 20px;
    padding: 4px 14px;
}
.hof-count-num {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--gold);
}
.hof-count-label {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-muted);
}

.hof-preview {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.82rem;
    line-height: 1.5;
    color: var(--ink-muted);
    border-top: 1px solid var(--gold-border);
    padding-top: 10px;
    text-align: left;
    width: 100%;
}

.hof-view-btn {
    font-family: var(--sans);
    font-size: 9px;
    font-weight: 500;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--gold);
    background: var(--gold-pale);
    border: 1px solid var(--gold-border);
    border-radius: 20px;
    padding: 6px 16px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    margin-top: 4px;
}
.hof-view-btn:hover {
    background: var(--gold);
    color: white;
    border-color: var(--gold);
}

/* ─── 6. CONTRIBUTOR CARDS GRID ─── */
.contrib-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
}

.contrib-card {
    background: var(--surface);
    border: 1px solid var(--gold-border);
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease), border-color 0.2s var(--ease);
    display: flex;
    flex-direction: column;
    gap: 14px;
    animation: cardIn 0.5s var(--ease) both;
}
.contrib-card:hover { transform: translateY(-4px); box-shadow: var(--sh-md); border-color: var(--gold); }

.contrib-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
}

.contrib-avatar {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: var(--serif);
    font-size: 16px;
    font-weight: 600;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

.contrib-info { flex: 1; min-width: 0; }

.contrib-name {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--ink);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contrib-dept {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--gold);
    margin-top: 2px;
}

.contrib-badge {
    font-family: var(--mono);
    font-size: 9px;
    font-weight: 500;
    background: var(--gold);
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    letter-spacing: 1px;
    flex-shrink: 0;
}

.contrib-preview {
    font-family: var(--serif);
    font-style: italic;
    font-size: 0.88rem;
    line-height: 1.55;
    color: var(--ink-muted);
    border-left: 2px solid var(--gold-border);
    padding-left: 12px;
}

.contrib-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--gold-border);
    padding-top: 10px;
}

.contrib-author-tag {
    font-family: var(--mono);
    font-size: 8px;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: var(--ink-ghost);
}

.contrib-arrow {
    font-size: 13px;
    color: var(--gold);
    transition: transform 0.2s var(--spring);
}
.contrib-card:hover .contrib-arrow { transform: translateX(4px); }

/* ─── 7. DECK OVERLAY ─── */
.deck-overlay {
    position: fixed;
    inset: 0;
    background: rgba(8, 7, 5, 0.96);
    z-index: 2000;
    display: none;
    flex-direction: column;
    opacity: 0;
    transition: opacity 0.4s var(--ease);
}
.deck-overlay.open { display: flex; opacity: 1; }

.deck-topbar {
    position: absolute;
    top: 0; left: 0; right: 0;
    z-index: 10;
    padding: 24px 28px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.deck-nav-btn {
    width: 36px; height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.12);
    color: rgba(255,255,255,0.7);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s var(--ease);
    display: flex; align-items: center; justify-content: center;
}
.deck-nav-btn:hover { background: rgba(255,255,255,0.16); color: white; }

.deck-counter { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: rgba(255,255,255,0.4); }

.deck-progress-wrap { display: flex; gap: 4px; align-items: center; max-width: 200px; overflow: hidden; }

.progress-dot {
    height: 3px; width: 16px;
    border-radius: 2px;
    background: rgba(255,255,255,0.15);
    transition: all 0.3s var(--ease);
    flex-shrink: 0;
}
.progress-dot.active { background: var(--gold); width: 28px; }

.deck-nav-arrows {
    position: absolute;
    top: 50%; left: 0; right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    pointer-events: none;
    z-index: 10;
}

.arrow-btn {
    width: 56px; height: 56px;
    border-radius: 50%;
    background: var(--gold);
    border: 3px solid rgba(255,255,255,0.25);
    color: white;
    font-size: 22px;
    cursor: pointer;
    pointer-events: all;
    transition: all 0.25s var(--spring);
    display: flex; align-items: center; justify-content: center;
    box-shadow: 0 4px 24px rgba(184,145,58,0.5), 0 2px 8px rgba(0,0,0,0.5);
}
.arrow-btn:hover { background: var(--gold-light); transform: scale(1.12); box-shadow: 0 8px 36px rgba(184,145,58,0.65), 0 2px 8px rgba(0,0,0,0.5); }
.arrow-btn:disabled { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.06); color: rgba(255,255,255,0.18); box-shadow: none; transform: none; cursor: default; }

.deck-track-wrap { flex: 1; overflow: hidden; display: flex; flex-direction: column; }
.deck-track { display: flex; height: 100%; will-change: transform; }
.deck-slide { flex: 0 0 100vw; width: 100vw; overflow-y: auto; padding-top: 72px; }

.deck-layout { display: flex; min-height: calc(100% - 72px); }

.deck-left {
    width: 70%;
    padding: 28px 28px 48px 48px;
    overflow-y: auto;
    border-right: 1px solid rgba(255,255,255,0.07);
}
.deck-right {
    width: 30%;
    padding: 28px 28px 48px 28px;
    overflow-y: auto;
    background: rgba(0,0,0,0.22);
}

.deck-comments-label {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.28);
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255,255,255,0.07);
}

/* ─── 8. DECK CARD ─── */
.deck-card {
    background: var(--surface);
    border-radius: 24px;
    width: 100%;
    padding: 0;
    box-shadow: var(--sh-lg);
    position: relative;
    animation: cardRise 0.5s var(--spring);
    scrollbar-width: thin;
    scrollbar-color: var(--gold-border) transparent;
}
@keyframes cardRise {
    from { transform: translateY(40px) scale(0.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}
.deck-card::before {
    content: '';
    display: block;
    height: 5px;
    background: linear-gradient(to right, var(--gold), var(--gold-light), var(--gold));
    border-radius: 24px 24px 0 0;
}

.dc-body { padding: 40px 44px 32px; }

.dc-kicker {
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--crimson);
    margin-bottom: 28px;
    display: flex; align-items: center; gap: 10px;
}
.dc-kicker::after { content: ''; flex: 1; height: 1px; background: var(--gold-border); }

.dc-quote {
    font-family: var(--fell);
    font-style: italic;
    font-size: clamp(22px, 3.5vw, 30px);
    line-height: 1.45;
    color: var(--ink);
    border-left: 4px solid var(--gold);
    padding-left: 24px;
    margin-bottom: 32px;
}

.dc-byline { margin-bottom: 32px; }
.dc-author { font-family: var(--serif); font-weight: 600; font-size: 28px; line-height: 1.1; color: var(--ink); letter-spacing: -0.3px; }
.dc-role { font-family: var(--mono); font-size: 10px; letter-spacing: 2px; text-transform: uppercase; color: var(--ink-muted); margin-top: 6px; }

.dc-envelope {
    background: var(--gold-pale);
    border: 1px solid var(--gold-border);
    border-left: 4px solid var(--gold);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.dc-env-label { font-family: var(--mono); font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.dc-contrib-name { font-family: var(--serif); font-weight: 600; font-size: 22px; color: var(--ink); }
.dc-contrib-dept { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; text-transform: uppercase; color: var(--gold); margin-top: 4px; }
.dc-divider { height: 1px; background: var(--gold-border); margin: 16px 0; }
.dc-reflection-label { font-family: var(--mono); font-size: 8px; letter-spacing: 3px; text-transform: uppercase; color: var(--gold); margin-bottom: 8px; }
.dc-reflection { font-family: var(--sans); font-style: italic; font-size: 14px; line-height: 1.75; color: var(--ink-mid); }

.deck-action-row { display: flex; gap: 10px; flex-wrap: wrap; padding: 0 44px 32px; }

.btn-premium-action {
    flex: 1;
    min-width: 140px;
    padding: 12px 18px;
    border-radius: 40px;
    font-family: var(--sans);
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.8px;
    cursor: pointer;
    transition: all 0.25s var(--spring);
    display: flex; align-items: center; justify-content: center; gap: 8px;
    text-decoration: none;
    border: 1px solid var(--gold-border);
    background: var(--surface);
    color: var(--ink-mid);
}
.btn-premium-action:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,0.1); }
.btn-whatsapp { background: #25D366; border-color: #25D366; color: white; }
.btn-whatsapp:hover { background: #20c05c; box-shadow: 0 6px 20px rgba(37,211,102,0.3); }
.btn-submit { background: var(--gold-pale); border-color: var(--gold-border); color: var(--gold) !important; }
.btn-submit:hover { background: var(--gold); color: white !important; border-color: var(--gold); }

.giscus-mount { padding: 0; }

/* Compact bar + search hidden by default — only shown on mobile when scrolled */
.masthead-compact-bar { display: none; }
.compact-search-bar   { display: none; }
.filter-sheet-backdrop { display: none; }

/* ─── 9. DIRECTORY PANEL ─── */
.dir-backdrop {
    position: fixed; inset: 0;
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(4px);
    z-index: 2900;
    opacity: 0; pointer-events: none;
    transition: opacity 0.35s var(--ease);
}
.dir-backdrop.open { opacity: 1; pointer-events: all; }

.dir-panel {
    position: fixed; top: 0; right: 0;
    width: 420px; max-width: 100vw; height: 100dvh;
    background: var(--surface);
    z-index: 3000;
    transform: translateX(100%);
    transition: transform 0.45s var(--spring);
    display: flex; flex-direction: column;
    box-shadow: -20px 0 60px rgba(0,0,0,0.12);
    border-left: 1px solid var(--gold-border);
}
.dir-panel.open { transform: translateX(0); }

.dir-header { padding: 36px 28px 28px; border-bottom: 1px solid var(--gold-border); display: flex; justify-content: space-between; align-items: center; }
.dir-title { font-family: var(--fell); font-style: italic; font-weight: 400; font-size: 26px; color: var(--ink); }
.dir-close-btn { width: 32px; height: 32px; border-radius: 50%; background: var(--gold-pale); border: 1px solid var(--gold-border); color: var(--ink-muted); cursor: pointer; font-size: 13px; display: flex; align-items: center; justify-content: center; transition: all 0.2s; }
.dir-close-btn:hover { background: var(--gold); color: white; border-color: var(--gold); }

.dir-list { flex: 1; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--gold-border) transparent; }

.dir-row { padding: 20px 28px; border-bottom: 1px solid var(--gold-border); cursor: pointer; transition: all 0.25s var(--ease); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.dir-row:hover { background: var(--gold-pale); padding-left: 40px; }
.dir-row-name { font-family: var(--serif); font-size: 1.1rem; color: var(--ink); }
.dir-badge { font-family: var(--mono); font-size: 9px; font-weight: 500; background: var(--gold); color: white; padding: 3px 10px; border-radius: 12px; letter-spacing: 1px; flex-shrink: 0; }

/* ─── 10. MOBILE ─── */
@media (max-width: 767px) {

    .masthead-inner { padding: 16px 16px 10px; }
    .masthead-meta { flex-direction: column; gap: 8px; }
    .meta-pill { min-width: 0; }

    /* Compact masthead */
    .masthead--compact .top-rule,
    .masthead--compact .bottom-rule,
    .masthead--compact .masthead-inner,
    .masthead--compact .nav-bar { display: none; }

    .masthead-compact-bar {
        display: none;
        align-items: center;
        justify-content: space-between;
        padding: 10px 16px;
    }
    .masthead--compact .masthead-compact-bar { display: flex; }

    .masthead-compact-title {
        font-family: var(--fell);
        font-style: italic;
        font-size: 1.2rem;
        font-weight: 400;
        letter-spacing: -0.2px;
        color: var(--ink);
        margin: 0;
    }

    .masthead-compact-actions { display: flex; gap: 8px; }

    .compact-icon-btn {
        width: 34px; height: 34px;
        border: 1px solid var(--gold-border);
        border-radius: 8px;
        background: var(--gold-pale);
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        font-size: 1rem;
        color: var(--gold);
        transition: background 0.2s var(--ease), border-color 0.2s var(--ease);
    }
    .compact-icon-btn:hover { background: var(--gold); color: white; border-color: var(--gold); }

    .compact-search-bar { display: none; padding: 0 16px 10px; }
    .compact-search-bar.open { display: block; }
    .compact-search-bar input {
        width: 100%; box-sizing: border-box;
        padding: 8px 14px;
        border: 1px solid var(--gold-border);
        border-radius: 30px;
        font-family: var(--sans); font-size: 11px; letter-spacing: 0.5px;
        background: var(--gold-pale); color: var(--ink); outline: none;
        transition: border-color 0.2s var(--ease), box-shadow 0.2s var(--ease);
    }
    .compact-search-bar input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-pale); }
    .compact-search-bar input::placeholder { color: var(--ink-muted); }

    /* Filter bottom sheet */
    .filter-sheet-backdrop {
        display: none;
        position: fixed; inset: 0;
        background: rgba(0,0,0,0.5);
        backdrop-filter: blur(4px);
        z-index: 3500;
    }
    .filter-sheet-backdrop.open { display: block; }

    .filter-sheet {
        position: fixed; bottom: 0; left: 0; right: 0;
        background: var(--surface);
        border-radius: 20px 20px 0 0;
        padding: 16px 20px 40px;
        z-index: 3501;
        transform: translateY(100%);
        transition: transform 0.3s cubic-bezier(0.32, 0.72, 0, 1);
        border-top: 1px solid var(--gold-border);
    }
    .filter-sheet-backdrop.open .filter-sheet { transform: translateY(0); }

    .filter-sheet-handle { width: 36px; height: 4px; background: var(--ink-ghost); border-radius: 2px; margin: 0 auto 20px; }
    .filter-sheet-title { font-family: var(--mono); font-size: 9px; letter-spacing: 3px; text-transform: uppercase; color: var(--ink-muted); margin-bottom: 14px; }
    .filter-sheet-tabs { display: flex; flex-direction: column; gap: 6px; }
    .filter-sheet-tab {
        width: 100%; padding: 14px 18px;
        text-align: left;
        border: 1px solid var(--gold-border); border-radius: 12px;
        background: transparent;
        font-family: var(--sans); font-size: 0.95rem; font-weight: 300; letter-spacing: 0.3px;
        cursor: pointer; color: var(--ink-mid);
        transition: all 0.2s var(--ease);
    }
    .filter-sheet-tab:hover { background: var(--gold-pale); border-color: var(--gold); color: var(--ink); }
    .filter-sheet-tab.active { background: var(--gold); border-color: var(--gold); color: white; font-weight: 500; }

    /* Grid */
    .newspaper-body { padding: 24px 12px 80px; }
    .col-grid { grid-template-columns: 1fr; gap: 12px; }
    .q-card { padding: 20px 16px 16px; gap: 14px; }

    /* Hall of Fame on mobile — stack vertically */
    .hof-podium {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    .hof-card { max-width: 100%; width: 100%; }
    .hof-rank-1 { order: -1; } /* keep 1st at top on mobile */
    .hof-rank-2 { order: 0; }
    .hof-rank-3 { order: 1; }

    .hof-title { font-size: 28px; }

    /* Contributor grid: single column */
    .contrib-grid { grid-template-columns: 1fr; gap: 10px; }

    /* Deck */
    .deck-slide { padding-top: 64px; overflow-y: auto; }
    .deck-layout { flex-direction: column; min-height: unset; }
    .deck-left { width: 100%; padding: 12px 12px 4px; border-right: none; border-bottom: 1px solid rgba(255,255,255,0.07); overflow-y: visible; }
    .deck-right { width: 100%; padding: 16px 12px 24px; background: rgba(0,0,0,0.18); }
    .deck-card { border-radius: 18px; }
    .dc-body { padding: 20px 18px 14px; }
    .dc-kicker { font-size: 8px; letter-spacing: 3px; margin-bottom: 16px; }
    .dc-quote { font-size: 18px; line-height: 1.4; padding-left: 14px; border-left-width: 3px; margin-bottom: 18px; }
    .dc-author { font-size: 20px; }
    .dc-role { font-size: 9px; margin-top: 3px; }
    .dc-byline { margin-bottom: 18px; }
    .dc-envelope { padding: 16px; border-radius: 12px; margin-bottom: 16px; }
    .dc-env-label, .dc-reflection-label { font-size: 7px; letter-spacing: 2px; margin-bottom: 5px; }
    .dc-contrib-name { font-size: 18px; }
    .dc-contrib-dept { font-size: 8px; margin-top: 2px; }
    .dc-divider { margin: 12px 0; }
    .dc-reflection { font-size: 13px; line-height: 1.6; }
    .deck-action-row { padding: 0 18px 18px; gap: 8px; flex-direction: row; }
    .btn-premium-action { padding: 10px 14px; font-size: 10px; min-width: 0; }
    .deck-nav-arrows { display: none; }
    .search-input { width: 130px; }
    .search-input:focus { width: 160px; }
    .dept-heading-name { font-size: 18px; }
}

/* ─── 11. NO-RESULTS ─── */
.no-results { text-align: center; padding: 80px 20px; color: var(--ink-muted); font-family: var(--fell); font-style: italic; font-size: 22px; }

/* ─── 12. SCROLLBAR ─── */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--gold-border); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }
