/*
Theme Name: E Ration Card Download
Theme URI: https://erationcarddownload.com/
Description: Independent help for e-ration card download, status, lists, eKYC and corrections, state by state. Card sleeve page heads, step tracks, a state card wall and a portal finder.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
Text Domain: erationcarddownload
*/

@font-face { font-family: "Host Grotesk"; font-weight: 500; font-display: swap; src: url(assets/fonts/host-grotesk-latin-500-normal.woff2) format("woff2"); }
@font-face { font-family: "Host Grotesk"; font-weight: 700; font-display: swap; src: url(assets/fonts/host-grotesk-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Host Grotesk"; font-weight: 800; font-display: swap; src: url(assets/fonts/host-grotesk-latin-800-normal.woff2) format("woff2"); }
@font-face { font-family: "Sofia Sans"; font-weight: 400; font-display: swap; src: url(assets/fonts/sofia-sans-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Sofia Sans"; font-weight: 400; font-style: italic; font-display: swap; src: url(assets/fonts/sofia-sans-latin-400-italic.woff2) format("woff2"); }
@font-face { font-family: "Sofia Sans"; font-weight: 600; font-display: swap; src: url(assets/fonts/sofia-sans-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Sofia Sans"; font-weight: 700; font-display: swap; src: url(assets/fonts/sofia-sans-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu Sans Mono"; font-weight: 400; font-display: swap; src: url(assets/fonts/ubuntu-sans-mono-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Ubuntu Sans Mono"; font-weight: 600; font-display: swap; src: url(assets/fonts/ubuntu-sans-mono-latin-600-normal.woff2) format("woff2"); }

:root {
	--ink: #24123a;          /* aubergine */
	--ink-2: #3b2160;
	--plum: #6d3bd2;
	--mango: #ffb21e;
	--mango-soft: #fff1d1;
	--leaf: #0f9f6e;
	--leaf-soft: #ddf5ea;
	--chili: #d9452b;
	--chili-soft: #fde6e1;
	--bg: #f4f2f9;
	--panel: #ffffff;
	--line: #e3dfee;
	--text: #1f1a2b;
	--muted: #5d5670;
	--r: 20px;
	--shadow: 0 1px 2px rgba(36, 18, 58, .06), 0 10px 30px -12px rgba(36, 18, 58, .22);
	--display: "Host Grotesk", "Segoe UI", system-ui, sans-serif;
	--body: "Sofia Sans", "Segoe UI", system-ui, sans-serif;
	--mono: "Ubuntu Sans Mono", ui-monospace, Menlo, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 16px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 18px/1.62 var(--body); overflow-x: hidden; }
img { max-width: 100%; height: auto; }
a { color: var(--plum); text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
a:hover { color: var(--ink); }
:focus-visible { outline: 3px solid var(--mango); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3 { font-family: var(--display); color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
.ec-wrap { width: min(1180px, 100% - 32px); margin-inline: auto; }
.ec-skip { position: absolute; left: -999px; top: 8px; background: var(--mango); color: var(--ink); padding: 8px 14px; border-radius: 10px; z-index: 30; }
.ec-skip:focus { left: 8px; }

/* ribbon */
.ec-ribbon { background: var(--mango); color: var(--ink); font-size: 14.5px; line-height: 1.4; }
.ec-ribbon p { margin: 0; padding: 7px 0; }
.ec-ribbon a { color: var(--ink); font-weight: 700; margin-left: 6px; }
.ec-offtag { display: inline-block; font: 600 11px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; background: var(--ink); color: #fff; padding: 4px 7px 3px; border-radius: 99px; vertical-align: 1px; }

/* header */
.ec-head { background: var(--ink); color: #fff; position: relative; z-index: 10; }
.ec-head-row { display: flex; align-items: center; gap: 22px; min-height: 70px; }
.ec-logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.ec-logo span { font: 500 21px/1 var(--display); letter-spacing: -.02em; white-space: nowrap; }
.ec-logo b { font-weight: 800; color: var(--mango); }
.ec-logo i { font-style: normal; font-weight: 800; }
.ec-nav { display: flex; gap: 4px; margin-left: auto; }
.ec-nav a { color: #e9e2f6; text-decoration: none; font: 600 16px/1 var(--body); padding: 10px 14px; border-radius: 99px; }
.ec-nav a:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.ec-switch { display: flex; align-items: center; }
.ec-switch label { position: absolute; left: -9999px; }
.ec-switch select { appearance: none; font: 600 15px/1 var(--body); color: var(--ink); background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2324123a' stroke-width='2'/%3E%3C/svg%3E") no-repeat right 14px center; border: 0; border-radius: 99px; padding: 11px 40px 11px 16px; min-width: 200px; cursor: pointer; }
.ec-menubtn { display: none; align-items: center; gap: 8px; background: rgba(255, 255, 255, .12); color: #fff; border: 0; border-radius: 99px; padding: 10px 14px; font: 600 15px var(--body); cursor: pointer; }
.ec-menubtn-bars, .ec-menubtn-bars::before, .ec-menubtn-bars::after { display: block; width: 16px; height: 2px; background: currentColor; border-radius: 2px; position: relative; content: ""; }
.ec-menubtn-bars::before { position: absolute; top: -5px; } .ec-menubtn-bars::after { position: absolute; top: 5px; }
.ec-drawer { background: var(--ink-2); padding: 14px 0 18px; }
.ec-drawer-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.ec-drawer-list a { display: block; background: rgba(255, 255, 255, .07); border-radius: 14px; padding: 12px 14px; color: #fff; text-decoration: none; }
.ec-drawer-list b { display: block; font-family: var(--display); }
.ec-drawer-list span { font-size: 14px; color: #cfc5e3; }

/* buttons */
.ec-btn { display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px; text-decoration: none; font: 700 17px/1.2 var(--display); border-radius: 16px; padding: 14px 20px; }
.ec-btn small { font: 400 13px/1.2 var(--body); opacity: .8; }
.ec-btn--official { background: var(--ink); color: #fff; box-shadow: 0 8px 20px -10px rgba(36, 18, 58, .7); }
.ec-btn--official::before { content: "Official"; font: 600 10.5px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); background: var(--mango); border-radius: 99px; padding: 4px 7px 3px; margin-bottom: 5px; }
.ec-btn--official:hover { color: #fff; background: var(--ink-2); }

/* home hero */
.ec-hero { background: radial-gradient(1200px 500px at 85% -10%, #4b2a7d 0, transparent 60%), linear-gradient(180deg, var(--ink) 0, var(--ink-2) 100%); color: #fff; padding: 48px 0 70px; position: relative; overflow: hidden; }
.ec-hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 36px; background: var(--bg); border-radius: 36px 36px 0 0; }
.ec-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 44px; align-items: center; position: relative; z-index: 1; }
.ec-eyebrow { display: inline-block; font: 600 13px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--mango); margin: 0 0 16px; }
.ec-hero h1 { color: #fff; font-size: clamp(38px, 5.4vw, 66px); font-weight: 800; margin: 0 0 18px; letter-spacing: -.035em; }
.ec-hero-lede { font-size: 19.5px; color: #e6def3; max-width: 34em; margin: 0 0 26px; }
.ec-hero-tasks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ec-hero-tasks a { display: inline-block; text-decoration: none; color: #fff; font: 600 16px/1 var(--body); padding: 12px 16px; border-radius: 99px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.ec-hero-tasks a:hover { background: var(--mango); color: var(--ink); border-color: var(--mango); }

/* the finder: an e-ration card that fills in */
.ec-tool { color: var(--text); }
.ec-fd { background: var(--panel); border-radius: 26px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); overflow: hidden; }
.ec-fd-card { position: relative; margin: 14px; border-radius: 18px; padding: 18px 20px 16px; color: #fff; background: linear-gradient(135deg, #6d3bd2 0%, #3b2160 55%, #24123a 100%); overflow: hidden; min-height: 178px; }
.ec-fd-card::before { content: ""; position: absolute; right: -40px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 178, 30, .5), transparent 65%); }
.ec-fd-card::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(115deg, rgba(255, 255, 255, .04) 0 2px, transparent 2px 9px); pointer-events: none; }
.ec-fd-top { display: flex; justify-content: space-between; align-items: center; font: 600 12px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #dcd0f2; position: relative; z-index: 1; }
.ec-fd-chip { width: 42px; height: 32px; border-radius: 7px; background: linear-gradient(135deg, #ffd56b, #e59a00); box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .12); }
.ec-fd-state { font: 800 30px/1.05 var(--display); margin: 14px 0 6px; position: relative; z-index: 1; letter-spacing: -.02em; }
.ec-fd-num { font: 600 17px/1 var(--mono); letter-spacing: .14em; color: var(--mango); position: relative; z-index: 1; }
.ec-fd-rows { display: flex; gap: 18px; margin-top: 14px; font-size: 13.5px; color: #dcd0f2; position: relative; z-index: 1; flex-wrap: wrap; }
.ec-fd-rows b { display: block; color: #fff; font: 600 14px var(--mono); }
.ec-fd-qr { position: absolute; right: 18px; bottom: 16px; width: 54px; height: 54px; border-radius: 8px; background: #fff; z-index: 1; display: grid; grid-template-columns: repeat(7, 1fr); padding: 5px; gap: 1px; }
.ec-fd-qr i { background: var(--ink); border-radius: 1px; }
.ec-fd-qr i.o { background: transparent; }
.ec-fd-body { padding: 4px 20px 20px; }
.ec-fd-body h2 { font-size: 21px; margin: 6px 0 12px; }
.ec-fd-q { margin: 0 0 14px; }
.ec-fd-q > span { display: block; font: 600 14px/1.3 var(--body); color: var(--muted); margin-bottom: 7px; }
.ec-fd-q select { width: 100%; font: 600 17px var(--body); color: var(--ink); padding: 12px 14px; border-radius: 14px; border: 2px solid var(--line); background: #fff; }
.ec-fd-q select:focus { border-color: var(--plum); outline: none; }
.ec-fd-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ec-fd-opts button { font: 600 15px/1 var(--body); color: var(--ink); background: var(--bg); border: 2px solid transparent; border-radius: 99px; padding: 10px 14px; cursor: pointer; }
.ec-fd-opts button[aria-pressed="true"] { background: var(--mango-soft); border-color: var(--mango); }
.ec-fd-out { border-top: 1px dashed var(--line); margin-top: 6px; padding-top: 14px; }
.ec-fd-out ol { margin: 0 0 12px; padding-left: 22px; }
.ec-fd-out li { margin: 4px 0; }
.ec-fd-acts { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.ec-fd-acts a.ec-fd-guide { font-weight: 700; }
.ec-fd-note { font-size: 14px; color: var(--muted); margin: 12px 0 0; }
.ec-fd-alert { background: var(--chili-soft); color: #7a2414; border-radius: 12px; padding: 10px 12px; font-size: 15px; margin: 0 0 12px; }
.ec-tool--page .ec-fd { border: 1px solid var(--line); box-shadow: var(--shadow); margin: 0 0 30px; }

/* state wall */
.ec-wall { margin: 34px 0 10px; }
.ec-wall-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 14px; margin-bottom: 16px; }
.ec-wall-head h2 { font-size: clamp(26px, 3.2vw, 36px); margin: 0; }
.ec-filter { display: flex; flex-direction: column; gap: 4px; font: 600 13px var(--body); color: var(--muted); }
.ec-filter input { font: 500 16px var(--body); padding: 11px 14px; border-radius: 12px; border: 2px solid var(--line); min-width: 240px; background: #fff; }
.ec-wall-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(232px, 1fr)); gap: 14px; }
.ec-scard { height: 100%; background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 16px 12px; position: relative; overflow: hidden; }
.ec-scard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(var(--plum), var(--mango)); }
.ec-scard-top { display: flex; justify-content: space-between; align-items: center; margin: 0 0 6px; }
.ec-scard-code { font: 600 13px/1 var(--mono); letter-spacing: .1em; background: var(--ink); color: var(--mango); padding: 6px 8px 5px; border-radius: 8px; }
.ec-scard-n { font: 600 12.5px var(--mono); color: var(--muted); }
.ec-scard-name { margin: 6px 0 6px; font: 800 21px/1.15 var(--display); letter-spacing: -.02em; }
.ec-scard-name a { color: var(--ink); text-decoration: none; }
.ec-scard-name a:hover { color: var(--plum); }
.ec-scard ul { list-style: none; margin: 0; padding: 0; }
.ec-scard li a { display: block; font-size: 15.5px; padding: 4px 0; text-decoration: none; color: var(--text); border-bottom: 1px dashed var(--line); }
.ec-scard li:last-child a { border-bottom: 0; }
.ec-scard li a:hover { color: var(--plum); }
.ec-scard li.ec-more a { color: var(--plum); font-weight: 700; }
.ec-none { color: var(--muted); }

/* page head: the card sleeve */
.ec-pagehead { padding: 22px 0 8px; }
.ec-pagehead h1 { font-size: clamp(30px, 4.2vw, 48px); margin: 6px 0 10px; font-weight: 800; }
.ec-trail { font-size: 14.5px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ec-trail a { color: var(--muted); }
.ec-trail span[aria-current] { color: var(--ink); font-weight: 600; }
.ec-sleeve { margin-top: 14px; display: grid; grid-template-columns: 74px 1fr; background: var(--panel); border-radius: 26px; box-shadow: var(--shadow); overflow: hidden; }
.ec-sleeve-stub { margin: 0; background: linear-gradient(180deg, var(--st, var(--plum)), var(--ink)); display: flex; align-items: center; justify-content: center; position: relative; }
.ec-sleeve-stub::before { content: ""; position: absolute; top: 22px; left: 50%; width: 22px; height: 10px; border-radius: 10px; background: var(--bg); transform: translateX(-50%); }
.ec-sleeve-stub span { writing-mode: vertical-rl; transform: rotate(180deg); font: 600 22px/1 var(--mono); letter-spacing: .3em; color: var(--mango); }
.ec-sleeve-body { padding: 24px 28px 22px; border-left: 2px dashed var(--line); }
.ec-sleeve-kicker { margin: 0; font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--st, var(--plum)); }
.ec-sleeve-short { margin: 0 0 12px; font-size: 19px; color: var(--muted); }
.ec-sleeve-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ec-sleeve-meta span { font: 600 13px/1 var(--mono); background: var(--bg); border-radius: 99px; padding: 7px 11px 6px; color: var(--ink); }

/* reading column */
.ec-read { display: grid; grid-template-columns: minmax(0, 1fr); padding: 18px 0 40px; }
.ec-read--narrow { max-width: 820px; }
.ec-article { min-width: 0; }
.ec-article > *:first-child { margin-top: 0; }
.ec-intro { font-size: 19.5px; }
.ec-intro p:first-child { margin-top: 0; }

/* glance */
.ec-glance { background: var(--panel); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px 20px; margin: 22px 0; }
.ec-glance-h { margin: 0 0 10px; font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.ec-glance dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 22px; }
.ec-glance dt { font: 600 14px/1.2 var(--body); color: var(--muted); }
.ec-glance dd { margin: 2px 0 0; font: 700 17px/1.35 var(--display); color: var(--ink); overflow-wrap: anywhere; }

/* step track */
.ec-track { background: linear-gradient(180deg, #fff, #fbfaff); border-radius: 24px; box-shadow: var(--shadow); padding: 20px 22px 18px; margin: 0 0 26px; }
.ec-track-h { margin: 0 0 12px; font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--leaf); }
.ec-track ol { list-style: none; counter-reset: s; margin: 0; padding: 0; display: grid; gap: 0; }
.ec-track li { counter-increment: s; position: relative; padding: 0 0 16px 52px; }
.ec-track li::before { content: counter(s); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%; background: var(--leaf); color: #fff; font: 700 16px/34px var(--display); text-align: center; box-shadow: 0 0 0 4px var(--leaf-soft); }
.ec-track li::after { content: ""; position: absolute; left: 16px; top: 40px; bottom: 4px; border-left: 2px dotted #9fd8c1; }
.ec-track li:last-child::after { display: none; }
.ec-track li:last-child { padding-bottom: 4px; }
.ec-track b { display: block; font: 700 17.5px/1.3 var(--display); color: var(--ink); padding-top: 5px; }
.ec-track span { display: block; color: var(--muted); font-size: 16.5px; }
.ec-track-go { margin: 16px 0 0; }

/* toc */
.ec-toc { border-radius: 18px; background: var(--ink); color: #fff; padding: 16px 20px; margin: 22px 0 28px; }
.ec-toc p { margin: 0 0 8px; font: 600 13px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--mango); }
.ec-toc ol { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 2px 18px; counter-reset: t; }
.ec-toc li { counter-increment: t; }
.ec-toc a { color: #e9e2f6; text-decoration: none; display: block; padding: 5px 0; font-size: 16px; }
.ec-toc a::before { content: counter(t, decimal-leading-zero) "  "; font: 600 13px var(--mono); color: var(--mango); }
.ec-toc a:hover, .ec-toc a[aria-current] { color: #fff; text-decoration: underline; }

/* sections */
.ec-part { margin: 0 0 34px; }
.ec-part h2 { font-size: clamp(25px, 3vw, 32px); margin: 0 0 12px; padding-top: 6px; }
.ec-part h3 { font-size: 21px; margin: 22px 0 8px; }
.ec-part ul, .ec-part ol { padding-left: 24px; }
.ec-part li { margin: 5px 0; }
.ec-article a.ec-out::after { content: " ↗"; font-size: .8em; }
.ec-article .tip, .ec-article .warn { border-radius: 16px; padding: 14px 16px 14px 52px; margin: 18px 0; position: relative; }
.ec-article .tip { background: var(--leaf-soft); }
.ec-article .warn { background: var(--chili-soft); }
.ec-article .tip::before, .ec-article .warn::before { position: absolute; left: 14px; top: 13px; width: 26px; height: 26px; border-radius: 50%; color: #fff; font: 800 15px/26px var(--display); text-align: center; }
.ec-article .tip::before { content: "i"; background: var(--leaf); }
.ec-article .warn::before { content: "!"; background: var(--chili); }
.ec-article .tip > *:first-child, .ec-article .warn > *:first-child { margin-top: 0; }
.ec-article .tip > *:last-child, .ec-article .warn > *:last-child { margin-bottom: 0; }
.ec-article .path { font: 600 15px/1.6 var(--mono); background: #fff; border: 2px dashed #cbbfe6; border-radius: 14px; padding: 10px 14px; margin: 14px 0; color: var(--ink); overflow-wrap: anywhere; }
.ec-article .path::before { content: "Click path"; display: block; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--plum); }

/* tables */
.ec-table { overflow-x: auto; margin: 16px 0 20px; border-radius: 16px; box-shadow: var(--shadow); background: #fff; -webkit-overflow-scrolling: touch; }
.ec-table table { border-collapse: collapse; width: 100%; min-width: 520px; font-size: 16px; }
.ec-table caption { text-align: left; font: 700 15px var(--display); padding: 12px 14px 0; color: var(--ink); }
.ec-table th, .ec-table td { padding: 11px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
.ec-table thead th { background: var(--ink); color: #fff; font: 700 15px var(--display); }
.ec-table tbody tr:nth-child(even) { background: #faf8fe; }
.ec-table tbody th { font-weight: 700; color: var(--ink); }

/* FAQ */
.ec-faq { margin: 10px 0 34px; }
.ec-faq h2 { font-size: clamp(25px, 3vw, 32px); }
.ec-faq details { background: #fff; border-radius: 16px; box-shadow: var(--shadow); margin: 10px 0; }
.ec-faq summary { cursor: pointer; list-style: none; padding: 15px 52px 15px 18px; font: 700 18px/1.35 var(--display); color: var(--ink); position: relative; }
.ec-faq summary::-webkit-details-marker { display: none; }
.ec-faq summary::after { content: "+"; position: absolute; right: 16px; top: 12px; width: 28px; height: 28px; border-radius: 50%; background: var(--mango-soft); color: var(--ink); font: 700 20px/28px var(--display); text-align: center; }
.ec-faq details[open] summary::after { content: "−"; background: var(--mango); }
.ec-faq-a { padding: 0 18px 14px; }
.ec-faq-a p { margin: 0 0 8px; }

/* children of a hub */
.ec-kids { margin: 8px 0 30px; }
.ec-kids h2 { font-size: clamp(24px, 3vw, 30px); }
.ec-kids ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ec-kids a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; color: var(--text); height: 100%; }
.ec-kids-code { grid-row: span 2; align-self: start; font: 600 13px/1 var(--mono); letter-spacing: .08em; background: var(--ink); color: var(--mango); padding: 7px 8px 6px; border-radius: 8px; }
.ec-kids b { font: 700 17px/1.25 var(--display); color: var(--ink); }
.ec-kids small { font-size: 14.5px; color: var(--muted); }
.ec-kids a:hover b { color: var(--plum); }

/* tiles (related, 404, posts) */
.ec-related h2 { font-size: 26px; }
.ec-tiles { list-style: none; margin: 0 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.ec-tile a { display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none; color: var(--text); background: #fff; border-radius: 18px; padding: 14px 16px 16px; box-shadow: var(--shadow); border-top: 5px solid var(--st, var(--plum)); }
.ec-tile-code { font: 600 12px/1 var(--mono); letter-spacing: .1em; color: var(--muted); }
.ec-tile b { font: 700 18px/1.25 var(--display); color: var(--ink); }
.ec-tile span:last-child { font-size: 15px; color: var(--muted); }
.ec-tile a:hover b { color: var(--plum); }

/* home index */
.ec-index { margin: 10px 0 40px; }
.ec-index > h2 { font-size: clamp(26px, 3.2vw, 36px); }
.ec-index-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.ec-index-col { background: #fff; border-radius: var(--r); box-shadow: var(--shadow); padding: 16px 18px; border-top: 6px solid var(--st); }
.ec-index-col h3 { margin: 0 0 8px; font-size: 19px; }
.ec-index-col ul { list-style: none; margin: 0; padding: 0; }
.ec-index-col a { display: block; padding: 4px 0; text-decoration: none; }
.ec-table--states td a { white-space: nowrap; }
.ec-table--states td { line-height: 1.9; }

.ec-ad { margin: 26px 0; text-align: center; }

/* info pages and posts */
.ec-article--post, .ec-read--narrow .ec-article { background: #fff; border-radius: 24px; box-shadow: var(--shadow); padding: 26px 28px; }
.ec-list-title h1 { font-size: clamp(30px, 4vw, 44px); margin: 26px 0 16px; }
.ec-postlist { display: grid; gap: 12px; margin-bottom: 26px; }
.ec-postrow { background: #fff; border-radius: 18px; box-shadow: var(--shadow); padding: 16px 20px; }
.ec-postrow h2 { font-size: 22px; margin: 0 0 4px; }
.ec-postrow h2 a { text-decoration: none; color: var(--ink); }
.ec-date { margin: 0 0 6px; font: 600 13px var(--mono); color: var(--muted); }
.ec-pager { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 40px; }
.ec-pager .page-numbers { padding: 8px 13px; border-radius: 10px; background: #fff; text-decoration: none; }
.ec-pager .current { background: var(--ink); color: #fff; }
.ec-guides { margin-top: 26px; }
.ec-guides-h { font: 700 22px var(--display); color: var(--ink); }
.ec-latest { margin: 0 0 40px; }
.ec-latest ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.ec-latest a { display: block; background: #fff; border-radius: 16px; box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; color: var(--ink); }
.ec-latest small { display: block; color: var(--muted); font: 600 13px var(--mono); margin-top: 4px; }

/* footer */
.ec-foot { background: var(--ink); color: #d9cfeb; border-top: 6px solid var(--mango); margin-top: 30px; }
.ec-foot-grid { display: grid; grid-template-columns: 1.3fr 1.6fr 1fr; gap: 34px; padding: 40px 0 26px; }
.ec-foot p { margin: 0 0 12px; font-size: 16px; }
.ec-logo--foot { color: #fff; margin-bottom: 14px; }
.ec-foot-note { font-size: 14.5px; color: #b5a8cc; }
.ec-foot-h { font: 700 17px var(--display); color: #fff; }
.ec-foot ul { list-style: none; margin: 0; padding: 0; }
.ec-foot-states ul { display: flex; flex-wrap: wrap; gap: 6px; }
.ec-foot-states a { display: inline-block; font-size: 14.5px; padding: 6px 10px; border-radius: 99px; background: rgba(255, 255, 255, .08); color: #efe8fb; text-decoration: none; }
.ec-foot-states a:hover { background: var(--mango); color: var(--ink); }
.ec-foot-help a { color: #efe8fb; display: block; padding: 4px 0; text-decoration: none; }
.ec-foot-help a:hover { color: var(--mango); }
.ec-foot-legal { border-top: 1px solid rgba(255, 255, 255, .12); padding: 16px 0 26px; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 14.5px; }
.ec-foot-legal a { color: #d9cfeb; }

@media (max-width: 980px) {
	.ec-nav { display: none; }
	.ec-menubtn { display: inline-flex; }
	.ec-switch { margin-left: auto; }
	.ec-hero-grid { grid-template-columns: 1fr; gap: 28px; }
	.ec-index-cols { grid-template-columns: 1fr; }
	.ec-foot-grid { grid-template-columns: 1fr; gap: 22px; }
}
@media (max-width: 640px) {
	body { font-size: 17px; }
	.ec-head-row { gap: 10px; min-height: 60px; flex-wrap: wrap; padding: 8px 0; }
	.ec-logo span { font-size: 18px; }
	.ec-logo img { width: 32px; height: 32px; }
	.ec-switch { order: 3; width: 100%; margin: 0 0 4px; }
	.ec-switch select { width: 100%; }
	.ec-menubtn { margin-left: auto; }
	.ec-hero { padding: 30px 0 56px; }
	.ec-hero-lede { font-size: 17.5px; }
	.ec-sleeve { grid-template-columns: 44px 1fr; border-radius: 20px; }
	.ec-sleeve-stub span { font-size: 16px; }
	.ec-sleeve-body { padding: 18px 16px 16px; }
	.ec-sleeve-short { font-size: 17px; }
	.ec-intro { font-size: 18px; }
	.ec-track { padding: 16px 14px 14px; }
	.ec-track li { padding-left: 46px; }
	.ec-fd-card { margin: 10px; padding: 16px; }
	.ec-fd-state { font-size: 25px; }
	.ec-fd-body { padding: 4px 14px 16px; }
	.ec-filter input { min-width: 0; width: 100%; }
	.ec-filter { width: 100%; }
	.ec-read--narrow .ec-article, .ec-article--post { padding: 18px 16px; }
	.ec-ribbon { font-size: 13.5px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
