/* Risk Kit License Server: shared stylesheet of the pages served by the site (start page, status page, page disabled). */

@font-face {
    font-family: 'Inter';
    src: url('fonts/InterVariable.woff2') format('woff2');
    font-weight: 100 900;
    font-style: normal;
    font-display: swap;
}

:root {
    --brand: #0060B4;
    --brand-dark: #004a8a;
    --accent: #F28C00;
    --bg: #f4f6fa;
    --card: #ffffff;
    --text: #1f2933;
    --muted: #6b7280;
    --line: #e5e8ee;
    --field: #f8fafc;
    --ok-bg: #e6f4ea;
    --ok-fg: #1e6b34;
    --ok-line: #bfe3cb;
    --warn-bg: #fff4e0;
    --warn-fg: #8a5300;
    --warn-line: #f3d9a4;
    --err-bg: #fdecec;
    --err-fg: #a12622;
    --err-line: #f2b8b5;
}

* {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    margin: 0;
    padding: 32px 16px;
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
    font-size: 15px;
    line-height: 1.5;
}

a {
    color: var(--brand);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.page {
    max-width: 1100px;
    margin: 0 auto;
}

/* Brand mark and title */

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand svg {
    width: 32px;
    height: 32px;
    flex: none;
}

.brand h1 {
    margin: 0;
    font-size: 22px;
    font-weight: 600;
    letter-spacing: -0.01em;
}

header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.meta {
    font-size: 13px;
    color: var(--muted);
}

/* Cards */

.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 8px 24px rgba(16, 24, 40, 0.06);
}

.card h2 {
    margin: 0 0 14px;
    font-size: 15px;
    font-weight: 600;
}

.cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.card.wide {
    grid-column: 1 / -1;
}

@media (max-width: 760px) {
    .cards {
        grid-template-columns: 1fr;
    }
}

/* Key/value lists */

dl {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 10px 20px;
    margin: 0;
    font-size: 14px;
}

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

dd {
    margin: 0;
    word-break: break-word;
}

/* Status pills and notices */

.pill {
    display: inline-block;
    padding: 1px 8px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.pill.ok {
    background: var(--ok-bg);
    color: var(--ok-fg);
}

.pill.warning {
    background: var(--warn-bg);
    color: var(--warn-fg);
}

.pill.error {
    background: var(--err-bg);
    color: var(--err-fg);
}

.notice {
    background: var(--warn-bg);
    border: 1px solid var(--warn-line);
    color: var(--warn-fg);
    padding: 12px 16px;
    border-radius: 10px;
    margin-bottom: 16px;
    font-size: 14px;
}

/* License block and usage */

.license {
    white-space: pre-wrap;
    font-family: inherit;
    font-size: 14px;
    padding: 12px 14px;
    border-radius: 8px;
    border: 1px solid;
    margin: 0 0 14px;
}

.license.ok {
    background: var(--ok-bg);
    border-color: var(--ok-line);
    color: var(--ok-fg);
}

.license.error {
    background: var(--err-bg);
    border-color: var(--err-line);
    color: var(--err-fg);
}

.usage {
    font-size: 28px;
    font-weight: 600;
    color: var(--brand);
    line-height: 1.2;
}

.usage small {
    font-size: 14px;
    font-weight: 400;
    color: var(--muted);
}

/* Tables */

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

th, td {
    text-align: left;
    padding: 9px 12px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
}

th {
    font-size: 12px;
    font-weight: 600;
    color: var(--muted);
    background: var(--field);
    white-space: nowrap;
}

tr:last-child td {
    border-bottom: 0;
}

td.empty {
    color: var(--muted);
    font-style: italic;
}

/* Buttons */

.btn {
    display: inline-flex;
    align-items: center;
    padding: 6px 12px;
    border-radius: 8px;
    border: 1px solid var(--line);
    background: #fff;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.2;
    cursor: pointer;
}

.btn:hover {
    border-color: #c9cfd9;
    background: var(--field);
}

.btn.small {
    padding: 2px 8px;
    font-size: 12px;
    margin-left: 8px;
}

/* Start page and "page disabled" page */

.hero {
    max-width: 640px;
    margin: 24px auto 0;
    text-align: center;
}

.hero .brand {
    justify-content: center;
    margin-bottom: 20px;
}

.hero .brand h1 {
    font-size: 26px;
}

.hero .brand .pill {
    margin-left: 4px;
}

.hero p.hint {
    margin-top: -8px;
}

.hero p {
    color: var(--muted);
    margin: 0 0 20px;
}

.hero .card {
    text-align: left;
    margin-bottom: 16px;
}

.hero .card p {
    color: var(--text);
    margin: 0 0 18px;
}

.hero .card p.contact {
    margin: 12px 0 0;
    color: var(--muted);
}

.hero ol,
.hero ul {
    margin: 0;
    padding-left: 22px;
}

.hero li {
    margin-bottom: 6px;
}

.hero li:last-child {
    margin-bottom: 0;
}

.label {
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    margin-bottom: 8px;
}

.label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.label-row .label {
    margin-bottom: 0;
}

.urlbox {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--field);
    border: 1px solid var(--line);
    border-radius: 10px;
    padding: 12px 14px;
    font-family: ui-monospace, Consolas, 'Courier New', monospace;
    font-size: 14px;
    word-break: break-all;
}

.urlbox a {
    flex: 1;
}

footer {
    margin-top: 28px;
    font-size: 13px;
    color: var(--muted);
    text-align: center;
}
