/*
 * FindPlace visual theme, 2026 edition.
 *
 * Loaded after the shell, front page, portal and entity stylesheets and wins
 * through specificity (body class + component class, html:root tokens), so
 * the structural stylesheets stay untouched. Direction: Tel Aviv light and
 * Mediterranean depth. Deep sea ink, cool paper, one cyan-teal working colour,
 * a single acid-lime signal, an ultraviolet glow for atmosphere. No warm earth
 * tones anywhere. Texture: film grain over the page, kinetic gradient light in
 * the hero, 1px wireframe lines, glass panels over the map. Typography:
 * neo-serif display (Frank Ruhl Libre / Noto Serif) with a monospace utility
 * voice for labels and numbers.
 */

html:root {
  --il-ink: #0b1d2a;
  --il-ink-2: #133545;
  --il-muted: #4a6270;
  --il-canvas: #f2f6f7;
  --il-surface: #ffffff;
  --il-line: rgb(11 29 42 / 13%);
  --il-line-strong: rgb(11 29 42 / 28%);
  --il-teal: #0c8a9e;
  --il-teal-dark: #076b7c;
  --il-coral: #e0407a;
  --il-sea: #0c8a9e;
  --il-sea-deep: #076b7c;
  --il-lime: #c9f24f;
  --il-lime-ink: #5d7a00;
  --il-violet: #6a5cff;
  --il-focus: #0c8a9e;

  --il-front-ink: #0b1d2a;
  --il-front-muted: #4a6270;
  --il-front-paper: #f2f6f7;
  --il-front-surface: #ffffff;
  --il-front-line: rgb(11 29 42 / 13%);
  --il-front-teal: #0c8a9e;
  --il-front-teal-dark: #076b7c;
  --il-front-coral: #e0407a;
  --il-front-blue: #35607a;
  --il-front-violet: #6a5cff;
  --il-front-focus: #0c8a9e;
  --il-front-shadow: 0 18px 50px -24px rgb(11 29 42 / 35%);

  --il-portal-blue: #0c8a9e;
  --il-portal-radius: 20px;

  --il-display: "Frank Ruhl Libre", "Noto Serif", "Noto Sans Hebrew", Georgia, serif;
  --il-mono: "JetBrains Mono", "Noto Sans Hebrew", "Noto Sans", ui-monospace, Menlo, monospace;
  --il-radius: 20px;
  --il-radius-sm: 12px;
  --il-shadow-lift: 0 22px 60px -30px rgb(11 29 42 / 45%);
  --il-grain: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.55 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

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

:is(body.il-front-body, body.il-public-body) {
  position: relative;
  background:
    radial-gradient(1200px 600px at 100% -10%, rgb(12 138 158 / 9%), transparent 60%),
    radial-gradient(900px 500px at -10% 30%, rgb(106 92 255 / 7%), transparent 60%),
    var(--il-canvas);
}

/* Film grain over everything: tactile, never legibility-hurting. */
:is(body.il-front-body, body.il-public-body)::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  pointer-events: none;
  background-image: var(--il-grain);
  background-size: 160px 160px;
  opacity: 0.16;
  mix-blend-mode: multiply;
}

:is(body.il-front-body, body.il-public-body) ::selection {
  background: var(--il-lime);
  color: var(--il-ink);
}

/* ------------------------------------------------------------------ type */

:is(body.il-front-body, body.il-public-body) :is(h1, h2, h3, .il-front-intro h1, .il-front-section-heading h2, .il-portal-hero h1, .il-portal-section__heading h2, .il-module > h2, .il-entity-hero h1) {
  font-family: var(--il-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

:is(body.il-front-body, body.il-public-body) [lang="ar"] :is(h1, h2, h3),
:is(body.il-front-body, body.il-public-body) [lang="ar"]:is(h1, h2, h3) {
  font-family: "Noto Naskh Arabic", "Noto Sans Arabic", serif;
  letter-spacing: 0;
}

:is(body.il-front-body, body.il-public-body) :is(.il-front-eyebrow, .il-portal-eyebrow, .il-entity-eyebrow, .il-front-map-panel-heading small, .il-front-status, .il-front-featured-copy small, .il-ad-slot__label) {
  font-family: var(--il-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--il-sea-deep);
}

:is(body.il-front-body, body.il-public-body) [dir="rtl"] :is(.il-front-eyebrow, .il-portal-eyebrow, .il-entity-eyebrow, .il-front-status) {
  letter-spacing: 0.02em;
  text-transform: none;
}

/* Eyebrows carry a lime tick: the one signal colour, used as punctuation. */
:is(body.il-front-body, body.il-public-body) :is(.il-front-eyebrow, .il-portal-eyebrow, .il-entity-eyebrow)::before {
  content: "";
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-inline-end: 10px;
  border-radius: 2px;
  background: var(--il-lime);
  box-shadow: 0 0 0 3px rgb(201 242 79 / 30%);
  vertical-align: 1px;
}

/* ------------------------------------------------------------------ header */

:is(body.il-front-body, body.il-public-body) .il-site-header {
  border-bottom: 1px solid var(--il-line);
  background: rgb(255 255 255 / 78%);
}

@supports (backdrop-filter: blur(18px)) {
  :is(body.il-front-body, body.il-public-body) .il-site-header {
    background: rgb(255 255 255 / 66%);
    backdrop-filter: blur(18px) saturate(1.4);
  }
}

:is(body.il-front-body, body.il-public-body) .il-site-brand {
  font-family: var(--il-display);
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -0.03em;
  color: var(--il-ink);
}

:is(body.il-front-body, body.il-public-body) .il-site-brand::after {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-inline-start: 6px;
  border-radius: 50%;
  background: var(--il-lime);
  vertical-align: 6px;
}

:is(body.il-front-body, body.il-public-body) .il-site-nav a,
:is(body.il-front-body, body.il-public-body) .il-mega-toggle,
:is(body.il-front-body, body.il-public-body) .il-language-toggle {
  border-radius: 999px;
  font-weight: 650;
  transition: background-color 160ms ease, color 160ms ease;
}

:is(body.il-front-body, body.il-public-body) .il-site-nav a:hover,
:is(body.il-front-body, body.il-public-body) .il-mega-toggle:hover,
:is(body.il-front-body, body.il-public-body) .il-language-toggle:hover {
  background: rgb(11 29 42 / 6%);
}

:is(body.il-front-body, body.il-public-body) .il-site-nav a[aria-current="page"] {
  background: var(--il-ink);
  color: #fff;
}

:is(body.il-front-body, body.il-public-body) .il-mega-panel {
  border: 1px solid var(--il-line);
  border-radius: var(--il-radius);
  background: rgb(255 255 255 / 92%);
  box-shadow: var(--il-shadow-lift);
}

@supports (backdrop-filter: blur(18px)) {
  :is(body.il-front-body, body.il-public-body) .il-mega-panel {
    backdrop-filter: blur(18px) saturate(1.3);
  }
}

/* ------------------------------------------------------------------ front page hero: night sea */

body.il-front-body .il-front-intro {
  position: relative;
  isolation: isolate;
  width: min(1240px, calc(100% - 48px));
  margin-block-start: 22px;
  padding: clamp(28px, 4vw, 52px);
  border-radius: 28px;
  color: #eef6f8;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 10%, rgb(106 92 255 / 55%), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgb(12 138 158 / 65%), transparent 60%),
    linear-gradient(135deg, #0b1d2a 0%, #0f2f3d 55%, #12455a 100%);
  box-shadow: var(--il-shadow-lift);
}

/* Kinetic light: two soft fields drift like weather over the ink. */
body.il-front-body .il-front-intro::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 30% 30%, rgb(201 242 79 / 22%), transparent),
    radial-gradient(closest-side at 70% 65%, rgb(106 92 255 / 45%), transparent),
    radial-gradient(closest-side at 55% 20%, rgb(12 138 158 / 55%), transparent);
  filter: blur(40px);
  animation: il-drift 26s ease-in-out infinite alternate;
}

body.il-front-body .il-front-intro::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--il-grain);
  background-size: 160px 160px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

@keyframes il-drift {
  from { transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(5%, 4%, 0) rotate(8deg) scale(1.08); }
}

body.il-front-body .il-front-intro-copy {
  padding-inline: clamp(6px, 2vw, 24px);
}

body.il-front-body .il-front-eyebrow {
  color: var(--il-lime);
}

body.il-front-body .il-front-intro h1 {
  max-width: 14ch;
  color: #fff;
  font-size: clamp(44px, 6.2vw, 88px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
}

body.il-front-body .il-front-intro-copy > p:last-child {
  color: rgb(238 246 248 / 78%);
  font-size: clamp(17px, 1.6vw, 20px);
}

body.il-front-body .il-front-intro .il-front-card-action,
body.il-front-body .il-front-intro .il-portal-button,
body.il-front-body .il-front-intro a.il-front-featured-action {
  background: var(--il-lime);
  color: var(--il-ink);
  border-color: transparent;
}

body.il-front-body .il-front-featured {
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 22px;
  background: rgb(255 255 255 / 8%);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%);
}

@supports (backdrop-filter: blur(12px)) {
  body.il-front-body .il-front-featured {
    backdrop-filter: blur(12px);
  }
}

body.il-front-body .il-front-featured > img {
  filter: saturate(1.05) contrast(1.02);
}

body.il-front-body .il-front-featured-copy {
  color: #fff;
  background: linear-gradient(180deg, transparent, rgb(11 29 42 / 82%));
}

body.il-front-body .il-front-featured-copy small,
body.il-front-body .il-front-featured-copy p {
  color: rgb(255 255 255 / 82%);
}

/* The live front page is the portal hero (copy + aerial media). Same night sea. */
:is(body.il-front-body, body.il-public-body) .il-portal-hero.il-portal-hero--media,
body.il-front-body .il-portal-hero {
  position: relative;
  isolation: isolate;
  margin-block-start: 22px;
  padding: clamp(26px, 4vw, 52px);
  border-radius: 28px;
  color: #eef6f8;
  overflow: hidden;
  background:
    radial-gradient(60% 80% at 85% 10%, rgb(106 92 255 / 55%), transparent 60%),
    radial-gradient(50% 70% at 10% 90%, rgb(12 138 158 / 65%), transparent 60%),
    linear-gradient(135deg, #0b1d2a 0%, #0f2f3d 55%, #12455a 100%);
  box-shadow: var(--il-shadow-lift);
}

body.il-front-body .il-portal-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background:
    radial-gradient(closest-side at 30% 30%, rgb(201 242 79 / 22%), transparent),
    radial-gradient(closest-side at 70% 65%, rgb(106 92 255 / 45%), transparent),
    radial-gradient(closest-side at 55% 20%, rgb(12 138 158 / 55%), transparent);
  filter: blur(40px);
  animation: il-drift 26s ease-in-out infinite alternate;
}

body.il-front-body .il-portal-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--il-grain);
  background-size: 160px 160px;
  opacity: 0.35;
  mix-blend-mode: soft-light;
}

body.il-front-body .il-portal-hero .il-portal-eyebrow {
  color: var(--il-lime);
}

body.il-front-body .il-portal-hero h1 {
  max-width: 15ch;
  color: #fff;
  font-size: clamp(42px, 5.8vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.03em;
}

body.il-front-body .il-portal-hero__text {
  color: rgb(238 246 248 / 78%);
}

body.il-front-body .il-portal-hero__stats,
body.il-front-body .il-portal-hero__stats * {
  color: #fff;
}

body.il-front-body .il-portal-hero__stats small,
body.il-front-body .il-portal-hero__stats dt {
  color: rgb(238 246 248 / 62%);
}

body.il-front-body .il-portal-hero__actions .il-portal-button {
  background: var(--il-lime);
  border-color: var(--il-lime);
  color: var(--il-ink);
}

body.il-front-body .il-portal-hero__actions .il-portal-button:hover {
  background: #fff;
  border-color: #fff;
}

body.il-front-body .il-portal-hero__actions .il-portal-button--ghost,
body.il-front-body .il-portal-hero__actions .il-portal-button + .il-portal-button {
  background: rgb(255 255 255 / 10%);
  border-color: rgb(255 255 255 / 35%);
  color: #fff;
}

body.il-front-body .il-portal-hero__media {
  border: 1px solid rgb(255 255 255 / 22%);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 25%), 0 30px 60px -30px rgb(0 0 0 / 60%);
}

body.il-front-body .il-portal-hero__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body.il-front-body .il-portal-site-name {
  margin-block: 14px 0;
  font-family: var(--il-mono);
  font-size: 12px;
  color: var(--il-muted);
}

/* Header: keep the wordmark whole and the nav on one line. */
:is(body.il-front-body, body.il-public-body) .il-site-header__inner {
  gap: 18px;
}

:is(body.il-front-body, body.il-public-body) .il-site-brand {
  flex: 0 0 auto;
  overflow: visible;
  font-size: 20px;
}

:is(body.il-front-body, body.il-public-body) .il-site-nav a,
:is(body.il-front-body, body.il-public-body) .il-mega-toggle {
  padding-inline: 11px;
  font-size: 14px;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ discovery + type filters */

body.il-front-body .il-front-discovery {
  margin-block-start: 26px;
  padding: 18px 22px;
  border: 1px solid var(--il-line);
  border-radius: var(--il-radius);
  background: rgb(255 255 255 / 70%);
}

body.il-front-body .il-front-types button {
  border: 1px solid var(--il-line);
  background: #fff;
  color: var(--il-ink);
  font-family: var(--il-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 140ms ease, background-color 140ms ease, border-color 140ms ease;
}

body.il-front-body .il-front-types button:hover {
  border-color: var(--il-sea);
  transform: translateY(-1px);
}

body.il-front-body .il-front-types button[aria-pressed="true"] {
  background: var(--il-ink);
  border-color: var(--il-ink);
  color: var(--il-lime);
}

body.il-front-body .il-front-search input,
body.il-front-body .il-front-map-query input {
  border: 1px solid var(--il-line-strong);
  border-radius: 999px;
  background: #fff;
}

body.il-front-body .il-front-search input:focus-visible,
body.il-front-body .il-front-map-query input:focus-visible {
  outline: 3px solid rgb(12 138 158 / 35%);
  border-color: var(--il-sea);
}

/* ------------------------------------------------------------------ section headings */

:is(body.il-front-body, body.il-public-body) :is(.il-front-section-heading, .il-portal-section__heading) h2 {
  position: relative;
  padding-block-end: 14px;
  font-size: clamp(30px, 3.4vw, 46px);
  line-height: 1.02;
}

:is(body.il-front-body, body.il-public-body) :is(.il-front-section-heading, .il-portal-section__heading) h2::after {
  content: "";
  position: absolute;
  inset-block-end: 0;
  inset-inline-start: 0;
  width: 64px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--il-lime), var(--il-sea));
}

:is(body.il-front-body, body.il-public-body) .il-portal-section + .il-portal-section {
  border-top: 1px dashed var(--il-line-strong);
}

/* ------------------------------------------------------------------ cards, bento */

:is(body.il-front-body, body.il-public-body) :is(.il-front-card, .il-portal-hood, .il-module-future__card, .il-fact-card, .il-relation-card, .il-source-card, .il-portal-numbers, .il-front-results .il-front-card) {
  border: 1px solid var(--il-line);
  border-radius: var(--il-radius);
  background: var(--il-surface);
  box-shadow: 0 1px 0 rgb(255 255 255 / 80%) inset, 0 10px 30px -22px rgb(11 29 42 / 40%);
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

:is(body.il-front-body, body.il-public-body) :is(.il-front-card, .il-portal-hood, .il-module-future__card, .il-relation-card):hover {
  transform: translateY(-3px);
  border-color: var(--il-sea);
  box-shadow: var(--il-shadow-lift);
}

:is(body.il-front-body, body.il-public-body) .il-front-card-media,
:is(body.il-front-body, body.il-public-body) .il-portal-hood__media {
  background:
    linear-gradient(135deg, rgb(12 138 158 / 18%), rgb(106 92 255 / 14%)),
    #e6eef0;
}

:is(body.il-front-body, body.il-public-body) .il-fact-card {
  background:
    linear-gradient(180deg, rgb(255 255 255 / 90%), rgb(242 246 247 / 95%));
}

:is(body.il-front-body, body.il-public-body) .il-fact-card dd,
:is(body.il-front-body, body.il-public-body) .il-fact-card strong,
:is(body.il-front-body, body.il-public-body) .il-portal-numbers dd,
:is(body.il-front-body, body.il-public-body) .il-portal-hero__stats strong,
:is(body.il-front-body, body.il-public-body) .il-module-market__medians strong {
  font-family: var(--il-display);
  font-weight: 900;
  font-variant-numeric: tabular-nums lining-nums;
  letter-spacing: -0.02em;
  color: var(--il-ink);
}

:is(body.il-front-body, body.il-public-body) :is(.il-fact-card dt, .il-portal-numbers dt, .il-relation-type, .il-timeline__label, .il-portal-plan-list__status, .il-module-source, .il-guide-source, .il-front-map-data-attribution) {
  font-family: var(--il-mono);
  font-size: 11.5px;
  letter-spacing: 0.04em;
  color: var(--il-muted);
}

/* Status chips: wireframe pills, lime for active states. */
:is(body.il-front-body, body.il-public-body) :is(.il-portal-chip, .il-portal-plan-list__status, .il-timeline__state, .il-front-map-parcel) {
  border: 1px solid var(--il-line-strong);
  border-radius: 999px;
  background: #fff;
  font-family: var(--il-mono);
  font-size: 12px;
  transition: background-color 140ms ease, border-color 140ms ease;
}

:is(body.il-front-body, body.il-public-body) .il-portal-chip:hover {
  border-color: var(--il-ink);
  background: var(--il-lime);
}

:is(body.il-front-body, body.il-public-body) .il-portal-plan-list__status--approved,
:is(body.il-front-body, body.il-public-body) .il-portal-plan-list__status--in_force {
  background: var(--il-lime);
  border-color: transparent;
  color: var(--il-ink);
}

/* ------------------------------------------------------------------ buttons */

:is(body.il-front-body, body.il-public-body) :is(.il-portal-button, .il-front-card-action, .il-portal-hood__action, .il-front-map-load-more, .il-front-pagination button, .il-front-pagination a) {
  border-radius: 999px;
  border: 1px solid var(--il-ink);
  background: var(--il-ink);
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  transition: transform 140ms ease, background-color 140ms ease, color 140ms ease, box-shadow 140ms ease;
}

:is(body.il-front-body, body.il-public-body) :is(.il-portal-button, .il-front-card-action, .il-portal-hood__action, .il-front-map-load-more):hover {
  background: var(--il-lime);
  color: var(--il-ink);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px -14px rgb(11 29 42 / 60%);
}

:is(body.il-front-body, body.il-public-body) :is(.il-portal-button--ghost, .il-portal-more, .il-portal-more--button, .il-front-map-sheet-toggle) {
  background: transparent;
  border: 1px solid var(--il-line-strong);
  color: var(--il-ink);
}

/* ------------------------------------------------------------------ map: glass over the city */

body.il-front-body .il-front-map {
  border: 1px solid var(--il-line);
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--il-shadow-lift);
}

body.il-front-body .il-front-map-layout {
  background: #e3ecef;
}

body.il-front-body .il-front-map-stage {
  background:
    radial-gradient(circle at 15% 14%, rgb(12 138 158 / 14%), transparent 22rem),
    radial-gradient(circle at 85% 90%, rgb(106 92 255 / 10%), transparent 20rem),
    #e6eef1;
}

body.il-front-body .il-front-map-panel {
  border-inline-start: 1px solid var(--il-line);
  background: rgb(255 255 255 / 82%);
}

@supports (backdrop-filter: blur(16px)) {
  body.il-front-body .il-front-map-panel {
    background: rgb(255 255 255 / 68%);
    backdrop-filter: blur(16px) saturate(1.3);
  }
}

body.il-front-body .il-front-map-panel-heading h2,
body.il-front-body .il-front-results-heading h2 {
  font-family: var(--il-display);
}

body.il-front-body .il-front-map-result {
  border-radius: var(--il-radius-sm);
  transition: background-color 140ms ease, transform 140ms ease;
}

body.il-front-body .il-front-map-result:hover {
  background: rgb(201 242 79 / 22%);
}

body.il-front-body .il-front-map-result[aria-pressed="true"],
body.il-front-body .il-front-map-result[aria-current="true"] {
  background: var(--il-ink);
  color: #fff;
}

body.il-front-body .il-front-map-surface {
  fill: #e7eef0;
  stroke: #b9cbd2;
}

body.il-front-body .il-front-map-link circle,
body.il-front-body .il-front-map-link polygon,
body.il-front-body .il-front-map-link polyline {
  fill: rgb(12 138 158 / 40%);
  stroke: var(--il-sea-deep);
}

body.il-front-body .il-front-map-controls button,
body.il-front-body .il-front-map-view-switch button,
body.il-front-body .il-front-map-interaction-toggle {
  border: 1px solid var(--il-line-strong);
  border-radius: 999px;
  background: rgb(255 255 255 / 92%);
  font-family: var(--il-mono);
  font-size: 12px;
}

body.il-front-body .il-front-map-view-switch button[aria-pressed="true"] {
  background: var(--il-ink);
  color: var(--il-lime);
  border-color: var(--il-ink);
}

body.il-front-body .il-front-map-search-area {
  background: var(--il-lime);
  color: var(--il-ink);
  border-radius: 999px;
  font-weight: 700;
}

/* ------------------------------------------------------------------ portal hero + entity hero */

body.il-public-body .il-portal-hero,
body.il-public-body .il-entity-hero {
  position: relative;
  isolation: isolate;
}

body.il-public-body .il-portal-hero::before,
body.il-public-body .il-entity-hero::before {
  content: "";
  position: absolute;
  inset: -20% -10% auto -10%;
  height: 120%;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(40% 60% at 80% 20%, rgb(106 92 255 / 16%), transparent 70%),
    radial-gradient(45% 60% at 15% 70%, rgb(12 138 158 / 16%), transparent 70%);
  filter: blur(30px);
}

body.il-public-body .il-portal-hero h1,
body.il-public-body .il-entity-hero h1 {
  font-size: clamp(38px, 5vw, 68px);
  line-height: 1.0;
  letter-spacing: -0.03em;
}

body.il-public-body .il-portal-hero__text,
body.il-public-body .il-entity-lede {
  font-size: clamp(17px, 1.5vw, 20px);
  color: var(--il-muted);
}

body.il-public-body .il-entity-lede::first-letter {
  font-family: var(--il-display);
  font-weight: 900;
  font-size: 1.35em;
  color: var(--il-sea-deep);
}

body.il-public-body .il-entity-hero-media {
  border-radius: var(--il-radius);
  overflow: hidden;
  box-shadow: var(--il-shadow-lift);
}

body.il-public-body .il-entity-hero-media img {
  transition: transform 700ms ease;
}

body.il-public-body .il-entity-hero-media:hover img {
  transform: scale(1.02);
}

/* Compact maps on entity pages read as framed instruments. */
body.il-public-body :is(.il-compact-map, .il-map-figure) {
  border: 1px solid var(--il-line);
  border-radius: var(--il-radius);
  overflow: hidden;
  box-shadow: 0 1px 0 rgb(255 255 255 / 80%) inset, 0 14px 40px -28px rgb(11 29 42 / 50%);
}

body.il-public-body .il-map-legend {
  font-family: var(--il-mono);
  font-size: 12px;
}

/* Timeline: sea line, lime markers for the current stage. */
body.il-public-body .il-timeline__marker {
  background: var(--il-sea);
  box-shadow: 0 0 0 4px rgb(12 138 158 / 18%);
}

body.il-public-body .il-timeline__stage[aria-current="step"] .il-timeline__marker,
body.il-public-body .il-timeline__stage--current .il-timeline__marker {
  background: var(--il-lime);
  box-shadow: 0 0 0 4px rgb(201 242 79 / 45%);
}

/* Guide tables: editorial numerals, zebra in cool paper. */
body.il-public-body .il-guide-table {
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--il-line);
  border-radius: var(--il-radius-sm);
  overflow: hidden;
}

body.il-public-body .il-guide-table th {
  font-family: var(--il-mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--il-muted);
  background: #f4f8f9;
}

body.il-public-body .il-guide-table tbody tr:nth-child(even) {
  background: rgb(242 246 247 / 80%);
}

body.il-public-body .il-guide-table td:first-child {
  font-weight: 700;
}

body.il-public-body .il-guide-table td:not(:first-child) {
  font-variant-numeric: tabular-nums;
}

/* ------------------------------------------------------------------ footer: night */

:is(body.il-front-body, body.il-public-body) .il-site-footer {
  position: relative;
  isolation: isolate;
  margin-block-start: 72px;
  border-top: 0;
  color: rgb(238 246 248 / 82%);
  background:
    radial-gradient(60% 80% at 90% 0%, rgb(106 92 255 / 30%), transparent 60%),
    radial-gradient(50% 60% at 5% 100%, rgb(12 138 158 / 40%), transparent 60%),
    #0b1d2a;
}

:is(body.il-front-body, body.il-public-body) .il-site-footer::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: var(--il-grain);
  background-size: 160px 160px;
  opacity: 0.3;
  mix-blend-mode: soft-light;
}

:is(body.il-front-body, body.il-public-body) .il-site-footer :is(h2, h3, strong) {
  color: #fff;
  font-family: var(--il-display);
}

:is(body.il-front-body, body.il-public-body) .il-site-footer a {
  color: rgb(238 246 248 / 85%);
  text-decoration-color: rgb(201 242 79 / 45%);
  text-underline-offset: 3px;
}

:is(body.il-front-body, body.il-public-body) .il-site-footer a:hover {
  color: var(--il-lime);
}

:is(body.il-front-body, body.il-public-body) .il-site-footer small,
:is(body.il-front-body, body.il-public-body) .il-site-footer p {
  color: rgb(238 246 248 / 62%);
}

/* ------------------------------------------------------------------ motion: reveal on scroll */

@supports (animation-timeline: view()) {
  :is(body.il-front-body, body.il-public-body) :is(.il-front-card, .il-portal-hood, .il-module-future__card, .il-fact-card, .il-relation-card, .il-portal-section) {
    animation: il-reveal linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 28%;
  }
}

@keyframes il-reveal {
  from { opacity: 0.001; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: reduce) {
  :is(body.il-front-body, body.il-public-body) * {
    animation: none !important;
    transition: none !important;
  }
}

/* ------------------------------------------------------------------ small screens */

@media (max-width: 760px) {
  body.il-front-body .il-front-intro {
    width: calc(100% - 24px);
    padding: 24px 20px 26px;
    border-radius: 22px;
  }

  body.il-front-body .il-front-intro h1 {
    font-size: clamp(36px, 11vw, 52px);
  }

  :is(body.il-front-body, body.il-public-body)::before {
    opacity: 0.12;
  }
}

/* ------------------------------------------------------------------ refinements after the first live look */

/* Card actions read as quiet outlined pills; the lime arrives on hover. */
:is(body.il-front-body, body.il-public-body) :is(.il-portal-hood__action, .il-front-card-action) {
  width: auto;
  align-self: flex-start;
  background: transparent;
  border: 1px solid var(--il-line-strong);
  color: var(--il-ink);
  font-family: var(--il-mono);
  font-size: 13px;
}

:is(body.il-front-body, body.il-public-body) :is(.il-portal-hood__action, .il-front-card-action):hover {
  background: var(--il-lime);
  border-color: var(--il-ink);
}

/* Module jump chips sit below the sticky header when linked to. */
body.il-public-body .il-module,
body.il-public-body .il-payload-section {
  scroll-margin-block-start: 96px;
}

/* Plan and status lists: hairline rows, serif names. */
:is(body.il-front-body, body.il-public-body) .il-portal-plan-list li {
  border-block-end: 1px solid var(--il-line);
}

:is(body.il-front-body, body.il-public-body) .il-portal-plan-list li:hover {
  background: rgb(12 138 158 / 5%);
}

/* Guide pages: the compact map would only draw the city's bounding box. */
body.il-public-body .il-entity-article--guide .il-map-section {
  display: none;
}
