:root {
    color-scheme: light;

    --bg: #f5f7fa;
    --card: #ffffff;
    --text: #18212b;
    --muted: #5f6b78;
    --accent: #1f5f99;
    --accent-dark: #174a77;
    --accent-soft: #eaf2f9;
    --border: #d9e0e7;
    --header-bg: #ffffff;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
}

body {
    margin: 0;
    min-height: 100vh;

    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}

a {
    color: var(--accent);
}

a:hover {
    color: var(--accent-dark);
}

/* --------------------------------------------------------------------------
   Public site header
   -------------------------------------------------------------------------- */

.site-header {
    background: var(--header-bg);
    border-bottom: 1px solid var(--border);
}

.site-header-inner {
    width: min(1400px, calc(100% - 24px));
    margin: 0 auto;
    padding: 18px 0;

    display: flex;
    align-items: center;
    gap: 24px;
}

.site-brand {
    flex: 0 0 auto;

    color: var(--text);
    text-decoration: none;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    white-space: nowrap;
}

.site-brand:hover {
    color: var(--accent);
}

.site-nav {
    flex: 1 1 auto;

    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 14px;
}

.site-nav a {
    flex: 0 0 auto;

    color: var(--text);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.site-nav a:hover {
    color: var(--accent);
}

.site-nav .member-access-link {
    padding: 9px 13px;

    border-radius: 8px;
    background: var(--accent);
    color: #ffffff;
}

.site-nav .member-access-link:hover {
    background: var(--accent-dark);
    color: #ffffff;
}

/* --------------------------------------------------------------------------
   Public page layout
   -------------------------------------------------------------------------- */

.site-main {
    width: min(1100px, calc(100% - 40px));
    margin: 0 auto;
    padding: 48px 0 72px;
}

.page-header {
    margin-bottom: 32px;
}

.page-header h1 {
    margin: 0 0 10px;

    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.page-header p {
    max-width: 720px;
    margin: 0;

    color: var(--muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.content-card {
    min-width: 0;
    padding: 30px;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;

    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
}

.content-list {
    min-width: 0;

    display: grid;
    gap: 24px;
}

.content-item {
    min-width: 0;

    padding-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.content-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.content-item h2 {
    margin: 0 0 10px;

    font-size: 1.35rem;
    line-height: 1.3;
}

.content-item-body {
    min-width: 0;

    color: var(--text);
    line-height: 1.65;
}

.empty-state {
    margin: 0;

    color: var(--muted);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Content data tables
   -------------------------------------------------------------------------- */

.content-item-body table {
    width: 100%;
    min-width: 900px;

    border-collapse: collapse;
    border-spacing: 0;

    font-size: 0.92rem;
    line-height: 1.4;
}

.content-item-body th,
.content-item-body td {
    padding: 11px 12px;

    border: 1px solid var(--border);

    text-align: left;
    vertical-align: top;
}

.content-item-body th {
    background: var(--accent-soft);
    color: var(--text);

    font-weight: 700;
    white-space: nowrap;
}

.content-item-body tbody tr:nth-child(even) {
    background: #fafbfd;
}

.content-item-body td {
    white-space: nowrap;
}

.content-item-body td[colspan] {
    white-space: normal;
}

/* --------------------------------------------------------------------------
   Centered development/error pages
   -------------------------------------------------------------------------- */

.centered-page {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 24px;
}

.card {
    width: min(720px, 100%);
    padding: 48px 36px;

    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 14px;
    text-align: center;

    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

.label {
    display: inline-block;
    margin-bottom: 18px;
    padding: 7px 12px;

    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);

    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.status {
    margin-bottom: 12px;

    color: var(--accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card h1 {
    margin: 0 0 14px;

    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1.1;
}

.card p {
    max-width: 560px;
    margin: 0 auto;

    color: var(--muted);
    font-size: 1.08rem;
    line-height: 1.6;
}

.domain {
    margin-top: 24px;

    color: var(--accent);
    font-family: Consolas, "Courier New", monospace;
    font-size: 0.95rem;
}

.action-link {
    display: inline-block;
    margin-top: 24px;

    color: var(--accent);
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   Responsive navigation and content
   -------------------------------------------------------------------------- */

@media (max-width: 1100px) {
    .site-header-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .site-nav {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

@media (max-width: 600px) {
    .site-header-inner,
    .site-main {
        width: min(100% - 28px, 1100px);
    }

    .site-nav {
        gap: 12px 16px;
    }

    .content-card {
        padding: 22px;
    }

    .content-item-body table {
        font-size: 0.88rem;
    }

    .content-item-body th,
    .content-item-body td {
        padding: 9px 10px;
    }

    .card {
        padding: 38px 24px;
    }
}