/* Reading pages (learn guides, teachers, printables, the lower half of element fact pages), light pastel
   system. Loaded after tokens.css + site.css. Readable column, white glossy cards for tables and
   call-outs, small creature accents. */
body { background: linear-gradient(180deg, var(--e-lavender-a) 0, #f8f5ff 420px, var(--e-bg) 900px); }
.article { position: relative; max-width: 780px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--e-gutter) clamp(64px, 8vw, 112px); }
.article > article { position: relative; }
.crumbs { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px; border-radius: var(--e-r-pill); background: #fff; box-shadow: var(--e-shadow-sm); font-size: 13px; font-weight: 900; letter-spacing: 0.06em; text-transform: uppercase; color: var(--e-ink-3); }
.crumbs a { color: var(--e-violet-ink); text-decoration: none; }
.article h1 { margin: 0 0 26px; font-size: clamp(36px, 4.6vw, 58px); line-height: 1.04; font-weight: 900; letter-spacing: -0.03em; color: var(--e-ink); text-wrap: balance; }
.article h2 { position: relative; margin: clamp(56px, 7vw, 84px) 0 18px; font-size: clamp(27px, 3.2vw, 36px); line-height: 1.12; font-weight: 900; letter-spacing: -0.02em; color: var(--e-ink); scroll-margin-top: 100px; text-wrap: balance; }
.article h2::before { content: ""; display: block; width: 22px; height: 22px; margin-bottom: 12px; background: var(--h2c, var(--e-violet)); clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%); }
.article h2:nth-of-type(4n + 2) { --h2c: var(--e-pink); } .article h2:nth-of-type(4n + 3) { --h2c: #f2b20a; } .article h2:nth-of-type(4n) { --h2c: var(--e-green); }
.article h3 { margin: 34px 0 8px; font-size: 21px; line-height: 1.3; font-weight: 900; color: var(--e-ink); }
.article p { margin: 0 0 22px; color: #423b5c; font-weight: 600; }
.article p strong, .article li strong, .article td strong, .article th strong { color: var(--e-ink); font-weight: 900; }
.article .lede { font-size: var(--e-fs-lede); line-height: 1.55; font-weight: 700; color: var(--e-ink); }
.byline { display: inline-flex; flex-wrap: wrap; gap: 4px; margin: 0 0 36px !important; padding: 8px 14px; border-radius: var(--e-r-pill); background: rgba(255, 255, 255, 0.75); font-size: 14px !important; font-weight: 800 !important; color: var(--e-ink-2) !important; }
.article ul, .article ol { margin: 0 0 26px; padding-left: 1.4em; color: #423b5c; font-weight: 600; }
.article li { margin: 0 0 10px; padding-left: 6px; }
.article ol li::marker { color: var(--e-violet); font-weight: 900; }
.article ul li::marker { color: var(--e-violet); content: "✦  "; font-size: 0.8em; }
.article a:not(.btn):not(.pill):not(.dl):not(.mini) { font-weight: 800; }

/* the guide's host creature, top right of the heading */
.art-critter { position: absolute; right: 0; top: 64px; width: clamp(84px, 11vw, 124px); pointer-events: auto; cursor: pointer; z-index: 1; }
.article > .art-critter { top: clamp(96px, 12vw, 150px); right: var(--e-gutter); }
.article h1 { padding-right: clamp(90px, 13vw, 140px); }

/* tables: white glossy cards */
.table-wrap { margin: 10px 0 34px; overflow-x: auto; border-radius: var(--e-r-lg); background: #fff; box-shadow: var(--e-shadow), var(--e-gloss); }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 1.45; }
.table-wrap table:has(thead th:nth-child(4)) { min-width: 640px; }
.table-wrap th, .table-wrap td { padding: 14px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--e-line); }
.table-wrap thead th { background: var(--e-lavender-a); font-size: 12.5px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--e-violet-ink); }
.table-wrap tbody th { color: var(--e-ink); font-weight: 900; }
.table-wrap td { color: #423b5c; font-weight: 600; }
.table-wrap tbody tr:last-child th, .table-wrap tbody tr:last-child td { border-bottom: 0; }
.table-wrap caption { caption-side: top; text-align: left; padding: 16px 18px 4px; font-size: 12.5px; font-weight: 900; letter-spacing: 0.08em; text-transform: uppercase; color: var(--e-ink-3); }

/* call to action: a glossy mint card with a creature */
.cta { position: relative; margin: 56px 0 0 !important; padding: 26px 28px 26px 120px; border-radius: var(--e-r-lg); font-size: 19px; font-weight: 800 !important; color: var(--e-ink) !important; background: radial-gradient(120% 120% at 0% 0%, #fff, var(--e-mint-a) 50%, var(--e-mint-b)); box-shadow: var(--e-shadow), var(--e-gloss); }
.cta::before { content: ""; position: absolute; left: 22px; bottom: 14px; width: 80px; height: 82px; background: url("/img/eui/sm/sodium.webp") center bottom / contain no-repeat; filter: var(--e-critter-shadow); }

/* cards in a guide */
.strip { display: flex; gap: 14px; margin: 0 0 44px; padding: 6px 4px 14px; overflow-x: auto; scrollbar-width: thin; }
.mini { flex: 0 0 140px; display: block; padding: 6px; border-radius: 20px; text-decoration: none; color: var(--e-ink); background: #fff; box-shadow: var(--e-shadow-sm), var(--e-gloss); transition: transform var(--e-t) var(--e-spring), box-shadow var(--e-t); }
.mini:hover { color: var(--e-ink); transform: translateY(-4px) rotate(-1.5deg); box-shadow: var(--e-shadow), inset 0 0 0 2px var(--t); }
.mini img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 15px; background: var(--t-tint); }
.mini span { display: block; padding: 8px 6px 4px; }
.mini b { display: block; font-size: 15px; font-weight: 900; }
.mini small { display: inline-flex; margin-top: 4px; padding: 2px 8px; border-radius: var(--e-r-pill); background: var(--t-tint); color: var(--t-ink); font-size: 11px; font-weight: 900; letter-spacing: 0.04em; text-transform: uppercase; }

/* related + hub lists: glossy cards */
.more { margin-top: clamp(64px, 8vw, 104px); }
.more h2 { margin-top: 0; }
.more ul, .guides { list-style: none; padding: 0 !important; margin: 0 0 24px; display: grid; gap: 12px; }
.guides { counter-reset: g; }
.more li, .guides li { margin: 0; padding: 0; }
.more a, .guides a { display: block; padding: 20px 22px; border-radius: var(--e-r-lg); text-decoration: none; background: #fff; box-shadow: var(--e-shadow-sm), var(--e-gloss); transition: transform var(--e-t) var(--e-spring), box-shadow var(--e-t); }
.more a:hover, .guides a:hover { transform: translateY(-3px); box-shadow: var(--e-shadow), inset 0 0 0 2px var(--e-violet-2); }
.more b, .guides b { display: block; font-size: 18px; line-height: 1.3; font-weight: 900; color: var(--e-ink); }
.more span, .guides span { display: block; margin-top: 4px; font-size: 15.5px; font-weight: 600; color: var(--e-ink-2); }
.guides small { display: inline-block; margin-top: 10px; padding: 3px 10px; border-radius: var(--e-r-pill); background: var(--e-lavender-a); font-size: 12.5px; font-weight: 800; color: var(--e-violet-ink); }
.guides li { counter-increment: g; }
.guides b::before { content: counter(g); display: inline-grid; place-items: center; width: 28px; height: 28px; margin-right: 10px; border-radius: 50%; background: var(--e-violet-ink); color: #fff; font-size: 13px; vertical-align: 2px; }
.hub h1 { max-width: 13em; }

/* element pages (lower half) */
.el-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 64px; }
.el-nav a { display: block; padding: 18px 20px; border-radius: var(--e-r-lg); text-decoration: none; background: #fff; box-shadow: var(--e-shadow-sm), var(--e-gloss); transition: transform var(--e-t) var(--e-spring); }
.el-nav a:hover { transform: translateY(-3px); }
.el-nav a[rel="next"], .el-nav a:last-child { text-align: right; }
.el-nav small { display: block; font-size: 12.5px; font-weight: 900; color: var(--e-ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.el-nav b { display: block; font-size: 18px; color: var(--e-ink); }
.quick-facts { box-shadow: var(--e-shadow), var(--e-gloss), inset 0 4px 0 var(--t, var(--e-violet)); }

/* standalone pages: printables, teachers */
.page .lede { margin-bottom: 30px; }
.downloads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 30px; }
.dl { position: relative; display: block; padding: 18px 20px; border-radius: var(--e-r-lg); text-decoration: none; color: #fff; background: linear-gradient(180deg, var(--e-violet-2), var(--e-violet)); box-shadow: 0 16px 28px -16px var(--e-violet), inset 0 1px 0 rgba(255, 255, 255, 0.35); transition: transform var(--e-t) var(--e-spring); }
.dl:hover { color: #fff; transform: translateY(-3px); }
.dl b { display: block; font-size: 18px; font-weight: 900; line-height: 1.2; }
.dl b::before { content: "↓ "; }
.dl span { display: block; margin-top: 2px; font-size: 14px; font-weight: 800; opacity: 0.9; }
.dl--alt, .dl--alt:hover { color: var(--e-ink); background: #fff; box-shadow: var(--e-shadow-sm), var(--e-gloss), inset 0 0 0 2px var(--e-lavender-b); }
.previews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0 0 10px; }
.previews figure { margin: 0; padding: 8px; border-radius: 20px; background: #fff; box-shadow: var(--e-shadow-sm), var(--e-gloss); }
.previews img { width: 100%; border-radius: 12px; background: #fff; }
.previews figcaption { margin: 8px 4px 2px; font-size: 13px; font-weight: 800; line-height: 1.35; color: var(--e-ink-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 32px; }
.chips a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px 0 10px; border-radius: var(--e-r-pill); font-size: 15px; font-weight: 800 !important; text-decoration: none; color: var(--e-ink); background: #fff; box-shadow: var(--e-shadow-sm), inset 0 0 0 1px var(--e-line); transition: transform var(--e-t-fast) var(--e-spring); }
.chips a::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--t, var(--e-violet)); }
.chips a span { color: var(--e-ink-3); font-size: 13px; }
.chips a:hover { color: var(--t-ink, var(--e-violet-ink)); transform: translateY(-2px); }
.epithet { margin: -10px 0 20px; font-size: 16px; font-weight: 800; color: var(--e-ink-3); }
.epithet strong { color: var(--t-ink, var(--e-violet-ink)); }

/* bingo page: online caller */
.previews--two { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; }
button.btn { font-family: var(--e-font); }
.btn--gold { --pc: #eeb312; --pc2: #fbd24c; color: #3f2c00 !important; }
.caller { margin: 8px 0 26px; padding: 24px; border-radius: var(--e-r-xl); text-align: center; background: radial-gradient(120% 120% at 50% 0%, #fff, var(--e-lemon-a) 60%, var(--e-lemon-b)); box-shadow: var(--e-shadow), var(--e-gloss); }
.caller-mode { display: flex; justify-content: center; flex-wrap: wrap; gap: 18px; font-weight: 800; color: var(--e-ink-2); }
.caller-mode input { accent-color: var(--e-violet); }
.caller-call { margin: 18px 0 6px !important; min-height: 2.4em; font-size: clamp(26px, 5vw, 44px); font-weight: 900 !important; line-height: 1.15; color: var(--e-ink) !important; }
.caller-answer { min-height: 1.5em; margin: 0 0 14px !important; font-weight: 800 !important; color: var(--e-violet-ink) !important; }
.caller-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.caller-count { margin: 14px 0 6px !important; font-size: 14px; font-weight: 800; color: var(--e-ink-3) !important; }
.caller-called { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.caller-called span { min-width: 34px; padding: 3px 8px; border-radius: 10px; font-weight: 900; color: var(--e-ink); background: #fff; box-shadow: var(--e-shadow-sm); }

@media (max-width: 720px) {
  .article h1 { padding-right: 78px; }
  .art-critter { right: 0; top: 56px; width: 74px; }
  .article > .art-critter { top: 96px; right: var(--e-gutter); }
  .table-wrap th, .table-wrap td { padding: 12px 14px; font-size: 15px; }
  .mini { flex-basis: 124px; }
  .downloads { grid-template-columns: 1fr; }
  .previews { grid-template-columns: 1fr 1fr; }
  .cta { padding: 96px 22px 22px; }
  .cta::before { left: 20px; top: 14px; bottom: auto; width: 70px; height: 72px; }
  .el-nav { grid-template-columns: 1fr; }
}

/* nine battle types: the matchup wheel and the periodic table by type (tools/lib-types.mjs) */
.type-wheel-fig, .type-table { margin: 28px 0 32px; padding: clamp(14px, 3vw, 28px); border-radius: var(--e-r-lg); background: #fff; box-shadow: var(--e-shadow-sm), var(--e-gloss); }
.type-wheel { display: block; width: min(100%, 460px); height: auto; margin: 0 auto; overflow: visible; }
.type-wheel text { font: 900 11px/1 var(--e-font); letter-spacing: 0.02em; }
.type-wheel-fig figcaption, .type-table figcaption { margin-top: 12px; font-size: 14px; font-weight: 700; color: var(--e-ink-2); text-align: center; }
.tt-grid { display: grid; grid-template-columns: repeat(18, minmax(0, 1fr)); grid-template-rows: repeat(7, auto) 8px repeat(2, auto); gap: 3px; }
.tt-el { display: grid; place-items: center; aspect-ratio: 1; border-radius: 6px; font-size: clamp(8px, 1.3vw, 13px); font-weight: 900; text-decoration: none; color: var(--t-ink); background: var(--t-tint); box-shadow: inset 0 -3px 0 var(--t); }
.tt-el:hover { color: var(--t-ink); transform: translateY(-2px); }
.tt-key { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 0; padding: 0; list-style: none; }
.tt-key li { display: inline-flex; align-items: center; gap: 5px; margin: 0; padding: 3px 10px 3px 8px; border-radius: var(--e-r-pill); background: var(--t-tint); color: var(--t-ink); font-size: 13px; font-weight: 900; }
.tt-key li::before { display: none; }
.tt-key small { font-weight: 800; opacity: 0.75; }
.tt-key .ti { width: 1.15em; height: 1.15em; }
@media (max-width: 520px) { .tt-grid { gap: 2px; } .tt-el { border-radius: 4px; box-shadow: inset 0 -2px 0 var(--t); } }
