/* The Alleviate Index. One stylesheet for the five page types.
   Alleviate design system: Cormorant Garamond for display, DM Sans for text, JetBrains Mono for data;
   Purple, After Hours, Early Morning, Cloud, Steel, Gold, Surface. Light and dark, one column under 760px. */
:root {
  --bg: #F9F8FC;            /* Surface */
  --panel: #FFFFFF;
  --fg: #1B1630;            /* Ink */
  --muted: #6D707A;         /* Steel */
  --line: #D1D9EA;          /* Cloud */
  --accent: #9334EB;        /* Purple */
  --deep: #471873;          /* After Hours */
  --soft: #C193ED;          /* Early Morning */
  --gold: #C9A84C;
  --gold-ink: #866A1C;      /* Gold, darkened for small text on a light ground */
  --deep-fg: #FFFFFF;
  --heading: #471873;
  --ok: #2E7D5B;
  --warn: #96600F;
  --p-mission: #6B2D8B; --p-stakeholders: #2E86AB; --p-programs: #A23B72; --p-evidence: #F18F01; --p-systems: #2D936C;   /* the five readiness pillars */
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "SFMono-Regular", Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #17122A; --panel: #211A3A; --fg: #F3F0FA; --muted: #B9B3CC; --line: #3A3357;
    --accent: #C193ED; --deep: #2E1F55; --soft: #9334EB; --gold: #D9BE6A; --gold-ink: #D9BE6A; --deep-fg: #F3F0FA; --heading: #DCCFF5;
    --ok: #7FD1A8; --warn: #E2B45A;
    --p-mission: #C7A0E3; --p-stakeholders: #7CC3E2; --p-programs: #E493C0; --p-evidence: #F6A93B; --p-systems: #6FCFA5; color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #17122A; --panel: #211A3A; --fg: #F3F0FA; --muted: #B9B3CC; --line: #3A3357;
  --accent: #C193ED; --deep: #2E1F55; --soft: #9334EB; --gold: #D9BE6A; --gold-ink: #D9BE6A; --deep-fg: #F3F0FA; --heading: #DCCFF5;
  --ok: #7FD1A8; --warn: #E2B45A;
    --p-mission: #C7A0E3; --p-stakeholders: #7CC3E2; --p-programs: #E493C0; --p-evidence: #F6A93B; --p-systems: #6FCFA5; color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font-family: var(--sans); font-size: 15px; line-height: 1.55; margin: 0; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.wrap { max-width: 1120px; margin: 0 auto; padding-block: 0 56px; padding-inline: 20px; }
@media (max-width: 480px) { .wrap { padding-inline: 16px; } }
.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.skip { position: absolute; left: -9999px; }
.sample { background: var(--deep); color: var(--deep-fg); font-size: 12.5px; letter-spacing: .03em; text-align: center; padding: 7px 16px; }
.skip:focus { left: 16px; top: 12px; background: var(--panel); padding: 8px 12px; border-radius: 6px; z-index: 5; }

/* Top bar */
.bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.brand { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; text-decoration: none; }
.brand .wordmark { height: 18px; width: auto; display: inline-block; vertical-align: baseline; color: var(--heading); flex: none; }   /* the Alleviate wordmark */
.brand .word { white-space: nowrap; font-family: var(--display); font-weight: 600; font-size: 28px; line-height: 1; letter-spacing: .01em; color: var(--heading); }
.brand .tag { font-size: 12px; color: var(--muted); letter-spacing: .04em; text-transform: uppercase; margin-left: 4px; }
.search { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; background: var(--panel); min-width: 0; flex: 1 1 260px; max-width: 420px; color: var(--muted); }
.search input { border: 0; background: transparent; color: var(--fg); font: inherit; width: 100%; min-width: 0; outline: none; }
.search svg { flex: none; }
.crumbs { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); padding-block: 18px 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent); text-decoration: underline; }
.crumbs span.sep { color: var(--line); }

/* Title block */
.title { position: relative; padding-block: 18px 22px; border-bottom: 1px solid var(--gold); }
.title .meta { display: flex; justify-content: space-between; align-items: center; gap: 10px 24px; flex-wrap: wrap; }
.title h1 { font-family: var(--display); font-weight: 600; font-size: clamp(34px, 5vw, 50px); line-height: 1.05; margin: 0 0 8px; text-wrap: balance; color: var(--heading); padding-right: 72px; }
.title .where { font-size: 15px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.title .sub { font-size: 16px; color: var(--muted); max-width: 64ch; margin: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: .04em; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--fg); background: var(--panel); white-space: nowrap; }
.chip .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); display: inline-block; }
.chip.warn .dot { background: var(--warn); }
.chip.new .dot { background: var(--accent); }
.chip.quiet .dot { background: var(--muted); }
.chip.claimed { border-color: var(--gold); }
.chip.claimed .dot { background: var(--gold); }
.frame { position: absolute; right: 0; top: 14px; width: 56px; height: 56px; border: 1.5px solid var(--soft); pointer-events: none; }
.frame::after { content: ""; position: absolute; inset: 9px; border: 1.5px solid var(--soft); }
.jump { display: none; flex-basis: 100%; font-size: 14px; font-weight: 500; }
.title .head { display: flex; align-items: center; gap: 16px; }
.title .logo { flex: none; width: 64px; height: 64px; border-radius: 12px; border: 1px solid var(--line); background: #FFFFFF; object-fit: contain; margin-bottom: 8px; overflow: hidden; font-size: 0; color: transparent; }   /* a logo that fails to load shows an empty tile, not its alt text spilling out of it */
.title .plate { position: absolute; right: 0; top: 20px; line-height: 0; border-radius: 8px; }
.title.has-plate h1 { padding-right: 278px; }
@media (max-width: 900px) { .title .plate { position: static; display: inline-block; margin-top: 16px; } .title.has-plate h1 { padding-right: 0; } }
@media (max-width: 480px) { .title .logo { width: 52px; height: 52px; border-radius: 10px; } }
.ids { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.ids b { color: var(--fg); font-weight: 500; }

/* Notice above a profile whose organization has left the IRS file */
.notice { margin-top: 20px; border: 1px solid var(--warn); border-radius: 6px; background: var(--panel); padding: 14px 18px; }
.notice h2 { font-size: 22px; margin: 0 0 4px; }
.notice p { margin: 0; color: var(--fg); max-width: 78ch; }
.notice p + p { margin-top: 6px; color: var(--muted); font-size: 13.5px; }

/* Body grid */
.grid { display: grid; grid-template-columns: minmax(0, 1fr) 328px; gap: 36px; padding-block: 28px 0; }
.grid.wide { grid-template-columns: minmax(0, 1fr); }
@media (max-width: 760px) { .grid { grid-template-columns: minmax(0, 1fr); gap: 28px; } .title h1 { padding-right: 0; } .frame { display: none; } .jump { display: block; } }
main, aside { min-width: 0; }
section { padding-block: 0 30px; }
h2 { font-family: var(--display); font-weight: 600; font-size: 26px; line-height: 1.15; margin: 0 0 4px; color: var(--heading); text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 600; font-size: 21px; line-height: 1.2; margin: 0 0 4px; color: var(--heading); }
.lede { color: var(--muted); margin: 0 0 16px; max-width: 62ch; }
.eyebrow { font-size: 11.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--gold-ink); font-weight: 600; margin: 0 0 6px; }
.fine { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; max-width: 72ch; }

/* Fact grid */
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 22px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 16px; }
.fact .k { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fact .v { font-size: 19px; font-weight: 500; margin-top: 2px; }
.fact .v.num { font-size: 20px; }
.fact .v.none { color: var(--muted); font-weight: 400; }
.fact .s { font-size: 12.5px; color: var(--muted); }
.facts.plain { border: 0; padding-block: 0; }
.facts.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 560px) { .facts.three { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fact .v { font-size: 17px; } .fact .v.num { font-size: 18px; } }

/* Mission and programs on a claimed profile */
.mission { font-family: var(--display); font-size: 23px; line-height: 1.35; color: var(--fg); margin: 0 0 14px; max-width: 60ch; }
.programs { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.programs li { padding: 12px 0 0; }
.programs b { font-weight: 600; }
.programs span { display: block; color: var(--muted); font-size: 14px; max-width: 70ch; }
/* 18 Oct (fresh QA, F5): the organization's own words may hold a long unbroken word or address; it wraps instead of widening the page */
.mission, .programs b, .programs span, .fine a { overflow-wrap: anywhere; }

/* Clock */
.clock { border-left: 2px solid var(--line); margin-left: 6px; padding-left: 20px; display: grid; gap: 16px; }
.ev { position: relative; display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 4px 16px; align-items: start; }
.ev::before { content: ""; position: absolute; left: -26px; top: 7px; width: 9px; height: 9px; border-radius: 50%; background: var(--line); border: 2px solid var(--bg); }
.ev.next::before { background: var(--accent); }
.ev.past::before { background: var(--gold); }
.ev .d { font-family: var(--mono); font-size: 13px; color: var(--fg); padding-top: 2px; }
.ev .t { font-weight: 500; }
.ev .n { color: var(--muted); font-size: 13.5px; grid-column: 2; }
@media (max-width: 480px) { .ev { grid-template-columns: 1fr; } .ev .n { grid-column: 1; } }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; letter-spacing: .03em; text-transform: uppercase; margin-left: 8px; }
.status.ok { color: var(--ok); } .status.warn { color: var(--warn); } .status.quiet { color: var(--muted); }

/* Tables: filing history, lists of organizations */
.scroll { overflow-x: auto; }
table.rows { width: 100%; border-collapse: collapse; font-size: 14px; }
table.rows th { text-align: left; font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); font-weight: 500; padding: 8px 14px 8px 0; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.rows td { padding: 10px 14px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
table.rows td.num, table.rows th.num { text-align: right; padding-right: 0; padding-left: 14px; white-space: nowrap; }
table.rows td .c { display: block; color: var(--muted); font-size: 12.5px; }
table.rows td.mono { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
table.rows td.nowrap { white-space: nowrap; }
table.rows a { text-decoration: none; font-weight: 500; }
table.rows a:hover { text-decoration: underline; }
table.rows .said { color: var(--ok); font-size: 12.5px; white-space: nowrap; }
table.rows .mute { color: var(--muted); }

/* IRS status check */
.check { display: grid; gap: 0; border-top: 1px solid var(--line); }
.check > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 4px 20px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.check .k { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding-top: 3px; }
.check .v { font-weight: 500; }
.check .n { grid-column: 2; color: var(--muted); font-size: 13.5px; }
@media (max-width: 560px) { .check > div { grid-template-columns: 1fr; } .check .n { grid-column: 1; } }

/* Peer scale */
.scale { margin: 18px 0 8px; }
.track { position: relative; height: 10px; border-radius: 999px; background: var(--line); margin: 14px 9px 8px; }
.track .band { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--soft) 45%, var(--line)); border-radius: 999px; }
.mark { position: absolute; top: -4px; width: 18px; height: 18px; border-radius: 50%; transform: translateX(-50%); border: 3px solid var(--bg); }
.mark.you { background: var(--accent); z-index: 1; }
.mark.med { background: var(--gold); }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 6px; }
.legend b { color: var(--fg); font-weight: 500; margin-left: 4px; }
.legend .sw { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 7px; vertical-align: -1px; }
.legend .sw.you { background: var(--accent); } .legend .sw.med { background: var(--gold); } .legend .sw.band { background: color-mix(in srgb, var(--soft) 45%, var(--line)); border-radius: 2px; }
.ticks { position: relative; height: 18px; font-size: 11px; color: var(--muted); margin-inline: 9px; }
.ticks span { position: absolute; transform: translateX(-50%); white-space: nowrap; }
.ticks span:first-child { transform: none; } .ticks span:last-child { transform: translateX(-100%); }
@media (max-width: 480px) { .ticks span.tight { display: none; } }
.peerrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px 22px; margin-top: 20px; }
.peerrow .fact .v { font-size: 18px; }

/* Bars: organizations by size, by focus */
.bars { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.bars li { display: grid; grid-template-columns: 150px minmax(0, 1fr) 84px; gap: 12px; align-items: center; font-size: 14px; }
.bars .b { height: 10px; border-radius: 999px; background: var(--line); position: relative; overflow: hidden; }
.bars .b i { position: absolute; inset: 0 auto 0 0; background: color-mix(in srgb, var(--soft) 70%, var(--accent)); border-radius: 999px; min-width: 2px; }
.bars .n { text-align: right; }
@media (max-width: 480px) { .bars li { grid-template-columns: 112px minmax(0, 1fr) 70px; gap: 8px; font-size: 13px; } }

/* Pillars: the five marks and colors of the Readiness Assessment, as on readiness.alleviate.org */
.pillars { display: grid; gap: 0; border-top: 1px solid var(--line); }
.pillar { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.p-mission { --pc: var(--p-mission); } .p-stakeholders { --pc: var(--p-stakeholders); } .p-programs { --pc: var(--p-programs); }
.p-evidence { --pc: var(--p-evidence); } .p-systems { --pc: var(--p-systems); }
.pillar .i { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; color: var(--pc); background: color-mix(in srgb, var(--pc) 11%, transparent); }
.pillar .name { font-weight: 500; }
.pillar .q { font-size: 13.5px; color: var(--muted); }
.pillar .meter { height: 4px; border-radius: 999px; background: var(--line); margin-top: 8px; max-width: 440px; overflow: hidden; }
.pillar .meter i { display: block; height: 100%; border-radius: 999px; background: var(--pc); }
.pillar .u { font-family: var(--mono); font-size: 12px; color: var(--muted); letter-spacing: .04em; white-space: nowrap; }
.pillar .u.scored { color: var(--fg); font-size: 15px; }
.pillar .u.scored small { color: var(--muted); font-size: 11.5px; }
.pillset { display: flex; gap: 6px; margin-top: 14px; }
.pillset span { width: 28px; height: 28px; border-radius: 7px; display: grid; place-items: center; color: var(--pc); background: color-mix(in srgb, var(--pc) 11%, transparent); }
@media (max-width: 480px) { .pillar { grid-template-columns: 36px minmax(0, 1fr); } .pillar .i { width: 36px; height: 36px; } .pillar .u { grid-column: 2; } }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-top: 18px; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 6px; font-weight: 600; font-size: 14.5px; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-family: inherit; }
.btn.primary { background: var(--accent); color: #FFFFFF; }
:root[data-theme="dark"] .btn.primary { background: #9334EB; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { background: #9334EB; } }
.btn.ghost { border-color: var(--line); color: var(--fg); background: var(--panel); }

/* Aside */
.claim { background: var(--deep); color: var(--deep-fg); padding: 22px 22px 20px; border-radius: 8px; }
.claim .eyebrow { color: var(--gold); }
.claim h3 { font-family: var(--display); font-weight: 600; font-size: 24px; line-height: 1.15; margin: 0 0 8px; color: var(--deep-fg); }
.claim p { margin: 0 0 14px; font-size: 14px; color: color-mix(in srgb, var(--deep-fg) 82%, transparent); }
.claim ul { margin: 0 0 16px; padding-left: 18px; font-size: 14px; color: color-mix(in srgb, var(--deep-fg) 82%, transparent); }
.claim li { margin-bottom: 4px; }
.claim .btn.gold { background: var(--gold); color: #1B1630; width: 100%; justify-content: center; }
.claim .fine { font-size: 12px; color: color-mix(in srgb, var(--deep-fg) 65%, transparent); margin: 12px 0 0; }
.claim .line { font-family: var(--display); font-style: italic; font-size: 17px; color: var(--deep-fg); margin: 18px 0 0; padding-top: 14px; border-top: 1px solid color-mix(in srgb, var(--deep-fg) 25%, transparent); }
.side, .side + .claim { margin-top: 28px; }
.side:first-child { margin-top: 0; }
.side h3 { font-size: 22px; }
.side .sub { font-size: 13px; color: var(--muted); margin: 0 0 12px; }
.newlist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.newlist li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.newlist a { text-decoration: none; color: var(--fg); }
.newlist a:hover { color: var(--accent); text-decoration: underline; }
.newlist .c { color: var(--muted); font-size: 12.5px; }
.newlist .m { font-family: var(--mono); font-size: 12px; color: var(--muted); white-space: nowrap; }
.side .more { display: inline-block; margin-top: 10px; font-size: 14px; }
.source { margin-top: 28px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; }
.source p { margin: 0 0 6px; }

/* Home */
.hero { padding-block: 44px 30px; border-bottom: 1px solid var(--gold); position: relative; }
.hero h1 { font-family: var(--display); font-weight: 600; font-size: clamp(38px, 6.4vw, 64px); line-height: 1.02; margin: 0 0 14px; color: var(--heading); text-wrap: balance; max-width: 18ch; }
.hero p { font-size: 17px; color: var(--muted); max-width: 60ch; margin: 0 0 22px; }
.hero .frame { top: 44px; width: 84px; height: 84px; }
.hero .frame::after { inset: 13px; }
.bigsearch { display: flex; gap: 10px; flex-wrap: wrap; max-width: 680px; }
.bigsearch .field { flex: 1 1 300px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; background: var(--panel); color: var(--muted); min-width: 0; }
.bigsearch input { border: 0; background: transparent; color: var(--fg); font: inherit; font-size: 16px; width: 100%; min-width: 0; outline: none; }
.bigsearch select { border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: var(--panel); color: var(--fg); font: inherit; min-height: 48px; }
.strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 18px 28px; padding-block: 22px; border-bottom: 1px solid var(--line); }
.strip .v { font-family: var(--mono); font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; }
.strip .k { font-size: 12.5px; color: var(--muted); max-width: 30ch; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px 18px 16px; }
.card p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.card .eyebrow { margin-bottom: 4px; }
.stategrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 0 28px; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.stategrid li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.stategrid a { text-decoration: none; color: var(--fg); }
.stategrid a:hover { color: var(--accent); text-decoration: underline; }
.stategrid .n { color: var(--muted); }
.band2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px 36px; }
@media (max-width: 760px) { .band2 { grid-template-columns: minmax(0, 1fr); } }

/* Spacing under a heading that has no lede, and the short list of search tips */
.top { margin-top: 12px; }
.tips { padding-left: 18px; margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.tips li { margin-bottom: 6px; }

/* Lists */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; padding: 0; list-style: none; }
.tabs a, .tabs span { display: inline-block; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--line); font-size: 13px; text-decoration: none; color: var(--fg); background: var(--panel); white-space: nowrap; }
.tabs .on { background: var(--deep); color: var(--deep-fg); border-color: var(--deep); }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 16px; font-size: 14px; color: var(--muted); }
.pager nav { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.pager .of { padding-inline: 4px; }
.pager a, .pager span.cur { padding: 6px 12px; border: 1px solid var(--line); border-radius: 6px; text-decoration: none; color: var(--fg); background: var(--panel); }
.pager span.cur { background: var(--deep); color: var(--deep-fg); border-color: var(--deep); }
.months { display: flex; gap: 8px; flex-wrap: wrap; margin: 0; padding: 0; list-style: none; }
.months a, .months span { display: inline-block; padding: 5px 10px; border: 1px solid var(--line); border-radius: 6px; font-family: var(--mono); font-size: 12.5px; text-decoration: none; color: var(--fg); background: var(--panel); }
.months .on { background: var(--deep); color: var(--deep-fg); border-color: var(--deep); }
.results { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.results li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.results a { font-family: var(--display); font-size: 22px; font-weight: 600; text-decoration: none; color: var(--heading); line-height: 1.15; }
.results a:hover { text-decoration: underline; }
.results .c { color: var(--muted); font-size: 13.5px; grid-column: 1; }
.results .r { text-align: right; font-size: 13px; color: var(--muted); grid-row: 1 / span 2; grid-column: 2; align-self: center; }
.results .r b { display: block; color: var(--fg); font-weight: 500; font-family: var(--mono); font-size: 15px; }
.suggest { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); max-width: 680px; margin-top: 8px; overflow: hidden; }
.suggest div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14px; }
.suggest div:last-child { border-bottom: 0; }
.suggest .c { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.suggest mark { background: transparent; color: var(--accent); font-weight: 600; }
/* The suggestions of a live search box: drawn under the form by assets/index.js, each row a link to a profile. */
form[role="search"] { position: relative; }
.search:focus-within, .bigsearch .field:focus-within { outline: 2px solid var(--gold); outline-offset: 2px; }
.suggest.live { position: absolute; left: 0; right: 0; top: 100%; z-index: 10; margin-top: 6px; max-width: none; box-shadow: 0 10px 28px rgba(27, 22, 48, .14); }
.suggest.live[hidden] { display: none; }
.suggest a { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--fg); text-decoration: none; }
.suggest a:last-child { border-bottom: 0; }
.suggest a:hover, .suggest a[aria-selected="true"] { background: color-mix(in srgb, var(--accent) 9%, transparent); }
.suggest a span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* The badge page */
.levels { display: grid; gap: 0; border-top: 1px solid var(--line); }
.level { display: grid; grid-template-columns: 254px minmax(0, 1fr); gap: 8px 26px; align-items: center; padding: 18px 0; border-bottom: 1px solid var(--line); }
.level img { max-width: 100%; height: auto; }
.level p { margin: 2px 0 0; font-size: 14px; }
.level .fine { margin-top: 4px; }
@media (max-width: 640px) { .level { grid-template-columns: minmax(0, 1fr); } }
.swatches { display: grid; gap: 14px; }
.swatch { margin: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.swatch > div { display: flex; gap: 20px; align-items: center; justify-content: center; flex-wrap: wrap; padding: 22px 16px; }
.swatch img { max-width: 100%; height: auto; }
.swatch.white > div { background: #FFFFFF; } .swatch.night > div { background: #1B1630; } .swatch.color > div { background: #E9E2D4; }
.swatch figcaption { font-size: 12.5px; color: var(--muted); padding: 8px 12px; border-top: 1px solid var(--line); background: var(--panel); }
.code { position: relative; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.code pre { margin: 0; padding: 46px 18px 16px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; color: var(--fg); }
.code .btn { position: absolute; right: 10px; top: 10px; padding: 5px 12px; font-size: 12.5px; }
.rcard { max-width: 400px; border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: 8px; background: var(--panel); padding: 18px 20px 14px; }
.rc-name { font-family: var(--display); font-weight: 600; font-size: 22px; line-height: 1.15; color: var(--heading); }
.rc-place { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.rc-row { display: grid; grid-template-columns: 24px minmax(0, 1fr) 72px 30px; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); font-size: 13px; }
.rc-row .i { width: 24px; height: 24px; border-radius: 6px; display: grid; place-items: center; color: var(--pc); background: color-mix(in srgb, var(--pc) 11%, transparent); }
.rc-row .n { min-width: 0; }
.rc-row .meter { height: 4px; border-radius: 999px; background: var(--line); overflow: hidden; }
.rc-row .meter i { display: block; height: 100%; background: var(--pc); border-radius: 999px; }
.rc-row b { font-weight: 500; text-align: right; }
.rc-foot { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 2px; font-size: 11.5px; letter-spacing: .03em; color: var(--muted); }
@media (max-width: 420px) { .rc-row { grid-template-columns: 24px minmax(0, 1fr) 30px; } .rc-row .meter { display: none; } }
.og { position: relative; max-width: 600px; aspect-ratio: 1200 / 630; background: #471873; color: #FFFFFF; border-radius: 6px; padding: 6.5% 7%; display: flex; flex-direction: column; outline: 1px solid #C9A84C; outline-offset: -10px; }
.og-brand { font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: #C9A84C; font-weight: 600; }
.og-name { font-family: var(--display); font-weight: 600; font-size: clamp(26px, 6.2vw, 44px); line-height: 1.04; margin-top: 4.5%; max-width: 15ch; text-wrap: balance; }
.og-place { font-size: 14px; color: #C193ED; margin-top: 2.5%; }
.og-foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.og-foot img { height: auto; max-width: 62%; }
.og-domain { font-family: var(--mono); font-size: 12px; color: #C193ED; letter-spacing: .04em; }
.og .frame { right: 7%; top: 12%; width: 44px; height: 44px; border-color: #C193ED; display: block; }
.og .frame::after { inset: 7px; border-color: #C193ED; }
.rules li { margin-bottom: 8px; max-width: 70ch; }

footer { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; grid-auto-flow: row dense; gap: 8px 24px; align-items: baseline; font-size: 12.5px; color: var(--muted); }   /* two rows: the entity and the Index's links, then the date of the data and the legal pages */
footer a { color: var(--muted); }
footer > span { grid-column: 1; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; justify-content: flex-end; grid-column: 2; }
footer nav[aria-label="Legal"] { gap: 12px; }
@media (max-width: 760px) { footer { grid-template-columns: 1fr; } footer nav { grid-column: 1; justify-content: flex-start; } }
@media (prefers-reduced-motion: no-preference) { .mark { transition: left .4s ease; } }
@media print { .bar .search, .claim, .cta-row { display: none; } body { background: #fff; } }

/* State line: the regulator under the rule. State rules page: the table of rules. */
.ev .n.reg { margin-top: 2px; }
.ev .n.reg a { color: inherit; }
table.rules td { vertical-align: top; }
table.rules td:nth-child(2) { min-width: 280px; }
table.rules td:nth-child(4) { min-width: 180px; font-size: 13.5px; }
table.rules tr:target td { background: color-mix(in srgb, var(--gold) 14%, transparent); }

/* Method page: running text. */
main.prose section { scroll-margin-top: 16px; }
main.prose .lede { max-width: 68ch; }
main.prose .lede + .lede { margin-top: 10px; }
main.prose .scroll { margin-top: 14px; }
ul.contents { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }

/* Claim start: the organization card, the steps and the form in the claim card. */
.orgcard { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); padding: 18px 20px; display: grid; gap: 12px; }
.orgcard .name { font-family: var(--display); font-size: 28px; font-weight: 600; color: var(--heading); line-height: 1.12; text-wrap: balance; }
.orgcard .where { font-size: 15px; color: var(--muted); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.how { counter-reset: how; list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; max-width: 62ch; }
.how li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; align-items: start; }
.how li::before { counter-increment: how; content: counter(how); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--soft); display: grid; place-items: center; font-family: var(--mono); font-size: 13px; color: var(--heading); }
.how b { display: block; font-weight: 600; }
.how span { color: var(--muted); font-size: 14px; }
.claim form { display: grid; gap: 8px; margin: 4px 0 0; }
.claim label { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: color-mix(in srgb, var(--deep-fg) 75%, transparent); }
.claim input[type="email"], .claim input[type="text"] { width: 100%; border: 1px solid color-mix(in srgb, var(--deep-fg) 35%, transparent); border-radius: 6px; background: color-mix(in srgb, var(--deep-fg) 8%, transparent); color: var(--deep-fg); font: inherit; font-size: 16px; padding: 11px 12px; margin-bottom: 6px; }
.claim input::placeholder { color: color-mix(in srgb, var(--deep-fg) 50%, transparent); }
.claim .fine a { color: inherit; }
.claim .alert { border: 1px solid var(--gold); border-radius: 6px; padding: 9px 12px; margin: 0 0 12px; font-size: 13.5px; color: var(--deep-fg); }
.cards.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.cards.trio .card { padding: 16px 16px 14px; }
@media (max-width: 760px) { .cards.trio { grid-template-columns: 1fr; } .grid.form-first aside { order: -1; } }
