/* actuary.info - Exam Pass Rates feature
   Linked only from /exam-pass-rates/ pages. Builds on css/base.css tokens.
   One secondary chart hue (warm amber) is introduced for the effective-rate
   series and SOA badge tint; everything else uses the site palette. */

:root {
    --epr-accent: var(--accent-blue, #1a56c4);
    --epr-amber: #b45309;
    --epr-up: #15803d;
    --epr-down: #b91c1c;
    --epr-shadow: 0 1px 2px rgba(14, 14, 12, 0.04), 0 6px 18px -8px rgba(14, 14, 12, 0.12);
    --epr-shadow-hover: 0 2px 4px rgba(14, 14, 12, 0.05), 0 14px 30px -10px rgba(26, 86, 196, 0.22);
}

.epr-wrap {
    max-width: var(--container-wide, 1180px);
    margin: 0 auto;
    padding: 1.5rem var(--container-padding-x, 2rem) 3rem;
}

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

/* ---------- breadcrumb ---------- */
/* base.css styles bare <nav> as the centered flex header row; reset all of
   that for the in-page breadcrumb nav */
nav.epr-crumb {
    display: block;
    justify-content: flex-start;
    border: none;
    padding-inline: 0;
    overflow: visible;
    font-size: 0.78rem;
    color: var(--text-muted);
    margin-bottom: 1.75rem;
}
nav.epr-crumb a { padding: 0; border-bottom: none; font-size: inherit; font-weight: 400; }
.epr-crumb a { color: var(--text-muted); text-decoration: none; }
.epr-crumb a:hover { color: var(--epr-accent); }
.epr-crumb span[aria-current] { color: var(--text-secondary); }

/* ---------- pills / badges ---------- */
.epr-pill {
    display: inline-block;
    padding: 0.16rem 0.55rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border: 1px solid transparent;
}
.epr-pill-cas { color: var(--epr-accent); background: rgba(26, 86, 196, 0.07); border-color: rgba(26, 86, 196, 0.18); }
.epr-pill-soa { color: var(--epr-amber); background: rgba(180, 83, 9, 0.07); border-color: rgba(180, 83, 9, 0.2); }
.epr-pill-level, .epr-pill-track { color: var(--text-muted); background: var(--bg-hover); border-color: var(--border); }
.epr-pill-retired { color: #fff; background: var(--text-muted); }

/* ---------- trend badges ---------- */
.epr-trend {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.78rem;
    font-weight: 600;
    white-space: nowrap;
}
.epr-trend-up { color: var(--epr-up); }
.epr-trend-down { color: var(--epr-down); }
.epr-trend-flat, .epr-trend-na { color: var(--text-muted); font-weight: 500; }
.epr-trend-sm { font-size: 0.72rem; }

/* ---------- hub header ---------- */
.epr-eyebrow {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--epr-accent);
    margin-bottom: 0.5rem;
}
.epr-hubhead h1, .epr-hero h1 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 4vw, 2.7rem);
    font-weight: 600;
    letter-spacing: -0.015em;
    line-height: 1.12;
    color: var(--text-primary);
}
.epr-lede {
    max-width: 62ch;
    margin-top: 0.75rem;
    font-size: 0.98rem;
    line-height: 1.65;
    color: var(--text-secondary);
}
.epr-meta {
    margin-top: 0.7rem;
    font-size: 0.78rem;
    color: var(--text-muted);
}
.epr-meta a { color: var(--epr-accent); text-decoration: none; }
.epr-meta a:hover { text-decoration: underline; }

/* ---------- highlights strip ---------- */
.epr-hlrow {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 1.9rem 0 0.4rem;
}
.epr-hl {
    display: flex;
    flex-direction: column;
    gap: 0.28rem;
    padding: 0.9rem 1.05rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
    text-decoration: none;
    transition: border-color 0.15s ease, transform 0.15s ease;
}
.epr-hl:hover { border-color: var(--epr-accent); transform: translateY(-1px); }
.epr-hl-kicker {
    font-size: 0.66rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
}
.epr-hl-name {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
}
.epr-hl-body { font-size: 0.8rem; color: var(--text-secondary); }

/* ---------- hub controls ---------- */
.epr-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
    margin: 1.6rem 0 0.5rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-light);
    border-bottom: 1px solid var(--border-light);
}
.epr-filtergroup { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.epr-filter {
    font-family: inherit;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-muted);
    background: transparent;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.32rem 0.85rem;
    cursor: pointer;
    transition: all 0.15s ease;
}
.epr-filter:hover { border-color: var(--epr-accent); color: var(--text-primary); }
.epr-filter.is-on {
    background: var(--epr-accent);
    border-color: var(--epr-accent);
    color: #fff;
}
.epr-filter:focus-visible, .epr-search:focus-visible,
.epr-key-toggle input:focus-visible, .epr-table thead button:focus-visible {
    outline: 2px solid var(--epr-accent);
    outline-offset: 2px;
}
.epr-searchwrap { margin-left: auto; }
.epr-search {
    font-family: inherit;
    font-size: 0.82rem;
    color: var(--text-primary);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 0.4rem 1rem;
    width: min(260px, 100%);
}
.epr-search::placeholder { color: var(--text-muted); }
.epr-search:focus { border-color: var(--epr-accent); outline: none; }

/* ---------- hub grid + cards ---------- */
.epr-sechead {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 2rem 0 0.35rem;
}
.epr-secsub { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 0.35rem; }
.epr-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(255px, 1fr));
    gap: 1rem;
    margin-top: 1rem;
}
.epr-card {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 1.15rem 1.2rem 1.05rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--epr-shadow);
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.epr-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--epr-shadow-hover);
    border-color: rgba(26, 86, 196, 0.35);
}
.epr-card-pills { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.epr-card-title {
    font-family: var(--font-display);
    font-size: 1.18rem;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}
.epr-card-sub {
    font-size: 0.76rem;
    line-height: 1.45;
    color: var(--text-muted);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.2em;
}
.epr-card-stat {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 0.75rem;
    margin-top: 0.25rem;
}
.epr-card-rate {
    font-family: var(--font-display);
    font-size: 2.05rem;
    font-weight: 600;
    line-height: 1;
    color: var(--text-primary);
    font-feature-settings: "tnum";
}
.epr-spark { width: 120px; height: 34px; flex-shrink: 0; overflow: visible; }
.epr-spark-line { fill: none; stroke: var(--epr-accent); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; opacity: 0.75; }
.epr-spark-dot { fill: var(--epr-accent); }
.epr-card-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    padding-top: 0.55rem;
    border-top: 1px solid var(--border-light);
}
.epr-card-sitting { font-size: 0.74rem; color: var(--text-muted); }
.epr-empty { padding: 2.5rem 0; text-align: center; color: var(--text-muted); font-size: 0.9rem; }

/* ---------- hub footer prose ---------- */
.epr-hubfoot { max-width: 72ch; margin-top: 3rem; }
.epr-hubfoot h2 {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.epr-hubfoot p { font-size: 0.88rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 0.75rem; }
.epr-hubfoot a { color: var(--epr-accent); text-decoration: none; }
.epr-hubfoot a:hover { text-decoration: underline; }

/* ---------- exam hero ---------- */
.epr-hero { margin-bottom: 1.75rem; }
.epr-hero-pills { display: flex; gap: 0.4rem; flex-wrap: wrap; margin-bottom: 0.8rem; }
.epr-hero-sub { font-size: 0.92rem; color: var(--text-muted); margin-top: 0.4rem; }
.epr-hero-stat {
    display: flex;
    align-items: baseline;
    gap: 1.1rem;
    flex-wrap: wrap;
    margin-top: 1.4rem;
}
.epr-hero-rate {
    font-family: var(--font-display);
    font-size: clamp(3.2rem, 8vw, 4.6rem);
    font-weight: 600;
    line-height: 0.95;
    letter-spacing: -0.02em;
    color: var(--epr-accent);
    font-feature-settings: "tnum";
}
.epr-hero-ctx { display: flex; flex-direction: column; gap: 0.2rem; }
.epr-hero-sitting { font-size: 0.86rem; font-weight: 600; color: var(--text-primary); }
.epr-hero-prior { font-size: 0.76rem; color: var(--text-muted); }

/* ---------- stat pills row ---------- */
.epr-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 0.75rem;
    margin: 0 0 2rem;
}
.epr-stat {
    padding: 0.8rem 0.95rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 6px;
}
.epr-stat dt {
    font-size: 0.64rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}
.epr-stat dd {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--text-primary);
    font-feature-settings: "tnum";
    display: flex;
    flex-direction: column;
}
.epr-stat-note {
    font-family: var(--font-body);
    font-size: 0.68rem;
    font-weight: 400;
    color: var(--text-muted);
    margin-top: 0.15rem;
}

/* ---------- chart ---------- */
.epr-chartfig { margin: 0 0 2.5rem; }
.epr-legend {
    display: flex;
    gap: 1.25rem;
    align-items: center;
    margin-bottom: 0.4rem;
    font-size: 0.78rem;
    color: var(--text-secondary);
}
.epr-key { display: inline-flex; align-items: center; gap: 0.4rem; }
.epr-key-toggle { cursor: pointer; user-select: none; }
.epr-key-toggle input { accent-color: var(--epr-amber); margin-right: 0.1rem; }
.epr-swatch { width: 18px; height: 0; border-top: 3px solid; border-radius: 2px; display: inline-block; }
.epr-swatch-raw { border-color: var(--epr-accent); }
.epr-swatch-eff { border-top-style: dashed; border-color: var(--epr-amber); }

.epr-chartwrap { position: relative; }
.epr-chartwrap svg { width: 100%; height: auto; display: block; }

.epr-grid-line, .epr-grid { stroke: var(--border-light); stroke-width: 1; }
.epr-ylab, .epr-xlab {
    font-family: var(--font-body);
    font-size: 11px;
    fill: var(--text-muted);
}
.epr-ylab { text-anchor: end; }
.epr-xlab { text-anchor: middle; }
.epr-area { fill: url(#epr-fill); stroke: none; }
.epr-line {
    fill: none;
    stroke: var(--epr-accent);
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}
.epr-line-eff {
    fill: none;
    stroke: var(--epr-amber);
    stroke-width: 1.7;
    stroke-dasharray: 5 4;
    stroke-linecap: round;
    opacity: 0.85;
}
.epr-dot { fill: var(--epr-accent); stroke: var(--bg-primary); stroke-width: 1.4; }
.epr-dot-x { fill: var(--bg-primary); stroke: var(--epr-accent); stroke-width: 1.6; }
.epr-dot-eff { fill: var(--epr-amber); opacity: 0.8; }
.epr-dot-last { stroke-width: 2; }
.epr-dot-ring { fill: none; stroke: var(--epr-accent); stroke-width: 1.2; opacity: 0.35; }
.epr-annot {
    font-family: var(--font-body);
    font-size: 12px;
    font-weight: 600;
    fill: var(--text-primary);
}
.epr-hover-dot { fill: none; stroke: var(--text-primary); stroke-width: 1.4; }

/* draw-in on load; the no-preference gate means reduced-motion users (and
   browsers without animation support) always see the finished chart */
@media (prefers-reduced-motion: no-preference) {
    .epr-line {
        stroke-dasharray: 1;
        stroke-dashoffset: 1;
        animation: epr-draw 1.1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
    }
    .epr-line-eff, .epr-area, .epr-dot, .epr-dot-eff, .epr-annot {
        opacity: 0;
        animation: epr-fadein 0.5s ease 0.8s forwards;
    }
    .epr-dot-ring {
        opacity: 0;
        animation: epr-fadein-ring 0.5s ease 0.8s forwards;
    }
    .epr-line-eff { animation-name: epr-fadein-eff; }
}
@keyframes epr-draw { to { stroke-dashoffset: 0; } }
@keyframes epr-fadein { to { opacity: 1; } }
@keyframes epr-fadein-ring { to { opacity: 0.35; } }
@keyframes epr-fadein-eff { to { opacity: 0.85; } }

.epr-tip {
    position: absolute;
    pointer-events: none;
    background: var(--text-primary);
    color: #fff;
    border-radius: 6px;
    padding: 0.5rem 0.7rem;
    font-size: 0.74rem;
    line-height: 1.5;
    box-shadow: 0 8px 24px -6px rgba(14, 14, 12, 0.35);
    max-width: 220px;
    z-index: 10;
    transform: translate(-50%, calc(-100% - 12px));
    white-space: nowrap;
}
.epr-tip b { font-size: 0.8rem; }
.epr-tip .epr-tip-raw { color: #9db9ea; }
.epr-tip .epr-tip-eff { color: #eab676; }
.epr-chartcap {
    margin-top: 0.5rem;
    font-size: 0.74rem;
    color: var(--text-muted);
}

/* ---------- table ---------- */
.epr-tablesec h2, .epr-summary h2, .epr-related h2, .epr-siblings h2 {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    color: var(--text-primary);
}
.epr-tablewrap {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: 8px;
}
.epr-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.84rem;
    font-feature-settings: "tnum";
}
.epr-table thead th {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    color: var(--text-secondary);
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    text-align: right;
    padding: 0.6rem 1rem;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.epr-table thead th:first-child { text-align: left; }
.epr-table thead button {
    all: inherit;
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    cursor: pointer;
    padding: 0;
    letter-spacing: inherit;
}
.epr-table thead button:hover { color: var(--epr-accent); }
.epr-table thead th .epr-sortarrow { font-size: 0.85em; opacity: 0.85; }
.epr-table tbody th, .epr-table tbody td {
    padding: 0.55rem 1rem;
    border-bottom: 1px solid var(--border-light);
    text-align: right;
    color: var(--text-secondary);
    white-space: nowrap;
}
.epr-table tbody th {
    text-align: left;
    font-weight: 600;
    color: var(--text-primary);
}
.epr-table tbody tr:last-child th, .epr-table tbody tr:last-child td { border-bottom: none; }
.epr-table tbody tr:hover { background: var(--bg-hover); }
.epr-table tbody tr:first-child th, .epr-table tbody tr:first-child td { background: rgba(26, 86, 196, 0.045); }
.epr-row-x th, .epr-row-x td { color: var(--text-muted); }
.epr-xmark { color: var(--epr-amber); font-weight: 700; }
.epr-na { color: var(--text-muted); font-size: 0.76rem; font-style: italic; }
.epr-tablenote { margin-top: 0.5rem; font-size: 0.74rem; color: var(--text-muted); }

/* ---------- summary / related / siblings ---------- */
.epr-summary { max-width: 72ch; margin-top: 2.5rem; }
.epr-summary p { font-size: 0.92rem; line-height: 1.7; color: var(--text-secondary); }
.epr-source { margin-top: 0.6rem; font-size: 0.76rem; color: var(--text-muted); }
.epr-source a { color: inherit; text-decoration: underline; }

.epr-related { margin-top: 2.25rem; }
.epr-related ul { list-style: none; padding: 0; }
.epr-related li { margin-bottom: 0.45rem; }
.epr-related a {
    color: var(--epr-accent);
    text-decoration: none;
    font-size: 0.9rem;
}
.epr-related a:hover { text-decoration: underline; }

.epr-siblings { margin-top: 2.25rem; }
.epr-chiprow { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.epr-chip {
    display: inline-block;
    padding: 0.38rem 0.9rem;
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.15s ease;
}
.epr-chip:hover { border-color: var(--epr-accent); color: var(--epr-accent); }
.epr-chip-all { background: var(--bg-secondary); }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
    .epr-hlrow { grid-template-columns: 1fr; gap: 0.6rem; }
}
@media (max-width: 768px) {
    .epr-wrap { padding: 1rem var(--container-padding-x-mobile, 1.25rem) 2.5rem; }
    .epr-controls { gap: 0.5rem; }
    .epr-searchwrap { margin-left: 0; width: 100%; }
    .epr-search { width: 100%; }
    .epr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .epr-hero-stat { gap: 0.8rem; }
    .epr-table { font-size: 0.78rem; }
    .epr-table thead th, .epr-table tbody th, .epr-table tbody td { padding: 0.5rem 0.7rem; }
    /* keep chart text legible on narrow screens: the chart pans sideways in
       its own container instead of shrinking below readability */
    .epr-chartwrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
    .epr-chartwrap svg { min-width: 620px; }
}

/* =========================================================================
   SOA Exam Analytics (/exam-pass-rates/soa-analytics/) and the
   Name Lookup tool (/exam-pass-rates/soa-name-search/).
   Same tokens and prefixed eprs- to stay scoped to this feature family.
   ========================================================================= */

.eprs-page section, .eprs-search-page section { margin-top: 2.75rem; }
.eprs-page h2 {
    font-family: var(--font-display);
    font-size: 1.45rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 0.4rem;
}
.eprs-page h3 {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 1.25rem 0 0.5rem;
}
.eprs-secsub {
    max-width: 72ch;
    font-size: 0.88rem;
    line-height: 1.65;
    color: var(--text-secondary);
    margin-bottom: 1.1rem;
}
.eprs-secsub a { color: var(--epr-accent); text-decoration: none; }
.eprs-secsub a:hover { text-decoration: underline; }

/* mini pass-rate cards */
.eprs-minigrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.9rem;
}
.eprs-mini {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
    padding: 0.95rem 1.05rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    box-shadow: var(--epr-shadow);
    text-decoration: none;
    transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
a.eprs-mini:hover { transform: translateY(-2px); box-shadow: var(--epr-shadow-hover); border-color: rgba(26, 86, 196, 0.35); }
.eprs-mini-code { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; color: var(--text-muted); }
.eprs-mini-rate {
    font-family: var(--font-display);
    font-size: 1.7rem;
    font-weight: 600;
    color: var(--text-primary);
    font-feature-settings: "tnum";
    line-height: 1.05;
}
.eprs-mini-note { font-size: 0.7rem; color: var(--text-muted); }
.eprs-mini-more { font-size: 0.72rem; font-weight: 600; color: var(--epr-accent); margin-top: 0.2rem; }
.eprs-mini .epr-spark { width: 100%; height: 34px; }

/* shock strips */
.eprs-shockrow {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.4rem;
}
.eprs-shockcard {
    padding: 0.7rem 0.85rem;
    border: 1px solid var(--border-light);
    border-radius: 6px;
    background: var(--bg-secondary);
}
.eprs-shock-code { display: block; font-size: 0.74rem; font-weight: 700; margin-bottom: 0.25rem; }
.eprs-shock-code a { color: var(--text-primary); text-decoration: none; }
.eprs-shock-code a:hover { color: var(--epr-accent); }
.eprs-shockstrip { width: 100%; height: auto; display: block; }
.eprs-shock-axis { stroke: var(--border); stroke-width: 1; }
.eprs-shock-up { fill: var(--epr-up); opacity: 0.75; }
.eprs-shock-down { fill: var(--epr-down); opacity: 0.75; }

.eprs-twocol {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(330px, 1fr));
    gap: 1.4rem;
}

/* transitions */
.eprs-transgrid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem;
}
.eprs-transcard {
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 0.9rem 1rem;
    background: var(--bg-card);
    box-shadow: var(--epr-shadow);
}
.eprs-transcard h3 { margin: 0 0 0.1rem; }
.eprs-transcard h3 a { color: var(--text-primary); text-decoration: none; }
.eprs-transcard h3 a:hover { color: var(--epr-accent); }
.eprs-transnote { font-size: 0.7rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.eprs-transtable thead th, .eprs-transtable tbody th, .eprs-transtable tbody td { padding: 0.35rem 0.5rem; font-size: 0.78rem; }
.eprs-explorer { margin-top: 1.4rem; max-width: 560px; }
.eprs-explorer label { font-size: 0.82rem; font-weight: 600; margin-right: 0.5rem; }
.eprs-explorer select {
    font: inherit;
    font-size: 0.84rem;
    padding: 0.3rem 0.6rem;
    border: 1px solid var(--border);
    border-radius: 4px;
    background: var(--bg-card);
    margin-bottom: 0.7rem;
}

/* bar rows */
.eprs-bars { max-width: 760px; }
.eprs-bar-row {
    display: grid;
    grid-template-columns: 92px 1fr 58px minmax(0, 110px);
    align-items: center;
    gap: 0.6rem;
    padding: 0.28rem 0;
    font-size: 0.8rem;
}
.eprs-bar-label { font-weight: 600; color: var(--text-primary); white-space: nowrap; }
.eprs-bar-label a { color: inherit; text-decoration: none; }
.eprs-bar-label a:hover { color: var(--epr-accent); }
.eprs-bar-track { background: var(--bg-hover); border-radius: 999px; height: 10px; overflow: hidden; }
.eprs-bar-fill { display: block; height: 100%; background: var(--epr-accent); border-radius: 999px; }
.eprs-bar-val { font-feature-settings: "tnum"; font-weight: 600; text-align: right; }
.eprs-bar-note { font-size: 0.7rem; color: var(--text-muted); white-space: nowrap; }

.eprs-details { margin-top: 1rem; }
.eprs-details summary { cursor: pointer; font-size: 0.84rem; font-weight: 600; color: var(--epr-accent); margin-bottom: 0.6rem; }

/* credential timeline */
.eprs-tl-asa { fill: var(--epr-accent); }
.eprs-tl-cera { fill: var(--epr-amber); }
.eprs-tl-fsa { fill: #0E0E0C; opacity: 0.82; }
.eprs-tl-swatch { width: 14px; height: 14px; border-radius: 3px; display: inline-block; }
.eprs-tl-legend { margin: 0.4rem 0 0.8rem; }
.eprs-tl-swatch.eprs-tl-asa { background: var(--epr-accent); }
.eprs-tl-swatch.eprs-tl-cera { background: var(--epr-amber); }
.eprs-tl-swatch.eprs-tl-fsa { background: #0E0E0C; }

/* methodology blocks */
.eprs-method { max-width: 76ch; }
.eprs-method p { font-size: 0.88rem; line-height: 1.7; color: var(--text-secondary); margin-bottom: 0.8rem; }
.eprs-method a { color: var(--epr-accent); text-decoration: none; }
.eprs-method a:hover { text-decoration: underline; }

/* name search */
.eprs-search-form {
    display: flex;
    gap: 0.6rem;
    max-width: 560px;
    margin-top: 1.4rem;
}
.eprs-search-input {
    flex: 1;
    font: inherit;
    font-size: 1rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-primary);
    background: var(--bg-card);
}
.eprs-search-input:focus { border-color: var(--epr-accent); outline: none; }
.eprs-search-btn {
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    padding: 0.65rem 1.4rem;
    border: 1px solid var(--epr-accent);
    border-radius: 8px;
    background: var(--epr-accent);
    color: #fff;
    cursor: pointer;
}
.eprs-search-btn:hover { background: var(--link-hover); }
.eprs-search-hint { font-size: 0.76rem; color: var(--text-muted); margin-top: 0.5rem; max-width: 64ch; }
.eprs-search-hint a { color: var(--epr-accent); text-decoration: none; }
.eprs-results { margin-top: 1.6rem; }
.eprs-count { font-size: 0.82rem; color: var(--text-secondary); margin-bottom: 1rem; }
.eprs-empty { padding: 1.2rem 0; color: var(--text-muted); font-size: 0.9rem; }

/* result card */
.eprs-result {
    margin-bottom: 1.4rem;
    padding: 1.35rem 1.5rem 0.9rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: var(--epr-shadow);
}
.eprs-result h3 {
    font-family: var(--font-display);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    margin-bottom: 0.55rem;
}

/* summary chips */
.eprs-chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-bottom: 0.4rem; }
.eprs-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.74rem;
    color: var(--text-secondary);
    background: var(--bg-hover);
    border: 1px solid var(--border-light);
    border-radius: 999px;
    padding: 0.22rem 0.7rem;
    white-space: nowrap;
}
.eprs-chip b { font-weight: 700; color: var(--text-primary); }
.eprs-chip-cred { border-color: transparent; color: #fff; }
.eprs-chip-cred b, .eprs-chip-cred { font-feature-settings: "tnum"; }
.eprs-chip-cred.eprs-tl-asa { background: var(--epr-accent); }
.eprs-chip-cred.eprs-tl-cera { background: var(--epr-amber); }
.eprs-chip-cred.eprs-tl-fsa { background: var(--text-primary); }
.eprs-chip-cred b { color: #fff; }

/* journey timeline */
.eprs-jt-wrap { overflow-x: auto; margin: 0.4rem 0 0.2rem; }
.eprs-jt-wrap svg { width: 100%; min-width: 540px; height: auto; display: block; }
.eprs-jt-line { stroke: var(--border); stroke-width: 2; stroke-linecap: round; }
.eprs-jt-tick { stroke: var(--border); stroke-width: 1; }
.eprs-jt-year { font-family: var(--font-body); font-size: 10px; fill: var(--text-muted); text-anchor: middle; }
.eprs-jt-stem { stroke: var(--border); stroke-width: 1; }
.eprs-jt-dot { fill: var(--bg-primary); stroke: var(--epr-accent); stroke-width: 2; }
.eprs-jt-label { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; fill: var(--text-secondary); text-anchor: middle; }
.eprs-jt-cred.eprs-tl-asa { fill: var(--epr-accent); }
.eprs-jt-cred.eprs-tl-cera { fill: var(--epr-amber); }
.eprs-jt-cred.eprs-tl-fsa { fill: var(--text-primary); }
.eprs-jt-credlabel { font-family: var(--font-body); font-size: 11px; font-weight: 700; fill: var(--text-primary); text-anchor: middle; }
.eprs-jt-creddate { font-family: var(--font-body); font-size: 10px; fill: var(--text-muted); text-anchor: middle; }

/* event list, newest first */
.eprs-evtlist { list-style: none; padding: 0; margin: 0.5rem 0 0; }
.eprs-evt {
    display: grid;
    grid-template-columns: 92px 1fr auto auto;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem 0.15rem;
    border-top: 1px solid var(--border-light);
    font-size: 0.84rem;
}
.eprs-evt-pill {
    justify-self: start;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--epr-accent);
    background: rgba(26, 86, 196, 0.07);
    border: 1px solid rgba(26, 86, 196, 0.18);
    border-radius: 999px;
    padding: 0.14rem 0.6rem;
    white-space: nowrap;
}
.eprs-evt-pill-cred { color: #fff; border-color: transparent; }
.eprs-evt-pill-cred.eprs-tl-asa { background: var(--epr-accent); }
.eprs-evt-pill-cred.eprs-tl-cera { background: var(--epr-amber); }
.eprs-evt-pill-cred.eprs-tl-fsa { background: var(--text-primary); }
.eprs-evt-period { font-weight: 600; color: var(--text-primary); font-feature-settings: "tnum"; }
.eprs-evt-kind { font-size: 0.74rem; color: var(--text-muted); }
.eprs-evt-src {
    font-size: 0.74rem;
    color: var(--text-muted);
    text-decoration: none;
    white-space: nowrap;
}
.eprs-evt-src:hover { color: var(--epr-accent); }
@media (max-width: 640px) {
    .eprs-result { padding: 1.1rem 1.1rem 0.7rem; }
    .eprs-evt { grid-template-columns: auto 1fr auto; }
    .eprs-evt-kind { display: none; }
}

@media (max-width: 768px) {
    .eprs-bar-row { grid-template-columns: 70px 1fr 52px; }
    .eprs-bar-note { display: none; }
    .eprs-twocol { grid-template-columns: 1fr; }
}

/* hub tools strip (SOA analytics + name lookup) */
.epr-hlrow-tools { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0.9rem; }
@media (max-width: 900px) { .epr-hlrow-tools { grid-template-columns: 1fr; } }

/* cohort benchmark comparison (name lookup) */
.eprs-bm {
    margin: 0.9rem 0 0.4rem;
    padding: 0.85rem 1rem 0.7rem;
    background: var(--bg-secondary);
    border: 1px solid var(--border-light);
    border-radius: 8px;
}
.eprs-bm-title {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 0.6rem;
}
.eprs-bm-sub { display: block; font-weight: 400; font-size: 0.68rem; color: var(--text-muted); margin-top: 0.15rem; max-width: 70ch; }
.eprs-bm-row {
    display: grid;
    grid-template-columns: 44px 1fr minmax(0, 260px);
    align-items: center;
    gap: 0.8rem;
    padding: 0.35rem 0;
}
.eprs-bm-desig {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-align: center;
    color: #fff;
    border-radius: 999px;
    padding: 0.14rem 0;
}
.eprs-bm-desig.eprs-tl-asa { background: var(--epr-accent); }
.eprs-bm-desig.eprs-tl-cera { background: var(--epr-amber); }
.eprs-bm-desig.eprs-tl-fsa { background: var(--text-primary); }
.eprs-bm-track {
    position: relative;
    height: 18px;
    background: var(--bg-primary);
    border: 1px solid var(--border-light);
    border-radius: 999px;
}
.eprs-bm-range, .eprs-bm-mid {
    position: absolute;
    top: 3px;
    bottom: 3px;
    border-radius: 999px;
}
.eprs-bm-range { background: rgba(26, 86, 196, 0.10); }
.eprs-bm-mid { background: rgba(26, 86, 196, 0.22); }
.eprs-bm-median {
    position: absolute;
    top: 1px;
    bottom: 1px;
    width: 2px;
    margin-left: -1px;
    background: var(--text-muted);
    border-radius: 1px;
}
.eprs-bm-you {
    position: absolute;
    top: 50%;
    width: 12px;
    height: 12px;
    margin: -6px 0 0 -6px;
    border-radius: 50%;
    border: 2px solid var(--bg-primary);
    box-shadow: 0 1px 3px rgba(14, 14, 12, 0.35);
}
.eprs-bm-you.eprs-tl-asa { background: var(--epr-accent); }
.eprs-bm-you.eprs-tl-cera { background: var(--epr-amber); }
.eprs-bm-you.eprs-tl-fsa { background: var(--text-primary); }
.eprs-bm-note { font-size: 0.74rem; color: var(--text-secondary); }
.eprs-bm-note b { color: var(--text-primary); font-feature-settings: "tnum"; }
@media (max-width: 640px) {
    .eprs-bm-row { grid-template-columns: 44px 1fr; }
    .eprs-bm-note { grid-column: 1 / -1; padding-left: 2px; }
}

/* journey timeline endpoint dates */
.eprs-jt-edge { font-family: var(--font-body); font-size: 10.5px; font-weight: 600; fill: var(--text-secondary); }
