/* ════════════════════════════════════════════════════════════════════
   HostNemt theme — loaded after panel.css only while the HostNemt theme
   is active (Admin → General → Themes, backend/siteThemes.js).
   Colours come from the theme's JSON (frontend/themes/hostnemt.json) as
   --pn-* tokens; this file only adds the shape of the hostnemt.dk look:
   Montserrat, 8px controls, 12px cards, quiet lines, orange accents.
   Dark mode only: everything is scoped so the light theme stays standard.
   Nothing here changes markup, form fields or behaviour.
   ════════════════════════════════════════════════════════════════════ */

/* Montserrat (variable, latin), self-hosted. SIL Open Font License 1.1 (fonts/montserrat/OFL.txt). */
@font-face {
  font-family: "Montserrat";
  src: url(../fonts/montserrat/montserrat-latin-wght.woff2) format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root:not([data-theme="light"]) {
  --pn-font: "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;
  --pn-mono: ui-monospace, "Cascadia Code", Consolas, "Liberation Mono", monospace;
  --pn-radius: 8px;
  --pn-radius-sm: 6px;
  --pn-hover-tint: rgba(255,131,0,0.06);
  --pn-overlay: rgba(5,10,20,0.7);
  --pn-shadow: 0 24px 64px rgba(0,0,0,0.5);
  --hn-card-radius: 12px;
}

/* type: headings 600, slightly tight; never 800–900 */
:root:not([data-theme="light"]) h1, :root:not([data-theme="light"]) h2,
:root:not([data-theme="light"]) h3, :root:not([data-theme="light"]) h4 { font-weight: 600; letter-spacing: -0.015em; }
:root:not([data-theme="light"]) .pn-head h1,
:root:not([data-theme="light"]) .pn-svc-title h1 { text-wrap: balance; }
:root:not([data-theme="light"]) .pn-eyebrow { color: var(--pn-accent-ink); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
:root:not([data-theme="light"]) .pn-metric-value { font-weight: 700; letter-spacing: -0.02em; }
:root:not([data-theme="light"]) ::selection { background: rgba(255,131,0,0.35); color: #fff; }

/* cards, boxes, tables: 12px, hairline, no shadow */
:root:not([data-theme="light"]) .pn-card,
:root:not([data-theme="light"]) .pn-metrics,
:root:not([data-theme="light"]) .sc,
:root:not([data-theme="light"]) .block,
:root:not([data-theme="light"]) .block.block-rounded { border-radius: var(--hn-card-radius) !important; }
:root:not([data-theme="light"]) .sc:hover { border-color: rgba(255,131,0,0.5); }

/* buttons: 600 weight, the accent carries dark text (token from the theme) */
:root:not([data-theme="light"]) .pn-btn,
:root:not([data-theme="light"]) .btn { font-weight: 600 !important; }
:root:not([data-theme="light"]) .pn-btn--ghost { color: var(--pn-text-2) !important; }
:root:not([data-theme="light"]) .pn-btn--ghost:hover { background: transparent; color: #fff !important; }

/* tags and counters: pills */
:root:not([data-theme="light"]) .pn-tag { border-radius: 999px; font-weight: 600; }
:root:not([data-theme="light"]) .pn-tag:not([class*="pn-tag--"]) { background: rgba(148,163,184,0.15); color: var(--pn-text-2); }

/* top bar: navy, slightly translucent, like the site header */
:root:not([data-theme="light"]) .pn-top { background: rgba(15,23,42,0.88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
:root:not([data-theme="light"]) .pn-nav-link.active { color: #fff !important; }

/* inputs: focus = orange border, no glow */
:root:not([data-theme="light"]) .pn-input:focus,
:root:not([data-theme="light"]) .form-control:focus,
:root:not([data-theme="light"]) .form-select:focus { border-color: var(--pn-accent) !important; box-shadow: none !important; }
:root:not([data-theme="light"]) input[type="checkbox"],
:root:not([data-theme="light"]) input[type="radio"] { accent-color: var(--pn-accent); }

/* modal: raised navy, the one place with a shadow */
:root:not([data-theme="light"]) .modal-content { border-radius: var(--hn-card-radius) !important; }
:root:not([data-theme="light"]) .modal-backdrop.show { background: #050a14 !important; opacity: .7 !important; }

/* keyboard focus is always visible */
:root:not([data-theme="light"]) a:focus-visible,
:root:not([data-theme="light"]) button:focus-visible,
:root:not([data-theme="light"]) [role="button"]:focus-visible,
:root:not([data-theme="light"]) summary:focus-visible { outline: 2px solid var(--pn-accent); outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  :root:not([data-theme="light"]) * { transition: none !important; }
}
