/* ============================================================
   Vesiotec — shared stylesheet for all pages (v3)
   Dark style. Plain CSS, no build step, no JavaScript.

   Page layouts for this theme are in themes/v3/templates/;
   the article boxes and the language menu are in section 14.

   Quick edits:
     • colours, spacing, fonts   → :root below
     • navigation                → section 3
     • hero photo                → section 4 (or per page via
       <section class="hero" style="--hero: url(...)">)
   ============================================================ */

/* ---------- 1. Design tokens ------------------------------- */
:root {
  --bg:          #0a0e17;   /* page background */
  --bg-card:     #121824;   /* cards, panels */
  --bg-raised:   #1a2334;   /* cards inside panels, hover state */
  --bg-footer:   #06090f;
  --magenta:     #e6007e;   /* categories, numbers, primary button */
  --magenta-dk:  #c4006b;
  --cyan:        #00d2ff;   /* links, active nav, sub-headings */
  --cyan-line:   rgba(0, 210, 255, .4);   /* hover borders */
  --text:        #f0f4f8;   /* headings, strong copy */
  --text-soft:   #cbd5e1;   /* lead + long-form copy */
  --muted:       #94a3b8;   /* card copy, small print */
  --line:        rgba(255, 255, 255, .08);   /* hairlines */

  --container:   1200px;    /* max content width (home) */
  --container-sm:1100px;    /* max content width (sub-pages) */
  --gutter:      5%;        /* side padding */
  --radius:      12px;      /* cards, panels */
  --radius-sm:   4px;       /* buttons, tabs */
  --header-h:    70px;
  --logo-h:      30px;      /* header logo height */

  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- 2. Reset / base -------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 10px); }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3, h4 {
  margin: 0 0 .5em;
  color: #fff;
  font-weight: 600;
  line-height: 1.25;
}

p { margin: 0 0 1em; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Small uppercase label above a title */
.eyebrow {
  margin: 0 0 6px;
  color: var(--magenta);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.eyebrow-cyan { color: var(--cyan); font-size: 14px; }

/* ---------- 3. Header & navigation ------------------------- */
/* The mobile menu is a pure-CSS checkbox toggle — no JavaScript.
   The <input> sits immediately before <header> in every page.     */
.nav-toggle { position: absolute; opacity: 0; pointer-events: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(10, 14, 23, .85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

/* The header runs the full width of the window, unlike the content */
.header-inner {
  max-width: none;
  display: flex;
  align-items: center;
  gap: 32px;
  min-height: var(--header-h);
}

.logo { flex: none; display: inline-flex; align-items: center; }
.logo img {
  height: var(--logo-h);
  width: auto;
  transition: filter .25s ease, transform .25s ease;
}
.logo:hover img {
  filter: drop-shadow(0 0 10px rgba(0, 210, 255, .75));
  transform: scale(1.02);
}

/* Desktop: links sit inline, pushed to the right */
.site-nav { margin-left: auto; }

.site-nav ul {
  display: flex;
  align-items: center;
  gap: 29px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav a {
  position: relative;
  display: block;
  padding: 5px 0;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color .2s ease;
}
.site-nav a:hover { color: var(--text); text-decoration: none; }

/* Current page.
   The nav lives in one shared file (includes/header.html), so the active
   item is chosen here instead: each page carries a <body class="page-X">
   and the matching nav link has class="nav-X". Add a new page by adding
   one line to each of the two lists below. */
.page-index    .nav-overview,
.page-solution .nav-solution,
.page-insights .nav-insights,
.page-about    .nav-about,
.page-contact  .nav-contact {
  color: var(--cyan);
  font-weight: 600;
  text-shadow: 0 0 12px rgba(0, 210, 255, .4);
}
.page-index    .nav-overview::after,
.page-solution .nav-solution::after,
.page-insights .nav-insights::after,
.page-about    .nav-about::after,
.page-contact  .nav-contact::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -6px;
  width: 100%;
  height: 2px;
  background: var(--cyan);
  border-radius: 2px;
  box-shadow: 0 0 8px var(--cyan);
}

.header-tools {
  flex: none;
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  transition: border-color .2s ease;
}
.lang:hover { border-color: var(--magenta); text-decoration: none; }
.lang svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: var(--text);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* Hamburger — hidden on desktop, shown under 768px */
.burger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 38px;
  height: 38px;
  padding: 11px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s ease;
}
.burger:hover { border-color: var(--cyan); }
.burger span {
  display: block;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: transform .25s ease, opacity .25s ease;
}
.burger:hover span { background: var(--cyan); }

/* ---------- 4. Hero ---------------------------------------- */
.hero {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 520px;
  padding: 80px 0;
  text-align: center;
  background:
    linear-gradient(to bottom, rgba(10,14,23,.85) 0%, rgba(10,14,23,.7) 50%, rgba(10,14,23,.9) 100%),
    var(--hero, url("images/hero-lake.jpg")) center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}

.hero-content { max-width: 850px; margin: 0 auto; }

.hero h1 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(29px, 3.5vw, 42px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .7);
}

.hero p {
  max-width: 750px;
  margin: 0 auto;
  color: var(--text-soft);
  font-size: 18px;
  font-weight: 300;
  text-shadow: 0 1px 5px rgba(0, 0, 0, .7);
}

/* ---------- 5. Sections & page shell ----------------------- */
.section { padding: 80px 0 128px; }

/* Label + title with a rule underneath (home page) */
.section-header {
  margin-bottom: 64px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.section-header h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 3.2vw, 40px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.section-tagline {
  margin: 8px 0 0;
  color: var(--cyan);
  font-size: clamp(18px, 1.8vw, 22px);
  font-weight: 500;
}

/* Sub-pages: narrower column, no hero */
.page {
  max-width: var(--container-sm);
  padding-top: 64px;
  padding-bottom: 128px;
}

.page-header { margin-bottom: 40px; }
.page-title {
  margin: 0;
  color: #fff;
  font-size: 29px;
  font-weight: 700;
  line-height: 1.6;
}

/* Bar with the back button (and the insight tabs) */
.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.btn-back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 19px;
  border: 1px solid var(--cyan);
  border-radius: var(--radius-sm);
  color: var(--cyan);
  font-size: 13px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease;
}
.btn-back:hover { background: var(--cyan); color: var(--bg); text-decoration: none; }

/* The big card that holds a sub-page's content */
.panel {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 56px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}
.panel > .eyebrow { font-size: 14px; margin-bottom: 13px; }
.panel h1 {
  margin: 0 0 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(32px, 3.5vw, 44px);
  font-weight: 700;
  line-height: 1.2;
}

.lead {
  color: var(--text-soft);
  font-size: 18px;
  line-height: 1.8;
  margin-bottom: 40px;
}
.lead strong { color: #fff; }
.note { color: var(--muted); font-size: 15px; line-height: 1.7; margin: 24px 0 0; }

/* Section heading inside a panel, with a rule above */
.panel-title {
  margin: 56px 0 16px;
  padding-top: 40px;
  border-top: 1px solid var(--line);
  font-size: 24px;
}
.panel-title + p { color: var(--text-soft); font-size: 17px; line-height: 1.8; margin-bottom: 28px; }

/* ---------- 6. Feature rows (home) ------------------------- */
/* Add class "reverse" to put the image on the right.
   The whole row is clickable: the link's ::after covers the card. */
.features { display: flex; flex-direction: column; gap: 56px; }

.feature {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.feature:hover {
  background: var(--bg-raised);
  border-color: var(--cyan-line);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .5);
}

.feature.reverse .feature-media { order: 2; }
.feature.reverse .feature-body  { order: 1; }

.feature-media { align-self: stretch; min-height: 280px; overflow: hidden; }
.feature-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s ease;
}
.feature:hover .feature-media img { transform: scale(1.04); }

.feature-body { padding: 48px; }
.feature-body h3 { font-size: 24px; margin-bottom: 16px; transition: color .2s ease; }
.feature:hover .feature-body h3 { color: var(--cyan); }
.feature-body p { color: var(--muted); margin-bottom: 29px; }
.feature-body .eyebrow { color: var(--magenta); font-size: 13px; letter-spacing: 1px; margin-bottom: 8px; }
.feature-body p:last-child { margin-bottom: 0; }

.feature-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  transition: color .2s ease, letter-spacing .2s ease;
}
.feature-link::after { content: ""; position: absolute; inset: 0; }
.feature-link:hover { text-decoration: none; }
.feature:hover .feature-link { color: #fff; letter-spacing: .3px; }

/* ---------- 7. Card grid ----------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
}

.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 35px 32px;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.card:hover {
  border-color: var(--cyan-line);
  transform: translateY(-3px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .4);
}
.card-num {
  margin: 0 0 13px;
  color: var(--magenta);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1px;
}
.card h3 { font-size: 20px; line-height: 1.35; margin-bottom: 12px; }
.card p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- 8. Management cycle (Our Solution) ------------- */
.cycle {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 56px;
  align-items: center;
  margin: 40px 0 56px;
  padding: 48px;
  background: rgba(255, 255, 255, .02);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.cycle-media img {
  width: 100%;
  max-width: 440px;
  height: auto;
  margin: 0 auto;
  border-radius: 50%;
  box-shadow: 0 15px 40px rgba(0, 0, 0, .6);
  transition: transform .3s ease;
}
.cycle-media img:hover { transform: scale(1.02); }

.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 18px; }
.steps li {
  display: flex;
  gap: 20px;
  align-items: flex-start;
  padding: 16px 21px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: 8px;
  transition: border-color .25s ease, transform .25s ease;
}
.steps li:hover { border-color: var(--cyan-line); transform: translateX(4px); }
.step-num { min-width: 26px; color: var(--magenta); font-size: 15px; font-weight: 700; line-height: 1.4; }
.steps h4 { color: var(--cyan); font-size: 18px; margin-bottom: 4px; }
.steps p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.5; }

/* ---------- 9. Partnership banner (About) ------------------ */
.banner {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
  padding: 40px;
  background: linear-gradient(145deg, rgba(10,14,23,.6) 0%, rgba(18,24,36,.9) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.banner h3 { font-size: 22px; margin-bottom: 16px; }
.banner p { color: var(--muted); line-height: 1.7; }
.banner p:last-child { margin-bottom: 0; }

.highlights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.highlights li {
  padding: 14px 19px;
  background: rgba(255, 255, 255, .03);
  border-left: 3px solid var(--cyan);
  border-radius: 0 6px 6px 0;
}
.highlights strong { display: block; color: var(--cyan); font-size: 14px; font-weight: 600; }
.highlights span { display: block; margin-top: 3px; color: var(--text-soft); font-size: 14px; }

/* ---------- 10. Insights ----------------------------------- */
/* Topic tabs — plain links; the current one carries class="is-current" */
.tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.tabs a {
  padding: 8px 16px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}
.tabs a:hover,
.tabs a.is-current {
  background: var(--magenta);
  border-color: var(--magenta);
  color: #fff;
  text-decoration: none;
}

/* Article list (insights.html). Copy a block to add an entry. */
.article {
  position: relative;
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 36px;
  align-items: center;
  margin-bottom: 28px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: background .3s ease, border-color .3s ease, transform .3s ease;
}
.article:hover { background: var(--bg-raised); border-color: var(--cyan-line); transform: translateY(-3px); }
.article-media { align-self: stretch; min-height: 210px; }
.article-media img { width: 100%; height: 100%; object-fit: cover; }
.article-body { padding: 28px 36px 28px 0; }
.article-body .eyebrow { font-size: 13px; letter-spacing: 1px; }
.article-body h2 { font-size: 22px; margin-bottom: 10px; }
.article-body h2 a { color: #fff; }
.article-body h2 a::after { content: ""; position: absolute; inset: 0; }
.article:hover h2 a { color: var(--cyan); text-decoration: none; }
.article-body p:last-child { margin: 0; color: var(--muted); font-size: 15px; }

/* Long-form body copy (insights/*.html) */
.prose { color: var(--text-soft); font-size: 17px; line-height: 1.8; }
.prose h2 { margin: 35px 0 16px; color: var(--cyan); font-size: 22px; }
.prose p { margin-bottom: 22px; }
.prose ul { margin: 0 0 29px; padding-left: 24px; }
.prose li { margin-bottom: 12px; color: var(--text); }
.prose li strong { color: var(--cyan); }
.prose > :last-child { margin-bottom: 0; }
.prose.lead { font-size: 18px; margin-bottom: 40px; }

/* "More insights" under an article: the other articles as cards */
.more-insights { margin-top: 72px; }
.more-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}
.more-head h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 2.4vw, 30px);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.more-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
@media (max-width: 960px) { .more-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .more-grid { grid-template-columns: 1fr; } }
.more-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: inherit;
  transition: background .3s ease, border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.more-card:hover {
  background: var(--bg-raised);
  border-color: var(--cyan-line);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
  text-decoration: none;
}
.more-media { display: block; height: 130px; overflow: hidden; }
.more-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.more-card:hover .more-media img { transform: scale(1.05); }
.more-body { display: flex; flex-direction: column; flex: 1; padding: 20px 20px 22px; }
.more-body .eyebrow { display: block; font-size: 12px; letter-spacing: 1px; margin-bottom: 8px; }
.more-title { flex: 1; color: #fff; font-size: 16px; font-weight: 600; line-height: 1.4; }
.more-card:hover .more-title { color: var(--cyan); }
.more-link { margin-top: 18px; color: var(--cyan); font-size: 14px; font-weight: 600; }
.more-link span { display: inline-block; color: var(--magenta); transition: transform .2s ease; }
.more-card:hover .more-link span { transform: translateX(4px); }

/* ---------- 11. Contact ------------------------------------ */
/* Photo strip across the top of the panel, fading into it */
.contact-banner {
  position: relative;
  height: 220px;
  margin: -56px -56px 48px;
  overflow: hidden;
  border-radius: var(--radius) var(--radius) 0 0;
}
.contact-banner img { width: 100%; height: 100%; object-fit: cover; }
.contact-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(18,24,36,.15) 0%, rgba(18,24,36,.55) 60%, var(--bg-card) 100%);
}

/* The two e-mail boxes side by side, headquarters full width below */
.contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}
.contact-card:last-child { grid-column: 1 / -1; }
.contact-card {
  display: flex;
  align-items: flex-start;
  gap: 28px;
  padding: 32px 36px;
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.contact-card:hover {
  border-color: var(--cyan-line);
  border-left-color: var(--cyan);
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .35);
}
.contact-icon {
  flex: none;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(0, 210, 255, .1);
  border: 1px solid var(--cyan-line);
  box-shadow: 0 0 18px rgba(0, 210, 255, .15);
}
.contact-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-card h3 { margin: 4px 0 10px; color: var(--cyan); font-size: 20px; }
.contact-card p { margin: 0; color: var(--text-soft); font-size: 16px; line-height: 1.7; }
.contact-card strong { color: #fff; font-weight: 700; }
.contact-mail {
  display: inline-block;
  margin-top: 14px;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  transition: color .2s ease;
}
.contact-mail span { display: inline-block; color: var(--magenta); transition: transform .2s ease; }
.contact-mail:hover { color: var(--cyan); text-decoration: none; }
.contact-mail:hover span { transform: translateX(4px); }

/* ---------- 12. Footer ------------------------------------- */
.site-footer {
  padding: 48px 0;
  background: var(--bg-footer);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}
.site-footer p { margin: 0; }

/* ---------- 13. Responsive --------------------------------- */
@media (max-width: 960px) {
  .cycle { grid-template-columns: 1fr; gap: 40px; padding: 32px; }
}

@media (max-width: 900px) {
  .feature { grid-template-columns: 1fr; gap: 0; }
  .feature.reverse .feature-media,
  .feature.reverse .feature-body { order: 0; }

  .banner { grid-template-columns: 1fr; gap: 29px; padding: 29px; }
  .contact-card { flex-direction: column; gap: 16px; padding: 24px; }
  .contact-info { grid-template-columns: 1fr; }

  .article { grid-template-columns: 1fr; gap: 0; }
  .article-body { padding: 28px; }
}

@media (max-width: 768px) {
  .burger { display: flex; }

  /* Nav collapses into a drop-down panel under the header */
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    margin-left: 0;
    max-height: 0;
    overflow: hidden;
    background: rgba(10, 14, 23, .98);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .8);
    transition: max-height .3s ease;
  }
  .nav-toggle:checked ~ .site-header .site-nav {
    max-height: 420px;
    border-bottom: 1px solid var(--line);
  }

  .site-nav ul { display: block; padding: 16px var(--gutter) 24px; }
  .site-nav li { border-bottom: 1px solid rgba(255, 255, 255, .05); }
  .site-nav a { padding: 16px 8px; font-size: 17px; }
  .page-index    .nav-overview::after,
.page-solution .nav-solution::after,
  .page-insights .nav-insights::after,
  .page-about    .nav-about::after,
  .page-contact  .nav-contact::after { bottom: 0; }

  /* Hamburger turns into an X while open */
  .nav-toggle:checked ~ .site-header .burger span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
  .nav-toggle:checked ~ .site-header .burger span:nth-child(2) { opacity: 0; }
  .nav-toggle:checked ~ .site-header .burger span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

  /* Push the tools to the right now that the nav is out of flow */
  .header-tools { margin-left: auto; }

  .section { padding: 56px 0 80px; }
  .section-header { margin-bottom: 40px; }
  .page { padding-top: 40px; padding-bottom: 80px; }
  .panel { padding: 32px 24px; }
  .contact-banner { height: 150px; margin: -32px -24px 32px; }
  .feature-body { padding: 32px 24px; }
}


/* ---------- 14. Article boxes & language menu -------------- */
/* An article's first paragraph */
.prose > p.lead {
  margin-bottom: 32px;
  padding: 19px 24px;
  background: rgba(0, 210, 255, .05);
  border-left: 3px solid var(--cyan);
  border-radius: 0 8px 8px 0;
  color: #fff;
  font-size: 18px;
  line-height: 1.7;
}

/* "[case] Title" in an article file */
.case-box {
  margin: 24px 0 32px;
  padding: 22px 26px;
  background: rgba(0, 210, 255, .04);
  border: 1px dashed rgba(0, 210, 255, .3);
  border-radius: 8px;
}
.case-box-title {
  margin: 0 0 8px;
  color: var(--cyan);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.prose .case-box p:last-child { margin: 0; color: #e2e8f0; font-size: 16px; }

/* "[highlight] Title" in an article file; **bold** words in the title turn magenta */
.highlight-box {
  margin: 32px 0 35px;
  padding: 26px 29px;
  background: linear-gradient(145deg, rgba(230, 0, 126, .08) 0%, rgba(18, 24, 36, .95) 100%);
  border: 1px solid rgba(230, 0, 126, .35);
  border-left: 4px solid var(--magenta);
  border-radius: 8px;
}
.highlight-box h3 { margin: 0 0 10px; color: #fff; font-size: 19px; }
.highlight-box h3 strong { margin-right: 4px; color: var(--magenta); font-weight: 800; }
.prose .highlight-box p:last-child { margin: 0; font-size: 16px; line-height: 1.7; }
.prose .highlight-box p strong { color: #fff; }

/* Language menu (opened by the globe button) */
.site-header .lang-menu ul {
  background: var(--bg-card);
  border-color: var(--line);
  border-radius: var(--radius-sm);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .6);
}
.site-header .lang-menu li a { color: var(--text-soft); }
.site-header .lang-menu li a:hover { background: var(--bg-raised); color: var(--cyan); text-decoration: none; }
.site-header .lang-menu li a[aria-current] { color: var(--cyan); }
.lang-menu[open] .lang { border-color: var(--magenta); }

/* Management cycle: the diagram (images/cycle/cycle.<lang>.svg) has small
   lettering, so it sits above the steps at a readable size */
.cycle { grid-template-columns: 1fr; gap: 40px; }
.cycle-media img { max-width: 460px; }

@media (max-width: 768px) {
  .prose > p.lead { padding: 16px 19px; font-size: 17px; }
  .case-box, .highlight-box { padding: 19px 21px; }
}

/* ============================================================
   Added to every theme by build.py (themes/_shared/extra.css)
   ============================================================ */

/* Language menu: a <details> element, so it opens without JavaScript */
.lang-menu { position: relative; }
.lang-menu summary { list-style: none; cursor: pointer; user-select: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu ul {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 70;
  min-width: 170px;
  margin: 0;
  padding: 8px;
  list-style: none;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, .14);
  box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .45);
}
.lang-menu li a {
  display: block;
  padding: 8px 12px;
  color: #1c1c1c;
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}
.lang-menu li a:hover { background: rgba(0, 0, 0, .06); }
.lang-menu li a[aria-current] { font-weight: 700; }

/* Emphasised words in the home headline: a theme may colour them,
   but they are never italic */
.hero h1 em { font-style: normal; }

/* Article boxes ("[case]" and "[highlight]" in an article file).
   Plain fallback; :where() keeps it weaker than any theme's own rules. */
:where(.case-box, .highlight-box) {
  margin: 24px 0 32px;
  padding: 20px 24px;
  border: 1px solid currentColor;
  border-radius: 6px;
}
:where(.case-box) { border-style: dashed; }
:where(.highlight-box) { border-left-width: 4px; }
:where(.case-box-title) { margin: 0 0 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; font-size: .85em; }
:where(.case-box, .highlight-box) > :last-child { margin-bottom: 0; }
