/* Periodic Table (PERIODIC-TABLE-PLAN.md): page mode on the web iOS kit (ios.css, page.css), plus the table, the card,
   the quiz and the print preview. The families' colours are variables per look (Classic free; Pastel, Neon and Chalk
   Pro) and per appearance; every colour has a plain fallback before any color-mix (Safari before 16.2). */
:root { --tint: #1f7a8c; --on-tint: #fff; --pt-w: 1240px;
  --c-alkali: #ffb9ad; --c-alkaline: #ffd6a1; --c-transition: #fbe9a0; --c-post: #c3e8c8; --c-metalloid: #ace3de;
  --c-nonmetal: #bcd7fd; --c-halogen: #d0c9ff; --c-noble: #ebc8f8; --c-lanthanide: #ffc9e0; --c-actinide: #ecd2b8;
  --cell-ink: #15171a; --cell-dim: rgba(21, 23, 26, .62); --cell-edge: rgba(0, 0, 0, .07);
  --s-solid: #c9ced8; --s-liquid: #7fb6ff; --s-gas: #b9ecff; --s-unknown: #ececf0;
  --b-s: #ffc0cf; --b-p: #fde7a6; --b-d: #b9d6ff; --b-f: #c4ebc6; --ancient: #f2cf7a;
  --empty: rgba(120, 120, 128, .1); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --tint: #4cc1d6; --on-tint: #062a33;
  --c-alkali: #6e2d27; --c-alkaline: #6d4b1f; --c-transition: #5c5322; --c-post: #285a3d; --c-metalloid: #215855;
  --c-nonmetal: #27426d; --c-halogen: #3e3779; --c-noble: #5b2f70; --c-lanthanide: #6c2c4d; --c-actinide: #5d4431;
  --cell-ink: #f4f5f7; --cell-dim: rgba(244, 245, 247, .66); --cell-edge: rgba(255, 255, 255, .08);
  --s-solid: #4a505c; --s-liquid: #2b5fa8; --s-gas: #2c6476; --s-unknown: #2c2c30;
  --b-s: #6d2c3d; --b-p: #64542a; --b-d: #2c4a74; --b-f: #2f5b33; --ancient: #7a5f1f; --empty: rgba(120, 120, 128, .18); } }
:root[data-theme="dark"] { --tint: #4cc1d6; --on-tint: #062a33;
  --c-alkali: #6e2d27; --c-alkaline: #6d4b1f; --c-transition: #5c5322; --c-post: #285a3d; --c-metalloid: #215855;
  --c-nonmetal: #27426d; --c-halogen: #3e3779; --c-noble: #5b2f70; --c-lanthanide: #6c2c4d; --c-actinide: #5d4431;
  --cell-ink: #f4f5f7; --cell-dim: rgba(244, 245, 247, .66); --cell-edge: rgba(255, 255, 255, .08);
  --s-solid: #4a505c; --s-liquid: #2b5fa8; --s-gas: #2c6476; --s-unknown: #2c2c30;
  --b-s: #6d2c3d; --b-p: #64542a; --b-d: #2c4a74; --b-f: #2f5b33; --ancient: #7a5f1f; --empty: rgba(120, 120, 128, .18); }

/* the Pro looks */
html[data-look="pastel"] { --c-alkali: #fbd7d1; --c-alkaline: #fde6c9; --c-transition: #f8f1cf; --c-post: #dcf0de; --c-metalloid: #d5efec;
  --c-nonmetal: #dbe8fb; --c-halogen: #e5e1fb; --c-noble: #f2e0f8; --c-lanthanide: #fbe1ec; --c-actinide: #f1e4d6; --cell-edge: rgba(0, 0, 0, .04); }
html[data-look="neon"] { --grouped: #07080d; --row: #12141d; --text: #fff; --text2: rgba(235, 235, 245, .62); --sep: rgba(84, 84, 88, .55); --fill: rgba(120, 120, 128, .32);
  --c-alkali: #ff3b6b; --c-alkaline: #ff9f1c; --c-transition: #ffe600; --c-post: #39ff88; --c-metalloid: #00f0d8; --c-nonmetal: #2fa8ff;
  --c-halogen: #8f6bff; --c-noble: #e04dff; --c-lanthanide: #ff5fc7; --c-actinide: #ff8a5c; --cell-ink: #fff; --cell-dim: rgba(255, 255, 255, .7); --empty: rgba(255, 255, 255, .06); color-scheme: dark; }
html[data-look="neon"] body { background: #07080d; color: #fff; }
html[data-look="neon"] .pt-cell[data-c] { background: #0e1018 !important; box-shadow: inset 0 0 0 1.5px var(--cc), 0 0 12px -2px var(--cc); }
html[data-look="neon"] .pt-cell[data-c] .sym { color: var(--cc); text-shadow: 0 0 10px var(--cc); }
html[data-look="chalk"] { --grouped: #24392f; --row: #2d463a; --text: #f3f1e8; --text2: rgba(243, 241, 232, .66); --sep: rgba(243, 241, 232, .18); --fill: rgba(243, 241, 232, .12);
  --c-alkali: #f0a49a; --c-alkaline: #f2c48c; --c-transition: #efe39b; --c-post: #a9dcb0; --c-metalloid: #9fd8d2; --c-nonmetal: #a9c8f2;
  --c-halogen: #c3bbf2; --c-noble: #e1b9ef; --c-lanthanide: #f2b5cf; --c-actinide: #ddc0a3; --cell-ink: #f3f1e8; --cell-dim: rgba(243, 241, 232, .7); --empty: rgba(243, 241, 232, .07); color-scheme: dark; }
html[data-look="chalk"] body { background: #24392f; color: #f3f1e8; }
html[data-look="chalk"] .pt-cell[data-c] { background: transparent !important; box-shadow: inset 0 0 0 1.5px var(--cc); }
html[data-look="chalk"] .pt-cell[data-c] .sym { color: var(--cc); font-family: "Chalkboard SE", "Comic Sans MS", var(--rounded); }

.pg-app .pg-head h1 { letter-spacing: -0.02em; }
.pt-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 6px 0 10px; }
.pt-search { position: relative; flex: 1 1 220px; min-width: 0; max-width: 360px; }
.pt-search input { width: 100%; height: 44px; border-radius: 12px; border: 0; padding: 0 14px 0 38px; font: 17px var(--sys); background: var(--fill2); color: var(--text); -webkit-appearance: none; appearance: none; }
.pt-search input:focus { outline: 2px solid var(--tint); outline-offset: 0; }
.pt-search .sf { position: absolute; left: 12px; top: 13px; width: 18px; height: 18px; color: var(--text2); pointer-events: none; }
.pt-results { position: absolute; z-index: 20; left: 0; right: 0; top: 48px; background: var(--row); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); overflow: hidden; }
.pt-results button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 48px; padding: 6px 12px; border: 0; background: none; color: var(--text); font: 16px var(--sys); text-align: left; cursor: pointer; }
.pt-results button[aria-selected="true"], .pt-results button:hover { background: var(--fill2); }
.pt-results .chip-sym { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; font-weight: 700; background: var(--cc, var(--fill)); color: var(--cell-ink); }
.pt-results .z { margin-left: auto; color: var(--text2); font-variant-numeric: tabular-nums; }
.pt-colour { display: flex; align-items: center; gap: 8px; }
.pt-colour label { font: 15px var(--sys); color: var(--text2); }
.pt-select { height: 44px; border-radius: 12px; border: 0; padding: 0 34px 0 12px; font: 600 15px var(--sys); background: var(--fill2) 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='%23888' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 12px center; color: var(--text); -webkit-appearance: none; appearance: none; max-width: 100%; }
.pt-legend { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; padding: 0; list-style: none; }
.pt-legend button, .pt-legend span.lg { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 10px; border-radius: 999px; border: 0; background: var(--fill2); color: var(--text); font: 13px var(--sys); cursor: pointer; position: relative; }
.pt-legend button::after { content: ""; position: absolute; inset: -6px -2px; }
.pt-legend button[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--tint); }
.pt-legend i { width: 14px; height: 14px; border-radius: 4px; background: var(--cc); box-shadow: inset 0 0 0 1px var(--cell-edge); }
.pt-ramp { display: flex; align-items: center; gap: 8px; font: 13px var(--sys); color: var(--text2); margin: 0 0 10px; flex-wrap: wrap; }
.pt-ramp .bar { width: 160px; height: 12px; border-radius: 6px; background: #f5f0b8; background: linear-gradient(90deg, #f7f3c2, #f6c869, #ec7e4e, #c43d64, #7a2a7d, #2f1f5c); }
.pt-temp { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; font: 15px var(--sys); }
.pt-temp input[type=range] { flex: 1 1 200px; max-width: 360px; }
.pt-temp output { font-variant-numeric: tabular-nums; font-weight: 600; min-width: 9em; }
.pt-hint { font: 13px var(--sys); color: var(--text2); margin: 0 0 8px; }
@media (min-width: 900px) { .pt-hint.narrow { display: none; } }

/* the table */
.pt-scroll { overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; margin: 0 -16px; padding: 4px 16px 12px; scrollbar-width: thin; }
.pt-grid { display: grid; grid-template-columns: 18px repeat(18, minmax(46px, 1fr)); grid-template-rows: 20px repeat(7, auto) 14px repeat(2, auto); gap: 3px; min-width: 880px; position: relative; }
.pt-gl, .pt-pl { font: 600 11px var(--sys); color: var(--text2); display: grid; place-items: center; font-variant-numeric: tabular-nums; }
.pt-cell { position: relative; aspect-ratio: 1 / 1.12; min-height: 50px; border: 0; border-radius: 7px; padding: 0; background: var(--cc, var(--empty)); color: var(--cell-ink); font-family: var(--sys); cursor: pointer;
  box-shadow: inset 0 0 0 1px var(--cell-edge); transition: transform .12s, box-shadow .12s, opacity .15s; display: block; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.pt-cell .num { position: absolute; left: 5px; top: 3px; font-size: 10.5px; font-variant-numeric: tabular-nums; }
.pt-cell .sym { position: absolute; left: 0; right: 0; top: 30%; font-size: 19px; font-weight: 700; text-align: center; letter-spacing: -0.01em; }
.pt-cell .nm, .pt-cell .wt { position: absolute; left: 2px; right: 2px; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--cell-dim); display: none; }
.pt-cell .nm { bottom: 15px; font-size: 9.5px; color: var(--cell-ink); }
.pt-cell .wt { bottom: 3px; font-size: 9px; font-variant-numeric: tabular-nums; }
@media (min-width: 1060px) { .pt-cell .nm, .pt-cell .wt { display: block; } .pt-cell .sym { top: 22%; font-size: 21px; } }
.pt-cell:hover { transform: scale(1.06); z-index: 2; box-shadow: inset 0 0 0 1px var(--cell-edge), 0 6px 16px rgba(0, 0, 0, .18); }
.pt-cell:focus-visible { outline: 3px solid var(--tint); outline-offset: 1px; z-index: 3; }
.pt-cell.sel { box-shadow: inset 0 0 0 2.5px var(--text), 0 6px 16px rgba(0, 0, 0, .2); z-index: 2; }
.pt-cell.dim { opacity: .22; }
.pt-cell.pred { background-image: repeating-linear-gradient(135deg, transparent 0 5px, rgba(127, 127, 127, .16) 5px 7px); }
.pt-cell.none { background: var(--empty); color: var(--text2); }
.pt-cell.blank .sym, .pt-cell.blank .nm, .pt-cell.blank .wt { visibility: hidden; }
.pt-cell.right { box-shadow: inset 0 0 0 2.5px var(--green); }
.pt-cell.wrong { animation: pt-shake .3s; box-shadow: inset 0 0 0 2.5px var(--red); }
@keyframes pt-shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }
.pt-ph { aspect-ratio: 1 / 1.12; min-height: 50px; border-radius: 7px; border: 1.5px dashed var(--sep); display: grid; place-items: center; font: 600 10px var(--sys); color: var(--text2); }
.pt-gap { grid-column: 1 / -1; }
@media (prefers-reduced-motion: reduce) { .pt-cell, .pt-cell:hover { transition: none; transform: none; } .pt-cell.wrong { animation: none; } }

/* the spotlight: the chosen element; inside the table's gap from 900 px, above it on phones */
.pt-spot { display: flex; align-items: center; gap: 14px; min-height: 92px; padding: 10px 12px; border-radius: 14px; background: var(--row); box-shadow: var(--shadow); margin: 0 0 10px; }
.pt-grid > .pt-spot { grid-column: 4 / 14; grid-row: 2 / 5; margin: 6px 10px 10px; align-self: start; }
.pt-spot .big { flex: none; width: 76px; height: 82px; border-radius: 12px; background: var(--cc, var(--empty)); color: var(--cell-ink); position: relative; box-shadow: inset 0 0 0 1px var(--cell-edge); }
.pt-spot .big .num { position: absolute; left: 7px; top: 5px; font: 600 12px var(--sys); }
.pt-spot .big .sym { position: absolute; inset: 22px 0 0; text-align: center; font: 700 30px var(--sys); }
.pt-spot .txt { min-width: 0; flex: 1; }
.pt-spot .nm { font: 700 20px/1.2 var(--sys); }
.pt-spot .meta { font: 14px/1.35 var(--sys); color: var(--text2); }
.pt-spot .val { font: 600 15px var(--sys); margin-top: 2px; font-variant-numeric: tabular-nums; }
.pt-spot .open { flex: none; min-height: 44px; padding: 0 16px; border-radius: 22px; border: 0; background: var(--tint); color: var(--on-tint); font: 600 15px var(--sys); cursor: pointer; }
html[data-look="neon"] .pt-spot .big, html[data-look="chalk"] .pt-spot .big { background: transparent; box-shadow: inset 0 0 0 2px var(--cc); color: var(--cc); }

/* the element card (a kit sheet) */
.pt-card { padding: 4px 16px 24px; }
.pt-hero { display: flex; gap: 16px; align-items: center; margin: 4px 0 14px; }
.pt-hero .tile { flex: none; width: 112px; height: 124px; border-radius: 18px; background: var(--cc, var(--empty)); color: var(--cell-ink); position: relative; box-shadow: inset 0 0 0 1px var(--cell-edge), 0 8px 24px rgba(0, 0, 0, .12); }
.pt-hero .tile .num { position: absolute; left: 10px; top: 8px; font: 600 15px var(--sys); }
.pt-hero .tile .sym { position: absolute; left: 0; right: 0; top: 30px; text-align: center; font: 800 46px var(--sys); letter-spacing: -0.02em; }
.pt-hero .tile .wt { position: absolute; left: 0; right: 0; bottom: 9px; text-align: center; font: 13px var(--sys); color: var(--cell-dim); font-variant-numeric: tabular-nums; }
.pt-hero .name { font: 800 28px/1.1 var(--sys); letter-spacing: -0.02em; }
.pt-hero .also { font: 14px var(--sys); color: var(--text2); margin-top: 2px; }
.pt-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pt-chips span { padding: 3px 10px; border-radius: 999px; background: var(--fill2); font: 600 13px var(--sys); }
.pt-chips .cat { background: var(--cc); color: var(--cell-ink); }
.pt-pics { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.pt-pic { background: var(--row); border-radius: 14px; padding: 10px; text-align: center; }
.pt-pic svg { width: 100%; height: auto; max-height: 180px; display: block; }
.pt-pic figcaption { font: 13px var(--sys); color: var(--text2); margin-top: 4px; }
@media (max-width: 330px) { .pt-pics { grid-template-columns: 1fr; } }
.pt-facts .row { align-items: flex-start; }
.pt-facts .k { color: var(--text); flex: 1 1 45%; }
.pt-facts .v { flex: 1 1 55%; text-align: right; color: var(--text2); font-variant-numeric: tabular-nums; }
.pt-facts .v small { display: block; font-size: 12px; color: var(--text2); opacity: .85; }
.pt-src { font: 13px/1.45 var(--sys); color: var(--text2); margin: 8px 4px 0; }
.pt-src a { color: var(--tint); }
.pt-nav { display: flex; gap: 10px; margin: 14px 0 0; }
.pt-nav button, .pt-nav a { flex: 1; min-height: 46px; border-radius: 12px; border: 0; background: var(--fill2); color: var(--text); font: 600 15px var(--sys); display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none; cursor: pointer; padding: 0 10px; text-align: center; }
.pt-nav a.prom { background: var(--tint); color: var(--on-tint); }

/* quiz */
.pt-quizhome { display: grid; gap: 14px; margin: 6px 0 16px; }
@media (min-width: 900px) { .pt-quizhome { grid-template-columns: 1fr 1fr; align-items: start; } }
.pt-daily { border-radius: 18px; padding: 18px; color: #fff; background: #1f7a8c; background: linear-gradient(140deg, #2a9bb0, #1f6a8c 55%, #253f7a); box-shadow: 0 10px 30px rgba(31, 106, 140, .3); }
.pt-daily h2 { font: 800 22px/1.2 var(--sys); margin: 2px 0 4px; }
.pt-daily p { margin: 0 0 12px; font: 15px/1.4 var(--sys); opacity: .92; }
.pt-daily .eyebrow { color: rgba(255, 255, 255, .8); }
.pt-daily button { min-height: 46px; padding: 0 20px; border-radius: 23px; border: 0; background: #fff; color: #1b4f6a; font: 700 16px var(--sys); cursor: pointer; margin: 0 8px 6px 0; }
.pt-daily button.ghost { background: rgba(255, 255, 255, .18); color: #fff; }
.pt-squares { font-size: 20px; letter-spacing: 2px; margin: 6px 0 10px; }
.pt-modes .row-badge.pro { background: var(--tint); color: #fff; font-size: 11px; padding: 2px 7px; border-radius: 8px; }
.pt-best { font: 13px var(--sys); color: var(--text2); }

.pt-q { max-width: 680px; margin: 0 auto; padding: 8px 18px 28px; }
.pt-prog { display: flex; gap: 4px; margin: 4px 0 18px; }
.pt-prog i { flex: 1; height: 5px; border-radius: 3px; background: var(--fill); }
.pt-prog i.r { background: var(--green); } .pt-prog i.w { background: var(--red); } .pt-prog i.now { background: var(--tint); }
.pt-prompt { font: 700 24px/1.25 var(--sys); margin: 4px 0 18px; letter-spacing: -0.01em; }
.pt-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pt-q .pt-choices button { min-height: 64px; border-radius: 14px; border: 0; background: var(--row); color: var(--text); font: 600 18px var(--sys); box-shadow: inset 0 0 0 1px var(--sep); cursor: pointer; padding: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.pt-choices button .mk { font-weight: 800; }
.pt-q .pt-choices button.right { background: var(--green); color: #fff; box-shadow: none; }
.pt-q .pt-choices button.wrong { background: var(--red); color: #fff; box-shadow: none; }
.pt-choices button:disabled { cursor: default; }
.pt-choices button:disabled:not(.right):not(.wrong) { opacity: .55; }
.pt-type { display: flex; gap: 10px; }
.pt-type input { flex: 1; min-width: 0; height: 52px; border-radius: 14px; border: 0; padding: 0 16px; font: 600 20px var(--sys); background: var(--row); color: var(--text); box-shadow: inset 0 0 0 1px var(--sep); }
.pt-type button, .pt-next { min-height: 52px; padding: 0 22px; border-radius: 26px; border: 0; background: var(--tint); color: var(--on-tint); font: 700 17px var(--sys); cursor: pointer; }
.pt-feedback { margin: 16px 0 0; padding: 12px 14px; border-radius: 14px; background: var(--row); font: 15px/1.45 var(--sys); }
.pt-feedback b { font-weight: 700; }
.pt-feedback .pt-mini { margin-top: 8px; }
.pt-next { display: block; margin: 16px 0 0 auto; }
.pt-keys { font: 12px var(--sys); color: var(--text2); margin-top: 14px; text-align: center; }
@media (hover: none) { .pt-keys { display: none; } }
.pt-result { text-align: center; padding: 16px 18px 28px; }
.pt-result .score:focus { outline: none; }
.pt-result .score { font: 800 56px var(--sys); letter-spacing: -0.02em; }
.pt-review { margin-top: 12px; }
.pt-review li { padding: 6px 0; border-bottom: .5px solid var(--sep); font: 15px var(--sys); list-style: none; }
.pt-review ul { padding: 0; margin: 0; text-align: left; }
.pt-qtable .pt-scroll { margin: 0; padding: 0 0 8px; }
.pt-qtable .pt-grid { min-width: 860px; }

/* print */
.pt-print { display: grid; gap: 14px; margin: 6px 0 16px; }
@media (min-width: 900px) { .pt-print { grid-template-columns: 360px 1fr; align-items: start; } }
.pt-preview { background: var(--row); border-radius: 16px; padding: 12px; text-align: center; }
.pt-preview canvas { max-width: 100%; height: auto; box-shadow: 0 4px 18px rgba(0, 0, 0, .14); background: #fff; }
.pt-preview .pager { display: flex; justify-content: center; align-items: center; gap: 12px; margin-top: 8px; font: 14px var(--sys); color: var(--text2); }
.pt-preview .pager button { min-width: 44px; min-height: 44px; border-radius: 22px; border: 0; background: var(--fill2); color: var(--text); font: 600 18px var(--sys); cursor: pointer; }
.pt-printbtns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.pt-printbtns button { min-height: 48px; padding: 0 20px; border-radius: 24px; border: 0; font: 700 16px var(--sys); cursor: pointer; background: var(--fill2); color: var(--text); }
.pt-printbtns button.prom { background: var(--tint); color: var(--on-tint); }
.pt-note { font: 13px/1.45 var(--sys); color: var(--text2); margin: 8px 4px; }

/* the article and its pictures */
.pg-read .pt-mini-svg { max-width: 560px; width: 100%; height: auto; display: block; margin: 8px 0 4px; }
.pg-read figure { margin: 12px 0; }
.pg-read figcaption { font-size: 14px; color: var(--text2); }
.pg-read .plinks { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-read .plinks a { padding: 8px 12px; border-radius: 10px; background: var(--fill2); text-decoration: none; }
.pg-read .crumbs { font-size: 14px; color: var(--text2); margin: 0 0 8px; }
.pg-read .elist { columns: 3 150px; padding-left: 1.2em; }
.pg-read table.facts td:last-child { color: var(--text2); font-size: 13px; }
@media print { .pg-bar, .pg-tools, .pg-seg, .pt-bar, .pt-legend, .pg-foot { display: none !important; } }

/* the pictures (js/art.js) */
.ptsvg rect { fill: var(--empty); }
.ptsvg .pl { fill: var(--empty); stroke: var(--sep); stroke-width: .6; }
.ptsvg .k-alkali { fill: var(--c-alkali); } .ptsvg .k-alkaline { fill: var(--c-alkaline); } .ptsvg .k-transition { fill: var(--c-transition); }
.ptsvg .k-post { fill: var(--c-post); } .ptsvg .k-metalloid { fill: var(--c-metalloid); } .ptsvg .k-nonmetal { fill: var(--c-nonmetal); }
.ptsvg .k-halogen { fill: var(--c-halogen); } .ptsvg .k-noble { fill: var(--c-noble); } .ptsvg .k-lanthanide { fill: var(--c-lanthanide); } .ptsvg .k-actinide { fill: var(--c-actinide); }
.ptsvg .al { fill: var(--tint); opacity: .35; }
.ptsvg .mk { fill: var(--tint); }
.ptsvg .mt { fill: var(--on-tint, #fff); font-weight: 700; font-family: var(--sys); }
.ptsvg .nt { fill: var(--cell-dim); font-family: var(--sys); }
.ptsvg .nt2 { fill: var(--on-tint, #fff); font-family: var(--sys); }
.ptsvg .nuc { fill: var(--tint); }
.ptsvg .ring { fill: none; stroke: var(--sep); stroke-width: 1.2; }
.ptsvg .el { fill: var(--text); }
.pt-shells { max-width: 200px; margin: 0 auto; }

/* phones: the legend in one row that scrolls, a smaller spotlight, so the table starts on the first screen */
@media (max-width: 699px), (max-height: 500px) {
  .pt-legend { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 8px; padding: 2px 16px 6px; scrollbar-width: none; }
  .pt-legend::-webkit-scrollbar { display: none; }
  .pt-legend button, .pt-legend span.lg { flex: none; }
  .pt-spot { min-height: 0; padding: 8px 10px; gap: 10px; }
  .pt-spot .big { width: 54px; height: 58px; border-radius: 10px; }
  .pt-spot .big .sym { inset: 16px 0 0; font-size: 22px; }
  .pt-spot .big .num { font-size: 10px; left: 5px; top: 3px; }
  .pt-spot .nm { font-size: 17px; }
  .pt-spot .meta { font-size: 13px; }
  .pt-colour label { display: none; }
  .pt-bar { gap: 8px; }
}
.pt-spot .meta.more { display: none; }
.pt-grid > .pt-spot .meta.more { display: block; }
.pg-read .elist li { margin: 0; }
.pg-read .elist a { display: inline-block; min-width: 44px; min-height: 44px; line-height: 44px; }
.pg-read .plinks a { min-height: 44px; display: inline-flex; align-items: center; }
