/* Swanda public theme - deep green exhibition layout (frontpage + portal) */
:root {
    --stage: #05301f;      /* hero, feature bands, feature tiles */
    --canvas: #0a3b27;     /* page canvas, navigation */
    --tile: #0f4a32;       /* raised controls and inputs */
    --tile-hi: #17603f;    /* hover / selected */
    --line: rgba(255, 255, 255, 0.12);
    --polar: #f5f5f7;
    --white: #ffffff;
    --graphite: #1d1d1f;
    --muted: #a3c4b3;      /* secondary text on green */
    --mint: #4dff9a;       /* metrics and "your seat" signal */
    --light-band: #eef5f0;
    --light-muted: #55695d;
    --link: #0b7a4b;

    --font-display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
    --font-text: "SF Pro Text", -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--canvas);
    color: var(--polar);
    font-family: var(--font-text);
    font-size: 17px;
    line-height: 1.47;
    letter-spacing: -0.374px;
    -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

.wrap {
    width: 100%;
    max-width: 1012px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Top bar - single slim sticky bar */
.topbar {
    position: sticky;
    top: 0;
    z-index: 10;
    height: 48px;
    background: rgba(10, 59, 39, 0.85);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--line);
}

.topbar-inner {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: -0.224px;
    color: var(--polar);
    white-space: nowrap;
}

.brand img { width: 22px; height: 22px; object-fit: contain; }

.brand-mark {
    width: 22px;
    height: 22px;
    border-radius: 9999px;
    background: var(--polar);
    color: var(--stage);
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 600;
}

.topbar-links {
    display: flex;
    align-items: center;
    gap: 22px;
}

.topbar-links a:not(.pill) {
    font-size: 12px;
    line-height: 1;
    letter-spacing: -0.12px;
    color: rgba(255, 255, 255, 0.75);
    text-decoration: none;
    white-space: nowrap;
}

.topbar-links a:not(.pill):hover { color: var(--white); }

.back-link {
    display: inline-block;
    margin-bottom: 20px;
    font-size: 14px;
    color: var(--muted);
    text-decoration: none;
}

.back-link:hover { color: var(--white); }

/* Pill button - polar on green */
.pill {
    display: inline-block;
    background: var(--polar);
    color: var(--stage);
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.12px;
    padding: 3px 10px;
    border-radius: 980px;
    text-decoration: none;
    white-space: nowrap;
}

.pill:hover { background: var(--white); }

.pill-lg {
    font-size: 17px;
    line-height: 1.24;
    letter-spacing: -0.374px;
    padding: 11px 22px;
}

.pill:focus-visible,
.search-input:focus-visible,
.suggest-item:focus-visible,
.topbar-links a:focus-visible {
    outline: 2px solid var(--mint);
    outline-offset: 2px;
}

/* Hero */
.hero {
    background: var(--stage);
    padding: 72px 0 90px;
    text-align: center;
    overflow: hidden;
}

.eyebrow {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.21;
    letter-spacing: 0.228px;
    color: var(--polar);
}

.hero-title {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(44px, 10vw, 64px);
    font-weight: 600;
    line-height: 1.06;
    letter-spacing: -0.576px;
    text-transform: uppercase;
    color: var(--polar);
}

.stage {
    position: relative;
    width: 100%;
    max-width: 1100px;
    height: clamp(300px, 48vw, 500px);
    margin: 8px auto 0;
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, #000 72%, transparent 100%);
}

.stage canvas {
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.hero-stack {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.hero-stack .pill-lg { margin-bottom: 16px; }

.hero-meta {
    margin: 0;
    font-size: 14px;
    line-height: 18px;
    font-weight: 600;
    letter-spacing: -0.224px;
    color: var(--polar);
}

/* Bands */
.band { padding: 90px 0; scroll-margin-top: 48px; }
.band-canvas { background: var(--canvas); }
.band-stage { background: var(--stage); }
.band-light { background: var(--light-band); color: var(--graphite); }

.section-title {
    margin: 0 0 12px;
    font-family: var(--font-display);
    font-size: clamp(32px, 6vw, 48px);
    font-weight: 600;
    line-height: 1.08;
    letter-spacing: -0.144px;
    color: var(--polar);
}

.section-title-dark { color: var(--graphite); }

.muted { color: var(--muted); }

.section-lede {
    margin: 0 0 40px;
    max-width: 560px;
    color: var(--muted);
}

.section-lede-dark { color: var(--light-muted); }

/* Tiles - 28px radius, no shadow */
.tiles {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
    gap: 24px;
}

.tile { border-radius: 28px; padding: 32px; }
.tile-stage { background: var(--stage); }
.tile-raised { background: var(--tile); }
.tile-white { background: var(--white); color: var(--graphite); }

.tile:only-child { grid-column: 1 / -1; }

.tile-label {
    display: block;
    margin: 0 0 8px;
    font-size: 12px;
    font-weight: 600;
    line-height: 16px;
    letter-spacing: -0.12px;
    color: var(--muted);
}

.tile-copy {
    margin: 0;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.224px;
    color: var(--muted);
}

.tile-heading {
    margin: 0 0 24px;
    font-family: var(--font-display);
    font-size: 28px;
    font-weight: 600;
    line-height: 1.14;
    letter-spacing: 0.196px;
}

.metric {
    margin: 4px 0 16px;
    display: flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
}

.metric-num {
    font-family: var(--font-display);
    font-size: 48px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: -0.144px;
    color: var(--mint);
    font-variant-numeric: tabular-nums;
}

.metric-unit {
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    color: var(--polar);
}

.schedule { list-style: none; margin: 0; padding: 0; }

.schedule-row {
    display: grid;
    grid-template-columns: 1.3fr 1fr 1.4fr;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.224px;
}

.schedule-row:first-child { padding-top: 0; }
.schedule-row:last-child { border-bottom: none; padding-bottom: 0; }

.schedule-date { color: var(--polar); font-weight: 600; }
.schedule-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.schedule-subject { color: var(--polar); }

/* Close-look module */
.closelook {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: center;
}

.steps {
    list-style: none;
    margin: 32px 0 24px;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.step {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px 12px 12px;
    border-radius: 36px;
    background: var(--tile);
    color: rgba(255, 255, 255, 0.85);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.24;
}

.step-glyph {
    width: 26px;
    height: 26px;
    border-radius: 9999px;
    border: 1.5px solid rgba(255, 255, 255, 0.8);
    display: grid;
    place-items: center;
    font-size: 12px;
    flex-shrink: 0;
}

.fine {
    margin: 0;
    max-width: 420px;
    font-size: 14px;
    line-height: 20px;
    letter-spacing: -0.224px;
    color: var(--muted);
}

/* Pill search */
.search-tile { padding: 40px 32px; }

.search { position: relative; }

.search-input {
    width: 100%;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.28);
    border-radius: 980px;
    padding: 14px 45px 14px 24px;
    color: var(--polar);
    font-family: var(--font-text);
    font-size: 17px;
    letter-spacing: -0.374px;
}

.search-input::placeholder { color: var(--muted); }

.search-glyph {
    position: absolute;
    right: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    pointer-events: none;
}

.suggest {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    right: 0;
    background: var(--tile);
    border: 1px solid var(--line);
    border-radius: 20px;
    padding: 6px;
    max-height: 300px;
    overflow-y: auto;
    z-index: 5;
    text-align: left;
}

.suggest.show { display: block; }

.suggest-item {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 14px;
    text-decoration: none;
    font-size: 14px;
    color: var(--polar);
}

.suggest-item:hover,
.suggest-item:focus { background: var(--tile-hi); }

.suggest-meta { color: var(--muted); white-space: nowrap; }

.suggest-empty {
    margin: 0;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--muted);
}

/* Announcements */
.notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 24px;
    margin-top: 40px;
}

.note-title {
    margin: 0 0 8px;
    font-family: var(--font-display);
    font-size: 21px;
    font-weight: 600;
    line-height: 1.19;
    color: var(--graphite);
}

.note-body {
    margin: 0;
    font-size: 14px;
    line-height: 21px;
    letter-spacing: -0.224px;
    color: #424245;
}

/* Portal: search page */
.portal-hero {
    background: var(--stage);
    padding: 96px 0 120px;
    text-align: center;
}

.portal-hero .search {
    max-width: 560px;
    margin: 40px auto 0;
}

.portal-hero .fine { margin: 24px auto 0; }

/* Portal: detail page */
.person {
    background: var(--stage);
    padding: 64px 0 48px;
}

.person-name {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(36px, 7vw, 56px);
    font-weight: 600;
    line-height: 1.07;
    letter-spacing: -0.28px;
}

.person-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
}

.chip {
    background: var(--tile);
    color: rgba(255, 255, 255, 0.85);
    border-radius: 36px;
    padding: 6px 14px;
    font-size: 14px;
    letter-spacing: -0.224px;
}

.detail { padding: 24px 0 90px; }

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
    margin-bottom: 24px;
}

.detail-stack { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; }

.big-value {
    margin: 0;
    font-family: var(--font-display);
    font-size: 40px;
    font-weight: 600;
    line-height: 1.1;
    letter-spacing: -0.144px;
    word-break: break-word;
}

.big-value-mint { color: var(--mint); }

/* Seat map */
.room-front {
    text-align: center;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: var(--muted);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 980px;
    padding: 8px;
    margin-bottom: 16px;
}

.seatmap-scroll {
    overflow-x: auto;
    padding-bottom: 4px;
}

.seatmap {
    display: grid;
    gap: 10px 16px;
}

.desk {
    display: flex;
    gap: 4px;
    min-height: 64px;
}

.seat {
    flex: 1;
    border-radius: 14px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    text-align: center;
    font-size: 11px;
    line-height: 1.2;
    background: var(--tile);
    color: var(--muted);
}

.seat-no {
    font-weight: 600;
    font-size: 12px;
    color: rgba(255, 255, 255, 0.85);
    font-variant-numeric: tabular-nums;
}

.seat.is-mine {
    background: var(--polar);
    color: var(--stage);
    box-shadow: 0 0 0 2px var(--mint);
}

.seat.is-mine .seat-no { color: var(--stage); }

.seat.is-empty {
    background: transparent;
    border: 1px dashed rgba(255, 255, 255, 0.18);
}

.legend {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    margin: 16px 0 0;
    padding: 0;
    list-style: none;
    font-size: 12px;
    color: var(--muted);
}

.legend li { display: flex; align-items: center; gap: 6px; }

.legend-swatch {
    width: 12px;
    height: 12px;
    border-radius: 4px;
    background: var(--tile);
}

.legend-swatch.is-mine { background: var(--polar); box-shadow: 0 0 0 1.5px var(--mint); }
.legend-swatch.is-empty { background: transparent; border: 1px dashed rgba(255, 255, 255, 0.3); }


/* Footer */
.foot {
    background: var(--light-band);
    border-top: 1px solid #d3e0d8;
    padding: 20px 0;
    font-size: 12px;
    letter-spacing: -0.12px;
    color: var(--light-muted);
}

.foot-inner {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.foot a { color: var(--link); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* Responsive */
@media (max-width: 834px) {
    .tiles,
    .closelook,
    .detail-grid { grid-template-columns: minmax(0, 1fr); }
    .closelook { gap: 32px; }
    .hide-sm { display: none; }
}

@media (max-width: 600px) {
    .hero { padding: 48px 0 64px; }
    .band { padding: 64px 0; }
    .portal-hero { padding: 64px 0 80px; }
    .person { padding: 40px 0 32px; }
    .tile { padding: 24px; }
    .search-tile { padding: 28px 20px; }
    .topbar-links { gap: 16px; }
    .schedule-row {
        grid-template-columns: 1fr auto;
        gap: 2px 12px;
    }
    .schedule-subject { grid-column: 1 / -1; }
    .step { font-size: 15px; }
    .big-value { font-size: 32px; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
}
