/* ============================================================
   ELECTE brand layer for Headline
   Loaded after built/screen.css in default.hbs.
   Tokens are centralized here; adjust hex values in :root only.
   ============================================================ */

:root {
    --font-sans: 'Albert Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

    --electe-navy: #1a1f36;
    --electe-navy-soft: #3a4161;
    --electe-muted: #5b637a;
    --electe-line: #e3e6ee;
    --electe-paper: #f6f7fa;
}

/* ---- Typography ------------------------------------------ */

.gh-article-title,
.gh-topic-name,
.gh-card-title,
.gh-subscribe-title {
    font-weight: 700;
    letter-spacing: -0.02em;
}

/* ---- Buttons --------------------------------------------- */

.gh-btn,
.gh-head-btn {
    border-radius: 9px;
    font-family: var(--font-sans);
    font-weight: 600;
}

/* ---- Language switcher ------------------------------------ */

.electe-lang {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-left: var(--head-nav-gap, 32px);
    font-family: var(--font-sans);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.electe-lang-link {
    color: inherit;
    opacity: 0.55;
    text-decoration: none;
    padding: 2px 1px;
    border-bottom: 2px solid transparent;
    transition: opacity 0.15s ease;
}

.electe-lang-link:hover {
    opacity: 0.85;
}

.electe-lang-link.is-active {
    opacity: 1;
    font-weight: 700;
    border-bottom-color: currentColor;
}

.electe-lang-sep {
    opacity: 0.35;
}

/* In the stacked/burger mobile menu the switcher inherits the
   vertical nav layout; keep it horizontal and separated. */
@media (max-width: 767px) {
    .gh-head-menu .electe-lang {
        margin: 12px 0 0;
    }
}

/* ---- Footer subscribe panel (signature surface) ------------ */

.gh-subscribe {
    background-color: var(--electe-navy);
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    border-radius: 14px;
    padding: 56px 32px;
}

.gh-subscribe-title,
.gh-subscribe-description {
    color: #fff;
}

.gh-subscribe-description {
    opacity: 0.82;
}

.gh-subscribe .gh-subscribe-btn {
    background: #fff;
    color: var(--electe-navy);
}

/* ---- Footer ------------------------------------------------ */

.gh-copyright {
    font-family: var(--font-sans);
    color: var(--electe-muted);
}

/* ---- Embeds / podcast -------------------------------------- */

.gh-content .kg-embed-card iframe {
    width: 100%;
    border: 0;
    border-radius: 12px;
}

/* Buzzsprout players arrive either as an iframe embed or as a
   script-injected container div; cover both. */
.gh-content div[id^="buzzsprout"],
.gh-content .kg-html-card iframe[src*="buzzsprout"] {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

.electe-podcast .gh-content > .kg-embed-card,
.electe-podcast .gh-content > .kg-html-card {
    margin-top: 2.4rem;
    margin-bottom: 2.4rem;
}

.electe-podcast-platforms {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 2.4rem 0 0;
    padding: 0;
    list-style: none;
}

.electe-podcast-platforms a {
    display: inline-block;
    padding: 9px 16px;
    font-family: var(--font-sans);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--electe-navy);
    background: var(--electe-paper);
    border: 1px solid var(--electe-line);
    border-radius: 9px;
    text-decoration: none;
    transition: border-color 0.15s ease;
}

.electe-podcast-platforms a:hover {
    border-color: var(--electe-navy);
}

/* ============================================================
   ELECTE design layer v2 — masthead, ledger listings, data type
   ============================================================ */

:root {
    --font-mono: 'Spline Sans Mono', 'SF Mono', Menlo, Consolas, monospace;
    /* Signal gold: reserved exclusively for forecast/data accents. */
    --electe-signal: #e0a73f;
}

::selection {
    background: var(--electe-navy);
    color: #fff;
}

/* Ledger binding: a firm rule across the very top of the site. */
.gh-site {
    border-top: 3px solid var(--electe-navy);
}

/* ---- Masthead ---------------------------------------------- */

.electe-hero {
    position: relative;
    background-color: var(--electe-navy);
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    color: #fff;
    overflow: hidden;
}

.electe-hero-inner {
    position: relative;
    z-index: 2;
    padding: 88px 0 200px;
}

.electe-hero-meta {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 30px;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.62);
}

.electe-hero-meta-sep {
    width: 22px;
    height: 1px;
    background: rgba(255, 255, 255, 0.3);
}

.electe-hero-title {
    margin: 0 0 22px;
    font-family: var(--font-sans);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 700;
    line-height: 1.02;
    letter-spacing: -0.035em;
    color: #fff;
}

.electe-hero-desc {
    margin: 0;
    max-width: 52ch;
    font-family: var(--font-sans);
    font-size: 1.8rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.78);
}

.electe-hero-actions {
    margin-top: 34px;
}

.electe-hero-btn {
    display: inline-block;
    padding: 14px 30px;
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 600;
    color: var(--electe-navy);
    background: #fff;
    border-radius: 9px;
    text-decoration: none;
    transition: transform 0.15s ease;
}

.electe-hero-btn:hover {
    transform: translateY(-1px);
}

/* Chart band along the masthead's lower edge */
.electe-hero-chart-wrap {
    position: absolute;
    inset: auto 0 0 0;
    height: 200px;
    z-index: 1;
    pointer-events: none;
}

.electe-hero-chart {
    width: 100%;
    height: 100%;
    display: block;
}

.electe-hero-history {
    fill: none;
    stroke: rgba(255, 255, 255, 0.85);
    stroke-width: 2.25;
    stroke-linecap: round;
}

.electe-hero-forecast {
    fill: none;
    stroke: var(--electe-signal);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-dasharray: 2 8;
}

.electe-hero-rule {
    stroke: rgba(255, 255, 255, 0.28);
    stroke-width: 1;
    stroke-dasharray: 4 5;
}

.electe-hero-node {
    fill: var(--electe-signal);
}

.electe-hero-today {
    position: absolute;
    left: 63.3%;
    bottom: 162px;
    transform: translateX(10px);
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.55);
}

@media (prefers-reduced-motion: no-preference) {
    .electe-hero-history {
        stroke-dasharray: 1300;
        stroke-dashoffset: 1300;
        animation: electe-hero-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
    }
    .electe-hero-forecast,
    .electe-hero-node,
    .electe-hero-rule,
    .electe-hero-today {
        opacity: 0;
        animation: electe-hero-fade 0.7s ease 1.7s forwards;
    }
}

@keyframes electe-hero-draw { to { stroke-dashoffset: 0; } }
@keyframes electe-hero-fade { to { opacity: 1; } }

@media (max-width: 767px) {
    .electe-hero-inner { padding: 56px 0 150px; }
    .electe-hero-chart-wrap { height: 130px; }
    .electe-hero-today { bottom: 104px; }
    .electe-hero-desc { font-size: 1.6rem; }
}

/* ---- Ledger listings --------------------------------------- */

/* Dateline first: author/date move above the title, set in mono. */
.gh-card-wrapper {
    display: flex;
    flex-direction: column;
}

.gh-card-footer {
    order: -1;
    margin: 0 0 10px;
    padding-top: 12px;
    border-top: 1px solid var(--electe-navy);
    font-family: var(--font-mono);
    font-size: 1.15rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--electe-muted);
}

.gh-card:hover .gh-card-footer {
    border-top-color: var(--electe-signal);
}

.gh-card-date {
    color: var(--electe-navy);
}

.gh-card-title {
    font-weight: 700;
    letter-spacing: -0.015em;
}

/* Section names as axis labels: mono eyebrow with a trailing rule. */
.gh-topic-name {
    display: flex;
    align-items: center;
    gap: 18px;
    font-family: var(--font-mono);
    font-size: 1.35rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--electe-navy);
}

.gh-topic-name::before {
    content: "";
    flex: none;
    width: 9px;
    height: 9px;
    background: var(--electe-signal);
}

.gh-topic-name::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--electe-line);
}

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

.gh-article-date,
.gh-article-length {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gh-article-title {
    letter-spacing: -0.03em;
}

/* ============================================================
   ELECTE design layer v3 — article, author, tag, archive, 404
   ============================================================ */

/* ---- Reading progress: the today-marker as you read --------- */

.electe-progress {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    z-index: 1000;
    background-image: repeating-linear-gradient(
        90deg,
        var(--electe-signal) 0 4px,
        transparent 4px 11px
    );
}

.electe-progress-bar {
    display: block;
    width: 0;
    height: 100%;
    background: var(--electe-navy);
}

/* ---- Article dateline --------------------------------------- */

.electe-dateline {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 18px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--electe-muted);
}

.electe-dateline-tag {
    color: var(--electe-navy);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid var(--electe-signal);
}

.electe-dateline-sep {
    width: 18px;
    height: 1px;
    background: var(--electe-line);
}

.electe-dateline-lang {
    padding: 2px 7px;
    border: 1px solid var(--electe-line);
    border-radius: 4px;
    color: var(--electe-navy);
}

/* Headline centers article headers; left-align the dateline when
   the header is left-aligned on narrow viewports. */
@media (max-width: 767px) {
    .electe-dateline { justify-content: flex-start; }
}

/* ---- Page heads: author, tag, archive, related --------------- */

.electe-pagehead-kicker {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 0 10px;
    font-family: var(--font-mono);
    font-size: 1.25rem;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--electe-muted);
}

.electe-pagehead-kicker::before {
    content: "";
    width: 9px;
    height: 9px;
    background: var(--electe-signal);
}

.gh-pagehead-title {
    font-weight: 700;
    letter-spacing: -0.025em;
}

.electe-pagehead-stats {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 14px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--electe-muted);
}

/* Author portrait: ledger frame instead of a plain circle */
.gh-pagehead .gh-author-image,
.gh-pagehead .gh-author-image img {
    border-radius: 14px;
}

.gh-pagehead .gh-author-image {
    border: 1px solid var(--electe-line);
    padding: 4px;
    background: #fff;
}

.gh-author-social-link {
    color: var(--electe-navy);
}

/* ---- 404 ----------------------------------------------------- */

.electe-404 {
    max-width: 640px;
    margin: 0 auto;
    padding: 96px 0 120px;
    text-align: left;
}

.electe-404-chart {
    width: 100%;
    height: auto;
    margin-bottom: 28px;
}

.electe-404-line {
    fill: none;
    stroke: var(--electe-navy);
    stroke-width: 2.25;
    stroke-linecap: round;
}

.electe-404-node {
    fill: none;
    stroke: var(--electe-signal);
    stroke-width: 2;
}

.electe-404-code {
    margin: 0 0 10px;
    font-family: var(--font-mono);
    font-size: 1.3rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--electe-muted);
}

.electe-404-title {
    margin: 0 0 24px;
    font-family: var(--font-sans);
    font-size: clamp(3.2rem, 6vw, 5.2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--electe-navy);
}

.electe-404-links {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-sans);
    font-size: 1.6rem;
    font-weight: 600;
}

.electe-404-links a {
    color: var(--electe-navy);
    text-decoration: none;
    border-bottom: 2px solid var(--electe-signal);
}

/* ============================================================
   ELECTE design layer v4 — footer field
   Headline's footer is dark by design (--color-darker-gray).
   Rebrand the field to ELECTE navy with the masthead's texture,
   and let the subscribe block sit directly on it.
   ============================================================ */

.gh-foot {
    background-color: var(--electe-navy);
    background-image:
        linear-gradient(to right, rgba(255, 255, 255, 0.05) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
    background-size: 56px 56px;
    font-family: var(--font-sans);
}

/* Undo the v2 panel-in-a-panel: the footer itself is now the field. */
.gh-subscribe {
    background: none;
    border-radius: 0;
    padding: 0 32px;
}

.gh-subscribe-title {
    position: relative;
    display: inline-block;
    padding-bottom: 18px;
}

/* Gold dotted rule: the forecast line, centered under the title. */
.gh-subscribe-title::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 88px;
    transform: translateX(-50%);
    border-bottom: 3px dotted var(--electe-signal);
}

.gh-subscribe-description {
    font-family: var(--font-sans);
    color: rgba(255, 255, 255, 0.78);
}

.gh-foot .gh-copyright,
.gh-foot .gh-copyright a {
    color: rgba(255, 255, 255, 0.55);
}

/* ============================================================
   ELECTE design layer v5 — pre-filled pages
   ============================================================ */

.electe-podcast-player {
    border: 1px solid var(--electe-line);
    border-radius: 12px;
    overflow: hidden;
}

.electe-credentials {
    list-style: none;
    margin: 22px 0 0;
    padding: 0;
    max-width: 56ch;
}

.electe-credentials li {
    position: relative;
    padding: 10px 0 10px 26px;
    border-top: 1px solid var(--electe-line);
    font-size: 1.5rem;
    line-height: 1.5;
    color: var(--electe-navy-soft);
}

.electe-credentials li:last-child {
    border-bottom: 1px solid var(--electe-line);
}

.electe-credentials li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 1.15em;
    width: 14px;
    height: 2px;
    background: var(--electe-navy);
}

.electe-credentials strong {
    color: var(--electe-navy);
    font-weight: 600;
}

/* ============================================================
   ELECTE design layer v6 — chart geometry fix, front page
   ============================================================ */

/* ---- Hero chart: resolution-independent geometry ------------ */
/* Paths carry pathLength="100"; all dash math is normalized, so
   the draw animation and dot pattern survive any viewport width. */

.electe-hero-forecast {
    stroke-dasharray: 0.45 1.35;
}

@media (prefers-reduced-motion: no-preference) {
    .electe-hero-history {
        stroke-dasharray: 100;
        stroke-dashoffset: 100;
        animation: electe-hero-draw 1.6s cubic-bezier(0.65, 0, 0.35, 1) 0.15s forwards;
    }
}

/* Node and Today rule live in HTML so they cannot distort.
   Anchor: history endpoint at x=760/1200 (63.333%), y=86/200 (43%). */
.electe-hero-rule {
    position: absolute;
    left: 63.333%;
    top: 7%;
    bottom: 7%;
    width: 0;
    border-left: 1px dashed rgba(255, 255, 255, 0.28);
}

.electe-hero-node {
    position: absolute;
    left: 63.333%;
    top: 43%;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--electe-signal);
    transform: translate(-50%, -50%);
}

.electe-hero-today {
    position: absolute;
    left: 63.333%;
    top: 7%;
    bottom: auto;
    transform: translateX(12px);
}

/* ---- Front page: lead entry + ledger ------------------------ */

.electe-front { display: block; }

.electe-lead {
    margin-bottom: 72px;
}

.electe-lead-link {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 480px;
    gap: 48px;
    align-items: center;
    text-decoration: none;
}

.electe-lead-link:hover { opacity: 1 !important; }

.electe-lead-dateline {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--electe-muted);
}

.electe-lead-title {
    font-family: var(--font-sans);
    font-size: clamp(2.8rem, 4.5vw, 4.6rem);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.03em;
    color: var(--electe-navy);
}

.electe-lead-link:hover .electe-lead-title {
    color: var(--electe-navy-soft);
}

.electe-lead-excerpt {
    margin-top: 18px;
    max-width: 58ch;
    font-size: 1.8rem;
    line-height: 1.55;
    color: var(--electe-muted);
}

.electe-lead-more {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 22px;
    font-family: var(--font-sans);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--electe-navy);
    border-bottom: 2px solid var(--electe-signal);
    padding-bottom: 2px;
}

.electe-lead-more svg { width: 15px; height: 15px; }

.electe-lead-media {
    margin: 0;
    padding: 5px;
    background: #fff;
    border: 1px solid var(--electe-line);
    border-radius: 14px;
    overflow: hidden;
}

.electe-lead-media img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 9px;
}

/* The ledger: register rows, not cards */
.electe-ledger .electe-pagehead-kicker {
    margin-bottom: 4px;
}

.electe-row { width: 100%; }

.electe-row-link {
    display: grid;
    grid-template-columns: 130px minmax(0, 1fr) auto 20px;
    gap: 24px;
    align-items: baseline;
    padding: 18px 0;
    border-top: 1px solid var(--electe-line);
    text-decoration: none;
    transition: background 0.15s ease;
}

.electe-row:last-of-type .electe-row-link {
    border-bottom: 1px solid var(--electe-line);
}

.electe-row-link:hover {
    opacity: 1 !important;
    background: var(--electe-paper);
}

.electe-row-date {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--electe-muted);
}

.electe-row-title {
    font-family: var(--font-sans);
    font-size: 1.9rem;
    font-weight: 600;
    line-height: 1.3;
    letter-spacing: -0.015em;
    color: var(--electe-navy);
}

.electe-row-tag {
    font-family: var(--font-mono);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--electe-muted);
    white-space: nowrap;
}

.electe-row-arrow {
    color: var(--electe-navy);
    opacity: 0;
    transition: opacity 0.15s ease;
}

.electe-row-arrow svg { width: 16px; height: 16px; }

.electe-row-link:hover .electe-row-arrow { opacity: 1; }

.electe-front-footer {
    margin-top: 28px;
    text-align: right;
}

/* Tag sections below keep their structure but gain breathing room */
.electe-front + .gh-topic-grid,
.electe-front ~ .gh-topic-grid:first-of-type {
    margin-top: 96px;
}

@media (max-width: 991px) {
    .electe-lead-link {
        grid-template-columns: 1fr;
        gap: 28px;
    }
    .electe-lead-media { order: -1; }
}

@media (max-width: 767px) {
    .electe-lead { margin-bottom: 48px; }
    .electe-row-link {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 16px 0;
    }
    .electe-row-tag, .electe-row-arrow { display: none; }
}

/* ============================================================
   ELECTE design layer v7 — chart handled in JS
   Neutralize earlier CSS dash animations; the script owns the
   draw. The rules below also keep the no-JS static fallback
   fully visible.
   ============================================================ */

.electe-hero-history {
    animation: none;
    stroke-dasharray: none;
    stroke-dashoffset: 0;
}

.electe-hero-forecast,
.electe-hero-rule,
.electe-hero-node,
.electe-hero-today {
    animation: none;
    opacity: 1;
}

/* ============================================================
   ELECTE design layer v8 — /subscribe page
   Mirrors the private-mode gate card, on the public site.
   ============================================================ */

.electe-sub {
    background-color: var(--electe-paper);
    background-image:
        linear-gradient(to right, rgba(26, 31, 54, 0.045) 1px, transparent 1px),
        linear-gradient(to bottom, rgba(26, 31, 54, 0.045) 1px, transparent 1px);
    background-size: 56px 56px;
    padding-top: 64px;
    padding-bottom: 80px;
}

.electe-sub-card {
    max-width: 620px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--electe-line);
    border-radius: 14px;
    padding: 48px 52px 44px;
    box-shadow: 0 24px 60px -28px rgba(26, 31, 54, 0.28);
}

.electe-masthead-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 28px;
}

.electe-sub-icon { width: 44px; height: 44px; border-radius: 10px; }

.electe-sub-kicker {
    font-family: var(--font-mono);
    font-size: 1.2rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--electe-muted);
}

.electe-sub-title {
    margin: 0 0 12px;
    font-family: var(--font-sans);
    font-size: clamp(2.8rem, 5vw, 3.6rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.12;
    color: var(--electe-navy);
}

.electe-sub-desc {
    margin: 0 0 24px;
    font-family: var(--font-sans);
    font-size: 1.65rem;
    line-height: 1.55;
    color: var(--electe-muted);
    max-width: 46ch;
}

/* Sparkline (static; draws on load, respects reduced motion) */
.electe-sub-spark { display: block; width: 100%; height: auto; margin: 4px 0 22px; }
.electe-sub-history {
    fill: none; stroke: var(--electe-navy); stroke-width: 2.5;
    stroke-linecap: round; stroke-linejoin: round;
}
.electe-sub-forecast {
    fill: none; stroke: var(--electe-signal); stroke-width: 2.5;
    stroke-linecap: round; stroke-dasharray: 2 7;
}
.electe-sub-node { fill: var(--electe-signal); }
.electe-sub-halo { fill: rgba(224, 167, 63, 0.18); }
.electe-sub-label {
    font-family: var(--font-mono); font-size: 10px; font-weight: 600;
    letter-spacing: 0.1em; text-transform: uppercase; fill: var(--electe-muted);
}
@media (prefers-reduced-motion: no-preference) {
    .electe-sub-history {
        stroke-dasharray: 520; stroke-dashoffset: 520;
        animation: electe-sub-draw 1.4s cubic-bezier(0.65, 0, 0.35, 1) 0.2s forwards;
    }
    .electe-sub-forecast, .electe-sub-node, .electe-sub-halo, .electe-sub-label {
        opacity: 0; animation: electe-sub-fade 0.6s ease 1.45s forwards;
    }
}
@keyframes electe-sub-draw { to { stroke-dashoffset: 0; } }
@keyframes electe-sub-fade { to { opacity: 1; } }

.electe-sub-stats {
    display: flex;
    gap: 36px;
    padding: 20px 0;
    border-top: 1px solid var(--electe-line);
    border-bottom: 1px solid var(--electe-line);
    margin-bottom: 24px;
}
.electe-sub-stat .num {
    display: block;
    font-family: var(--font-sans);
    font-size: 2rem; font-weight: 700; letter-spacing: -0.01em;
    color: var(--electe-navy);
}
.electe-sub-stat .lbl {
    display: block; margin-top: 2px;
    font-family: var(--font-mono);
    font-size: 1.1rem; font-weight: 500;
    letter-spacing: 0.08em; text-transform: uppercase;
    color: var(--electe-muted);
}

.electe-sub-topics { list-style: none; margin: 0 0 28px; padding: 0; }
.electe-sub-topics li {
    position: relative; padding-left: 28px; margin-bottom: 10px;
    font-family: var(--font-sans);
    font-size: 1.5rem; line-height: 1.55; color: var(--electe-navy-soft);
}
.electe-sub-topics li:last-child { margin-bottom: 0; }
.electe-sub-topics li::before {
    content: ""; position: absolute; left: 0; top: 0.62em;
    width: 14px; height: 2px; background: var(--electe-navy);
}
.electe-sub-topics strong { color: var(--electe-navy); font-weight: 600; }

/* Members signup form: Portal toggles .loading / .success / .error
   classes on the form element. */
.electe-sub-fields { display: flex; gap: 10px; }
.electe-sub-input {
    flex: 1; height: 50px; padding: 0 16px;
    font-family: var(--font-sans); font-size: 1.5rem;
    color: var(--electe-navy); background: #fff;
    border: 1.5px solid var(--electe-line); border-radius: 9px;
    outline: none; transition: border-color 0.15s ease;
}
.electe-sub-input:focus {
    border-color: var(--electe-navy);
    box-shadow: 0 0 0 3px rgba(26, 31, 54, 0.12);
}
.electe-sub-btn {
    height: 50px; padding: 0 26px;
    font-family: var(--font-sans); font-size: 1.5rem; font-weight: 600;
    color: #fff; background: var(--electe-navy);
    border: none; border-radius: 9px; cursor: pointer;
    transition: background 0.15s ease;
}
.electe-sub-btn:hover { background: var(--electe-navy-soft); }
.electe-sub-form.loading .electe-sub-btn { opacity: 0.6; pointer-events: none; }

.electe-sub-msg {
    display: none; margin: 12px 0 0;
    font-family: var(--font-sans); font-size: 1.35rem;
}
.electe-sub-form.success .electe-sub-fields { display: none; }
.electe-sub-form.success .electe-sub-msg-success { display: block; color: var(--electe-navy); }
.electe-sub-form.error .electe-sub-msg-error { display: block; color: #b3261e; }

.electe-sub-extra { margin-top: 28px; }

.electe-sub-legal {
    margin-top: 24px;
    font-family: var(--font-sans);
    font-size: 1.25rem; color: var(--electe-muted);
}

@media (max-width: 560px) {
    .electe-sub-card { padding: 34px 26px 30px; }
    .electe-sub-stats { gap: 22px; }
    .electe-sub-fields { flex-direction: column; }
    .electe-sub-btn { width: 100%; }
}
