:root {
  color-scheme: light;
  --bg: 255 255 255;
  --bg-muted: 247 248 250;
  --fg: 15 18 24;
  --fg-muted: 64 72 87;
  --border: 222 227 234;
  --ep-ink: #111827;
  --ep-muted: #6b7280;
  --ep-line: #e5e7eb;
  --ep-purple: #7c3aed;
  --ep-purple2: #a855f7;
  --ep-link: #4f46e5;
  --ep-link-dark: #4338ca;
  --ep-positive: #197548;
  --ep-warn: #9f3328;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100dvh;
  background: rgb(var(--bg));
  color: rgb(var(--fg));
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ep-link); text-underline-offset: 3px; }
a:hover { color: var(--ep-link-dark); }
button, input, select { font: inherit; }
[hidden] { display: none !important; }
::selection { background: rgb(var(--fg) / .15); }

.ep-container { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ep-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 9px 13px; border-radius: 8px; background: var(--ep-ink); color: #fff; }
.ep-skip:focus { left: 8px; }

/* Mirrors the shared Echoprysm production header. */
.ep-top { position: sticky; top: 0; z-index: 50; border-bottom: 1px solid var(--ep-line); background: rgba(255,255,255,.94); backdrop-filter: blur(12px); }
.ep-nav { height: 72px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.ep-brand { display: flex; align-items: center; gap: 12px; color: var(--ep-ink); font-size: 20px; font-weight: 800; letter-spacing: 0; text-decoration: none; }
.ep-logo { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 10px; background: linear-gradient(135deg,var(--ep-purple),var(--ep-purple2)); color: #fff; font-weight: 900; }
.ep-navlinks { display: flex; align-items: center; gap: 6px; }
.ep-navlinks a, .ep-lang a { padding: 9px 14px; border-radius: 999px; color: #374151; font-size: 15px; font-weight: 600; line-height: 1.2; text-decoration: none; }
.ep-navlinks a:hover, .ep-lang a:hover { background: #f7f7fb; color: var(--ep-ink); }
.ep-navlinks a.active { background: #f2f0fb; color: #1f2937; }
.ep-lang { display: flex; align-items: center; gap: 4px; padding: 3px; border: 1px solid var(--ep-line); border-radius: 999px; background: #fff; }
.ep-lang a.active { background: #f2f0fb; color: #1f2937; }

.ep-breadcrumbs { padding-top: 22px; color: var(--ep-muted); font-size: .875rem; }
.ep-breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; list-style: none; }
.ep-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 7px; color: #9ca3af; }
.ep-breadcrumbs a { color: inherit; }

.ep-hero { padding-top: 42px; padding-bottom: 28px; }
.ep-eyebrow, .ep-reading-eyebrow { margin: 0; color: var(--ep-muted); font-size: .75rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; }
.ep-hero h1 { max-width: 900px; margin: 12px 0 14px; color: rgb(var(--fg)); font-size: clamp(2.25rem, 5vw, 3.65rem); font-weight: 800; letter-spacing: -.045em; line-height: 1.04; }
.ep-lead { max-width: 780px; margin: 0; color: rgb(var(--fg-muted)); font-size: clamp(1.05rem, 2vw, 1.18rem); line-height: 1.65; }

.ep-app { display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr); align-items: start; gap: 22px; margin-top: 18px; margin-bottom: 68px; }
.ep-panel { padding: clamp(20px, 3vw, 28px); border: 1px solid rgb(var(--border)); border-radius: 14px; background: rgb(var(--bg-muted)); }
.ep-panel h2 { margin: 0 0 5px; font-size: 1.25rem; font-weight: 750; letter-spacing: -.02em; line-height: 1.25; }
.ep-panel-intro { margin: 0 0 22px; color: rgb(var(--fg-muted)); font-size: .9rem; }
.ep-field-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 14px; }
.ep-field label { display: block; margin-bottom: 6px; color: #252b36; font-size: .88rem; font-weight: 700; }
.ep-field small { display: block; margin-top: 5px; color: rgb(var(--fg-muted)); font-size: .76rem; line-height: 1.45; }
.ep-control { position: relative; display: flex; align-items: center; }
.ep-control input, .ep-control select { width: 100%; min-height: 45px; padding: 9px 11px; border: 1px solid #cfd5de; border-radius: 9px; background: #fff; color: rgb(var(--fg)); }
.ep-control input:hover, .ep-control select:hover { border-color: #aeb6c2; }
.ep-control input:focus, .ep-control select:focus, button:focus-visible, a:focus-visible { outline: 3px solid rgba(79,70,229,.22); outline-offset: 2px; border-color: var(--ep-link); }
.ep-control:has(.ep-suffix) input { padding-right: 78px; }
.ep-suffix { position: absolute; right: 11px; color: var(--ep-muted); font-size: .79rem; pointer-events: none; }
.ep-submit { width: 100%; min-height: 47px; margin-top: 21px; border: 0; border-radius: 9px; background: var(--ep-link); color: #fff; font-weight: 750; cursor: pointer; }
.ep-submit:hover { background: var(--ep-link-dark); }
.ep-privacy { display: flex; align-items: flex-start; gap: 7px; margin: 12px 0 0; color: rgb(var(--fg-muted)); font-size: .76rem; line-height: 1.45; }
.ep-error { margin-bottom: 15px; padding: 10px 12px; border: 1px solid #fecaca; border-radius: 9px; background: #fff7f6; color: var(--ep-warn); font-size: .88rem; font-weight: 650; }
.ep-results-panel { min-height: 350px; background: #fff; }
.ep-results-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 17px; }
.ep-status { padding: 4px 9px; border-radius: 999px; background: #edf8f1; color: var(--ep-positive); font-size: .75rem; white-space: nowrap; }
.ep-result-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; }
.ep-result-card { min-width: 0; padding: 14px; border: 1px solid rgb(var(--border)); border-radius: 11px; background: rgb(var(--bg-muted)); }
.ep-result-card.is-highlight { grid-column: 1/-1; padding: 20px; border: 0; background: linear-gradient(135deg,#6d28d9,#8b5cf6); color: #fff; }
.ep-result-label { display: block; font-size: .72rem; font-weight: 750; letter-spacing: .055em; opacity: .76; text-transform: uppercase; }
.ep-result-value { display: block; margin-top: 5px; font-size: clamp(1.15rem,3vw,1.75rem); font-weight: 800; line-height: 1.2; overflow-wrap: anywhere; }
.ep-result-card.is-highlight .ep-result-value { font-size: clamp(1.9rem,5vw,2.85rem); }
.ep-result-summary { margin: 17px 0; color: rgb(var(--fg-muted)); font-size: .9rem; }
.ep-breakdown { margin: 0; border-top: 1px solid rgb(var(--border)); }
.ep-breakdown > div { display: flex; justify-content: space-between; gap: 22px; padding: 9px 0; border-bottom: 1px solid rgb(var(--border)); }
.ep-breakdown dt { color: rgb(var(--fg-muted)); }
.ep-breakdown dd { margin: 0; font-weight: 700; text-align: right; }
.ep-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 17px; }
.ep-actions button { padding: 8px 11px; border: 1px solid #cfd5de; border-radius: 8px; background: #fff; color: #303846; font-size: .8rem; font-weight: 700; cursor: pointer; }
.ep-actions button:hover { border-color: #a5a0ee; color: var(--ep-link); }
.ep-table-details { margin-top: 18px; padding-top: 13px; border-top: 1px solid rgb(var(--border)); }
.ep-table-details summary { font-weight: 700; cursor: pointer; }
.ep-table-scroll { max-height: 480px; margin-top: 11px; overflow: auto; border: 1px solid rgb(var(--border)); border-radius: 9px; }
.ep-table-scroll table { width: 100%; border-collapse: collapse; font-size: .8rem; white-space: nowrap; }
.ep-table-scroll caption { position: absolute; left: -9999px; }
.ep-table-scroll th, .ep-table-scroll td { padding: 8px 10px; border-bottom: 1px solid rgb(var(--border)); text-align: right; }
.ep-table-scroll th { position: sticky; top: 0; z-index: 1; background: #f2f4f7; }
.ep-table-scroll th:first-child, .ep-table-scroll td:first-child { text-align: left; }

.ep-content-layout { display: grid; grid-template-columns: minmax(0,48rem) minmax(240px,290px); justify-content: center; align-items: start; gap: clamp(32px,5vw,64px); margin-bottom: 78px; }
.ep-content { min-width: 0; }
.ep-section { margin-bottom: 50px; }
.ep-section h2 { margin: 0 0 14px; color: rgb(var(--fg)); font-size: clamp(1.55rem,3.5vw,2rem); font-weight: 750; letter-spacing: -.035em; line-height: 1.2; }
.ep-section h3 { margin: 27px 0 7px; font-size: 1.12rem; font-weight: 730; }
.ep-section p, .ep-section li { color: #2b323e; }
.ep-section p { margin: 1.1em 0; }
.ep-section li + li { margin-top: 7px; }
.ep-section ol, .ep-section ul { padding-left: 1.5rem; }
.ep-formula { margin: 21px 0; padding: 17px 19px; border: 1px solid #ddd9fe; border-left: 4px solid var(--ep-link); border-radius: 0 11px 11px 0; background: #f7f6ff; }
.ep-formula strong { display: block; color: #252052; font-size: 1.02rem; }
.ep-formula p { margin: 6px 0 0; font-size: .93rem; }
.ep-note { padding: 17px; border: 1px solid rgb(var(--border)); border-radius: 12px; background: rgb(var(--bg-muted)); }
.ep-note ul { margin: 0; }
.ep-related-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.ep-related-card, .ep-tool-card { display: block; padding: 18px; border: 1px solid rgb(var(--border)); border-radius: 14px; background: rgb(var(--bg-muted)); color: inherit; text-decoration: none; transition: border-color .15s, transform .15s; }
.ep-related-card:hover, .ep-tool-card:hover { border-color: #c4b5fd; color: inherit; transform: translateY(-1px); }
.ep-related-card strong, .ep-tool-card strong { display: block; color: rgb(var(--fg)); font-size: 1rem; line-height: 1.35; }
.ep-related-card span, .ep-tool-card span { display: block; margin-top: 5px; color: rgb(var(--fg-muted)); font-size: .84rem; line-height: 1.55; }

.ep-reading { min-width: 0; }
.ep-reading-panel { position: sticky; top: 94px; padding: 17px; border: 1px solid rgb(var(--border)); border-radius: 14px; background: rgb(var(--bg-muted)); }
.ep-reading-panel h2 { margin: 5px 0 13px; font-size: 1.15rem; font-weight: 750; letter-spacing: -.02em; }
.ep-reading-list { display: grid; gap: 8px; }
.ep-reading-card { display: block; padding: 12px; border: 1px solid rgb(var(--border)); border-radius: 10px; background: #fff; color: inherit; text-decoration: none; }
.ep-reading-card:hover { border-color: #c4b5fd; color: inherit; }
.ep-reading-card span { display: block; color: var(--ep-link); font-size: .67rem; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.ep-reading-card strong { display: block; margin-top: 3px; color: rgb(var(--fg)); font-size: .9rem; line-height: 1.35; }
.ep-reading-card small { display: block; margin-top: 5px; color: rgb(var(--fg-muted)); font-size: .76rem; line-height: 1.45; }
.ep-reading-more { display: inline-block; margin-top: 13px; font-size: .8rem; font-weight: 700; text-decoration: none; }

.ep-hub-main { padding-top: 48px; padding-bottom: 76px; }
.ep-hub-intro { max-width: 780px; margin-bottom: 34px; }
.ep-hub-intro h1 { margin: 12px 0 14px; font-size: clamp(2.3rem,5vw,3.8rem); font-weight: 800; letter-spacing: -.05em; line-height: 1.04; }
.ep-trust { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin: 44px 0; }
.ep-trust div { padding: 17px; border: 1px solid rgb(var(--border)); border-radius: 14px; background: rgb(var(--bg-muted)); }
.ep-trust strong { display: block; }
.ep-trust span { color: rgb(var(--fg-muted)); font-size: .84rem; }
.ep-group { margin-top: 40px; }
.ep-group h2 { margin-bottom: 14px; font-size: 1.5rem; font-weight: 750; letter-spacing: -.025em; }
.ep-hub-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px; }
.ep-tool-card em { display: inline-block; margin-top: 12px; color: var(--ep-link); font-size: .82rem; font-style: normal; font-weight: 700; }

/* Mirrors the shared Echoprysm production footer. */
.ep-footer { margin-top: 96px; border-top: 1px solid var(--ep-line); background: #fff; color: var(--ep-ink); }
.ep-footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 28px; padding-top: 34px; padding-bottom: 34px; }
.ep-footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; }
.ep-footer p { margin: 12px 0 0; color: var(--ep-muted); font-size: 14px; }
.ep-footer h3 { margin: 0 0 12px; color: var(--ep-muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.ep-footer ul { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.ep-footer a { color: #374151; font-size: 14px; text-decoration: none; }
.ep-footer a:hover { text-decoration: underline; }
.ep-footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; padding-top: 16px; padding-bottom: 16px; border-top: 1px solid var(--ep-line); color: var(--ep-muted); font-size: 12px; }

@media (max-width: 980px) {
  .ep-app { grid-template-columns: 1fr; }
  .ep-results-panel { min-height: 0; }
  .ep-content-layout { grid-template-columns: minmax(0,48rem); }
  .ep-reading-panel { position: static; }
  .ep-reading-list { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 820px) {
  html, body { max-width: 100%; overflow-x: hidden; }
  body * { max-width: 100%; overflow-wrap: anywhere; }
  .ep-top { overflow: hidden; }
  .ep-container { max-width: 100%; padding-left: 14px; padding-right: 14px; }
  .ep-nav { width: 100%; min-height: 62px; height: auto; display: grid; grid-template-areas: "brand lang" "nav nav"; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 9px 10px; padding-top: 10px; padding-bottom: 10px; }
  .ep-brand { grid-area: brand; min-width: 0; font-size: 18px; }
  .ep-logo { width: 30px; height: 30px; border-radius: 9px; }
  .ep-brand span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ep-lang { grid-area: lang; min-width: 0; padding: 2px; }
  .ep-lang a { padding: 6px 7px; font-size: 12px; line-height: 1.1; }
  .ep-navlinks { grid-area: nav; width: 100%; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px; }
  .ep-navlinks a { padding: 7px 9px; font-size: 13px; line-height: 1.15; white-space: nowrap; }
  .ep-footer-grid { grid-template-columns: 1fr; }
  .ep-hub-grid { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .ep-hero { padding-top: 32px; }
  .ep-field-grid, .ep-result-grid, .ep-related-grid, .ep-reading-list, .ep-trust { grid-template-columns: 1fr; }
  .ep-result-card.is-highlight { grid-column: auto; }
  .ep-panel { padding: 18px; }
  .ep-app { margin-bottom: 52px; }
  .ep-results-heading { display: block; }
  .ep-status { display: inline-block; margin-top: 7px; }
}

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

@media print {
  .ep-top, .ep-breadcrumbs, .ep-submit, .ep-actions, .ep-footer, .ep-reading { display: none !important; }
  .ep-app, .ep-content-layout { display: block; }
  .ep-panel { margin-bottom: 18px; border-color: #aaa; }
  .ep-table-scroll { max-height: none; overflow: visible; }
}
