/* Online Security Hub 3.1 final production tokens. D01-D08 approved. */
/* Approved light secondary text #4D696F and decorative card/table border #A0AEB1. */
/* Brand: petrol, white and one petrol tint only. Other colours are semantic states. */
/* Mona Sans: the variable files the site already uses (one file covers weights 400-700), split like
   site-paper.css so Latin (incl. Albanian) and Latin Extended (incl. Latvian) both load. */
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-latin.woff2") format("woff2");
  font-style: normal; font-weight: 400 700; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Mona Sans";
  src: url("../fonts/mona-sans-latin-ext.woff2") format("woff2");
  font-style: normal; font-weight: 400 700; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* Original static Newsreader 24pt optical-size files, not synthetic weights. Full character set (WOFF2, not subset). */
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-400.woff2") format("woff2");
  font-style: normal; font-weight: 400; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-500.woff2") format("woff2");
  font-style: normal; font-weight: 500; font-display: swap;
}
@font-face {
  font-family: "Newsreader";
  src: url("../fonts/newsreader-600.woff2") format("woff2");
  font-style: normal; font-weight: 600; font-display: swap;
}
:root {
  color-scheme: light;
  font-synthesis: none;
  --osh-petrol: #0A262C;
  --osh-white: #FFFFFF;
  --osh-tint: #EDF2F2;
  --osh-font-body: "Mona Sans", sans-serif;
  --osh-font-editorial: "Newsreader", serif;
  --osh-space-base: 4px;
  --osh-space-xs: 4px;
  --osh-space-sm: 8px;
  --osh-space-md: 12px;
  --osh-space-lg: 16px;
  --osh-space-xl: 24px;
  --osh-space-2xl: 32px;
  --osh-space-3xl: 48px;
  --osh-space-4xl: 64px;
  --osh-type-display-size: 64px;
  --osh-type-display-leading: 68px;
  --osh-type-display-weight: 500;
  --osh-type-page-title-size: 48px;
  --osh-type-page-title-leading: 54px;
  --osh-type-page-title-weight: 500;
  --osh-type-section-title-size: 32px;
  --osh-type-section-title-leading: 40px;
  --osh-type-section-title-weight: 600;
  --osh-type-card-title-size: 22px;
  --osh-type-card-title-leading: 30px;
  --osh-type-card-title-weight: 600;
  --osh-type-article-size: 18px;
  --osh-type-article-leading: 29px;
  --osh-type-article-weight: 400;
  --osh-type-body-size: 16px;
  --osh-type-body-leading: 24px;
  --osh-type-body-weight: 400;
  --osh-type-label-size: 14px;
  --osh-type-label-leading: 20px;
  --osh-type-label-weight: 600;
  --osh-type-caption-size: 14px;
  --osh-type-caption-leading: 20px;
  --osh-type-caption-weight: 400;
  --osh-container: 1200px;
  --osh-reading-width: 760px;
  --osh-grid-columns: 12;
  --osh-grid-gap: 24px;
  --osh-page-gutter: 32px;
  --osh-radius: 4px;
  --osh-label-radius: 4px;
  --osh-target-min: 44px;
  --osh-motion-fast: 140ms;
  --osh-focus-offset: 2px;
  --osh-canvas: #FFFFFF;
  --osh-surface: #FFFFFF;
  --osh-surface-subtle: #EDF2F2;
  --osh-text: #0A262C;
  --osh-text-secondary: #4D696F;
  --osh-border: #0A262C;
  --osh-border-decorative: #EDF2F2;
  --osh-border-subtle: #A0AEB1;
  --osh-card-border: var(--osh-border-subtle);
  --osh-table-border: var(--osh-border-subtle);
  --osh-action-background: #0A262C;
  --osh-action-text: #FFFFFF;
  --osh-action-border: #0A262C;
  --osh-secondary-action-background: #FFFFFF;
  --osh-secondary-action-text: #0A262C;
  --osh-secondary-action-border: #0A262C;
  --osh-focus-inner: #FFFFFF;
  --osh-focus-outer: #0A262C;
  --osh-label-neutral-foreground: #0A262C;
  --osh-label-neutral-background: #EDF2F2;
  --osh-label-neutral-border: #0A262C;
  --osh-status-danger-fg: #8A1C2C;
  --osh-status-danger-bg: #FFF0F2;
  --osh-status-danger-border: #A52A3D;
  --osh-status-warning-fg: #765000;
  --osh-status-warning-bg: #FFF5CE;
  --osh-status-warning-border: #94701B;
  --osh-status-success-fg: #21633E;
  --osh-status-success-bg: #EDF8F0;
  --osh-status-success-border: #34764E;
  --osh-status-info-fg: #204F86;
  --osh-status-info-bg: #EEF4FC;
  --osh-status-info-border: #3E6FA1;
}

:root[data-osh-theme="dark"] {
  color-scheme: dark;
  /* Dark mode with depth (Mefat 2026-11-18): a near-black petrol page, slightly lighter cards, soft lines. */
  --osh-canvas: #061619;
  --osh-surface: #0B2228;
  --osh-surface-subtle: #112E35;
  --osh-text: #FFFFFF;
  --osh-text-secondary: #B6C8CB;
  --osh-border: rgb(255 255 255 / .55);
  --osh-border-decorative: rgb(255 255 255 / .12);
  --osh-border-subtle: rgb(255 255 255 / .16);
  --osh-card-border: var(--osh-border-subtle);
  --osh-table-border: var(--osh-border-subtle);
  --osh-action-background: #FFFFFF;
  --osh-action-text: #0A262C;
  --osh-action-border: #FFFFFF;
  --osh-secondary-action-background: #0A262C;
  --osh-secondary-action-text: #FFFFFF;
  --osh-secondary-action-border: #FFFFFF;
  --osh-focus-inner: #0A262C;
  --osh-focus-outer: #FFFFFF;
  --osh-label-neutral-foreground: #FFFFFF;
  --osh-label-neutral-background: #0A262C;
  --osh-label-neutral-border: #FFFFFF;
  --osh-status-danger-fg: #FFBDC7;
  --osh-status-danger-bg: #401820;
  --osh-status-danger-border: #D97082;
  --osh-status-warning-fg: #FFE2A0;
  --osh-status-warning-bg: #382A09;
  --osh-status-warning-border: #B99645;
  --osh-status-success-fg: #B8E7C7;
  --osh-status-success-bg: #173323;
  --osh-status-success-border: #64A77D;
  --osh-status-info-fg: #BDD9FF;
  --osh-status-info-bg: #172D45;
  --osh-status-info-border: #6D9BCB;
}

@media (min-width: 768px) and (max-width: 1023px) {
  :root { --osh-grid-columns: 8; --osh-page-gutter: 24px; }
}

@media (max-width: 767px) {
  :root {
    --osh-grid-columns: 4;
    --osh-grid-gap: 16px;
    --osh-page-gutter: 20px;
    --osh-type-display-size: 40px;
    --osh-type-display-leading: 44px;
    --osh-type-page-title-size: 34px;
    --osh-type-page-title-leading: 40px;
    --osh-type-section-title-size: 28px;
    --osh-type-section-title-leading: 36px;
    --osh-type-card-title-size: 20px;
    --osh-type-card-title-leading: 28px;
    --osh-type-article-size: 17px;
    --osh-type-article-leading: 27px;
    --osh-type-body-size: 16px;
    --osh-type-body-leading: 24px;
    --osh-type-label-size: 14px;
    --osh-type-label-leading: 20px;
    --osh-type-caption-size: 14px;
    --osh-type-caption-leading: 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  :root { --osh-motion-fast: 0ms; }
}

/* Example neutral component. Wait for the bundled fonts to load before judging typography. */
.osh-label {
  display: inline-flex; align-items: center; gap: var(--osh-space-sm);
  padding: var(--osh-space-xs) var(--osh-space-md);
  border: 1px solid var(--osh-label-neutral-border);
  border-radius: var(--osh-label-radius);
  color: var(--osh-label-neutral-foreground); background: var(--osh-label-neutral-background);
  font-family: var(--osh-font-body); font-size: var(--osh-type-label-size);
  font-weight: var(--osh-type-label-weight); line-height: var(--osh-type-label-leading);
}

/* These semantic modifiers belong only on truthful verdicts or relevant alerts. */
.osh-status-danger {
  color: var(--osh-status-danger-fg); background: var(--osh-status-danger-bg);
  border-color: var(--osh-status-danger-border);
}
.osh-status-warning {
  color: var(--osh-status-warning-fg); background: var(--osh-status-warning-bg);
  border-color: var(--osh-status-warning-border);
}
.osh-status-success {
  color: var(--osh-status-success-fg); background: var(--osh-status-success-bg);
  border-color: var(--osh-status-success-border);
}
.osh-status-info {
  color: var(--osh-status-info-fg); background: var(--osh-status-info-bg);
  border-color: var(--osh-status-info-border);
}

.osh-focusable:focus-visible {
  outline: 2px solid var(--osh-focus-outer);
  outline-offset: var(--osh-focus-offset);
  box-shadow: 0 0 0 2px var(--osh-focus-inner);
}


/* Subtle edges are decorative. Keep approved control/focus border tokens. */
.osh-text-secondary { color: var(--osh-text-secondary); }
.osh-card { border: 1px solid var(--osh-card-border); }
.osh-table th, .osh-table td { border-bottom: 1px solid var(--osh-table-border); }
