/* Layout: iED's palette and type on a white ground; sky-blue fills, copper highlights, slate headings and bands; tile pattern kept as TUTORIUM's own mark. Single light theme by design. */
:root {
  color-scheme: light;
  --paper: #FFFFFF;
  --card: #FFFFFF;
  --alt-bg: #F2F2F2;
  --ink: #333333;
  --heading: #495970;
  --muted: #636D7F;
  --line: #E2E2E2;
  --accent: #2BABDF;
  --accent-strong: #166A8D;
  --accent-ink: #FFFFFF;
  --accent-soft: #D9E4F3;
  --sun: #D69067;
  --sun-strong: #A05B34;
  --sun-soft: #F7E7DD;
  --sun-ink: #2A1A10;
  --band: #495970;
  --band-ink: #FFFFFF;
  --band-muted: #D9E4F3;
  --band-accent: #F4CAAF;
  --font-display: "Raleway", "Segoe UI", system-ui, sans-serif;
  --font-body: "Geologica", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Geologica", "Segoe UI", system-ui, sans-serif;
  --radius: 10px;
  --wrap: 1160px;
  --tile: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Ccircle cx='0' cy='0' r='21' fill='black'/%3E%3Ccircle cx='0' cy='0' r='14' fill='white'/%3E%3Ccircle cx='0' cy='0' r='7' fill='black'/%3E%3Ccircle cx='16.2' cy='6.7' r='1.6' fill='white'/%3E%3Ccircle cx='6.7' cy='16.2' r='1.6' fill='white'/%3E%3Ccircle cx='-6.7' cy='16.2' r='1.6' fill='white'/%3E%3Ccircle cx='-16.2' cy='6.7' r='1.6' fill='white'/%3E%3Ccircle cx='-16.2' cy='-6.7' r='1.6' fill='white'/%3E%3Ccircle cx='-6.7' cy='-16.2' r='1.6' fill='white'/%3E%3Ccircle cx='6.7' cy='-16.2' r='1.6' fill='white'/%3E%3Ccircle cx='16.2' cy='-6.7' r='1.6' fill='white'/%3E%3Ccircle cx='100' cy='0' r='21' fill='black'/%3E%3Ccircle cx='100' cy='0' r='14' fill='white'/%3E%3Ccircle cx='100' cy='0' r='7' fill='black'/%3E%3Ccircle cx='116.2' cy='6.7' r='1.6' fill='white'/%3E%3Ccircle cx='106.7' cy='16.2' r='1.6' fill='white'/%3E%3Ccircle cx='93.3' cy='16.2' r='1.6' fill='white'/%3E%3Ccircle cx='83.8' cy='6.7' r='1.6' fill='white'/%3E%3Ccircle cx='83.8' cy='-6.7' r='1.6' fill='white'/%3E%3Ccircle cx='93.3' cy='-16.2' r='1.6' fill='white'/%3E%3Ccircle cx='106.7' cy='-16.2' r='1.6' fill='white'/%3E%3Ccircle cx='116.2' cy='-6.7' r='1.6' fill='white'/%3E%3Ccircle cx='0' cy='100' r='21' fill='black'/%3E%3Ccircle cx='0' cy='100' r='14' fill='white'/%3E%3Ccircle cx='0' cy='100' r='7' fill='black'/%3E%3Ccircle cx='16.2' cy='106.7' r='1.6' fill='white'/%3E%3Ccircle cx='6.7' cy='116.2' r='1.6' fill='white'/%3E%3Ccircle cx='-6.7' cy='116.2' r='1.6' fill='white'/%3E%3Ccircle cx='-16.2' cy='106.7' r='1.6' fill='white'/%3E%3Ccircle cx='-16.2' cy='93.3' r='1.6' fill='white'/%3E%3Ccircle cx='-6.7' cy='83.8' r='1.6' fill='white'/%3E%3Ccircle cx='6.7' cy='83.8' r='1.6' fill='white'/%3E%3Ccircle cx='16.2' cy='93.3' r='1.6' fill='white'/%3E%3Ccircle cx='100' cy='100' r='21' fill='black'/%3E%3Ccircle cx='100' cy='100' r='14' fill='white'/%3E%3Ccircle cx='100' cy='100' r='7' fill='black'/%3E%3Ccircle cx='116.2' cy='106.7' r='1.6' fill='white'/%3E%3Ccircle cx='106.7' cy='116.2' r='1.6' fill='white'/%3E%3Ccircle cx='93.3' cy='116.2' r='1.6' fill='white'/%3E%3Ccircle cx='83.8' cy='106.7' r='1.6' fill='white'/%3E%3Ccircle cx='83.8' cy='93.3' r='1.6' fill='white'/%3E%3Ccircle cx='93.3' cy='83.8' r='1.6' fill='white'/%3E%3Ccircle cx='106.7' cy='83.8' r='1.6' fill='white'/%3E%3Ccircle cx='116.2' cy='93.3' r='1.6' fill='white'/%3E%3Cpath d='M41,0 L50,11 L59,0 Z' fill='black'/%3E%3Cpath d='M59,100 L50,89 L41,100 Z' fill='black'/%3E%3Cpath d='M0,41 L11,50 L0,59 Z' fill='black'/%3E%3Cpath d='M100,59 L89,50 L100,41 Z' fill='black'/%3E%3Cg transform='translate(50 50) rotate(45)'%3E%3Cpath d='M0,-24 C7,-29 7,-38 0,-44 C-7,-38 -7,-29 0,-24 Z' fill='black'/%3E%3C/g%3E%3Cg transform='translate(50 50) rotate(135)'%3E%3Cpath d='M0,-24 C7,-29 7,-38 0,-44 C-7,-38 -7,-29 0,-24 Z' fill='black'/%3E%3C/g%3E%3Cg transform='translate(50 50) rotate(225)'%3E%3Cpath d='M0,-24 C7,-29 7,-38 0,-44 C-7,-38 -7,-29 0,-24 Z' fill='black'/%3E%3C/g%3E%3Cg transform='translate(50 50) rotate(315)'%3E%3Cpath d='M0,-24 C7,-29 7,-38 0,-44 C-7,-38 -7,-29 0,-24 Z' fill='black'/%3E%3C/g%3E%3Cg transform='translate(50 50)'%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='black' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='black' transform='rotate(45)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='black' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='black' transform='rotate(135)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='black' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='black' transform='rotate(225)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='black' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='black' transform='rotate(315)'/%3E%3Ccircle r='7' fill='white'/%3E%3Ccircle r='3.6' fill='black'/%3E%3Ccircle cx='25.9' cy='10.7' r='2.2' fill='black'/%3E%3Ccircle cx='10.7' cy='25.9' r='2.2' fill='black'/%3E%3Ccircle cx='-10.7' cy='25.9' r='2.2' fill='black'/%3E%3Ccircle cx='-25.9' cy='10.7' r='2.2' fill='black'/%3E%3Ccircle cx='-25.9' cy='-10.7' r='2.2' fill='black'/%3E%3Ccircle cx='-10.7' cy='-25.9' r='2.2' fill='black'/%3E%3Ccircle cx='10.7' cy='-25.9' r='2.2' fill='black'/%3E%3Ccircle cx='25.9' cy='-10.7' r='2.2' fill='black'/%3E%3C/g%3E%3C/svg%3E");
  --tile-color: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100' height='100' viewBox='0 0 100 100'%3E%3Crect width='100' height='100' fill='%23FBFAF5'/%3E%3Ccircle cx='0' cy='0' r='21' fill='%231A5E9C'/%3E%3Ccircle cx='0' cy='0' r='14' fill='%23FBFAF5'/%3E%3Ccircle cx='0' cy='0' r='7' fill='%232BABDF'/%3E%3Ccircle cx='16.2' cy='6.7' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='6.7' cy='16.2' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='-6.7' cy='16.2' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='-16.2' cy='6.7' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='-16.2' cy='-6.7' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='-6.7' cy='-16.2' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='6.7' cy='-16.2' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='16.2' cy='-6.7' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='100' cy='0' r='21' fill='%231A5E9C'/%3E%3Ccircle cx='100' cy='0' r='14' fill='%23FBFAF5'/%3E%3Ccircle cx='100' cy='0' r='7' fill='%232BABDF'/%3E%3Ccircle cx='116.2' cy='6.7' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='106.7' cy='16.2' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='93.3' cy='16.2' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='83.8' cy='6.7' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='83.8' cy='-6.7' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='93.3' cy='-16.2' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='106.7' cy='-16.2' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='116.2' cy='-6.7' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='0' cy='100' r='21' fill='%231A5E9C'/%3E%3Ccircle cx='0' cy='100' r='14' fill='%23FBFAF5'/%3E%3Ccircle cx='0' cy='100' r='7' fill='%232BABDF'/%3E%3Ccircle cx='16.2' cy='106.7' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='6.7' cy='116.2' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='-6.7' cy='116.2' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='-16.2' cy='106.7' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='-16.2' cy='93.3' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='-6.7' cy='83.8' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='6.7' cy='83.8' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='16.2' cy='93.3' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='100' cy='100' r='21' fill='%231A5E9C'/%3E%3Ccircle cx='100' cy='100' r='14' fill='%23FBFAF5'/%3E%3Ccircle cx='100' cy='100' r='7' fill='%232BABDF'/%3E%3Ccircle cx='116.2' cy='106.7' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='106.7' cy='116.2' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='93.3' cy='116.2' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='83.8' cy='106.7' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='83.8' cy='93.3' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='93.3' cy='83.8' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='106.7' cy='83.8' r='1.6' fill='%23FBFAF5'/%3E%3Ccircle cx='116.2' cy='93.3' r='1.6' fill='%23FBFAF5'/%3E%3Cpath d='M41,0 L50,11 L59,0 Z' fill='%232BABDF'/%3E%3Cpath d='M59,100 L50,89 L41,100 Z' fill='%232BABDF'/%3E%3Cpath d='M0,41 L11,50 L0,59 Z' fill='%232BABDF'/%3E%3Cpath d='M100,59 L89,50 L100,41 Z' fill='%232BABDF'/%3E%3Cg transform='translate(50 50) rotate(45)'%3E%3Cpath d='M0,-24 C7,-29 7,-38 0,-44 C-7,-38 -7,-29 0,-24 Z' fill='%232BABDF'/%3E%3C/g%3E%3Cg transform='translate(50 50) rotate(135)'%3E%3Cpath d='M0,-24 C7,-29 7,-38 0,-44 C-7,-38 -7,-29 0,-24 Z' fill='%232BABDF'/%3E%3C/g%3E%3Cg transform='translate(50 50) rotate(225)'%3E%3Cpath d='M0,-24 C7,-29 7,-38 0,-44 C-7,-38 -7,-29 0,-24 Z' fill='%232BABDF'/%3E%3C/g%3E%3Cg transform='translate(50 50) rotate(315)'%3E%3Cpath d='M0,-24 C7,-29 7,-38 0,-44 C-7,-38 -7,-29 0,-24 Z' fill='%232BABDF'/%3E%3C/g%3E%3Cg transform='translate(50 50)'%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='%231A5E9C' transform='rotate(0)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='%231A5E9C' transform='rotate(45)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='%231A5E9C' transform='rotate(90)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='%231A5E9C' transform='rotate(135)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='%231A5E9C' transform='rotate(180)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='%231A5E9C' transform='rotate(225)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='%231A5E9C' transform='rotate(270)'/%3E%3Cellipse cx='0' cy='-13' rx='5.5' ry='11' fill='%231A5E9C' transform='rotate(315)'/%3E%3Ccircle r='7' fill='%23FBFAF5'/%3E%3Ccircle r='3.6' fill='%232BABDF'/%3E%3Ccircle cx='25.9' cy='10.7' r='2.2' fill='%231A5E9C'/%3E%3Ccircle cx='10.7' cy='25.9' r='2.2' fill='%231A5E9C'/%3E%3Ccircle cx='-10.7' cy='25.9' r='2.2' fill='%231A5E9C'/%3E%3Ccircle cx='-25.9' cy='10.7' r='2.2' fill='%231A5E9C'/%3E%3Ccircle cx='-25.9' cy='-10.7' r='2.2' fill='%231A5E9C'/%3E%3Ccircle cx='-10.7' cy='-25.9' r='2.2' fill='%231A5E9C'/%3E%3Ccircle cx='10.7' cy='-25.9' r='2.2' fill='%231A5E9C'/%3E%3Ccircle cx='25.9' cy='-10.7' r='2.2' fill='%231A5E9C'/%3E%3C/g%3E%3Crect x='0.5' y='0.5' width='99' height='99' fill='none' stroke='%231A5E9C' stroke-opacity='0.35'/%3E%3C/svg%3E");
  --studs: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='96' height='28' viewBox='0 0 96 28'%3E%3Crect width='96' height='28' fill='%232BABDF'/%3E%3Ccircle cx='8' cy='14' r='3' fill='%231E2A3A'/%3E%3Ccircle cx='20' cy='14' r='3' fill='%231E2A3A'/%3E%3Ccircle cx='32' cy='14' r='3' fill='%231E2A3A'/%3E%3Ccircle cx='64' cy='14' r='3' fill='%231E2A3A'/%3E%3Ccircle cx='76' cy='14' r='3' fill='%231E2A3A'/%3E%3Ccircle cx='44' cy='18' r='2.6' fill='%231E2A3A'/%3E%3Ccircle cx='52' cy='18' r='2.6' fill='%231E2A3A'/%3E%3Ccircle cx='48' cy='10' r='2.6' fill='%231E2A3A'/%3E%3Ccircle cx='88' cy='14' r='7' fill='%231E2A3A'/%3E%3Ccircle cx='91' cy='12.5' r='6' fill='%232BABDF'/%3E%3Cline x1='0' y1='2' x2='96' y2='2' stroke='%231E2A3A' stroke-width='1.5' stroke-dasharray='1 5' stroke-linecap='round'/%3E%3Cline x1='0' y1='26' x2='96' y2='26' stroke='%231E2A3A' stroke-width='1.5' stroke-dasharray='1 5' stroke-linecap='round'/%3E%3C/svg%3E");
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
body { background: var(--paper); color: var(--ink); font-family: var(--font-body); font-weight: 300; font-size: 1.0625rem; line-height: 1.65; }
strong, b, label, th { font-weight: 600; }
a { color: var(--accent-strong); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3, h4 { color: var(--heading); font-family: var(--font-display); line-height: 1.15; text-wrap: balance; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.8rem); font-weight: 900; }
h2 { font-size: clamp(1.65rem, 3vw, 2.35rem); font-weight: 800; }
h3 { font-size: 1.24rem; font-weight: 800; }
h4 { font-size: 1.04rem; font-weight: 800; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin-inline: auto; padding-inline: clamp(16px, 4vw, 40px); }
.eyebrow { font-family: var(--font-body); font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sun-strong); font-weight: 600; }
.lede { font-size: 1.2rem; color: var(--muted); max-width: 62ch; }
.lede-wide { max-width: 78ch; }
.prose { max-width: 66ch; display: grid; gap: 1em; }
.prose-full { max-width: none; }
.muted { color: var(--muted); }
.mono { font-family: var(--font-mono); }

/* Header */
.site-header { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; background: color-mix(in srgb, var(--paper) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { flex: none; display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-logo { display: block; height: 32px; width: auto; max-width: 100%; }
.footer-logo { height: 36px; }
.nav { display: flex; gap: 2px; margin-inline-start: auto; flex-wrap: nowrap; }
.nav a { white-space: nowrap; text-decoration: none; color: var(--ink); padding: 8px 10px; border-radius: 8px; font-size: 0.98rem; }
.nav a:hover { background: var(--accent-soft); }
.nav a[aria-current="page"] { color: var(--accent-strong); font-weight: 700; box-shadow: inset 0 -2px 0 var(--accent-strong); border-radius: 0; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 20px; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 1rem; text-decoration: none; border: 2px solid var(--accent-strong); background: var(--accent-strong); color: var(--accent-ink); cursor: pointer; line-height: 1.2; }
.btn:hover { filter: brightness(1.08); }
.btn.ghost { background: transparent; color: var(--accent-strong); }
.btn.sun { background: var(--sun); border-color: var(--sun); color: var(--sun-ink); }
.btn { font-weight: 600; }
.btn.small { padding: 8px 14px; font-size: 0.92rem; }
.menu-btn { display: none; margin-inline-start: auto; background: none; border: 1px solid var(--line); color: var(--ink); border-radius: 8px; padding: 8px 12px; font: inherit; cursor: pointer; }
.eu-badge { flex: none; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--heading); }
.eu-flag { display: block; width: 45px; height: 30px; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08); }
.eu-text { direction: ltr; unicode-bidi: isolate; display: grid; line-height: 1.15; font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.01em; }
.eu-text b { font-weight: 800; white-space: nowrap; }
.eu-badge:hover .eu-text { color: var(--accent-strong); }
.site-header .wrap { max-width: 1360px; }
@media (max-width: 1399px) { .eu-text { display: none; } }
@media (max-width: 640px) { .eu-badge { display: none; } }
@media (max-width: 1200px) {
  .menu-btn { display: inline-flex; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px clamp(16px, 4vw, 40px) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 8px; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent-strong); padding-inline-start: 14px; }
}

/* Sections */
.section { padding-block: clamp(48px, 7vw, 88px); }
.section.tight { padding-block: clamp(36px, 5vw, 56px); }
.section-head { display: grid; gap: 12px; margin-bottom: 32px; max-width: 760px; }
.section-head.wide { max-width: none; }
.lede-full { max-width: none; }
.band { background: var(--band); color: var(--band-ink); }
.band .muted, .band .lede { color: var(--band-muted); }
.band .eyebrow { color: var(--band-accent); }
.band a:not(.btn) { color: var(--band-accent); }
.band h1, .band h2, .band h3, .band h4 { color: var(--band-ink); }
.alt { background: var(--alt-bg); border-block: 1px solid var(--line); }

/* Hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::before { content: ""; position: absolute; inset-block: 0; inset-inline: auto 0; width: min(58%, 760px); background: var(--tile-color) 0 0/112px; opacity: 0.32; -webkit-mask-image: linear-gradient(to left, #000 35%, transparent); mask-image: linear-gradient(to left, #000 35%, transparent); pointer-events: none; }
.hero h1 { font-size: clamp(2rem, 3.5vw, 3.2rem); }
.hero-grid { max-width: 1360px; display: grid; grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.42fr); gap: clamp(28px, 5vw, 64px); align-items: center; padding-block: clamp(44px, 7vw, 92px); position: relative; }
.hero-copy { display: grid; gap: 22px; min-width: 0; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 16px; box-shadow: 0 18px 40px -28px rgba(10, 30, 50, 0.45); min-width: 0; }
.panel-title { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 0.9rem; padding: 6px 12px; border-radius: 999px; background: var(--accent-soft); color: var(--ink); border: 1px solid transparent; }
.chip.sun { background: var(--sun-soft); }
a.chip, .page-head .chip { text-decoration: none; font-weight: 700; }
a.chip:hover { border-color: var(--accent-strong); }
#about-sec, [id$="-sec"] { scroll-margin-top: calc(76px + env(safe-area-inset-top, 0px)); }
.route { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.route li { display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px dashed var(--line); }
.route li:first-child { border-top: none; }
.route .n { font-family: var(--font-mono); font-size: 0.85rem; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--accent-strong); color: var(--accent-strong); }
.route strong { display: block; }
.route span.d { color: var(--muted); font-size: 0.93rem; }
@media (max-width: 860px) { .hero-grid { grid-template-columns: 1fr; } .hero::before { width: 100%; opacity: 0.16; } }

/* Facts */
.facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.fact { padding: 22px 20px; border-inline-start: 1px solid var(--line); display: grid; gap: 6px; align-content: start; }
.fact:first-child { border-inline-start: none; }
.fact b { font-family: var(--font-display); font-size: 2.1rem; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--accent-strong); }
.fact span { color: var(--muted); font-size: 0.95rem; }
@media (max-width: 860px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact { border-inline-start: none; border-top: 1px solid var(--line); } .fact:nth-child(-n+2) { border-top: none; } .fact:nth-child(even) { border-inline-start: 1px solid var(--line); } .fact:last-child { grid-column: 1 / -1; border-inline-start: none; } }

/* Grids and cards */
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; gap: 12px; align-content: start; min-width: 0; }
.card .tag { justify-self: start; }
.card ul { margin: 0; padding-inline-start: 1.1em; display: grid; gap: 4px; }
.card-link { text-decoration: none; color: inherit; transition: border-color .2s, transform .2s; }
.card-link:hover { border-color: var(--accent-strong); transform: translateY(-2px); }
.tag { font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 4px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-strong); font-weight: 500; }
.tag.sun { background: var(--sun-soft); color: var(--ink); }
.service { border-top: 4px solid var(--accent); border-radius: 4px 4px var(--radius) var(--radius); }
.service:nth-child(2) { border-top-color: var(--sun); }
.more { font-weight: 700; text-decoration: none; }
.more::after { content: " →"; }

/* Steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; counter-reset: s; }
.steps li { position: relative; display: grid; gap: 8px; padding-top: 52px; align-content: start; min-width: 0; }
.steps li::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; top: 0; inset-inline-start: 0; font-family: var(--font-mono); font-size: 0.9rem; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-strong); color: var(--accent-ink); }
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 20px; inset-inline: 48px -8px; border-top: 2px dashed var(--line); }
.steps p { color: var(--muted); font-size: 0.96rem; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } .steps li { padding-top: 0; padding-inline-start: 56px; } .steps li::after { display: none; } }

/* Page header */
.page-head { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head::after { content: ""; position: absolute; inset-inline-end: 0; top: 0; bottom: 0; width: min(58%, 760px); background: var(--tile-color) 0 0/112px; opacity: 0.32; -webkit-mask-image: linear-gradient(to left, #000 30%, transparent); mask-image: linear-gradient(to left, #000 35%, transparent); pointer-events: none; }
.page-head .wrap { padding-block: clamp(40px, 6vw, 72px); display: grid; gap: 14px; position: relative; }
.crumbs { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.crumbs a { color: var(--muted); }
@media (max-width: 620px) { .page-head::after { width: 45%; opacity: 0.22; } }

/* Two-column layouts */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.split.wide-left { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
@media (max-width: 860px) { .split, .split.wide-left { grid-template-columns: 1fr; } }
.phase-num { font-family: var(--font-display); font-weight: 900; font-size: 2.6rem; line-height: 1; color: var(--sun-strong); font-variant-numeric: tabular-nums; }
.outcome { border-top: 1px dashed var(--line); padding-top: 10px; font-size: 0.95rem; }
.outcome b { color: var(--heading); }
.statement { border-inline-start: 4px solid var(--sun); padding-block: 6px; padding-inline: 20px 0; display: grid; gap: 8px; }
.statement p { font-size: 1.15rem; }

/* Data table */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; font-size: 0.97rem; }
th, td { text-align: start; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
th { font-family: var(--font-mono); font-size: 0.76rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); font-weight: 500; background: var(--paper); }
td.code { font-family: var(--font-mono); font-size: 0.86rem; color: var(--accent-strong); white-space: nowrap; }
/* Course catalogue on phones: one compact card per module instead of a cramped four-column table */
@media (max-width: 640px) {
  .catalogue thead { display: none; }
  .catalogue, .catalogue tbody { display: block; }
  .catalogue tr { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .catalogue tr:last-child { border-bottom: none; }
  .catalogue td { display: block; padding: 0; border: 0; }
  .catalogue td:nth-child(1) { grid-column: 1; grid-row: 1; }
  .catalogue td:nth-child(3) { grid-column: 2; grid-row: 1; justify-self: end; text-align: end; font-family: var(--font-mono); font-size: 0.74rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .catalogue td:nth-child(2) { grid-column: 1 / -1; grid-row: 2; font-weight: 600; color: var(--heading); }
  .catalogue td:nth-child(4) { grid-column: 1 / -1; grid-row: 3; }
  .catalogue td:nth-child(4)::before { content: "→ "; }
  [dir="rtl"] .catalogue td:nth-child(4)::before { content: "← "; }
}
.kv td:first-child { color: var(--muted); width: 38%; }

/* SDGs */
.sdg-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; margin-bottom: 32px; }
.sdg-head .section-head { margin-bottom: 0; }
.sdg-logo { margin: 0; background: #FFFFFF; border-radius: var(--radius); padding: 14px 20px; box-shadow: 0 14px 30px -24px rgba(30, 50, 80, 0.45); }
.sdg-logo img { display: block; width: 240px; max-width: 100%; height: auto; }
@media (max-width: 520px) { .sdg-logo img { width: 190px; } }
.sdg { display: grid; grid-template-columns: 54px 1fr; gap: 14px; align-items: center; }
.sdg b { font-family: var(--font-display); font-size: 1.5rem; width: 54px; height: 54px; display: grid; place-items: center; border-radius: 10px; background: var(--accent-strong); color: var(--accent-ink); }

/* Team */
.person { display: grid; grid-template-columns: 64px 1fr; gap: 16px; align-items: start; }
.avatar { width: 64px; height: 64px; border-radius: 14px; background: var(--accent-strong); color: var(--accent-ink); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.3rem; position: relative; overflow: hidden; }
.avatar::before { content: ""; position: absolute; inset: 0; background: var(--accent-ink); -webkit-mask: var(--tile) 0 0/22px; mask: var(--tile) 0 0/22px; opacity: 0.18; }
.avatar span { position: relative; }
.avatar.sun { background: var(--sun); color: var(--sun-ink); }
.avatar.sun::before { background: var(--sun-ink); }
.role { color: var(--accent-strong); font-weight: 700; font-size: 0.95rem; }
.person p.bio { color: var(--muted); font-size: 0.96rem; }

/* Blog */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 28px; }
.filter { font: inherit; font-size: 0.94rem; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.filter[aria-pressed="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.post-card { padding: 0; overflow: hidden; gap: 0; }
.post-cover { height: 132px; position: relative; background: var(--accent); }
.post-cover::before { content: ""; position: absolute; inset: 0; background: var(--accent-ink); -webkit-mask: var(--tile) 0 0/44px; mask: var(--tile) 0 0/44px; opacity: 0.2; }
.post-cover.c1 { background: var(--sun); }
.post-cover.c1::before { background: var(--sun-ink); }
.post-cover.c2 { background: var(--band); }
.post-cover.c2::before { background: var(--sun); opacity: 0.35; }
.post-cover .tag { position: absolute; inset-inline-start: 16px; bottom: 14px; background: var(--card); color: var(--ink); }
.post-body { padding: 20px 22px 24px; display: grid; gap: 10px; }
.meta { font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted); }
.article { max-width: 70ch; display: grid; gap: 1.1em; }
.article h2 { font-size: 1.5rem; margin-top: 0.6em; }
.article blockquote { margin: 0; border-inline-start: 4px solid var(--sun); padding-block: 4px; padding-inline: 18px 0; font-size: 1.15rem; }
.article ul { margin: 0; padding-inline-start: 1.2em; display: grid; gap: 6px; }

/* Forms */
form { display: grid; gap: 16px; }
.field { display: grid; gap: 6px; }
label { font-weight: 700; font-size: 0.95rem; }
input, select, textarea { font: inherit; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); width: 100%; }
textarea { min-height: 140px; resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 620px) { .row2 { grid-template-columns: 1fr; } }
.note { font-size: 0.9rem; color: var(--muted); }
.ready { border: 1px solid var(--accent-strong); background: var(--accent-soft); border-radius: var(--radius); padding: 18px; display: grid; gap: 10px; }
.ready pre { white-space: pre-wrap; margin: 0; font-family: var(--font-mono); font-size: 0.86rem; background: var(--card); padding: 12px; border-radius: 8px; border: 1px solid var(--line); max-height: 260px; overflow: auto; }
.copy-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.copy-line code { font-family: var(--font-mono); font-size: 0.98rem; user-select: all; padding: 6px 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 6px; overflow-wrap: anywhere; }
.band .copy-line code { background: transparent; border-color: var(--band-muted); color: var(--band-ink); }

/* CTA band */
.cta { display: grid; grid-template-columns: minmax(0, 1.4fr) auto; gap: 28px; align-items: center; }
@media (max-width: 760px) { .cta { grid-template-columns: 1fr; } }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; }


.equal-cards { grid-auto-rows: 1fr; }
.equal-cards > .card:not(.band-wide) { display: flex; flex-direction: column; gap: 12px; }
.equal-cards > .card:not(.band-wide) h3 { min-height: 2.3em; }
.equal-cards > .card:not(.band-wide) ul { flex: 1; align-content: start; }
.coop-types > .card p.muted { flex: 1; }
.equal-cards.natural-rows { grid-auto-rows: auto; }
.equal-cards > .card .tag, .equal-cards > .card .more { align-self: flex-start; }
.natural-rows > .card h3 { min-height: 0; }
.coop-types .tag { white-space: nowrap; }
.equal-cards .outcome { min-height: calc(3.3em + 11px); }
.cta-strip { margin-top: 20px; }
.coop-split { align-items: center; }
.coop-pic .pic { aspect-ratio: 4 / 3; box-shadow: 0 18px 40px -30px rgba(30, 50, 80, 0.5); }
.about-pic .pic { aspect-ratio: 4 / 3; box-shadow: 0 18px 40px -30px rgba(30, 50, 80, 0.5); }

.included-card { border-color: transparent; }
.card.band { background: var(--band); border-color: transparent; }
.card.band:not(.included-card) { align-content: center; }
.card.band p { color: var(--band-muted); }
.band-wide { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 28px 32px; }
.band-wide > div { display: grid; gap: 8px; max-width: 70ch; }
@media (max-width: 760px) { .band-wide { grid-template-columns: 1fr; padding: 24px; } }
.label-pic { position: relative; }
.label-pic span { position: absolute; inset-inline-start: 16px; bottom: 14px; background: var(--card); color: var(--heading); font-family: var(--font-display); font-weight: 800; font-size: 0.95rem; padding: 7px 16px; border-radius: 999px; box-shadow: 0 10px 24px -14px rgba(20, 40, 70, 0.6); }
.card ul.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: grid; grid-template-columns: 24px 1fr; gap: 10px; align-items: start; }
.checks li::before { content: "✓"; width: 24px; height: 24px; border-radius: 50%; background: var(--sun); color: var(--sun-ink); display: grid; place-items: center; font-weight: 700; font-size: 0.8rem; margin-top: 2px; }


/* Moving ribbon of fields and sectors */
.ribbon { background: var(--band); color: var(--band-ink); overflow: hidden; padding-block: 14px; }
.ribbon-track { display: flex; width: max-content; animation: ribbon 48s linear infinite; }
.ribbon:hover .ribbon-track { animation-play-state: paused; }
.ribbon ul { display: flex; list-style: none; margin: 0; padding: 0; }
.ribbon li { display: flex; align-items: center; gap: 22px; padding-inline-end: 22px; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; white-space: nowrap; letter-spacing: 0.01em; }
.ribbon li::after { content: ""; width: 12px; height: 12px; background: var(--band-accent); transform: rotate(45deg); border-radius: 2px; }
@keyframes ribbon { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .ribbon-track { animation: none; width: auto; }
  .ribbon ul[aria-hidden="true"] { display: none; }
  .ribbon ul { flex-wrap: wrap; row-gap: 8px; padding-inline: clamp(16px, 4vw, 40px); }
}

/* Tunisian door-stud strip */
.studs { height: 28px; background: var(--studs) 0 0/96px 28px repeat-x; }

/* Pictures and video */
.pic { margin: 0; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--alt-bg); max-width: 100%; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card > .pic:first-child { max-width: none; margin: -24px -24px 6px; border-radius: var(--radius) var(--radius) 0 0; }
.service > .pic:first-child { border-radius: 0; }
.video-frame { position: relative; border-radius: 18px; overflow: hidden; max-width: 100%; padding: 14px; background: var(--tile-color) 0 0/56px; box-shadow: 0 24px 50px -30px rgba(30, 50, 80, 0.55); }
.video-frame video { width: 100%; aspect-ratio: 16 / 9; height: auto; display: block; object-fit: cover; border-radius: 8px; background: var(--band); }
.video-controls { position: absolute; inset-inline-end: 26px; bottom: 26px; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.video-btn { font: inherit; font-size: 0.85rem; font-weight: 600; padding: 7px 12px; border-radius: 999px; border: none; background: rgba(255, 255, 255, 0.92); color: var(--heading); cursor: pointer; }
.hero-media { display: grid; gap: 12px; min-width: 0; }
.media-note { font-size: 0.86rem; color: var(--muted); }
.sector-card h3 { font-size: 1.4rem; }
.post-cover { height: auto; aspect-ratio: 16 / 9; background: var(--alt-bg); }
.post-cover::before { display: none; }
.post-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-pic { margin-bottom: 8px; }

.person-card { gap: 14px; }
.person-card .person { grid-template-columns: 64px 1fr; align-items: center; }
.person-card h3 { font-size: 1.2rem; }
.person-bg { font-size: 0.93rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }

/* Language switcher */
.lang-switch { display: flex; flex: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; }
.lang-switch button { font: inherit; font-size: 0.86rem; font-weight: 600; border: none; background: none; color: var(--ink); padding: 5px 10px; border-radius: 999px; cursor: pointer; line-height: 1.2; }
.lang-switch button[aria-pressed="true"] { background: var(--accent-strong); color: var(--accent-ink); }
.lang-switch button:not([aria-pressed="true"]):hover { background: var(--accent-soft); }
.lang-switch button[lang="ar"] { font-family: "IBM Plex Sans Arabic", var(--font-body); }
@media (max-width: 1200px) { .lang-switch { margin-inline-start: auto; } .menu-btn { margin-inline-start: 0; } }
.menu-btn { align-items: center; gap: 6px; }
@media (max-width: 520px) { .header-row { gap: 8px; } .brand-logo { height: 22px; } .lang-switch { padding: 2px; } .lang-switch button { min-height: 34px; min-width: 34px; padding: 4px 7px; font-size: 0.82rem; } .menu-btn { padding: 7px 9px; } .menu-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; } }
@media (max-width: 360px) { .brand-logo { height: 19px; } }

/* French and Arabic */
:root:lang(ar) { --font-display: "Cairo", "Segoe UI", Tahoma, sans-serif; --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; --font-mono: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, sans-serif; }
:lang(ar) body { line-height: 1.85; font-weight: 400; }
:lang(ar) h1, :lang(ar) h2, :lang(ar) h3, :lang(ar) h4 { letter-spacing: 0; line-height: 1.35; }
:lang(ar) .eyebrow, :lang(ar) .tag, :lang(ar) th, :lang(ar) .site-footer h4 { letter-spacing: 0; text-transform: none; }
:lang(ar) .eyebrow { font-size: 0.9rem; }
:lang(ar) .tag { font-size: 0.82rem; }
:lang(ar) .ribbon li { font-weight: 700; }
[dir="rtl"] .more::after { content: " ←"; }
[dir="rtl"] .nav a[aria-current="page"] { box-shadow: inset -3px 0 0 var(--accent-strong); }
@media (min-width: 1201px) { [dir="rtl"] .nav a[aria-current="page"] { box-shadow: inset 0 -2px 0 var(--accent-strong); } }
[dir="rtl"] .hero::before, [dir="rtl"] .page-head::after { -webkit-mask-image: linear-gradient(to right, #000 35%, transparent); mask-image: linear-gradient(to right, #000 35%, transparent); }
.ribbon { direction: ltr; }
[dir="rtl"] .ribbon li { direction: rtl; }
[dir="rtl"] .copy-line code, [dir="rtl"] .mono, [dir="rtl"] td.code, .ltr { direction: ltr; unicode-bidi: isolate; }
[dir="rtl"] .ready pre { direction: rtl; text-align: start; }

/* Projects, downloads, application fields, social bar */
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.subhead { margin: 44px 0 18px; font-size: 1.3rem; }
.proj-cards > .card h3 { min-height: 0; font-size: 1.15rem; }
.proj-cards > .card p.muted { flex: 1; }
.proj-meta { margin: 0; display: grid; gap: 6px; border-top: 1px dashed var(--line); padding-top: 12px; font-size: 0.9rem; }
.proj-meta div { display: grid; grid-template-columns: 9.5em minmax(0, 1fr); gap: 8px; }
.proj-meta dt { color: var(--muted); }
.proj-meta dd { margin: 0; color: var(--ink); overflow-wrap: anywhere; }
.eu-ack { display: flex; gap: 16px; align-items: center; margin: 24px 0; padding: 16px 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); font-size: 0.88rem; color: var(--muted); }
.eu-ack strong { color: var(--ink); }
.eu-flag-ack { flex: none; width: 54px; height: 36px; }
.row3 { display: grid; grid-template-columns: 0.6fr 1fr 1.4fr; gap: 16px; }
@media (max-width: 620px) { .row3 { grid-template-columns: 1fr; } .eu-ack { flex-direction: column; align-items: flex-start; } }
.apply-fields { display: grid; gap: 16px; padding: 16px; border-radius: var(--radius); background: var(--accent-soft); }
.cv-note { color: var(--ink); font-weight: 500; }
.topbar { background: var(--band); color: var(--band-ink); font-size: 0.85rem; }
.topbar-row { display: flex; justify-content: flex-end; padding-block: 6px; }
.social-bar { display: flex; flex-wrap: wrap; gap: 8px; }
.social-bar a { text-decoration: none; font-weight: 600; font-size: 0.85rem; padding: 4px 12px; border-radius: 999px; border: 1px solid currentColor; }
.topbar .social-bar a { color: var(--band-ink); }
.site-footer .social-bar a { color: var(--accent-strong); }

/* Footer */
.site-footer { background: var(--paper); color: var(--ink); padding-block: 56px 28px; border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 32px; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h4 { font-size: 0.82rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--heading); margin-bottom: 12px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; color: var(--muted); }
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--accent-strong); text-decoration: underline; }
.footer-note { color: var(--muted); max-width: 36ch; }
.nw { white-space: nowrap; }
.legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 8px 22px; justify-content: space-between; }

.view { animation: rise .35s ease both; }
@keyframes rise { from { transform: translateY(6px); } to { transform: none; } }
.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); background: var(--ink); color: var(--paper); padding: 10px 18px; border-radius: 999px; font-size: 0.94rem; z-index: 40; }

/* Former inline styles (moved here for the Content-Security-Policy) */
.is-0040e4f { font-size:clamp(2rem,4.4vw,3.2rem) !important; }
.is-0fb875d { display:grid !important;gap:14px !important;align-content:start !important; }
.is-137cee6 { margin-top:56px !important; }
.is-2d94f11 { border-top:1px solid var(--line) !important; }
.is-41d7d7e { padding:0 !important; }
.is-4432354 { margin-top:1em !important; }
.is-49fcd85 { margin-top:24px !important; }
.is-6788b49 { display:grid !important;gap:12px !important; }
.is-744a3bf { color:var(--band-ink) !important;border-color:var(--band-muted) !important; }
.is-7891572 { color:var(--ink) !important; }
.is-7e970fd { display:grid !important;gap:16px !important; }
.is-83d9e43 { display:grid !important;gap:2px !important;min-width:0 !important; }
.is-8b79c5e { background:var(--accent-soft) !important;border-color:transparent !important; }
.is-9931721 { justify-self:start !important; }
.is-9aa121f { display:grid !important;gap:10px !important; }
.is-aae25bb { display:grid !important;gap:22px !important; }
.is-c2f8546 { margin-top:32px !important; }
.is-c4235ec { border-color:transparent !important; }
.is-f6641f3 { display:grid !important;gap:8px !important; }
.is-f98bc17 { font-size:1.5rem !important; }
