/* =============================================================
   ELS — secondary template styles
   Page heroes, .els-prose typographic scope, archive lists,
   person grid, publication rows, event archive + single,
   congress landing, membership, search, pagination, 404.
   Tokens only (see main.css) — no hard-coded greys.
   ============================================================= */

/* ---------- utilities ---------- */

.screen-reader-text,
.els-search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* ---------- page hero ---------- */

.els-page-hero { padding: 96px 0 64px; position: relative; overflow: hidden; }
.els-page-hero > * { position: relative; z-index: 1; }

/* Quiet backdrop on light page heroes (guidelines §5.2: imagery sits
   behind content and never competes with it). Masked away from the
   headline on the left and dissolved into the page body at the bottom;
   the dark hero variant has its own photo layer, so it is excluded. */
.els-page-hero:not(.els-page-hero--dark)::before {
  content: '';
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  /* Sized by height, not cover: the whole composition reads as a motif
     against the right edge instead of one shape blown up into a smudge. */
  background: url('../img/page-hero-bg.webp') right center / auto 155% no-repeat;
  opacity: .22;
  filter: saturate(.8);
  -webkit-mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 40%, #000 82%),
    linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
          mask-image:
    linear-gradient(90deg, transparent 0%, rgba(0,0,0,.35) 40%, #000 82%),
    linear-gradient(180deg, #000 0%, #000 52%, transparent 100%);
  -webkit-mask-composite: source-in;
          mask-composite: intersect;
}
:root[data-theme="dark"] .els-page-hero:not(.els-page-hero--dark)::before {
  opacity: .12; filter: saturate(.7) brightness(.75);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .els-page-hero:not(.els-page-hero--dark)::before {
    opacity: .12; filter: saturate(.7) brightness(.75);
  }
}
@media (max-width: 900px) {
  .els-page-hero:not(.els-page-hero--dark)::before {
    background-image: url('../img/page-hero-bg-sm.webp');
    opacity: .14;
  }
}

.els-page-hero .els-eyebrow { margin-bottom: 22px; }
.els-page-hero h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(40px, 4.6vw, 64px);
  line-height: 1.02; letter-spacing: -.025em;
  max-width: 760px;
}
.els-page-hero h1 em { font-style: italic; font-weight: 500; color: var(--accent); }
.els-page-hero h1 sup { font-size: .55em; }
.els-page-lead {
  font-family: var(--serif); font-size: 19px; line-height: 1.6;
  color: var(--ink-2); max-width: 540px; margin-top: 22px;
}
.els-page-meta {
  display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 20px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
}
.els-page-meta a { color: var(--accent); text-decoration: none; }
.els-page-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* Dark hero variant (event single, congress landing) — sits behind the glass nav */
/* The header bar is opaque, so the dark hero starts below it rather than
   sliding underneath. */
.els-page-hero--dark {
  position: relative; overflow: hidden;
  padding: 110px 0 96px;
}
.els-page-hero--dark h1 em { color: var(--warm); }
.els-page-hero--dark .els-page-lead { color: rgba(230, 238, 243, .7); }
.els-page-hero--dark .els-page-meta { color: rgba(230, 238, 243, .55); }
.els-page-hero--dark .els-page-meta a { color: var(--warm); }

/* Barely-visible photo layer on dark heroes (guidelines §5.2) */
.els-hero-photo {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: var(--photo); background-size: cover; background-position: center;
  opacity: .16; filter: saturate(.75) contrast(1.05);
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, .35) 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 55%, rgba(0, 0, 0, .35) 100%);
}
.els-hero-overlay {
  position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, transparent 30%, rgba(11, 26, 37, .78));
}
.els-page-hero--dark .els-container { z-index: 2; }

/* ---------- generic template sections ---------- */

.els-tsec { padding: 100px 0; }
.els-tsec--flush { padding-top: 0; }
.els-tsec--tint {
  background: var(--surface);
  border-top: 1px solid var(--g300);
  border-bottom: 1px solid var(--g300);
}
.els-tsec-head { margin-bottom: 40px; }
.els-tsec-head .els-tsec-h,
.els-tsec-head .els-display { margin-top: 20px; }
.els-tsec-h {
  font-family: var(--serif); font-weight: 500;
  font-size: clamp(26px, 2.8vw, 38px);
  line-height: 1.12; letter-spacing: -.015em;
}
.els-tsec-h em { font-style: italic; color: var(--accent); }
.els-tsec--inbody { padding: 64px 0 0; }
.els-page-body { padding: 8px 0 110px; }

/* <button> elements sharing the anchor button component */
button.els-btn { border: 0; cursor: pointer; font-family: var(--sans); }

/* ---------- .els-prose — WP content scope ---------- */

.els-prose { max-width: 680px; font-size: 15px; line-height: 1.55; color: var(--ink); }
.els-prose > * + * { margin-top: 18px; }
.els-prose > p:first-child {
  font-family: var(--serif); font-size: 19px; line-height: 1.6; color: var(--ink-2);
}
.els-prose h2, .els-prose h3, .els-prose h4, .els-prose h5, .els-prose h6 {
  font-family: var(--serif); font-weight: 500; line-height: 1.15;
  letter-spacing: -.015em; color: var(--ink);
}
.els-prose h2 { font-size: clamp(26px, 3vw, 34px); margin-top: 44px; }
.els-prose h3 { font-size: 23px; margin-top: 36px; }
.els-prose h4 { font-size: 18px; margin-top: 30px; }
.els-prose h5, .els-prose h6 {
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-2); margin-top: 30px;
}
.els-prose h2 em, .els-prose h3 em { font-style: italic; color: var(--accent); }
.els-prose a {
  color: var(--accent); text-decoration: underline;
  text-decoration-thickness: 1px; text-underline-offset: 3px;
  text-decoration-color: color-mix(in srgb, var(--accent) 45%, transparent);
  transition: color .2s, text-decoration-color .2s;
}
.els-prose a:hover { color: var(--accent-2); text-decoration-color: currentColor; }
.els-prose strong { font-weight: 600; }
.els-prose blockquote {
  font-family: var(--serif); font-style: italic; font-size: 24px; line-height: 1.4;
  color: var(--ink); margin: 34px 0; padding: 4px 0 4px 26px;
  border-left: 2px solid var(--accent);
}
.els-prose blockquote p { font: inherit; color: inherit; }
.els-prose blockquote cite {
  display: block; margin-top: 14px; font-family: var(--mono); font-style: normal;
  font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.els-prose ul, .els-prose ol { padding-left: 22px; }
.els-prose li { margin-bottom: 8px; }
.els-prose li::marker { color: var(--accent); }
.els-prose hr { border: 0; height: 1px; background: var(--g300); margin: 40px 0; }
.els-prose img { max-width: 100%; height: auto; border-radius: 14px; }
.els-prose figure { margin: 30px 0; }
.els-prose figcaption {
  margin-top: 10px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.els-prose code, .els-prose kbd {
  font-family: var(--mono); font-size: 13px;
  background: var(--g100); border-radius: 6px; padding: 2px 6px;
}
.els-prose pre {
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  background: var(--g100); border: 1px solid var(--g300); border-radius: 12px;
  padding: 20px 24px; overflow-x: auto;
}
.els-prose pre code { background: none; padding: 0; }
.els-prose table { width: 100%; border-collapse: collapse; font-size: 14px; }
.els-prose th {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 500; text-align: left;
}
.els-prose th, .els-prose td { padding: 10px 14px; border-bottom: 1px solid var(--g300); }
.els-prose .wp-block-table { overflow-x: auto; }
.els-prose iframe { max-width: 100%; border: 0; border-radius: 14px; }

/* Forms inside content (Contact Form 7 etc.) */
.els-prose label { display: block; font-size: 13px; font-weight: 500; margin-bottom: 6px; }
.els-prose input[type="text"],
.els-prose input[type="email"],
.els-prose input[type="url"],
.els-prose input[type="tel"],
.els-prose input[type="number"],
.els-prose input[type="date"],
.els-prose select,
.els-prose textarea {
  width: 100%; max-width: 100%;
  font-family: var(--sans); font-size: 14.5px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--g300); border-radius: 12px;
  padding: 12px 16px;
  transition: border-color .2s;
}
.els-prose input:focus,
.els-prose select:focus,
.els-prose textarea:focus { border-color: var(--accent); }
.els-prose textarea { min-height: 140px; resize: vertical; }
.els-prose input[type="checkbox"],
.els-prose input[type="radio"] { width: auto; accent-color: var(--accent); }
.els-prose input[type="submit"],
.els-prose button[type="submit"] {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--sans); font-size: 13.5px; font-weight: 500;
  background: var(--accent); color: #fff; border: 0; border-radius: 999px;
  padding: 14px 26px; cursor: pointer;
  box-shadow: 0 10px 30px -10px rgba(14, 90, 108, .45);
  transition: all .25s cubic-bezier(.2, .7, .2, 1);
}
.els-prose input[type="submit"]:hover,
.els-prose button[type="submit"]:hover {
  background: var(--accent-2); transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(14, 90, 108, .5);
}
.els-prose .wpcf7-not-valid-tip {
  /* §1.4: no --warm-on-light small text — ink on --warm-tint keeps AA. */
  display: block; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: var(--ink);
  background: var(--warm-tint); border-radius: 8px; padding: 4px 10px; width: fit-content;
}
.els-prose .wpcf7-response-output {
  margin: 24px 0 0; padding: 14px 20px;
  border: 1px solid var(--g300); border-radius: 12px;
  font-size: 14px; color: var(--ink-2); background: var(--surface);
}
.els-prose .wpcf7-spinner { margin: 0 0 0 12px; }

/* Featured image on single posts */
.els-single-thumb { margin: 0 0 44px; max-width: 880px; }
.els-single-thumb img { width: 100%; height: auto; border-radius: 20px; display: block; }

/* Prev / next post navigation */
.els-post-nav {
  display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  max-width: 680px; margin-top: 64px; padding-top: 28px;
  border-top: 1px solid var(--g300);
}
.els-post-nav a {
  font-family: var(--serif); font-size: 17px; font-weight: 500;
  color: var(--ink); text-decoration: none; transition: color .2s;
}
.els-post-nav a:hover { color: var(--accent); }
.els-post-nav .els-post-nav-label {
  display: block; font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-2); margin-bottom: 8px;
}
.els-post-nav-next { text-align: right; margin-left: auto; }

/* ---------- archive / search result cards ---------- */

.els-arch-list { display: flex; flex-direction: column; gap: 14px; max-width: 820px; }
.els-arch-card {
  background: var(--surface); border: 1px solid var(--g300); border-radius: 20px;
  padding: 30px 34px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
.els-arch-card:hover {
  transform: translateY(-3px); box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--g300));
}
.els-arch-meta {
  display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 12px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
}
.els-arch-card h2 {
  font-family: var(--serif); font-size: 24px; font-weight: 500;
  line-height: 1.2; letter-spacing: -.01em;
}
.els-arch-card h2 a { color: var(--ink); text-decoration: none; transition: color .2s; }
.els-arch-card h2 a:hover { color: var(--accent); }
.els-arch-card p { margin-top: 10px; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }

/* Empty state */
.els-nores {
  max-width: 680px; background: var(--surface); border: 1px solid var(--g300);
  border-radius: 20px; padding: 40px;
}
.els-nores p { color: var(--ink-2); margin-bottom: 22px; }

/* ---------- search form ---------- */

.els-search-form { max-width: 560px; }
.els-page-hero .els-search-form { margin-top: 30px; }
.els-search-controls { display: flex; gap: 10px; flex-wrap: wrap; }
.els-search-controls input[type="search"] {
  flex: 1 1 220px; min-width: 0;
  padding: 13px 22px; border-radius: 999px;
  border: 1px solid var(--g300); background: var(--surface); color: var(--ink);
  font-family: var(--sans); font-size: 14px;
}
.els-search-controls input[type="search"]::placeholder { color: var(--ink-2); opacity: .75; }

/* ---------- pagination ---------- */

.els-pagination { margin-top: 56px; }
.els-pagination .nav-links,
.els-pagination-links {
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
}
.els-pagination .page-numbers {
  display: inline-grid; place-items: center;
  min-width: 40px; height: 40px; padding: 0 14px;
  border-radius: 999px; border: 1px solid var(--g300); background: var(--surface);
  font-family: var(--mono); font-size: 12px; letter-spacing: .04em;
  color: var(--ink); text-decoration: none;
  transition: background .2s, color .2s, border-color .2s;
}
.els-pagination a.page-numbers:hover { background: var(--g100); color: var(--accent); }
.els-pagination .page-numbers.current { background: var(--accent); border-color: var(--accent); color: #fff; }
.els-pagination .page-numbers.dots { border: 0; background: none; color: var(--ink-2); }

/* ---------- events archive ---------- */

.els-evarch-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.els-evarch-past { max-width: 880px; }
.els-evarch-year + .els-evarch-year { margin-top: 56px; }
.els-evarch-yearhead {
  font-family: var(--serif); font-style: italic; font-weight: 500;
  font-size: 34px; line-height: 1; color: var(--accent); margin-bottom: 10px;
}
.els-evarch-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px 28px;
  flex-wrap: wrap; padding: 18px 4px;
  border-bottom: 1px solid var(--g300);
  text-decoration: none; color: var(--ink);
}
.els-evarch-row b {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  letter-spacing: -.01em; transition: color .2s;
}
.els-evarch-row:hover b { color: var(--accent); }
.els-evarch-meta {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
}

/* ---------- event single ---------- */

.els-doc-list { max-width: 680px; }
.els-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px;
}
.els-gallery figure { margin: 0; }
.els-gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 14px; display: block;
}
.els-gallery figcaption {
  margin-top: 8px; font-family: var(--mono); font-size: 10.5px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2);
}
.els-page-hero--dark .els-pills { margin-top: 34px; }
.els-progdl { margin-top: 34px; }
.els-back-wrap { padding-bottom: 90px; }
.els-back-link {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--mono); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-2); text-decoration: none;
  transition: color .2s;
}
.els-back-link:hover { color: var(--accent); }

/* ---------- person grid (governance) ---------- */

.els-people { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.els-person {
  background: var(--surface); border: 1px solid var(--g300); border-radius: 20px;
  overflow: hidden;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
.els-person:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--g300));
}
.els-person-photo {
  aspect-ratio: 4 / 3; overflow: hidden;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--warm-tint), color-mix(in srgb, var(--accent) 12%, var(--surface)));
}
.els-person-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.els-person-spiro { width: 62%; height: auto; color: var(--accent); opacity: .35; overflow: visible; }
.els-person-body { padding: 24px 26px 28px; }
.els-person-role {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--accent); font-weight: 500;
  display: block; margin-bottom: 10px;
}
.els-person h2 {
  font-family: var(--serif); font-size: 22px; font-weight: 500;
  line-height: 1.2; letter-spacing: -.01em; margin-bottom: 8px;
}
.els-person-aff { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.els-person-mail {
  display: inline-block; margin-top: 12px; font-size: 13px;
  color: var(--accent); text-decoration: none; word-break: break-word;
}
.els-person-mail:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- publications archive ---------- */

.els-pub-filter {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin-bottom: 36px;
}
.els-pub-filter label {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
}
.els-select {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  background: var(--surface); border: 1px solid var(--g300); border-radius: 999px;
  padding: 10px 16px; cursor: pointer;
}
.els-pub-reset {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2); text-decoration: none;
}
.els-pub-reset:hover { color: var(--accent); }
.els-pub-list { display: flex; flex-direction: column; gap: 10px; max-width: 980px; }
.els-pub {
  display: grid; grid-template-columns: 1fr auto; gap: 8px 26px; align-items: start;
  background: var(--surface); border: 1px solid var(--g300); border-radius: 16px;
  padding: 24px 28px;
  transition: transform .25s, border-color .25s, box-shadow .25s;
}
.els-pub:hover { transform: translateX(6px); border-color: var(--accent); box-shadow: var(--shadow); }
.els-pub-authors { font-size: 13px; color: var(--ink-2); margin-bottom: 6px; }
.els-pub-title {
  font-family: var(--serif); font-size: 20px; font-weight: 500;
  line-height: 1.25; letter-spacing: -.01em;
}
.els-pub-title a { color: var(--ink); text-decoration: none; transition: color .2s; }
.els-pub-title a:hover { color: var(--accent); }
.els-pub-meta {
  display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 10px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-2);
}
.els-pub-meta a { color: var(--accent); text-decoration: none; }
.els-pub-meta a:hover { text-decoration: underline; text-underline-offset: 3px; }
.els-pub-side { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }

/* ---------- congress landing ---------- */

.els-congress-hero h1 {
  font-size: clamp(52px, 6.4vw, 92px);
  line-height: .96; letter-spacing: -.03em;
  margin: 24px 0 0; max-width: none;
}
.els-congress-hero .els-live { color: var(--warm); }
.els-congress-hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 70px; align-items: start;
  position: relative; z-index: 2;
}
.els-congress-hero .els-page-lead { margin: 22px 0 38px; }
.els-congress-hero .els-pills { margin-bottom: 40px; }
.els-hero-actions-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }

.els-cg-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.els-cg-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px;
  background: var(--surface); border: 1px solid var(--g300); border-radius: 20px;
  padding: 32px;
  transition: transform .3s cubic-bezier(.2, .7, .2, 1), box-shadow .3s, border-color .3s;
}
.els-cg-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--g300));
}
.els-cg-k {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--ink-2); font-weight: 500;
}
.els-cg-card h3 {
  font-family: var(--serif); font-size: 23px; font-weight: 500;
  line-height: 1.2; letter-spacing: -.01em;
}
.els-cg-card p { font-size: 14px; line-height: 1.6; color: var(--ink-2); flex-grow: 1; }
.els-cg-card .els-btn { margin-top: 8px; }
.els-cg-soon {
  margin-top: 8px; padding: 9px 0;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink-2);
}

.els-venue-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 60px; align-items: start; }
.els-venue-name {
  font-family: var(--serif); font-size: clamp(28px, 3vw, 40px); font-weight: 500;
  line-height: 1.1; letter-spacing: -.015em; margin-top: 20px;
}
.els-venue-place {
  margin-top: 14px; font-family: var(--mono); font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: var(--ink-2);
}
.els-map-embed {
  border-radius: 20px; overflow: hidden; border: 1px solid var(--g300);
  background: var(--g100);
}
.els-map-embed iframe { width: 100%; height: 420px; display: block; border: 0; }

/* ---------- membership ---------- */

.els-mem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.els-mem-links { margin-top: 36px; }

/* ---------- 404 ---------- */

.els-404 { padding: 90px 0 140px; text-align: center; }
.els-404-spiro { width: min(420px, 80%); height: auto; margin: 0 auto 10px; display: block; overflow: visible; }
.els-404-code {
  font-family: var(--serif); font-weight: 500; font-style: italic; line-height: 1;
  font-size: clamp(90px, 15vw, 170px); letter-spacing: -.04em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2) 60%, var(--warm));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.els-404 h1 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.05; letter-spacing: -.02em; margin-top: 18px;
}
.els-404 .els-page-lead { margin: 18px auto 0; }
.els-404 .els-search-form { margin: 32px auto 26px; max-width: 460px; }
.els-404 .els-search-controls { justify-content: center; }

/* ---------- breakpoints (guidelines §3.2) ---------- */

@media (max-width: 1080px) {
  .els-page-hero { padding: 72px 0 48px; }
  .els-page-hero--dark { margin-top: 0; padding: 100px 0 70px; }
  .els-tsec { padding: 80px 0; }
  .els-page-body { padding-bottom: 80px; }
  .els-congress-hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .els-evarch-grid,
  .els-cg-actions,
  .els-venue-grid,
  .els-mem-grid { grid-template-columns: 1fr; }
  .els-mem-grid { gap: 50px; }
  .els-people,
  .els-gallery { grid-template-columns: repeat(2, 1fr); }
  .els-pub { grid-template-columns: 1fr; }
  .els-pub-side { flex-direction: row; align-items: center; }
  .els-arch-card { padding: 26px 24px; }
  .els-map-embed iframe { height: 340px; }
}

@media (max-width: 640px) {
  .els-people,
  .els-gallery { grid-template-columns: 1fr; }
  .els-pub { padding: 20px 22px; }
  .els-post-nav-next { margin-left: 0; text-align: left; }
}
