/* Novello design system: tokens and the components the website and the dashboard share.
   Loaded from _content/Novello.Design/css/novello.css. Hosts add their own layout (site.css, admin.css) and never
   redefine a token here.

   The look follows the brand: the ribbon N's blue into cyan and mint on deep navy, Barlow Condensed in capitals for
   display type (the TV app's broadcast voice) and Barlow for reading. Dark by default; [data-theme="light"] on <html>
   switches the dashboard to light. */

@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Regular.ttf') format('truetype'); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow'; src: url('../fonts/Barlow-Medium.ttf') format('truetype'); font-weight: 500 800; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-SemiBold.ttf') format('truetype'); font-weight: 400 600; font-style: normal; font-display: swap; }
@font-face { font-family: 'Barlow Condensed'; src: url('../fonts/BarlowCondensed-Bold.ttf') format('truetype'); font-weight: 700 900; font-style: normal; font-display: swap; }

:root {
    /* Surfaces, darkest first */
    --bg: #05080f;
    --bg-2: #080d18;
    --surface: #0d1422;
    --surface-2: #121b2d;
    --raised: #172238;
    --inset: #070c16;
    --line: #1f2b43;
    --line-soft: #162036;
    --line-strong: #2b3a58;

    /* Text */
    --text: #eef3fb;
    --text-body: #c4cfdf;
    --muted: #8a97ad;
    --faint: #5a6781;

    /* The ribbon N */
    --blue: #2f6bf0;
    --sky: #1e9bf2;
    --cyan: #19ddf4;
    --teal: #2cd2b8;
    --mint: #5beaa2;
    --brand-gradient: linear-gradient(115deg, #2f6bf0 0%, #1e9bf2 34%, #19ddf4 66%, #5beaa2 100%);
    --brand-gradient-soft: linear-gradient(115deg, rgba(47,107,240,.18), rgba(25,221,244,.12) 60%, rgba(91,234,162,.12));

    /* Accent: what focus, links and the primary action use */
    --accent: #33b4f4;
    --accent-strong: #2f6bf0;
    --on-accent: #ffffff;
    --accent-soft: rgba(51, 180, 244, .12);
    --accent-border: rgba(51, 180, 244, .38);
    --accent-glow: 51, 180, 244;

    /* Status */
    --good: #3ddc97;
    --good-soft: rgba(61, 220, 151, .12);
    --warn: #ffb547;
    --warn-soft: rgba(255, 181, 71, .13);
    --bad: #ff6b6b;
    --bad-soft: rgba(255, 107, 107, .13);
    --info: #19ddf4;
    --info-soft: rgba(25, 221, 244, .11);
    --plus: #33b4f4;
    --pro: #5beaa2;

    /* Type */
    --font-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
    --font-body: 'Barlow', 'Segoe UI', Roboto, system-ui, sans-serif;
    --font-mono: ui-monospace, 'Cascadia Mono', Consolas, monospace;

    /* Shape */
    --r-xs: 6px;
    --r-sm: 9px;
    --r-md: 12px;
    --r-lg: 18px;
    --r-xl: 26px;
    --r-pill: 999px;
    --shadow-1: 0 1px 0 rgba(255, 255, 255, .035) inset, 0 12px 32px rgba(0, 0, 0, .32);
    --shadow-2: 0 1px 0 rgba(255, 255, 255, .05) inset, 0 24px 60px rgba(0, 0, 0, .45);
    --ease: cubic-bezier(.2, .7, .2, 1);

    color-scheme: dark;
}

:root[data-theme="light"] {
    --bg: #f3f6fb;
    --bg-2: #eaf0f8;
    --surface: #ffffff;
    --surface-2: #f6f8fc;
    --raised: #eef2f8;
    --inset: #f1f4f9;
    --line: #dbe3ef;
    --line-soft: #e8edf5;
    --line-strong: #c8d3e3;
    --text: #0a1220;
    --text-body: #2c3a52;
    --muted: #5d6a80;
    --faint: #8b97aa;
    --accent: #1f6fe0;
    --accent-strong: #2f6bf0;
    --accent-soft: rgba(47, 107, 240, .09);
    --accent-border: rgba(47, 107, 240, .32);
    --accent-glow: 47, 107, 240;
    --good: #128a57;
    --good-soft: rgba(18, 138, 87, .1);
    --warn: #a86400;
    --warn-soft: rgba(214, 140, 0, .12);
    --bad: #c8322b;
    --bad-soft: rgba(200, 50, 43, .09);
    --info: #0b7f99;
    --info-soft: rgba(11, 127, 153, .09);
    --plus: #1f6fe0;
    --pro: #128a57;
    --shadow-1: 0 1px 2px rgba(10, 18, 32, .05), 0 8px 24px rgba(10, 18, 32, .06);
    --shadow-2: 0 2px 4px rgba(10, 18, 32, .06), 0 20px 48px rgba(10, 18, 32, .1);
    color-scheme: light;
}

/* ---- Base ---------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text-body);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    color: var(--text);
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.04;
    letter-spacing: .01em;
    margin: 0;
    text-wrap: balance;
}

p { margin: 0; }

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

img, svg { max-width: 100%; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }

::selection { background: rgba(var(--accent-glow), .35); color: var(--text); }

code, .mono { font-family: var(--font-mono); font-size: .9em; }

/* ---- Type helpers ---------------------------------------------------------- */

.eyebrow {
    font-family: var(--font-display);
    font-weight: 600;
    font-size: 14px;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--cyan);
}

.caps {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: .06em;
}

.gradient-text {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 14px; }
.tiny { font-size: 12.5px; }
.num { font-variant-numeric: tabular-nums; }

/* ---- Buttons ----------------------------------------------------------------- */

.btn {
    --btn-bg: var(--surface-2);
    --btn-fg: var(--text);
    --btn-border: var(--line-strong);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 42px;
    padding: 0 18px;
    border-radius: var(--r-md);
    border: 1px solid var(--btn-border);
    background: var(--btn-bg);
    color: var(--btn-fg);
    font: 600 15px/1 var(--font-body);
    letter-spacing: .01em;
    cursor: pointer;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .18s var(--ease), box-shadow .18s var(--ease), background-color .18s var(--ease), border-color .18s var(--ease);
}

.btn:hover { text-decoration: none; border-color: var(--accent-border); }
.btn:active { transform: translateY(1px); }
.btn[disabled], .btn.is-disabled { opacity: .5; cursor: not-allowed; transform: none; }

.btn--primary {
    --btn-bg: var(--brand-gradient);
    --btn-fg: #04101f;
    --btn-border: transparent;
    background: var(--brand-gradient);
    box-shadow: 0 8px 26px rgba(30, 155, 242, .28);
}
.btn--primary:hover { box-shadow: 0 10px 34px rgba(25, 221, 244, .36); border-color: transparent; }

.btn--accent { --btn-bg: var(--accent-strong); --btn-fg: #fff; --btn-border: transparent; }
.btn--ghost { --btn-bg: transparent; --btn-border: var(--line); }
.btn--soft { --btn-bg: var(--accent-soft); --btn-fg: var(--accent); --btn-border: var(--accent-border); }
.btn--danger { --btn-bg: var(--bad-soft); --btn-fg: var(--bad); --btn-border: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn--warn { --btn-bg: var(--warn-soft); --btn-fg: var(--warn); --btn-border: color-mix(in srgb, var(--warn) 40%, transparent); }
.btn--sm { min-height: 32px; padding: 0 12px; font-size: 13.5px; border-radius: var(--r-sm); }
.btn--lg { min-height: 52px; padding: 0 26px; font-size: 16.5px; border-radius: var(--r-lg); }
.btn--block { width: 100%; }

.link-btn {
    background: none;
    border: 0;
    padding: 0;
    color: var(--accent);
    font: inherit;
    cursor: pointer;
}
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Surfaces ------------------------------------------------------------------ */

.card {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: var(--r-lg);
    box-shadow: var(--shadow-1);
}

.card--pad { padding: 22px; }

.card--glow {
    position: relative;
    background: linear-gradient(var(--surface), var(--surface)) padding-box, var(--brand-gradient) border-box;
    border: 1px solid transparent;
}

/* ---- Tags and pills ------------------------------------------------------------- */

.tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: var(--r-pill);
    border: 1px solid var(--line-strong);
    background: var(--surface-2);
    color: var(--muted);
    font: 600 11.5px/1.3 var(--font-body);
    letter-spacing: .04em;
    text-transform: uppercase;
    white-space: nowrap;
}

.tag::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .9; }
.tag--plain::before { display: none; }
.tag--good { color: var(--good); background: var(--good-soft); border-color: color-mix(in srgb, var(--good) 35%, transparent); }
.tag--warn { color: var(--warn); background: var(--warn-soft); border-color: color-mix(in srgb, var(--warn) 35%, transparent); }
.tag--bad { color: var(--bad); background: var(--bad-soft); border-color: color-mix(in srgb, var(--bad) 35%, transparent); }
.tag--info { color: var(--info); background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 35%, transparent); }
.tag--accent { color: var(--accent); background: var(--accent-soft); border-color: var(--accent-border); }

/* Plan badges: FREE / PLUS / PRO, as the TV's locked-feature chips. */
.plan-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--r-xs);
    font: 700 12px/1.4 var(--font-display);
    letter-spacing: .14em;
    text-transform: uppercase;
    border: 1px solid var(--line-strong);
    color: var(--muted);
    white-space: nowrap;
}
.plan-badge--plus { color: #04101f; background: linear-gradient(115deg, #2f6bf0, #19ddf4); border-color: transparent; }
.plan-badge--pro { color: #03140c; background: linear-gradient(115deg, #19ddf4, #5beaa2); border-color: transparent; }

/* ---- Forms ---------------------------------------------------------------------- */

.field {
    display: block;
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    border-radius: var(--r-md);
    border: 1px solid var(--line-strong);
    background: var(--inset);
    color: var(--text);
    font: 400 15.5px/1.4 var(--font-body);
    transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.field::placeholder { color: var(--faint); }
.field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(var(--accent-glow), .18); }
textarea.field { min-height: 96px; resize: vertical; }
select.field { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

.label {
    display: block;
    margin-bottom: 6px;
    color: var(--text-body);
    font: 500 14px/1.3 var(--font-body);
}

.hint { color: var(--muted); font-size: 13px; margin-top: 6px; }

.validation-message { color: var(--bad); font-size: 13.5px; margin-top: 6px; }
.field.invalid { border-color: color-mix(in srgb, var(--bad) 70%, transparent); }

.check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: var(--text-body);
    font-size: 14.5px;
    cursor: pointer;
}
.check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--accent-strong); }

/* ---- Notices ---------------------------------------------------------------------- */

.notice {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    padding: 14px 16px;
    border-radius: var(--r-md);
    border: 1px solid var(--accent-border);
    background: var(--accent-soft);
    color: var(--text-body);
    font-size: 15px;
}
.notice strong { color: var(--text); }
.notice--good { border-color: color-mix(in srgb, var(--good) 38%, transparent); background: var(--good-soft); }
.notice--warn { border-color: color-mix(in srgb, var(--warn) 38%, transparent); background: var(--warn-soft); }
.notice--bad { border-color: color-mix(in srgb, var(--bad) 38%, transparent); background: var(--bad-soft); }

/* ---- The mark ---------------------------------------------------------------------- */

.mark { display: inline-block; width: 30px; height: auto; flex: none; }

.wordmark {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    text-decoration: none;
}
.wordmark:hover { text-decoration: none; }
.wordmark__name { font: 700 21px/1 var(--font-display); letter-spacing: .08em; }
.wordmark__sub { font: 600 11px/1 var(--font-display); letter-spacing: .38em; color: var(--muted); margin-left: 2px; }

/* ---- Layout atoms ------------------------------------------------------------------- */

.row { display: flex; align-items: center; gap: 12px; }
.row--wrap { flex-wrap: wrap; }
.row--between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.grow { flex: 1 1 auto; min-width: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---- Maintenance banner ------------------------------------------------------------- */

/* The thin strip at the very top while planned maintenance is under way (Site/MaintenanceBanner): calm, one line on a
   wide screen, wrapping on a phone. Warm rather than red: the site works, a service behind it is resting. */
.maint-banner {
    position: relative;
    z-index: 60;
    background: color-mix(in srgb, var(--warn) 12%, var(--bg));
    border-bottom: 1px solid color-mix(in srgb, var(--warn) 30%, transparent);
    color: var(--text-body);
    font-size: 14px;
    line-height: 1.45;
}
.maint-banner__inner {
    display: flex;
    align-items: baseline;
    gap: 10px;
    max-width: 1264px;
    margin: 0 auto;
    padding: 8px 16px;
}
.maint-banner__dot {
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--warn);
    box-shadow: 0 0 0 3px var(--warn-soft);
    transform: translateY(-1px);
    animation: maint-breathe 2.4s var(--ease) infinite;
}
.maint-banner__text { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.maint-banner__text strong { color: var(--text); font-weight: 600; }
.maint-banner__text time { color: var(--text); font-variant-numeric: tabular-nums; white-space: nowrap; }
.maint-banner__message { color: var(--muted); white-space: pre-line; }
.maint-banner__message::before { content: " \00b7  "; color: var(--faint); }

@keyframes maint-breathe { 50% { opacity: .45; } }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
