/* Cercle Européen Renert — one stylesheet, mobile first, light and dark.
   Colours come from the existing identity (ink, paper, red, azure, gold); text colours are
   darkened or lightened where needed so every pairing meets WCAG AA contrast. */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-latin-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-latin-ext-wght-normal.woff2") format("woff2"); font-weight: 200 900; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Source Serif 4"; src: url("/fonts/source-serif-4-latin-wght-italic.woff2") format("woff2"); font-weight: 200 900; font-style: italic; font-display: swap; }

:root {
  --red: #E92214; --azure: #039DE4; --gold: #F3CA1C;          /* brand, for shapes and accents */
  --brand-red: #E92214;         /* large headings and figures only (passes for large text) */
  --bg: #FBFBF8; --surface: #FFFFFF; --band: #F1F1EA;
  --text: #08111F; --muted: #3A4453; --line: #D9D9CF; --line-strong: #8A8F98;
  --accent: #C71606;            /* red that is readable as text on paper */
  --on-accent: #FFFFFF;
  --link: #0A5F8F; --focus: #0A5F8F; --prose: #27313F;
  --chip-bg: #EAF5FC; --chip-text: #0A4A70;
  --ok-bg: #E8F5EC; --ok-text: #14532D; --err-bg: #FDECEA; --err-text: #9B1206;
  --shadow: 0 1px 2px rgba(8, 17, 31, .06), 0 8px 24px rgba(8, 17, 31, .06);
  --display: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --body: "Source Serif 4", Georgia, "Times New Roman", serif;
  --maxw: 1180px; --pad: clamp(16px, 5vw, 56px); --radius: 14px;
  color-scheme: light;
}
/* Dark values, used when the device asks for dark (unless the visitor chose light) or when chosen. */
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) {
  --bg: #0A1120; --surface: #121B2E; --band: #0E1627;
  --text: #EEF1F6; --muted: #B4BDCC; --line: #26324A; --line-strong: #6E7B94;
  --accent: #FF8073; --brand-red: #FF8073; --on-accent: #0A1120; --link: #7CCBF5; --focus: #F3CA1C; --prose: #D5DBE6;
  --chip-bg: #16304A; --chip-text: #BFE4FA;
  --ok-bg: #12301F; --ok-text: #B5EBC7; --err-bg: #3A1512; --err-text: #FFC4BD;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  color-scheme: dark;
} }
:root[data-theme="dark"] {
  --bg: #0A1120; --surface: #121B2E; --band: #0E1627;
  --text: #EEF1F6; --muted: #B4BDCC; --line: #26324A; --line-strong: #6E7B94;
  --accent: #FF8073; --brand-red: #FF8073; --on-accent: #0A1120; --link: #7CCBF5; --focus: #F3CA1C; --prose: #D5DBE6;
  --chip-bg: #16304A; --chip-text: #BFE4FA;
  --ok-bg: #12301F; --ok-text: #B5EBC7; --err-bg: #3A1512; --err-text: #FFC4BD;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 5rem; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 1.0625rem; line-height: 1.65; overflow-wrap: break-word; }
img, svg { max-width: 100%; height: auto; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.12; letter-spacing: -.015em; margin: 0 0 .6em; text-wrap: balance; }
h1 { font-size: clamp(2rem, 6vw, 3.5rem); font-weight: 900; }
h2 { font-size: clamp(1.45rem, 3.6vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p, ul, ol, dl, blockquote, figure { margin: 0 0 1.1em; }
a { color: var(--link); text-decoration-thickness: .08em; text-underline-offset: .18em; }
a:hover { text-decoration-thickness: .16em; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
main:focus { outline: none; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; background: var(--text); color: var(--bg); padding: .8rem 1.1rem; border-radius: 8px; font-family: var(--display); font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }
.on-dark { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .on-dark { display: block; } :root:not([data-theme="light"]) .on-light { display: none; } }
:root[data-theme="dark"] .on-dark { display: block; } :root[data-theme="dark"] .on-light { display: none; }

/* ---- header: follows the original cer.lu template (74px bar, logo, centred menu, language pill, Join us) ---- */
.site-header { position: sticky; top: 0; z-index: 60; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.navbar { position: static; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 74px; }
.no-js .nav-list { flex-wrap: wrap; row-gap: 0; justify-content: center; }
.brand { flex: none; display: flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; }
.brand .logo { height: clamp(38px, 4.4vw, 46px); width: auto; }
.brand-sub { display: none; font: 600 .6rem/1.15 var(--display); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@media (min-width: 641px) { .brand-sub { display: block; } }
nav.main { min-width: 0; }
.nav-list { list-style: none; margin: 0; padding: 0; display: flex; align-items: center; gap: 1.5rem; }
.nav-list a { position: relative; display: inline-block; padding: 4px 0; font: 600 .93rem var(--display); color: var(--text); text-decoration: none; white-space: nowrap; }
.nav-list a::after { content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0; background: var(--brand-red); transition: width .25s ease; }
.nav-list a:hover::after, .nav-list a:focus-visible::after, .nav-list a[aria-current]::after { width: 100%; }
.nav-right { flex: none; display: flex; align-items: center; gap: .85rem; }
.lang { display: flex; gap: 1px; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; }
.lang a, .lang span { font: 700 .7rem var(--display); letter-spacing: .05em; padding: 6px 10px; color: var(--muted); text-decoration: none; }
.lang a:hover { color: var(--text); }
.lang [aria-current] { background: var(--text); color: var(--bg); }
.lang a:focus-visible { outline-offset: -3px; }
/* light / dark button: thin outline icon, moon in light mode and sun in dark mode (used on the site and in the administration) */
.theme-toggle { display: inline-grid; place-items: center; width: 34px; height: 34px; min-height: 0; padding: 0; background: none; border: 1px solid var(--line-strong); border-radius: 50%; color: var(--muted); cursor: pointer; transition: color .2s ease, border-color .2s ease; }
.theme-toggle:hover { color: var(--text); border-color: var(--text); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .i-sun { display: none; }
.theme-toggle[aria-pressed="true"] .i-sun { display: inline; } .theme-toggle[aria-pressed="true"] .i-moon { display: none; }
.user-link { font: 600 .88rem var(--display); color: var(--text); text-decoration: none; white-space: nowrap; }
.user-link:hover { color: var(--accent); }
.nav-right .btn { min-height: 0; padding: 11px 22px; font-size: .88rem; }
.badge { display: inline-block; min-width: 1.5em; padding: 0 .4em; border-radius: 999px; background: var(--accent); color: var(--on-accent); font: 700 .75rem/1.5em var(--display); text-align: center; }
.navbar .burger { display: none; flex-direction: column; gap: 5px; padding: 10px 6px; background: none; border: 0; cursor: pointer; }
.navbar .burger span { display: block; width: 22px; height: 1.5px; background: var(--text); transition: .3s; }
.navbar .burger[aria-expanded="true"] span:nth-child(1) { transform: rotate(45deg) translate(4.6px, 4.6px); }
.navbar .burger[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.navbar .burger[aria-expanded="true"] span:nth-child(3) { transform: rotate(-45deg) translate(4.6px, -4.6px); }
/* compact header: on small screens, and whenever the script finds that the menu does not fit beside the logo and the buttons */
@media (max-width: 920px) {
  .navbar .burger { display: flex; }
  .js nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -22px rgba(8, 17, 31, .35); padding: 1rem var(--pad) 1.5rem; }
  .js nav.main.open { display: block; }
  .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
  .nav-list a { display: block; padding: 12px 0; font-size: 1rem; }
  .nav-list a::after { display: none; }
  .nav-list a[aria-current] { color: var(--accent); }
  .user-link { display: none; }
  /* without scripts the menu simply sits under the bar */
  .no-js .navbar { height: auto; flex-wrap: wrap; padding-block: .6rem; } .no-js nav.main { order: 3; width: 100%; } .no-js .navbar .burger { display: none; }
}
/* a little too wide: tighten before giving up the menu */
.nav-tight .brand-sub { display: none; } .nav-tight .nav-list { gap: 1rem; } .nav-tight .navbar { gap: 1rem; } .nav-tight .nav-right { gap: .6rem; } .nav-tight .nav-right .btn { padding: 9px 16px; }
.nav-compact .navbar .burger { display: flex; }
.nav-compact nav.main { display: none; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -22px rgba(8, 17, 31, .35); padding: 1rem var(--pad) 1.5rem; }
.nav-compact nav.main.open { display: block; }
.nav-compact .nav-list { flex-direction: column; align-items: stretch; gap: 0; }
.nav-compact .nav-list a { display: block; padding: 12px 0; font-size: 1rem; }
.nav-compact .nav-list a::after { display: none; }
.nav-compact .nav-list a[aria-current] { color: var(--accent); }
@media (max-width: 680px) { .nav-right { gap: .6rem; } .nav-right .btn { padding: 6px 10px; font-size: .7rem; } }
@media (max-width: 640px) { .navbar { min-height: 60px; } }
@media (max-width: 400px) { .navbar { gap: .6rem; } .nav-right { gap: .45rem; } .brand .logo { height: 34px; } }   /* everything still fits at 320px */

/* ---- buttons ---- */
.btn { white-space: nowrap; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 48px; padding: .6rem 1.4rem; border-radius: 999px; border: 2px solid var(--accent); background: var(--accent); color: var(--on-accent); font: 700 1rem var(--display); text-decoration: none; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn.small { min-height: 44px; padding: .35rem 1rem; font-size: .9rem; }
.btn.danger { background: transparent; color: var(--err-text); border-color: var(--err-text); }
button.link { background: none; border: 0; padding: .6rem 0; color: var(--link); font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
button.link.danger { color: var(--err-text); }

/* ---- home page: announcement bar, hero, mission. Sizes and spacing follow the original cer.lu template ---- */
.announce { background: #08111F; color: #fff; border-bottom: 1px solid #20293A; }
.announce-inner { display: flex; align-items: center; gap: 1rem; padding-block: .7rem; font: 500 .86rem var(--display); }
.announce .flag { flex: none; font-weight: 800; font-size: .66rem; letter-spacing: .14em; text-transform: uppercase; background: #D61C0E; color: #fff; padding: 3px 9px; border-radius: 4px; }
.announce .txt { color: #D7DBE2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.announce .txt strong { color: #fff; font-weight: 700; }
.announce .more { margin-left: auto; flex: none; color: #F3CA1C; font-weight: 700; white-space: nowrap; text-decoration: none; min-height: 0; padding-block: .35rem; }
.announce .more::after { content: none; }
.announce .more:hover { text-decoration: underline; }
.announce :focus-visible { outline-color: #F3CA1C; }
@media (max-width: 680px) { .announce .txt { white-space: normal; } }
.eyebrow { display: flex; align-items: center; gap: .7em; font: 700 .72rem var(--display); letter-spacing: .22em; text-transform: uppercase; color: var(--accent); margin: 0 0 1rem; }
.eyebrow::before { content: ""; width: 26px; height: 2px; background: currentColor; flex: none; }
.hero { position: relative; overflow: hidden; padding-block: clamp(56px, 9vw, 116px) clamp(70px, 10vw, 124px); }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.hero .eyebrow { margin-bottom: 1.5rem; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5.1rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.04; margin: 0; }
.hero h1 em { font-style: normal; color: var(--brand-red); }
.hero .intro { font-size: clamp(1.08rem, 1.6vw, 1.32rem); color: var(--muted); margin-top: 1.6rem; max-width: 36ch; }
.hero .intro p { margin: 0; }
.cta { display: flex; flex-wrap: wrap; gap: 1rem; margin: 2.2rem 0 0; }
.cta .btn { min-height: 44px; padding: 11px 22px; font-size: .88rem; }
.cta .btn.ghost { border: 1.5px solid var(--text); }
.cta .btn.ghost:hover { background: var(--text); color: var(--bg); }
.stats { display: flex; flex-wrap: wrap; gap: 1.2rem 2.4rem; margin: 3rem 0 0; }
.stats div { display: flex; flex-direction: column-reverse; }
.stats dd { margin: 0; font: 900 2.1rem/1 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats div:first-child dd { color: var(--brand-red); }
.stats dt { font: 600 .74rem var(--display); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: .4rem; }
.hero-art { display: flex; align-items: center; justify-content: center; height: clamp(340px, 38vw, 460px); padding: clamp(.5rem, 2vw, 1.5rem); }
.hero-art img { width: 100%; max-width: 430px; height: auto; max-height: 100%; }
@media (max-width: 920px) { .hero-grid { grid-template-columns: 1fr; } .hero-art { order: -1; height: 280px; } }
.mission { padding-block: clamp(56px, 8vw, 100px); }
.mission .eyebrow { margin: 0; }
.mission .prose { margin-block: 0; }
.mission .prose > * { max-width: none; }
.mission .prose h2 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 900; line-height: 1.04; letter-spacing: -.02em; margin: 1rem 0 1.5rem; }
.mission .prose p { font-size: 1rem; line-height: 1.6; margin: 0; }
p.lead { font-size: clamp(1.1rem, 2.2vw, 1.3rem); color: var(--muted); max-width: 62ch; }
.page-hero .intro { font-size: clamp(1.06rem, 1.6vw, 1.28rem); color: var(--muted); max-width: 62ch; margin-top: 1.4rem; } .page-hero .intro p:last-child { margin-bottom: 0; }
.page-hero { padding-block: clamp(46px, 7vw, 84px) clamp(28px, 4vw, 44px); border-bottom: 1px solid var(--line); }
.page-hero:has(+ .wrap.prose) { border-bottom: 0; padding-bottom: 0; }      /* on the old site the text continues inside the page head */
.wrap.prose:last-child, .wrap.block:last-child { padding-bottom: clamp(28px, 4vw, 44px); }
.page-hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.9rem); font-weight: 900; letter-spacing: -.035em; line-height: 1.04; max-width: 20ch; margin: 0; }
.back { display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; font: 600 .9rem var(--display); }
.back::before { content: "←"; }
.meta { color: var(--muted); font: 500 .88rem var(--display); margin-bottom: .4em; }
.facts { display: grid; gap: .6rem 2rem; margin-block: 1.2rem; }
.facts div { border-left: 3px solid var(--azure); padding-left: .9rem; }
.facts dt { font: 700 .74rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.facts dd { margin: 0; font: 600 1.05rem var(--display); }
@media (min-width: 700px) { .facts { grid-template-columns: repeat(4, auto); justify-content: start; } }

/* ---- text: the original's article style (blue dash before headings, generous line height) ---- */
.prose { margin-block: 1.2rem; }
.prose > :not(figure, table) { max-width: 780px; }
.prose p, .prose li { font-size: 1.08rem; line-height: 1.72; color: var(--prose); }
.prose p { margin: 1.1rem 0 0; }
.prose strong { font-weight: 600; color: var(--text); }
.prose h2 { font-size: 1.3rem; font-weight: 800; letter-spacing: -.01em; line-height: 1.2; margin: 2.2rem 0 0; }
.prose h2::before { content: ""; display: inline-block; width: 16px; height: 3px; background: var(--azure); vertical-align: middle; margin-right: .6rem; transform: translateY(-4px); }
.prose h3 { font-size: 1.1rem; font-weight: 700; margin: 1.6rem 0 0; }
.prose ul, .prose ol { margin: 1rem 0 0 .5rem; padding-left: 1.5rem; }
.prose li { margin-bottom: .8rem; }
.prose img { border-radius: 8px; }
.prose a > img { background: #fff; padding: .7rem 1rem; border: 1px solid var(--line); vertical-align: middle; }   /* logos stay readable in dark mode */
.prose blockquote { margin: 2rem 0 0; padding-left: 1.4rem; border-left: 3px solid var(--red); font-style: italic; font-size: 1.18rem; }
.prose table { border-collapse: collapse; width: 100%; margin-top: 1.2rem; } .prose th, .prose td { border: 1px solid var(--line); padding: .5rem .7rem; text-align: left; }
.page-hero + .prose { margin-top: 0; }
/* full-width sections kept from the old pages */
.sec { padding-block: clamp(56px, 8vw, 100px); }
.wrap.prose + .sec, .wrap.block + .sec { border-top: 1px solid var(--line); }
.sec .eyebrow { margin: 0; }
.sec h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.04; letter-spacing: -.02em; margin: 1rem 0 0; }
.sec.mission h2 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: 1.5rem; }
.sec.mission p:not(.eyebrow) { margin: 0; line-height: 1.6; }
.sec-head { margin-bottom: clamp(2.4rem, 5vw, 3.6rem); }
.sec-head p:not(.eyebrow) { color: var(--muted); font-size: 1.12rem; margin: 1.1rem 0 0; }
.pagelink { display: inline-flex; align-items: center; gap: .4em; margin-top: 1.4rem; color: var(--accent); font: 700 .95rem var(--display); text-decoration: none; }
.pagelink:hover { text-decoration: underline; }
.sec.fox { background: #08111F; color: #EDEFF3; --focus: #F3CA1C; }
.sec.fox > .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.sec.fox .eyebrow { color: #F3CA1C; }
.sec.fox h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
.sec.fox p:not(.eyebrow) { color: #B8BFCB; font-size: 1.1rem; margin: 1.3rem 0 0; }
.sec.fox p em { color: #F3CA1C; }
.sec.fox blockquote { margin: 2rem 0 0; padding-left: 1.4rem; border-left: 3px solid #E92214; font-style: italic; font-size: 1.18rem; }
.sec.fox blockquote p { color: #E3E6EC; margin: 0; font-size: inherit; }
.fox-art { display: flex; align-items: center; justify-content: center; }
.fox-art img { width: 100%; max-width: 360px; height: auto; }
@media (max-width: 920px) { .sec.fox > .wrap { grid-template-columns: 1fr; } .fox-art { order: -1; } }
.sec.members { background: var(--surface); }
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 920px) { .pillars { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .pillars { grid-template-columns: 1fr; } }
.pillar { background: var(--bg); padding: 2.4rem 2rem; transition: background .25s ease; }
.pillar:hover { background: var(--surface); }
.pillar .idx { margin: 0; font: 800 .82rem var(--display); color: var(--chip-event); letter-spacing: .05em; }
.pillar h3 { font-size: 1.4rem; font-weight: 800; letter-spacing: -.02em; margin: 1.4rem 0 0; }
.pillar p:not(.idx) { color: var(--muted); font-size: 1rem; margin: .8rem 0 0; }
.pillar::after { content: ""; display: block; width: 34px; height: 3px; background: var(--red); margin-top: 1.6rem; transition: width .3s ease; }
.pillar:hover::after { width: 64px; }
.map-box { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 1.4rem 1.5rem; margin-top: 1rem; max-width: 780px; }
.map-box p { margin: 0 0 .6rem; font-family: var(--display); } .map-box p:first-child { font-weight: 700; }
.map-actions { display: flex; flex-wrap: wrap; gap: .8rem 1.2rem; align-items: center; margin-top: 1rem !important; }
.map-frame { display: block; width: 100%; height: 450px; border: 1px solid var(--line); border-radius: 8px; }
.map-box:has(.map-frame) { padding: 0; border: 0; background: none; max-width: none; }
.figure { margin-block: 1rem 2rem; } .figure img { width: 100%; border-radius: var(--radius); display: block; }
figcaption { color: var(--muted); font: 500 .88rem var(--display); margin-top: .6rem; }
.block { margin-block: clamp(1.5rem, 4vw, 3rem); }
.narrow { max-width: calc(46rem + 2 * var(--pad)); }
.band { background: var(--band); padding-block: clamp(2rem, 6vw, 4rem); border-block: 1px solid var(--line); }
.empty { color: var(--muted); font-style: italic; }
.plain { list-style: none; padding: 0; } .inline { display: flex; flex-wrap: wrap; gap: .4rem 1.4rem; align-items: center; }
.plain.list li { padding: .7rem 0; border-bottom: 1px solid var(--line); }

/* ---- news and event cards, chips, filters: values from the original template ---- */
:root { --chip-release-bg: #FCE4E1; --chip-release: #C71606; --chip-event-bg: #EAF5FC; --chip-event: #0270A1; --chip-open-bg: #E6F4EA; --chip-open: #1E6B3A; --chip-invite-bg: #F1EDF7; --chip-invite: #5B3F8A; --chip-plain-bg: #E9EBEF; --chip-plain: #08111F; --media-bg: #EAF5FC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --chip-release-bg: #3A1512; --chip-release: #FFB4AB; --chip-event-bg: #16304A; --chip-event: #BFE4FA; --chip-open-bg: #12301F; --chip-open: #B5EBC7; --chip-invite-bg: #2A2140; --chip-invite: #D5C4F2; --chip-plain-bg: #26324A; --chip-plain: #EEF1F6; --media-bg: #16243A; } }
:root[data-theme="dark"] { --chip-release-bg: #3A1512; --chip-release: #FFB4AB; --chip-event-bg: #16304A; --chip-event: #BFE4FA; --chip-open-bg: #12301F; --chip-open: #B5EBC7; --chip-invite-bg: #2A2140; --chip-invite: #D5C4F2; --chip-plain-bg: #26324A; --chip-plain: #EEF1F6; --media-bg: #16243A; }
.cards { list-style: none; padding: 0; margin: 2.6rem 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.cards.events { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
@media (max-width: 920px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .cards { grid-template-columns: 1fr; } }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -24px rgba(8, 17, 31, .4); }
.card:focus-within { outline: 3px solid var(--focus); outline-offset: 3px; }
.card .strip { height: 6px; flex: none; background: var(--red); }
.card.event .strip { background: var(--azure); }
.card-inner { display: flex; flex-direction: column; flex: 1; }
.card-media { aspect-ratio: 16 / 9; overflow: hidden; background: var(--media-bg); }
.card-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-body { display: flex; flex-direction: column; flex: 1; padding: 1.5rem 1.5rem 1.7rem; }
.card-title { font-size: 1.16rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.22; margin: .9rem 0 0; }
.card-title a { color: var(--text); text-decoration: none; }
.card-title a::after { content: ""; position: absolute; inset: 0; }                    /* the whole card is the link target */
.card-title a:hover { color: var(--accent); } .card-title a:focus-visible { outline: none; }
.card-body > p { color: var(--muted); font-size: .94rem; margin: .6rem 0 0; flex: 1; }
.card-foot { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-top: 1.3rem; padding-top: .9rem; border-top: 1px solid var(--line); font: 600 .78rem var(--display); color: var(--muted); }
.card-foot .arrow { color: var(--accent); font-weight: 800; white-space: nowrap; }
.card.lead { grid-column: 1 / -1; }
.card.lead.has-image .card-inner { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
.card.lead .card-media { aspect-ratio: 4 / 3; }
.card.lead.event .card-media { aspect-ratio: auto; min-height: 280px; height: 100%; }
.card.lead .card-body { padding: clamp(1.6rem, 3vw, 2.6rem); justify-content: center; }
.card.lead .card-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.02em; line-height: 1.08; text-wrap: balance; }
.card.lead.event .card-title { font-size: clamp(1.5rem, 2.8vw, 2.1rem); line-height: 1.1; }
.card.lead .card-body > p { font-size: 1.05rem; flex: 0; }
@media (max-width: 680px) { .card.lead.has-image .card-inner { grid-template-columns: 1fr; } .card.lead .card-media, .card.lead.event .card-media { aspect-ratio: 16 / 9; min-height: 0; } }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { display: inline-block; align-self: flex-start; margin: 0; padding: 4px 9px; border-radius: 4px; background: var(--chip-plain-bg); color: var(--chip-plain); font: 700 .62rem var(--display); letter-spacing: .13em; text-transform: uppercase; }
.chip.release { background: var(--chip-release-bg); color: var(--chip-release); }
.chip.date { background: var(--chip-event-bg); color: var(--chip-event); }
.chip.open { background: var(--chip-open-bg); color: var(--chip-open); }
.chip.invite, .chip.members { background: var(--chip-invite-bg); color: var(--chip-invite); }
.filter ul { list-style: none; padding: 0; margin: 0 0 2.2rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.filter a { display: inline-block; padding: 8px 16px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); font: 700 .82rem var(--display); letter-spacing: .02em; color: var(--muted); text-decoration: none; transition: all .2s ease; }
.filter a:hover { border-color: var(--text); color: var(--text); }
.filter a[aria-current] { background: var(--text); border-color: var(--text); color: var(--bg); }
.sec-block { padding-block: clamp(56px, 8vw, 100px) 0; }
.sec-block .eyebrow { margin: 0; }
.sec-block h2 { font-size: clamp(2rem, 4vw, 3.2rem); font-weight: 900; line-height: 1.04; letter-spacing: -.02em; margin: 1rem 0 0; }

/* ---- people: the original's tile grid with hairlines ---- */
.people { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); }
@media (max-width: 680px) { .people { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .people { grid-template-columns: 1fr; } }
.person { position: relative; display: flex; gap: 1rem; align-items: flex-start; padding: 1.7rem 1.5rem; background: var(--surface); transition: background .2s ease; margin: 0; }
.person:hover { background: var(--bg); }
.person:focus-within { outline: 3px solid var(--focus); outline-offset: -3px; }
.prose .person { margin-bottom: 0; }
.person-name { font-size: 1.04rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.2; margin: 0; }
.person-name::before { content: none !important; }
.person-name a { color: var(--text); text-decoration: none; } .person-name a::after { content: ""; position: absolute; inset: 0; } .person-name a:focus-visible { outline: none; }
.person:hover .person-name a { color: var(--accent); }
.person p.person-role { margin: .3rem 0 0; color: var(--muted); font: 400 .9rem/1.35 var(--body); }
.person p.person-tag { margin: .5rem 0 0; font: 700 .62rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--chip-event); }
.avatar { flex: none; width: 46px; height: 46px; border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; color: #fff; font: 800 1rem var(--display); background: #08111F; }
.avatar.c-red { background: #C71606; } .avatar.c-azure { background: #0A6FA5; } .avatar.c-ink { background: #08111F; border: 1px solid var(--line-strong); }
.avatar.big { width: clamp(96px, 22vw, 160px); height: clamp(96px, 22vw, 160px); font-size: 2.6rem; }
.profile-top { display: flex; flex-wrap: wrap; gap: 1.5rem; align-items: center; }

/* ---- documents ---- */
.docs { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.doc { display: flex; gap: 1rem; align-items: flex-start; padding: 1rem 1.1rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.doc.is-confidential { border-left: 4px solid var(--accent); }
.doc-type { flex: none; min-width: 3.2rem; padding: .5rem .3rem; text-align: center; border-radius: 8px; background: var(--text); color: var(--bg); font: 800 .72rem var(--display); letter-spacing: .06em; }
.doc-main { min-width: 0; } .doc-main p { margin: 0; }
.doc-title { font: 700 1.05rem var(--display); display: inline-block; padding-block: .2rem; }
.level { font-weight: 700; } .level-confidential { color: var(--accent); }

/* ---- press block on the home page: always dark, as on the old site ---- */
.media { position: relative; overflow: hidden; background: #08111F; color: #EDEFF3; padding-block: clamp(3rem, 8vw, 6rem); --focus: #F3CA1C; }
main:has(> .media:last-child) + .site-footer { margin-top: 0; border-top: 1px solid #20293A; }   /* dark block runs straight into the footer */
.media-wm { position: absolute; right: -48px; bottom: -44px; width: min(46vw, 380px); opacity: .06; pointer-events: none; }
.media-grid { position: relative; display: grid; gap: clamp(2rem, 5vw, 4rem); align-items: start; }
@media (min-width: 860px) { .media-grid { grid-template-columns: 1fr 1fr; } }
.media .eyebrow { color: #F3CA1C; }
.media h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); font-weight: 900; margin: 0; }
.media-intro { color: #B8BFCB; font-size: 1.08rem; margin: 1.2rem 0 0; }
.media-contact { background: #0F1A2C; border: 1px solid #20293A; border-radius: 8px; padding: 1.6rem 1.7rem; margin-top: 1.8rem; }
.media-contact p { margin: 0; }
.media-contact .lab { font: 700 .7rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: #9AA3B2; }
.media-contact .who { font: 700 1.05rem var(--display); color: #fff; margin-top: .5rem; }
.media-contact .note { color: #B8BFCB; font-size: .95rem; margin-top: .4rem; }
.media-contact a { color: #F3CA1C; font-weight: 600; }
.kit { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.kit-item { position: relative; display: flex; align-items: center; gap: 1rem; background: #0F1A2C; border: 1px solid #20293A; border-radius: 8px; padding: 1.1rem 1.3rem; transition: border-color .2s ease, background .2s ease; }
.kit-item:hover { border-color: #039DE4; background: #12203A; }
.kit-item:focus-within { border-color: #039DE4; outline: 3px solid #F3CA1C; outline-offset: 2px; }
.kit-ic { flex: none; width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: #1A2740; color: #039DE4; }
.kit-ic svg { width: 20px; height: 20px; }
.kit-body { min-width: 0; }
.ki-name { display: block; font: 700 .98rem var(--display); color: #fff; text-decoration: none; }
.ki-name::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }      /* the whole row opens the document */
.ki-name:focus-visible { outline: none; }
.ki-meta { display: block; font: 400 .85rem var(--display); color: #9AA3B2; margin-top: .15rem; }
.ki-dl { margin-left: auto; flex: none; font: 700 .8rem var(--display); color: #35B3F0; }
.kit-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: .6rem; color: #35B3F0; font: 700 .9rem var(--display); }
.kit-empty { color: #9AA3B2; border: 1px dashed #20293A; border-radius: 8px; padding: 1.4rem 1.3rem; text-align: center; }
@media (max-width: 520px) { .ki-dl { display: none; } }

/* ---- forms ---- */
.form { display: grid; gap: 1.2rem; }
.field { display: grid; gap: .35rem; margin: 0; }
label, legend { font: 700 .95rem var(--display); }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem 1.1rem; margin: 0; min-width: 0; display: grid; gap: .5rem; }
legend { padding-inline: .4rem; }
.req { font-weight: 500; color: var(--muted); } .hint { margin: 0; color: var(--muted); font: 400 .9rem/1.45 var(--display); }
input:not([type="checkbox"], [type="radio"], [type="file"]), textarea, select { width: 100%; min-height: 48px; padding: .6rem .8rem; background: var(--surface); color: var(--text); border: 1px solid var(--line-strong); border-radius: 8px; font: 400 1rem var(--display); transition: border-color .15s ease, box-shadow .15s ease; }
input:not([type="checkbox"], [type="radio"], [type="file"]):hover, textarea:hover, select:hover { border-color: var(--muted); }
input[type="file"] { font: 400 1rem var(--display); max-width: 100%; padding: .6rem 0; }
textarea { line-height: 1.5; resize: vertical; }
input[aria-invalid="true"], textarea[aria-invalid="true"] { border-color: var(--err-text); box-shadow: 0 0 0 3px var(--err-bg); }
.check { display: flex; gap: .7rem; align-items: flex-start; min-height: 44px; padding-block: .5rem; font: 500 1rem/1.4 var(--display); cursor: pointer; }
.check input { flex: none; width: 1.35rem; height: 1.35rem; margin: .05rem 0 0; accent-color: var(--accent); }
.field-error { margin: 0; color: var(--err-text); font: 700 .9rem var(--display); } .field-error::before { content: "⚠ "; }
.hp { position: absolute; left: -9999px; }
.alert { padding: 1rem 1.2rem; border-radius: var(--radius); border: 1.5px solid var(--line-strong); background: var(--surface); font-family: var(--display); margin-bottom: 1.2rem; }
.alert p:last-child, .alert ul:last-child { margin-bottom: 0; }
.alert.error { background: var(--err-bg); color: var(--err-text); border-color: var(--err-text); } .alert.error a { color: inherit; }
.alert.success { background: var(--ok-bg); color: var(--ok-text); border-color: var(--ok-text); } .alert.success a { color: inherit; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem; margin-bottom: 1.5rem; }
.search-row { display: flex; gap: .6rem; } .search { margin-bottom: 1rem; display: grid; gap: .35rem; max-width: 34rem; }
.notes { list-style: none; padding: 0; margin: 0; } .notes li { padding: .6rem 0 .6rem .9rem; border-left: 3px solid transparent; border-bottom: 1px solid var(--line); }
.notes li.unread { border-left-color: var(--accent); font-weight: 600; }
.actions { margin-bottom: 1.5rem; gap: .6rem; }
.qr { width: 220px; max-width: 100%; background: #fff; padding: 6px; border-radius: 8px; } .qr svg { display: block; }
.key { font: 600 1rem ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--band); padding: .2rem .5rem; border-radius: 6px; word-break: break-all; }

/* ---- footer: follows the original (paper background, four columns, legal row) ---- */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-block: clamp(3rem, 5vw, 4.5rem) 2rem; margin-top: clamp(3rem, 8vw, 6rem); }
main:has(> .media:last-child) + .site-footer { margin-top: 0; }
.foot-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 2.5rem; }
@media (max-width: 920px) { .foot-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 680px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand .brand-row { display: flex; align-items: center; gap: .7rem; margin: 0 0 1rem; }
.foot-brand .logo { height: 44px; width: auto; }
.foot-brandname { font: 800 1.02rem var(--display); color: var(--text); }
.foot-brand p { color: var(--muted); font-size: .95rem; margin: 0; max-width: 30ch; }
.site-footer h2 { font: 700 .74rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 0 0 1.1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.foot-grid a { display: block; font-size: .96rem; padding: 5px 0; color: var(--text); text-decoration: none; }
.foot-grid a:hover, .foot-grid a:focus-visible { color: var(--accent); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.6rem; border-top: 1px solid var(--line); font: 500 .82rem var(--display); color: var(--muted); }
.foot-legal { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.foot-legal a { font: 600 .82rem var(--display); color: var(--muted); text-decoration: none; padding: 4px 0; display: inline-block; }
.foot-legal a:hover, .foot-legal a:focus-visible { color: var(--accent); text-decoration: underline; }
.made { display: inline-flex; align-items: center; gap: .6rem; }
.made .flag { display: flex; width: 30px; height: 20px; border-radius: 3px; overflow: hidden; border: 1px solid var(--line-strong); }
.made .flag i { flex: 1; } .made .flag i:nth-child(1) { background: #E92214; } .made .flag i:nth-child(2) { background: #fff; } .made .flag i:nth-child(3) { background: #039DE4; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .btn, .chip, .card, .person, .doc { border: 1px solid CanvasText; } }
@media print { .site-header, .site-footer, .skip, .cta, .filter { display: none; } body { background: #fff; color: #000; } }
.filter-row { margin-top: 1.6rem; } .filter-row .filter ul { margin-bottom: 0; }
.panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .4rem 1.5rem; margin-bottom: .6rem; } .panel-head h2 { margin: 0; } .panel-head form { margin: 0; }

/* ---- forms on public pages: the old site's form card (white panel, two fields per row, red pill button) ---- */
.sec.register { border-top: 1px solid var(--line); }
.sec.register h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 1.1rem 0 1.6rem; }
.rs-form { max-width: 720px; display: block; }
.rs-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: clamp(1.4rem, 4vw, 2.4rem); }
.rs-row { display: grid; grid-template-columns: 1fr; gap: 1.2rem; margin-bottom: 1.2rem; }
.rs-row.two { grid-template-columns: 1fr 1fr; }
@media (max-width: 680px) { .rs-row.two { grid-template-columns: 1fr; } }
.rs-card > .field, .rs-card > fieldset { margin-bottom: 1.2rem; }
.rs-form .field { gap: 0; min-width: 0; }
.rs-form label, .rs-form legend { font: 700 .86rem var(--display); color: var(--text); margin-bottom: .45rem; }
.rs-form .req-star { color: var(--accent); font-weight: 700; margin-left: .25em; }
.rs-form input:not([type="checkbox"], [type="radio"]), .rs-form textarea { min-height: 0; padding: .72rem .9rem; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); font: 400 1rem var(--body); transition: border-color .2s ease, box-shadow .2s ease; }
.rs-form input:not([type="checkbox"], [type="radio"]):focus, .rs-form textarea:focus { outline: 2px solid transparent; border-color: var(--azure); box-shadow: 0 0 0 3px color-mix(in srgb, var(--azure) 30%, transparent); }
.rs-form input[readonly] { background: var(--bg); color: var(--muted); }
.rs-form .check { min-height: 0; gap: .65rem; padding: 0; margin: 0; font: 400 .92rem/1.5 var(--body); color: var(--muted); }
.rs-form .check input { width: 18px; height: 18px; margin-top: .15rem; accent-color: var(--azure); }
.rs-form fieldset { border: 0; padding: 0; gap: .5rem; }
.rs-form .hint { margin-top: .6rem; font-size: .82rem; }
.rs-form .field-error { margin-top: .35rem; font-size: .8rem; }
.rs-form input[aria-invalid="true"], .rs-form textarea[aria-invalid="true"] { border-color: var(--err-text); border-width: 1px; box-shadow: 0 0 0 3px var(--err-bg); }
.rs-submit { margin-top: .6rem; min-height: 0; padding: .85rem 2.2rem; font-size: .96rem; border: 0; }

/* ---- contact detail page: the original profile layout ---- */
.profile-hero .back { margin-bottom: 0; }
.prof-top { display: flex; align-items: center; flex-wrap: wrap; gap: clamp(1.2rem, 3vw, 2.2rem); margin-top: 1.4rem; }
.prof-avatar { flex: none; width: clamp(88px, 12vw, 128px); height: clamp(88px, 12vw, 128px); border-radius: 14px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: #08111F; color: #fff; font: 800 clamp(2rem, 4vw, 3rem) var(--display); }
.prof-avatar.c-red { background: #C71606; } .prof-avatar.c-azure { background: #0A6FA5; }
.prof-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.prof-tag { margin: 0; font: 700 .62rem var(--display); letter-spacing: .12em; text-transform: uppercase; color: var(--chip-event); }
.prof-top h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 900; letter-spacing: -.03em; margin: .5rem 0 0; max-width: none; }
.prof-role { margin: .5rem 0 0; font: 600 1.02rem var(--display); color: var(--muted); }
.prof-link { margin: .6rem 0 0; }
.linkedin-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; color: var(--linkedin); text-decoration: none; font: 500 1rem var(--body); transition: opacity .3s; }
.linkedin-link:hover { opacity: .8; text-decoration: underline; }
:root { --linkedin: #0A66C2; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --linkedin: #70B5F9; } }
:root[data-theme="dark"] { --linkedin: #70B5F9; }
.prof-body { padding-block: clamp(36px, 5vw, 60px); }
.article { max-width: 780px; margin: 0 auto; }
.article .prose { margin: 0; } .article .prose > :first-child { margin-top: 0; }
.prof-facts { display: flex; flex-wrap: wrap; gap: 2.4rem; margin: 2.2rem 0 0; padding-top: 1.6rem; border-top: 1px solid var(--line); }
@media (max-width: 680px) { .prof-facts { gap: 1.4rem; } }
.prof-facts dt { font: 700 .66rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--chip-event); }
.prof-facts dd { margin: .45rem 0 0; font: 700 1.02rem var(--display); color: var(--text); }
.prof-facts dd a { color: var(--text); text-decoration: none; border-bottom: 2px solid var(--azure); }
.prof-facts dd a:hover { color: var(--chip-event); }
.art-contact { margin: 1.8rem 0 0; padding-top: 1.5rem; border-top: 1px solid var(--line); color: var(--muted); }
.art-contact a { color: var(--accent); font-weight: 600; }

/* video link under a biography, as on the old profile pages */
.prof-video { margin: 2rem 0 0; }
.prof-video-lab { margin: 0 0 .8rem; font: 700 .7rem var(--display); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.prof-video-link { display: inline-flex; align-items: center; gap: .6rem; padding: .8rem 1.1rem; border: 1px solid var(--line-strong); border-radius: 8px; font: 700 .9rem var(--display); color: var(--text); text-decoration: none; transition: border-color .2s ease, color .2s ease; }
.prof-video-link:hover { border-color: var(--azure); color: var(--chip-event); }
.prof-video-link svg { width: 18px; height: 18px; flex: none; }

/* small window (dialog), used by "Become a partner" */
.dialog { width: min(92vw, 560px); max-height: 90vh; overflow: auto; padding: clamp(1.2rem, 4vw, 2rem); border: 1px solid var(--line); border-radius: 14px; background: var(--bg); color: var(--text); box-shadow: 0 30px 80px -20px rgba(8, 17, 31, .5); }
.dialog::backdrop { background: rgba(8, 17, 31, .55); }
.dialog h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); font-weight: 900; margin: 0 2.5rem .6rem 0; }
.dialog h2::before { content: none; }
.dialog-intro { color: var(--muted); margin: 0 0 1.2rem; }
.dialog-close { position: absolute; top: .7rem; right: .7rem; margin: 0; }
.dialog-close button { width: 40px; height: 40px; border: 1px solid var(--line-strong); border-radius: 50%; background: var(--surface); color: var(--text); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.dialog-close button:hover { border-color: var(--text); }
.dialog .rs-form { max-width: none; } .dialog .rs-card { padding: 1.2rem; }
.dialog-alt { margin: 1rem 0 0; }
.prose .dialog p, .prose .dialog li { font-size: 1rem; }

/* partner logos: four in a row, two on small screens, white tiles (as on the old site) */
.prose > .partner-grid { max-width: none; }
.partner-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem; margin-top: 1.6rem; }
@media (max-width: 820px) { .partner-grid { grid-template-columns: 1fr 1fr; } }
.partner-grid a { display: flex; align-items: center; justify-content: center; aspect-ratio: 3 / 2; padding: 1rem; background: #fff; border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s ease, transform .2s ease; }
.partner-grid a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.partner-grid a > img { width: 60%; max-height: 70%; object-fit: contain; background: none; padding: 0; border: 0; border-radius: 0; }

/* strip at the top of a preview opened from the administration */
.preview-strip { margin: 0; padding: .45rem var(--pad); background: #F3CA1C; color: #08111F; font: 600 .82rem var(--display); text-align: center; }

/* ---- help: user guide, videos ---- */
.help-guide { max-width: 62rem; }
.help-intro { font-size: 1.05rem; }
.help-toc ol { columns: 2 16rem; padding-left: 1.3rem; margin: 1rem 0 1.5rem; }
.help-toc li { margin-bottom: .3rem; break-inside: avoid; }
.help-topic { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.help-topic > h2 { display: flex; gap: .6rem; align-items: baseline; }
.help-num { display: inline-grid; place-items: center; min-width: 2rem; height: 2rem; border-radius: 999px; background: var(--accent); color: #fff; font-size: 1rem; flex: none; }
.help-watch { white-space: nowrap; font-weight: 700; }
.help-steps { list-style: none; counter-reset: step; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 2rem; }
.help-step { counter-increment: step; }
.help-step > h3 { margin: 0 0 .4rem; font-size: 1.1rem; }
.help-step > h3::before { content: counter(step) ". "; color: var(--muted); }
.help-step > p { margin: 0 0 .5rem; max-width: 46rem; }
.help-tips { margin: 0 0 .7rem; padding-left: 1.2rem; max-width: 46rem; color: var(--muted); font-size: .95rem; }
.help-tips li { margin-bottom: .2rem; }
.help-shot { display: block; }
.help-shot img, .help-video { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 10px; background: #000; }
.help-shot img { background: var(--surface); }
.help-video { margin: 1rem 0; }
.help-transcript { max-width: 46rem; display: grid; gap: .6rem; padding-left: 1.3rem; }
@media print {
  .no-print, .help-watch, .help-video, .skip { display: none !important; }
  .help-topic { break-before: page; border-top: 0; margin-top: 0; }
  .help-step { break-inside: avoid; }
  .help-shot img { max-height: 11cm; width: auto; max-width: 100%; }
}
