/* =============================================================
   erdennede.dk \u2014 design system
   Bruges b\u00e5de af temaets templates og overskriver plugin CSS
   for shortcode-klasser (.edn-*).
   ============================================================= */

:root {
  --bg:            #faf8f3;
  --surface:       #ffffff;
  --surface-soft:  #f3efe6;
  --surface-sunk:  #ece8de;
  --ink:           #0c0c0c;
  --ink-soft:      #1a1a1a;
  --muted:         #6b6863;
  --muted-2:       #9b988f;
  --line:          #e7e2d5;
  --line-strong:   #d8d2c2;
  --accent:        #0c0c0c;
  --accent-ink:    #ffffff;
  --up-bg:         #d8efd9;
  --up-fg:         #1f5b30;
  --up-dot:        #2bb558;
  --warn-bg:       #fbe9c9;
  --warn-fg:       #7a4a06;
  --warn-dot:      #e0a32a;
  --down-bg:       #fbd9d2;
  --down-fg:       #8a1f10;
  --down-dot:      #d2371c;
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --shadow-sm: 0 1px 0 rgba(20, 18, 12, 0.04), 0 1px 2px rgba(20, 18, 12, 0.04);
  --shadow-md: 0 1px 0 rgba(20, 18, 12, 0.05), 0 6px 18px -6px rgba(20, 18, 12, 0.08);
  --shadow-lg: 0 1px 0 rgba(20, 18, 12, 0.05), 0 24px 60px -24px rgba(20, 18, 12, 0.16);
  --easing: cubic-bezier(0.22, 0.61, 0.36, 1);
  --max: 1180px;
  --pad: clamp(16px, 4vw, 40px);
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:           #0d0c0a;
    --surface:      #1a1815;
    --surface-soft: #211e1a;
    --surface-sunk: #2a2620;
    --ink:          #f6f3eb;
    --ink-soft:     #e8e4d8;
    --muted:        #a09b8e;
    --muted-2:      #6f6a5d;
    --line:         #2c2823;
    --line-strong:  #3a3530;
    --accent:       #f6f3eb;
    --accent-ink:   #0c0c0c;
    --up-bg:        #143822;
    --up-fg:        #9bdcb0;
    --warn-bg:      #3a2b0d;
    --warn-fg:      #f0c97a;
    --down-bg:      #3a160f;
    --down-fg:      #f3a59a;
    --shadow-md: 0 1px 0 rgba(0,0,0,0.4), 0 8px 22px -8px rgba(0,0,0,0.6);
  }
}

/* ---- reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Inter Tight", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "ss01","cv11";
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(212,200,170,0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(220,210,185,0.18), transparent 55%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.edn-container,
.container {
  max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--pad);
  padding-right: var(--pad);
}

/* ---- site header ---- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  background: color-mix(in oklab, var(--bg) 78%, transparent);
  border-bottom: 1px solid var(--line);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  font-size: 17px;
  color: var(--ink);
}
.brand__mark {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  display: grid; place-items: center;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.nav { display: flex; gap: 4px; align-items: center; }
.nav a, .nav .menu-item a {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 14px;
  color: var(--muted);
  transition: color .18s var(--easing), background .18s var(--easing);
}
.nav a:hover, .nav .menu-item a:hover,
.nav .current-menu-item a { color: var(--ink); background: var(--surface-soft); }
.nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; }

/* Hamburger toggle */
.nav-toggle {
  display: none;
  width: 44px; height: 44px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  cursor: pointer;
  align-items: center; justify-content: center;
  padding: 0;
  transition: background .18s var(--easing), border-color .18s var(--easing);
}
.nav-toggle:hover { background: var(--surface-soft); border-color: var(--line-strong); }
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 18px; }
.nav-toggle__bars span {
  height: 2px; background: var(--ink);
  border-radius: 2px;
  transition: transform .25s var(--easing), opacity .2s var(--easing);
  transform-origin: center;
}
[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Mobile drawer */
.mobile-nav {
  position: fixed; inset: 0;
  z-index: 60;
  background: color-mix(in oklab, var(--ink) 30%, transparent);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity .22s var(--easing);
}
.mobile-nav__inner {
  position: absolute; right: 0; top: 0; bottom: 0;
  width: min(360px, 86vw);
  background: var(--surface);
  padding: 24px;
  display: flex; flex-direction: column; gap: 22px;
  transform: translateX(100%);
  transition: transform .28s var(--easing);
  box-shadow: var(--shadow-lg);
  border-left: 1px solid var(--line);
}
.mobile-nav__links { display: flex; flex-direction: column; gap: 4px; }
.mobile-nav__links a, .mobile-nav__list a {
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 16px; font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: background .15s var(--easing);
}
.mobile-nav__links a:hover, .mobile-nav__list a:hover { background: var(--surface-soft); }
.mobile-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }

html.nav-open .mobile-nav { opacity: 1; pointer-events: auto; }
html.nav-open .mobile-nav__inner { transform: translateX(0); }
html.nav-open { overflow: hidden; }

@media (max-width: 720px) {
  .site-header__inner { height: 60px; }
  .nav--desktop { display: none; }
  .nav-toggle { display: inline-flex; }
}
@media (min-width: 721px) {
  .nav-toggle, .mobile-nav { display: none !important; }
}

/* ---- shared display heading ---- */
.display-h1 {
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ink);
  margin: 0 0 14px;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}
.eyebrow--live::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--up-dot);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--up-dot) 18%, transparent);
  animation: edn-pulse 2.4s var(--easing) infinite;
}
@keyframes edn-pulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in oklab, var(--up-dot) 18%, transparent); }
  50%      { box-shadow: 0 0 0 8px color-mix(in oklab, var(--up-dot) 0%, transparent); }
}

/* ---- buttons ---- */
.btn,
.edn-btn-dark {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: var(--accent-ink);
  border: 0;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.005em;
  transition: transform .18s var(--easing), background .2s var(--easing);
  white-space: nowrap;
  text-decoration: none;
}
.btn:hover, .edn-btn-dark:hover { transform: translateY(-1px); }
.btn:active, .edn-btn-dark:active { transform: translateY(0); }
.btn--ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line-strong);
}
.btn--ghost:hover { background: var(--surface-soft); }

/* =============================================================
   PLUGIN OVERRIDES \u2014 [edn_checker] forside-s\u00f8gekort
   ============================================================= */
.edn-checker-wrap { margin-top: clamp(20px, 4vw, 40px); }
.edn-checker-card,
.edn-status-card,
.edn-report-card,
.edn-graph-card,
.edn-dns-card,
.edn-mail-card,
.edn-ssl-card,
.edn-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
  margin: 0 0 18px;
}
.edn-status-card,
.edn-report-card,
.edn-graph-card { padding: clamp(24px, 4vw, 40px); }

.edn-checker-card::before {
  content: "";
  position: absolute; inset: 0;
  pointer-events: none;
  background:
    radial-gradient(680px 360px at 110% -10%, rgba(255, 215, 130, 0.12), transparent 60%),
    radial-gradient(520px 280px at -10% 110%, rgba(120, 200, 165, 0.10), transparent 60%);
}

.edn-overline,
.edn-domain-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  margin: 0;
}
.edn-overline::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--up-dot);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--up-dot) 18%, transparent);
  animation: edn-pulse 2.4s var(--easing) infinite;
}

.edn-headline {
  margin: 18px 0 14px;
  font-size: clamp(40px, 6.2vw, 76px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 0.98;
  color: var(--ink);
}
.edn-sub {
  font-size: clamp(15px, 1.4vw, 17px);
  color: var(--muted);
  max-width: 56ch;
  margin: 0 0 26px;
}

.edn-search-row {
  display: flex;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px;
  box-shadow: var(--shadow-sm);
  max-width: 720px;
  transition: border-color .2s var(--easing), box-shadow .2s var(--easing);
}
.edn-search-row:focus-within {
  border-color: var(--ink);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--ink) 8%, transparent);
}
.edn-input,
.edn-dns-input,
.edn-mail-input,
.edn-ssl-input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--ink);
  padding: 14px 4px;
}
.edn-input::placeholder,
.edn-dns-input::placeholder,
.edn-mail-input::placeholder,
.edn-ssl-input::placeholder { color: var(--muted-2); }

.edn-quick-links {
  margin-top: 18px;
  display: flex; flex-wrap: wrap; gap: 8px;
}
.edn-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color .18s var(--easing), background .18s var(--easing), transform .18s var(--easing);
}
.edn-chip:hover { border-color: var(--ink); transform: translateY(-1px); }
.edn-chip::before {
  content: "";
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--up-dot);
}

/* =============================================================
   PLUGIN OVERRIDES \u2014 [edn_service_status] status-side
   ============================================================= */
.edn-service-wrap { display: grid; gap: 18px; margin-top: clamp(20px, 4vw, 40px); }

.edn-badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13px;
  font-weight: 600;
  background: var(--up-bg);
  color: var(--up-fg);
}
.edn-badge::before {
  content: "";
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--up-dot);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--up-dot) 22%, transparent);
  animation: edn-pulse 2.4s var(--easing) infinite;
}
.edn-badge-up { background: var(--up-bg); color: var(--up-fg); }
.edn-badge-down { background: var(--down-bg); color: var(--down-fg); }
.edn-badge-down::before { background: var(--down-dot); box-shadow: 0 0 0 4px color-mix(in oklab, var(--down-dot) 22%, transparent); }
.edn-badge-unknown { background: var(--warn-bg); color: var(--warn-fg); }
.edn-badge-unknown::before { background: var(--warn-dot); box-shadow: 0 0 0 4px color-mix(in oklab, var(--warn-dot) 22%, transparent); }

.edn-service-name {
  margin: 6px 0 4px;
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}
.edn-status-text { color: var(--muted); margin: 0; }

.edn-stats-grid {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .edn-stats-grid { grid-template-columns: 1fr; } }
.edn-stat-box {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
}
.edn-stat-label {
  display: block;
  font-size: 12.5px; color: var(--muted); margin: 0 0 8px;
}
.edn-stat-value {
  display: block;
  font-size: clamp(22px, 2.6vw, 30px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.edn-stat-sm { font-size: clamp(16px, 1.8vw, 20px); }

.edn-card-footer {
  margin-top: 22px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.edn-footer-note { font-size: 13.5px; color: var(--muted); }

/* report card */
.edn-report-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.edn-report-title { margin: 0; font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.edn-report-sub { color: var(--muted); margin: 4px 0 0; font-size: 14px; }
.edn-report-count {
  font-size: 12.5px; color: var(--muted);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 8px 12px; border-radius: var(--r-pill);
}
.edn-problems-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
@media (max-width: 880px) { .edn-problems-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .edn-problems-grid { grid-template-columns: 1fr; } }
.edn-problem-btn {
  padding: 14px 16px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  border: 1px solid transparent;
  text-align: left;
  font-size: 14px;
  color: var(--ink-soft);
  font-weight: 500;
  transition: background .18s var(--easing), border-color .18s var(--easing), transform .18s var(--easing);
}
.edn-problem-btn:hover { border-color: var(--line-strong); background: var(--surface); transform: translateY(-1px); }
.edn-problem-btn.is-active,
.edn-problem-btn.edn-active,
.edn-problem-btn.edn-selected,
.edn-problem-btn[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.edn-problem-btn.edn-selected::before {
  content: "✓"; margin-right: 6px; font-weight: 700;
}

.edn-report-feedback {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--r-md);
  background: var(--up-bg);
  color: var(--up-fg);
  font-size: 14.5px;
  font-weight: 500;
  border: 1px solid color-mix(in oklab, var(--up-fg) 18%, transparent);
  animation: edn-fade-in .25s var(--easing);
}
.edn-report-feedback.edn-error {
  background: var(--down-bg);
  color: var(--down-fg);
  border-color: color-mix(in oklab, var(--down-fg) 18%, transparent);
}
@keyframes edn-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* graph */
.edn-graph-title { margin: 0; font-size: 22px; letter-spacing: -0.02em; font-weight: 700; }
.edn-graph-sub { color: var(--muted); font-size: 14px; margin: 4px 0 18px; }
.edn-chart-wrap { position: relative; height: 240px; }
.edn-chart-wrap canvas { width: 100% !important; height: 100% !important; }

/* DNS / mail / SSL checkers */
.edn-dns-title, .edn-mail-title, .edn-ssl-title {
  margin: 14px 0 8px;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 800; letter-spacing: -0.03em; line-height: 1.05;
}
.edn-dns-sub, .edn-mail-sub, .edn-ssl-sub { color: var(--muted); margin: 0 0 22px; max-width: 60ch; }
.edn-dns-row, .edn-mail-row, .edn-ssl-row {
  display: flex; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 6px 6px 6px 22px;
  max-width: 760px;
  align-items: center;
  box-shadow: var(--shadow-sm);
}
.edn-dns-select {
  border: 0; background: transparent;
  font: inherit; color: var(--ink);
  padding: 0 12px;
  border-left: 1px solid var(--line);
}
.edn-dns-help {
  margin-top: 14px; font-size: 13.5px; color: var(--muted);
}
.edn-dns-result, .edn-mail-result, .edn-ssl-result {
  margin-top: 18px;
  padding: 18px 20px;
  border-radius: var(--r-md);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 14px;
}

/* =============================================================
   THEME-SPECIFIC \u2014 popular grid, blog cards, footer
   ============================================================= */
.section { margin-top: clamp(28px, 5vw, 56px); }
.section-title {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 600;
}
.split { display: grid; grid-template-columns: 2fr 1.1fr; gap: 18px; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; } }

.logo-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.logo-grid--3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 720px) {
  .logo-grid, .logo-grid--3 { grid-template-columns: repeat(2, 1fr); }
}

.logo-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  display: flex; flex-direction: column;
  text-decoration: none;
  color: var(--ink);
  transition: border-color .2s var(--easing), transform .2s var(--easing), box-shadow .2s var(--easing);
}
.logo-tile:hover { border-color: var(--line-strong); transform: translateY(-2px); box-shadow: var(--shadow-md); }

.logo-tile__media {
  position: relative;
  flex: 1;
  aspect-ratio: 1.4 / 1;
  display: grid; place-items: center;
  padding: 16px;
  background: var(--surface-soft);
  min-height: 0;
}
.logo-tile__media img {
  max-width: 70%;
  max-height: 70%;
  width: auto; height: auto;
  object-fit: contain;
}

/* Text-only tiles: title fills the whole card, no second name row. */
.logo-tile--text { aspect-ratio: 1.4 / 1; }
.logo-tile--text .logo-tile__media {
  flex: 1;
  background: var(--surface);
  aspect-ratio: auto;
}
.logo-tile--text .logo-tile__title {
  font-weight: 800;
  font-size: clamp(18px, 2.6vw, 24px);
  letter-spacing: -0.03em; color: var(--ink);
  text-align: center;
  line-height: 1.1;
  padding: 0 16px;
  word-break: break-word;
}

.logo-tile__status {
  position: absolute;
  right: 12px; top: 12px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--up-dot);
  box-shadow: 0 0 0 4px color-mix(in oklab, var(--up-dot) 18%, transparent);
  z-index: 2;
}
.logo-tile__status.is-warn { background: var(--warn-dot); box-shadow: 0 0 0 4px color-mix(in oklab, var(--warn-dot) 18%, transparent); }
.logo-tile__status.is-down { background: var(--down-dot); box-shadow: 0 0 0 4px color-mix(in oklab, var(--down-dot) 18%, transparent); }

.logo-tile__name {
  padding: 11px 14px;
  font-size: 13px; font-weight: 600;
  color: var(--ink); letter-spacing: -0.005em;
  line-height: 1.3;
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-align: center;
}

.info-card {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-lg);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.info-card::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(400px 220px at 100% 0%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
.info-card .eyebrow { color: rgba(255,255,255,0.7); }
.info-card h3 {
  margin: 12px 0 12px;
  font-size: 22px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15;
}
.info-card p { color: color-mix(in oklab, var(--bg) 78%, transparent); font-size: 14.5px; margin: 0 0 12px; }

/* posts */
.posts { display: grid; gap: 12px; }
.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 14px;
  align-items: stretch;
  transition: border-color .2s var(--easing), transform .2s var(--easing), box-shadow .2s var(--easing);
  text-decoration: none;
  color: inherit;
}
.post-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.post-card__media {
  border-radius: var(--r-md);
  background: var(--surface-sunk);
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
}
.post-card__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card__body { display: flex; flex-direction: column; gap: 8px; padding: 6px 8px 6px 0; }
.post-card__title {
  font-size: 19px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); margin: 0;
}
.post-card__meta { font-size: 13.5px; color: var(--muted); }
.post-card__more {
  margin-top: auto;
  font-weight: 600; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--ink);
}
.post-card__more::after { content: "→"; transition: transform .2s var(--easing); }
.post-card:hover .post-card__more::after { transform: translateX(3px); }
@media (max-width: 720px) {
  .post-card { grid-template-columns: 1fr; }
  .post-card__media { aspect-ratio: 16 / 8; }
}

/* archive (services) */
.archive-toolbar {
  display: flex; gap: 12px; flex-wrap: wrap; align-items: center;
  margin-bottom: 22px;
}
.archive-search {
  flex: 1; min-width: 240px;
  display: flex;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  padding: 4px 4px 4px 18px;
}
.archive-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font: inherit; padding: 12px 4px; color: var(--ink);
}

.alpha-section { margin-top: 28px; }
.alpha-section__head {
  display: flex; align-items: baseline; justify-content: space-between;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px; margin-bottom: 14px;
}
.alpha-letter {
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1;
  color: var(--ink);
}
.alpha-count { font-size: 13px; color: var(--muted); }

/* article (single post) */
.entry {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: clamp(28px, 5vw, 56px);
  box-shadow: var(--shadow-md);
  margin-top: clamp(20px, 4vw, 40px);
}
.entry h1 {
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 800; letter-spacing: -0.035em; line-height: 1.02;
  margin: 0 0 12px;
}
.entry .meta { color: var(--muted); font-size: 14px; margin: 0 0 28px; }
.entry__media { border-radius: var(--r-md); overflow: hidden; margin: 0 0 28px; aspect-ratio: 16/9; background: var(--surface-sunk); }
.entry__media img { width: 100%; height: 100%; object-fit: cover; }
.entry__content {
  font-size: 17px;
  max-width: 70ch;
  color: var(--ink-soft);
}
.entry__content h2 { margin-top: 1.6em; font-size: 26px; letter-spacing: -0.02em; }
.entry__content h3 { margin-top: 1.4em; font-size: 19px; }
.entry__content p { margin: 0 0 1.1em; }
.entry__content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.entry__content a:hover { text-decoration-color: var(--ink); }
.entry__content blockquote {
  border-left: 3px solid var(--ink);
  margin: 1.4em 0; padding: .2em 0 .2em 18px;
  color: var(--muted); font-style: italic;
}

/* footer */
.site-footer {
  margin-top: 60px;
  border-top: 1px solid var(--line);
  background: color-mix(in oklab, var(--bg) 80%, transparent);
}
.site-footer__inner {
  padding: 32px 0 40px;
  display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
@media (max-width: 720px) { .site-footer__inner { grid-template-columns: 1fr; } }
.site-footer h4 { margin: 0 0 12px; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-footer a { color: var(--ink); font-size: 14.5px; }
.site-footer a:hover { color: var(--muted); }
.site-footer__bottom {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--muted); font-size: 13.5px;
}

/* page (no card wrapper) */
.page-wrap {
  margin-top: clamp(20px, 4vw, 40px);
  max-width: 880px;
  margin-left: auto;
  margin-right: auto;
}
.page-head {
  margin-bottom: clamp(20px, 4vw, 36px);
  text-align: center;
}
.page-head .eyebrow { justify-content: center; }
.page-head .display-h1 { margin-top: 12px; max-width: 18ch; margin-left: auto; margin-right: auto; }

.prose {
  font-size: 17px;
  line-height: 1.65;
  color: var(--ink-soft);
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
}
.prose > * + * { margin-top: 1em; }
.prose h1, .prose h2, .prose h3, .prose h4 {
  color: var(--ink);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-top: 1.6em;
  margin-bottom: 0.5em;
  font-weight: 800;
}
.prose h1 { font-size: clamp(32px, 4.5vw, 46px); margin-top: 0; }
.prose h2 { font-size: clamp(24px, 3vw, 32px); }
.prose h3 { font-size: 20px; }
.prose h4 { font-size: 17px; letter-spacing: -0.01em; }
.prose p { margin: 0 0 1.1em; }
.prose a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-strong); }
.prose a:hover { text-decoration-color: var(--ink); }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.1em; }
.prose li { margin: 0.3em 0; }
.prose blockquote {
  border-left: 3px solid var(--ink);
  margin: 1.4em 0; padding: .2em 0 .2em 18px;
  color: var(--muted); font-style: italic;
}
.prose img { border-radius: var(--r-md); margin: 1.4em 0; }
.prose figure { margin: 1.4em 0; }
.prose figcaption { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.prose code, .prose kbd {
  background: var(--surface-soft);
  padding: 2px 6px; border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.9em;
}
.prose hr {
  border: 0; border-top: 1px solid var(--line);
  margin: 2em 0;
}

/* When a page contains a [..._checker] shortcode, the shortcode card spans wider; allow it. */
.prose .edn-card,
.prose .edn-checker-wrap,
.prose .edn-dns-wrap,
.prose .edn-mail-wrap,
.prose .edn-ssl-wrap,
.prose .edn-service-wrap {
  max-width: none;
  margin-left: 0; margin-right: 0;
}

/* =============================================================
   Driftsnyt landing + incident archive
   ============================================================= */
.section-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-bottom: 16px;
}
.section-head .section-title { margin: 0; }
.section-link {
  font-size: 13.5px; color: var(--muted); font-weight: 600;
  display: inline-flex; align-items: center; gap: 4px;
  transition: color .18s var(--easing);
}
.section-link:hover { color: var(--ink); }

.kpi-row {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 720px) { .kpi-row { grid-template-columns: 1fr; } }
.kpi {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 18px 20px;
  display: flex; flex-direction: column; gap: 6px;
}
.kpi__label { font-size: 12.5px; color: var(--muted); }
.kpi__value {
  font-size: clamp(26px, 3vw, 36px);
  font-weight: 800; letter-spacing: -0.025em; color: var(--ink); line-height: 1;
}

/* incident rows */
.incidents { display: grid; gap: 8px; }
.incident-row {
  display: grid;
  grid-template-columns: 88px 1fr auto;
  gap: 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s var(--easing), transform .18s var(--easing), box-shadow .18s var(--easing);
}
.incident-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.incident-row__time {
  display: flex; flex-direction: column; align-items: flex-start;
  font-variant-numeric: tabular-nums;
}
.incident-row__date { font-size: 13.5px; font-weight: 600; color: var(--ink); }
.incident-row__hour { font-size: 12.5px; color: var(--muted); }
.incident-row__main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.incident-row__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.incident-row__title {
  margin: 0;
  font-size: 16px; font-weight: 700; letter-spacing: -0.01em;
  color: var(--ink);
  overflow: hidden; text-overflow: ellipsis;
}
.incident-row__meta { margin: 0; font-size: 13px; color: var(--muted); }
.incident-row__arrow {
  font-size: 18px; color: var(--muted-2);
  transition: transform .18s var(--easing), color .18s var(--easing);
}
.incident-row:hover .incident-row__arrow { transform: translateX(3px); color: var(--ink); }

@media (max-width: 720px) {
  .incident-row { grid-template-columns: 70px 1fr auto; padding: 12px 14px; gap: 12px; }
}

/* filter tabs */
.filter-tabs {
  display: inline-flex; gap: 4px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  padding: 4px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.filter-tab {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  font-size: 13.5px; font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex; align-items: center; gap: 6px;
  transition: background .18s var(--easing), color .18s var(--easing);
}
.filter-tab:hover { color: var(--ink); }
.filter-tab.is-active { background: var(--ink); color: var(--bg); }
.filter-tab span {
  font-size: 11.5px; padding: 2px 7px;
  background: color-mix(in oklab, currentColor 14%, transparent);
  border-radius: var(--r-pill);
  font-variant-numeric: tabular-nums;
}

/* most-affected list */
.affected-list { display: grid; gap: 8px; }
.affected-row {
  display: grid;
  grid-template-columns: minmax(140px, 25%) 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 14px 18px;
  text-decoration: none;
  color: inherit;
  transition: border-color .18s var(--easing), transform .18s var(--easing);
}
.affected-row:hover { border-color: var(--line-strong); transform: translateY(-1px); }
.affected-row__name { font-weight: 600; color: var(--ink); }
.affected-row__bar {
  position: relative;
  height: 8px;
  background: var(--surface-sunk);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.affected-row__bar-fill {
  position: absolute; left: 0; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--down-dot), var(--warn-dot));
  border-radius: var(--r-pill);
  transition: width .4s var(--easing);
}
.affected-row__count {
  font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
@media (max-width: 720px) {
  .affected-row { grid-template-columns: 1fr; }
  .affected-row__bar { display: none; }
  .affected-row__count { color: var(--ink); font-weight: 500; }
}

/* pagination */
.pagination { display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.pagination .page-numbers {
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 13.5px; color: var(--muted);
  text-decoration: none;
  transition: border-color .18s var(--easing), color .18s var(--easing), background .18s var(--easing);
}
.pagination .page-numbers:hover { color: var(--ink); border-color: var(--line-strong); }
.pagination .page-numbers.current { background: var(--ink); color: var(--bg); border-color: var(--ink); }

/* =============================================================
   Webza help CTA — shown on service-side pages
   ============================================================= */
.webza-cta {
  margin: 18px 0;
  background: linear-gradient(135deg, var(--ink) 0%, color-mix(in oklab, var(--ink) 88%, var(--down-fg)) 100%);
  border-radius: var(--r-xl);
  color: var(--bg);
  padding: clamp(28px, 4vw, 44px);
  position: relative;
  overflow: hidden;
}
.webza-cta::after {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(255,255,255,0.08), transparent 60%),
    radial-gradient(380px 200px at 0% 100%, rgba(255,255,255,0.06), transparent 60%);
  pointer-events: none;
}
.webza-cta__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: clamp(20px, 3vw, 36px);
  align-items: center;
}
@media (max-width: 720px) {
  .webza-cta__inner { grid-template-columns: 1fr; }
}
.webza-cta .eyebrow { color: rgba(255,255,255,0.7); }
.webza-cta__title {
  margin: 12px 0 12px;
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800; letter-spacing: -0.025em;
  line-height: 1.05;
  color: var(--bg);
}
.webza-cta__lead {
  margin: 0 0 22px;
  font-size: 15.5px;
  color: color-mix(in oklab, var(--bg) 80%, transparent);
  max-width: 52ch;
}
.webza-cta__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.webza-cta__actions .btn {
  background: var(--bg);
  color: var(--ink);
}
.webza-cta__actions .btn:hover { background: color-mix(in oklab, var(--bg) 88%, var(--ink)); }
.webza-cta__actions .btn--ghost {
  background: transparent;
  color: var(--bg);
  border: 1px solid color-mix(in oklab, var(--bg) 35%, transparent);
}
.webza-cta__actions .btn--ghost:hover {
  background: color-mix(in oklab, var(--bg) 12%, transparent);
}
.webza-cta__list {
  list-style: none; padding: 0; margin: 0;
  display: grid; gap: 10px;
  font-size: 14.5px;
  color: color-mix(in oklab, var(--bg) 88%, transparent);
}
.webza-cta__list li {
  position: relative;
  padding-left: 26px;
}
.webza-cta__list li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  width: 18px; height: 18px;
  display: grid; place-items: center;
  background: color-mix(in oklab, var(--bg) 16%, transparent);
  border-radius: 50%;
  font-size: 11px; font-weight: 700;
  color: var(--bg);
}

/* trending grid */
.trending-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
@media (max-width: 880px) { .trending-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .trending-grid { grid-template-columns: 1fr; } }
.trending-card {
  display: flex; flex-direction: column; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px 18px;
  text-decoration: none; color: inherit;
  transition: border-color .2s var(--easing), transform .2s var(--easing), box-shadow .2s var(--easing);
}
.trending-card:hover { border-color: var(--down-fg); box-shadow: var(--shadow-md); transform: translateY(-1px); }
.trending-card__head {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.trending-card__name {
  font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em; color: var(--ink);
}
.trending-card__count {
  font-variant-numeric: tabular-nums; font-weight: 700;
  font-size: 18px; color: var(--down-fg);
}
.trending-card__count span { font-size: 12px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.trending-card__bar {
  position: relative;
  height: 4px;
  background: var(--surface-sunk);
  border-radius: var(--r-pill);
  overflow: hidden;
}
.trending-card__bar-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, var(--down-dot), var(--warn-dot));
  border-radius: var(--r-pill);
  width: 0;
  animation: edn-bar-grow .8s var(--easing) forwards;
}
@keyframes edn-bar-grow { from { width: 0; } }
.trending-card__time { font-size: 12px; color: var(--muted); }

/* problem stats bars */
.problem-stats { display: grid; gap: 8px; }
.problem-stat {
  display: grid;
  grid-template-columns: minmax(180px, 30%) 1fr auto;
  gap: 16px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 18px;
}
.problem-stat__label { font-size: 14px; color: var(--ink); font-weight: 500; }
.problem-stat__bar {
  position: relative; height: 6px; background: var(--surface-sunk);
  border-radius: var(--r-pill); overflow: hidden;
}
.problem-stat__bar-fill {
  position: absolute; inset: 0; right: auto;
  background: var(--ink);
  border-radius: var(--r-pill);
}
.problem-stat__count {
  font-variant-numeric: tabular-nums; font-weight: 600; font-size: 14px;
  color: var(--ink); white-space: nowrap;
}
@media (max-width: 720px) {
  .problem-stat { grid-template-columns: 1fr auto; }
  .problem-stat__bar { display: none; }
}

/* empty state */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  color: var(--muted);
}
.empty-state__icon {
  display: inline-grid; place-items: center;
  width: 48px; height: 48px;
  border-radius: 50%;
  background: var(--up-bg);
  color: var(--up-fg);
  font-size: 22px; font-weight: 800;
  margin: 0 auto 12px;
}
.empty-state p { margin: 0; }

/* =============================================================
   Mobile tightening — reduce hero/h1 sizes, padding, gaps
   ============================================================= */
@media (max-width: 720px) {
  :root { --pad: 16px; }
  .display-h1, .edn-headline {
    font-size: clamp(28px, 8vw, 38px) !important;
    letter-spacing: -0.03em;
    line-height: 1.04;
  }
  .edn-service-name {
    font-size: clamp(26px, 7.4vw, 36px) !important;
    line-height: 1.05;
  }
  .edn-checker-card,
  .edn-status-card,
  .edn-report-card,
  .edn-graph-card,
  .edn-dns-card,
  .edn-mail-card,
  .edn-ssl-card,
  .edn-card,
  .status-card,
  .entry {
    padding: 22px 18px !important;
    border-radius: 18px !important;
  }
  .edn-search-row {
    flex-direction: column;
    border-radius: 16px;
    padding: 12px;
    gap: 8px;
  }
  .edn-search-row .edn-input { padding: 10px 12px; }
  .edn-search-row .edn-btn-dark { width: 100%; padding: 14px; }
  .edn-stats-grid { gap: 8px; }
  .edn-stat-box { padding: 14px 16px; }
  .edn-stat-value { font-size: 22px; }
  .kpi-row { gap: 8px; }
  .kpi { padding: 14px 16px; }
  .kpi__value { font-size: 28px; }
  .info-card { padding: 22px 18px; }
  .post-card { padding: 12px; gap: 14px; }
  .section { margin-top: 24px; }
  .section-title { font-size: 12px; }
  .filter-tabs { width: 100%; }
  .filter-tab { flex: 1; justify-content: center; }
}

/* =============================================================
   Dark mode hardening — make sure everything has proper contrast.
   ============================================================= */
@media (prefers-color-scheme: dark) {
  body {
    background-image:
      radial-gradient(1200px 600px at 80% -10%, rgba(120, 100, 70, 0.10), transparent 60%),
      radial-gradient(900px 500px at -10% 10%, rgba(80, 110, 90, 0.08), transparent 55%);
  }
  /* Plugin shortcode HTML — make sure all text inherits ink */
  .edn-card, .edn-card *,
  .edn-checker-card, .edn-status-card, .edn-report-card, .edn-graph-card,
  .edn-dns-card, .edn-mail-card, .edn-ssl-card,
  .status-card, .entry, .post-card,
  .incident-row, .affected-row, .trending-card, .problem-stat, .kpi {
    color: var(--ink);
  }
  /* Muted helpers stay muted */
  .edn-status-text, .edn-footer-note, .edn-stat-label, .edn-report-sub,
  .edn-graph-sub, .edn-domain-label, .edn-overline,
  .post-card__meta, .alpha-count,
  .incident-row__meta, .incident-row__hour,
  .trending-card__time, .trending-card__count span,
  .kpi__label, .empty-state, .empty-state p,
  .nav a, .nav .menu-item a,
  .section-link, .affected-row__count {
    color: var(--muted) !important;
  }
  /* Force white-ish text on any forgotten nodes inside cards */
  .edn-checker-card h1, .edn-checker-card h2, .edn-checker-card h3,
  .status-card h1, .status-card h2, .status-card h3,
  .edn-report-title, .edn-graph-title, .edn-dns-title, .edn-mail-title, .edn-ssl-title,
  .post-card__title, .incident-row__title, .trending-card__name,
  .alpha-letter, .affected-row__name, .problem-stat__label,
  .metric__value, .edn-stat-value {
    color: var(--ink) !important;
  }
  /* The dark info-card flips: now light bg + dark text in dark mode */
  .info-card {
    background: var(--surface);
    color: var(--ink);
    border: 1px solid var(--line);
  }
  .info-card .eyebrow { color: var(--muted); }
  .info-card h3, .info-card p { color: var(--ink); }
  .info-card p { color: color-mix(in oklab, var(--ink) 80%, var(--muted)); }
  /* Dark badges keep their colored text */
  .edn-badge-up { background: var(--up-bg); color: var(--up-fg) !important; }
  .edn-badge-down { background: var(--down-bg); color: var(--down-fg) !important; }
  .edn-badge-unknown { background: var(--warn-bg); color: var(--warn-fg) !important; }
  .badge { color: var(--up-fg) !important; }
  /* Active pill keeps its inverted colors */
  .edn-problem-btn.is-active,
  .edn-problem-btn.edn-selected,
  .filter-tab.is-active,
  .pagination .page-numbers.current {
    background: var(--ink) !important;
    color: var(--bg) !important;
  }
  /* Hamburger bars need to be visible */
  .nav-toggle__bars span { background: var(--ink); }
}

/* WP basic */
.alignleft { float: left; margin: 0 1.4em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.4em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { color: var(--muted); font-size: 13px; margin-top: 6px; }
.screen-reader-text {
  position: absolute !important;
  clip: rect(1px,1px,1px,1px); width: 1px; height: 1px; overflow: hidden;
}
