/*
  One stylesheet, built on tokens. The look: a builder's catalogue. Cream instruction-booklet paper
  on a faint studded baseplate, ink outlines with hard shadows so every card sits like a brick, and
  six brick colours used flat. Set numbers are box-corner tags in mono. See BRAND.md.
*/
@font-face { font-family: "Bricolage Grotesque"; src: url("../fonts/bricolage-grotesque.9d9db0ec5556.woff2") format("woff2"); font-weight: 600 800; font-stretch: 75% 100%; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-400.78c2be80e151.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("../fonts/hanken-grotesk-600.0c156079a0be.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../fonts/jetbrains-mono.ed89ce616b81.woff2") format("woff2"); font-weight: 400 800; font-display: swap; }

:root {
  --paper: #f5efe2; --paper-deep: #ebe3d1; --surface: #fffdf8; --ink: #15181e; --muted: #5b6069; --line: #d9d0bc;
  --red: #c93622; --blue: #1d5bd0; --yellow: #f7c41f; --green: #157a44; --orange: #ef8523; --teal: #0d7c7c;
  --brand: var(--blue); --ok: #13733f; --danger: #c0321f;
  --display: "Bricolage Grotesque", "Arial Narrow", sans-serif;
  --body: "Hanken Grotesk", "Helvetica Neue", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --edge: 2px solid var(--ink); --radius: 8px; --drop: 4px 4px 0 var(--ink); --wrap: 1200px;
}
/* A row of studs seen side on, along the top edge of a brick. Each brick sets --c to its colour. The
   rule lives on the elements, not in a token, so that --c is read from the brick itself. */
.brick::before, .tiles a::before, .stats div::before, .site-footer::before {
  content: ""; position: absolute; left: 10px; right: 8px; top: -10px; height: 10px;
  background: repeating-linear-gradient(90deg, transparent 0 2px, var(--c) 2px 20px, transparent 20px 34px) 0 2px / 100% 100% no-repeat,
              repeating-linear-gradient(90deg, var(--ink) 0 22px, transparent 22px 34px);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; color: var(--ink); font-family: var(--body); font-size: 1.02rem; line-height: 1.55;
  background: var(--paper) radial-gradient(circle at 14px 14px, var(--paper-deep) 0 5px, transparent 5.5px) 0 0 / 28px 28px;
}
a { color: var(--brand); text-underline-offset: .15em; }
a:hover { color: var(--ink); }
img { max-width: 100%; height: auto; }
strong, b, th { font-weight: 600; }
h1, h2 { font-family: var(--display); font-stretch: 85%; letter-spacing: -.015em; line-height: 1.05; }
h1 { font-size: clamp(2rem, 4.6vw, 3.3rem); font-weight: 800; margin: .5rem 0 .7rem; }
h2 { font-size: 1.55rem; font-weight: 700; margin: 0; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.site-header :focus-visible, .site-footer :focus-visible, .band :focus-visible { outline-color: var(--yellow); }
.skip { position: absolute; left: .6rem; top: -4rem; z-index: 10; padding: .5rem .9rem; background: var(--yellow); color: var(--ink); border: var(--edge); border-radius: var(--radius); font-weight: 700; }
.skip:focus { top: .6rem; }
::selection { background: var(--yellow); color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 1.1rem; }
main.wrap { padding-top: 1.2rem; padding-bottom: 4.5rem; min-height: 62vh; }
section { margin-top: 3rem; }
code { font-family: var(--mono); font-size: .9em; background: var(--paper-deep); padding: .05em .3em; border-radius: 4px; }

/* Header: a blue bar, the mark is a 2 x 2 plate seen from above */
.site-header { background: var(--blue); border-bottom: var(--edge); position: relative; z-index: 2; }
.bar { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1.3rem; padding-top: .75rem; padding-bottom: .75rem; }
.logo { display: flex; align-items: center; gap: .6rem; color: #fff; text-decoration: none; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 1.45rem; letter-spacing: -.02em; }
.logo:hover { color: #fff; }
.mark { width: 1.7rem; height: 1.7rem; border: var(--edge); border-radius: 5px; background: var(--yellow) radial-gradient(circle, var(--ink) 0 2px, transparent 2.6px) 0 0 / 50% 50%; box-shadow: 2px 2px 0 var(--ink); transition: transform .2s; }
.logo:hover .mark { transform: rotate(-90deg); }
.main-nav { display: flex; gap: .2rem; }
.main-nav a, .account > a:not(.btn) { color: #fff; text-decoration: none; font-weight: 600; padding: .3rem .5rem; border-radius: 6px; }
.main-nav a:hover, .account > a:not(.btn):hover { background: var(--ink); color: var(--yellow); }
.search { display: flex; flex: 1 1 250px; min-width: 230px; border: var(--edge); border-radius: var(--radius); background: var(--surface); box-shadow: 3px 3px 0 var(--ink); overflow: hidden; }
.search input { flex: 1; min-width: 0; padding: .5rem .8rem; border: 0; background: transparent; font: inherit; color: var(--ink); }
.search input:focus { outline: 0; background: #fff; box-shadow: inset 0 0 0 3px var(--ink); }
.search button { padding: .5rem 1rem; border: 0; border-left: var(--edge); background: var(--yellow); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; }
.search button:hover { background: var(--ink); color: var(--yellow); }
.account { display: flex; align-items: center; gap: .5rem; }
.account form { margin: 0; }
.account button.link { color: #fff; }

/* Buttons press down like a brick being seated */
.btn { display: inline-block; padding: .6rem 1.1rem; border: var(--edge); border-radius: var(--radius); background: var(--yellow); color: var(--ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; box-shadow: var(--drop); transition: transform .08s, box-shadow .08s; }
.btn:hover { color: var(--ink); transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn.ghost { background: var(--surface); }
.btn.small { padding: .32rem .75rem; box-shadow: 2px 2px 0 var(--ink); }
button.link { border: 0; background: none; padding: 0; color: var(--brand); font: inherit; text-decoration: underline; cursor: pointer; }

.messages { list-style: none; padding: 0; margin: 0 0 1.2rem; }
.messages li { padding: .65rem 1rem; border: var(--edge); border-radius: var(--radius); background: var(--green); color: #fff; font-weight: 600; box-shadow: var(--drop); }
.messages li.error { background: var(--red); }
.messages li.info { background: var(--surface); color: var(--ink); }
.crumbs { font-family: var(--mono); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.crumbs a { color: var(--muted); }
.lede { color: var(--muted); margin: .2rem 0 1.1rem; max-width: 68ch; }
.eyebrow { display: inline-block; margin: 0 0 .2rem; padding: .1rem .5rem; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; border-radius: 4px; }
.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .4rem 1rem; margin-bottom: 1.1rem; padding-bottom: .5rem; border-bottom: var(--edge); }
.section-head > a { font-weight: 600; }
.links { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.links a.on { font-weight: 700; color: var(--ink); text-decoration: none; background: var(--yellow); padding: 0 .35rem; border-radius: 4px; }
.plain { padding-left: 1.2rem; }

/* Home: the headline on the left, a stack of three bricks carrying the numbers on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: 2.2rem 0 1rem; margin-top: 0; }
.hero h1 { font-size: clamp(2.5rem, 6.4vw, 4.9rem); font-stretch: 78%; line-height: .95; margin-top: 0; }
.hero h1 em { font-style: normal; background: var(--yellow); padding: 0 .12em; border: var(--edge); border-radius: 6px; box-shadow: var(--drop); display: inline-block; transform: rotate(-1.5deg); }
.hero p { font-size: 1.15rem; color: var(--muted); max-width: 52ch; }
.search.big { max-width: 600px; margin-top: 1.4rem; box-shadow: 5px 5px 0 var(--ink); }
.search.big input, .search.big button { padding: .9rem 1.1rem; font-size: 1.1rem; }
.stack { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 12px 0 0 6px; }
.brick { --c: var(--red); position: relative; display: flex; flex-direction: column; justify-content: center; min-height: 5.4rem; padding: .5rem 1.1rem; background: var(--c); color: #fff; border: var(--edge); border-radius: 4px; box-shadow: 6px 6px 0 var(--ink); animation: seat .55s cubic-bezier(.2, 1.5, .4, 1) both; }
.brick::before { left: 12px; right: 10px; top: -12px; height: 12px; }
.brick b { font-family: var(--display); font-weight: 800; font-stretch: 78%; font-size: clamp(2rem, 3.6vw, 2.9rem); line-height: 1; }
.brick span { font-family: var(--mono); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.brick:nth-child(1) { width: 78%; margin-left: 14%; animation-delay: .34s; }
.brick:nth-child(2) { --c: var(--yellow); color: var(--ink); width: 92%; animation-delay: .2s; }
.brick:nth-child(3) { --c: var(--blue); width: 64%; margin-left: 30%; animation-delay: .06s; }
@keyframes seat { from { opacity: 0; transform: translateY(-46px); } }

/* Theme and year tiles: flat bricks in six colours, studs up */
.tiles { list-style: none; padding: 0; margin: 0; display: grid; gap: 1.5rem .9rem; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); padding-top: 10px; }
.tiles.small { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); margin-bottom: 2rem; }
.tiles a { --c: var(--red); position: relative; display: flex; flex-direction: column; gap: .1rem; height: 100%; padding: .7rem .9rem .75rem; background: var(--c); color: #fff; border: var(--edge); border-radius: 4px; box-shadow: var(--drop); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.tiles a:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--ink); }
.tiles strong { font-family: var(--display); font-weight: 700; font-stretch: 85%; font-size: 1.18rem; line-height: 1.1; }
.tiles span { font-family: var(--mono); font-size: .76rem; font-weight: 600; opacity: .92; }
.tiles li:nth-child(6n+2) a { --c: var(--yellow); color: var(--ink); }
.tiles li:nth-child(6n+3) a { --c: var(--blue); }
.tiles li:nth-child(6n+4) a { --c: var(--green); }
.tiles li:nth-child(6n+5) a { --c: var(--orange); color: var(--ink); }
.tiles li:nth-child(6n+6) a { --c: var(--teal); }

/* Cards: the picture on white, the set number as a box-corner tag */
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: .7rem .75rem .8rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); text-decoration: none; color: var(--ink); transition: transform .12s, box-shadow .12s; }
.card:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--blue); color: var(--ink); }
.thumb { display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3; margin: -.1rem -.15rem .45rem; background: #fff; border-radius: 5px; overflow: hidden; }
.thumb img { max-height: 100%; object-fit: contain; transition: transform .25s; font-family: var(--mono); font-size: .7rem; color: var(--muted); text-align: center; }
.card:hover .thumb img { transform: scale(1.06) rotate(-1.5deg); }
.card-num { align-self: flex-start; padding: .05rem .4rem; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-size: .82rem; font-weight: 700; border-radius: 4px; }
.card-name { font-weight: 600; line-height: 1.25; }
.card-meta { font-size: .82rem; color: var(--muted); margin-top: auto; padding-top: .15rem; }
.badge { display: inline-block; margin-left: .3rem; padding: 0 .35rem; background: var(--green); color: #fff; border-radius: 3px; font-size: .68rem; text-transform: uppercase; letter-spacing: .05em; }
.grid > * { animation: rise .4s ease-out both; }
.grid > :nth-child(2) { animation-delay: .03s; } .grid > :nth-child(3) { animation-delay: .06s; } .grid > :nth-child(4) { animation-delay: .09s; }
.grid > :nth-child(5) { animation-delay: .12s; } .grid > :nth-child(6) { animation-delay: .15s; } .grid > :nth-child(n+7) { animation-delay: .18s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } }

/* Set and minifigure pages: picture panel and a spec sheet */
.detail { display: grid; gap: 2rem; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); margin-top: 1.1rem; align-items: start; }
.detail-image { display: flex; align-items: center; justify-content: center; padding: 1.2rem; min-height: 260px; background: #fff; border: var(--edge); border-radius: var(--radius); box-shadow: 8px 8px 0 var(--yellow), 8px 8px 0 2px var(--ink); }
.detail h1 { margin-top: .5rem; }
.num { display: inline-block; padding: 0 .28em; margin-right: .1em; background: var(--ink); color: var(--yellow); font-family: var(--mono); font-weight: 700; font-size: .62em; letter-spacing: 0; border-radius: 6px; vertical-align: .22em; }
.facts { margin: 1.2rem 0 1.4rem; border: var(--edge); border-radius: var(--radius); background: var(--surface); overflow: hidden; }
.facts div { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; padding: .5rem .9rem; border-bottom: 1px dashed var(--line); }
.facts div:last-child { border-bottom: 0; }
dt { font-family: var(--mono); font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
dd { margin: 0; font-weight: 600; text-align: right; }
.facts dd { font-family: var(--mono); }
.actions { display: flex; flex-wrap: wrap; gap: .8rem; align-items: center; }
.actions form { display: flex; flex-wrap: wrap; gap: .8rem; margin: 0; }
.owned { flex-basis: 100%; margin: 0; color: var(--ok); font-weight: 700; }

/* Collection numbers: four small bricks */
.stats { display: grid; gap: 1.3rem .9rem; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin: 1.4rem 0 1.6rem; padding-top: 10px; }
.stats div { --c: var(--yellow); position: relative; padding: .55rem .9rem .65rem; background: var(--c); border: var(--edge); border-radius: 4px; box-shadow: var(--drop); }
.stats dt { color: var(--ink); }
.stats dd { text-align: left; font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 2rem; line-height: 1.05; }
.stats div:nth-child(4n+2) { --c: var(--surface); } .stats div:nth-child(4n+3) { --c: var(--orange); } .stats div:nth-child(4n+4) { --c: var(--surface); }

.filters { display: flex; flex-wrap: wrap; gap: .6rem; margin: 1rem 0; padding: .8rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); }
.filters input, .filters select, .form input, .form select, .form textarea { padding: .5rem .65rem; border: var(--edge); border-radius: 6px; font: inherit; color: var(--ink); background: #fff; }
.filters input[type=search] { flex: 1 1 220px; }
.filters input[type=number] { width: 6.5rem; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 1.2rem; margin-top: 2rem; font-family: var(--mono); font-size: .85rem; }
.pagination a { padding: .35rem .8rem; background: var(--surface); border: var(--edge); border-radius: 6px; box-shadow: 3px 3px 0 var(--ink); color: var(--ink); text-decoration: none; font-weight: 700; }
.pagination a:hover { background: var(--yellow); }

.tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin: 1.4rem 0 0; }
.tabs a { padding: .45rem .9rem; border: var(--edge); border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--paper-deep); text-decoration: none; color: var(--muted); font-weight: 600; }
.tabs a.on, .tabs a[aria-current] { background: var(--surface); color: var(--ink); }
.list { width: 100%; border-collapse: collapse; background: var(--surface); border: var(--edge); }
.list th, .list td { padding: .6rem .8rem; border-bottom: 1px dashed var(--line); text-align: left; vertical-align: top; }
.list tr:last-child td { border-bottom: 0; }
.list th { font-family: var(--mono); font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--paper-deep); border-bottom: var(--edge); }
.list td form { margin: 0; }

.form { max-width: 540px; padding: 1.2rem 1.3rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); margin-bottom: 1.2rem; }
.form > div { margin-bottom: 1rem; }
.form label { display: block; font-weight: 600; margin-bottom: .25rem; }
.form input:not([type=checkbox]):not([type=file]), .form select, .form textarea { width: 100%; }
.form input[type=checkbox] { width: 1.1rem; height: 1.1rem; margin-right: .4rem; accent-color: var(--blue); vertical-align: -.15rem; }
.form .helptext, .form ul { font-size: .85rem; color: var(--muted); }
.form .errorlist { color: var(--danger); font-weight: 600; list-style: none; padding: 0; margin: 0 0 .3rem; }
.form.danger { background: transparent; border: 0; box-shadow: none; padding: 0; margin-top: 2rem; }
.form.danger button.link { color: var(--danger); }
.plans { display: flex; flex-wrap: wrap; gap: .9rem; align-items: center; margin: 1.2rem 0 .5rem; }
.prose { max-width: 70ch; padding: 1.6rem 1.8rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); }
.prose h2 { margin-top: 1.8rem; }
.report-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.report-grid h2 { font-size: 1.15rem; margin-bottom: .5rem; }

/* Footer: a dark baseplate, studs along its top edge */
.site-footer { --c: var(--ink); position: relative; margin-top: 12px; padding: 1.8rem 0 2rem; background: var(--ink); color: #b9bcc4; font-size: .86rem; }
.site-footer::before { left: 0; right: 0; top: -12px; height: 12px; }
.site-footer a { color: #fff; }
.site-footer a:hover { color: var(--yellow); }
.site-footer p { margin: .3rem 0; max-width: 80ch; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 1.6rem 2rem; padding-bottom: 1.6rem; }
.foot-brand p { margin-top: .7rem; max-width: 34ch; font-size: .92rem; line-height: 1.5; }
.foot nav { display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.foot h2 { margin: 0 0 .35rem; font-family: var(--mono); font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--yellow); }
.foot nav a { font-weight: 600; font-size: .95rem; text-decoration: none; }
.foot nav a:hover { text-decoration: underline; }
.legal { padding-top: 1.1rem; border-top: 1px solid #343842; }
.main-nav a[aria-current] { background: var(--ink); color: var(--yellow); }
@media (max-width: 720px) { .foot { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; gap: 1.6rem; padding-top: 1.2rem; }
  .detail { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .main-nav { order: 3; flex-basis: 100%; overflow-x: auto; }
  .list th:nth-child(2), .list td:nth-child(2), .list th:nth-child(3), .list td:nth-child(3) { display: none; }
  .prose { padding: 1.1rem 1.1rem; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Facts: the sentence that answers the page's question, and data tables */
.summary { font-size: 1.08rem; max-width: 62ch; margin: .2rem 0 1rem; }
.summary.wide { max-width: 78ch; }
.updated { margin-top: 2.5rem; font-family: var(--mono); font-size: .76rem; color: var(--muted); }
.summary + .updated { margin: -.4rem 0 1.2rem; }
.list.data { box-shadow: var(--drop); border-radius: var(--radius); }
.list.data td:not(:first-child):not(:has(a)), .list.data th:not(:first-child) { font-family: var(--mono); font-size: .9rem; }
.list.data tbody tr:hover { background: var(--paper); }
.tiles.records { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.tiles.records span { font-family: var(--body); font-size: .88rem; font-weight: 400; margin-top: .2rem; }
.prose h3 { font-family: var(--display); font-size: 1.1rem; margin: 1.2rem 0 .2rem; }
@media (max-width: 720px) { .list.data th:nth-child(n), .list.data td:nth-child(n) { display: table-cell; padding: .45rem .5rem; font-size: .85rem; } .list.data { display: block; overflow-x: auto; } }

/* Guides */
.guide { max-width: 76ch; }
.guide .summary { font-size: 1.15rem; font-weight: 600; max-width: none; }
.guide h2 { margin-top: 2.2rem; scroll-margin-top: 1rem; }
.guide li { margin-bottom: .35rem; }
.guide .list.data { margin: 1rem 0; box-shadow: none; }
.guide .actions { margin-top: 2rem; }
.contents { margin: 1.2rem 0; padding: .8rem 1rem; background: var(--paper); border: var(--edge); border-radius: var(--radius); }
.contents ol { margin: .4rem 0 0; padding-left: 1.3rem; }

/* Pictures in tables, figures and diagrams */
.with-pic { display: flex; align-items: center; gap: .7rem; }
.mini { flex: none; display: flex; align-items: center; justify-content: center; width: 56px; height: 42px; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.mini img { max-width: 100%; max-height: 100%; object-fit: contain; }
.figure { margin: 1.4rem 0; }
.figure img, .figure .diagram { display: block; width: 100%; height: auto; background: #fff; border: var(--edge); border-radius: var(--radius); }
.figure img { max-height: 460px; object-fit: contain; padding: .6rem; }
.figure figcaption { margin-top: .5rem; font-size: .88rem; color: var(--muted); }
.figure .credit { font-family: var(--mono); font-size: .72rem; margin-left: .4rem; }
.diagram { background: var(--paper); font-family: var(--body); }
.diagram .dg-line * { stroke: var(--ink); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; fill: none; }
.diagram .dg-line .dg-paper { fill: var(--surface); } .diagram .dg-line .dg-ink { fill: var(--ink); }
.diagram .dg-line .dg-blue { fill: var(--blue); } .diagram .dg-line .dg-red { fill: var(--red); }
.diagram .dg-line .dg-yellow { fill: var(--yellow); } .diagram .dg-line .dg-green { fill: var(--green); }
.diagram .dg-line .dg-faint { stroke: var(--line); } .diagram .dg-line .dg-tick { stroke: #fff; stroke-width: 3; }
.diagram .dg-line .dg-missing { fill: none; stroke-dasharray: 7 6; stroke: var(--muted); }
.diagram text { text-anchor: middle; fill: var(--ink); }
.diagram .dg-num text { font-family: var(--mono); font-weight: 700; font-size: 15px; fill: var(--yellow); }
.diagram .dg-label text { font-family: var(--display); font-weight: 700; font-size: 19px; }
.diagram .dg-note text { font-size: 13.5px; fill: var(--muted); }
.diagram .dg-row text { text-anchor: start; font-size: 15px; } .diagram .dg-row.dg-end text { text-anchor: end; font-weight: 600; }
.diagram .dg-box-text text { font-weight: 600; font-size: 15px; } .diagram .dg-box-text.dg-light text { fill: #fff; font-size: 19px; }
.diagram .dg-big text { font-family: var(--display); font-weight: 800; font-size: 30px; fill: var(--muted); }
.tiles.art a { --c: var(--surface) !important; color: var(--ink) !important; }
.tile-art { display: block; margin: -.2rem -.3rem .6rem; }
.tile-art .diagram { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 4px; }
.note { margin: .8rem 0 0; font-size: .8rem; color: var(--muted); }

/* Home: a fan of the three largest sets beside the headline, then the numbers as a row of bricks */
.hero .actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.4rem; max-width: none; }
.fan { position: relative; aspect-ratio: 1 / 1; max-width: 440px; width: 100%; margin: 0 auto; }
.fan a { position: absolute; width: 64%; display: flex; flex-direction: column; background: #fff; border: var(--edge); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); color: var(--ink); text-decoration: none; overflow: hidden; transition: transform .18s; animation: rise .5s ease-out both; }
.fan a img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; padding: .5rem; }
.fan a > span { display: block; padding: .4rem .6rem .5rem; border-top: var(--edge); background: var(--surface); font-size: .82rem; font-weight: 600; line-height: 1.3; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fan a i { font-style: normal; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.fan a:nth-child(1) { left: 18%; top: 22%; z-index: 3; transform: rotate(-2deg); animation-delay: .25s; }
.fan a:nth-child(2) { left: 0; top: 0; z-index: 2; transform: rotate(-8deg); animation-delay: .12s; }
.fan a:nth-child(3) { right: 0; top: 44%; z-index: 1; transform: rotate(7deg); }
.fan a:hover { z-index: 4; transform: rotate(0) scale(1.04); }
.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding-top: 12px; margin-top: 2.2rem; }
.strip .brick, .strip .brick:nth-child(n) { width: auto; margin-left: 0; }
.strip .brick:nth-child(1) { --c: var(--red); color: #fff; animation-delay: .06s; }
.strip .brick:nth-child(2) { --c: var(--yellow); color: var(--ink); animation-delay: .14s; }
.strip .brick:nth-child(3) { --c: var(--blue); color: #fff; animation-delay: .22s; }
.strip .brick:nth-child(4) { --c: var(--green); color: #fff; animation-delay: .3s; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.steps li { position: relative; padding: 1.1rem 1.1rem 1rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); }
.steps b { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; margin-bottom: .6rem; background: var(--yellow); border: var(--edge); border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 1.3rem; box-shadow: 2px 2px 0 var(--ink); }
.steps li:nth-child(2) b { background: var(--red); color: #fff; } .steps li:nth-child(3) b { background: var(--blue); color: #fff; }
.steps h3 { margin: 0 0 .3rem; font-size: 1.25rem; } .steps p { margin: 0; color: var(--muted); }
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.podium a { position: relative; display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .7rem .75rem .8rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.podium a:hover { transform: translate(-2px, -3px); box-shadow: 6px 7px 0 var(--red); }
.podium b { position: absolute; z-index: 1; top: -12px; left: -10px; display: flex; align-items: center; justify-content: center; width: 2.2rem; height: 2.2rem; background: var(--red); color: #fff; border: var(--edge); border-radius: 50%; font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.podium li:first-child b { background: var(--yellow); color: var(--ink); }
.more { margin: 1.2rem 0 0; font-weight: 600; }
.qa { margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem 1.2rem; }
.qa div { padding: 1rem 1.1rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); }
.qa dt { font-family: var(--display); font-weight: 700; font-size: 1.15rem; margin-bottom: .3rem; color: var(--ink); text-transform: none; letter-spacing: 0; } .qa dd { margin: 0; text-align: left; font-weight: 400; font-family: var(--body); font-size: 1rem; }
.tiles.three { grid-template-columns: repeat(3, 1fr); }
.band { padding: 2.2rem 1.6rem 2.4rem; background: var(--blue); color: #fff; border: var(--edge); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); text-align: center; }
.band h2 { margin: 0 0 .4rem; font-size: clamp(1.8rem, 4vw, 2.6rem); color: #fff; } .band p { margin: 0 auto 1.3rem; max-width: 50ch; }
.recent { padding: 1rem 1.1rem 1.1rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: 6px 6px 0 var(--ink); }
.recent h2 { margin: 0 0 .7rem; font-size: 1.2rem; } .recent ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.recent a { color: var(--ink); text-decoration: none; font-weight: 600; } .recent a:hover { color: var(--blue); }
@media (max-width: 860px) {
  .fan { max-width: 380px; }
  .podium { grid-template-columns: repeat(3, 1fr); } .podium li:nth-child(n+4) { display: none; }
  .steps { grid-template-columns: 1fr; }
  .tiles.three { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .strip { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
  .card { padding: .5rem .55rem .6rem; } .card-name { font-size: .92rem; }
  .podium { grid-template-columns: 1fr 1fr; } .podium li:nth-child(3) { display: none; }
  .qa { grid-template-columns: 1fr; }
  .fan { max-width: 300px; }
}

/* Member pages: forms, the collection as picture rows, progress by theme, settings */
.form.wide { max-width: 640px; }
.form fieldset { margin: 0 0 1.2rem; padding: 0; border: 0; }
.form legend { padding: 0; margin-bottom: .6rem; font-family: var(--mono); font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.form .field { margin-bottom: .9rem; }
.form .helptext { margin: .25rem 0 0; }
.form .pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.form .checks { display: grid; grid-template-columns: 1fr 1fr; gap: .1rem 1rem; margin-top: .2rem; }
.form .check, .form > div:has(> input[type=checkbox]) { display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: .3rem; }
.form .check label, .form > div:has(> input[type=checkbox]) label { margin: 0; grid-column: 2; grid-row: 1; cursor: pointer; }
.form .check input, .form > div:has(> input[type=checkbox]) input { grid-column: 1; grid-row: 1; margin: 0 .3rem 0 0; }
.form .check .helptext, .form > div:has(> input[type=checkbox]) .helptext { grid-column: 2; }
.form .bad input, .form .bad select { border-color: var(--red); }
.form input:focus, .form select:focus, .form textarea:focus { outline: 3px solid var(--ink); outline-offset: 1px; }
.btn.warn { background: var(--red); color: #fff; }
.edit { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 2rem; align-items: start; margin-top: .8rem; }
.edit-item h1 { font-size: 1.6rem; margin: .8rem 0 .2rem; }
.edit-item .thumb { margin: 0; border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); padding: .6rem; }
.section-head .actions { gap: .5rem; }
.tabs a span { margin-left: .3rem; padding: 0 .4rem; background: var(--ink); color: var(--yellow); border-radius: 999px; font-family: var(--mono); font-size: .72rem; }
.panel { background: var(--surface); border: var(--edge); border-radius: 0 var(--radius) var(--radius) var(--radius); box-shadow: var(--drop); }
.sort { margin: 0; padding: .6rem .9rem; border-bottom: 1px dashed var(--line); font-size: .86rem; color: var(--muted); }
.sort a { margin-left: .5rem; font-weight: 600; } .sort a.on { color: var(--ink); text-decoration: none; background: var(--yellow); padding: 0 .35rem; border-radius: 4px; }
.rows { list-style: none; margin: 0; padding: 0; }
.rows li { display: grid; grid-template-columns: 76px minmax(0, 2.2fr) minmax(0, 1.6fr) 7rem auto; gap: .3rem 1rem; align-items: center; padding: .65rem .9rem; border-bottom: 1px dashed var(--line); }
.rows li:last-child { border-bottom: 0; }
.rows li.none { display: block; padding: 1.6rem 1.2rem; color: var(--muted); }
.mini.big { width: 76px; height: 57px; }
.rows .what a { color: var(--ink); text-decoration: none; } .rows .what a:hover strong { color: var(--blue); text-decoration: underline; }
.rows .what .card-meta { display: block; margin-top: .15rem; padding: 0; }
.rows .paid { font-family: var(--mono); font-size: .82rem; text-align: right; }
.rows .row-actions { display: flex; align-items: center; gap: .8rem; grid-column: 4 / 6; justify-content: flex-end; } .rows .row-actions form { margin: 0; }
.chip { color: var(--ink); display: inline-block; margin: .1rem .15rem .1rem 0; padding: .05rem .5rem; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--paper); font-size: .76rem; font-weight: 600; white-space: nowrap; }
.chip.is-sealed { background: var(--yellow); } .chip.is-incomplete, .chip.off { background: #fff; border-style: dashed; color: var(--muted); } .chip.in-list { background: var(--ink); color: #fff; }
.progress { list-style: none; margin: 0 0 1.4rem; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem 1rem; }
.progress a { display: grid; grid-template-columns: 1fr auto; gap: .2rem .6rem; padding: .55rem .75rem .65rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.progress a:hover { box-shadow: var(--drop); }
.progress span { font-family: var(--mono); font-size: .78rem; color: var(--muted); align-self: center; }
.progress i { grid-column: 1 / 3; height: 10px; background: var(--paper-deep); border: 1.5px solid var(--ink); border-radius: 999px; overflow: hidden; }
.progress i b { display: block; height: 100%; min-width: 6px; background: var(--green); }
.start { margin-top: 1.4rem; } .start h2 { margin-bottom: .9rem; } .start .steps .search { margin-top: .8rem; } .start .steps .btn { margin-top: .8rem; }
.settings { list-style: none; margin: 1.2rem 0; padding: 0; max-width: 640px; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); }
.settings li + li { border-top: 1px dashed var(--line); }
.settings a { display: flex; flex-direction: column; padding: .8rem 1.1rem; color: var(--ink); text-decoration: none; }
.settings a:hover { background: var(--paper); } .settings span { font-size: .88rem; color: var(--muted); } .settings .danger strong { color: var(--danger); }
.lost { max-width: 640px; padding: 2rem 0 1rem; } .lost .actions { margin-top: 1.4rem; }
.none-found { max-width: 60ch; padding: 1.4rem 1.5rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); } .none-found h2 { margin-top: 0; }
@media (max-width: 860px) {
  .edit { grid-template-columns: 1fr; gap: 1rem; } .edit-item { display: grid; grid-template-columns: 110px 1fr; gap: 0 1rem; align-items: center; } .edit-item .thumb { grid-row: 1 / 4; } .edit-item h1 { margin-top: 0; font-size: 1.3rem; }
  .rows li { grid-template-columns: 76px minmax(0, 1fr) auto; }
  .rows .state { grid-column: 2 / 4; grid-row: 2; } .rows .paid { grid-column: 2; grid-row: 3; text-align: left; } .rows .paid:empty { display: none; }
  .rows li > .btn { grid-column: 3; grid-row: 1; } .rows .row-actions { grid-column: 2 / 4; grid-row: 3; justify-content: flex-start; }
  .rows .mini.big { grid-row: 1 / 3; align-self: start; }
}
@media (max-width: 560px) {
  .form .pair, .form .checks { grid-template-columns: 1fr; }
  .account > a:not(.btn) { padding: .3rem .35rem; }
}
.notice { max-width: 640px; margin: 1rem 0; padding: .9rem 1.1rem 1rem; background: var(--yellow); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); }
.notice p { margin: 0 0 .7rem; } .notice form { margin: 0; } .notice .btn { background: var(--surface); }

/* Phone header: logo and account on one row, then search, then the sections. */
@media (max-width: 720px) {
  .bar { gap: .55rem .6rem; padding-top: .6rem; padding-bottom: .5rem; }
  .logo { font-size: 1.18rem; gap: .45rem; }
  .account { margin-left: auto; order: 1; gap: .15rem; font-size: .88rem; }
  .account > a:not(.btn) { padding: .3rem .35rem; }
  .search { order: 2; flex-basis: 100%; }
  .main-nav { order: 3; flex-basis: 100%; justify-content: space-between; gap: 0; margin: 0 -.3rem; scrollbar-width: none; }
  .main-nav a { padding: .3rem .3rem; font-size: .84rem; white-space: nowrap; }
}

/* Set page: size comparison, and the sets either side of it in the theme. */
.compare { list-style: none; margin: 0; padding: 1rem 1.1rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); display: grid; gap: .7rem; }
.compare li { display: grid; grid-template-columns: minmax(0, 15rem) minmax(0, 1fr) 8.5rem; gap: .9rem; align-items: center; }
.compare .what { font-size: .95rem; line-height: 1.3; }
.compare svg { width: 100%; height: 18px; background: repeating-linear-gradient(90deg, transparent 0 22px, var(--line) 22px 23px); border-radius: 3px; }
.compare rect { fill: var(--blue); stroke: var(--ink); stroke-width: 2; vector-effect: non-scaling-stroke; }
.compare .own .what { font-weight: 700; } .compare .own rect { fill: var(--yellow); }
.compare .n { font-family: var(--mono); font-weight: 600; text-align: right; } .compare .n i { font-style: normal; font-weight: 400; color: var(--muted); font-size: .8rem; }
.neighbours { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2.2rem; }
.neighbours a { display: block; padding: .8rem 1rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); color: var(--ink); text-decoration: none; font-weight: 600; transition: transform .12s, box-shadow .12s; }
.neighbours a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.neighbours small { display: block; margin-bottom: .3rem; font-family: var(--mono); font-size: .72rem; font-weight: 400; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.neighbours i { font-style: normal; font-weight: 400; color: var(--muted); } .neighbours .next { text-align: right; }
@media (max-width: 720px) {
  .compare li { grid-template-columns: 1fr auto; gap: .25rem .8rem; } .compare svg { grid-column: 1 / -1; grid-row: 2; height: 14px; }
  .neighbours { grid-template-columns: 1fr; } .neighbours .next { text-align: left; }
}

/* Theme and year pages: text beside the cover picture, bars in the by-year table, ranked strip. */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.lead.with-picture { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 2.4rem; align-items: center; }
.lead .figure { margin: 0; } .lead .stats { margin-bottom: 1.2rem; }
svg.bar { display: block; width: 100%; min-width: 90px; height: 12px; } svg.bar rect { fill: var(--blue); }
.list.data .bar-col { width: 45%; }
.ranked { list-style: none; counter-reset: rank; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.2rem 1rem; }
.ranked li { counter-increment: rank; position: relative; }
.ranked a { display: grid; gap: .15rem; height: 100%; padding: .7rem .8rem .8rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.ranked a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.ranked li::before { content: counter(rank); position: absolute; z-index: 1; left: -8px; top: -10px; min-width: 2rem; padding: .05rem .4rem; text-align: center; background: var(--yellow); border: var(--edge); border-radius: 6px; font-family: var(--display); font-weight: 800; font-size: 1.15rem; transform: rotate(-4deg); }
.ranked li:first-child::before { background: var(--red); color: #fff; }
.ranked strong { font-family: var(--display); font-size: 1.2rem; line-height: 1.15; } .ranked a > span:last-child { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
@media (max-width: 860px) { .lead.with-picture { grid-template-columns: 1fr; gap: 1rem; } .lead .figure { max-width: 420px; } .lead .figure img { max-height: 260px; } .ranked { grid-template-columns: repeat(2, 1fr); } .list.data .bar-col { display: none !important; } }

/* Records index answers, and the decade jump links on the years page. */
.tiles.answers a { gap: .35rem; } .tiles.answers span { font-size: .98rem; line-height: 1.45; opacity: 1; }
.tiles.answers em { margin-top: auto; padding-top: .5rem; font-style: normal; font-family: var(--mono); font-size: .74rem; letter-spacing: .05em; text-transform: uppercase; color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.jump { display: flex; flex-wrap: wrap; gap: .5rem; margin: 0 0 .4rem; }
.jump a { padding: .25rem .7rem; background: var(--surface); border: var(--edge); border-radius: 999px; box-shadow: 2px 2px 0 var(--ink); color: var(--ink); font-family: var(--mono); font-size: .85rem; font-weight: 600; text-decoration: none; }
.jump a:hover { background: var(--yellow); }
section[id] { scroll-margin-top: 1rem; }

/* Browse: filters line up on a phone, and a way back out of them. */
.filters { align-items: center; } .filters .clear { font-size: .9rem; font-weight: 600; }
h1 + .tabs { margin-top: .6rem; } .tabs + .filters { margin-top: 0; border-top-left-radius: 0; }
@media (max-width: 720px) {
  .filters { display: grid; grid-template-columns: 1fr 1fr; } .filters input[type=search], .filters select[name=theme] { grid-column: 1 / -1; }
  .filters input, .filters select, .filters input[type=number] { width: 100%; min-width: 0; } .filters .btn { justify-self: start; }
}

/* Guide page: the article with further reading beside it, and the one-sentence answer. */
.guide-layout { display: grid; grid-template-columns: minmax(0, 76ch) minmax(220px, 300px); gap: 2.4rem; align-items: start; }
.guide-side { position: sticky; top: 1.2rem; } .guide-side h2 { margin: .2rem 0 .8rem; font-size: 1.25rem; }
.side-list { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .9rem; }
.side-list a { display: block; padding: .6rem .7rem .7rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); color: var(--ink); text-decoration: none; transition: transform .12s, box-shadow .12s; }
.side-list a:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.side-list .tile-art { display: block; margin-bottom: .5rem; background: var(--paper); border: 1px solid var(--line); border-radius: 5px; overflow: hidden; } .side-list .tile-art svg { display: block; width: 100%; height: auto; }
.side-list strong { font-family: var(--display); font-size: 1.05rem; line-height: 1.2; }
.guide-side > p a { font-weight: 600; }
.answer { margin: .6rem 0 .9rem; padding: .8rem 1rem; background: var(--yellow); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); font-family: var(--display); font-weight: 700; font-size: 1.3rem; line-height: 1.3; }
@media (max-width: 720px) { .answer { font-size: 1.1rem; padding: .7rem .85rem; } }
@media (max-width: 980px) { .guide-layout { grid-template-columns: 1fr; } .guide-side { position: static; } .side-list { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.prose .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 1.2rem 0; }
@media (max-width: 720px) { .prose .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Sign-in, sign-up and password pages: the form, and beside it what the account is for. */
.auth { display: grid; grid-template-columns: minmax(0, 540px) minmax(0, 400px); gap: 3rem; align-items: start; margin-top: .6rem; }
.auth-main .form { max-width: none; } .auth-main .form .btn + .btn { margin-left: .4rem; }
.auth-side { margin-top: 4.2rem; padding: 1.3rem 1.4rem 1.1rem; background: var(--blue); color: #fff; border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); transform: rotate(1deg); }
.auth-side h2 { margin: 0 0 .8rem; color: #fff; font-size: 1.35rem; line-height: 1.15; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.ticks li { position: relative; padding-left: 1.7rem; line-height: 1.4; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .2rem; width: 1rem; height: 1rem; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; }
.auth-count { margin: 1rem 0 0; padding-top: .8rem; border-top: 2px solid rgba(255,255,255,.35); font-size: .92rem; } .auth-count strong { font-family: var(--display); font-size: 1.15rem; color: var(--yellow); }
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; gap: 1.4rem; } .auth-side { margin-top: 0; transform: none; } }

/* Member pages with a note beside the form: import, lists, public page settings. */
.side-note { margin-top: 4.2rem; padding: 1.1rem 1.3rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); font-size: .93rem; }
.side-note h2 { margin: 1.1rem 0 .4rem; font-size: 1.1rem; } .side-note h2:first-child { margin-top: 0; }
.side-note ul { margin: .5rem 0; padding-left: 1.1rem; } .side-note li { margin-bottom: .35rem; }
.side-note .sample { margin-bottom: .8rem; font-family: var(--mono); font-size: .85rem; } .side-note .sample th, .side-note .sample td { padding: .3rem .6rem; display: table-cell; }
.mono-line { margin: 0; padding: .45rem .6rem; background: var(--paper); border: 1px dashed var(--ink); border-radius: 5px; font-family: var(--mono); font-size: .85rem; overflow-wrap: anywhere; }
.auth > aside > .form { margin-top: 4.2rem; } .auth > aside > .form h2 { margin: 0 0 .8rem; font-size: 1.2rem; }
.list-tiles { list-style: none; margin: 1rem 0 .6rem; padding: 0; display: grid; gap: .7rem; }
.list-tiles li { display: flex; align-items: center; gap: 1rem; padding: .2rem .9rem .2rem 0; background: var(--surface); border: var(--edge); border-left: 10px solid var(--yellow); border-radius: var(--radius); box-shadow: var(--drop); }
.list-tiles li:nth-child(4n+2) { border-left-color: var(--red); } .list-tiles li:nth-child(4n+3) { border-left-color: var(--blue); } .list-tiles li:nth-child(4n) { border-left-color: var(--green); }
.list-tiles a { flex: 1; display: block; padding: .6rem .9rem; color: var(--ink); text-decoration: none; } .list-tiles a:hover strong { text-decoration: underline; }
.list-tiles strong { display: block; font-family: var(--display); font-size: 1.15rem; } .list-tiles span { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.list-tiles form { margin: 0; } button.link.danger { color: var(--danger); }
.notice.ok { margin: 0 0 1.2rem; padding: .9rem 1.1rem; background: var(--surface); border: var(--edge); border-left: 10px solid var(--green); border-radius: var(--radius); box-shadow: var(--drop); } .notice.ok p { margin: 0 0 .5rem; } .notice.ok p:last-child { margin: 0; }
@media (max-width: 860px) { .side-note, .auth > aside > .form { margin-top: 0; } }
@media (max-width: 720px) { .tabs { flex-wrap: nowrap; overflow-x: auto; } .tabs a { white-space: nowrap; padding: .45rem .7rem; } }

/* Public profile. */
.owner-bar { margin: 0 0 1.2rem; padding: .6rem .9rem; background: var(--yellow); border: var(--edge); border-radius: var(--radius); font-weight: 600; font-size: .92rem; }
.profile-head h1 { margin-top: .3rem; font-size: clamp(2.2rem, 6vw, 3.6rem); } .profile-head .lede { max-width: 60ch; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin: 0 0 1.6rem; } .chips > span { font-family: var(--mono); font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-right: .2rem; }
.chips a { padding: .25rem .65rem; background: var(--surface); border: var(--edge); border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; } .chips a:hover { background: var(--yellow); }
.chips b { margin-left: .25rem; font-family: var(--mono); font-size: .78rem; color: var(--muted); }

/* Pro page, and the pages for when something is in the way. */
.pro-head h1 { margin-top: .3rem; font-size: clamp(2.2rem, 6vw, 3.6rem); }
.pro { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(280px, 1fr); gap: 2.6rem; align-items: start; margin-top: 1.4rem; }
.pro-what h2 { margin: 0 0 .8rem; font-size: 1.3rem; } .pro-what h2:not(:first-child) { margin-top: 1.8rem; } .pro-what > ul:not(.ticks) { padding-left: 1.1rem; } .pro-what li { margin-bottom: .45rem; }
.ticks.dark li::before { background: var(--green); }
.plans { display: grid; gap: 1rem; margin: 0; } .pay-in { font-weight: 600; } .pay-in select { margin-left: .4rem; }
.plan { padding: 1.1rem 1.2rem 1.2rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); }
.plan.best { background: var(--yellow); } .plan.best .btn { background: var(--ink); color: var(--yellow); } .plan.on { border-left: 10px solid var(--green); }
.plan h2 { margin: 0 0 .4rem; font-size: 1.3rem; } .plan p { margin: 0 0 .7rem; } .plan .eyebrow { margin-bottom: .5rem; }
.plan .price { font-family: var(--display); font-weight: 800; font-stretch: 80%; font-size: 2.4rem; line-height: 1; } .plan .price small { font-family: var(--body, inherit); font-size: .95rem; font-weight: 600; }
.oops { max-width: 62ch; padding: 1rem 0 2rem; } .oops h1 { margin-top: .4rem; font-size: clamp(2.2rem, 6vw, 3.4rem); }
@media (max-width: 860px) { .pro { grid-template-columns: 1fr; gap: 1.6rem; } }

/* Searching inside a collection, and the collection in numbers. */
.within { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .6rem; padding: .7rem .8rem; border-bottom: 1px dashed var(--line); }
.within input[type=search] { flex: 1 1 240px; min-width: 0; } .within a { font-weight: 600; font-size: .9rem; }
.numbers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.6rem 2.2rem; margin-top: 1.6rem; align-items: start; }
.numbers section { margin: 0; } .numbers .wide { grid-column: 1 / -1; } .numbers h2 { margin: 0 0 .7rem; font-size: 1.3rem; }
.numbers .facts { margin: 0 0 .6rem; } .numbers .facts dd { text-align: right; font-family: inherit; } .numbers .list.data { margin-bottom: .6rem; } .numbers .list.data .bar-col { width: 50%; }
@media (max-width: 860px) { .numbers { grid-template-columns: 1fr; } }
svg.bar { padding: 0; }
.within input, .within select { padding: .45rem .6rem; border: var(--edge); border-radius: 6px; font: inherit; color: var(--ink); background: #fff; }

/* Icons: drawn as outlines in the text colour, sized by the text they sit in. */
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .icon, .tabs .icon, .menu-list .icon, button.link .icon { margin-right: .35em; }
.btn > .icon:only-child { margin: 0; }

/* Header: logo, search and the member's shortcuts on one row; the catalogue's sections on a strip below. */
.site-header .bar { flex-wrap: nowrap; gap: 1.4rem; padding-top: .7rem; padding-bottom: .7rem; }
.site-header .search { flex: 1 1 auto; max-width: 640px; min-width: 0; margin: 0 auto; position: relative; overflow: visible; }
.site-header .search input { border-radius: 6px 0 0 6px; } .site-header .search button { display: flex; align-items: center; gap: .4rem; border-radius: 0 6px 6px 0; }
.account { flex: none; gap: .3rem; }
.account > a:not(.btn) { display: flex; align-items: center; gap: .35rem; white-space: nowrap; }
.account > a[aria-current] { background: var(--ink); color: var(--yellow); }
.account .btn.small { display: flex; align-items: center; white-space: nowrap; margin: 0 .3rem; } .account .btn .icon { margin-right: .2em; }
.nav-strip { background: rgba(0, 0, 0, .18); border-top: 1px solid rgba(255, 255, 255, .18); }
.main-nav { gap: .3rem; padding-top: .3rem; padding-bottom: .3rem; }
.main-nav a { display: flex; align-items: center; gap: .4rem; padding: .32rem .7rem; white-space: nowrap; }
.menu { position: relative; }
.menu summary { display: flex; align-items: center; gap: .35rem; padding: .3rem .5rem; border-radius: 6px; color: #fff; font-weight: 600; cursor: pointer; list-style: none; white-space: nowrap; }
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.menu summary:hover, .menu[open] summary { background: var(--ink); color: var(--yellow); }
.menu summary .icon:last-child { width: .9em; height: .9em; transition: transform .15s; } .menu[open] summary .icon:last-child { transform: rotate(180deg); }
.menu-list { position: absolute; right: 0; top: calc(100% + .5rem); z-index: 20; min-width: 13rem; padding: .35rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); }
.menu-list a, .menu-list button { display: flex; align-items: center; width: 100%; padding: .5rem .65rem; border: 0; border-radius: 5px; background: none; color: var(--ink); font: inherit; font-weight: 600; text-decoration: none; text-align: left; cursor: pointer; }
.menu-list a:hover, .menu-list button:hover, .menu-list a:focus-visible, .menu-list button:focus-visible { background: var(--yellow); color: var(--ink); }
.menu-list form { margin: .3rem 0 0; padding-top: .3rem; border-top: 1px dashed var(--line); }
@media (max-width: 1000px) { .account > a:not(.btn) span, .account .btn.small span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .account > a:not(.btn) .icon, .menu summary .icon:first-child { width: 1.35em; height: 1.35em; } .menu summary span { display: none; } .account .btn .icon { margin: 0; } }
@media (max-width: 720px) {
  .site-header .bar { flex-wrap: wrap; gap: .5rem .6rem; padding-top: .55rem; padding-bottom: .6rem; }
  .site-header .search { order: 2; flex-basis: 100%; max-width: none; } .site-header .search button span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); } .site-header .search button { padding: .5rem .85rem; }
  .account { margin-left: auto; order: 1; } .account > a:not(.btn) span { position: static; width: auto; height: auto; clip-path: none; } .account > a:not(.btn):has(.icon) span { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); }
  .main-nav { order: 0; flex-basis: auto; margin: 0; padding-top: .25rem; padding-bottom: .25rem; justify-content: flex-start; gap: .1rem; overflow-x: auto; scrollbar-width: none; }
  .main-nav a { flex-direction: column; gap: .1rem; padding: .3rem .55rem; font-size: .72rem; } .main-nav a .icon { width: 1.5em; height: 1.5em; }
  .menu { position: static; } .menu-list { left: .6rem; right: .6rem; top: auto; margin-top: .5rem; }
}

.search button { display: flex; align-items: center; gap: .4rem; }
.messages .icon { margin-right: .3rem; } .site-footer h2 .icon { margin-right: .2rem; opacity: .9; }
.btn.wanted { background: var(--red); color: #fff; } .btn.wanted .icon { fill: currentColor; }
.settings strong .icon { margin-right: .3rem; color: var(--muted); } .settings .danger strong .icon { color: var(--danger); }
.pagination a { display: inline-flex; align-items: center; gap: .25rem; }
.lede > .icon:first-child, .owner-bar > .icon:first-child { margin-right: .2rem; }
@media (max-width: 720px) { .account > a.keep span { position: static !important; width: auto !important; height: auto !important; clip-path: none !important; } }

/* Search: suggestions under the box, the themes a search found, and the extra filters. */
.search { position: relative; overflow: visible; }
.search input { border-radius: 6px 0 0 6px; } .search button { border-radius: 0 6px 6px 0; }
.suggest { position: absolute; left: -2px; right: -2px; top: calc(100% + 6px); z-index: 30; max-height: min(70vh, 34rem); overflow-y: auto; padding: .3rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); text-align: left; }
.suggest-head { display: flex; align-items: center; gap: .4rem; padding: .5rem .55rem .2rem; font-family: var(--mono); font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.suggest-row { display: flex; align-items: center; gap: .65rem; padding: .35rem .55rem; border-radius: 5px; color: var(--ink); text-decoration: none; }
.suggest-row:hover, .suggest-row.on { background: var(--yellow); color: var(--ink); }
.suggest-pic { flex: none; display: grid; place-items: center; width: 40px; height: 40px; background: #fff; border: 1px solid var(--line); border-radius: 5px; overflow: hidden; color: var(--muted); }
.suggest-pic img { width: 100%; height: 100%; object-fit: contain; }
.suggest-text { min-width: 0; display: grid; } .suggest-text strong { font-weight: 600; line-height: 1.25; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suggest-text small { font-size: .8rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .suggest-row.on small, .suggest-row:hover small { color: var(--ink); }
.suggest-all { margin-top: .3rem; padding: .6rem .55rem; border-top: 1px dashed var(--line); border-radius: 0 0 5px 5px; font-weight: 700; gap: .45rem; }
.chips.found { margin: .7rem 0 0; }
.filters .range { display: flex; } .filters .range input { width: 7.2rem; } .filters .range input:first-child { border-radius: 6px 0 0 6px; } .filters .range input:last-child { width: 5rem; margin-left: -2px; border-radius: 0 6px 6px 0; }
.filters .tick { display: flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .92rem; white-space: nowrap; } .filters .tick input { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
.came-from { margin: 0 0 1rem; padding: .55rem .9rem; background: var(--surface); border: 1px dashed var(--ink); border-radius: var(--radius); font-size: .93rem; } .came-from a { font-weight: 600; }
@media (max-width: 720px) { .filters .range { grid-column: 1 / -1; } .filters .range input, .filters .range input:last-child { width: 50%; } .filters .tick input { width: 1.1rem; } .suggest { max-height: 60vh; } }

/* Members' own photographs. */
.photo-strip, .photo-wall { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.photo-wall { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 1rem; }
.photo-strip li, .photo-wall li { display: grid; gap: .35rem; align-content: start; font-size: .88rem; }
.photo-strip img, .photo-wall img, .report-photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: #fff; border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); }
.photo-wall li > span { line-height: 1.35; } .photo-wall .report { display: block; color: var(--muted); font-size: .8rem; }
.photo-wall.staff form { display: flex; gap: .4rem; flex-wrap: wrap; }
.report-photo { max-width: 320px; }
.photos .field input[type=file] { padding: .5rem; background: var(--surface); border: 2px dashed var(--ink); border-radius: 6px; width: 100%; }
.rows .mini img { object-fit: cover; } .has-photo { display: inline-flex; align-items: center; gap: .15rem; margin-left: .35rem; font-size: .8rem; } .has-photo .icon { margin: 0; }

/* Parts and colours */
.dot { display: inline-block; width: .8em; height: .8em; margin-right: .4em; border: 1.5px solid var(--ink); border-radius: 50%; vertical-align: -.05em; }
.sub { font-family: var(--mono); font-size: .76rem; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin: 1.4rem 0 .7rem; }
.colour-bar { display: flex; height: 34px; border: var(--edge); border-radius: var(--radius); overflow: hidden; box-shadow: var(--drop); background: var(--surface); }
.colour-bar span { flex-basis: 0; min-width: 2px; border-right: 1px solid rgb(21 24 30 / .35); } .colour-bar span:last-child { border-right: 0; }
.colour-key { list-style: none; margin: .9rem 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: .35rem 1.2rem; font-size: .92rem; }
.colour-key b { font-family: var(--mono); font-size: .8rem; font-weight: 500; color: var(--muted); margin-left: .2rem; } .colour-key a { color: var(--ink); }
.parts { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
.part { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: .55rem; background: var(--surface); border: var(--edge); border-radius: var(--radius); color: var(--ink); text-decoration: none; }
.part:hover { box-shadow: var(--drop); transform: translate(-2px, -2px); color: var(--ink); }
.part-pic { display: grid; place-items: center; aspect-ratio: 1; background: #fff; border-radius: 4px; } .part-pic img { width: 100%; height: 100%; object-fit: contain; }
.part-qty { position: absolute; top: .4rem; left: .4rem; padding: .05rem .4rem; background: var(--yellow); border: var(--edge); border-radius: 4px; font-family: var(--mono); font-size: .78rem; }
.part-name { font-size: .84rem; font-weight: 600; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.part-meta { font-size: .74rem; color: var(--muted); line-height: 1.3; }
.parts-table .pic { width: 64px; padding: .25rem .5rem; } .parts-table .pic img { display: block; background: #fff; border-radius: 4px; }
.parts-table .mono { font-family: var(--mono); font-size: .82rem; } .parts-table .tag { margin-left: .3rem; padding: .05rem .4rem; border: 1.5px solid var(--ink); border-radius: 4px; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; }
.swatches { display: grid; gap: .8rem; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
.swatch { display: flex; flex-direction: column; justify-content: flex-end; min-height: 104px; padding: .7rem .75rem; background: var(--c); border: var(--edge); border-radius: var(--radius); color: #fff; text-decoration: none; }
.swatch.light { color: var(--ink); } .swatch:hover { box-shadow: var(--drop); transform: translate(-2px, -2px); color: #fff; } .swatch.light:hover { color: var(--ink); }
.swatch.clear { background: linear-gradient(135deg, rgb(255 255 255 / .45), transparent 55%), var(--c); }
.swatch-name { font-family: var(--display); font-weight: 700; font-size: 1.08rem; line-height: 1.15; margin-bottom: .2rem; } .swatch-meta { font-family: var(--mono); font-size: .68rem; opacity: .92; }
.colour-head { display: flex; align-items: center; gap: 1.1rem; margin-top: .6rem; } .colour-head h1 { margin: .1rem 0 .4rem; }
.chip-big { display: grid; place-items: end start; width: 108px; height: 108px; flex: none; padding: .45rem; background: var(--c); border: var(--edge); border-radius: var(--radius); box-shadow: var(--drop); color: #fff; font-family: var(--mono); font-size: .72rem; } .chip-big.light { color: var(--ink); }
.facts.row { display: flex; flex-wrap: wrap; gap: .8rem 2.2rem; margin: 1rem 0 0; } .facts.row div { display: block; border: 0; padding: 0; } .facts.row dd { text-align: left; font-family: var(--display); font-weight: 700; font-size: 1.5rem; }
.part-detail .detail-image img { width: 200px; height: 200px; object-fit: contain; }
@media (max-width: 640px) {
  .parts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .5rem; } .swatches { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .chip-big { width: 72px; height: 72px; } .parts-table th:nth-child(4), .parts-table td:nth-child(4) { display: none; }
}

/* Characters A to Z */
.az { break-inside: avoid; } .az h3 { font-family: var(--display); font-size: 1.3rem; margin: 1.2rem 0 .4rem; }
.az ul { list-style: none; margin: 0; padding: 0; columns: 4 13rem; column-gap: 1.5rem; font-size: .93rem; }
.az li { break-inside: avoid; padding: .12rem 0; } .az b { font-family: var(--mono); font-size: .76rem; font-weight: 500; color: var(--muted); }

/* Sourced editorial content */
.editorial .ed-body { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.4rem; align-items: start; }
.ed-about { margin: 0; font-size: 1.05rem; line-height: 1.6; max-width: 68ch; }
.editorial sup { font-size: .68em; margin-left: .1em; } .editorial sup a { text-decoration: none; }
.ed-sources { margin: 1rem 0 0; padding-left: 1.4rem; font-size: .82rem; color: var(--muted); } .ed-sources li { margin: .15rem 0; }
@media (max-width: 760px) { .editorial .ed-body { grid-template-columns: 1fr; } }
.ed-facts div { display: block; } .ed-facts dt { margin-bottom: .15rem; }
.ed-facts dd { text-align: left; font-family: var(--body); font-size: .95rem; font-weight: 500; line-height: 1.4; }
