@import url("https://fonts.googleapis.com/css2?family=Doto:wght@400;500;700&display=swap");

:root {
  color-scheme: dark;
  --bg: #101010;
  --bg-hero: #151515;
  --bg-card: #1b1b1b;
  --bg-card-alt: #202020;
  --text: #f7f7f7;
  --muted: #c5c5c5;
  --accent: #ff3b3b;
  --line: rgba(255, 59, 59, 0.6);
  --section-gap: 3rem;
  --section-gap-mobile: 2.25rem;
  --card-action-gap: 1.5rem;
  --glow: 0 0 22px rgba(255, 59, 59, 0.32), 0 0 46px rgba(255, 59, 59, 0.18);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:visited {
  color: var(--accent);
}

main {
  padding: var(--section-gap) 0;
}

main > section + section {
  margin-top: var(--section-gap);
}

img {
  max-width: 100%;
  height: auto;
  border-radius: 18px;
  border: 2px solid var(--line);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45);
}

/* ============================================================
   Site header — left-aligned brand + primary nav right + mobile
   hamburger. Frosted glass on dark bg, subtle bottom border,
   compact 60px height. Sticky with auto-hide on mobile scroll.
   ============================================================ */
header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(15, 15, 15, 0.78);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  transition: transform 0.28s ease, opacity 0.24s ease, box-shadow 0.24s ease;
  will-change: transform, opacity;
}

body.mobile-header-enabled header {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

body.mobile-header-hidden header {
  transform: translateY(calc(-100% - 4px));
  opacity: 0.02;
  box-shadow: none;
  pointer-events: none;
}

.container {
  width: min(960px, 92vw);
  margin: 0 auto;
  padding: 2rem 0;
}

/* Header's container needs to override the global 2rem padding so the
   header stays compact (~64px tall instead of ~110px). */
header .container {
  padding-top: 0;
  padding-bottom: 0;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  min-height: 60px;
}

.header-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  color: var(--accent);
  font-family: "Doto", "Inter", sans-serif;
  font-size: 1.35rem;
  letter-spacing: 0.1em;
  font-weight: 700;
  flex-shrink: 0;
  transition: color 0.18s ease;
}

.header-brand:hover,
.header-brand:focus-visible {
  color: #ff5151;
}

.header-logo {
  width: 38px;
  height: 38px;
  object-fit: contain;
  padding: 3px;
  border-radius: 10px;
  background: #000;
  border: 1px solid rgba(255, 59, 59, 0.32);
  flex-shrink: 0;
}

.header-wordmark {
  display: inline-block;
}

.header-nav {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.85rem;
  border-radius: 8px;
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  letter-spacing: 0.005em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.header-nav-link:hover,
.header-nav-link:focus-visible {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.header-nav-link.is-active {
  color: var(--accent);
  background: rgba(255, 59, 59, 0.09);
}

/* Hamburger button — hidden on desktop, shown on mobile. */
.header-menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
  align-items: center;
  justify-content: center;
  transition: background 0.18s ease;
}

.header-menu-toggle:hover,
.header-menu-toggle:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.header-menu-icon,
.header-menu-icon::before,
.header-menu-icon::after {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--accent);
  border-radius: 2px;
  transition: transform 0.22s ease, opacity 0.22s ease, background 0.22s ease;
}

.header-menu-icon {
  position: relative;
}

.header-menu-icon::before,
.header-menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.header-menu-icon::before { top: -6px; }
.header-menu-icon::after { top: 6px; }

.header-menu-toggle[aria-expanded="true"] .header-menu-icon {
  background: transparent;
}

.header-menu-toggle[aria-expanded="true"] .header-menu-icon::before {
  transform: translateY(6px) rotate(45deg);
}

.header-menu-toggle[aria-expanded="true"] .header-menu-icon::after {
  transform: translateY(-6px) rotate(-45deg);
}

/* Mobile dropdown panel. Hidden by default; slides open below the
   header bar when the hamburger is tapped. */
.header-mobile-nav {
  display: none;
  flex-direction: column;
  gap: 0.1rem;
  padding: 0.5rem 0.9rem 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.header-mobile-nav.is-open {
  display: flex;
}

.header-mobile-link {
  display: block;
  padding: 0.8rem 0.85rem;
  color: var(--accent);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: background 0.18s ease, color 0.18s ease;
}

.header-mobile-link:hover,
.header-mobile-link:focus-visible {
  background: rgba(255, 59, 59, 0.08);
  color: #ff5151;
}

.header-mobile-link.is-active {
  background: rgba(255, 59, 59, 0.12);
}

.header-mobile-link--secondary {
  font-size: 0.92rem;
}

.header-mobile-divider {
  display: block;
  height: 1px;
  background: rgba(255, 255, 255, 0.07);
  margin: 0.5rem 0.85rem;
}

/* Mobile: hide inline nav, show hamburger. */
@media (max-width: 760px) {
  .header-nav {
    display: none;
  }
  .header-menu-toggle {
    display: inline-flex;
  }
  .header-brand {
    font-size: 1.2rem;
  }
  .header-logo {
    width: 34px;
    height: 34px;
  }
}

/* Hero title — static glow, no longer pulsing. Keeps the brand
   identity but reads more professionally. */
.hero-title {
  font-family: "Doto", "Inter", sans-serif;
  font-size: clamp(2.2rem, 4.5vw, 3.8rem);
  margin: 0.25rem 0 0.75rem;
  color: var(--accent);
  letter-spacing: 0.08em;
  display: inline-block;
  text-shadow:
    0 0 2px rgba(255, 255, 255, 0.45),
    0 0 16px rgba(255, 59, 59, 0.55),
    0 0 36px rgba(255, 59, 59, 0.45);
  filter: drop-shadow(0 0 10px rgba(255, 59, 59, 0.4));
}

/* Homepage hero zit in een .container wrapper. De default container
   padding (2rem vert) zorgt dat de hero ~2rem verder van de header af
   staat dan op andere pagina's, waar de hero IS de container. Neutraliseer
   die padding via .hero-section zodat alleen het hero-card de afstand
   bepaalt — net zoals op /vandaag en /daily. */
.hero-section {
  padding-top: 0;
  padding-bottom: 0;
}

.hero {
  margin: 0 auto;
  padding: 2.25rem;
  text-align: left;
}

/* Brand-tagline: stevige witte regel als pakkende hook na de H1.
   .hero .hero-tagline (0,2,0) zodat de font-size wint van de generieke
   .hero p (0,1,1) verderop — anders rendert de tagline op 1.05rem. */
.hero .hero-tagline {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0 0 0.85rem;
  color: var(--text);
  letter-spacing: 0.005em;
  line-height: 1.35;
}

/* Claim loopt op desktop over de volle hero-breedte; iets groter corpus
   en ruimere regelafstand houden de lange regels leesbaar. */
.hero .hero-claim {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.65;
}

/* FAQ-blok onderaan de homepage: details/summary accordeon met dezelfde
   look als op /vandaag. Generieke .faq-* classes voor herbruikbaarheid. */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 1rem;
}

.faq-item {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 14px;
  padding: 0.85rem 1.15rem;
  transition: border-color 0.18s ease;
}

.faq-item[open] {
  border-color: rgba(255, 59, 59, 0.22);
}

.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  margin-left: auto;
  color: var(--accent);
  font-size: 1.15rem;
  line-height: 1;
  font-weight: 700;
  transition: transform 0.2s ease;
}

.faq-item[open] summary::after {
  content: "−";
  transform: none;
}

.faq-item summary:hover,
.faq-item summary:focus-visible {
  color: var(--accent);
}

.faq-item p {
  margin: 0.65rem 0 0;
  color: var(--text);
  opacity: 0.88;
  line-height: 1.55;
  font-size: 0.95rem;
}

.faq-item p a {
  color: var(--accent);
}

/* Quick-link row in de hero — pill-links (.hero-chip) naar de
   sub-pagina's, waaronder de live prijschip. align-items centreert
   de pills op één regel; bij wrap stapelen ze met kleine gap. */
.hero-quick-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem 0.75rem;
  margin: 0.25rem 0 0;
}


.hero p {
  margin-bottom: 1rem;
  font-size: 1.05rem;
}

.hero .cta {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--accent);
}

.hero-highlight {
  color: var(--accent);
  font-weight: 600;
}

.clickable-forecast {
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.clickable-forecast:hover,
.clickable-forecast:focus-visible {
  transform: scale(1.01);
  box-shadow: 0 30px 55px rgba(0, 0, 0, 0.55);
}

.hero .disclaimer {
  font-size: 0.95rem;
  opacity: 0.9;
  border-left: 6px solid var(--accent);
  padding-left: 1.2rem;
}

.page-title {
  font-family: "Doto", "Inter", sans-serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-top: 0;
  margin-bottom: 1.5rem;
  color: var(--accent);
  letter-spacing: 0.08em;
}

.page-block {
  margin: 0;
  width: min(960px, 92vw);
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 1.75rem;
}

/* Ensure visible breathing room between consecutive info-cards on the
   model/over page, where multiple <section class="container card info-card">
   are stacked. The general main>section+section rule is sometimes harder
   to spot when both sections share identical card styling. */
.model-page main > section + section {
  margin-top: var(--section-gap);
}

.model-page main > section.container.card + section.container.card {
  margin-top: calc(var(--section-gap) + 0.5rem);
}

.contact-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
  max-width: none;
}

.contact-btn {
  margin-top: var(--card-action-gap);
}

.contact-note {
  margin-top: 1rem;
  font-size: 0.95rem;
  color: var(--muted);
}

.api-page main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
}

.api-page main > section {
  width: min(960px, 92vw);
}

.blog-page main {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--section-gap);
}

.blog-page main > section {
  width: min(960px, 92vw);
  margin: 0;
}

.api-page .api-grid {
  width: min(960px, 92vw);
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
}

.api-page .api-grid .card {
  height: 100%;
}

.api-page .api-cta {
  text-align: left;
}

.api-page .api-cta .contact-btn {
  display: inline-block;
  margin: var(--card-action-gap) auto 0;
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.pill {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: rgba(255, 59, 59, 0.12);
  border: 1px solid var(--line);
  color: var(--text);
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.code-block {
  background: #0c0c0c;
  border: 1px solid rgba(255, 59, 59, 0.3);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 0.95rem;
  color: var(--text);
  overflow-x: auto;
  box-shadow: inset 0 0 20px rgba(0, 0, 0, 0.35);
}

.code-block pre {
  margin: 0;
}

.code-columns,
.info-grid,
.api-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.code-columns--stacked {
  grid-template-columns: 1fr;
}


.card {
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-alt));
  padding: 2rem;
  border-radius: 24px;
  border: 2px solid var(--line);
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45), var(--glow);
}

.card h2 {
  font-family: "Doto", "Inter", sans-serif;
  margin-top: 0;
  font-size: 1.8rem;
  letter-spacing: 0.08em;
  color: var(--accent);
}

.card-subtitle {
  margin-top: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

/* De .forecast section is gestructureerd als losse blokken (chart-head,
   chart, share-strip, tip-card, details-card, disclaimer, actions).
   Flex-column + gap zorgt voor consistente afstand. */
.forecast {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Losse head-row boven de grafiek: h2 + freshness-badge links, window-
   selector pills rechts. Geen card-frame eromheen — voelt als /vandaag. */
.forecast-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
}

.forecast-chart-head-text {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.forecast-section-title {
  margin: 0;
  font-family: "Doto", "Inter", sans-serif;
  font-size: clamp(1.3rem, 2.5vw, 1.7rem);
  letter-spacing: 0.06em;
  color: var(--accent);
}

.forecast-chart-head .window-selector {
  margin: 0;
}

/* Freshness-badge als compact overlay rechtsonderin de chart — symmetrisch
   met de share-strip linksonder. Zelfde blur-on-dark behandeling zodat 'ie
   over de grafiek leesbaar blijft. */
.freshness-badge--overlay {
  position: absolute;
  right: 0.7rem;
  bottom: 0.7rem;
  margin: 0;
  padding: 0.3rem 0.6rem;
  gap: 0.4rem;
  font-size: 0.72rem;
  background: rgba(12, 12, 12, 0.72);
  border-color: rgba(46, 204, 113, 0.28);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  z-index: 4;
}

.freshness-badge--overlay.is-stale {
  border-color: rgba(255, 165, 0, 0.35);
}

/* Share-strip als minimale tekst+icoon-strip linksonderin de chart.
   Geen kader, geen knop-vakjes — alleen het label en de icons floating
   over het zwarte chart-vlak. */
.share-strip--overlay {
  position: absolute;
  left: 0.9rem;
  bottom: 0.7rem;
  margin: 0;
  padding: 0;
  gap: 0.45rem;
  font-size: 0.72rem;
  background: transparent;
  border: 0;
  z-index: 4;
}

.share-strip--overlay .share-label {
  font-size: 0.7rem;
  letter-spacing: 0;
}

.share-strip--overlay .share-btn {
  width: 22px;
  height: 22px;
  background: transparent;
  border: 0;
  border-radius: 0;
  color: var(--muted);
}

.share-strip--overlay .share-btn:hover,
.share-strip--overlay .share-btn:focus-visible {
  background: transparent;
  border: 0;
  color: var(--text);
}

.share-strip--overlay .share-btn svg {
  width: 14px;
  height: 14px;
}

.share-strip--overlay .share-btn .heading-icon {
  width: 14px;
  height: 14px;
}

.share-strip--overlay .share-feedback {
  font-size: 0.7rem;
}

/* Op smalle schermen zet een eerder mediaqueery de chart-tooltip op
   position: static (verschijnt dus onder de chart). De overlays
   lagen daar voorheen absolute bovenop. Op mobiel zetten we ze
   eveneens in normale flow, gestapeld onder de tooltip — alles
   leest dan netjes onder elkaar. */
@media (max-width: 640px) {
  .share-strip--overlay {
    position: static;
    margin: 0.4rem 0.6rem 0.5rem;
    gap: 0.5rem;
    flex-wrap: nowrap;
    align-items: center;
  }
  .share-strip--overlay .share-label {
    white-space: nowrap;
    font-size: 0.72rem;
    flex-basis: auto;
    margin-bottom: 0;
  }
  .share-strip--overlay .share-btn {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
  }
  .share-strip--overlay .share-btn svg {
    width: 13px;
    height: 13px;
  }
  .freshness-badge--overlay {
    position: static;
    margin: 0.2rem 0.6rem 0.1rem;
    padding: 0.25rem 0.6rem;
    font-size: 0.72rem;
    align-self: flex-start;
    width: fit-content;
  }
}

/* Tip-card: charging-tip + reason in een eigen kader. Compactere
   padding dan de standaard .card omdat 'ie alleen tekst bevat. */
.forecast-tip-card {
  padding: 1.25rem 1.5rem;
}

.forecast-tip-card .charging-tip-line {
  margin: 0;
}

.forecast-tip-card .charging-reason {
  margin: 0.6rem 0 0;
}

/* Gemiddelde prijs prominent bovenin de details-card. Doto-styling +
   accentkleur zodat de prijs er visueel uitspringt. */
.forecast-details #average-price {
  margin: 0 0 1.5rem;
  font-family: "Doto", "Inter", sans-serif;
  font-size: clamp(1.15rem, 2.2vw, 1.45rem);
  letter-spacing: 0.04em;
  color: var(--text);
  text-align: center;
}

/* Disclaimer onderaan de forecast section: gecentreerd ipv links
   uitgelijnd. width: fit-content laat het blok shrink-wrappen om de
   inhoud zodat margin auto het netjes centreert in de section. */
.forecast > .graph-disclaimer--note {
  justify-content: center;
  width: fit-content;
  max-width: 70ch;
  margin-left: auto;
  margin-right: auto;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 640px) {
  .forecast-chart-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .forecast-chart-head .window-selector {
    width: 100%;
  }
  .forecast .share-strip {
    max-width: none;
  }
}

.forecast-chart-container {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

/* Chart staat los — geen rode kader meer. Subtiele dark wrap zoals
   /vandaag, met iets meer padding zodat de chart "ademruimte" heeft. */
.forecast-chart-wrap {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.22);
  padding: 0.7rem 0.8rem 0.6rem;
  overflow: hidden;
}

.forecast-enlarge-btn {
  position: absolute;
  top: 0.65rem;
  right: 0.65rem;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  border: 1px solid rgba(255, 59, 59, 0.38);
  background: rgba(12, 12, 12, 0.72);
  color: rgba(247, 247, 247, 0.92);
  cursor: pointer;
  z-index: 3;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.32);
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.forecast-enlarge-btn svg {
  width: 16px;
  height: 16px;
  stroke-width: 2.1;
}

.forecast-enlarge-btn:hover,
.forecast-enlarge-btn:focus-visible {
  background: rgba(255, 59, 59, 0.2);
  border-color: rgba(255, 59, 59, 0.6);
}

.forecast-enlarge-btn:active {
  transform: scale(0.96);
}

.forecast-enlarge-btn:focus-visible {
  outline: 2px solid rgba(255, 59, 59, 0.72);
  outline-offset: 2px;
}

.forecast-chart-wrap--large {
  border-radius: 18px;
}

.forecast-chart {
  width: 100%;
  height: auto;
  display: block;
}

.forecast-chart-bg {
  fill: rgba(0, 0, 0, 0.08);
}

.forecast-grid-line {
  stroke: rgba(255, 59, 59, 0.17);
  stroke-width: 1;
}

.forecast-weekend-band {
  fill: rgba(255, 255, 255, 0.045);
}

.forecast-day-divider {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.forecast-axis-line,
.forecast-axis-tick {
  stroke: rgba(255, 59, 59, 0.46);
  stroke-width: 1;
}

.forecast-axis-label {
  fill: var(--muted);
  font-size: 13px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.forecast-chart-tooltip {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 59, 59, 0.35);
  background: rgba(14, 14, 14, 0.88);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.forecast-chart-tooltip--active {
  color: var(--text);
  border-color: rgba(255, 59, 59, 0.7);
}

.forecast-chart-tooltip--pinned {
  border-color: rgba(46, 204, 113, 0.72);
  box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.28) inset;
}

.forecast-window-highlight {
  fill: rgba(46, 204, 113, 0.16);
  stroke: rgba(46, 204, 113, 0.55);
  stroke-width: 1;
}

.forecast-zero-line {
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.forecast-bar {
  fill: rgba(255, 59, 59, 0.26);
  stroke: rgba(255, 59, 59, 0.36);
  stroke-width: 0.7;
}

.forecast-bar--window {
  fill: rgba(46, 204, 113, 0.34);
  stroke: rgba(46, 204, 113, 0.62);
}

.forecast-point-min {
  fill: #2ecc71;
  stroke: #143622;
  stroke-width: 1.2;
}

.forecast-point-max {
  fill: #ff6b6b;
  stroke: #4f1111;
  stroke-width: 1.2;
}

.forecast-focus-line {
  stroke: rgba(255, 255, 255, 0.58);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  pointer-events: none;
}

.forecast-focus-point {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 2;
  pointer-events: none;
}

.forecast-focus-hidden {
  opacity: 0;
}

.forecast-hit-area {
  fill: transparent;
  cursor: crosshair;
  touch-action: manipulation;
}

.forecast-chart-empty {
  fill: var(--muted);
  font-size: 18px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lightbox-content--chart {
  max-width: min(97vw, 1700px);
  width: min(97vw, 1700px);
}

#forecast-modal-caption {
  margin: 0.7rem 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 0.9rem;
}

.agent-flow {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
  color: var(--text);
  line-height: 1.55;
}

.agent-flow li + li {
  margin-top: 0.5rem;
}

.agent-banner {
  display: inline-block;
  margin: 0 0 1rem 0;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 59, 59, 0.45);
  background: rgba(255, 59, 59, 0.14);
  color: var(--text);
  font-size: 0.86rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.agent-chart-wrap {
  position: relative;
  border: 1px solid rgba(255, 59, 59, 0.24);
  border-radius: 16px;
  background: rgba(10, 10, 10, 0.35);
  overflow: hidden;
}

.agent-chart {
  width: 100%;
  height: auto;
  display: block;
}

.agent-chart-bg {
  fill: rgba(0, 0, 0, 0.08);
}

.agent-grid-line {
  stroke: rgba(255, 59, 59, 0.17);
  stroke-width: 1;
}

.agent-axis-line,
.agent-axis-tick {
  stroke: rgba(255, 59, 59, 0.46);
  stroke-width: 1;
}

.agent-axis-label {
  fill: var(--muted);
  font-size: 13px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.agent-bar {
  fill: rgba(255, 59, 59, 0.26);
  stroke: rgba(255, 59, 59, 0.36);
  stroke-width: 0.7;
}

.agent-bar--window {
  fill: rgba(46, 204, 113, 0.34);
  stroke: rgba(46, 204, 113, 0.62);
}

.agent-chart-tooltip {
  position: absolute;
  left: 12px;
  top: 12px;
  max-width: calc(100% - 24px);
  padding: 0.45rem 0.65rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 59, 59, 0.35);
  background: rgba(14, 14, 14, 0.88);
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  pointer-events: none;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.agent-chart-tooltip--active {
  color: var(--text);
  border-color: rgba(255, 59, 59, 0.7);
}

.agent-chart-tooltip--pinned {
  border-color: rgba(46, 204, 113, 0.72);
  box-shadow: 0 0 0 1px rgba(46, 204, 113, 0.28) inset;
}

.agent-window-highlight {
  fill: rgba(46, 204, 113, 0.16);
  stroke: rgba(46, 204, 113, 0.55);
  stroke-width: 1;
}

.agent-zero-line {
  stroke: rgba(255, 255, 255, 0.32);
  stroke-width: 1;
  stroke-dasharray: 3 4;
}

.agent-point-min {
  fill: #2ecc71;
  stroke: #143622;
  stroke-width: 1.2;
}

.agent-point-max {
  fill: #ff6b6b;
  stroke: #4f1111;
  stroke-width: 1.2;
}

.agent-focus-line {
  stroke: rgba(255, 255, 255, 0.58);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
  pointer-events: none;
}

.agent-focus-point {
  fill: #ffffff;
  stroke: var(--accent);
  stroke-width: 2;
  pointer-events: none;
}

.agent-focus-hidden {
  opacity: 0;
}

.agent-hit-area {
  fill: transparent;
  cursor: crosshair;
  touch-action: manipulation;
}

.agent-chart-empty {
  fill: var(--muted);
  font-size: 18px;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.card-highlight {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  border-radius: 16px;
  background: rgba(255, 59, 59, 0.08);
  border: 2px solid var(--line);
  color: var(--text);
  font-weight: 500;
  line-height: 1.5;
}

.card-highlight .charging-tip-line {
  margin: 0;
}

.charging-reason {
  /* Matches the surrounding .card-highlight tip line in font-weight and
     colour so both lines read as one coherent block; only a small top
     margin separates them. */
  margin: 0.55rem 0 0;
  padding: 0;
  font-weight: 500;
  line-height: 1.5;
}

.charging-reason[hidden] {
  display: none;
}

/* Share strip: WhatsApp / Copy / X — sits just below the tip card. */
.share-strip {
  margin: 0.7rem 0 0;
  padding: 0 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
  color: var(--muted);
}

.share-strip[hidden] {
  display: none;
}

.share-label {
  letter-spacing: 0.01em;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s ease, color 0.18s ease, background 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.share-btn:hover,
.share-btn:focus-visible {
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.share-btn--whatsapp:hover,
.share-btn--whatsapp:focus-visible {
  color: #25d366;
  border-color: rgba(37, 211, 102, 0.5);
  background: rgba(37, 211, 102, 0.08);
}

.share-btn--x:hover,
.share-btn--x:focus-visible {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.1);
}

.share-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}

/* Only fill the inline brand SVGs (WhatsApp + X). Lucide line-icons must
   keep fill="none" + stroke="currentColor" — forcing fill would render the
   interior of a stroke icon as a solid blob. */
.share-btn--whatsapp svg,
.share-btn--x svg {
  fill: currentColor;
}

.share-btn .heading-icon {
  width: 18px;
  height: 18px;
  margin: 0;
  color: currentColor;
}

.share-btn .heading-icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
}

.share-feedback {
  font-size: 0.85rem;
  color: var(--accent);
  font-weight: 500;
  margin-left: 0.25rem;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.share-feedback.is-visible {
  opacity: 1;
}

.share-feedback[hidden] {
  display: none;
}

@media (max-width: 600px) {
  .share-strip {
    gap: 0.45rem;
  }
  .share-label {
    flex-basis: 100%;
    margin-bottom: 0.2rem;
    font-size: 0.85rem;
  }
}

.agent-confidence-block {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 59, 59, 0.2);
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.35);
}

.agent-confidence-block h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.03em;
}

.agent-confidence-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.agent-confidence-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  padding: 0.55rem 0.7rem;
  border-radius: 10px;
  border: 1px solid rgba(255, 59, 59, 0.16);
  background: rgba(20, 20, 20, 0.5);
}

.agent-confidence-day {
  font-size: 0.93rem;
  color: var(--text);
}

.agent-confidence-metrics {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.agent-confidence-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.84rem;
  font-weight: 700;
}

.agent-confidence-high {
  color: #dfffe9;
  background: rgba(46, 204, 113, 0.22);
  border-color: rgba(46, 204, 113, 0.55);
}

.agent-confidence-medium {
  color: #ffecca;
  background: rgba(241, 196, 15, 0.2);
  border-color: rgba(241, 196, 15, 0.46);
}

.agent-confidence-low {
  color: #ffd8d8;
  background: rgba(231, 76, 60, 0.22);
  border-color: rgba(231, 76, 60, 0.5);
}

.agent-confidence-range {
  font-size: 0.82rem;
  color: var(--muted);
}

.agent-confidence-empty {
  color: var(--muted);
  justify-content: center;
}

.agent-correction-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.agent-correction-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 0.8rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 59, 59, 0.18);
  background: rgba(20, 20, 20, 0.5);
}

.agent-correction-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.agent-correction-value {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.agent-correction-chart-wrap {
  margin-top: 0.95rem;
}

.agent-correction-zero-line {
  stroke: rgba(255, 255, 255, 0.52);
  stroke-width: 1.1;
  stroke-dasharray: 4 4;
}

.agent-correction-day-divider {
  stroke: rgba(255, 255, 255, 0.18);
  stroke-width: 1;
  stroke-dasharray: 3 5;
}

.agent-correction-bar {
  stroke-width: 0.7;
}

.agent-correction-bar--up {
  fill: rgba(46, 204, 113, 0.36);
  stroke: rgba(46, 204, 113, 0.66);
}

.agent-correction-bar--down {
  fill: rgba(255, 107, 107, 0.34);
  stroke: rgba(255, 107, 107, 0.62);
}

.agent-correction-bar--flat {
  fill: rgba(197, 197, 197, 0.18);
  stroke: rgba(197, 197, 197, 0.4);
}

.agent-correction-caption {
  margin-top: 0.6rem;
  color: var(--muted);
  font-size: 0.83rem;
}

.agent-monitor-grid {
  margin-top: 1rem;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.agent-monitor-stat {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.7rem 0.8rem;
  border-radius: 11px;
  border: 1px solid rgba(255, 59, 59, 0.18);
  background: rgba(20, 20, 20, 0.5);
}

.agent-monitor-label {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
}

.agent-monitor-value {
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.agent-monitor-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 5.4rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 59, 59, 0.3);
  background: rgba(255, 59, 59, 0.08);
}

.agent-monitor-status--agent {
  color: #dfffe9;
  background: rgba(46, 204, 113, 0.2);
  border-color: rgba(46, 204, 113, 0.56);
}

.agent-monitor-status--baseline {
  color: #ffecca;
  background: rgba(241, 196, 15, 0.22);
  border-color: rgba(241, 196, 15, 0.5);
}

.agent-monitor-status--mixed {
  color: #ffd8d8;
  background: rgba(231, 76, 60, 0.24);
  border-color: rgba(231, 76, 60, 0.5);
}

.agent-monitor-status--warm {
  color: #d2d2d2;
  background: rgba(130, 130, 130, 0.2);
  border-color: rgba(170, 170, 170, 0.45);
}

.agent-monitor-table-wrap {
  margin-top: 0.95rem;
  border: 1px solid rgba(255, 59, 59, 0.2);
  border-radius: 14px;
  overflow-x: auto;
  background: rgba(10, 10, 10, 0.4);
}

.agent-monitor-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.agent-monitor-table th,
.agent-monitor-table td {
  padding: 0.6rem 0.7rem;
  border-bottom: 1px solid rgba(255, 59, 59, 0.14);
  text-align: left;
  font-size: 0.86rem;
  white-space: nowrap;
}

.agent-monitor-table th {
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: rgba(255, 59, 59, 0.06);
}

.agent-monitor-table tbody tr:last-child td {
  border-bottom: 0;
}

.agent-monitor-winner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.2rem;
  padding: 0.16rem 0.45rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.8rem;
  font-weight: 700;
}

.agent-monitor-winner--agent {
  color: #dfffe9;
  background: rgba(46, 204, 113, 0.2);
  border-color: rgba(46, 204, 113, 0.52);
}

.agent-monitor-winner--baseline {
  color: #ffecca;
  background: rgba(241, 196, 15, 0.2);
  border-color: rgba(241, 196, 15, 0.48);
}

.agent-monitor-winner--tie {
  color: #f0f0f0;
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.3);
}

.agent-monitor-winner--na {
  color: #d2d2d2;
  background: rgba(130, 130, 130, 0.2);
  border-color: rgba(170, 170, 170, 0.45);
}

.agent-monitor-empty {
  color: var(--muted);
  text-align: center;
}

.agent-health-block {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(255, 59, 59, 0.2);
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.35);
}

.agent-health-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  margin-bottom: 0.65rem;
}

.agent-health-head h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--text);
  letter-spacing: 0.03em;
}

.agent-health-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 5.2rem;
  padding: 0.22rem 0.65rem;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.82rem;
  font-weight: 700;
}

.agent-health-badge--good {
  color: #dfffe9;
  background: rgba(46, 204, 113, 0.2);
  border-color: rgba(46, 204, 113, 0.56);
}

.agent-health-badge--warm {
  color: #ffecca;
  background: rgba(241, 196, 15, 0.22);
  border-color: rgba(241, 196, 15, 0.5);
}

.agent-health-badge--off {
  color: #d2d2d2;
  background: rgba(130, 130, 130, 0.2);
  border-color: rgba(170, 170, 170, 0.45);
}

.agent-health-badge--alert {
  color: #ffd8d8;
  background: rgba(231, 76, 60, 0.24);
  border-color: rgba(231, 76, 60, 0.5);
}

.agent-health-text {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  line-height: 1.45;
}

.agent-health-meta {
  margin: 0.45rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}

.agent-health-help {
  margin-top: 0.65rem;
  border-top: 1px solid rgba(255, 59, 59, 0.2);
  padding-top: 0.65rem;
}

.agent-health-help summary {
  cursor: pointer;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 600;
  list-style: none;
}

.agent-health-help summary::-webkit-details-marker {
  display: none;
}

.agent-health-help ul {
  margin: 0.6rem 0 0;
  padding-left: 1rem;
  color: var(--muted);
  line-height: 1.45;
  font-size: 0.86rem;
}

.agent-health-help li + li {
  margin-top: 0.35rem;
}

.agent-health-help code {
  color: var(--text);
  background: rgba(255, 59, 59, 0.16);
  border: 1px solid rgba(255, 59, 59, 0.3);
  border-radius: 8px;
  padding: 0.08rem 0.36rem;
  font-size: 0.82rem;
}

.price-list {
  list-style: none;
  padding: 0;
  margin: 1.25rem 0;
  border: 1px solid rgba(255, 59, 59, 0.2);
  border-radius: 14px;
  background: rgba(10, 10, 10, 0.4);
}

.price-list li {
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 59, 59, 0.15);
  font-size: 0.95rem;
}

.price-list li:last-child {
  border-bottom: none;
}

.icon-inline {
  width: 20px;
  height: 20px;
  vertical-align: middle;
  margin-right: 0.5rem;
}

.generated-at {
  margin: 0.35rem 0 0;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Header row with title + freshness badge side-by-side. */
.forecast-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.forecast-meta-row h2 {
  margin: 0;
}

/* Freshness badge: subtle pill with green pulsing dot. Conveys that the
   forecast is fresh without taking up much visual space. */
.freshness-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.32rem 0.75rem;
  border-radius: 999px;
  background: rgba(46, 204, 113, 0.1);
  border: 1px solid rgba(46, 204, 113, 0.35);
  color: #2ecc71;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.freshness-badge[hidden] {
  display: none;
}

.freshness-badge.is-stale {
  background: rgba(255, 165, 0, 0.08);
  border-color: rgba(255, 165, 0, 0.4);
  color: #ffb347;
}

.freshness-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 0 currentColor;
  animation: freshnessPulse 2.2s ease-in-out infinite;
}

.is-stale .freshness-dot {
  animation: none;
}

@keyframes freshnessPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(46, 204, 113, 0.45); }
  50% { box-shadow: 0 0 0 6px rgba(46, 204, 113, 0); }
}

.price-insights {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* When the tip block is at the top (above the chart) we want a bit more
   breathing room below it so it visually leads into the chart. */
.price-insights--top {
  margin-top: 0.75rem;
  margin-bottom: 1.5rem;
}

/* Charging window selector: row of segmented pills sitting just under the
   subtitle. Visually inherits the site's red-accent treatment so it reads
   as part of the same card. */
.window-selector {
  margin-top: 1.1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.window-selector[hidden] {
  display: none;
}

.window-selector-label {
  font-size: 0.9rem;
  color: var(--muted);
  letter-spacing: 0.01em;
}

.window-pills {
  display: inline-flex;
  gap: 0.35rem;
  padding: 0.25rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
}

.window-pill {
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  border: 0;
  padding: 0.35rem 0.8rem;
  min-width: 2.5rem;
  border-radius: 999px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.12s ease;
  -webkit-tap-highlight-color: transparent;
}

.window-pill:hover:not(.is-active),
.window-pill:focus-visible:not(.is-active) {
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  outline: none;
}

.window-pill:focus-visible {
  outline: 2px solid rgba(255, 59, 59, 0.55);
  outline-offset: 2px;
}

.window-pill.is-active {
  background: var(--accent);
  color: #1a0808;
  box-shadow: 0 0 0 1px rgba(255, 59, 59, 0.35), 0 8px 18px rgba(255, 59, 59, 0.22);
}

.window-pill:active {
  transform: translateY(1px);
}

@media (max-width: 600px) {
  .window-selector {
    gap: 0.5rem;
  }
  .window-selector-label {
    flex-basis: 100%;
    font-size: 0.85rem;
  }
  .window-pills {
    width: 100%;
    justify-content: space-between;
  }
  .window-pill {
    flex: 1;
    min-width: 0;
    padding: 0.4rem 0.5rem;
    font-size: 0.88rem;
  }
}

.price-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.price-columns h3 {
  margin: 0 0 0.65rem 0;
  font-size: 1rem;
}

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

/* Mini bar-chart visualisation for the cheapest / priciest hour lists.
   Bar widths share a single scale across both columns so the visual
   contrast between "goedkoop" (short green bar) and "duur" (long red
   bar) is immediately obvious. */
.price-bars {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.price-bars-loading {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.price-bar-row {
  display: grid;
  /* Fixed widths for the time and value columns so every bar starts and
     ends at the exact same x-position. Time format is "wo 14 mei 13u"
     which comfortably fits 7rem on desktop. */
  grid-template-columns: 7rem minmax(0, 1fr) 4rem;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  line-height: 1.2;
}

.price-bar-time {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.price-bar-track {
  height: 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
}

.price-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.price-column--cheapest .price-bar-fill {
  background: linear-gradient(90deg, rgba(46, 204, 113, 0.85), #2ecc71);
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.35);
}

.price-column--priciest .price-bar-fill {
  background: linear-gradient(90deg, rgba(255, 59, 59, 0.9), #ff6868);
  box-shadow: 0 0 8px rgba(255, 59, 59, 0.35);
}

.price-bar-value {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--text);
}

.price-column--cheapest .price-bar-value {
  color: #2ecc71;
}

.price-column--priciest .price-bar-value {
  color: var(--accent);
}

@media (max-width: 520px) {
  .price-bar-row {
    grid-template-columns: 6.2rem minmax(0, 1fr) 3.4rem;
    font-size: 0.82rem;
    gap: 0.4rem;
    min-width: 0;
  }
  .price-bar-track {
    height: 6px;
    min-width: 0;
  }
  .price-bar-time,
  .price-bar-value {
    white-space: nowrap;
    overflow: hidden;
  }
}

/* Very small phones (iPhone SE class). Bar gets tight but still
   clearly separated from the labels at 320px viewport. */
@media (max-width: 380px) {
  .price-bar-row {
    grid-template-columns: 5.6rem minmax(0, 1fr) 3.1rem;
    font-size: 0.76rem;
    gap: 0.3rem;
  }
}

.graph-disclaimer {
  margin-top: 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  opacity: 0.85;
}

/* Smaller, less prominent variant used as a footnote-style disclaimer
   under the price columns. The leading info-icon signals "this is meta
   information, not the main message". */
.graph-disclaimer--note {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  margin-top: 1rem;
  padding-top: 0.85rem;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  opacity: 0.7;
  line-height: 1.45;
}

.graph-disclaimer--note .heading-icon {
  flex-shrink: 0;
  margin: 0;
  width: 14px;
  height: 14px;
  color: var(--muted);
  margin-top: 0.18rem;
}

/* Footer — same subdued frosted-glass treatment as the header so the
   site has visual bookends instead of dramatic shadows. */
footer {
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(15, 15, 15, 0.85);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  margin-top: 3rem;
  padding: 1.5rem 0;
}

footer .container {
  padding-top: 0;
  padding-bottom: 0;
}

.footer-inner {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  text-align: center;
}

.brand-inline {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  transition: color 0.18s ease;
}

.brand-inline:hover,
.brand-inline:focus-visible {
  color: #ff5151;
}

.footer-inner nav {
  display: flex;
  justify-content: center;
  gap: 0.25rem 0.5rem;
  flex-wrap: wrap;
}

.footer-inner nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.55rem;
  border-radius: 6px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}

.footer-inner nav a:hover,
.footer-inner nav a:focus-visible {
  background: rgba(255, 59, 59, 0.08);
  color: #ff5151;
}

.footer-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--muted);
  font-size: 0.8rem;
}

.footer-meta p {
  margin: 0;
}

.labs-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  color: var(--muted);
}

.labs-link:hover {
  color: var(--accent);
}

@media (min-width: 768px) {
  .footer-inner {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    text-align: left;
  }

  .footer-inner nav {
    justify-content: flex-end;
  }
}
.main-spacing {
  margin-top: 3rem;
  margin-bottom: 3rem;
}

.actions {
  margin-top: var(--card-action-gap);
  display: flex;
  justify-content: center;
}

/* Accuracy block — track-record card sitting under the Domora banner.
   Asymmetrical hero+side layout: one big "hero" number on the left,
   three supporting stats stacked on the right. Built to feel a touch
   more modern than the surrounding cards without breaking the dark
   red-accent style of the site. */
.accuracy-card {
  position: relative;
  overflow: hidden;
}

/* Soft radial glow tucked in the top-right corner, giving the card a
   subtle "verified / trustworthy" depth without sacrificing readability. */
.accuracy-card::before {
  content: "";
  position: absolute;
  top: -40%;
  right: -20%;
  width: 65%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(46, 204, 113, 0.18), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

.accuracy-card > * {
  position: relative;
  z-index: 1;
}

.accuracy-heading {
  margin: 0 0 0.35rem;
}

.accuracy-subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
}

.accuracy-grid {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 1rem;
}

/* Hero stat — the big positive number (94% binnen 5 cent). */
.accuracy-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 1.75rem 1.6rem;
  border-radius: 20px;
  background:
    linear-gradient(140deg, rgba(46, 204, 113, 0.16) 0%, rgba(46, 204, 113, 0.05) 55%, rgba(255, 255, 255, 0.02) 100%);
  border: 1.5px solid rgba(46, 204, 113, 0.32);
  position: relative;
  overflow: hidden;
  min-height: 220px;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.accuracy-hero:hover {
  transform: translateY(-2px);
  border-color: rgba(46, 204, 113, 0.5);
  box-shadow: 0 18px 36px rgba(46, 204, 113, 0.12);
}

.accuracy-hero-value {
  font-family: "Doto", "Inter", system-ui, sans-serif;
  font-size: clamp(3.5rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: #2ecc71;
  text-shadow: 0 0 24px rgba(46, 204, 113, 0.45), 0 0 60px rgba(46, 204, 113, 0.2);
  margin-bottom: 0.55rem;
  font-variant-numeric: tabular-nums;
}

/* Unit suffix (e.g. "%") inside the big stat numbers: rendered in Inter so
   the "%" reads cleanly — Doto pixelates non-digit glyphs in a way that
   can be hard to recognise at first glance. */
.accuracy-hero-value .unit,
.accuracy-side-value .unit {
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0;
  margin-left: 0.05em;
  font-size: 0.6em;
  text-shadow: none;
  position: relative;
  top: -0.05em;
}

.accuracy-hero-label {
  font-size: 1rem;
  line-height: 1.45;
  color: var(--text);
  max-width: 22ch;
}

.accuracy-hero-label strong {
  color: #2ecc71;
  font-weight: 600;
}

/* Side stats stacked: compact rows with an icon + value + label. */
.accuracy-side {
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 0.7rem;
}

.accuracy-stat-card {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem 1.1rem;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
  border: 1.5px solid rgba(255, 255, 255, 0.08);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.accuracy-stat-card:hover {
  transform: translateX(2px);
  border-color: rgba(46, 204, 113, 0.32);
  background: rgba(46, 204, 113, 0.06);
}

.accuracy-side-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  color: #2ecc71;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.accuracy-side-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  stroke-width: 2px;
}

.accuracy-side-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.accuracy-side-value {
  font-family: "Doto", "Inter", system-ui, sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.accuracy-side-value--hours {
  color: #2ecc71;
}

.accuracy-side-label {
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.35;
  margin-top: 0.2rem;
}

.accuracy-footnote {
  margin: 1.5rem 0 0;
  font-size: 0.78rem;
  color: var(--muted);
  opacity: 0.65;
  text-align: center;
  letter-spacing: 0.01em;
}

.accuracy-card .actions {
  margin-top: 1.25rem;
}

/* Ghost: even quieter than .btn, for very low-priority secondary links. */
.btn--ghost {
  background: transparent;
  border-color: rgba(255, 255, 255, 0.12);
  color: var(--muted);
}

.btn--ghost:hover,
.btn--ghost:focus-visible {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
}

/* Tablet: hero stays full width on top, supporting stats become a 3-col row. */
@media (max-width: 860px) {
  .accuracy-grid {
    grid-template-columns: 1fr;
  }
  .accuracy-hero {
    min-height: 0;
    padding: 1.5rem 1.4rem;
  }
  .accuracy-side {
    grid-template-rows: none;
    grid-template-columns: repeat(3, 1fr);
  }
  .accuracy-stat-card {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 0.9rem;
  }
  .accuracy-side-label {
    font-size: 0.8rem;
  }
}

/* Mobile: stack everything vertically. */
@media (max-width: 540px) {
  .accuracy-side {
    grid-template-columns: 1fr;
  }
  .accuracy-stat-card {
    flex-direction: row;
    align-items: center;
    gap: 0.85rem;
  }
  .accuracy-hero-value {
    font-size: 3rem;
  }
  .accuracy-side-value {
    font-size: 1.5rem;
  }
}

/* Domora promo banner */
.promo-banner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: linear-gradient(145deg, #0a1a4a, #071244);
  padding: 1.25rem 1.5rem;
  border-radius: 18px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: var(--text);
  position: relative;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.promo-banner:hover {
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 12px 36px rgba(7, 18, 68, 0.5);
}

.promo-logo {
  width: 60px;
  height: 60px;
  border-radius: 14px;
  border: none;
  box-shadow: none;
  flex-shrink: 0;
}

.promo-text {
  flex: 1;
  min-width: 0;
}

.promo-headline {
  margin: 0;
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  line-height: 1.4;
}

.promo-cta {
  margin: 0.25rem 0 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.4;
}

.promo-cta strong {
  color: rgba(255, 255, 255, 0.85);
}

.promo-close {
  position: absolute;
  top: 0.5rem;
  right: 0.65rem;
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  line-height: 1;
  transition: color 0.15s ease;
}

.promo-close:hover {
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 600px) {
  .promo-banner {
    gap: 1rem;
    padding: 1rem 1.25rem;
  }

  .promo-logo {
    width: 48px;
    height: 48px;
  }

  .promo-headline {
    font-size: 0.88rem;
  }

  .promo-cta {
    font-size: 0.78rem;
  }
}

/* Default button: quiet by default. Subtle outline, sentence case, small
   radius. Used for navigation and secondary links. */
.btn,
.btn:visited {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.65rem 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.035);
  font-family: "Inter", system-ui, -apple-system, sans-serif;
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.btn:hover,
.btn:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.28);
  color: var(--text);
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.35);
}

.btn:active {
  transform: translateY(0);
  box-shadow: none;
}

/* Lucide icons (and the arrow span) inside a .btn — size + slide on hover. */
.btn svg,
.btn [data-lucide] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  stroke-width: 2;
}

.btn .btn-arrow {
  transition: transform 0.18s ease;
}

.btn:hover .btn-arrow,
.btn:focus-visible .btn-arrow {
  transform: translateX(3px);
}

.btn--back .btn-arrow {
  order: -1;
}

.btn--back:hover .btn-arrow,
.btn--back:focus-visible .btn-arrow {
  transform: translateX(-3px);
}

/* Filled accent variant for the rare primary CTA (e-mail, API key, etc.) */
.btn--primary,
.btn--primary:visited {
  background: var(--accent);
  border-color: var(--accent);
  color: #0a0a0a;
  font-weight: 600;
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background: #ff5151;
  border-color: #ff5151;
  color: #0a0a0a;
  box-shadow: 0 10px 22px rgba(255, 59, 59, 0.28);
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 2px solid var(--accent);
  color: var(--text);
  transition: background 0.2s ease, color 0.2s ease;
}

.icon-btn:hover,
.icon-btn:focus-visible {
  background: var(--accent);
  color: #050505;
}

.icon-btn--accent {
  border-color: var(--accent);
  color: var(--accent);
  background: transparent;
}

.icon-btn--accent:hover,
.icon-btn--accent:focus-visible {
  background: rgba(255, 59, 59, 0.15);
  color: var(--text);
}

.daily-page main {
  padding-top: var(--section-gap);
  padding-bottom: var(--section-gap);
  display: flex;
  flex-direction: column;
  gap: var(--section-gap);
  align-items: center;
}

.daily-page main > section {
  margin: 0;
  width: 100%;
}

.daily-hero {
  background: var(--bg-card);
  border: 2px solid var(--line);
  border-radius: 20px;
  padding: 2rem;
  margin-bottom: 0;
  text-align: left;
  box-shadow: 0 25px 45px rgba(0, 0, 0, 0.45), var(--glow);
}

.daily-page .daily-hero {
  max-width: 960px;
  width: 100%;
  margin-left: auto;
  margin-right: auto;
}

.daily-gallery {
  display: flex;
  flex-direction: column;
  gap: 3rem;
  max-width: 960px;
}

.daily-card {
  background: var(--bg-card-alt);
  border: 2px solid var(--line);
  border-radius: 24px;
  padding: 1.5rem;
  text-align: center;
  box-shadow: 0 25px 40px rgba(0, 0, 0, 0.45), var(--glow);
  cursor: pointer;
  width: 100%;
  margin: 0;
}

.daily-card img {
  border-radius: 18px;
  border: 2px solid var(--line);
  width: 100%;
  height: auto;
}

.daily-card figcaption {
  margin-top: 1rem;
  color: var(--muted);
  font-size: 1rem;
  letter-spacing: 0.05em;
}

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.lightbox.hidden {
  display: none;
}

.lightbox-content {
  max-width: min(95vw, 1400px);
  background: var(--bg-card);
  padding: 1.75rem;
  border-radius: 20px;
  border: 2px solid var(--line);
  box-shadow: 0 40px 60px rgba(0, 0, 0, 0.5), var(--glow);
  position: relative;
}

.lightbox-content img {
  width: 100%;
  max-height: 85vh;
  object-fit: contain;
  height: auto;
  border-radius: 16px;
  border: 2px solid var(--line);
}

#lightbox-close {
  position: absolute;
  top: 0.5rem;
  right: 0.75rem;
  background: transparent;
  border: none;
  color: var(--text);
  font-size: 1.8rem;
  cursor: pointer;
}

#lightbox-caption {
  margin-top: 0.75rem;
  text-align: center;
  color: var(--muted);
}
.heading-icon {
  display: inline-flex;
  width: 1em;
  height: 1em;
  margin-right: 0.35rem;
  color: var(--accent);
  vertical-align: middle;
  stroke-width: 2.25px;
}

/* Responsive adjustments */
@media (max-width: 960px) {
  body.mobile-header-enabled header {
    position: sticky;
    top: 0;
  }

  .container {
    width: min(1100px, 94vw);
    padding: 1.5rem 1rem;
  }

  main {
    padding: var(--section-gap-mobile) 0;
  }

  main > section + section {
    margin-top: var(--section-gap-mobile);
  }

  .hero {
    margin: 0 auto;
    padding: 1.85rem;
    text-align: left;
  }

  .hero p {
    font-size: 1rem;
  }

  .card {
    padding: 1.85rem;
  }

  .card h2 {
    font-size: 1.6rem;
  }

  .page-title {
    font-size: clamp(1.9rem, 5vw, 2.6rem);
  }

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

  .price-list {
    margin: 1rem 0;
  }

  .actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
    text-align: center;
  }

  .daily-page main {
    gap: var(--section-gap-mobile);
    padding-top: var(--section-gap-mobile);
  }

  .daily-hero {
    padding: 1.6rem;
  }

  .daily-gallery {
    gap: 2rem;
  }

  .daily-card {
    padding: 1.25rem;
  }

  .agent-confidence-list li {
    flex-direction: column;
    align-items: flex-start;
  }

  .agent-correction-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-monitor-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .agent-monitor-table {
    min-width: 620px;
  }

  .agent-confidence-metrics {
    justify-content: flex-start;
  }

  .agent-health-head {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .container {
    width: 98vw;
    max-width: 100vw;
    padding: 1.25rem 0.75rem;
  }

  .hero,
  .forecast .card,
  .info-card {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
  }

  .footer-inner nav a {
    font-size: 0.74rem;
    padding: 0.25rem 0.45rem;
  }

  .footer-meta {
    font-size: 0.76rem;
  }

  .footer-inner {
    gap: 0.85rem;
  }

  .footer-inner nav {
    justify-content: center;
    gap: 0.2rem 0.35rem;
  }

  .hero {
    border-radius: 20px;
  }

  .forecast-chart-tooltip {
    position: static;
    margin: 0.55rem 0.6rem 0.6rem;
    max-width: 100%;
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .forecast-enlarge-btn {
    top: 0.45rem;
    right: 0.45rem;
    width: 30px;
    height: 30px;
  }

  .forecast-enlarge-btn svg {
    width: 14px;
    height: 14px;
  }

  .agent-chart-tooltip {
    position: static;
    margin: 0.55rem 0.6rem 0.6rem;
    max-width: 100%;
    font-size: 0.74rem;
    line-height: 1.25;
  }

  .agent-correction-grid {
    grid-template-columns: 1fr;
  }

  .agent-monitor-grid {
    grid-template-columns: 1fr;
    gap: 0.55rem;
  }

  .agent-monitor-stat {
    padding: 0.62rem 0.7rem;
  }

  .agent-monitor-table {
    min-width: 540px;
  }

  .agent-monitor-table th,
  .agent-monitor-table td {
    padding: 0.5rem 0.55rem;
    font-size: 0.79rem;
  }

  .agent-monitor-winner {
    min-width: 3.7rem;
    padding: 0.12rem 0.4rem;
    font-size: 0.74rem;
  }

  .agent-correction-caption {
    font-size: 0.78rem;
  }

  .card {
    border-radius: 20px;
  }

  .daily-card {
    border-radius: 18px;
  }

  .lightbox-content {
    max-width: 96vw;
    padding: 1rem;
  }

  #lightbox-close {
    top: 0.4rem;
    right: 0.6rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.mobile-header-enabled header {
    transition: none;
  }

  .hero-title {
    font-size: clamp(1.8rem, 8vw, 2.6rem);
  }

  .hero-tagline {
    font-size: 1.05rem;
  }
}

/* ============================================================
   Hero-chips — pill-links in de hero quick-links-rij. Eén uniforme
   stijl voor de live prijschip (#hero-now-chip, met groene dot) en
   de tekstlinks naar /vandaag en /daily. De prijschip vervangt de
   tekstlink naar /vandaag zodra de data geladen is; zonder JS of
   data blijft de chip verborgen en staat alleen de tekstlink er.
   ============================================================ */
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 59, 59, 0.38);
  background: rgba(255, 59, 59, 0.07);
  color: var(--text);
  font-size: 0.95rem;
  text-decoration: none;
  transition: border-color 0.18s ease, background 0.18s ease;
}

.hero-chip:hover,
.hero-chip:focus-visible {
  border-color: rgba(255, 59, 59, 0.6);
  background: rgba(255, 59, 59, 0.13);
}

.hero-chip strong {
  font-weight: 700;
  font-family: "Doto", "Inter", sans-serif;
  letter-spacing: 0.03em;
}

.hero-now-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #2ecc71;
  box-shadow: 0 0 8px rgba(46, 204, 113, 0.8);
  flex-shrink: 0;
}

.hero-chip .btn-arrow {
  width: 13px;
  height: 13px;
  color: var(--accent);
  transition: transform 0.18s ease;
}

.hero-chip:hover .btn-arrow,
.hero-chip:focus-visible .btn-arrow {
  transform: translateX(3px);
}

/* display:inline-flex overrulet het standaard [hidden]-gedrag van de
   browser — expliciet terugzetten. */
.hero-chip[hidden] {
  display: none;
}

/* ============================================================
   Blog index — kaartlijst met titel, meta, snippet en lees-verder.
   ============================================================ */
.blog-index {
  padding-top: 0;
}

.blog-index-list {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.blog-index-item {
  display: block;
  padding: 1.4rem 1.6rem;
  background: linear-gradient(145deg, var(--bg-card), var(--bg-card-alt));
  border: 1.5px solid var(--line);
  border-radius: 18px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.blog-index-item:hover,
.blog-index-item:focus-visible {
  border-color: rgba(255, 59, 59, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 18px 32px rgba(0, 0, 0, 0.35);
}

.blog-index-item h2 {
  margin: 0 0 0.4rem;
  font-family: "Doto", "Inter", sans-serif;
  font-size: 1.3rem;
  letter-spacing: 0.05em;
  line-height: 1.3;
  color: var(--accent);
}

.blog-index-meta {
  margin: 0 0 0.55rem;
  font-size: 0.82rem;
  color: var(--muted);
}

.blog-index-snippet {
  margin: 0 0 0.65rem;
  color: var(--text);
  opacity: 0.88;
  line-height: 1.55;
  font-size: 0.95rem;
}

.blog-index-more {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
}

.blog-index-more .btn-arrow {
  width: 14px;
  height: 14px;
  transition: transform 0.18s ease;
}

.blog-index-item:hover .blog-index-more .btn-arrow,
.blog-index-item:focus-visible .blog-index-more .btn-arrow {
  transform: translateX(3px);
}

@media (max-width: 540px) {
  .blog-index-item {
    padding: 1.15rem 1.2rem;
  }
}

/* ============================================================
   Blog post-pagina — terug-link, titel, meta, share, lees-ook.
   ============================================================ */
.blog-post-back {
  margin: 0 0 1.1rem;
  font-size: 0.9rem;
}

.blog-post-back a {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--muted);
  text-decoration: none;
  transition: color 0.18s ease;
}

.blog-post-back a:hover,
.blog-post-back a:focus-visible {
  color: var(--text);
}

.blog-post-back .btn-arrow {
  width: 14px;
  height: 14px;
}

.blog-post-title {
  font-family: "Doto", "Inter", sans-serif;
  margin: 0 0 0.55rem;
  font-size: clamp(1.55rem, 3vw, 2.05rem);
  letter-spacing: 0.06em;
  line-height: 1.28;
  color: var(--accent);
}

.blog-post-meta {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.blog-post .share-strip {
  margin-top: 1.7rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.blog-read-also h2 {
  font-size: 1.35rem;
  margin-bottom: 0.9rem;
}

.read-also-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.read-also-list a {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.45rem;
  color: var(--text);
  text-decoration: none;
  line-height: 1.45;
  transition: color 0.18s ease;
}

.read-also-list a:hover,
.read-also-list a:focus-visible {
  color: var(--accent);
}

.read-also-list .btn-arrow {
  width: 14px;
  height: 14px;
  color: var(--accent);
  flex-shrink: 0;
  margin-top: 0.18rem;
}
