/* &Deploy design tokens and base elements (shared with &forge, ~/Desktop/forge). */
:root {
  --ink: #0b2e6b;
  --ink-2: #46586f;
  --muted: #6b7d99;
  --subtle: #8296b3;
  --faint: #a4b3c9;
  --border: #dfe7f2;
  --border-strong: #c9d9f0;
  --divider: #e8eef7;
  --row: #eef3fa;
  --tint: #f4f8fe;
  --tint-2: #f9fbfe;
  --primary: #1553c0;
  --primary-hover: #0d3d92;
  --accent: #2f7ff2;
  --accent-soft: #e8f1fd;
  --navy: #0a1f4d;
  --navy-2: #0d2c6e;
  --sidebar-from: #0d2658; /* the sidebar's gradient, top to bottom, its faint & and the logo's & (Screenshot.png) */
  --sidebar-to: #071940;
  --sidebar-mark: rgba(125, 184, 255, 0.07);
  --sidebar-amp: #2f7ff2;
  --sky: #7db8ff;
  --sky-text: #9db8e8;
  --success: #1d9e57;
  --success-ink: #1f7a45;
  --success-soft: #e6f7ec;
  --warn-ink: #9a5b00;
  --warn-soft: #fff1d6;
  --warn-border: #f1d9a8;
  --warn-bg: #fffaf0;
  --danger: #c2362b;
  --danger-ink: #b42318;
  --danger-soft: #fdecea;
  --danger-border: #f3c7c2;
  --danger-bg: #fdf3f2;
  --bg: #ffffff;
  --surface: #ffffff;
  /* Chart series (dataviz reference palette, validated on this surface): the Usage tab's charts. */
  --series-1: #2a78d6; --series-2: #eb6834; --series-3: #1baf7a;
  --surface-2: #f1f4f9;
  --text-on-primary: #ffffff;
  --primary-solid: #1553c0;
  --primary-solid-hover: #0d3d92;
  --primary-disabled: #a9bfe3;
  --accent-solid: #2f7ff2;
  --ink-solid: #0b2e6b;
  --danger-solid: #c2362b;
  --danger-solid-hover: #a82c22;
  --success-dot: #34b36b;
  --warn: #e5a53a;
  --warn-text: #7a4a00;
  --danger-text: #7a271a;
  --header-bg: rgba(255, 255, 255, 0.95);
  --watermark: rgba(47, 127, 242, 0.06);
  --scrim: rgba(10, 31, 77, 0.45);
  --scrim-light: rgba(10, 31, 77, 0.25);
  --code-bg: #0a1f4d;
  --code-border: #0a1f4d;
  --code-text: #c7dbfa;
  /* Colors on the navy panels (sidebar, auth aside, dark sections); the same in both themes. */
  --on-navy: #ffffff;
  --on-navy-2: #c7dbfa;
  --on-navy-muted: #6d86b8;
  --on-navy-faint: #5872a8;
  --on-navy-ok: #6ee7a0;
  --on-navy-warn: #ffd08a;
  --on-navy-line: rgba(125, 184, 255, 0.15);
  --on-navy-edge: rgba(125, 184, 255, 0.25);
  --on-navy-wash: rgba(125, 184, 255, 0.08);
  --on-navy-hover: rgba(125, 184, 255, 0.12);
  --on-navy-active: rgba(125, 184, 255, 0.16);
  --avatar-from: #2f7ff2;
  --avatar-to: #0d3d92;
  --font: "Schibsted Grotesk", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --serif: "Playfair Display", Georgia, serif;
  --shadow-card: 0 4px 16px rgba(16, 42, 84, 0.06);
  --shadow-pop: 0 12px 40px rgba(16, 42, 84, 0.08);
  --shadow-small: 0 1px 3px rgba(16, 42, 84, 0.12);
  --shadow-modal: 0 20px 50px rgba(4, 14, 40, 0.3);
  color-scheme: light dark;
}
:root[data-theme="light"] { color-scheme: light; }

/* Dark theme: follows the system unless the theme switch picked light, or picked dark. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --ink: #e7eef9;
    --ink-2: #bccadf;
    --muted: #9aabc4;
    --subtle: #8a9bb6;
    --faint: #66789a;
    --border: #253553;
    --border-strong: #334a72;
    --divider: #1d2a43;
    --row: #1a263d;
    --tint: #142039;
    --tint-2: #0f192b;
    --primary: #7fb2ff;
    --primary-hover: #a9caff;
    --accent: #6ea6ff;
    --accent-soft: #1a2d52;
    --navy: #0a1a40;
    --navy-2: #0d2a66;
    --sidebar-from: #0b2252;
    --sidebar-to: #06163a;
    --sidebar-mark: rgba(125, 184, 255, 0.06);
    --sidebar-amp: #2f7ff2;
    --sky: #7db8ff;
    --sky-text: #9db8e8;
    --success: #3ccf7f;
    --success-ink: #5fd896;
    --success-soft: #11321f;
    --warn-ink: #f0b660;
    --warn-soft: #3a2a0c;
    --warn-border: #5c4415;
    --warn-bg: #221a0b;
    --danger: #f07467;
    --danger-ink: #ff8d82;
    --danger-soft: #3d1715;
    --danger-border: #6a2a25;
    --danger-bg: #2a1211;
    --bg: #0b1322;
    --surface: #111b2e;
    --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
    --surface-2: #1a2640;
    --text-on-primary: #ffffff;
    --primary-solid: #2563d4;
    --primary-solid-hover: #1d4fb0;
    --primary-disabled: #2b3d5e;
    --accent-solid: #2563d4;
    --ink-solid: #2a3d62;
    --danger-solid: #c2362b;
    --danger-solid-hover: #d6493d;
    --success-dot: #3ccf7f;
    --warn: #f0b660;
    --warn-text: #f5cf8f;
    --danger-text: #ffb4ab;
    --header-bg: rgba(11, 19, 34, 0.92);
    --watermark: rgba(110, 166, 255, 0.07);
    --scrim: rgba(2, 6, 16, 0.65);
    --scrim-light: rgba(2, 6, 16, 0.45);
    --code-bg: #0a1a40;
    --code-border: #1d2f57;
    --code-text: #c7dbfa;
    --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);
    --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.4);
    --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.45);
    --shadow-modal: 0 20px 50px rgba(0, 0, 0, 0.6);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7eef9;
  --ink-2: #bccadf;
  --muted: #9aabc4;
  --subtle: #8a9bb6;
  --faint: #66789a;
  --border: #253553;
  --border-strong: #334a72;
  --divider: #1d2a43;
  --row: #1a263d;
  --tint: #142039;
  --tint-2: #0f192b;
  --primary: #7fb2ff;
  --primary-hover: #a9caff;
  --accent: #6ea6ff;
  --accent-soft: #1a2d52;
  --navy: #0a1a40;
  --navy-2: #0d2a66;
  --sidebar-from: #0b2252;
  --sidebar-to: #06163a;
  --sidebar-mark: rgba(125, 184, 255, 0.06);
  --sidebar-amp: #2f7ff2;
  --sky: #7db8ff;
  --sky-text: #9db8e8;
  --success: #3ccf7f;
  --success-ink: #5fd896;
  --success-soft: #11321f;
  --warn-ink: #f0b660;
  --warn-soft: #3a2a0c;
  --warn-border: #5c4415;
  --warn-bg: #221a0b;
  --danger: #f07467;
  --danger-ink: #ff8d82;
  --danger-soft: #3d1715;
  --danger-border: #6a2a25;
  --danger-bg: #2a1211;
  --bg: #0b1322;
  --surface: #111b2e;
  --series-1: #3987e5; --series-2: #d95926; --series-3: #199e70;
  --surface-2: #1a2640;
  --text-on-primary: #ffffff;
  --primary-solid: #2563d4;
  --primary-solid-hover: #1d4fb0;
  --primary-disabled: #2b3d5e;
  --accent-solid: #2563d4;
  --ink-solid: #2a3d62;
  --danger-solid: #c2362b;
  --danger-solid-hover: #d6493d;
  --success-dot: #3ccf7f;
  --warn: #f0b660;
  --warn-text: #f5cf8f;
  --danger-text: #ffb4ab;
  --header-bg: rgba(11, 19, 34, 0.92);
  --watermark: rgba(110, 166, 255, 0.07);
  --scrim: rgba(2, 6, 16, 0.65);
  --scrim-light: rgba(2, 6, 16, 0.45);
  --code-bg: #0a1a40;
  --code-border: #1d2f57;
  --code-text: #c7dbfa;
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.3);
  --shadow-pop: 0 12px 40px rgba(0, 0, 0, 0.4);
  --shadow-small: 0 1px 3px rgba(0, 0, 0, 0.45);
  --shadow-modal: 0 20px 50px rgba(0, 0, 0, 0.6);
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); font-family: var(--font); color: var(--ink); text-wrap: pretty; -webkit-font-smoothing: antialiased; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-hover); }
h1, h2, h3, p { margin: 0; }
button, input, select, textarea { font-family: var(--font); color: inherit; }
input::placeholder, textarea::placeholder { color: var(--subtle); }
button { cursor: pointer; }
button:disabled { cursor: default; }
[hidden] { display: none !important; }

.mono { font-family: var(--mono); }
.amp { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--accent); line-height: 1; }
/* "&Deploy" in running text (brand_name): a touch larger so the italic "&" sits right beside the word. On dark
   sections it takes the sidebar logo's lighter blue, and on a button the button's own colour. */
.amp-inline { font-size: 1.12em; margin-right: 0.02em; }
.section-navy .amp, .snippet-dark .amp, .deploy-card .amp, .toast .amp { color: var(--sky); }
.btn .amp, .pill .amp, .notice .amp, .tab .amp { color: inherit; }

/* Brand mark: "&Deploy" */
.brand { display: inline-flex; align-items: baseline; color: var(--ink); }
.brand .amp { font-size: 23px; }
.brand-word { font-weight: 600; font-size: 21px; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover .brand-word { color: var(--ink); }

/* Giant decorative ampersand behind hero areas */
.amp-watermark { position: absolute; font-family: var(--serif); font-style: italic; line-height: 1; color: var(--watermark); pointer-events: none; user-select: none; }

/* Text helpers */
.kicker { font-family: var(--mono); font-size: 12px; color: var(--primary); letter-spacing: 0.06em; text-transform: uppercase; }
.eyebrow { font-family: var(--mono); font-size: 11px; color: var(--subtle); letter-spacing: 0.06em; text-transform: uppercase; }
.muted { color: var(--muted); }
.subtle { color: var(--subtle); }
.ink-2 { color: var(--ink-2); }
.text-danger { color: var(--danger); }
.text-success { color: var(--success-ink); }
.text-warn { color: var(--warn-ink); }
.fs-11 { font-size: 11px; } .fs-12 { font-size: 12px; } .fs-125 { font-size: 12.5px; } .fs-13 { font-size: 13px; } .fs-135 { font-size: 13.5px; }
.fs-14 { font-size: 14px; } .fs-145 { font-size: 14.5px; } .fs-15 { font-size: 15px; } .fs-155 { font-size: 15.5px; } .fs-17 { font-size: 17px; } .fs-18 { font-size: 18px; } .fs-20 { font-size: 20px; }
.fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.lh-relaxed { line-height: 1.55; }
.nowrap { white-space: nowrap; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.break-all { word-break: break-all; }
.center { text-align: center; }

/* Layout helpers */
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.row-start { display: flex; align-items: flex-start; }
.row-base { display: flex; align-items: baseline; }
.wrap { flex-wrap: wrap; }
.spread { justify-content: space-between; }
.justify-end { justify-content: flex-end; }
.items-end { align-items: flex-end; }
.self-start { align-self: flex-start; }
.self-end { align-self: flex-end; }
.grow { flex: 1; min-width: 0; }
.none { flex: none; }
.ml-auto { margin-left: auto; }
.gap-2 { gap: 2px; } .gap-4 { gap: 4px; } .gap-6 { gap: 6px; } .gap-8 { gap: 8px; } .gap-10 { gap: 10px; } .gap-12 { gap: 12px; }
.gap-14 { gap: 14px; } .gap-16 { gap: 16px; } .gap-18 { gap: 18px; } .gap-20 { gap: 20px; } .gap-22 { gap: 22px; } .gap-24 { gap: 24px; } .gap-28 { gap: 28px; }
.grid-auto { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--min, 220px), 1fr)); gap: var(--gap, 12px); }
.grid-fit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, var(--min, 220px)), 1fr)); gap: var(--gap, 16px); }
.relative { position: relative; }
.w-full { width: 100%; }
