/* AI-BUILT (Claude Code), directed by Brian Louden. INTEGRATION CAUTION: HIGH. Not reviewed by a person. */
/* The Encyclopedia's one stylesheet: a museum guide, phone first. Four ways to read (Brian, 2026-11-30, from the old hub): Light,
   Dark, VI Proud (the madras palette) and Larger text. Without scripts it follows the system's light or dark. The display face,
   Cormorant Garamond, is served from the site itself; body text stays in the system serif. */
@font-face { font-family: "Cormorant Garamond"; font-style: normal; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/cormorant-garamond.woff2") format("woff2"); }
@font-face { font-family: "Cormorant Garamond"; font-style: italic; font-weight: 500 700; font-display: swap; src: url("/assets/fonts/cormorant-garamond-italic.woff2") format("woff2"); }
:root {
  color-scheme: light;
  --paper: #fbf8f1; --ink: #1d2731; --muted: #5c6670; --rule: #d5d9de; --panel: #eef1f5;
  --accent: #123f7b; --rust: #8a2f2f; --draft: #8a1f11; --draft-ink: #ffffff; --mark: #f3e2a6;
  --head: #23324a;
  --navy: #123f7b; --gold: #b08d3c; --plaque: #fbf7ec; --plaque-line: #b9a77c; --plaque-ink: #23324a; --plaque-sub: #6a5a3a;
  --serif: Georgia, "Times New Roman", Times, serif;
  --display: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --amber: #d4850a; --turquoise: #1a9b8a; --red: #c4382a; --blue: #2458a8; --pink: #d45c8a;
  --madras: linear-gradient(to right, var(--amber) 0 20%, var(--turquoise) 20% 40%, var(--red) 40% 60%, var(--blue) 60% 80%, var(--pink) 80% 100%);
  --base: 18px; --leading: 1.6;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="proud"]) {
    color-scheme: dark;
    --paper: #121a24; --ink: #e9eef4; --muted: #9aa6b4; --rule: #2a3646; --panel: #1b2633;
    --accent: #8fb3e6; --rust: #e08c84; --draft: #b83a29; --draft-ink: #ffffff; --mark: #4a3f12; --head: #f1f4f8;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --paper: #121a24; --ink: #e9eef4; --muted: #9aa6b4; --rule: #2a3646; --panel: #1b2633;
  --accent: #8fb3e6; --rust: #e08c84; --draft: #b83a29; --draft-ink: #ffffff; --mark: #4a3f12; --head: #f1f4f8;
}
/* VI Proud: the madras palette, after the islands' madras cloth. */
:root[data-theme="proud"] {
  color-scheme: light;
  --paper: #fff8ec; --ink: #241a10; --muted: #6a4f33; --rule: #ecc98f; --panel: #fdecd0;
  --accent: #1f4f9c; --rust: #b3301f; --mark: #ffd98a; --head: #1f4f9c;
}
:root[data-large="1"] { --base: 21px; --leading: 1.75; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; overflow-wrap: break-word; }
body { margin: 0; background: var(--paper); color: var(--ink); font: var(--base)/var(--leading) var(--serif); }
body.kids { font-size: calc(var(--base) + 2px); }
a { color: var(--accent); text-underline-offset: 2px; }
a:focus-visible, input:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 8px; top: 8px; z-index: 2; background: var(--paper); padding: 10px 14px; }
.wrap { max-width: 40rem; margin: 0 auto; padding: 0 20px; }

.draft-band { background: var(--draft); color: var(--draft-ink); text-align: center; font-size: 15px; font-weight: 700; padding: 8px 12px; letter-spacing: .02em; }

header.site { border-bottom: 3px double var(--rule); padding: 20px 0 4px;
  background: linear-gradient(var(--navy), var(--navy)) 0 0 / 100% 4px no-repeat, linear-gradient(#8a2f2f, #8a2f2f) 0 4px / 100% 2px no-repeat; }
:root[data-theme="proud"] header.site { background: var(--madras) top / 100% 5px no-repeat; }
.brand { display: block; font-family: var(--display); font-size: 25px; font-weight: 700; line-height: 1.25; color: var(--ink); text-decoration: none; padding: 4px 0 6px; }
/* The TEVI plaque, as at the top of the maps (Brian, 2026-11-30): cream, a gold line set inside, the name in navy. It keeps its
   colors in Dark, as it does over the maps. VI Proud sets the same words in its own madras style. */
.plaque { display: inline-block; background: var(--plaque); border-radius: 4px; outline: 1px solid var(--plaque-line); outline-offset: -5px;
  box-shadow: 0 2px 10px rgba(18, 32, 52, .18); padding: 9px 18px 10px; text-align: center; }
.plaque .m1, .plaque .m2 { display: block; white-space: nowrap; }
.plaque .m1 { font: italic 500 15px/1.2 var(--display); color: var(--plaque-sub); }
.plaque .m2 { font: 700 27px/1 var(--display); letter-spacing: .02em; color: var(--plaque-ink); }
.brand small { margin-top: 8px; }
:root[data-theme="proud"] .plaque { display: inline; background: none; outline: 0; box-shadow: none; padding: 0; text-align: left; }
:root[data-theme="proud"] .plaque .m1, :root[data-theme="proud"] .plaque .m2 { display: inline; font: inherit; color: inherit; letter-spacing: 0; }
:root[data-theme="proud"] .brand small { margin-top: 0; }
.brand small { display: block; font-size: 14px; font-weight: 400; color: var(--rust); letter-spacing: .04em; text-transform: uppercase; }
nav.top { display: flex; flex-wrap: wrap; margin: 0 -10px; }
nav.top a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; font-size: 16px; }

main { padding: 18px 0 8px; }
h1 { font-family: var(--display); font-size: 38px; line-height: 1.1; margin: 6px 0 12px; font-weight: 700; color: var(--head); }
h2 { font-family: var(--display); font-size: 29px; line-height: 1.2; margin: 38px 0 10px; font-weight: 700; padding-top: 14px; border-top: 1px solid var(--rule); color: var(--head); }
h3.subhead { font-size: 18px; margin: 22px 0 2px; color: var(--rust); font-weight: 700; }
p { margin: 0 0 16px; }
.kicker { font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--rust); margin: 0 0 4px; }
.kicker a { color: inherit; }
.lede { font-size: 1.14em; line-height: 1.5; }
.quiet { color: var(--muted); font-size: 15px; line-height: 1.5; }
.also-called { color: var(--muted); font-style: italic; margin-top: -6px; }

.rows { list-style: none; margin: 0; padding: 0; }
.rows li { border-bottom: 1px solid var(--rule); }
.rows a.row { display: block; padding: 11px 0; min-height: 44px; color: var(--ink); text-decoration: none; }
.rows a.row:hover .t, .rows a.row:focus .t { text-decoration: underline; }
.rows .t { display: block; color: var(--accent); line-height: 1.3; }
.rows .row.plain { display: block; padding: 11px 0; }
.rows .t-plain { display: block; line-height: 1.3; }
.rows .d { display: block; font-size: 15px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.rows .n { float: right; font-size: 15px; color: var(--muted); padding-left: 12px; }
.rows .fact { padding: 12px 0; }
.rows .fact p { margin: 0 0 6px; }
.rows .fact a { display: inline-flex; align-items: center; min-height: 32px; }
.q { font-style: italic; }
.disputed { color: var(--rust); }

.oral { background: var(--panel); border-left: 4px solid var(--rust); padding: 14px 16px; margin: 26px 0; }
.oral h2 { border: 0; margin: 0 0 6px; padding: 0; font-size: 15px; letter-spacing: .05em; text-transform: uppercase; color: var(--rust); }
.oral p:last-child { margin-bottom: 0; }
.official, .hard { border: 1px solid var(--rule); background: var(--panel); padding: 12px 14px; font-size: 16px; line-height: 1.5; margin: 0 0 18px; }
.hard { border-left: 4px solid var(--rust); }
.official a { display: inline-flex; align-items: center; min-height: 32px; }
.withheld { border: 1px dashed var(--draft); padding: 10px 12px; font-size: 15px; }
.missing { color: var(--draft); font-weight: 700; }

figure { margin: 24px 0; }
figure img { display: block; max-width: 100%; height: auto; border: 1px solid var(--rule); }
figcaption { font-size: 15px; line-height: 1.45; color: var(--muted); margin-top: 8px; }
figcaption a { display: inline-flex; align-items: center; min-height: 24px; }

sup.fn { line-height: 0; vertical-align: baseline; position: relative; top: -.42em; }
/* The marks stay inline (Brian, 2026-11-30: boxed marks wrapped away from their word and spaced unevenly): a run of them is one superscript,
   joined by commas, never broken from its word, with padding that keeps each tap target at least 24 px on a phone. */
sup.fn { white-space: nowrap; font-size: 13px; font-weight: 700; color: var(--accent); }
sup.fn a { display: inline; padding: 6px 9px; margin: 0 -8.5px 0 -5.5px; text-decoration: none; color: var(--accent); }
sup.fn a:first-child { margin-left: -6.5px; }
sup.fn .sep { margin-right: 1px; }
sup.fn a:hover { text-decoration: underline; }

.notes ol { margin: 0; padding: 0 0 0 1.6em; font-size: 15.5px; line-height: 1.5; }
.notes li { padding: 10px 8px 12px 6px; border-bottom: 1px solid var(--rule); scroll-margin-top: 12px; }
.notes li:target { background: var(--mark); }
/* PLAN E22: main's sources fold away; a tapped mark (li:target) or "Show all" (#notes) opens them, no script. */
.notes.folded ol { display: none; }
.notes.folded:target ol, .notes.folded:has(li:target) ol { display: block; }
.notes.folded:target .fold, .notes.folded:has(li:target) .fold { display: none; }
.notes p { margin: 0 0 6px; }
.notes a { display: inline-flex; align-items: center; min-height: 32px; }
.notes .back a { min-height: 44px; font-size: 14px; padding-right: 12px; }

.facts-of { font-size: 16px; }
dl.meta { display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: baseline; font-size: 15px; line-height: 1.5; margin: 26px 0 14px; }
dl.meta dt { color: var(--muted); }
dl.meta dd { margin: 0; }
dl.meta a { display: inline-block; padding: 4px 0; }
dl.meta sup.fn a { display: inline; padding: 6px 9px; }
.rows + p { margin-top: 18px; }

#search { margin: 0 0 8px; }
#search[hidden] { display: none; }
#search label { display: block; font-size: 16px; margin-bottom: 4px; }
#search input { width: 100%; min-height: 48px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--muted); border-radius: 3px; padding: 8px 12px; }
#search-results { list-style: none; margin: 10px 0 0; padding: 0; }
#search-results li { border-bottom: 1px solid var(--rule); }
#search-results a { display: block; padding: 10px 0; min-height: 44px; text-decoration: none; color: var(--ink); }
#search-results .t { display: block; color: var(--accent); }
#search-results .d { display: block; font-size: 15px; line-height: 1.45; color: var(--muted); }
#search-results mark { background: var(--mark); color: inherit; }
#search-off[hidden] { display: none; }

footer.site { border-top: 3px double var(--rule); margin-top: 40px; padding: 16px 0 30px; font-size: 15px; line-height: 1.5; color: var(--muted); }
footer.site p { margin: 0 0 8px; }
footer.site nav { display: flex; flex-wrap: wrap; margin: 0 -8px 6px; }
footer.site nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 8px; }
footer.site .ai a { color: var(--muted); display: inline-flex; align-items: center; min-height: 32px; }

.disclosure { margin-top: 18px; }
.disclosure a { display: inline-flex; align-items: center; min-height: 32px; }
.cite { overflow-wrap: anywhere; }
.to-kids { margin-top: 18px; }
.glance { margin: 0 0 16px; }

/* Print: one kids' page on one sheet, in black on white, with no site furniture. A teacher can copy it. */
@media print {
  :root { --paper: #fff; --ink: #000; --muted: #333; --rule: #999; --panel: #fff; --accent: #000; --rust: #000; --mark: #fff; }
  body, body.kids { font-size: 12pt; line-height: 1.4; background: #fff; color: #000; }
  header.site, footer.site, .skip, .draft-band, #search-here, nav, .to-kids, .notes .back { display: none; }
  .wrap { max-width: none; padding: 0; }
  a { color: #000; text-decoration: none; }
  h1 { font-size: 18pt; }
  figure img { max-height: 3in; }
}

/* The working-edition line, the work so far, and the Atlas (2026-11-13). */
.edition { font-size: 16px; line-height: 1.5; color: var(--ink); background: var(--panel); border: 1px solid var(--rule); border-left: 4px solid var(--accent); border-radius: 4px; padding: 10px 14px; margin: 4px 0 20px; }
.edition p { margin: 0 0 6px; }
.edition p:last-child { margin-bottom: 0; }
.edition strong { color: var(--accent); letter-spacing: .02em; }
dl.work { display: grid; grid-template-columns: 1fr; gap: 2px 0; margin: 0 0 10px; }
dl.work dt { font-size: 15px; color: var(--rust); letter-spacing: .03em; margin-top: 10px; }
dl.work dd { margin: 0; }
dl.work dd strong { font-size: 24px; margin-right: 6px; }
.atlas { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.atlas p { flex: 1 1 14rem; margin: 0; }
.atlas-cover { width: 9rem; max-width: 40%; height: auto; border: 1px solid var(--rule); }

/* The units switch (PLAN E6, tools/site/units.js): measurements print American first; the button swaps every one on the page. */
.units-switch { display: inline-block; min-height: 44px; margin: 0 0 14px; padding: 8px 14px; font: 15px/1.2 var(--serif); color: var(--accent); background: var(--panel); border: 1px solid var(--rule); border-radius: 22px; cursor: pointer; }
.units-switch[aria-pressed="true"] { color: var(--paper); background: var(--accent); border-color: var(--accent); }
.units-switch:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
@media print { .units-switch { display: none; } }

/* The core strip, the cards, the sheets and the register (PLAN E29, 2026-11-29). */
nav.core { background: var(--panel); border-bottom: 1px solid var(--rule); font-size: 14px; line-height: 1.3; }
nav.core .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 0 2px; padding-top: 4px; padding-bottom: 4px; }
nav.core a, nav.core span[aria-current] { display: inline-flex; align-items: center; min-height: 36px; color: var(--muted); text-decoration: none; }
nav.core a:hover, nav.core a:focus { text-decoration: underline; color: var(--accent); }
nav.core span[aria-current] { color: var(--ink); font-weight: 700; }
nav.core .dot { color: var(--muted); padding: 0 4px; }
/* Phones (Brian, 2026-12-02, as on USVI Public Records): the strip stays on one line down to 370px, and wraps below that. */
@media (max-width: 520px) {
  nav.core { font-size: 11px; }
  nav.core .wrap { flex-wrap: nowrap; white-space: nowrap; padding: 2px 10px; }
  nav.core a, nav.core span[aria-current] { min-height: 32px; }
  nav.core .dot { padding: 0 2px; }
}
@media (max-width: 369px) {
  nav.core .wrap { flex-wrap: wrap; white-space: normal; }
  nav.core a, nav.core span[aria-current] { min-height: 26px; }
}
nav.top a[aria-current] { color: var(--ink); font-weight: 700; text-decoration: none; }
.drawn { margin: -6px 0 18px; font-size: 14px; letter-spacing: .05em; text-transform: uppercase; color: var(--rust); }
.drawn a { color: inherit; }
.cards { list-style: none; margin: 8px 0 16px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 14px; }
.cards.one { grid-template-columns: 1fr; }
.cards li { margin: 0; min-width: 0; }
.card { display: flex; flex-direction: column; height: 100%; border: 1px solid var(--rule); background: var(--panel); color: var(--ink); text-decoration: none; border-radius: 6px; overflow: hidden; }
a.card:hover .card-title, a.card:focus .card-title { text-decoration: underline; }
.card-body { display: block; padding: 12px 14px 14px; }
.card-title { display: block; font-size: 19px; font-weight: 700; line-height: 1.25; color: var(--accent); margin: 2px 0 6px; }
.card-text { display: block; font-size: 16px; line-height: 1.5; }
.card .kicker { display: block; font-size: 12px; overflow-wrap: anywhere; }
.pic { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; background: var(--rule); border-bottom: 1px solid var(--rule); }
.pic.missing { aspect-ratio: 3 / 2; }
.cards.one .pic { aspect-ratio: 16 / 9; }
.sheets { grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: 12px; }
.sheet { border: 1px solid var(--rule); background: var(--panel); border-radius: 6px; overflow: hidden; }
.sheet .pic { aspect-ratio: 1 / 1; object-fit: contain; background: var(--paper); padding: 6px; }
.sheet .card-title { font-size: 16px; }
.sheet .files { display: flex; flex-wrap: wrap; gap: 0 12px; font-size: 14px; }
.sheet .files a { display: inline-flex; align-items: center; min-height: 36px; }
.held { display: inline-block; font-size: 13px; color: var(--draft); font-weight: 700; }
.connectors { padding-left: 20px; }
.connectors li { margin: 0 0 10px; }
.connectors code { font-size: 14px; overflow-wrap: anywhere; }
nav.contents ol { margin: 0 0 8px; padding-left: 22px; }
nav.contents li { margin: 0; min-height: 36px; display: list-item; }
.part h2 .quiet { font-weight: 400; }
.part h3 { font-size: 17px; color: var(--rust); margin: 22px 0 4px; }
ol.register { list-style: none; margin: 0 0 12px; padding: 0; }
ol.register li { display: grid; grid-template-columns: 3.4rem 1fr; gap: 0 10px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
ol.register .y { grid-row: span 2; color: var(--muted); font-size: 15px; font-variant-numeric: tabular-nums; padding-top: 1px; }
ol.register .t { line-height: 1.35; }
ol.register .d { font-size: 15px; line-height: 1.45; color: var(--muted); }
.held-block { border: 2px dashed var(--draft); border-radius: 6px; padding: 10px 12px 2px; margin: 0 0 16px; }
.held-block > .held { margin: 0 0 8px; }
/* Wider on a big screen for the cards; text keeps its reading width (2026-11-29). */
.wrap { max-width: 62rem; }
main .wrap > *, main article > * { max-width: 40rem; }
main .wrap > .cards, main article > .cards, main .wrap > .held-block, main article > .held-block { max-width: none; }
@media (min-width: 64rem) { .cards { grid-template-columns: repeat(3, 1fr); } .cards.one { grid-template-columns: 1fr; max-width: 40rem; } .sheets { grid-template-columns: repeat(5, 1fr); } }
main .wrap > article { max-width: none; }
.sheet .kicker { overflow-wrap: normal; font-size: 11px; }
@media (min-width: 48rem) {
  .cards.one .card { flex-direction: row; }
  .cards.one .pic { width: 52%; flex: none; aspect-ratio: 3 / 2; border-bottom: 0; border-right: 1px solid var(--rule); }
  .cards.one .card-body { align-self: center; }
}
.held-block p { max-width: 40rem; }

/* The front page's title, the subjects and the reading themes (Brian, 2026-11-30: the old hub's style, brought back). */
.hero { padding: 18px 0 4px; }
.hero h1 { font-size: clamp(46px, 13vw, 84px); line-height: .95; letter-spacing: -.01em; margin: 4px 0 18px; }
.hero .madras { height: 6px; width: 7.5rem; background: var(--madras); margin: 0 0 22px; border-radius: 1px; }
.hero h1.plaque { display: table; margin: 10px 0 26px; padding: 16px clamp(18px, 5vw, 34px) 18px; outline-offset: -8px; box-shadow: 0 6px 22px rgba(18, 32, 52, .22); letter-spacing: 0; }
.hero h1.plaque .m1 { font-size: clamp(20px, 5.4vw, 32px); line-height: 1.2; font-weight: 500; font-style: italic; color: var(--plaque-sub); }
.hero h1.plaque .m2 { font-size: clamp(40px, 10.4vw, 72px); line-height: 1; font-weight: 700; font-style: normal; letter-spacing: .02em; color: var(--plaque-ink); }
:root:not([data-theme="proud"]) .hero .madras { display: none; }
:root[data-theme="proud"] .hero h1.plaque { display: block; background: none; outline: 0; box-shadow: none; padding: 0; margin: 4px 0 18px; text-align: left; letter-spacing: -.01em; }
:root[data-theme="proud"] .hero h1.plaque .m1 { display: inline; font: inherit; color: var(--head); }
:root[data-theme="proud"] .hero h1.plaque .m2 { display: block; font: inherit; font-style: italic; font-weight: 600; color: var(--rust); letter-spacing: 0; }
.hero + .lede { font-size: 1.3em; line-height: 1.45; }
.card-title { font-family: var(--display); font-size: 24px; line-height: 1.15; }
.subjects { list-style: none; margin: 14px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(16rem, 1fr)); gap: 14px; }
.subject { margin: 0; background: var(--panel); border: 1px solid var(--rule); border-top: 5px solid var(--amber); border-radius: 6px; padding: 12px 14px 8px; min-width: 0; }
:root:not([data-theme="proud"]) .subject { border-top: 3px solid var(--gold); }
:root[data-theme="proud"] .subject:nth-child(5n+2) { border-top-color: var(--turquoise); }
:root[data-theme="proud"] .subject:nth-child(5n+3) { border-top-color: var(--red); }
:root[data-theme="proud"] .subject:nth-child(5n+4) { border-top-color: var(--blue); }
:root[data-theme="proud"] .subject:nth-child(5n+5) { border-top-color: var(--pink); }
.subject h3 { font-family: var(--display); font-size: 25px; line-height: 1.15; margin: 2px 0 6px; color: var(--head); }
.subject p { font-size: 16px; line-height: 1.5; margin: 0 0 8px; }
.subject .titles { list-style: none; margin: 0; padding: 8px 0 0; border-top: 1px solid var(--rule); }
.subject .titles li { font-size: 15.5px; line-height: 1.35; padding: 4px 0; color: var(--muted); font-style: italic; }
.subject .titles a { font-style: normal; font-weight: 700; display: inline-flex; align-items: center; min-height: 32px; }
main .wrap > .subjects, main article > .subjects { max-width: none; }
@media (min-width: 64rem) { .subjects { grid-template-columns: repeat(3, 1fr); } }
.reading { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid var(--rule); }
.reading-label { font-size: 14px; letter-spacing: .05em; text-transform: uppercase; margin-right: 4px; }
.reading button { font: 15px/1 var(--serif); color: var(--ink); background: var(--paper); border: 1px solid var(--rule); border-radius: 22px; min-height: 40px; padding: 8px 14px; cursor: pointer; }
.reading button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--paper); }
.reading button:focus-visible { outline: 3px solid var(--rust); outline-offset: 2px; }
:root[data-theme="proud"] nav.core { background: var(--blue); border-bottom: 0; }
:root[data-theme="proud"] nav.core a, :root[data-theme="proud"] nav.core span, :root[data-theme="proud"] nav.core .dot { color: #fff; }
:root[data-theme="proud"] header.site { background-size: 100% 9px; padding-top: 23px; }
:root:not([data-theme="proud"]) .card { border-top: 3px solid var(--gold); }
:root[data-theme="proud"] .card { border-top: 5px solid var(--red); }
@media (min-width: 64rem) {
  .cards.pairs { grid-template-columns: repeat(2, 1fr); }
  .subjects > .subject:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
  .subjects > .subject:last-child:nth-child(3n+1) .titles { columns: 2; column-gap: 28px; }
}
