/* EISA Group: corporate site. Outfit like the rest of the Group, navy + the family green, light by default,
   soft-navy dark via the sun/moon switch (never grey or near-black). No animation, no decoration scripts. */
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit-latin-wght-normal.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Outfit"; font-weight: 100 900; font-display: swap; src: url("/fonts/outfit-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02AF, U+0304, U+0308, U+0329, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  --navy: #40518a; --deep: #1f2a4f; --heading: #1b2546; --green: #4f9a5a; --green-ink: #2f7a3c;
  --ink: #2a3047; --muted: #5d6680; --line: #e1e5ee; --bg: #f7f8fb; --card: #ffffff; --tint: #eef0f7; --alt: #f0f2f8;
  --link: #3a4a82; --mark: #1f2a4f; --mark-dot: #4f9a5a;
  --soon-bg: #f1f3f9; --soon-ink: #4a5578; --live-bg: #e9f4eb;
  --shadow: 0 1px 2px rgba(27, 37, 70, 0.04), 0 8px 24px rgba(27, 37, 70, 0.06);
  --font: "Outfit", "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --navy: #8fa0dc; --deep: #eef1f8; --heading: #eef1f8; --green: #7cc387; --green-ink: #9bd6a4;
  --ink: #cdd3e4; --muted: #a0a9c3; --line: #3a4566; --bg: #222b45; --card: #29334f; --tint: #2e3858; --alt: #252f4b;
  --link: #bccaf3; --mark: #c9d2f0; --mark-dot: #7cc387;
  --soon-bg: #323d5e; --soon-ink: #c3cbe2; --live-bg: #2b4340;
  --shadow: 0 1px 2px rgba(10, 14, 30, 0.2), 0 10px 28px rgba(10, 14, 30, 0.22);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); line-height: 1.6; font-size: 17px; }
a { color: var(--link); }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 6px; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 24px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 12px; }

/* Mark */
.mark { display: block; flex-shrink: 0; }
.mark .m { fill: var(--mark); }
.mark .ms { stroke: var(--mark); }
.mark .d { fill: var(--mark-dot); }
.wordmark { font-weight: 700; letter-spacing: 0.14em; margin-right: -0.14em; color: var(--mark); font-size: 22px; line-height: 1; display: inline-flex; align-items: baseline; }
/* The I is drawn as a shorter stem with the family's green dot above it, both inside the capital height. */
.wordmark .wm-i { display: inline-block; position: relative; width: 0.17em; height: 0.7em; margin: 0 0.14em 0 0; color: transparent; font-size: inherit; }
.wordmark .wm-i::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 0.45em; border-radius: 0.03em; background: var(--mark); }
.wordmark .wm-i::after { content: ""; position: absolute; left: -0.015em; top: 0.005em; width: 0.2em; height: 0.2em; border-radius: 50%; background: var(--mark-dot); }

/* Header */
header { border-bottom: 1px solid var(--line); background: var(--card); }
header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--heading); font-weight: 700; font-size: 20px; letter-spacing: 0.01em; }
.brand-sub { font-weight: 400; color: var(--muted); }
.wordmark + .brand-sub { margin-left: -2px; font-size: 0.95em; }
nav.top { display: flex; align-items: center; gap: 6px; }
nav.top a { text-decoration: none; color: var(--ink); font-weight: 500; padding: 8px 12px; border-radius: 8px; }
nav.top a:hover { background: var(--tint); }
nav.top a[aria-current="page"] { color: var(--heading); background: var(--tint); }
.theme-toggle { margin-left: 6px; background: none; border: 1px solid var(--line); border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; color: var(--heading); cursor: pointer; }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

h1, h2, h3, h4 { color: var(--heading); line-height: 1.2; }
.eyebrow { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--green-ink); }

/* Hero */
.hero { padding: 88px 0 72px; border-bottom: 1px solid var(--line); background: var(--card); }
.hero h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 600; margin: 0 0 20px; letter-spacing: -0.025em; max-width: 820px; }
.hero .lead { font-size: 20px; color: var(--muted); max-width: 680px; margin: 0; }
.pillars { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 44px; max-width: 820px; }
.pillar { display: flex; flex-direction: column; gap: 4px; text-decoration: none; padding: 18px 20px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); }
.pillar:hover { border-color: var(--navy); }
.pl-k { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--muted); }
.pl-t { color: var(--heading); font-size: 17px; }
.pl-t strong { font-weight: 700; }

/* Divisions */
section { padding: 72px 0; }
section.alt { background: var(--alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.div-head { margin-bottom: 32px; max-width: 760px; }
.div-head h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; margin: 0 0 10px; letter-spacing: -0.015em; }
.div-head .sub { color: var(--muted); margin: 0; font-size: 18px; }

.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid.four { grid-template-columns: repeat(4, 1fr); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 24px; box-shadow: var(--shadow); text-decoration: none; color: inherit; display: flex; flex-direction: column; }
a.card:hover { border-color: var(--navy); }
.card-top { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.card h4 { margin: 0; font-size: 20px; font-weight: 600; }
.card p { margin: 0 0 16px; color: var(--ink); flex: 1; }
.card .url { color: var(--link); font-weight: 600; font-size: 15px; }
.card.more { background: transparent; box-shadow: none; border-style: dashed; }
.card.more h4 { margin-bottom: 10px; color: var(--muted); }
.card.more p { color: var(--muted); }
.status { align-self: flex-start; font-size: 13px; font-weight: 600; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); }
.status.live { background: var(--live-bg); color: var(--green-ink); border-color: transparent; }
.status.live::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--green); margin-right: 7px; vertical-align: 1px; }
.status.soon { background: var(--soon-bg); color: var(--soon-ink); border-color: transparent; }

.group-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; text-decoration: none; color: inherit; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--navy); border-radius: 14px; padding: 22px 26px; margin-bottom: 18px; box-shadow: var(--shadow); }
.group-card:hover { border-color: var(--navy); }
.group-card h3 { margin: 0 0 4px; font-size: 21px; font-weight: 600; }
.group-card p { margin: 0; color: var(--ink); }
.group-card .url { color: var(--link); font-weight: 600; font-size: 15px; white-space: nowrap; }

/* Principles */
.principles .rules { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; border-top: 1px solid var(--line); padding-top: 28px; }
.rules h4 { margin: 0 0 6px; font-size: 18px; font-weight: 600; }
.rules p { margin: 0; color: var(--muted); }

/* Footer */
footer { border-top: 1px solid var(--line); background: var(--card); padding: 36px 0 44px; color: var(--muted); font-size: 15px; }
.foot-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-bottom: 18px; }
.brand.small { font-size: 17px; }
.brand.small .mark { width: 24px; height: 24px; }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 20px; }
footer nav a { color: var(--ink); text-decoration: none; }
footer nav a:hover { text-decoration: underline; }
.legal { margin: 0 0 6px; max-width: 860px; font-size: 14px; }

/* Text pages */
.prose { max-width: 760px; padding: 64px 0 40px; }
.prose h1 { font-size: clamp(32px, 4.4vw, 44px); font-weight: 600; margin: 0 0 10px; letter-spacing: -0.02em; }
.prose .lede { font-size: 21px; color: var(--muted); margin: 0 0 28px; }
.prose .updated { color: var(--muted); margin: 0 0 28px; }
.prose h2 { font-size: 23px; font-weight: 600; margin: 36px 0 10px; }
.prose li { margin-bottom: 8px; }
.prose .note { color: var(--muted); font-size: 15px; }
.details { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 6px 22px; }
.details dl { display: grid; grid-template-columns: 240px 1fr; margin: 0; }
.details dt, .details dd { padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.details dt { color: var(--muted); padding-right: 16px; }
.details dl > :nth-last-child(-n+2) { border-bottom: 0; }

@media (max-width: 960px) {
  .grid.four { grid-template-columns: repeat(2, 1fr); }
  .principles .rules { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  header .wrap { height: 64px; }
  .brand { font-size: 18px; gap: 10px; }
  nav.top a { padding: 8px 8px; }
  .hero { padding: 52px 0 44px; }
  .hero .lead { font-size: 18px; }
  .pillars { grid-template-columns: 1fr; margin-top: 32px; }
  section { padding: 52px 0; }
  .grid.four, .principles .rules { grid-template-columns: 1fr; }
  .group-card { flex-direction: column; align-items: flex-start; gap: 10px; }
  .details dl { grid-template-columns: 1fr; }
  .details dt { border-bottom: 0; padding-bottom: 0; }
}
@media (max-width: 380px) {
  .brand-sub { display: none; }
}
