/* ===========================================================================
   De Meerkoet — Lisserbroek Online — custom theme over Pico CSS
   Design tokens distilled from the Stitch reference (design/specs.md):
   surface #FFFDF3 / yellow #f7d94c / blue #1F4FD8 / ink #22252B
   Headings: Poppins · Body: Inter
   =========================================================================== */

:root {
  --lb-surface: #FFFDF3;
  --lb-surface-low: #f6f3f2;
  --lb-surface-card: #ffffff;
  --lb-yellow: #f7d94c;
  --lb-yellow-soft: #fff6cf;
  --lb-blue: #1F4FD8;
  --lb-blue-deep: #13327f;
  --lb-ink: #22252B;
  --lb-muted: #6b7280;
  --lb-border: #ece7d2;
  --lb-radius: 16px;
  --lb-radius-sm: 10px;
  --lb-shadow: 0 4px 20px rgba(31, 79, 216, 0.06);
  --lb-shadow-hover: 0 8px 30px rgba(31, 79, 216, 0.10);

  /* Pico overrides */
  --pico-font-family: "Inter", system-ui, -apple-system, sans-serif;
  --pico-primary: var(--lb-blue);
  --pico-primary-hover: var(--lb-blue-deep);
  --pico-primary-focus: rgba(30, 78, 215, 0.25);
  --pico-border-radius: var(--lb-radius-sm);
  --pico-background-color: var(--lb-surface);
  --pico-color: var(--lb-ink);
  --pico-spacing: 1.1rem;
  --pico-typography-spacing-vertical: 1.1rem;
}

body {
  background-color: var(--lb-surface);
  color: var(--lb-ink);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.65;
}

h1, h2, h3, h4, h5, h6 {
  font-family: "Poppins", "Inter", system-ui, sans-serif;
  font-weight: 700;
  color: var(--lb-ink);
  line-height: 1.2;
}

/* ---- Header / Navbar ---------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(252, 249, 248, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--lb-border);
}
.site-header .container-fluid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.6rem 1.25rem;
}
.site-brand {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  line-height: 1.05;
}
.site-brand__title {
  font-family: "Poppins", sans-serif;
  font-weight: 800;
  font-size: 1.35rem;
  color: var(--lb-blue);
}
.site-brand__sub {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--lb-muted);
}
.site-nav {
  display: flex;
  align-items: center;
}
.site-nav ul {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { position: relative; margin: 0; padding: 0; }
.site-nav a {
  display: block;
  padding: 0.45rem 0.7rem;
  border-radius: 999px;
  color: var(--lb-ink);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  transition: background 0.2s, color 0.2s;
}
.site-nav a:hover,
.site-nav a.active {
  background: var(--lb-yellow-soft);
  color: var(--lb-blue-deep);
}
/* dropdowns (reveal on hover and :focus-within) */
.site-nav .has-children > .submenu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 200px;
  background: var(--lb-surface-card);
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius-sm);
  box-shadow: var(--lb-shadow);
  padding: 0.35rem;
  flex-direction: column;
  z-index: 60;
}
.site-nav .has-children:hover > .submenu,
.site-nav .has-children:focus-within > .submenu { display: flex; }
.site-nav .submenu a { white-space: nowrap; }

.nav-toggle {
  display: none;
  background: none;
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius-sm);
  padding: 0.4rem 0.6rem;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  color: var(--lb-ink);
}

@media (max-width: 900px) {
  .nav-toggle { display: block; }
  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--lb-surface-card);
    border-bottom: 1px solid var(--lb-border);
    padding: 0.6rem 1rem;
  }
  .site-header .container-fluid { position: relative; flex-wrap: wrap; }
  #nav-toggle:checked ~ .site-nav { display: block; }
  .site-nav ul { flex-direction: column; align-items: stretch; }
  .site-nav .has-children > .submenu {
    position: static; display: flex; box-shadow: none; border: none;
    padding-left: 1rem;
  }
}

/* ---- Layout shells ------------------------------------------------------ */
.page-wrap { max-width: 1200px; margin: 0 auto; padding: 1.5rem 1.25rem 3rem; }
.layout-railed {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 1.75rem;
  align-items: start;
}
@media (max-width: 900px) { .layout-railed { grid-template-columns: 1fr; } }

/* ---- Hero --------------------------------------------------------------- */
.lb-hero {
  background: var(--lb-yellow);
  border-radius: 24px;
  padding: 2.5rem 2rem;
  margin-bottom: 2rem;
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 1.5rem;
  align-items: center;
  overflow: hidden;
}
@media (max-width: 760px) { .lb-hero { grid-template-columns: 1fr; } }
.lb-hero__badge {
  display: inline-block;
  background: rgba(255,255,255,0.45);
  color: var(--lb-blue-deep);
  font-weight: 700;
  font-size: 0.8rem;
  padding: 0.25rem 0.8rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}
.lb-hero h1 { font-size: clamp(1.9rem, 4vw, 2.8rem); margin: 0 0 0.6rem; }
.lb-hero p { color: #3a3a2e; margin: 0; max-width: 40ch; }
.lb-hero__media img { border-radius: 18px; box-shadow: 0 12px 40px rgba(0,0,0,0.12); width: 100%; height: auto; }

/* ---- Sidebar rail ------------------------------------------------------- */
.lb-rail {
  background: var(--lb-surface-low);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--lb-shadow);
  position: sticky;
  top: 90px;
}
.lb-rail h3 { font-size: 1.1rem; color: var(--lb-blue); margin: 0 0 0.2rem; }
.lb-rail__sub { font-size: 0.78rem; color: var(--lb-muted); margin: 0 0 0.9rem; }
.lb-rail nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0.25rem; }
.lb-rail nav a {
  display: block;
  padding: 0.55rem 0.7rem;
  border-radius: var(--lb-radius-sm);
  color: var(--lb-ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  transition: background 0.2s;
}
.lb-rail nav a:hover { background: var(--lb-yellow-soft); color: var(--lb-blue-deep); }

/* ---- Cards / content ---------------------------------------------------- */
.lb-card {
  background: var(--lb-surface-card);
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius);
  box-shadow: var(--lb-shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  overflow: hidden;
}
.lb-card:hover { transform: translateY(-2px); box-shadow: var(--lb-shadow-hover); }

.lb-section-title {
  font-size: 1.6rem;
  margin: 0 0 1.1rem;
  position: relative;
  padding-bottom: 0.4rem;
}
.lb-section-title::after {
  content: "";
  position: absolute; left: 0; bottom: 0;
  width: 56px; height: 4px; border-radius: 4px;
  background: var(--lb-yellow);
}

.content-prose { max-width: 72ch; }
.content-copy { margin: 0 0 1rem; }
.content-heading { margin: 1.6rem 0 0.7rem; }

/* Re-enable editorial link styling inside content (scoped) */
.content-prose a,
.content-copy a,
.lb-card a.is-content,
.content-mini-card h3 a {
  color: var(--lb-blue);
  text-decoration: underline;
  text-decoration-color: rgba(30,78,215,0.4);
  text-underline-offset: 2px;
}
.content-prose a:hover,
.content-copy a:hover,
.content-mini-card h3 a:hover { color: var(--lb-blue-deep); text-decoration-color: var(--lb-blue-deep); }

/* Figures & galleries */
.content-figure { margin: 1.2rem 0; }
.content-figure img, .content-gallery img { max-width: 100%; height: auto; border-radius: var(--lb-radius-sm); }
.content-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.8rem;
  margin: 1.2rem 0;
}
.content-gallery__item { margin: 0; }
.content-gallery__item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
figcaption { font-size: 0.82rem; color: var(--lb-muted); margin-top: 0.3rem; }

/* list_item mini cards (used by listings) */
.lb-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}
.content-mini-card {
  background: var(--lb-surface-card);
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius);
  box-shadow: var(--lb-shadow);
  padding: 1.1rem 1.2rem;
  transition: transform 0.25s, box-shadow 0.25s;
}
.content-mini-card:hover { transform: translateY(-2px); box-shadow: var(--lb-shadow-hover); }
.content-mini-card h3 { font-size: 1.05rem; margin: 0 0 0.4rem; }
.content-mini-card p { margin: 0; color: var(--lb-muted); font-size: 0.9rem; }

/* tables */
.content-table-wrap { overflow-x: auto; margin: 1.2rem 0; }
.content-table { width: 100%; border-collapse: collapse; }
.content-table th, .content-table td { border: 1px solid var(--lb-border); padding: 0.5rem 0.7rem; text-align: left; }
.content-table th { background: var(--lb-yellow-soft); }

/* breadcrumbs */
.lb-breadcrumbs { margin: 0 0 1.2rem; font-size: 0.85rem; }
.lb-breadcrumbs ul { display: flex; flex-wrap: wrap; gap: 0.4rem; list-style: none; padding: 0; margin: 0; }
.lb-breadcrumbs li::after { content: "›"; margin-left: 0.4rem; color: var(--lb-muted); }
.lb-breadcrumbs li:last-child::after { content: ""; }
.lb-breadcrumbs a { color: var(--lb-blue); text-decoration: none; }

/* article */
.lb-article { max-width: 760px; margin: 0 auto; }
.lb-article__meta { color: var(--lb-muted); font-size: 0.85rem; margin-bottom: 1rem; }
.lb-article__summary {
  border-left: 4px solid var(--lb-yellow);
  background: var(--lb-surface-low);
  padding: 0.8rem 1.1rem;
  border-radius: 0 var(--lb-radius-sm) var(--lb-radius-sm) 0;
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
}
.lb-article__image { float: right; max-width: 40%; margin: 0 0 1rem 1.4rem; border-radius: var(--lb-radius-sm); }
@media (max-width: 600px) { .lb-article__image { float: none; max-width: 100%; margin: 0 0 1rem; } }
.lb-toc {
  background: var(--lb-surface-low);
  border: 1px solid var(--lb-border);
  border-radius: var(--lb-radius-sm);
  padding: 0.9rem 1.1rem;
  margin-bottom: 1.4rem;
}
.lb-toc ul { margin: 0.4rem 0 0; padding-left: 1.1rem; }
.lb-toc a { color: var(--lb-blue); text-decoration: none; }

/* category grid */
.lb-cat-grid { display: grid; gap: 1.2rem; }
.lb-cat-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.lb-cat-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 800px) { .lb-cat-grid.cols-2, .lb-cat-grid.cols-3 { grid-template-columns: 1fr; } }
.lb-cat-card { display: flex; flex-direction: column; }
.lb-cat-card img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.lb-cat-card__body { padding: 1rem 1.1rem; }
.lb-cat-card__body h3 { font-size: 1.1rem; margin: 0 0 0.4rem; }
.lb-cat-card__body h3 a { color: var(--lb-ink); text-decoration: none; }
.lb-cat-card__body h3 a:hover { color: var(--lb-blue); }
.lb-readmore { display: inline-block; margin-top: 0.6rem; color: var(--lb-blue); font-weight: 600; text-decoration: none; }
.lb-readmore:hover { text-decoration: underline; }

/* ---- Footer ------------------------------------------------------------- */
.site-footer {
  background: var(--lb-yellow-soft);
  border-top: 1px solid var(--lb-border);
  margin-top: 3rem;
  padding: 2.5rem 1.25rem;
}
.site-footer__inner { max-width: 1200px; margin: 0 auto; text-align: center; }
.site-footer h2 { color: var(--lb-blue); margin: 0 0 0.5rem; }
.site-footer p { color: var(--lb-ink); max-width: 50ch; margin: 0 auto 1.2rem; }
.site-footer__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 1rem; }
.site-footer__links a { color: var(--lb-blue); text-decoration: none; font-weight: 600; }
.site-footer__links a:hover { text-decoration: underline; }
.site-footer__copy { color: var(--lb-muted); font-size: 0.82rem; }
