/* ExpWithEVs theme. Palette C, navy and green.
   Layout: one column, navy header and footer, a pale band for the region tabs. */

:root {
    --navy: #1B2A41;
    --ink: #2E3A4D;
    --soft: #3E4A5E;
    --muted: #5B6678;
    --rule: #DDE3EA;
    --rule-strong: #C9D3DF;
    --band: #EEF2F7;
    --surface: #F7F9FC;
    --paper: #FFFFFF;
    --green: #2CAE4A;
    --link: #1E7A34;
    --link-hover: #145A25;
    --on-navy: #DCE3EE;
    --on-navy-muted: #A9B6C8;
    --font: 'Overpass', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
    --mono: 'Overpass Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
    --gutter: clamp(20px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: clip;
}

img { max-width: 100%; height: auto; }

a { color: var(--link); text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }

a:focus-visible, button:focus-visible, input:focus-visible {
    outline: 2px solid var(--link);
    outline-offset: 3px;
}

::selection { background: var(--green); color: var(--navy); }

.skip-link {
    position: absolute;
    left: -9999px;
    top: 12px;
    z-index: 100;
    padding: 10px 14px;
    background: var(--paper);
    color: var(--navy);
    font-weight: 700;
}
.skip-link:focus { left: 16px; }

.wrap {
    max-width: 1240px;
    margin-inline: auto;
    padding-left: max(var(--gutter), env(safe-area-inset-left, 0px));
    padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Labels and small print */
.label, .facts, .kicker, .section-note, .facts-list dt, .row-label, .row-date, .byline, .footer-note {
    font-family: var(--mono);
    font-size: 13px;
    letter-spacing: 0.05em;
    color: var(--muted);
}
.label, .facts, .kicker, .facts-list dt { text-transform: uppercase; }

/* Header */
.site-header { background: var(--navy); }
.site-header-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 24px;
    padding-block: 20px;
}
.brand { display: flex; align-items: center; min-height: 44px; text-decoration: none; }
.brand img { display: block; height: 34px; width: auto; }
.brand-text { color: var(--paper); font-weight: 800; font-size: 22px; }
.site-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 4px 24px;
    font-size: 15px;
    font-weight: 600;
}
.site-nav a { color: var(--on-navy); text-decoration: none; padding-block: 10px; }
.site-nav a:hover { color: var(--paper); text-decoration: underline; }
.site-nav .nav-cta {
    background: var(--green);
    color: var(--navy);
    font-weight: 800;
    padding: 11px 18px;
    border-radius: 2px;
}
.site-nav .nav-cta:hover { color: var(--navy); background: #3BC25A; text-decoration: none; }
.site-header a:focus-visible, .site-footer a:focus-visible, .data-band a:focus-visible { outline-color: var(--paper); }

/* Hero */
.hero, .region-hero {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-block: clamp(56px, 8vw, 104px) clamp(44px, 6vw, 80px);
}
.hero-title {
    margin: 0;
    max-width: 13ch;
    color: var(--navy);
    font-size: clamp(42px, 6.6vw, 96px);
    line-height: 0.96;
    font-weight: 900;
    letter-spacing: -0.025em;
    text-wrap: balance;
}
.region-hero .hero-title { max-width: none; font-size: clamp(40px, 5.4vw, 76px); }
.lede {
    margin: 0;
    max-width: 60ch;
    color: var(--soft);
    font-size: clamp(18px, 1.5vw, 20px);
}
.facts { margin: 0; display: flex; flex-wrap: wrap; gap: 8px 28px; }

/* Flags */
.flags { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.flag {
    display: block;
    flex: none;
    width: 24px;
    height: 18px;
    object-fit: cover;
    outline: 1px solid var(--rule);
}

/* Region band */
.band { background: var(--band); border-block: 1px solid var(--rule); }
.band-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    padding-block: clamp(48px, 6vw, 80px);
}
.band-head { display: flex; flex-direction: column; gap: 6px; }
.band-title, .section-title, .page-title {
    margin: 0;
    color: var(--navy);
    font-weight: 900;
    letter-spacing: -0.02em;
    line-height: 1.08;
    text-wrap: balance;
}
.band-title { font-size: clamp(30px, 3.2vw, 44px); }
.section-title, .page-title { font-size: clamp(28px, 2.6vw, 36px); }
.band-sub { margin: 0; color: var(--soft); }

.tabs { display: flex; flex-wrap: wrap; gap: 12px; }
.tab {
    flex: 1 1 200px;
    min-height: 68px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 14px 18px;
    border: 1px solid var(--rule-strong);
    border-radius: 2px;
    background: var(--paper);
    color: var(--navy);
    font: inherit;
    text-align: left;
    cursor: pointer;
}
.tab:hover { border-color: var(--navy); }
.tab[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: var(--paper); }
.tab[aria-selected="true"] .flag { outline-color: var(--soft); }
.tab-name { font-size: 20px; font-weight: 800; line-height: 1.2; }

.panel {
    background: var(--paper);
    border: 1px solid #D6DEE8;
    border-radius: 2px;
    padding: clamp(22px, 3vw, 40px);
}
.js [data-region-pane]:not(.is-active) { display: none; }
.panel + .panel { margin-top: 0; }
.panel-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 32px 56px;
}
.panel-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.panel-copy p { margin: 0; max-width: 54ch; color: var(--soft); }
.panel-title {
    margin: 0;
    color: var(--navy);
    font-size: 30px;
    line-height: 1.1;
    font-weight: 900;
    letter-spacing: -0.015em;
}
.more-link { align-self: flex-start; font-weight: 800; font-size: 18px; padding-block: 10px; }

.facts-list {
    margin: 0;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    gap: 14px 24px;
    align-content: start;
    min-width: 0;
}
.facts-list dt { padding-top: 3px; }
.facts-list dd { margin: 0; min-width: 0; }
.country, .status { display: flex; align-items: center; gap: 10px; }
.country-list { display: flex; flex-direction: column; gap: 8px; }
.dot { flex: none; width: 10px; height: 10px; background: var(--green); }
.dot.is-pending { background: transparent; border: 2px solid var(--muted); }

/* Sections and lists */
.section { padding-block: clamp(56px, 7vw, 96px) clamp(24px, 4vw, 48px); }
.section-head {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    justify-content: space-between;
    gap: 8px 32px;
    margin-bottom: 20px;
}
.section-note { margin: 0; }

.rows { margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--rule); }
.row { border-bottom: 1px solid var(--rule); }
.row a {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 28px;
    padding-block: 22px;
    color: var(--navy);
    text-decoration: none;
}
.row-label { flex: 0 0 170px; display: flex; align-items: center; gap: 10px; }
.row-title {
    flex: 1 1 360px;
    min-width: 0;
    font-size: clamp(19px, 1.7vw, 23px);
    font-weight: 700;
    line-height: 1.3;
}
.row a:hover .row-title { text-decoration: underline; text-underline-offset: 4px; }
.all-link { margin: 18px 0 0; font-weight: 800; }

.badge {
    display: inline-block;
    margin-left: 8px;
    vertical-align: middle;
    padding: 2px 8px;
    border: 1px solid var(--link);
    border-radius: 2px;
    color: var(--link);
    font-family: var(--mono);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.kicker .badge { margin-left: 0; }

.empty {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 32px;
    padding-block: 26px;
    border-block: 1px solid var(--rule);
}
.empty-copy { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; color: var(--soft); }

/* Signup */
.split {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 36px 72px;
    align-items: start;
}
.split-copy { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.split-copy p { margin: 0; max-width: 50ch; color: var(--soft); }

.signup { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.field { display: flex; flex-direction: column; gap: 8px; }
.input {
    width: 100%;
    min-height: 52px;
    padding: 12px 14px;
    border: 1px solid var(--rule-strong);
    border-radius: 2px;
    background: var(--paper);
    color: var(--navy);
    font: inherit;
    font-size: 18px;
}
.input:focus { border-color: var(--navy); }
.choices { margin: 0; padding: 0; border: 0; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.choices legend { padding: 0; margin-bottom: 8px; }
.choice { display: flex; align-items: center; gap: 14px; min-height: 52px; cursor: pointer; }
.choice input { flex: none; width: 22px; height: 22px; margin: 0; accent-color: var(--navy); }
.choice-text { display: flex; flex-direction: column; min-width: 0; }
.choice-name { color: var(--navy); font-weight: 700; }
.choice-note { color: var(--muted); font-size: 14px; }

.button {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    min-height: 52px;
    padding: 12px 28px;
    border: 0;
    border-radius: 2px;
    background: var(--green);
    color: var(--navy);
    font: inherit;
    font-size: 18px;
    font-weight: 800;
    text-decoration: none;
    cursor: pointer;
}
.button:hover { background: #3BC25A; color: var(--navy); }
.signup.loading .button { opacity: 0.65; pointer-events: none; }

.form-messages { display: flex; flex-direction: column; gap: 8px; }
.msg { display: none; margin: 0; padding: 12px 14px; border-radius: 2px; font-size: 16px; }
.msg-success, .msg-india { background: #E8F5EC; color: #134A21; }
.msg-choice, .msg-error { background: #FBEAEA; color: #7A1F1F; }
.signup.success .msg-success,
.signup.india-handoff .msg-india,
.signup.needs-choice .msg-choice,
.signup.error .msg-error { display: block; }
.msg-error:empty { display: none !important; }

/* Data band */
.data-band { background: var(--navy); color: var(--paper); }
.data-inner {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    gap: 24px 72px;
    align-items: end;
    padding-block: clamp(48px, 6vw, 80px);
}
.data-band .section-title { color: var(--paper); }
.data-band .split-copy p { color: var(--on-navy); }
.data-contact { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.data-contact .label { color: var(--on-navy-muted); }
.email { font-weight: 800; user-select: all; overflow-wrap: anywhere; }
.data-contact .email { font-size: clamp(22px, 2.2vw, 28px); }

/* Footer */
.site-footer { background: var(--navy); color: var(--paper); border-top: 1px solid #2E3F5A; }
.site-footer-inner {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px 48px;
    padding-block: 40px 48px;
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { display: block; width: 40px; height: 40px; }
.footer-brand-text { display: flex; flex-direction: column; }
.footer-name { font-weight: 800; }
.footer-tagline { color: var(--on-navy-muted); font-size: 15px; }
.footer-nav { display: flex; flex-wrap: wrap; gap: 4px 24px; font-size: 15px; }
.footer-nav a { color: var(--on-navy); padding-block: 10px; }
.footer-nav a:hover { color: var(--paper); }
.footer-note { flex-basis: 100%; margin: 0; color: var(--on-navy-muted); }

/* Article */
.article {
    max-width: 760px;
    margin-inline: auto;
    padding-left: max(clamp(20px, 5vw, 32px), env(safe-area-inset-left, 0px));
    padding-right: max(clamp(20px, 5vw, 32px), env(safe-area-inset-right, 0px));
    padding-block: clamp(44px, 7vw, 88px) clamp(56px, 8vw, 104px);
}
.article-head { display: flex; flex-direction: column; gap: 18px; margin-bottom: 32px; }
.kicker { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.kicker a { color: var(--muted); text-decoration: none; }
.kicker a:hover { color: var(--navy); text-decoration: underline; }
.article-title {
    margin: 0;
    color: var(--navy);
    font-size: clamp(34px, 4.4vw, 54px);
    line-height: 1.05;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-wrap: balance;
}
.dek { margin: 0; color: var(--soft); font-size: clamp(19px, 1.8vw, 22px); line-height: 1.45; }
.byline { margin: 0; font-size: 14px; letter-spacing: 0.02em; }
.byline a { color: inherit; }
.feature-image { margin: 0 0 36px; }
.feature-image img { display: block; width: 100%; }
.feature-image figcaption, .gh-content figcaption {
    margin-top: 10px;
    color: var(--muted);
    font-size: 15px;
    text-align: center;
}

.gh-content { font-size: 19px; line-height: 1.65; color: var(--ink); }
.gh-content > * + * { margin-top: 1.2em; }
.gh-content > * { margin-bottom: 0; }
.gh-content > :first-child { margin-top: 0; }
.gh-content h2, .gh-content h3, .gh-content h4 {
    color: var(--navy);
    line-height: 1.15;
    letter-spacing: -0.015em;
    text-wrap: balance;
}
.gh-content h2 { margin-top: 1.9em; font-size: clamp(26px, 2.4vw, 30px); font-weight: 900; }
.gh-content h3 { margin-top: 1.6em; font-size: 23px; font-weight: 800; }
.gh-content h4 { margin-top: 1.4em; font-size: 19px; font-weight: 800; }
.gh-content ul, .gh-content ol { padding-left: 1.3em; }
.gh-content li + li { margin-top: 0.4em; }
.gh-content blockquote:not([class]) {
    margin-left: 0;
    padding-left: 20px;
    border-left: 3px solid var(--navy);
    color: var(--soft);
}
.gh-content hr { border: 0; border-top: 1px solid var(--rule); margin-block: 2.4em; }
.gh-content figure { margin-inline: 0; }
.gh-content img { display: block; }
.gh-content code { font-family: var(--mono); font-size: 0.85em; background: var(--surface); padding: 0.1em 0.35em; border-radius: 2px; }
.gh-content pre { overflow-x: auto; padding: 16px; background: var(--surface); border: 1px solid var(--rule); border-radius: 2px; }
.gh-content pre code { background: none; padding: 0; }
.gh-content table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    border-collapse: collapse;
    font-size: 16px;
    font-variant-numeric: tabular-nums;
}
.gh-content th, .gh-content td { padding: 10px 12px; border-bottom: 1px solid var(--rule); text-align: left; vertical-align: top; }
.gh-content th { font-family: var(--mono); font-size: 13px; letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--rule-strong); }
.gh-content iframe { max-width: 100%; }

.kg-width-wide {
    position: relative;
    width: min(1040px, calc(100vw - 40px));
    left: 50%;
    transform: translateX(-50%);
}
.kg-width-full {
    position: relative;
    width: 100vw;
    left: 50%;
    transform: translateX(-50%);
}
.kg-width-full img { width: 100%; }

/* Member box (shown where the paid part of a post starts) */
.member-box {
    margin-top: 2em;
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: clamp(22px, 4vw, 40px);
    background: var(--band);
    border: 1px solid var(--rule-strong);
    border-top: 4px solid var(--navy);
    border-radius: 2px;
    font-size: 17px;
    line-height: 1.5;
}
.member-box-title { margin: 0; color: var(--navy); font-size: 28px; line-height: 1.15; font-weight: 900; letter-spacing: -0.015em; }
.member-box-copy { margin: 0; color: var(--soft); }
.member-box-price { margin: 0; display: flex; flex-direction: column; gap: 2px; }
.member-box-price strong { color: var(--navy); font-weight: 800; }
.member-box-price span { color: var(--soft); }
.member-box-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.text-link { padding-block: 10px; font-weight: 600; font-size: 16px; }
.member-box-data, .post-data-line {
    margin: 0;
    padding-top: 16px;
    border-top: 1px solid var(--rule-strong);
    color: var(--soft);
    font-size: 16px;
}
.post-data-line { margin-top: 2.4em; padding-top: 20px; border-top-color: var(--rule); font-size: 17px; }
.post-data-line .email, .member-box-data .email { color: var(--navy); }

/* End of free posts: signup for visitors, membership line for free members */
.post-signup {
    margin-top: 3em;
    padding-top: 28px;
    border-top: 4px solid var(--navy);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.post-signup-title { margin: 0; color: var(--navy); font-size: 28px; line-height: 1.15; font-weight: 900; letter-spacing: -0.015em; }
.post-signup-copy { margin: 0 0 6px; color: var(--soft); font-size: 17px; }
.post-member-line {
    margin: 2.4em 0 0;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    color: var(--soft);
    font-size: 17px;
}
.post-member-line a { font-weight: 700; }

/* Welcome page after checkout */
.welcome { padding-block: clamp(48px, 9vw, 112px); display: flex; flex-direction: column; gap: 18px; }
.welcome .hero-title { margin: 0; }
.welcome .lede { margin: 0; }
.welcome-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 8px; }
.welcome-note { margin: 8px 0 0; color: var(--soft); font-size: 16px; max-width: 60ch; }
.welcome-note .email { color: var(--navy); }

/* Pagination */
.pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 28px;
    font-family: var(--mono);
    font-size: 14px;
    color: var(--muted);
}
.pagination a { font-weight: 600; padding-block: 10px; }

.error-page { display: flex; flex-direction: column; gap: 18px; min-height: 50vh; }

@media (max-width: 600px) {
    .row-label { flex-basis: 100%; }
    .site-nav { gap: 0 18px; }
}

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