/* EURVISTA public site styles.
 *
 * Standalone by design: the public pages do NOT load site.js or the Tailwind
 * Play CDN. site.js is 94KB of application machinery (data loaders, vote
 * drawers, comitology vocabulary) plus a JIT runtime, none of which a landing
 * page needs and all of which it would pay for on first paint.
 *
 * The tokens below are COPIED from site.js section 1, not re-derived. They
 * carry verified WCAG 2.2 AA contrast and the two files must stay in step:
 * if the brand palette changes there, change it here in the same commit.
 *
 * Design direction is "the printed record" (adopted 05/08/2026): ink on
 * paper, hairline plates, 2px radii, no shadows, display serif for headings,
 * mono for figures and record identifiers. Retired and not to be
 * reintroduced: dark navy slabs, rounded soft-shadow cards, pill badges, the
 * uppercase-eyebrow-with-rule-dash device, count-up animations, all-caps
 * display type, gradients.
 *
 * Every class is prefixed ev- so nothing here can collide with the app's
 * Tailwind utilities if the two ever meet on one page.
 */

/* ---- Tokens ------------------------------------------------------------ */
:root {
  --ev-primary: #7f5a1f; /* brass ink: links, active, focus */
  --ev-secondary: #16304a; /* ink navy: headings, brand */
  --ev-accent1: #5b6b7b; /* slate: muted text */
  --ev-accent2: #b5934a; /* brass: CTA fill, underlines */
  --ev-accent2-hover: #bf9f58;
  --ev-primary-hover: #6b4b19;
  --ev-paper: #f6f3ee; /* page canvas */
  --ev-plate: #fdfcfa; /* card surface */
  --ev-wash: #f1ede5; /* hover / chip fill */
  --ev-hairline: #d9d2c4;
  --ev-hairline-strong: #c4bba8;
  --ev-ink-body: #2a3138;
  --ev-brass-wash: #f3ead8;
  --ev-green-700: #235641;
  --ev-green-300: #9cc7b2;
  --ev-green-wash: #e4eee6;
  --ev-yellow-300: #dec392;

  --ev-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ev-display: "Source Serif 4", Georgia, "Times New Roman", serif;
  --ev-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ev-wrap: 68rem;
  --ev-radius: 2px;
}

/* ---- Reset and base ---------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--ev-paper);
  color: var(--ev-ink-body);
  font-family: var(--ev-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  /* Sticky footer. Short pages (sign-in, and any legal notice on a tall
   * screen) otherwise leave the footer floating mid-viewport with paper
   * below it, which reads as a broken page rather than a short one. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
main {
  flex: 1 0 auto;
}
.ev-footer {
  flex-shrink: 0;
}
img,
svg {
  max-width: 100%;
  height: auto;
  display: block;
}
a {
  color: var(--ev-primary);
  text-underline-offset: 2px;
}
a:hover {
  text-decoration: underline;
}
*:focus-visible {
  outline: 3px solid var(--ev-primary);
  outline-offset: 2px;
  border-radius: var(--ev-radius);
}
::selection {
  background: #e9dcc0;
}
::-webkit-scrollbar {
  width: 6px;
  height: 8px;
}
::-webkit-scrollbar-thumb {
  background: var(--ev-hairline-strong);
  border-radius: 10px;
}
::-webkit-scrollbar-track {
  background: var(--ev-wash);
}

h1,
h2,
h3,
h4 {
  color: var(--ev-secondary);
  margin: 0;
  text-wrap: balance;
}
h1 {
  font-family: var(--ev-display);
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.14;
}
h2 {
  font-family: var(--ev-display);
  font-size: clamp(1.5rem, 3.4vw, 2rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}
h3 {
  font-family: var(--ev-display);
  font-size: 1.25rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  line-height: 1.3;
}
h4 {
  font-family: var(--ev-sans);
  font-size: 1rem;
  font-weight: 600;
}
p {
  margin: 0;
}

.ev-sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Skip link: visible only on focus, first thing in the tab order. */
.ev-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--ev-plate);
  border: 1px solid var(--ev-hairline-strong);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}
.ev-skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

/* ---- Layout ------------------------------------------------------------ */
.ev-wrap {
  max-width: var(--ev-wrap);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.ev-wrap-narrow {
  max-width: 46rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Sections are separated by hairlines, not by alternating background
 * blocks. The paper is one continuous sheet and the rules divide it, which
 * is what a printed report does and what a striped SaaS page does not. */
.ev-section {
  border-top: 1px solid var(--ev-hairline);
  padding: 4rem 0;
}
.ev-section-tight {
  padding: 2.75rem 0;
}
.ev-section-plate {
  background: var(--ev-plate);
}

/* Section number, set in mono like a figure reference. */
.ev-secnum {
  font-family: var(--ev-mono);
  font-size: 0.6875rem;
  color: var(--ev-accent1);
  letter-spacing: 0.06em;
  display: block;
  margin-bottom: 0.75rem;
}

.ev-lede {
  font-size: 1.0625rem;
  color: var(--ev-accent1);
  line-height: 1.65;
  max-width: 44rem;
}
.ev-muted {
  color: var(--ev-accent1);
}
.ev-small {
  font-size: 0.8125rem;
  line-height: 1.55;
}
.ev-xs {
  font-size: 0.75rem;
  line-height: 1.55;
}
.ev-mono {
  font-family: var(--ev-mono);
}

/* ---- Header ------------------------------------------------------------ */
.ev-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ev-paper);
  border-bottom: 1px solid var(--ev-hairline);
}
.ev-nav {
  max-width: var(--ev-wrap);
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.ev-brand {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  text-decoration: none;
  flex-shrink: 0;
}
.ev-brand:hover {
  text-decoration: none;
}
.ev-brand img {
  width: 2.25rem;
  height: 2.25rem;
}
.ev-brand span {
  font-family: var(--ev-display);
  font-weight: 600;
  font-size: 1.3125rem;
  color: var(--ev-secondary);
  letter-spacing: -0.01em;
}
.ev-navlinks {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}
.ev-navlink {
  color: var(--ev-ink-body);
  text-decoration: none;
  font-size: 0.875rem;
  padding: 0.25rem 0.625rem;
  white-space: nowrap;
  transition: color 0.15s ease;
}
.ev-navlink:hover {
  color: var(--ev-primary);
  text-decoration: none;
}
.ev-navlink[aria-current="page"] {
  color: var(--ev-secondary);
  font-weight: 600;
  border-bottom: 2px solid var(--ev-accent2);
  padding-bottom: 2px;
}
.ev-navactions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

/* ---- Buttons ----------------------------------------------------------- */
/* Ink on brass is 4.65:1. White on brass is 2.90:1 and must never appear. */
.ev-btn {
  display: inline-block;
  font-family: var(--ev-sans);
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.5rem 1rem;
  border-radius: var(--ev-radius);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease;
}
.ev-btn:hover {
  text-decoration: none;
}
.ev-btn-primary {
  background: var(--ev-accent2);
  color: var(--ev-secondary);
  border-color: var(--ev-accent2);
}
.ev-btn-primary:hover {
  background: var(--ev-accent2-hover);
  border-color: var(--ev-accent2-hover);
}
.ev-btn-ghost {
  background: transparent;
  color: var(--ev-secondary);
  border-color: var(--ev-hairline-strong);
}
.ev-btn-ghost:hover {
  background: var(--ev-wash);
  border-color: var(--ev-accent1);
}
.ev-btn-lg {
  font-size: 0.9375rem;
  padding: 0.6875rem 1.375rem;
}

/* Text link with a trailing arrow, the standing "read on" affordance. */
.ev-more {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--ev-primary);
  text-decoration: none;
  display: inline-block;
}
.ev-more:hover {
  text-decoration: underline;
}

/* ---- Mobile menu ------------------------------------------------------- */
.ev-burger {
  display: none;
  background: none;
  border: 0;
  color: var(--ev-ink-body);
  padding: 0.25rem;
  cursor: pointer;
}
.ev-mobile {
  display: none;
  border-top: 1px solid var(--ev-hairline);
  padding: 0.5rem 1.5rem 1.25rem;
  max-height: calc(100vh - 3.75rem);
  max-height: calc(100dvh - 3.75rem);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.ev-mobile.ev-open {
  display: block;
}
.ev-mobile a {
  display: block;
  padding: 0.6875rem 0;
  border-bottom: 1px solid var(--ev-hairline);
  color: var(--ev-ink-body);
  text-decoration: none;
  font-size: 0.9375rem;
}
.ev-mobile a[aria-current="page"] {
  color: var(--ev-primary);
  font-weight: 600;
}
.ev-mobile .ev-mobile-actions {
  display: flex;
  gap: 0.5rem;
  padding-top: 1rem;
}
.ev-mobile .ev-mobile-actions a {
  border-bottom: 0;
  padding: 0.5rem 1rem;
  text-align: center;
  flex: 1;
}

@media (max-width: 1023px) {
  .ev-navlinks,
  .ev-navactions {
    display: none;
  }
  .ev-burger {
    display: block;
  }
}

/* ---- Hero -------------------------------------------------------------- */
.ev-hero {
  padding: 4.5rem 0 3.5rem;
}
.ev-hero h1 {
  max-width: 20ch;
}
.ev-hero .ev-lede {
  margin-top: 1.25rem;
  font-size: 1.1875rem;
}
.ev-hero-actions {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}
/* The status line under the CTAs. A left brass rule, not a badge: this is a
 * standing fact about the project, not an honesty tag on a data claim. */
.ev-status {
  margin-top: 1.75rem;
  padding-left: 0.875rem;
  border-left: 2px solid var(--ev-accent2);
  font-size: 0.8125rem;
  color: var(--ev-accent1);
  line-height: 1.55;
  max-width: 42rem;
}

/* ---- Coverage ledger --------------------------------------------------- */
/* A bordered plate divided by hairlines, figures in mono. Deliberately not
 * a row of floating stat tiles, and never animated: a count-up dramatises
 * a number that should simply be stated. */
.ev-ledger {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--ev-plate);
  border: 1px solid var(--ev-hairline);
  border-radius: var(--ev-radius);
  overflow: hidden;
}
.ev-ledger > div {
  padding: 0.9375rem 1.125rem;
  border-right: 1px solid var(--ev-hairline);
  border-bottom: 1px solid var(--ev-hairline);
}
.ev-ledger > div:nth-child(4n) {
  border-right: 0;
}
.ev-ledger > div:nth-last-child(-n + 4) {
  border-bottom: 0;
}
.ev-ledger dt {
  font-size: 0.6875rem;
  color: var(--ev-accent1);
  letter-spacing: 0.02em;
  margin: 0 0 0.25rem;
}
.ev-ledger dd {
  margin: 0;
  font-family: var(--ev-mono);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ev-secondary);
  font-variant-numeric: tabular-nums;
}
.ev-ledger-note {
  margin-top: 0.75rem;
  font-family: var(--ev-mono);
  font-size: 0.6875rem;
  color: var(--ev-accent1);
}

@media (max-width: 900px) {
  .ev-ledger {
    grid-template-columns: repeat(2, 1fr);
  }
  .ev-ledger > div:nth-child(4n) {
    border-right: 1px solid var(--ev-hairline);
  }
  .ev-ledger > div:nth-child(2n) {
    border-right: 0;
  }
  .ev-ledger > div:nth-last-child(-n + 4) {
    border-bottom: 1px solid var(--ev-hairline);
  }
  .ev-ledger > div:nth-last-child(-n + 2) {
    border-bottom: 0;
  }
}

/* ---- Plates and grids -------------------------------------------------- */
.ev-grid {
  display: grid;
  gap: 1.25rem;
}
.ev-grid-2 {
  grid-template-columns: repeat(2, 1fr);
}
.ev-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.ev-grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

/* Cards are hairline plates. Hover changes the border. Nothing lifts,
 * nothing scales, nothing casts a shadow. */
.ev-plate {
  background: var(--ev-plate);
  border: 1px solid var(--ev-hairline);
  border-radius: var(--ev-radius);
  padding: 1.375rem;
}
a.ev-plate {
  display: block;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.14s ease;
}
a.ev-plate:hover {
  border-color: var(--ev-hairline-strong);
  text-decoration: none;
}
.ev-plate h3 {
  font-size: 1.0625rem;
}
.ev-plate p {
  margin-top: 0.5rem;
  font-size: 0.875rem;
  color: var(--ev-accent1);
  line-height: 1.6;
}

/* Rule-led list: a heading with a brass left rule and prose beneath. Used
 * where a boxed card would over-fragment the page. */
.ev-rule-item {
  border-left: 2px solid var(--ev-hairline-strong);
  padding-left: 1rem;
}
.ev-rule-item h3 {
  font-size: 1rem;
  font-family: var(--ev-sans);
}
.ev-rule-item p {
  margin-top: 0.375rem;
  font-size: 0.875rem;
  color: var(--ev-accent1);
}

/* ---- Feature blocks (screenshot + prose) ------------------------------- */
.ev-feature {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  align-items: start;
}
.ev-feature + .ev-feature {
  margin-top: 3.5rem;
  padding-top: 3.5rem;
  border-top: 1px solid var(--ev-hairline);
}
.ev-feature-flip .ev-feature-text {
  order: 2;
}
.ev-feature-flip .ev-figure {
  order: 1;
}
.ev-feature-text h3 {
  font-size: 1.375rem;
}
.ev-feature-text p {
  margin-top: 0.75rem;
  color: var(--ev-accent1);
  font-size: 0.9375rem;
}
.ev-feature-text ul {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
}
.ev-feature-text li {
  position: relative;
  padding-left: 1.125rem;
  font-size: 0.875rem;
  color: var(--ev-ink-body);
  margin-top: 0.5rem;
}
.ev-feature-text li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6875rem;
  width: 0.5rem;
  height: 1px;
  background: var(--ev-accent2);
}

/* A screenshot is a figure: framed in a hairline plate with a mono caption
 * beneath, the way a plate is set in a printed report. */
.ev-figure {
  margin: 0;
}
.ev-figure img {
  width: 100%;
  border: 1px solid var(--ev-hairline);
  border-radius: var(--ev-radius);
  background: var(--ev-plate);
}
.ev-figure figcaption {
  margin-top: 0.5rem;
  font-family: var(--ev-mono);
  font-size: 0.6875rem;
  color: var(--ev-accent1);
  line-height: 1.5;
}

/* ---- Badges (copied from site.js section 2) ---------------------------- */
.ev-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: var(--ev-radius);
  padding: 1px 7px;
  border: 1px solid transparent;
  vertical-align: middle;
}
.ev-badge-live {
  background: var(--ev-green-wash);
  color: var(--ev-green-700);
  border-color: var(--ev-green-300);
}
.ev-badge-illustrative {
  background: var(--ev-brass-wash);
  color: var(--ev-primary);
  border-color: var(--ev-yellow-300);
}

/* ---- Definition rows (data & coverage, research) ----------------------- */
.ev-rows {
  border-top: 1px solid var(--ev-hairline);
}
.ev-row {
  display: grid;
  grid-template-columns: 14rem 1fr;
  gap: 1.5rem;
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--ev-hairline);
}
.ev-row > dt {
  font-weight: 600;
  color: var(--ev-secondary);
  font-size: 0.9375rem;
}
.ev-row > dd {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--ev-accent1);
}

/* ---- Publication list -------------------------------------------------- */
.ev-pub {
  padding: 1.125rem 0;
  border-bottom: 1px solid var(--ev-hairline);
  display: grid;
  grid-template-columns: 9rem 1fr;
  gap: 1.5rem;
}
.ev-pub-meta {
  font-family: var(--ev-mono);
  font-size: 0.6875rem;
  color: var(--ev-accent1);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding-top: 0.1875rem;
}
.ev-pub-title {
  font-weight: 600;
  color: var(--ev-secondary);
  font-size: 0.9375rem;
  line-height: 1.45;
}
.ev-pub-where {
  margin-top: 0.25rem;
  font-size: 0.8125rem;
  color: var(--ev-accent1);
}

/* ---- People ------------------------------------------------------------ */
.ev-person {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.ev-initials {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  border: 1px solid var(--ev-hairline-strong);
  background: var(--ev-wash);
  color: var(--ev-secondary);
  font-family: var(--ev-mono);
  font-size: 0.8125rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: 0.02em;
}
.ev-photo {
  object-fit: cover;
  padding: 0;
}
.ev-person-name {
  font-weight: 600;
  color: var(--ev-secondary);
  font-size: 1rem;
}
.ev-person-role {
  font-size: 0.8125rem;
  color: var(--ev-accent1);
  margin-top: 0.125rem;
  line-height: 1.5;
}
.ev-person-bio {
  font-size: 0.875rem;
  color: var(--ev-accent1);
  margin-top: 0.5rem;
}

/* ---- Forms ------------------------------------------------------------- */
.ev-field {
  margin-top: 1rem;
}
.ev-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ev-accent1);
  letter-spacing: 0.02em;
  margin-bottom: 0.375rem;
}
.ev-field .ev-hint {
  font-weight: 400;
  color: var(--ev-accent1);
  letter-spacing: 0;
}
.ev-input,
.ev-textarea,
.ev-select {
  width: 100%;
  font-family: var(--ev-sans);
  font-size: 0.9375rem;
  color: var(--ev-ink-body);
  background: #ffffff;
  border: 1px solid var(--ev-hairline);
  border-radius: var(--ev-radius);
  padding: 0.5rem 0.75rem;
  line-height: 1.5;
}
.ev-input:hover,
.ev-textarea:hover,
.ev-select:hover {
  border-color: var(--ev-hairline-strong);
}
.ev-textarea {
  min-height: 6.5rem;
  resize: vertical;
}
/* Honeypot: off-screen, never focusable, no third-party CAPTCHA needed. */
.ev-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.ev-note {
  margin-top: 1rem;
  padding: 0.875rem 1rem;
  border: 1px solid var(--ev-hairline);
  border-left: 2px solid var(--ev-accent2);
  background: var(--ev-wash);
  font-size: 0.875rem;
  border-radius: var(--ev-radius);
}
.ev-note-ok {
  border-left-color: var(--ev-green-300);
  background: var(--ev-green-wash);
  color: var(--ev-green-700);
}
.ev-hidden {
  display: none;
}

/* ---- Callout ----------------------------------------------------------- */
.ev-callout {
  background: var(--ev-plate);
  border: 1px solid var(--ev-hairline);
  border-left: 2px solid var(--ev-accent2);
  border-radius: var(--ev-radius);
  padding: 1.5rem 1.75rem;
}

/* ---- Provenance strip -------------------------------------------------- */
.ev-provenance-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 2.5rem;
  font-size: 0.8125rem;
  color: var(--ev-accent1);
}

/* ---- Footer ------------------------------------------------------------ */
.ev-footer {
  border-top: 1px solid var(--ev-hairline);
  margin-top: 0;
  background: var(--ev-paper);
}
.ev-footer-top {
  max-width: var(--ev-wrap);
  margin: 0 auto;
  padding: 2.5rem 1.5rem;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 2rem;
}
.ev-footer-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--ev-secondary);
  font-family: var(--ev-display);
  font-weight: 600;
  font-size: 1rem;
}
.ev-footer-brand img {
  width: 1.5rem;
  height: 1.5rem;
}
.ev-footer h2 {
  font-family: var(--ev-sans);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ev-secondary);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}
.ev-footer a {
  display: block;
  font-size: 0.8125rem;
  color: var(--ev-accent1);
  text-decoration: none;
  padding: 0.1875rem 0;
}
.ev-footer a:hover {
  color: var(--ev-primary);
  text-decoration: underline;
}
.ev-footer-legal {
  border-top: 1px solid var(--ev-hairline);
}
.ev-footer-legal > div {
  max-width: var(--ev-wrap);
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
  font-size: 0.75rem;
  color: var(--ev-accent1);
}
.ev-footer-legal nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}
.ev-footer-legal a {
  display: inline;
  padding: 0;
  text-decoration: underline;
}

/* ---- Responsive -------------------------------------------------------- */
@media (max-width: 900px) {
  .ev-grid-3,
  .ev-grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }
  .ev-feature {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ev-feature-flip .ev-feature-text,
  .ev-feature-flip .ev-figure {
    order: 0;
  }
  .ev-footer-top {
    grid-template-columns: 1fr 1fr;
  }
  .ev-row,
  .ev-pub {
    grid-template-columns: 1fr;
    gap: 0.375rem;
  }
}

@media (max-width: 620px) {
  .ev-section {
    padding: 2.75rem 0;
  }
  .ev-hero {
    padding: 3rem 0 2.5rem;
  }
  .ev-grid-2,
  .ev-grid-3,
  .ev-grid-4 {
    grid-template-columns: 1fr;
  }
  .ev-footer-top {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .ev-hero-actions .ev-btn {
    flex: 1;
    text-align: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* ---- Long-form prose (legal notices, sign-in) -------------------------- *
 * privacy.html, terms.html and data-sources.html are public pages: they are
 * reachable without credentials because the GDPR Article 14(5)(b)
 * disproportionate-effort exemption in data-sources.html is conditioned on
 * that. They therefore wear the public chrome, not the application chrome,
 * so that every link in their header resolves for a reader who has no
 * account. */
.ev-prose {
  max-width: 46rem;
  margin: 0 auto;
  padding: 3rem 1.5rem 4rem;
}
.ev-prose h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}
.ev-prose h2 {
  font-size: 1.1875rem;
  margin-top: 2.5rem;
  margin-bottom: 0.5rem;
}
.ev-prose h3 {
  font-size: 1rem;
  font-family: var(--ev-sans);
  margin-top: 1.5rem;
  margin-bottom: 0.375rem;
}
.ev-prose p,
.ev-prose li {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--ev-ink-body);
}
.ev-prose p {
  margin-bottom: 0.875rem;
}
.ev-prose ul,
.ev-prose ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}
.ev-prose li {
  margin-bottom: 0.375rem;
}
.ev-prose a {
  color: var(--ev-primary);
  text-decoration: underline;
}
.ev-prose .ev-tablewrap {
  overflow-x: auto;
  margin-bottom: 1rem;
}
.ev-prose table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8125rem;
}
.ev-prose th,
.ev-prose td {
  text-align: left;
  padding: 0.5rem 0.625rem;
  border-bottom: 1px solid var(--ev-hairline);
  vertical-align: top;
}
.ev-prose th {
  background: var(--ev-wash);
  font-weight: 600;
  color: var(--ev-secondary);
}
.ev-prose .ev-note {
  margin: 1.5rem 0;
}
.ev-prose .ev-meta {
  font-family: var(--ev-mono);
  font-size: 0.75rem;
  color: var(--ev-accent1);
  margin-top: 0.5rem;
}

/* ---- Sign-in ----------------------------------------------------------- */
.ev-signin {
  max-width: 26rem;
  margin: 0 auto;
  padding: 3.5rem 1.5rem 5rem;
}
.ev-signin-head {
  text-align: center;
  margin-bottom: 1.5rem;
}
.ev-alert {
  border: 1px solid var(--ev-hairline);
  border-left: 2px solid #c97268;
  background: var(--ev-plate);
  border-radius: var(--ev-radius);
  padding: 1rem 1.125rem;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.ev-alert strong {
  color: #95382f;
  display: block;
  margin-bottom: 0.25rem;
}
