/* Interaction Scientifique — site stylesheet */
:root {
  --ink: #14224a;
  --ink-soft: #33416a;
  --blue: #2b4fa3;
  --blue-deep: #0e1a3c;
  --paper: #f5f7fb;
  --white: #ffffff;
  --gold: #c49a2c;
  --slate: #56607a;
  --line: #dce1eb;
  --gen1: #2b4fa3;
  --gen2: #c49a2c;
  --gen3: #8c97b8;

  --serif: "STIX Two Text", "STIX Two", "Times New Roman", Georgia, serif;
  --sans: "Public Sans", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;

  --wrap: 1200px;
  --radius: 6px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 2px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(1.1rem, 4vw, 2rem); }
.skip { position: absolute; left: -999px; top: 0; background: var(--ink); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip:focus { left: 1rem; top: 1rem; }

h1, h2, h3, h4 { font-family: var(--serif); font-weight: 600; line-height: 1.18; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); letter-spacing: -0.01em; }
h2 { font-size: clamp(1.7rem, 2.8vw, 2.3rem); }
h3 { font-size: 1.3rem; }
p { margin: 0 0 1em; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 38em; }
.muted { color: var(--slate); }
.rule { width: 56px; height: 3px; background: var(--gold); border: 0; margin: 1.4rem 0 1.5rem; }

/* ---------- Header ---------- */
.utility { background: var(--blue-deep); color: #c9d2ea; font-size: .875rem; }
.utility .wrap { display: flex; justify-content: space-between; align-items: center; gap: 1rem; min-height: 38px; }
.utility a { color: #fff; text-decoration: none; }
.utility a:hover { text-decoration: underline; }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; min-height: 84px; }
.brand { display: flex; align-items: center; gap: .9rem; text-decoration: none; color: var(--ink); }
.brand svg { width: 54px; height: 54px; flex: none; }
.brand-name { font-family: var(--serif); font-size: 1.35rem; font-weight: 600; line-height: 1.1; display: block; }
.brand-sub { font-size: .82rem; color: var(--slate); display: block; margin-top: .2rem; }

.nav { display: flex; align-items: center; gap: .25rem; }
.nav a { text-decoration: none; color: var(--ink); font-size: .95rem; font-weight: 500; padding: .55rem .75rem; border-radius: 4px; position: relative; }
.nav a:hover { background: var(--paper); color: var(--ink); }
.nav a[aria-current="page"]::after { content: ""; position: absolute; left: .75rem; right: .75rem; bottom: .15rem; height: 2px; background: var(--gold); }
.nav .btn { margin-left: .75rem; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); border-radius: 4px; padding: .5rem .7rem; font: inherit; color: var(--ink); cursor: pointer; }

@media (max-width: 1300px) {
  .nav-toggle { display: inline-flex; align-items: center; gap: .4rem; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; flex-direction: column; align-items: stretch; padding: .5rem clamp(1.1rem, 4vw, 2rem) 1.25rem; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px -16px rgba(14, 26, 60, .35); }
  .nav.open { display: flex; }
  .nav a { padding: .8rem .25rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav a[aria-current="page"]::after { left: 0; right: auto; width: 3px; top: .6rem; bottom: .6rem; height: auto; }
  .nav a[aria-current="page"] { padding-left: .9rem; }
  .nav .btn { margin: 1rem 0 0; text-align: center; justify-content: center; border-bottom: 0; }
  .brand-sub { display: none; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; gap: .5rem; font-family: var(--sans); font-weight: 600; font-size: .95rem; text-decoration: none; padding: .75rem 1.25rem; border-radius: 4px; border: 1.5px solid transparent; transition: background-color .15s, color .15s, border-color .15s; cursor: pointer; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--blue); color: #fff; }
.btn-outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-outline:hover { background: var(--ink); color: #fff; }
.nav .btn-primary, .nav .btn-primary:hover { color: #fff; }
.btn-row { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(180deg, var(--paper), #fff 85%); border-bottom: 1px solid var(--line); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; padding-top: clamp(2.5rem, 6vw, 4.5rem); padding-bottom: clamp(2.5rem, 6vw, 4.5rem); }
.hero h1 { max-width: 13em; }
.hero-figure { margin: 0; }
.graph { position: relative; aspect-ratio: 1 / 1; width: 100%; max-width: 520px; margin-left: auto; cursor: grab; touch-action: none; border-radius: 50%; }
.graph:active { cursor: grabbing; }
.graph svg { width: 100%; height: 100%; overflow: visible; }
.graph .v { cursor: pointer; }
.graph-caption { font-size: .88rem; color: var(--slate); max-width: 520px; margin-left: auto; margin-top: .75rem; }
.graph-caption strong { color: var(--ink); font-weight: 600; }
.legend { display: flex; flex-wrap: wrap; gap: .35rem 1rem; margin-top: .35rem; }
.legend span { display: inline-flex; align-items: center; gap: .4rem; }
.legend i { width: 18px; height: 3px; border-radius: 2px; display: inline-block; }
.readout { font-family: var(--serif); font-size: 1rem; color: var(--ink); min-height: 1.5em; }
@media (max-width: 860px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .graph, .graph-caption { margin-left: auto; margin-right: auto; max-width: 400px; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(3rem, 7vw, 5rem) 0; }
.section-alt { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 1rem; flex-wrap: wrap; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head p { margin: .5rem 0 0; color: var(--slate); max-width: 40em; }
.more { font-weight: 600; text-decoration: none; white-space: nowrap; }
.more:hover { text-decoration: underline; }

/* Journal spotlight */
.journal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); align-items: start; }
.cover { background: var(--ink); border-radius: 3px; box-shadow: 0 1px 0 var(--line), 0 18px 36px -22px rgba(14, 26, 60, .55); overflow: hidden; aspect-ratio: 1275 / 1650; display: flex; align-items: center; justify-content: center; color: #fff; text-align: center; font-family: var(--serif); }
.cover img { width: 100%; height: 100%; object-fit: cover; }
.journal h3 { font-size: clamp(1.6rem, 2.4vw, 2rem); margin-bottom: .4rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0; margin: 1.5rem 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.facts div { padding: .9rem 1rem .9rem 0; }
.facts dt { font-size: .82rem; color: var(--slate); }
.facts dd { margin: .15rem 0 0; font-weight: 600; }
.scope { display: flex; flex-wrap: wrap; gap: .5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; }
.scope li { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: .3rem .8rem; font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 700px) {
  .journal { grid-template-columns: 1fr; }
  .cover { max-width: 200px; }
}

/* Issues & calls */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.list li { border-bottom: 1px solid var(--line); }
.list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .25rem 1rem; padding: 1rem 0; text-decoration: none; color: var(--ink); }
.list a:hover .t { color: var(--blue); text-decoration: underline; }
.list .t { font-family: var(--serif); font-size: 1.12rem; font-weight: 600; }
.list .d { grid-column: 1; font-size: .92rem; color: var(--slate); }
.list .tag { grid-row: 1 / span 2; grid-column: 2; align-self: center; font-size: .8rem; font-weight: 600; color: var(--blue); border: 1px solid #c8d3ee; background: #eef2fb; border-radius: 999px; padding: .2rem .65rem; }
.list .tag.open { color: #6f5412; border-color: #ead9a8; background: #fbf5e3; }

/* News & events */
.news-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.4fr); gap: clamp(1.5rem, 4vw, 3rem); }
@media (max-width: 860px) { .news-grid { grid-template-columns: 1fr; } }
.report { background: var(--blue-deep); color: #dfe5f5; border-radius: var(--radius); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; }
.report h3 { color: #fff; font-size: 1.6rem; }
.report a { color: #fff; }
.report .btn-outline { border-color: #fff; color: #fff; align-self: flex-start; margin-top: auto; }
.report .btn-outline:hover { background: #fff; color: var(--ink); }
.report ul { list-style: none; padding: 0; margin: 0 0 1.5rem; }
.report li { padding: .5rem 0; border-bottom: 1px solid rgba(255, 255, 255, .14); font-size: .95rem; }
.workshops { list-style: none; padding: 0; margin: 0; counter-reset: ws; }
.workshops li { counter-increment: ws; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--line); }
.workshops li:first-child { border-top: 1px solid var(--line); }
.workshops li::before { content: counter(ws); font-family: var(--serif); font-size: 1.6rem; line-height: 1; color: var(--gold); font-weight: 600; padding-top: .1rem; }
.workshops h3 { font-size: 1.15rem; margin-bottom: .3rem; }
.workshops p { margin: 0 0 .4rem; color: var(--ink-soft); font-size: .98rem; }
.when { font-size: .88rem; color: var(--slate); }

/* Indexing */
.indexing { display: flex; flex-wrap: wrap; gap: .75rem 2.5rem; align-items: center; list-style: none; padding: 0; margin: 0; }
.indexing a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: 1.02rem; }
.indexing a:hover { color: var(--blue); text-decoration: underline; }

/* ---------- Inner pages ---------- */
.page-head { background: var(--paper); border-bottom: 1px solid var(--line); padding: clamp(2.5rem, 6vw, 4rem) 0 clamp(2rem, 4vw, 3rem); }
.page-head h1 { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .4rem; }
.crumbs { font-size: .88rem; color: var(--slate); margin-bottom: 1rem; }
.crumbs a { color: var(--slate); }
.prose { max-width: 44em; }
.prose h2 { margin-top: 2.2em; font-size: 1.7rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.2em; }
.prose li { margin-bottom: .4em; }
.with-aside { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.aside { position: sticky; top: 110px; border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1.25rem; font-size: .95rem; }
.aside h2 { font-size: 1.15rem; margin-bottom: .75rem; }
.aside dl { margin: 0; }
.aside dt { color: var(--slate); font-size: .84rem; margin-top: .8rem; }
.aside dd { margin: .1rem 0 0; font-weight: 500; }
@media (max-width: 900px) { .with-aside { grid-template-columns: 1fr; } .aside { position: static; } }

.members { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.5rem, 3vw, 2.5rem); }
@media (max-width: 900px) { .members { grid-template-columns: 1fr; max-width: 560px; } }
.member img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--radius); background: #e9edf5; margin-bottom: 1.1rem; }
@media (max-width: 900px) { .member { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 1.25rem; align-items: start; } .member img { margin: 0; } }
.member .role { color: var(--blue); font-weight: 600; font-size: .92rem; margin-bottom: .2rem; }
.member h2 { font-size: 1.45rem; margin-bottom: .6rem; }
.member p { font-size: .98rem; color: var(--ink-soft); }

.policies { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.policy { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem 1.5rem 1.75rem; display: flex; flex-direction: column; }
.policy h3 { font-size: 1.25rem; }
.policy p { color: var(--ink-soft); font-size: .98rem; }
.policy a { margin-top: auto; font-weight: 600; text-decoration: none; }
.policy a:hover { text-decoration: underline; }

.contact-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: clamp(2rem, 5vw, 4rem); }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-list { margin: 0; }
.contact-list dt { font-size: .85rem; color: var(--slate); margin-top: 1.25rem; }
.contact-list dt:first-child { margin-top: 0; }
.contact-list dd { margin: .2rem 0 0; font-size: 1.1rem; }
.map { width: 100%; aspect-ratio: 4 / 3; border: 1px solid var(--line); border-radius: var(--radius); }
.photos { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.photos figure { margin: 0; }
.photos img { border-radius: var(--radius); aspect-ratio: 4 / 3; object-fit: cover; width: 100%; }
.photos figcaption { font-size: .86rem; color: var(--slate); margin-top: .4rem; }

.link-list { list-style: none; padding: 0; margin: 0; }
.link-list li { padding: .55rem 0; border-bottom: 1px solid var(--line); }

/* ---------- Footer ---------- */
.site-footer { background: var(--blue-deep); color: #c3cce4; font-size: .95rem; padding: 3.5rem 0 1.5rem; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.foot-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
@media (max-width: 860px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }
@media (max-width: 480px) { .foot-grid { grid-template-columns: 1fr; } }
.foot-brand { display: flex; gap: 1rem; align-items: flex-start; }
.foot-brand svg { width: 64px; height: 64px; flex: none; }
.foot-brand strong { font-family: var(--serif); font-size: 1.25rem; color: #fff; font-weight: 600; display: block; margin-bottom: .35rem; }
.site-footer h2 { font-family: var(--sans); font-size: .95rem; color: #fff; font-weight: 600; margin-bottom: .8rem; }
.site-footer ul { list-style: none; margin: 0; padding: 0; }
.site-footer li { margin-bottom: .45rem; }
.foot-bottom { border-top: 1px solid rgba(255, 255, 255, .14); margin-top: 2.5rem; padding-top: 1.25rem; display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem 1.5rem; font-size: .86rem; }
@media (max-width: 600px) { .utility .wrap > span { display: none; } .utility .wrap { justify-content: flex-end; } }
.cover { position: relative; }
.cover .cover-text { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1.25rem; font-size: 1.35rem; line-height: 1.2; color: #fff; }
.cover .cover-text small { font-family: var(--sans); font-size: .75rem; color: #c3cce4; margin-top: .75rem; }
.cover img { position: relative; z-index: 1; }
@media (max-width: 900px) { .policies { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .policies { grid-template-columns: 1fr; } }

/* ---------- Editorial board ---------- */
.board-h { font-size: 1.5rem; margin-bottom: 1.25rem; }
.av { position: relative; flex: none; width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: #e6ebf5; color: var(--ink); display: inline-flex; align-items: center; justify-content: center; font-family: var(--serif); font-weight: 600; font-size: 1.35rem; }
.av::before { content: attr(data-i); }
.av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ed { display: flex; gap: 1.1rem; align-items: flex-start; padding: 1.4rem 0; border-top: 1px solid var(--line); }
.ed h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.ed-role { color: var(--blue); font-weight: 600; font-size: .86rem; margin: 0 0 .2rem; }
.ed-exp { margin: 0 0 .3rem; font-size: .95rem; color: var(--ink-soft); }
.ed-aff { margin: 0 0 .45rem; font-size: .88rem; color: var(--slate); }
.ed-links { margin: 0; display: flex; flex-wrap: wrap; gap: .25rem 1rem; font-size: .86rem; }
.ed-links a { font-weight: 600; text-decoration: none; }
.ed-links a:hover { text-decoration: underline; }
.ed-links span { color: var(--slate); }
.ed-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: clamp(1.5rem, 3vw, 2.5rem); border-bottom: 1px solid var(--line); }
@media (max-width: 1000px) { .ed-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .ed-grid { grid-template-columns: 1fr; } }
.ed-lead { border: 0; border-left: 3px solid var(--gold); padding: .25rem 0 .25rem 1.5rem; max-width: 760px; }
.ed-lead .av { width: 120px; height: 120px; font-size: 2rem; }
.ed-lead h3 { font-size: 1.7rem; }
.ed-lead .ed-exp { font-size: 1.05rem; }
.board-search { display: flex; flex-direction: column; gap: .35rem; min-width: min(100%, 320px); }
.board-search label { font-size: .86rem; color: var(--slate); }
.board-search input { font: inherit; font-size: 1rem; padding: .65rem .85rem; border: 1.5px solid var(--line); border-radius: 4px; color: var(--ink); background: #fff; }
.board-search input:focus { border-color: var(--blue); outline: none; box-shadow: 0 0 0 3px rgba(43, 79, 163, .18); }
.board-count { font-size: .9rem; margin: -1rem 0 .5rem; min-height: 1.4em; }
.board-empty { padding: 1.5rem 0; color: var(--ink-soft); }
.ed[hidden] { display: none; }
.nav a { white-space: nowrap; }
@media (max-width: 480px) { .brand-name { font-size: 1.1rem; } .brand svg { width: 44px; height: 44px; } .brand { gap: .6rem; } }
@media (min-width: 1301px) { .nav a { padding: .55rem .6rem; font-size: .93rem; } .nav a[aria-current="page"]::after { left: .6rem; right: .6rem; } .nav .btn { margin-left: .5rem; padding: .65rem 1rem; } }
.foot-license { margin: .75rem 0 0; font-size: .86rem; }

/* Utility classes replacing former inline styles */
.quiet-link { color: inherit; text-decoration: none; }
.mt-0 { margin-top: 0; }
.mb-md { margin-bottom: 1rem; }
.mb-sm { margin-bottom: 1.25rem; }
.mb-xl { margin-bottom: 2.5rem; }
.mt-lg { margin-top: 1.5rem; }
.mt-xl { margin-top: 2.5rem; }
.mt-board { margin-top: 3.5rem; }
.note-sm { margin-top: 1rem; font-size: .95rem; }
.h-workshops { font-size: 1.35rem; }
.h-indexing { font-size: 1.3rem; }
.section-compact { padding: 2.5rem 0; }
.aside-links { margin-top: 1.25rem; }
.map-link { font-size: .88rem; margin-top: .4rem; }
.swatch-gen1 { background: var(--gen1); }
.swatch-gen2 { background: var(--gen2); }
.swatch-gen3 { background: var(--gen3); }

@media print {
  .utility,
  .site-header,
  .nav-toggle,
  .hero-figure,
  .site-footer .foot-grid > div:not(.foot-brand),
  .site-footer .foot-bottom,
  .site-footer .foot-license,
  .board-search,
  .map,
  .btn-row { display: none !important; }
  .site-footer { background: #fff; color: #000; padding: 1rem 0; }
  .site-footer a { color: #000; }
  body { background: #fff; color: #000; }
  a { text-decoration: underline; }
  .page-head, .section, .section-alt { break-inside: avoid; }
}
