/* SWC Archive — panel archive page ([swc_panel_archive]). Same shell as the guest archive (dark band, hero card with
   stats, white directory card). */
.swc-panel-archive,
.swc-panel-archive * {
    box-sizing: border-box;
}

.swc-panel-archive {
    --swc-pa-gold: #f6c84c;
    --swc-pa-blue-dark: #0d3f8f;
    --swc-pa-ink: #0f172a;
    --swc-pa-muted: #64748b;
    --swc-pa-line: #e5e7eb;

    position: relative;
    isolation: isolate;
    margin: 0 calc(50% - 50vw);
    padding: 30px max(22px, calc((100vw - 1200px) / 2)) 54px;
    color: #f8fafc;
    background:
        radial-gradient(circle at 4% 18%, rgba(37, 99, 235, 0.13), transparent 14rem),
        linear-gradient(135deg, #020617 0%, #061021 48%, #020617 100%);
    overflow: hidden;
}

/* The star field behind the page, as on the guest archive (site.css supplies the shared starfield.svg tile). */
.swc-panel-archive::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: -2;
    pointer-events: none;
    opacity: 0.34;
}

/* Hero */
.swc-pa-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 390px);
    gap: 34px;
    align-items: center;
    padding: clamp(28px, 5vw, 54px);
    border: 1px solid rgba(255,255,255,0.10);
    border-radius: 30px;
    /* --swc-pa-hero-bg: the page's hero background photo (site/archive-hero.php), under the dark wash. */
    background:
        linear-gradient(90deg, rgba(2,6,23,0.90), rgba(2,6,23,0.66), rgba(2,6,23,0.90)),
        var(--swc-pa-hero-bg, none),
        linear-gradient(135deg, #06101f 0%, #0a1e38 54%, #071629 100%);
    background-size: cover;
    background-position: center;
    box-shadow: 0 24px 70px rgba(4,12,24,0.28);
}

.swc-pa-kicker,
.swc-pa-section-kicker {
    margin: 0 0 12px;
    color: var(--swc-pa-gold);
    font-size: 0.74rem;
    font-weight: 950;
    letter-spacing: 0.13em;
    line-height: 1.2;
    text-transform: uppercase;
}

.swc-pa-hero h1 {
    margin: 0;
    color: #fff;
    font-size: clamp(2.35rem, 5.4vw, 5rem);
    line-height: 0.94;
    letter-spacing: -0.055em;
    text-transform: uppercase;
    text-shadow: 0 3px 18px rgba(0,0,0,0.34);
}

.swc-pa-hero-copy p:not(.swc-pa-kicker) {
    max-width: 720px;
    margin: 20px 0 0;
    color: #dbeafe;
    font-size: 1.05rem;
    line-height: 1.72;
}

.swc-pa-stats {
    padding: 24px;
    border-radius: 26px;
    background:
        radial-gradient(circle at 18% 8%, rgba(246,200,76,0.10), transparent 34%),
        linear-gradient(135deg, rgba(15,23,42,0.86), rgba(15,23,42,0.74));
    border: 1px solid rgba(255,255,255,0.16);
    box-shadow: 0 18px 48px rgba(0,0,0,0.22);
}

.swc-pa-stat-main {
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(255,255,255,0.13);
}

.swc-pa-stat-main strong,
.swc-pa-stat-grid strong {
    display: block;
    color: #fff;
    font-weight: 950;
    letter-spacing: -0.05em;
    line-height: 0.9;
}

.swc-pa-stat-main strong { font-size: clamp(3rem, 6.5vw, 4.8rem); }
.swc-pa-stat-grid strong { font-size: 1.7rem; }

.swc-pa-stat-main span,
.swc-pa-stat-grid span {
    display: block;
    margin-top: 8px;
    color: rgba(255,255,255,0.72);
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.25;
    text-transform: uppercase;
}

.swc-pa-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 14px;
}

.swc-pa-stat-grid > div {
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.11);
}

/* Highlights shelf */
.swc-pa-shelf {
    margin-top: 24px;
    padding: clamp(22px, 3vw, 32px);
    border-radius: 28px;
    border: 1px solid rgba(255,255,255,0.16);
    background:
        radial-gradient(circle at 8% 10%, rgba(246,200,76,0.15), transparent 18rem),
        linear-gradient(135deg, rgba(15,23,42,0.98), rgba(8,18,38,0.98));
    box-shadow: 0 26px 70px rgba(0,0,0,0.30);
}

.swc-pa-section-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 22px;
}

.swc-pa-shuffle {
    flex: 0 0 auto;
    padding: 9px 18px;
    border: 1px solid rgba(246,200,76,0.6);
    border-radius: 999px;
    background: transparent;
    color: var(--swc-pa-gold);
    font-size: 0.84rem;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    cursor: pointer;
}

.swc-pa-shuffle:hover { background: rgba(246,200,76,0.12); }

.swc-pa-section-head .swc-pa-section-kicker { margin: 0 0 10px; }

.swc-pa-section-head h2 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.6rem, 3.2vw, 2.4rem);
    line-height: 0.96;
    letter-spacing: -0.04em;
    text-transform: uppercase;
}

.swc-pa-shelf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.swc-pa-shelf-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 150px;
    padding: 20px;
    border-radius: 18px;
    background: rgba(255,255,255,0.06);
    border: 1px solid rgba(255,255,255,0.13);
    color: #fff;
    text-decoration: none;
    transition: border-color 0.16s ease, transform 0.16s ease;
}

.swc-pa-shelf-card:hover {
    color: #fff;
    text-decoration: none;
    border-color: rgba(246,200,76,0.55);
    transform: translateY(-2px);
}

.swc-pa-shelf-cel {
    color: var(--swc-pa-gold);
    font-size: 0.7rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.swc-pa-shelf-guests { margin-top: auto; }

.swc-pa-shelf-title {
    font-size: 1.02rem;
    font-weight: 850;
    line-height: 1.25;
}

.swc-pa-shelf-guests {
    color: rgba(255,255,255,0.7);
    font-size: 0.86rem;
    line-height: 1.4;
}

/* Directory */
.swc-pa-directory {
    margin-top: 24px;
    padding: 26px;
    border-radius: 26px;
    background: rgba(255,255,255,0.98);
    color: var(--swc-pa-ink);
    box-shadow: 0 26px 70px rgba(0,0,0,0.28);
}

.swc-pa-tools {
    display: grid;
    gap: 14px;
}

.swc-pa-search-label span,
.swc-pa-selects label > span:first-child {
    display: block;
    margin-bottom: 6px;
    color: var(--swc-pa-muted);
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.swc-pa-tools input[type="search"],
.swc-pa-tools select {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px;
    border: 1px solid #cbd5e1;
    border-radius: 14px;
    background: #fff;
    color: var(--swc-pa-ink);
    font-size: 1rem;
}

.swc-pa-tools input[type="search"] { font-size: 1.06rem; }

.swc-pa-selects {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
    gap: 12px;
    align-items: end;
}

.swc-pa-check {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 46px;
    font-weight: 800;
    white-space: nowrap;
}

.swc-pa-check input { width: 18px; height: 18px; }

.swc-pa-topics {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
}

.swc-pa-topic {
    padding: 7px 13px;
    border: 1px solid #cbd5e1;
    border-radius: 999px;
    background: #f8fafc;
    color: #334155;
    font-size: 0.86rem;
    font-weight: 800;
    line-height: 1.2;
    cursor: pointer;
}

.swc-pa-topic:hover { border-color: #93c5fd; }

.swc-pa-topic.is-active {
    border-color: var(--swc-pa-blue-dark);
    background: var(--swc-pa-blue-dark);
    color: #fff;
}

.swc-pa-count {
    margin: 22px 0 10px;
    color: var(--swc-pa-muted);
    font-size: 0.86rem;
    font-weight: 800;
}

.swc-pa-list { transition: opacity 0.15s ease; }
.swc-panel-archive.is-loading .swc-pa-list { opacity: 0.45; }

.swc-pa-row {
    display: grid;
    grid-template-columns: 190px minmax(0, 1fr);
    gap: 22px;
    padding: 18px 0;
    border-top: 1px solid var(--swc-pa-line);
}

.swc-pa-row.is-highlight .swc-pa-when { border-left-color: var(--swc-pa-gold); }

.swc-pa-when {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-left: 12px;
    border-left: 3px solid #cbd5e1;
}

.swc-pa-cel {
    color: var(--swc-pa-ink);
    font-size: 0.86rem;
    font-weight: 900;
    line-height: 1.25;
}

.swc-pa-date,
.swc-pa-stage {
    color: var(--swc-pa-muted);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.35;
}

.swc-pa-body { min-width: 0; }

.swc-pa-directory .swc-pa-title {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0;
    font-size: 1.08rem;
    line-height: 1.3;
}

.swc-pa-title a {
    color: var(--swc-pa-blue-dark);
    text-decoration: none;
}

.swc-pa-title a:hover { text-decoration: underline; }

.swc-pa-icon {
    display: inline-flex;
    flex: 0 0 auto;
    width: 17px;
    height: 17px;
}

.swc-pa-icon svg { width: 100%; height: 100%; }
.swc-pa-icon.is-highlight { color: #c08a00; }
.swc-pa-icon.is-video { color: #2563eb; }
.swc-pa-shelf .swc-pa-icon.is-highlight { color: var(--swc-pa-gold); margin-right: 6px; vertical-align: -3px; }

.swc-pa-directory .swc-pa-guests,
.swc-pa-directory .swc-pa-excerpt {
    margin: 4px 0 0;
    color: #334155;
    font-size: 0.92rem;
    line-height: 1.5;
}

.swc-pa-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.swc-pa-badge,
.swc-pa-chip {
    padding: 2px 9px;
    border-radius: 999px;
    font-size: 0.74rem;
    font-weight: 800;
    line-height: 1.4;
}

.swc-pa-badge { background: #e2e8f0; color: #334155; }
.swc-pa-badge.is-main { background: var(--swc-pa-blue-dark); color: #fff; }

.swc-pa-chip {
    background: #eff6ff;
    color: #1e40af;
    text-decoration: none;
}

.swc-pa-chip:hover { background: #dbeafe; text-decoration: none; }

.swc-pa-empty {
    margin: 16px 0 0;
    color: var(--swc-pa-muted);
    font-weight: 700;
}

.swc-pa-more {
    display: block;
    margin: 22px auto 0;
    padding: 12px 22px;
    border: 0;
    border-radius: 999px;
    background: var(--swc-pa-blue-dark);
    color: #fff;
    font-weight: 900;
    cursor: pointer;
}

.swc-pa-more:hover { background: #0b3478; }

@media (max-width: 980px) {
    .swc-pa-hero { grid-template-columns: 1fr; }
    .swc-pa-shelf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .swc-pa-selects { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
    .swc-panel-archive { padding: 18px 16px 40px; }
    .swc-pa-shelf,
    .swc-pa-directory { padding: 18px; border-radius: 20px; }
    .swc-pa-shelf-grid,
    .swc-pa-selects { grid-template-columns: 1fr; }
    .swc-pa-row { grid-template-columns: 1fr; gap: 8px; }
    .swc-pa-when { flex-direction: row; flex-wrap: wrap; gap: 4px 10px; }
}
