/* Corvera brand kit — design tokens. Colors, type scale, spacing, marks. */

@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/IBMPlexSans-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/IBMPlexSans-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/IBMPlexSans-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/IBMPlexSans-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/IBMPlexSans-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/static/fonts/IBMPlexSans-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/IBMPlexMono-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/static/fonts/IBMPlexMono-400-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/IBMPlexMono-500-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+2000-206F, U+20AC, U+2122;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/static/fonts/IBMPlexMono-500-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+1E00-1E9F, U+1EF2-1EFF;
}

:root {
  /* Color */
  --navy-900: #0B1220;
  --navy-800: #0E1622;
  --navy-700: #16233A;
  --navy-400: #5A6879;
  --navy-300: #A6B1C0;
  --cobalt-600: #1A5AE0;
  --cobalt-400: #4C86FF;
  --cobalt-50: #EAF1FF;
  --surface: #FFFFFF;
  --canvas: #F6F7F9;
  --border: #E3E7EE;
  --muted: #8A93A0;
  --warning: #9A5B00;
  --error: #C0332B;
  --success: #0E7C5A;
  --radius: 4px;

  /* Additional values used throughout the screens */
  --frame-border: #C6CEDA;
  --mark-color: #94A2B5;
  --nested-mark-color: #B4BECC;
  --row-divider: #EEF1F5;
  --cobalt-divider: #C9DAFA;
  --sparkline-bar: #A9C4F5;
  --dark-track: #223148;

  /* Type */
  --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Consolas, monospace;
}

* {
  box-sizing: border-box;
}

/* Templates space everything explicitly. The browser's defaults on top — 8px
   around body, 1em above and below every paragraph and heading — left a
   gutter around the full-width nav and footer and added 27px of air inside
   every table cell. */
body, h1, h2, h3, h4, p {
  margin: 0;
}

body {
  font-family: var(--font-sans);
  color: var(--navy-700);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

/* Type scale */
.t-display {
  font-size: 34px;
  line-height: 1.05;
  letter-spacing: -0.03em;
  font-weight: 600;
}
@media (min-width: 900px) {
  .t-display { font-size: 52px; }
}
.t-h1 {
  font-size: 26px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  font-weight: 600;
}
@media (min-width: 900px) {
  .t-h1 { font-size: 38px; }
}
.t-h2 {
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.t-body {
  font-size: 15.5px;
  line-height: 1.6;
}
.t-ui {
  font-size: 13.5px;
  line-height: 1.5;
}
.t-mono-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.4;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.t-mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Focus ring — every interactive element, never the browser default */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--cobalt-600);
  outline-offset: 2px;
}

/* Registration marks: four corner crosshairs, 15x15px, offset 7px outside
   the frame edge. Applied only to primary frames/plates, never every card. */
.marked {
  position: relative;
}
.marked::before,
.marked::after,
.marked > .mark-tl,
.marked > .mark-tr,
.marked > .mark-bl,
.marked > .mark-br {
  content: '';
  position: absolute;
  width: 15px;
  height: 15px;
  pointer-events: none;
}
.mark-tl { top: -7px; left: -7px; }
.mark-tr { top: -7px; right: -7px; }
.mark-bl { bottom: -7px; left: -7px; }
.mark-br { bottom: -7px; right: -7px; }
.mark-tl, .mark-tr, .mark-bl, .mark-br {
  position: absolute;
}
.mark-tl::before, .mark-tr::before, .mark-bl::before, .mark-br::before,
.mark-tl::after, .mark-tr::after, .mark-bl::after, .mark-br::after {
  content: '';
  position: absolute;
  background: var(--mark-color-current, var(--mark-color));
}
/* vertical bar at left:7px, horizontal bar at top:7px within each 15x15 box */
.mark-tl::before, .mark-tr::before, .mark-bl::before, .mark-br::before {
  left: 7px; top: 0; width: 1px; height: 15px;
}
.mark-tl::after, .mark-tr::after, .mark-bl::after, .mark-br::after {
  top: 7px; left: 0; width: 15px; height: 1px;
}
.marked--cobalt { --mark-color-current: var(--cobalt-600); }

/* Corvera mark — never rotate/skew/round/close the mouth gap/recolour the
   wedge. Minimum size 16px; below that use one solid navy colour instead. */
.corvera-mark-svg { display: block; }
.corvera-mark--light .mark-c { fill: var(--navy-800); }
.corvera-mark--light .mark-wedge { fill: var(--cobalt-600); }
.corvera-mark--navy .mark-c { fill: #FFFFFF; }
.corvera-mark--navy .mark-wedge { fill: var(--cobalt-400); }
.corvera-mark--cobalt .mark-c,
.corvera-mark--cobalt .mark-wedge { fill: #FFFFFF; }
