/* ============================================================
   Lagger.dk – Main Stylesheet
   ============================================================ */

/* --- Reset & Base ------------------------------------------ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --bg-primary: #0e1117;
  --bg-secondary: #161b26;
  --bg-card: #1a2035;
  --bg-card-hover: #1f2844;
  --border: #252d42;
  --border-light: #2e3a55;
  --accent: #2e88e8;
  --accent-dim: #1a5fa8;
  --accent-glow: rgba(46, 136, 232, 0.12);
  --green: #22c55e;
  --green-dim: rgba(34, 197, 94, 0.12);
  --text-primary: #e8ecf0;
  --text-secondary: #a0aab8;
  --text-muted: #5c6878;
  --heading: #f0f4f8;
  --font-sans: 'Segoe UI', system-ui, -apple-system, sans-serif;
  --font-mono: 'Consolas', 'Menlo', monospace;
  --radius: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --max-width: 860px;
  --max-width-wide: 1120px;
  --transition: 0.18s ease;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  background-color: var(--bg-primary);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 1rem;
  line-height: 1.7;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --- Typography -------------------------------------------- */
h1, h2, h3, h4 {
  color: var(--heading);
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 { font-size: clamp(1.65rem, 4vw, 2.35rem); }
h2 { font-size: clamp(1.2rem, 2.8vw, 1.6rem); margin-top: 2.25rem; }
h3 { font-size: clamp(1.05rem, 2vw, 1.2rem); margin-top: 1.5rem; }
h4 { font-size: 1rem; margin-top: 1.25rem; }

p { margin-bottom: 1rem; color: var(--text-primary); }

a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--transition);
}
a:hover { color: #6ab4ff; text-decoration: underline; }
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 3px;
}

strong { color: var(--heading); font-weight: 600; }
em { color: var(--text-secondary); }

ul, ol {
  padding-left: 1.5rem;
  margin-bottom: 1rem;
}
li { margin-bottom: 0.3rem; }
li > ul, li > ol { margin-top: 0.3rem; margin-bottom: 0; }

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2rem 0;
}

code, kbd {
  font-family: var(--font-mono);
  font-size: 0.875em;
  background: rgba(46, 136, 232, 0.1);
  color: #7ec8ff;
  padding: 0.15em 0.45em;
  border-radius: 4px;
}

/* --- Layout ------------------------------------------------ */
.container {
  max-width: var(--max-width-wide);
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--narrow {
  max-width: var(--max-width);
}

main { flex: 1; }

/* --- Header / Navigation ----------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(14, 17, 23, 0.97);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  position: relative;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--heading);
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
  flex-shrink: 0;
}
.site-logo:hover { text-decoration: none; opacity: 0.88; }

.logo-icon {
  width: 30px;
  height: 30px;
  background: var(--accent);
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
}

.logo-text-main { color: #f0f4f8; }
.logo-text-dot  { color: var(--accent); }
.logo-text-dk   { color: var(--text-secondary); }

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.site-nav > a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
}
.site-nav > a:hover {
  color: var(--heading);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}
.site-nav > a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

.site-nav .nav-cta {
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 0.4rem 0.9rem;
}
.site-nav .nav-cta:hover {
  background: #3a9af5;
  color: #fff;
}

/* --- Dropdown --------------------------------------------- */
.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.45rem 0.8rem;
  padding-bottom: 0.7rem;
  margin-bottom: -0.25rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: color var(--transition), background var(--transition);
  white-space: nowrap;
  line-height: 1;
  position: relative;
}

.nav-dropdown:hover .nav-dropdown-toggle,
.nav-dropdown:focus-within .nav-dropdown-toggle,
.nav-dropdown.open .nav-dropdown-toggle {
  color: var(--accent);
  background: var(--accent-glow);
}

.nav-dropdown-arrow {
  width: 13px;
  height: 13px;
  transition: transform var(--transition);
  color: var(--text-muted);
  flex-shrink: 0;
}
.nav-dropdown:hover .nav-dropdown-arrow,
.nav-dropdown:focus-within .nav-dropdown-arrow,
.nav-dropdown.open .nav-dropdown-arrow {
  transform: rotate(180deg);
  color: var(--accent);
}

.nav-dropdown-toggle::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 0;
  right: 0;
  height: 8px;
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 240px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  box-shadow: 0 8px 28px rgba(0,0,0,0.5);
  padding: 0.35rem;
  z-index: 200;
  animation: dropdownIn 0.13s ease;
}

@keyframes dropdownIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-dropdown:hover .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu,
.nav-dropdown.open .nav-dropdown-menu {
  display: block;
}

.nav-dropdown-menu a {
  display: block;
  padding: 0.55rem 0.875rem;
  font-size: 0.85rem;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: color var(--transition), background var(--transition);
}
.nav-dropdown-menu a:hover {
  color: var(--heading);
  background: rgba(255,255,255,0.06);
  text-decoration: none;
}
.nav-dropdown-menu a.active {
  color: var(--accent);
  background: var(--accent-glow);
}

/* Mobile toggle */
.menu-toggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-primary);
  cursor: pointer;
  padding: 0.4rem 0.55rem;
  border-radius: var(--radius);
  line-height: 1;
  font-size: 1.1rem;
  transition: background var(--transition), border-color var(--transition);
}
.menu-toggle:hover {
  background: rgba(255,255,255,0.06);
  border-color: var(--border-light);
}

/* --- Hero -------------------------------------------------- */
.hero {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 3.5rem 0 2.75rem;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 360px;
  height: 360px;
  background: radial-gradient(circle, rgba(46,136,232,0.07) 0%, transparent 70%);
  pointer-events: none;
  will-change: auto;
}

.hero-label {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  background: var(--accent-glow);
  border: 1px solid rgba(46,136,232,0.22);
  padding: 0.25rem 0.75rem;
  border-radius: 100px;
  margin-bottom: 1rem;
}

.hero h1 { margin-bottom: 0.875rem; }

.hero-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  max-width: 680px;
  margin-bottom: 1.5rem;
  line-height: 1.65;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

/* --- Buttons ----------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.6rem 1.2rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  line-height: 1;
  font-family: var(--font-sans);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: #3a9af5;
  color: #fff;
  text-decoration: none;
}

.btn-secondary {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-light);
}
.btn-secondary:hover {
  background: rgba(255,255,255,0.05);
  color: var(--heading);
  text-decoration: none;
  border-color: var(--accent);
}

/* --- Diagnostic Cards (frontpage) -------------------------- */
.diagnostic-section {
  padding: 3rem 0;
}

.section-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 0.5rem;
  display: block;
}

.section-title {
  font-size: clamp(1.2rem, 2.8vw, 1.6rem);
  color: var(--heading);
  margin-bottom: 0.6rem;
  margin-top: 0;
}

.section-intro {
  color: var(--text-secondary);
  max-width: 660px;
  margin-bottom: 1.75rem;
  font-size: 0.975rem;
}

.diag-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
  gap: 0.875rem;
}

.diag-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem;
  transition: border-color var(--transition), background var(--transition);
  text-decoration: none;
  display: block;
}
.diag-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  text-decoration: none;
}

.diag-card-icon {
  font-size: 1.4rem;
  margin-bottom: 0.65rem;
  line-height: 1;
}

.diag-card-symptom {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.35rem;
  display: block;
}

.diag-card h3 {
  font-size: 0.975rem;
  margin-top: 0;
  margin-bottom: 0.4rem;
  color: var(--heading);
}

.diag-card p {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0;
  line-height: 1.55;
}

.diag-card-link {
  margin-top: 0.875rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

/* --- Article Content --------------------------------------- */
.content-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2.25rem 0 3rem;
}

.article-body h2,
.content-article h2 {
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 1.75rem;
}

.article-body h2:first-child,
.content-article h2:first-child,
.article-header + section h2,
.article-header ~ section:first-of-type h2 {
  border-top: none;
  padding-top: 0;
  margin-top: 0;
}

/* Content article wrapper (used on sub-pages) */
.content-article {
  padding: 2.25rem 0 3rem;
}

/* Article intro / page intro */
.article-intro,
.page-intro {
  font-size: 1.05rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-bottom: 1.25rem;
}

.article-header {
  margin-bottom: 0.5rem;
}

.article-header h1 {
  margin-bottom: 0.75rem;
}

/* --- Breadcrumb ------------------------------------------- */
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
  font-size: 0.8rem;
  color: var(--text-muted);
  padding: 0.875rem 0 0.125rem;
  list-style: none;
}

.breadcrumb li {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  margin-bottom: 0;
}

.breadcrumb li::after {
  content: '/';
  color: var(--text-muted);
}
.breadcrumb li:last-child::after { display: none; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); text-decoration: none; }

/* --- Info Box --------------------------------------------- */
.info-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.info-box h3 {
  font-size: 0.925rem;
  margin-top: 0;
  margin-bottom: 0.6rem;
  color: var(--heading);
}
.info-box p:last-child,
.info-box ul:last-child { margin-bottom: 0; }

.info-box--green {
  border-left-color: var(--green);
  background: rgba(34, 197, 94, 0.04);
}
.info-box--warning {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.04);
}

/* --- Table ------------------------------------------------- */
.table-wrap {
  overflow-x: auto;
  margin: 1.5rem 0;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}

thead tr {
  background: var(--bg-card);
  border-bottom: 2px solid var(--border-light);
}

thead th {
  text-align: left;
  padding: 0.75rem 1rem;
  font-weight: 600;
  color: var(--heading);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

tbody tr {
  border-bottom: 1px solid var(--border);
}
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(255,255,255,0.02); }

tbody td {
  padding: 0.75rem 1rem;
  vertical-align: top;
  color: var(--text-primary);
}

/* --- FAQ Accordion ---------------------------------------- */
.faq-section {
  margin: 2.5rem 0;
}

.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-question {
  width: 100%;
  background: none;
  border: none;
  color: var(--heading);
  text-align: left;
  font-size: 0.925rem;
  font-weight: 600;
  padding: 1rem 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  transition: background var(--transition);
  font-family: var(--font-sans);
  line-height: 1.4;
}
.faq-question:hover { background: rgba(255,255,255,0.03); }
.faq-question[aria-expanded="true"] { background: rgba(46,136,232,0.05); }

.faq-icon {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  color: var(--text-muted);
  transition: transform var(--transition), background var(--transition), border-color var(--transition);
  line-height: 1;
}
.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(45deg);
  background: var(--accent-glow);
  border-color: var(--accent);
  color: var(--accent);
}

.faq-answer {
  display: none;
  padding: 0 1.2rem 1.2rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.faq-answer.open { display: block; }
.faq-answer p:last-child,
.faq-answer ul:last-child { margin-bottom: 0; }

/* --- Author Box ------------------------------------------- */
.author-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin: 2.5rem 0;
  display: flex;
  gap: 1.1rem;
  align-items: flex-start;
}

.author-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-dim) 0%, var(--accent) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  border: 2px solid rgba(46,136,232,0.3);
  font-family: var(--font-sans);
  letter-spacing: -0.02em;
}

.author-content { flex: 1; min-width: 0; }

.author-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 0.2rem;
  display: block;
}

.author-name {
  font-size: 0.975rem;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 0.4rem;
  display: block;
}

.author-bio {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0;
}

/* --- Related Articles / Cards ----------------------------- */
.related-section {
  margin: 2.5rem 0;
}

.related-section > h2,
.related-articles > h2 {
  font-size: 1.1rem;
  border-top: none;
  margin-top: 0;
  padding-top: 0;
  margin-bottom: 0.875rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 0.75rem;
}

.related-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.2rem;
  text-decoration: none;
  transition: border-color var(--transition), background var(--transition);
}
.related-card:hover {
  border-color: var(--accent);
  background: var(--bg-card-hover);
  text-decoration: none;
}

.related-card-type {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  display: block;
}

.related-card-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--heading);
  line-height: 1.4;
}

/* Related list (used on some content pages as <ul class="related-list">) */
.related-articles {
  margin: 2.5rem 0;
}

.related-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.related-list li { margin-bottom: 0; }

.related-list a {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.related-list a:hover {
  color: var(--heading);
  border-color: var(--accent);
  background: var(--bg-card-hover);
  text-decoration: none;
}

/* --- Next-step CTA ---------------------------------------- */
.next-step {
  background: var(--bg-card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: 1.5rem;
  margin: 2rem 0;
}

.next-step h3 {
  font-size: 0.925rem;
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: var(--heading);
}

.next-step p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 0.875rem;
}

.next-step .btn { margin-right: 0.5rem; margin-bottom: 0.4rem; }

/* --- CTA Block -------------------------------------------- */
.cta-block {
  background: linear-gradient(135deg, rgba(46,136,232,0.08) 0%, rgba(26,95,168,0.05) 100%);
  border: 1px solid rgba(46,136,232,0.18);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  margin: 2rem 0;
  text-align: center;
}
.cta-block h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  font-size: 1.1rem;
}
.cta-block p {
  color: var(--text-secondary);
  margin-bottom: 1.1rem;
  font-size: 0.875rem;
}
.cta-block .btn { margin: 0 0.3rem 0.4rem; }

/* --- Comparison badges ------------------------------------ */
.compare-table th:first-child,
.compare-table td:first-child {
  font-weight: 600;
  color: var(--heading);
}

.badge-yes {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-dim);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}

.badge-no {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f87171;
  background: rgba(248,113,113,0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}

.badge-maybe {
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 600;
  color: #f59e0b;
  background: rgba(245,158,11,0.1);
  padding: 0.2rem 0.55rem;
  border-radius: 100px;
}

/* --- Symptom List ----------------------------------------- */
.symptom-list {
  list-style: none;
  padding: 0;
  margin: 0.875rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.symptom-list li {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.7rem 1rem;
  font-size: 0.875rem;
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin-bottom: 0;
}

.symptom-list li::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 0.4rem;
}

.symptom-list--warning li::before { background: #f59e0b; }

/* --- Steps List ------------------------------------------- */
.steps-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  counter-reset: step;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.steps-list li {
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  counter-increment: step;
  margin-bottom: 0;
}

.steps-list li::before {
  content: counter(step);
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(46,136,232,0.28);
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Ordered checklist (used in lav-fps and other content pages) */
.checklist {
  padding-left: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  counter-reset: check;
  margin: 1rem 0;
}

.checklist li {
  counter-increment: check;
  display: flex;
  gap: 0.875rem;
  align-items: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 1rem;
  font-size: 0.875rem;
  margin-bottom: 0;
}

.checklist li::before {
  content: counter(check);
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--accent-glow);
  border: 1px solid rgba(46,136,232,0.28);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.15rem;
}

/* --- Page Header (non-frontpage) -------------------------- */
.page-header {
  background: var(--bg-secondary);
  border-bottom: 1px solid var(--border);
  padding: 2.25rem 0 1.75rem;
}

.page-header h1 { margin-bottom: 0.65rem; }

.page-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 660px;
  margin-bottom: 0;
}

/* --- Contact Form ----------------------------------------- */
.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 540px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.form-group input,
.form-group textarea {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  padding: 0.7rem 1rem;
  transition: border-color var(--transition);
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-group textarea {
  resize: vertical;
  min-height: 130px;
}

/* --- Prose / Legal pages ---------------------------------- */
.prose-page {
  padding: 2.25rem 0 3rem;
}

.prose-page h2 { margin-top: 2rem; }
.prose-page h3 { margin-top: 1.5rem; }

/* --- Utility --------------------------------------------- */
.text-muted     { color: var(--text-muted) !important; }
.text-secondary { color: var(--text-secondary) !important; }
.text-accent    { color: var(--accent) !important; }
.text-green     { color: var(--green) !important; }
.mt-0           { margin-top: 0 !important; }

/* --- Footer ----------------------------------------------- */
.site-footer {
  background: var(--bg-secondary);
  border-top: 1px solid var(--border);
  padding: 2.75rem 0 1.5rem;
  margin-top: auto;
}

.footer-brand {
  margin-bottom: 2rem;
}

.footer-brand p {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 290px;
  margin-top: 0.65rem;
  margin-bottom: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-bottom: 2rem;
}

.footer-col h4 {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-top: 0;
  margin-bottom: 0.75rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.footer-col ul li { margin-bottom: 0; }

.footer-col ul a {
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-col ul a:hover {
  color: var(--accent);
  text-decoration: none;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: center;
}

.footer-bottom p {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 0;
}

.footer-legal {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.footer-legal a {
  font-size: 0.78rem;
  color: var(--text-muted);
  text-decoration: none;
}
.footer-legal a:hover { color: var(--text-secondary); }

/* --- Responsive ------------------------------------------- */
@media (max-width: 900px) {
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .site-nav {
    display: none;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    background: rgba(14, 17, 23, 0.98);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 0.6rem;
    gap: 0.15rem;
    box-shadow: 0 4px 24px rgba(0,0,0,0.5);
    z-index: 99;
  }
  .site-nav.open { display: flex; }
  .site-nav > a { padding: 0.7rem 1rem; font-size: 0.925rem; width: 100%; }

  .nav-dropdown { width: 100%; }
  .nav-dropdown-toggle {
    width: 100%;
    padding: 0.7rem 1rem;
    font-size: 0.925rem;
    justify-content: space-between;
    margin-bottom: 0;
  }
  .nav-dropdown-menu {
    display: none;
    position: static;
    box-shadow: none;
    border: none;
    border-radius: 0;
    background: rgba(255,255,255,0.03);
    padding: 0.2rem 0 0.2rem 0.75rem;
    animation: none;
  }
  .nav-dropdown.open .nav-dropdown-menu { display: block; }
  .nav-dropdown-menu a { padding: 0.55rem 1rem; font-size: 0.875rem; }

  .menu-toggle { display: flex; align-items: center; justify-content: center; }

  .hero { padding: 2.25rem 0 1.75rem; }

  .diag-grid { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }

  .author-box { flex-direction: column; align-items: flex-start; gap: 0.75rem; }

  .related-grid { grid-template-columns: 1fr 1fr; }

  .hero-actions { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 1rem; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
