/*
 * HAVEN Website v3
 * Design System v0.1
 *
 * Original Haven visual system.
 * No external fonts or third-party visual dependencies.
 */

:root {
    --haven-bg: #080b0e;
    --haven-bg-deep: #050708;

    --haven-panel: #10151a;
    --haven-panel-2: #151b21;
    --haven-panel-3: #1b2228;

    --haven-line: #29313a;
    --haven-line-bright: #3b4650;

    --haven-text: #f1f3f5;
    --haven-text-soft: #c4cbd1;
    --haven-muted: #8f9aa5;

    --haven-accent: #d97a32;
    --haven-accent-hot: #f09245;
    --haven-accent-soft: #9c5523;

    --haven-good: #8ee6a1;
    --haven-warning: #ffd37a;
    --haven-danger: #ff8c80;

    --haven-shadow:
        0 18px 50px rgba(0, 0, 0, .28);

    --haven-radius: 3px;

    --haven-display:
        "Arial Narrow",
        "Liberation Sans Narrow",
        "Nimbus Sans Narrow",
        Arial,
        sans-serif;

    --haven-ui:
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        sans-serif;

    --haven-mono:
        ui-monospace,
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    --haven-page-width: 1360px;
}


/* ---------------------------------------------------------
   RESET / BASE
   --------------------------------------------------------- */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    color-scheme: dark;
    background: var(--haven-bg-deep);
}

body {
    margin: 0;
    min-width: 320px;

    font-family: var(--haven-ui);
    color: var(--haven-text);

    background:
        radial-gradient(
            circle at 82% -5%,
            rgba(217, 122, 50, .10),
            transparent 32rem
        ),
        linear-gradient(
            rgba(255,255,255,.012) 1px,
            transparent 1px
        ),
        linear-gradient(
            90deg,
            rgba(255,255,255,.012) 1px,
            transparent 1px
        ),
        var(--haven-bg);

    background-size:
        auto,
        48px 48px,
        48px 48px,
        auto;

    line-height: 1.55;
}

img {
    max-width: 100%;
}

a {
    color: inherit;
}

button,
input,
select {
    font: inherit;
}

::selection {
    color: #111;
    background: var(--haven-accent-hot);
}


/* ---------------------------------------------------------
   ACCESSIBILITY
   --------------------------------------------------------- */

.skip-link {
    position: absolute;
    top: -100px;
    left: 14px;
    z-index: 1000;

    padding: 10px 14px;

    color: #111;
    background: var(--haven-accent-hot);
    font-weight: 800;
}

.skip-link:focus {
    top: 14px;
}

a:focus-visible,
button:focus-visible {
    outline:
        3px solid var(--haven-accent-hot);
    outline-offset: 3px;
}


/* ---------------------------------------------------------
   SITE HEADER
   --------------------------------------------------------- */

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;

    border-bottom:
        1px solid var(--haven-line);

    background:
        rgba(7, 10, 12, .94);

    backdrop-filter:
        blur(14px);
}

.site-header-inner {
    max-width: var(--haven-page-width);
    min-height: 70px;

    margin: 0 auto;
    padding: 0 24px;

    display: flex;
    align-items: center;
    gap: 28px;
}

.site-brand {
    min-width: max-content;

    text-decoration: none;
}

.site-wordmark {
    display: block;

    font-family: var(--haven-display);
    font-size: 1.65rem;
    font-weight: 900;

    letter-spacing: .10em;
    line-height: 1;
}

.site-wordmark .lambda {
    color: var(--haven-accent-hot);
}

.site-brand-sub {
    display: block;

    margin-top: 5px;

    color: var(--haven-muted);

    font-family: var(--haven-mono);
    font-size: .60rem;

    letter-spacing: .16em;
    text-transform: uppercase;
}

.site-nav {
    margin-left: auto;

    display: flex;
    align-items: center;
    gap: 4px;
}

.site-nav a {
    position: relative;

    padding: 24px 10px 21px;

    color: var(--haven-muted);

    font-family: var(--haven-display);
    font-size: .82rem;
    font-weight: 800;

    letter-spacing: .08em;
    text-decoration: none;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--haven-text);
}

.site-nav a[aria-current="page"]::after {
    content: "";

    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 0;

    height: 3px;

    background:
        var(--haven-accent-hot);
}


/* ---------------------------------------------------------
   PAGE STRUCTURE
   --------------------------------------------------------- */

.page-shell {
    width:
        min(
            calc(100% - 40px),
            var(--haven-page-width)
        );

    margin: 0 auto;
}

.page-main {
    min-height: 72vh;
    padding-bottom: 70px;
}

.section {
    margin-top: 46px;
}

.section-head {
    display: flex;
    align-items: end;
    justify-content: space-between;

    gap: 30px;
    margin-bottom: 16px;
}

.section-head-copy {
    max-width: 650px;

    color: var(--haven-muted);
    font-size: .92rem;
}

.eyebrow {
    color: var(--haven-accent-hot);

    font-family: var(--haven-mono);
    font-size: .68rem;
    font-weight: 800;

    letter-spacing: .18em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   HERO
   --------------------------------------------------------- */

.hero {
    position: relative;

    overflow: hidden;

    margin-top: 32px;
    padding: 52px 54px;

    border:
        1px solid var(--haven-line);

    background:
        linear-gradient(
            115deg,
            rgba(217,122,50,.08),
            transparent 42%
        ),
        var(--haven-panel);

    box-shadow:
        var(--haven-shadow);
}

.hero::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 120px;
    height: 4px;

    background:
        var(--haven-accent-hot);
}

.hero::after {
    content: "HΛVEN // FACILITY RECORD";

    position: absolute;
    right: 22px;
    bottom: 14px;

    color:
        rgba(255,255,255,.04);

    font-family: var(--haven-mono);
    font-size: .72rem;

    letter-spacing: .18em;
}

.hero h1 {
    max-width: 900px;

    margin:
        10px 0 14px;

    font-family: var(--haven-display);
    font-size:
        clamp(
            2.8rem,
            7vw,
            6.2rem
        );

    font-weight: 900;
    line-height: .88;

    letter-spacing: -.025em;
    text-transform: uppercase;
}

.hero-copy {
    max-width: 760px;

    margin: 0;

    color: var(--haven-text-soft);
    font-size: 1rem;
}


/* ---------------------------------------------------------
   TYPOGRAPHY
   --------------------------------------------------------- */

h2,
h3 {
    font-family: var(--haven-display);
    text-transform: uppercase;
}

h2 {
    margin: 5px 0 0;

    font-size:
        clamp(
            1.8rem,
            4vw,
            2.6rem
        );

    letter-spacing: .01em;
}

h3 {
    margin: 0;

    font-size: 1.15rem;
    letter-spacing: .04em;
}

.data-number {
    font-family: var(--haven-mono);
    font-variant-numeric:
        tabular-nums;
}


/* ---------------------------------------------------------
   CARDS / STATISTICS
   --------------------------------------------------------- */

.stat-grid {
    display: grid;

    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );

    gap: 12px;
}

.stat-card {
    position: relative;

    min-height: 150px;
    padding: 22px;

    border:
        1px solid var(--haven-line);

    background:
        var(--haven-panel);
}

.stat-card::before {
    content: "";

    position: absolute;
    top: 0;
    left: 0;

    width: 36px;
    height: 2px;

    background:
        var(--haven-accent);
}

.stat-label {
    color: var(--haven-muted);

    font-family: var(--haven-mono);
    font-size: .66rem;
    font-weight: 800;

    letter-spacing: .11em;
    text-transform: uppercase;
}

.stat-value {
    margin-top: 14px;

    font-family: var(--haven-display);
    font-size: 2.15rem;
    font-weight: 900;

    line-height: 1;
}

.stat-note {
    margin-top: 10px;

    color: var(--haven-muted);
    font-size: .78rem;
}


/* ---------------------------------------------------------
   PANELS
   --------------------------------------------------------- */

.panel {
    border:
        1px solid var(--haven-line);

    background:
        var(--haven-panel);
}

.panel-header {
    padding: 16px 20px;

    border-bottom:
        1px solid var(--haven-line);

    background:
        var(--haven-panel-2);
}

.panel-body {
    padding: 20px;
}


/* ---------------------------------------------------------
   PLAYER IDENTITY
   --------------------------------------------------------- */

.player-row {
    display: flex;
    align-items: center;

    gap: 13px;

    min-width: 0;
}

.player-avatar {
    width: 48px;
    height: 48px;

    flex: 0 0 48px;

    border:
        1px solid var(--haven-line-bright);

    background:
        var(--haven-panel-3);

    object-fit: cover;
}

.player-avatar.large {
    width: 96px;
    height: 96px;

    flex-basis: 96px;
}

.player-name {
    font-weight: 760;
    text-decoration: none;
}

.player-name:hover {
    color: var(--haven-accent-hot);
}

.player-meta {
    margin-top: 3px;

    color: var(--haven-muted);

    font-family: var(--haven-mono);
    font-size: .66rem;

    letter-spacing: .05em;
}

.player-flag {
    width: 22px;
    height: 14px;

    margin-right: 7px;

    vertical-align: -2px;

    border:
        1px solid rgba(255,255,255,.18);

    object-fit: cover;
}


/* ---------------------------------------------------------
   DOSSIER
   --------------------------------------------------------- */

.dossier {
    display: grid;

    grid-template-columns:
        auto minmax(0, 1fr);

    gap: 24px;

    padding: 24px;

    border:
        1px solid var(--haven-line);

    background:
        linear-gradient(
            100deg,
            rgba(217,122,50,.06),
            transparent 45%
        ),
        var(--haven-panel);
}

.dossier-title {
    margin-top: 5px;

    font-family: var(--haven-display);
    font-size: 2rem;
    font-weight: 900;

    line-height: 1;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   TABLES
   --------------------------------------------------------- */

.table-shell {
    overflow-x: auto;

    border:
        1px solid var(--haven-line);

    background:
        var(--haven-panel);
}

.data-table {
    width: 100%;

    border-collapse:
        collapse;

    font-size: .88rem;
}

.data-table th,
.data-table td {
    padding: 14px 16px;

    border-bottom:
        1px solid var(--haven-line);

    text-align: left;
}

.data-table th {
    color: var(--haven-muted);

    background:
        var(--haven-panel-2);

    font-family: var(--haven-mono);
    font-size: .63rem;

    letter-spacing: .10em;
    text-transform: uppercase;
}

.data-table tbody tr:hover {
    background:
        rgba(255,255,255,.025);
}

.data-table .number {
    text-align: right;

    font-family: var(--haven-mono);
    font-variant-numeric:
        tabular-nums;
}

.data-table tbody tr:last-child td {
    border-bottom: 0;
}


/* ---------------------------------------------------------
   BUTTONS
   --------------------------------------------------------- */

.button-row {
    display: flex;
    flex-wrap: wrap;

    gap: 9px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 40px;

    padding: 9px 15px;

    border:
        1px solid var(--haven-line-bright);

    color: var(--haven-text);

    background:
        var(--haven-panel-2);

    font-family: var(--haven-display);
    font-size: .78rem;
    font-weight: 800;

    letter-spacing: .07em;
    text-decoration: none;
    text-transform: uppercase;
}

.button:hover {
    border-color:
        var(--haven-accent-hot);
}

.button.primary {
    border-color:
        var(--haven-accent);

    color: #111;

    background:
        var(--haven-accent-hot);
}


/* ---------------------------------------------------------
   DEPARTMENTAL NOTICE
   --------------------------------------------------------- */

.notice {
    position: relative;

    padding: 18px 20px 18px 24px;

    border:
        1px solid var(--haven-line);

    background:
        var(--haven-panel-2);

    color:
        var(--haven-text-soft);
}

.notice::before {
    content: "";

    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;

    width: 3px;

    background:
        var(--haven-accent-hot);
}

.notice-title {
    margin-bottom: 5px;

    color: var(--haven-accent-hot);

    font-family: var(--haven-mono);
    font-size: .66rem;
    font-weight: 900;

    letter-spacing: .12em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   STATUS CHIPS
   --------------------------------------------------------- */

.chip {
    display: inline-flex;
    align-items: center;

    min-height: 25px;

    padding: 3px 8px;

    border:
        1px solid var(--haven-line);

    color: var(--haven-muted);

    background:
        var(--haven-panel-2);

    font-family: var(--haven-mono);
    font-size: .62rem;

    letter-spacing: .06em;
    text-transform: uppercase;
}

.chip.good {
    color: var(--haven-good);
}

.chip.warning {
    color: var(--haven-warning);
}

.chip.danger {
    color: var(--haven-danger);
}


/* ---------------------------------------------------------
   FOOTER
   --------------------------------------------------------- */

.site-footer {
    margin-top: 60px;

    border-top:
        1px solid var(--haven-line);

    background:
        var(--haven-bg-deep);
}

.site-footer-inner {
    max-width: var(--haven-page-width);

    margin: 0 auto;
    padding: 30px 24px 42px;

    display: flex;
    justify-content: space-between;

    gap: 24px;

    color: var(--haven-muted);
    font-size: .76rem;
}

.site-footer a {
    color: var(--haven-text-soft);
}

.site-footer a:hover {
    color: var(--haven-accent-hot);
}

.footer-dept {
    font-family: var(--haven-mono);

    letter-spacing: .07em;
    text-transform: uppercase;
}


/* ---------------------------------------------------------
   RESPONSIVE
   --------------------------------------------------------- */

@media (max-width: 1000px) {

    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;

        gap: 8px;
        padding-top: 16px;
        padding-bottom: 10px;
    }

    .site-nav {
        width: 100%;
        margin-left: 0;

        overflow-x: auto;
    }

    .site-nav a {
        padding:
            10px 8px 12px;
    }

    .stat-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


@media (max-width: 650px) {

    .page-shell {
        width:
            min(
                calc(100% - 24px),
                var(--haven-page-width)
            );
    }

    .hero {
        padding:
            36px 22px 42px;
    }

    .hero::after {
        display: none;
    }

    .section-head {
        align-items: start;
        flex-direction: column;

        gap: 8px;
    }

    .stat-grid {
        grid-template-columns: 1fr;
    }

    .dossier {
        grid-template-columns: 1fr;
    }

    .site-footer-inner {
        flex-direction: column;
    }

}


@media (prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

}


/* HFF NEWS 24 - V3 shared master stylesheet */
.hff-news24 {
    margin-top: 14px;
    margin-bottom: 14px;
}

.hff-news-shell {
    display: flex;
    align-items: center;
    min-width: 0;
    min-height: 54px;
    border: 1px solid var(--haven-line);
    background: var(--haven-panel);
    overflow: hidden;
}

.hff-news-label {
    flex: none;
    padding: 15px 17px;
    background: var(--haven-accent);
    color: var(--haven-bg-deep);
    font-weight: 800;
    letter-spacing: .05em;
    white-space: nowrap;
}

.hff-news-viewport {
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.hff-news-track {
    display: flex;
    width: max-content;
    animation: hff-news-scroll 58s linear infinite;
}

.hff-news-group {
    display: flex;
    flex: none;
}

.hff-news-item {
    flex: none;
    padding: 0 36px;
    color: var(--haven-text);
    white-space: nowrap;
}

.hff-news-period {
    flex: none;
    padding: 0 15px;
    color: var(--haven-muted);
    font-size: .72rem;
    white-space: nowrap;
}

@keyframes hff-news-scroll {
    to { transform: translateX(-50%); }
}

.hff-news-shell:hover .hff-news-track,
.hff-news-shell:focus-within .hff-news-track {
    animation-play-state: paused;
}

@media (max-width: 650px) {
    .hff-news-period { display: none; }
    .hff-news-label { padding: 12px 10px; }
}

@media (prefers-reduced-motion: reduce) {
    .hff-news-track { animation: none; }
    .hff-news-viewport { overflow-x: auto; }
}


/* HAVEN HERO ORANGE LAMBDA 58M */
body.homepage-v3 .homepage-hero h1 .lambda {
    color: var(--haven-accent);
}

/* HAVEN 58V: Join Server beside online status. */

.homepage-server-status .server-status-state {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.homepage-server-status .haven-join-server,
.homepage-server-status .haven-join-server:visited {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: auto;
    padding: 7px 12px;
    border: 1px solid var(--haven-accent, #d97a32);
    background: var(--haven-accent, #d97a32);
    color: #10151a;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
}

.homepage-server-status .haven-join-server:hover {
    background: #f6a661;
}

.homepage-server-status .haven-join-server:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* HAVEN 58CC: Guide-only 58BY hero rule, delivered by regularly staged master CSS. */
body.guide-page .guide-hero{
  background-image:linear-gradient(90deg,rgba(5,9,12,.96) 0%,rgba(5,9,12,.84) 37%,rgba(5,9,12,.38) 72%,rgba(5,9,12,.11) 100%),url("/assets/haven-v3-heroes-58BY/hero/guide.webp") !important;
  background-size:cover !important;
  background-position:center center !important;
  background-repeat:no-repeat !important;
}
