/* ============================================================
   END OF 10 BRUSSELS — main.css
   ============================================================
   Palette: terracotta (#C8553D) + sage (#6B8E7F) on warm off-white (#FBF7F1)
   Type: Fraunces (headings) + Inter (body)
   Sections in this file:
     1. Custom properties
     2. Reset & base
     3. Skip link
     4. Layout utilities
     5. Typography
     6. Header
     7. Nav & lang switcher
     8. Hero
     9. Buttons
    10. Sections
    11. Content sections (prose — no card boxing)
    12. Cards
    13. Asset badges
    14. Page asset rows
    15. Data tables
    16. Code blocks
    17. Step pages
    18. Tool / analysis panel
    19. Article layout
    20. Footer
    21. Page: Home — stat strip, nav cards
    22. Focus states
    23. Responsive — 960px
    24. Responsive — 640px
   ============================================================ */

/* ============================================================
   1. CUSTOM PROPERTIES
   ============================================================ */
:root {
  /* Palette */
  --bg:       #FBF7F1;  /* warm off-white, paper-like */
  --surface:  #F2EBDD;  /* slightly deeper cream */
  --text:     #1F2B24;  /* deep forest */
  --accent-1: #C8553D;  /* terracotta — CTAs, links, active nav */
  --accent-2: #6B8E7F;  /* muted sage — sustainability / secondary */
  --muted:    #8A7E6E;  /* warm taupe — secondary text, borders */
  --line:     rgba(138, 126, 110, 0.28);

  /* Derived surfaces */
  --accent-1-light: rgba(200, 85, 61, 0.09);
  --accent-2-light: rgba(107, 142, 127, 0.11);
  --shadow: 0 1px 4px rgba(31, 43, 36, 0.06), 0 4px 16px rgba(31, 43, 36, 0.06);
  --radius: 12px;

  /* Typography */
  --font-serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-sans:  'Inter', 'Segoe UI', 'Helvetica Neue', Arial, sans-serif;
  --font-mono:  'Consolas', 'SFMono-Regular', 'Courier New', monospace;

  /* Layout */
  --wrap: 1180px;
}

/* ============================================================
   2. RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(1rem, 0.96rem + 0.18vw, 1.1rem);
  line-height: 1.65;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.lightbox-open {
  overflow: hidden;
}

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

a:hover {
  text-decoration-thickness: 2px;
}

img, svg {
  max-width: 100%;
  height: auto;
}

/* ============================================================
   3. SKIP LINK
   ============================================================ */
.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  z-index: 100;
  padding: 0.5rem 1.1rem;
  background: var(--accent-1);
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border-radius: 0 0 var(--radius) var(--radius);
}
.skip-link:focus {
  top: 0;
}

/* ============================================================
   4. LAYOUT UTILITIES
   ============================================================ */
.wrap {
  width: min(calc(100% - 2rem), var(--wrap));
  margin: 0 auto;
}

.narrow {
  width: min(calc(100% - 2rem), 860px);
  margin: 0 auto;
}

.site-shell {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

.split {
  display: grid;
  gap: 2rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* ============================================================
   5. TYPOGRAPHY
   ============================================================ */
h1, h2, h3, h4 {
  font-family: var(--font-serif);
  line-height: 1.15;
  margin: 0 0 0.75rem;
  color: var(--text);
}

h1 { font-size: clamp(2rem, 4vw + 0.75rem, 3.8rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 2vw + 0.5rem, 2rem);   font-weight: 600; }
h3 { font-size: clamp(1.05rem, 1vw + 0.5rem, 1.3rem); font-weight: 600; }

p       { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
ul, ol  { padding-left: 1.35rem; margin: 0 0 1rem; }

.eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-1);
  margin: 0 0 0.75rem;
}

.lead {
  font-size: clamp(1rem, 1.3vw + 0.2rem, 1.15rem);
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.muted,
.hero-note,
.hero-cta-body,
.upload-state,
.consent-text,
.end-note,
.footer-meta,
.detail-note {
  color: var(--muted);
}

/* ============================================================
   6. HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(251, 247, 241, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.header-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 0;
}

/* Brand */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none;
  color: var(--text);
  flex-shrink: 0;
}

.brand:hover { color: var(--text); text-decoration: none; }

.brand-logo {
  display: block;
  width: 44px;
  height: 44px;
  object-fit: contain;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

.brand-name {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  display: block;
  line-height: 1.2;
}

.brand-tagline {
  display: block;
  font-size: 0.7rem;
  color: var(--muted);
  line-height: 1.3;
  max-width: 24ch;
}

/* Mobile toggle */
.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  color: var(--text);
  margin-left: auto;
  flex-shrink: 0;
}

.nav-toggle:hover { background: var(--surface); }

/* ============================================================
   7. NAV & LANG SWITCHER
   ============================================================ */
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.15rem;
  flex: 1;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  text-decoration: none;
  border-radius: 6px;
}

.site-nav a:hover {
  color: var(--accent-1);
  background: var(--accent-1-light);
}

.site-nav a[aria-current="page"] {
  color: var(--accent-1);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-thickness: 2px;
}

.lang-switcher {
  display: flex;
  align-items: center;
  gap: 0.1rem;
  border-left: 1px solid var(--line);
  padding-left: 1rem;
  margin-left: 0.25rem;
}

.lang-switcher a {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--muted);
  text-decoration: none;
  letter-spacing: 0.07em;
  border-radius: 4px;
}

.lang-switcher a:hover { color: var(--text); }

.lang-switcher a[aria-current="page"] {
  font-weight: 700;
  color: var(--accent-1);
}

/* ============================================================
   8. HERO
   ============================================================ */
.page-hero {
  padding: clamp(2.5rem, 5vw, 5rem) 0 clamp(2rem, 3vw, 3.5rem);
  border-bottom: 1px solid var(--line);
}

.hero {
  padding: clamp(3rem, 6vw, 6rem) 0 clamp(2.5rem, 4vw, 4rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 3.5rem;
  align-items: center;
}

.hero-copy {
  display: flex;
  flex-direction: column;
}

.hero h1,
.page-hero h1 {
  font-size: clamp(2rem, 4vw + 0.75rem, 3.8rem);
  line-height: 1.08;
  margin: 0 0 1.1rem;
  font-weight: 700;
}

.hero-visual img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  gap: 2.5rem;
  align-items: center;
}

.page-hero-copy > :last-child {
  margin-bottom: 0;
}

.page-hero-media {
  display: flex;
  justify-content: flex-end;
}

/* ============================================================
   9. BUTTONS
   ============================================================ */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.85rem;
  padding: 0.65rem 1.35rem;
  border-radius: 999px;
  border: 2px solid transparent;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.button:focus-visible {
  outline: 3px solid var(--accent-1);
  outline-offset: 3px;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.button-primary {
  background: var(--accent-1);
  color: white;
  border-color: var(--accent-1);
}

.button-primary:hover:not(:disabled) {
  background: #ae4a33;
  border-color: #ae4a33;
  color: white;
}

.button-secondary {
  background: transparent;
  color: var(--accent-1);
  border-color: var(--accent-1);
}

.button-secondary:hover:not(:disabled) {
  background: var(--accent-1-light);
  color: var(--accent-1);
}

.hero-actions,
.action-row,
.upload-row {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 1.5rem;
}

/* ============================================================
   10. SECTIONS
   ============================================================ */
.section {
  padding: clamp(2rem, 4vw, 3.5rem) 0;
}

.section-muted {
  background: var(--surface);
}

.section-lined {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-accent {
  background: var(--accent-1-light);
}

.section-head {
  margin-bottom: 2rem;
}

.page-sections {
  display: grid;
  gap: 2.75rem;
}

.section-cta {
  padding-top: 0.75rem;
}

/* ============================================================
   11. CONTENT SECTIONS — plain prose flow, NO card boxing
   ============================================================ */
.policy-section,
.content-section {
  /* Prose reads directly on page background.
     No surface, no border, no shadow. */
  max-width: 68ch;
}

.section-heading {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.5rem;
}

.section-heading > i,
.subsection-heading > i {
  flex-shrink: 0;
}

.section-heading-asset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  flex-shrink: 0;
}

.section-heading-asset img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.section-heading-asset--large {
  width: 1.8rem;
  height: 1.8rem;
}

.section-heading h2 {
  margin: 0;
}

.content-subsection + .content-subsection {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
}

.subsection-stack {
  margin-top: 1rem;
}

.subsection-stack .subsection-card,
.subsection-stack .content-subsection {
  width: 100%;
}

.subsection-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1.25rem;
}

.subsection-card {
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
}

.subsection-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
}

.subsection-heading {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.subsection-icon-group {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-shrink: 0;
}

.subsection-card p:last-of-type { margin-bottom: 0; }
.subsection-card a { font-weight: 700; }

.stack > * + * { margin-top: 1rem; }
.policy-stack > * + * { margin-top: 1rem; }

.plain-list,
.steps-list {
  margin: 0.35rem 0 0.85rem;
  padding-left: 1.35rem;
}

.plain-list .plain-list { margin-top: 0.35rem; }

/* ============================================================
   12. CARDS (nav grids, feature tiles, download items)
   ============================================================ */
.card-grid,
.instruction-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.info-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 0.85rem;
  border-radius: 10px;
  background: var(--accent-1-light);
  border: 1px solid rgba(200, 85, 61, 0.18);
}

.card-icon i {
  font-size: 1.2rem;
  color: var(--accent-1);
}

.card-icon img {
  width: 1.6rem;
  height: 1.6rem;
  object-fit: contain;
}

/* ============================================================
   13. ASSET BADGES (section heading icons)
   ============================================================ */
.asset-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  flex: 0 0 2.25rem;
  border-radius: 8px;
  background: var(--accent-1-light);
  border: 1px solid rgba(200, 85, 61, 0.18);
  overflow: hidden;
}

.asset-badge i {
  font-size: 1rem;
  color: var(--accent-1);
}

.asset-badge-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* ============================================================
   14. PAGE ASSET ROWS (hero icon/image rows from _page_assets.html)
   ============================================================ */
.page-assets {
  display: grid;
  gap: 1rem;
  margin: 0;
  justify-items: end;
}

.page-icon-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.page-image-row {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  width: min(100%, 360px);
}

.page-image-row img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.status-icon--success,
.inline-status-icon--success {
  color: #1f8f4c;
}

.status-icon--danger,
.inline-status-icon--danger {
  color: #c0392b;
}

/* ============================================================
   15. DATA TABLES
   ============================================================ */
.table-wrap {
  overflow-x: auto;
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.data-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--surface);
  font-weight: 600;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  font-family: var(--font-sans);
}

.data-table tr:last-child td { border-bottom: none; }

/* ============================================================
   16. CODE BLOCKS
   ============================================================ */
.code-block {
  overflow-x: auto;
  margin: 1rem 0 0;
  padding: 1rem 1.25rem;
  background: #1e2b25;
  color: #e2ede7;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-size: 0.88rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.code-block-wrap {
  position: relative;
}

.code-copy-button {
  position: absolute;
  top: 1.4rem;
  right: 0.85rem;
  z-index: 1;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: #e2ede7;
  border-radius: 999px;
  padding: 0.3rem 0.75rem;
  font: inherit;
  font-size: 0.8rem;
  cursor: pointer;
}

.code-copy-button:hover {
  background: rgba(255, 255, 255, 0.16);
}

/* ============================================================
   17. STEP PAGES
   ============================================================ */
.step-header {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.25rem;
  min-height: 3.25rem;
  border-radius: 50%;
  background: var(--accent-1);
  color: white;
  font-family: var(--font-serif);
  font-size: 1.3rem;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(200, 85, 61, 0.3);
}

.instruction-layout {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: minmax(0, 1.8fr) minmax(260px, 0.95fr);
  align-items: start;
  margin-top: 1.5rem;
}

.instruction-main,
.instruction-side {
  overflow: hidden;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.instruction-callout {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.instruction-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.instruction-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
}

.instruction-item + .instruction-item {
  border-top: 1px solid var(--line);
}

.instruction-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  background: var(--accent-1);
  color: white;
  font-weight: 700;
  font-size: 0.82rem;
  flex-shrink: 0;
}

.instruction-copy h3,
.instruction-callout h3 {
  margin: 0 0 0.35rem;
}

.instruction-copy p,
.instruction-callout p {
  margin: 0;
}

.instruction-side {
  background: var(--surface);
}

.instruction-callout {
  margin: 1rem;
  padding: 1rem 1.1rem;
  background: white;
}

.instruction-visuals {
  display: grid;
  gap: 0.75rem;
  padding: 0 1rem 1rem;
  grid-template-columns: 1fr;
}

.instruction-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
}

.instruction-shot-wide {
  aspect-ratio: auto;
  height: auto;
}

.instruction-card {
  padding: 1rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.instruction-image {
  display: block;
  width: 100%;
  height: 160px;
  object-fit: cover;
  margin-bottom: 0.9rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: white;
}

/* ============================================================
   18. TOOL / ANALYSIS PANEL
   ============================================================ */
.upload-shell,
.result-layout,
.result-checks,
.next-grid {
  display: grid;
  gap: 1rem;
}

.upload-shell,
.result-layout {
  grid-template-columns: minmax(0, 1.5fr) minmax(260px, 0.95fr);
}

.upload-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.upload-main {
  padding: 1.2rem;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.upload-meta {
  display: grid;
  gap: 1rem;
}

.upload-panel input[type="file"] {
  flex: 1;
  min-width: 260px;
  accent-color: var(--accent-1);
}

.upload-state {
  margin: 0.65rem 0 0;
  font-size: 0.88rem;
}

.privacy-box {
  padding: 1.1rem;
  background: var(--accent-2-light);
  border: 1px solid rgba(107, 142, 127, 0.28);
  border-radius: var(--radius);
}

.details-block {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow);
}

.details-block summary {
  cursor: pointer;
  font-weight: 600;
  list-style: none;
}

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

.result-hero {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.5fr) minmax(240px, 0.9fr);
  margin-bottom: 1rem;
}

.result-banner {
  padding: 1.25rem 1.35rem;
  background: var(--accent-2-light);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--radius);
}

.result-glance {
  display: grid;
  gap: 1rem;
}

.glance-item {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}

.glance-label {
  display: block;
  margin-bottom: 0.3rem;
  color: var(--muted);
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.result-primary {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
  box-shadow: var(--shadow);
}

.result-side-card,
.checklist-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem;
}

.result-checks,
.next-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 1rem;
}

.export-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  margin-top: 1.5rem;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: start;
  margin-bottom: 1.25rem;
}

.panel-head h3,
.result-primary h3,
.result-side-card h3,
.checklist-card h3 {
  margin: 0;
}

.technical-report {
  margin-top: 1rem;
  padding: 1rem;
  overflow: auto;
  white-space: pre-wrap;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 0.85rem;
  line-height: 1.5;
}

.backup-grid { margin-top: 1rem; }

.confirmation-box {
  display: flex;
  gap: 0.85rem;
  align-items: center;
  margin: 1.5rem 0 1rem;
}

/* ============================================================
   19. ARTICLE LAYOUT (article_page.html)
   ============================================================ */
.article-layout {
  display: grid;
  gap: 2.5rem;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  align-items: start;
}

.article-side {
  display: grid;
  gap: 1rem;
}

.hero-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.guide-cover img,
.guide-step-image img {
  display: block;
  width: 100%;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.guide-section-head {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}

.guide-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: var(--accent-2-light);
  color: var(--accent-2);
  font-size: 0.78rem;
  font-weight: 700;
}

.guide-step-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 1fr);
  align-items: center;
}

/* ============================================================
   20. FOOTER
   ============================================================ */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: clamp(2.5rem, 4vw, 3.5rem) 0 1.5rem;
  margin-top: auto;
}

.footer-grid {
  display: grid;
  gap: 2rem;
  grid-template-columns: 2fr 1fr 1fr;
}

.footer-site-name {
  font-size: 1.05rem;
  font-family: var(--font-serif);
  font-weight: 700;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.footer-civic {
  font-size: 0.83rem;
  color: var(--muted);
  margin-top: 0.5rem;
}

.footer-grid h3 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  color: var(--muted);
  margin: 0 0 0.85rem;
  font-family: var(--font-sans);
  font-weight: 700;
}

.footer-grid ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.footer-grid ul a,
.footer-languages a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.88rem;
}

.footer-grid ul a:hover,
.footer-languages a:hover {
  color: var(--accent-1);
  text-decoration: underline;
}

.footer-languages {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.footer-languages a[aria-current="page"] {
  color: var(--accent-1);
  font-weight: 700;
}

.footer-meta {
  border-top: 1px solid var(--line);
  margin-top: 2rem;
  padding-top: 1rem;
}

.footer-meta small {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ============================================================
   21. PAGE: HOME — hero stat strip & nav cards
   ============================================================ */

/* Stat strip — 3-column below hero copy */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 2rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.stat-item {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  padding: 1.1rem 1.25rem;
  border-right: 1px solid var(--line);
}

.stat-item:last-child { border-right: none; }

.stat-icon {
  color: var(--accent-1);
  font-size: 1rem;
  margin-bottom: 0.1rem;
}

.stat-value {
  font-family: var(--font-serif);
  font-size: clamp(1rem, 1.3vw, 1.35rem);
  font-weight: 700;
  line-height: 1.1;
}

.stat-label {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.3;
}

/* "What you can do" nav-card grid */
.nav-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}

.nav-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.5rem;
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  color: var(--text);
  box-shadow: var(--shadow);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.nav-card:hover {
  border-color: var(--accent-1);
  box-shadow: 0 4px 24px rgba(200, 85, 61, 0.12);
  color: var(--text);
  text-decoration: none;
}

.nav-card-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.85rem;
  height: 2.85rem;
  border-radius: 10px;
  background: var(--accent-1-light);
  color: var(--accent-1);
  font-size: 1.25rem;
}

.nav-card-title {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  margin: 0;
  color: var(--text);
  line-height: 1.2;
}

.nav-card-arrow {
  margin-top: auto;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--accent-1);
}

.countdown-value {
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 1.8vw, 1.7rem);
  font-weight: 700;
}

/* ============================================================
   22. SECTION ASIDE LAYOUT (image adjacent to content)
   ============================================================ */
.section-with-aside {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 1.75rem;
  align-items: start;
}

.section-figure {
  margin: 0;
}

.section-figure img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

.section-figure-caption {
  margin-top: 0.55rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--muted);
}

.section-image-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.section-grid-figure {
  margin: 0;
}

.section-grid-figure img {
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
  border-radius: var(--radius);
  display: block;
  box-shadow: 0 2px 10px rgba(0,0,0,0.10);
}

.lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
}

.lightbox-trigger img {
  width: 100%;
}

.section-figure--large {
  grid-column: 1 / -1;
}

.section-figure--wide {
  width: min(280px, 100%);
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
}

.lightbox[hidden] {
  display: none;
}

.lightbox-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(15, 18, 17, 0.86);
}

.lightbox-dialog {
  position: relative;
  z-index: 1;
  width: min(calc(100% - 2rem), 1100px);
  max-height: calc(100vh - 2rem);
  padding: 2.75rem 1rem 1rem;
}

.lightbox-image {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 4rem);
  margin: 0 auto;
  border-radius: var(--radius);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35);
  background: white;
}

.lightbox-close {
  position: absolute;
  top: 0.25rem;
  right: 0.25rem;
  z-index: 2;
  width: 2.5rem;
  height: 2.5rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: white;
  cursor: pointer;
}

/* Key row (step-07 keyboard SVGs) */
.key-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
  align-items: center;
}

.key-row img {
  height: 2.5rem;
  width: auto;
}

/* Hero icon (step-05 Linux logo) */
.step-hero-icon {
  font-size: 3.5rem;
  color: var(--accent-2);
  margin: 0.5rem 0 0;
  line-height: 1;
}

.step-hero-download {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.75rem;
}

.step-hero-download-copy {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.step-hero-download-copy p {
  margin: 0;
  max-width: 52ch;
}

/* Icon-prefixed list items */
.icon-list {
  list-style: none;
  padding-left: 0;
}

.icon-list li {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  padding: 0.2rem 0;
}

.icon-list li i {
  color: var(--accent-1);
  font-size: 0.9em;
  flex-shrink: 0;
  width: 1.1em;
  text-align: center;
}

.status-icon--success {
  color: #2f8f46;
}

.status-icon--danger {
  color: #c83f39;
}

.inline-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: #1b6fd8;
  color: white;
  font-weight: 700;
  line-height: 1.2;
  vertical-align: middle;
}

.inline-status-icon {
  margin-right: 0.45rem;
}

.inline-status-icon--success {
  color: #2f8f46;
}

.inline-status-icon--danger {
  color: #c83f39;
}

/* Privacy icon in analysis panel */
.privacy-icon {
  color: var(--accent-2);
  margin-right: 0.4rem;
}

/* Consent text with icon */
.consent-text-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.consent-text-wrap i {
  color: var(--accent-2);
  flex-shrink: 0;
  font-size: 1.1em;
}

/* ============================================================
   23. FOCUS STATES
   ============================================================ */
:focus-visible {
  outline: 3px solid var(--accent-1);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============================================================
   24. RESPONSIVE — 960px
   ============================================================ */
@media (max-width: 960px) {
  .hero-grid,
  .page-hero-split,
  .split,
  .article-layout,
  .guide-step-grid,
  .instruction-layout,
  .upload-shell,
  .result-layout,
  .result-hero,
  .section-with-aside {
    grid-template-columns: 1fr;
  }

  .section-figure {
    max-width: 320px;
  }

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

  .stat-strip {
    grid-template-columns: 1fr 1fr;
  }

  .stat-item:nth-child(2) { border-right: none; }
  .stat-item:nth-child(1),
  .stat-item:nth-child(2) {
    border-bottom: 1px solid var(--line);
  }

  .nav-card-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Mobile nav */
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(251, 247, 241, 0.98);
    border-bottom: 1px solid var(--line);
    padding: 0.75rem 1rem;
    gap: 0.15rem;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav a[aria-current="page"] {
    text-decoration: none;
    background: var(--accent-1-light);
  }

  .header-row {
    flex-wrap: wrap;
    position: relative;
  }

  .lang-switcher {
    border-left: none;
    padding-left: 0;
    margin-left: auto;
  }
}

/* ============================================================
   24. RESPONSIVE — 640px
   ============================================================ */
@media (max-width: 640px) {
  .hero,
  .page-hero {
    padding-top: 2.25rem;
  }

  .button,
  .upload-panel input[type="file"] {
    width: 100%;
  }

  .hero-actions,
  .action-row,
  .upload-row {
    flex-direction: column;
    align-items: stretch;
  }

  .panel-head {
    flex-direction: column;
  }

  .instruction-item {
    grid-template-columns: 1fr;
  }

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

  .result-hero,
  .result-layout,
  .upload-shell {
    grid-template-columns: 1fr;
  }

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

  .page-hero-split {
    gap: 1.5rem;
  }

  .page-hero-media {
    justify-content: flex-start;
  }

  .page-image-row {
    width: min(100%, 280px);
  }

  .stat-strip {
    grid-template-columns: 1fr;
  }

  .stat-item {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }

  .stat-item:last-child { border-bottom: none; }

  .nav-card-grid {
    grid-template-columns: 1fr;
  }
}
