/* The Updates page (updates.html): upcoming patch notes. Built on site.css's tokens and faces; the site's CSP allows
   no inline styles, so every look lives here (feature parts add their own rules at the end, prefixed .u-<feature>). */
/* The page's widths (the website layout rule, 2026-11-11): the board 1120, its cards thirds, halves or the full row of
   it; the head's text and the reader 760. Gaps from one scale: 8, 16, 24, 32, 48. */
.page.updates {
  padding-inline: max(16px, env(safe-area-inset-left, 0px)) max(16px, env(safe-area-inset-right, 0px));
  /* the town painting behind the title, fading into the page (it was a banner a whole screen tall under the contents) */
  background:
    linear-gradient(180deg, rgba(18, 15, 12, 0.62), rgba(18, 15, 12, 0.82) 260px, #120f0c 560px),
    url(hero-tyt.webp) center top / 1600px auto no-repeat,
    #120f0c;
  background:
    linear-gradient(180deg, rgba(18, 15, 12, 0.62), rgba(18, 15, 12, 0.82) 260px, #120f0c 560px),
    image-set(url(hero-tyt.avif) type('image/avif'), url(hero-tyt.webp) type('image/webp')) center top / 1600px auto no-repeat,
    #120f0c;
}
@media (max-width: 720px) {
  .page.updates {
    background:
      linear-gradient(180deg, rgba(18, 15, 12, 0.62), rgba(18, 15, 12, 0.85) 200px, #120f0c 420px),
      url(hero-tyt-sm.webp) center top / 900px auto no-repeat,
      #120f0c;
    background:
      linear-gradient(180deg, rgba(18, 15, 12, 0.62), rgba(18, 15, 12, 0.85) 200px, #120f0c 420px),
      image-set(url(hero-tyt-sm.avif) type('image/avif'), url(hero-tyt-sm.webp) type('image/webp')) center top / 900px auto no-repeat,
      #120f0c;
  }
}
.up-wrap { width: min(1120px, 100%); margin: 0 auto; display: grid; gap: 48px; }
.up-wrap > * { min-width: 0; }
/* ---------- page head: one centred 760 column ---------- */
.up-head { text-align: center; display: grid; gap: 16px; justify-items: center; }
.up-head > p { max-width: 760px; }
.up-head .eyebrow { margin: 0; font: 500 13px/1.3 var(--ui); letter-spacing: 0.16em; text-transform: uppercase; color: var(--bronze-hi); text-shadow: 0 1px 3px #000; }
.up-head h1 { margin: 0; font: 400 clamp(32px, 6vw, 50px)/1.08 var(--display); color: var(--gold); letter-spacing: 0.02em; text-wrap: balance; text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8); }
.up-lead { margin: 0; font: italic 19px/1.5 var(--lore); color: #dccaa4; text-shadow: 0 1px 3px #000; }
.up-note { margin: 0; font-size: 14.5px; color: var(--muted); }
/* the contents: the weeks as the kit's tabs, equal widths, a short last row widening to fill; the guides on one line */
.up-toc { width: min(940px, 100%); display: grid; gap: 16px; scroll-margin-top: 16px; }
.up-toc-weeks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.up-toc-weeks a {
  flex: 1 1 136px; max-width: 100%; text-align: center; text-decoration: none; white-space: nowrap;
  padding: 4px 8px; border: 7px solid transparent; border-image: var(--kit-tab) 14 fill / 7px stretch;
  font: 400 15.5px/1.2 var(--display); letter-spacing: 0.03em; color: var(--text-2);
}
.up-toc-weeks a:first-child { border-image-source: var(--kit-tab-on); color: #fff3df; }
.up-toc-weeks a:hover { color: #fff; filter: brightness(1.18); }
@media (max-width: 599.9px) { .up-toc-weeks a { flex-basis: 120px; } .up-toc-weeks a span { display: none; } }
.up-toc-guides { margin: 0; font-size: 15px; color: var(--muted); }
.up-toc-guides a { color: var(--cream); text-decoration: none; }
.up-toc-guides a:hover { color: var(--gold); text-decoration: underline; }
/* ---------- a section: a kit frame (the board hides them; the reader shows one patch or guide in one) ---------- */
.up-sec {
  --fw: clamp(16px, 3.2vw, 26px);
  scroll-margin-top: 16px; padding: clamp(8px, 2vw, 16px) clamp(8px, 2vw, 16px);
  border: var(--fw) solid transparent; border-image: var(--kit-frame) 120 fill / var(--fw) stretch; background: none;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.65));
  display: grid; gap: 16px; min-width: 0;
}
.up-sec > * { min-width: 0; }
.up-sec-head { display: grid; gap: 4px; }
.up-kicker { margin: 0; font: 500 12.5px/1.3 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-hi); }
.up-sec h2 { margin: 0; font: 600 clamp(24px, 3.6vw, 30px)/1.15 var(--heading); color: var(--gold); letter-spacing: 0.03em; text-wrap: balance; }
.up-status { justify-self: start; margin: 4px 0 0; font: 500 13px/1 var(--ui); letter-spacing: 0.06em; color: #f0dba8; padding: 5px 10px; border-radius: 999px; background: rgba(156, 122, 71, 0.22); border: 1px solid rgba(216, 182, 118, 0.45); }
.up-sec h3 { margin: 8px 0 0; font: 600 14.5px/1.3 var(--heading); letter-spacing: 0.13em; text-transform: uppercase; color: var(--bronze-hi); }
.up-sec p { margin: 0; color: #ddd0b4; max-width: 68ch; }
.up-intro { font: 19px/1.55 var(--lore); color: #e6d8b8 !important; }
.up-list { margin: 0; padding-left: 20px; display: grid; gap: 6px; color: #ddd0b4; max-width: 70ch; }
.up-list li::marker { color: var(--bronze-hi); }
.up-list b { color: var(--parch); font-weight: 700; }
.up-sec kbd { font: 500 14px/1 var(--ui); padding: 2px 6px; border: 1px solid var(--bronze-lo); border-bottom-width: 2px; border-radius: 3px; background: #1a140f; color: var(--parch); }
.up-sec code { font: 500 0.92em var(--ui); padding: 1px 5px; border-radius: 3px; background: rgba(156, 122, 71, 0.18); color: #f2e3c2; }
/* each section ends with a way back to the contents (the page is long on a phone) */
.up-sec .up-back { justify-self: start; margin-top: 4px; font-size: 14.5px; }
.up-back a { display: inline-block; padding: 6px 0; text-decoration: none; }
.up-back a:hover { text-decoration: underline; }
/* ---------- pictures ---------- */
.up-hero,
.up-fig { margin: 0; }
.up-hero img,
.up-fig img { display: block; max-width: 100%; height: auto; border: 1px solid rgba(156, 122, 71, 0.35); border-radius: 3px; background: #0c0a08; }
.up-hero img { width: 100%; }
.up-fig.small img { max-width: min(100%, 300px); }
.up-hero figcaption,
.up-fig figcaption { margin-top: 6px; font-size: 14px; color: var(--muted); max-width: 68ch; }
/* A table that has to scroll sideways shows a bronze glow at the edge with more to see. The glows stay put (scroll);
   two covers in the table's own colour scroll with the content (local) and hide each glow once that edge is reached.
   #110d0a is the old rgba(10, 8, 6, 0.4) over the panel, so the table looks as before. */
.up-table {
  overflow-x: auto; border: 1px solid rgba(156, 122, 71, 0.35); border-radius: 3px;
  background:
    linear-gradient(90deg, #110d0a 40%, rgba(17, 13, 10, 0)) left center / 36px 100% no-repeat local,
    linear-gradient(270deg, #110d0a 40%, rgba(17, 13, 10, 0)) right center / 36px 100% no-repeat local,
    radial-gradient(farthest-side at 0 50%, rgba(216, 182, 118, 0.45), rgba(216, 182, 118, 0)) left center / 16px 100% no-repeat scroll,
    radial-gradient(farthest-side at 100% 50%, rgba(216, 182, 118, 0.45), rgba(216, 182, 118, 0)) right center / 16px 100% no-repeat scroll,
    #110d0a;
}
/* the page's two block widths besides full: prose (the text column) and narrow (a short two-column table) */
.up-sec .up-narrow { justify-self: start; width: min(100%, 400px); }
.up-table table { border-collapse: collapse; width: 100%; font-size: 15.5px; font-variant-numeric: lining-nums tabular-nums; }
.up-table th,
.up-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid rgba(156, 122, 71, 0.2); vertical-align: middle; }
.up-table thead th { font: 500 12.5px/1.2 var(--ui); letter-spacing: 0.1em; text-transform: uppercase; color: var(--bronze-hi); background: rgba(156, 122, 71, 0.12); white-space: nowrap; }
.up-table tbody tr:last-child td,
.up-table tbody tr:last-child th { border-bottom: 0; }
.up-table td.r,
.up-table th.r { text-align: right; white-space: nowrap; }
.up-table .name { white-space: nowrap; }
.up-tnote { margin-top: -8px !important; font-size: 13.5px; color: var(--muted) !important; }
.up-ic { width: 34px; height: 34px; object-fit: contain; vertical-align: middle; margin: -6px 10px -6px 0; border-radius: 4px; background: #1d1a17; border: 1px solid rgba(156, 122, 71, 0.3); }
.up-ic.tile { width: 32px; height: 35px; }
.up-ic.round { width: 28px; height: 28px; border: 0; background: none; border-radius: 50%; margin-right: 8px; }
/* ---------- callouts and previews ---------- */
.up-callout { justify-self: start; max-width: 72ch; padding: 12px 16px; border-left: 3px solid var(--bronze); background: rgba(156, 122, 71, 0.1); border-radius: 0 3px 3px 0; color: #ddd0b4; }
.up-callout > :first-child { margin-top: 0; }
.up-sec .up-callout p { max-width: none; }
.up-callout b { color: var(--parch); }
.up-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); gap: 12px; }
.up-card { padding: 14px 16px; border: 1px solid rgba(156, 122, 71, 0.3); border-radius: 3px; background: rgba(10, 8, 6, 0.35); display: grid; gap: 6px; align-content: start; }
.up-card h4 { margin: 0; font: 400 19px/1.2 var(--display); color: var(--gold); }
.up-card p { font-size: 15.5px; }
.up-card .big { font: 400 30px/1 var(--display); color: var(--gold); }
@media (max-width: 560px) {
  .up-table table { font-size: 14.5px; }
  .up-table th,
.up-table td { padding: 7px 9px; }
  .up-intro { font-size: 17.5px; }
  .foot a { display: inline-block; padding: 8px 4px; }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
/* name colours: the moral standings, and the grey of a flagged player (the game's own values) */
.u-pvp .u-pvp-c-angel { color: #c9a2ff; }
.u-pvp .u-pvp-c-virtuous { color: #4aa6ff; }
.u-pvp .u-pvp-c-moral { color: #7c9fdc; }
.u-pvp .u-pvp-c-good { color: #a8e39e; }
.u-pvp .u-pvp-c-neutral { color: #ffffff; }
.u-pvp .u-pvp-c-bad { color: #d8a898; }
.u-pvp .u-pvp-c-evil { color: #b0342c; }
.u-pvp .u-pvp-c-wicked { color: #ee2422; }
.u-pvp .u-pvp-c-devil { color: #ff2020; }
/* tables: row headers read like the base cells; standing names a touch bolder so their colour shows */
.u-pvp .up-table tbody th { font-weight: 500; color: #ddd0b4; }
.u-pvp .u-pvp-sn { font-weight: 700; text-shadow: 0 1px 2px #000; }
/* Evil's dark red is the game's own; a faint light halo instead of the black shadow keeps it readable on the dark panel */
.u-pvp .u-pvp-sn.u-pvp-c-evil { text-shadow: 0 0 1px rgba(255, 225, 210, 0.55), 0 0 3px rgba(255, 210, 190, 0.22); }
/* an emblem inside a sentence */
.u-pvp .up-ic.u-pvp-jewel { width: 30px; height: 30px; object-fit: contain; border: 0; background: none; margin: -8px 10px -8px 0; }
/* the grey timer: two minutes, solid then flashing */
.u-pvp-timer { display: grid; grid-template-columns: 1fr 1fr; max-width: 640px; border: 1px solid rgba(156, 122, 71, 0.35); border-radius: 3px; overflow: hidden; }
.u-pvp-timer > div { display: grid; gap: 2px; padding: 10px 12px; font-size: 14.5px; line-height: 1.35; color: #ece1c8; }
.u-pvp-timer b { font: 400 18px/1.2 var(--display); color: #f2f2f2; }
.u-pvp-timer span { text-shadow: 0 1px 2px #000; }
.u-pvp-timer .u-pvp-solid { background: rgba(167, 167, 167, 0.3); }
.u-pvp-timer .u-pvp-flashbar { background: repeating-linear-gradient(90deg, rgba(220, 220, 220, 0.55) 0 14px, rgba(220, 220, 220, 0) 14px 28px) left bottom / 100% 5px no-repeat, rgba(167, 167, 167, 0.2); }
/* the name-plate preview */
@keyframes u-pvp-flash { 0% { color: #a7a7a7; } 50% { color: #ffffff; } }
/* without motion the "at game speed" plate would stand still in grey: the two flash plates already show it */
.u-pvp-death img { width: 100%; }
@media (max-width: 560px) {
  .u-pvp-timer > div { padding: 8px 10px; font-size: 13.5px; }
}
/* where to craft: the NPC role badges and places */
.u-crafting-where h4 { display: flex; align-items: center; gap: 10px; }
.u-crafting-badge { width: 32px; height: 32px; flex: none; border-radius: 50%; }
.u-crafting .u-crafting-place { margin-top: -4px; font: italic 15px/1.3 var(--lore); color: var(--bronze-hi); }
/* the site's global img max-width lets a table squeeze its icons out of the column's width on phones; keep them whole */
.u-crafting .up-table img { max-width: none; }
/* numbers in this section's tables, header row included, use lining figures */
.u-crafting .up-table th,
.u-crafting .up-table td { font-variant-numeric: lining-nums tabular-nums; }
/* phones: the tables fit the screen. Names and recipes wrap, the odds table's heads show only the tier gems (the tier
   table above names them; the names stay for screen readers) */
@media (max-width: 560px) {
  .u-crafting .up-table .up-ic { width: 28px; height: 28px; margin-right: 8px; }
}
/* the narrowest phones (360 px and under): smaller icons and padding, so the skill, Epic and 904 columns fit */
@media (max-width: 400px) {
  .u-crafting .up-table .up-ic { width: 22px; height: 22px; margin-right: 6px; }
}
/* School chips: the three stones of the spell tiles (blue slate, white marble, black basalt). */
.u-magic-school { display: inline-block; font: 700 12px/1.3 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; padding: 2px 8px; border-radius: 3px; border: 1px solid; white-space: nowrap; }
.u-magic-blue { background: #2a4664; color: #e2edf9; border-color: #4f78a6; }
.u-magic-white { background: #e6dfcc; color: #1f1c17; border-color: #bfb59a; }
.u-magic-black { background: #1d1e22; color: #e9e6df; border-color: #55575e; }
/* The schools' and teachers' cards: a stone-coloured edge on top. */
.u-magic-card { border-top-width: 3px; }
.u-magic-card-blue { border-top-color: #4f78a6; }
.u-magic-card-white { border-top-color: #cfc6ad; }
.u-magic-card-black { border-top-color: #6a6c74; }
.u-magic .up-card .big { font-size: 26px; }
/* The spell tables: a header row per school; wide enough to read. On phones the spell table stacks into cards. */
.u-magic-spells table { min-width: 780px; }
.u-magic-spells td { font-size: 14.5px; }
.u-magic-spells td:nth-child(2) { min-width: 190px; }
.u-magic-spells td:last-child { min-width: 250px; }
/* A table icon keeps its own width when the table sizes its columns (a max-width would let the name overrun its cell). */
.u-magic .up-table .up-ic { max-width: none; }
.u-magic .u-magic-grp th { padding-top: 7px; padding-bottom: 7px; font: 500 14px/1.3 var(--ui); color: var(--muted); background: rgba(156, 122, 71, 0.07); border-top: 1px solid rgba(156, 122, 71, 0.3); }
.u-magic .u-magic-grp .u-magic-school { margin-right: 8px; }
/* The rare items painting sits on the panel with no frame (its background is clear); small, as the table shows them too. */
.u-magic a { color: var(--bronze-hi); }
.u-magic a:hover { color: var(--gold); }
/* Phones: each spell becomes a card (name, what it does, then MP, power and what it takes to learn, each labelled from
   its cell's data-label); the levels table fits with smaller icons; the rare items' chips go under their names. */
@media (max-width: 560px) {
  .u-magic-spells table { min-width: 0; }
  .u-magic-spells table,
.u-magic-spells tbody,
.u-magic-spells tr,
.u-magic-spells td,
.u-magic-spells th { display: block; }
  .u-magic-spells thead { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .u-magic-spells tbody tr:not(.u-magic-grp) { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 16px; padding: 10px 10px 11px; border-bottom: 1px solid rgba(156, 122, 71, 0.2); }
  .u-magic-spells tbody:last-child tr:last-child { border-bottom: 0; }
  .u-magic-spells td,
.u-magic-spells td:nth-child(2),
.u-magic-spells td:last-child { min-width: 0; padding: 0; border: 0; }
  .u-magic-spells td.name { flex: 0 0 100%; margin-bottom: 2px; font-weight: 700; color: var(--parch); }
  .u-magic-spells td:nth-child(2),
.u-magic-spells td:last-child { flex: 0 0 100%; }
  .u-magic-spells td[data-label]::before { content: attr(data-label); margin-right: 6px; font: 500 12px/1.2 var(--ui); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
  .u-magic-spells .u-magic-grp th { padding: 8px 10px; }
}
/* pictures of items and people, in rows that wrap */
.up-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; max-width: 740px; }
.up-gallery figure { margin: 0; display: grid; gap: 4px; justify-items: center; text-align: center; padding: 10px 6px; background: rgba(10, 8, 6, 0.5); border: 1px solid rgba(156, 122, 71, 0.3); border-radius: 4px; }
.up-gallery.tiles img { width: 72px; height: 72px; object-fit: contain; }
.up-gallery figcaption { font-size: 14px; line-height: 1.3; color: #ddd0b4; }
.up-gallery.people { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); max-width: 520px; }
.up-gallery.people img { width: 96px; height: 96px; border-radius: 50%; border: 1px solid rgba(156, 122, 71, 0.5); object-fit: cover; }
/* ---------- the 20 October update ---------- */
/* the section's own contents: its h3s are the targets */
.up-subtoc { display: flex; flex-wrap: wrap; gap: 6px; }
.up-subtoc a { text-decoration: none; color: var(--parch); font-size: 14px; padding: 4px 10px; border: 1px solid rgba(156, 122, 71, 0.35); border-radius: 3px; background: rgba(10, 8, 6, 0.35); }
.up-subtoc a:hover { border-color: var(--bronze-hi); color: var(--gold); }
.up-sec h3[id] { scroll-margin-top: 16px; }
/* the Group Finder's painted tiles at the size they ship (360 x 112), side by side, stacked on phones */
.u-gf-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 360px)); gap: 12px; }
.u-gf-tiles figure { margin: 0; display: grid; gap: 6px; }
.u-gf-tiles img { display: block; width: 100%; height: auto; border: 1px solid rgba(156, 122, 71, 0.45); border-radius: 3px; background: #0c0a08; }
.u-gf-tiles figcaption { font-size: 14px; color: var(--muted); }
.u-gf-tiles b { color: var(--parch); }
/* a lesson clip framed like the pictures */
.up-fig video { display: block; max-width: 100%; height: auto; border: 1px solid rgba(156, 122, 71, 0.35); border-radius: 3px; background: #0c0a08; }
/* clips and pictures from the game in every patch's notes (the user, 2026-10-24): short loops side by side, two across
   on a computer and stacked on a phone, and a phone's frame round a phone-sized screenshot */
.up-clips { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 12px; max-width: 760px; }
.up-clips figure { margin: 0; display: grid; gap: 6px; align-content: start; }
.up-clips video,
.up-clips img { display: block; width: 100%; height: auto; border: 1px solid rgba(156, 122, 71, 0.35); border-radius: 3px; background: #0c0a08; }
.up-clips figcaption { font-size: 14px; color: var(--muted); }
.up-clips b { color: var(--parch); }
.up-fig.phone img { max-width: min(100%, 700px); border: 9px solid #0b0a09; border-radius: 20px; box-shadow: 0 0 0 1px rgba(156, 122, 71, 0.45), 0 10px 28px rgba(0, 0, 0, 0.55); }
/* the colours of a monster's name and its STR · DEX · INT words (the game's own values, index.html .np) */
.u-st { font-weight: 700; text-shadow: 0 1px 2px #000; }
.u-st-red { color: #ff4a3a; }
.u-st-bonus { color: #ff9a4a; }
.u-st-full { color: #ffe066; }
.u-st-reduced { color: #8fd36a; }
.u-st-none { color: #9a9a92; }
/* who gives a quest, under its name on a card */
.u-oct20 .u-oct20-from { margin-top: -4px; font: italic 15px/1.3 var(--lore); color: var(--bronze-hi); }
/* the site's global img max-width lets a table squeeze its icons on phones; keep them whole */
.u-oct20 .up-table img { max-width: none; }
@media (max-width: 560px) {
  .u-oct20 .up-table .up-ic { width: 28px; height: 28px; margin-right: 8px; }
  .u-oct20 .up-table .up-ic.tile { width: 26px; height: 28px; }
  .u-oct20 .up-table .name { white-space: normal; }
}
/* ---------- weeks and days (the user, 2026-10-27: patches bundle by week) ----------
   A section is a week, newest first, so the contents list stays short; inside it each patch is a day (article.up-day),
   newest first, headed by its date and theme. A day's topics are h4, one step under the day. */
.up-day { display: grid; gap: 16px; scroll-margin-top: 16px; }
.up-day > * { min-width: 0; }
.up-day + .up-day { margin-top: 6px; padding-top: 22px; border-top: 1px solid rgba(156, 122, 71, 0.3); }
.up-day > h3 { margin: 0; font: 400 clamp(23px, 3.6vw, 28px)/1.2 var(--display); color: var(--cream); letter-spacing: 0.02em; text-transform: none; }
.up-day > h3 .up-theme { display: block; margin-top: 3px; font: italic 16.5px/1.4 var(--lore); color: var(--bronze-hi); }
.up-day > h4 { margin: 8px 0 0; font: 600 14.5px/1.3 var(--heading); letter-spacing: 0.13em; text-transform: uppercase; color: var(--bronze-hi); }
.up-day > h4[id] { scroll-margin-top: 16px; }
/* a patch's three headline lines (the feature card shows them; in the notes they open the patch) */
.up-headlines { margin: 0; padding: 12px 16px 12px 36px; display: grid; gap: 4px; color: var(--parch); background: rgba(10, 13, 12, 0.55); border-radius: 3px; box-shadow: inset 0 0 0 1px rgba(95, 158, 148, 0.25); }
.up-headlines li::marker { color: var(--bronze-hi); }

/* ============ the notice board (updates.js; the user's pick C, 2026-11-11) ============
   The board: a band a week (title, kicker, the kit divider, the intro), the newest patch as a feature card, then the
   week's other patches as equal cards in rows of three. A row that would end short widens its cards: two take halves,
   one becomes a strip across the row, so no card sits alone. Weeks past the newest two show one row and a button. */
main.ub-on .up-wrap > .up-sec { display: none; }
main.ub-reading .up-head { display: none; }
.ub-board { display: grid; gap: 48px; }
.ub-board > *, .ub-week > * { min-width: 0; }
.ub-week { display: grid; gap: 24px; scroll-margin-top: 16px; min-width: 0; }
.ub-band { display: grid; gap: 8px; justify-items: center; text-align: center; }
.ub-band h2 { margin: 0; font: 600 clamp(24px, 3.6vw, 30px)/1.15 var(--heading); color: var(--gold); letter-spacing: 0.03em; text-wrap: balance; }
.ub-kicker { margin: 0; max-width: 760px; font: 500 12.5px/1.4 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-hi); }
.ub-div { display: block; width: min(360px, 80%); aspect-ratio: 640 / 30; background: var(--kit-divider) center / 100% 100% no-repeat; }
.ub-intro { margin: 0; max-width: 760px; font: italic 18px/1.5 var(--lore); color: #dccaa4; }
/* every card, tile and the feature: a kit frame, the whole of it a link */
.ub-feat, .ub-card {
  --fw: 18px;
  display: grid; min-width: 0; color: inherit; text-decoration: none;
  border: var(--fw) solid transparent; border-image: var(--kit-frame) 120 fill / var(--fw) stretch;
  filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.6)); transition: filter 0.15s;
}
.ub-feat:hover, .ub-card:hover { filter: drop-shadow(0 12px 22px rgba(0, 0, 0, 0.6)) brightness(1.12); }
.ub-feat:hover .ub-feat-title, .ub-card:hover .ub-title { color: var(--gold); }
.ub-cover { display: block; position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: 2px; background: #0c0a08; box-shadow: 0 0 0 1px rgba(95, 158, 148, 0.35); }
.ub-cover img { display: block; width: 100%; height: 100%; object-fit: cover; }
/* a patch with no picture: its date on a painted plate (the kit's frame) */
.ub-plate { display: grid; place-content: center; justify-items: center; gap: 2px; border: 14px solid transparent; border-image: var(--kit-frame) 120 fill / 14px stretch; box-shadow: none; background: none; }
.ub-plate b { font: 400 54px/1 var(--display); color: var(--gold); text-shadow: 0 2px 8px #000; font-variant-numeric: lining-nums; }
.ub-plate i { font: italic 18px/1.2 var(--lore); color: var(--bronze-hi); }
.ub-plate .ub-initial { font-size: 84px; }
.ub-date { font: 500 12.5px/1.4 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-hi); }
.ub-title { font: 600 17px/1.3 var(--heading); color: var(--cream); letter-spacing: 0.02em; text-wrap: balance; transition: color 0.15s; }
.ub-meta { font-size: 14px; color: var(--muted); }
/* the feature: the cover beside the date, theme, three lines and the button */
.ub-feat { --fw: 24px; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; align-items: center; padding: 8px; }
.ub-feat .ub-cover { aspect-ratio: 16 / 10; }
.ub-feat-text { display: grid; gap: 16px; align-content: center; }
.ub-feat-title { font: 600 clamp(22px, 2.6vw, 28px)/1.2 var(--heading); color: var(--gold); letter-spacing: 0.02em; text-wrap: balance; transition: color 0.15s; }
.ub-lines { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: #ddd0b4; }
.ub-lines li::marker { color: var(--bronze-hi); }
.ub-feat-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
/* the cards: a card is cover, date, title, counts */
.ub-cards, .ub-tiles { display: grid; gap: 24px; }
.ub-card { gap: 8px; align-content: start; padding: 4px 4px 8px; }
.ub-more-row { display: flex; justify-content: center; }
.ub-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); }
/* rows of three on a computer: six columns, a card takes two; a last row of two takes halves, a last one the row */
@media (min-width: 960px) {
  .ub-cards { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .ub-cards > .ub-card { grid-column: span 2; }
  .ub-cards > .ub-card:nth-child(3n+1):nth-last-child(2), .ub-cards > .ub-card:nth-child(3n+2):last-child { grid-column: span 3; }
  .ub-cards > .ub-card:nth-child(3n+1):last-child { grid-column: 1 / -1; }
  .ub-cards > .ub-card:nth-child(3n+1):last-child { grid-template-columns: minmax(0, 360px) minmax(0, 1fr); column-gap: 24px; align-content: center; }
}
/* rows of two on a tablet: a last odd card takes the row */
@media (min-width: 600px) and (max-width: 959.9px) {
  .ub-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ub-cards > .ub-card:nth-child(2n+1):last-child { grid-column: 1 / -1; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); column-gap: 24px; align-content: center; }
  .ub-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ub-feat { grid-template-columns: minmax(0, 1fr); gap: 16px; }
}
/* a card across the whole row lies on its side: the cover left, the words right */
@media (min-width: 960px) {
  .ub-cards > .ub-card:nth-child(3n+1):last-child { grid-template-rows: 1fr auto auto auto 1fr; row-gap: 8px; }
  .ub-cards > .ub-card:nth-child(3n+1):last-child > .ub-cover { grid-row: 1 / -1; align-self: center; }
  .ub-cards > .ub-card:nth-child(3n+1):last-child > .ub-date { grid-column: 2; grid-row: 2; }
  .ub-cards > .ub-card:nth-child(3n+1):last-child > .ub-title { grid-column: 2; grid-row: 3; }
  .ub-cards > .ub-card:nth-child(3n+1):last-child > .ub-meta { grid-column: 2; grid-row: 4; }
}
@media (min-width: 600px) and (max-width: 959.9px) {
  .ub-cards > .ub-card:nth-child(2n+1):last-child { grid-template-rows: 1fr auto auto auto 1fr; row-gap: 8px; }
  .ub-cards > .ub-card:nth-child(2n+1):last-child > .ub-cover { grid-row: 1 / -1; align-self: center; }
  .ub-cards > .ub-card:nth-child(2n+1):last-child > .ub-date { grid-column: 2; grid-row: 2; }
  .ub-cards > .ub-card:nth-child(2n+1):last-child > .ub-title { grid-column: 2; grid-row: 3; }
  .ub-cards > .ub-card:nth-child(2n+1):last-child > .ub-meta { grid-column: 2; grid-row: 4; }
}
@media (max-width: 599.9px) {
  .ub-tiles { grid-template-columns: minmax(0, 1fr); }
  .ub-feat { grid-template-columns: minmax(0, 1fr); gap: 16px; --fw: 18px; }
  .ub-feat-foot .btn { flex: 1 1 100%; }
  .ub-board { gap: 32px; }
}

/* ---------- the reader: one patch or guide in a 760 frame, Newer and Older at its foot ---------- */
.ub-reader { width: min(760px, 100%); justify-self: center; display: grid; gap: 16px; }
.ub-crumbs { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 16px; font-size: 15px; }
.ub-back { text-decoration: none; }
.ub-back:hover { text-decoration: underline; }
.ub-where { font: 500 12.5px/1.4 var(--ui); letter-spacing: 0.14em; text-transform: uppercase; color: var(--bronze-hi); }
.ub-sheet.ub-plain { display: grid; padding: 0; border: 0; filter: none; }
.ub-pager { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.ub-pager .btn { min-width: 0; white-space: normal; text-align: center; line-height: 1.25; }
@media (max-width: 599.9px) {
  .ub-pager { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ub-pager .ub-all { grid-column: 1 / -1; grid-row: 2; }
}
/* in the reader, text and pictures share both edges of the column; anything narrower sits in the middle */
.ub-reader .up-sec p, .ub-reader .up-list, .ub-reader .up-hero figcaption, .ub-reader .up-fig figcaption, .ub-reader .up-callout { max-width: none; }
.ub-reader .up-callout { justify-self: stretch; }
.ub-reader .up-sec .up-narrow, .ub-reader .up-status { justify-self: center; }
.ub-reader .up-fig { display: grid; justify-items: center; text-align: center; }
.ub-reader .up-clips, .ub-reader .up-gallery { max-width: none; }
.ub-reader .up-sec-head { justify-items: center; text-align: center; }
.ub-reader .up-back, .ub-reader .up-subtoc { display: none; }
