/* Recipes and wiki pages (recipe, wiki article, category, topic, hub and search pages).
   Uses the colour variables from style.css, so it works in both themes. The crafting grid itself
   (.gui, .slot, .grid3, .arrow, .furnace) is in style.css. */

/* ---------------------------------------------------------------- page header */
.guide-hero { display: flex; gap: 20px; align-items: flex-start; margin: 0 0 22px; }
.guide-hero h1 { margin-bottom: 0.2em; }
.guide-hero .lead { margin-bottom: 0; }
.guide-hero .facts { margin-top: 14px; }
.guide-hero-icon {
  display: grid; place-items: center; flex: none; width: 92px; height: 92px; border-radius: 0;
  background: var(--surface); border: 2px solid var(--edge); box-shadow: var(--bevel);
}
.guide-hero-icon img { width: 64px; height: 64px; }
.guide-hub-hero { padding-bottom: clamp(16px, 3vw, 28px); }
.guide-section { margin: 0 0 30px; }
.guide-section > h2, .guide-head h2 { font-size: 1.3rem; }
.guide-head h2 { display: flex; align-items: center; gap: 10px; }
.guide-head h2 img { width: 32px; height: 32px; }
.muted { color: var(--muted); }
.more-link { margin: 16px 0 0; }
.more-link a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; }
.more-link a:hover { text-decoration: underline; }
.more-link .icon { width: 15px; height: 15px; }

/* ---------------------------------------------------------------- crafting cards */
.panel > h2:first-child { margin-top: 0; }
.recipes { margin-top: 6px; }
.recipe-card figcaption .badge { vertical-align: 0; }
.gui .slot img { image-rendering: pixelated; }
.slot.cycle img:not(.on) { display: none; }
.slot.cycle { cursor: pointer; }
.slot.cycle::after { content: ''; position: absolute; left: 4px; top: 4px; width: 6px; height: 6px; background: #6cc349; box-shadow: 1px 1px 0 #2b5c18; opacity: 0.85; }
.flame {
  width: 28px; height: 28px; background: linear-gradient(#ffe15a, #ff8a1f 55%, #d8420e);
  clip-path: polygon(50% 0, 64% 22%, 80% 14%, 82% 44%, 100% 58%, 86% 100%, 14% 100%, 0 58%, 20% 44%, 22% 18%, 38% 28%);
}
.recipe-tip { margin: 18px 0 0; padding: 10px 14px; font-size: 0.92rem; color: var(--text-soft); background: var(--surface); border-left: 3px solid var(--accent); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; }
.slot:focus-visible { outline: 3px solid var(--accent); outline-offset: 1px; }

/* ---------------------------------------------------------------- ingredients and steps */
.guide-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 0 20px; }
.ing-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ing-list li { display: flex; align-items: center; gap: 12px; padding: 8px 12px; background: var(--surface); border: 2px solid var(--edge); border-radius: var(--radius-sm); box-shadow: var(--bevel); }
.ing-list img { width: 32px; height: 32px; flex: none; }
.ing-list .qty { min-width: 2.4em; font: 400 1.5rem/1 var(--font-pixel); color: var(--heading); }
.ing-list a, .ing-name { font-weight: 600; }
.ing-text { display: grid; gap: 2px; min-width: 0; }
.ing-text small { font-size: 0.8rem; line-height: 1.4; color: var(--muted); }
.steps { margin: 0; padding-left: 0; list-style: none; counter-reset: step; display: grid; gap: 10px; }
.steps li { position: relative; padding: 2px 0 2px 42px; line-height: 1.6; color: var(--text-soft); counter-increment: step; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 28px; height: 28px;
  font-weight: 700; font-size: 0.85rem; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line); border-radius: 0;
}

/* ---------------------------------------------------------------- FAQ */
.faq details { border: 2px solid var(--edge); border-radius: var(--radius-sm); background: var(--surface); margin: 0 0 8px; box-shadow: var(--bevel); }
.faq summary { display: flex; align-items: center; gap: 10px; padding: 12px 16px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; margin-left: auto; font-size: 1.3rem; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '−'; }
.faq summary h3 { flex: 1; margin: 0; font-size: 1rem; font-weight: 600; color: var(--heading); }
.faq details p { margin: 0; padding: 0 16px 14px; color: var(--text-soft); line-height: 1.65; }

/* ---------------------------------------------------------------- tiles (recipe links) */
.mtiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 168px), 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
.mtiles-lg { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.mtile {
  display: flex; align-items: center; gap: 10px; height: 100%; padding: 8px 12px; color: var(--text); text-decoration: none; font-size: 0.9rem; font-weight: 500; line-height: 1.3;
  background: var(--surface); border: 2px solid var(--edge); border-radius: var(--radius-sm);
  transition: border-color 0.15s ease, background-color 0.15s ease; box-shadow: var(--bevel);
}
.mtile:hover { color: var(--heading); border-color: var(--accent-line); background: var(--card-hover); }
.mtile img { width: 32px; height: 32px; flex: none; }

/* ---------------------------------------------------------------- article lists */
.wlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.witem {
  display: flex; gap: 14px; height: 100%; padding: 14px; color: var(--text); text-decoration: none;
  background: var(--block); border: 2px solid var(--edge); border-radius: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease; box-shadow: var(--bevel);
}
.panel .witem { background: var(--surface); }
.witem:hover { color: var(--text); border-color: var(--accent-line); background: var(--card-hover); transform: translateY(-1px); }
.witem-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 0; background: var(--surface); border: 2px solid var(--edge); box-shadow: var(--bevel); }
.panel .witem-icon { background: var(--block); }
.witem-icon img { width: 32px; height: 32px; }
.witem-text { display: grid; gap: 3px; min-width: 0; align-content: start; }
.witem-title { font-weight: 700; color: var(--heading); line-height: 1.3; }
.witem-topic { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent-ink); }
.witem-desc { font-size: 0.86rem; line-height: 1.5; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------------------------------------------------------------- category / topic cards */
.gcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
.gcard-sm {
  display: flex; align-items: center; gap: 12px; height: 100%; padding: 12px 14px; text-decoration: none; color: var(--text);
  background: var(--block); border: 2px solid var(--edge); border-radius: 0;
  transition: border-color 0.15s ease, background-color 0.15s ease, transform 0.15s ease; box-shadow: var(--bevel);
}
.gcard-sm:hover { color: var(--text); border-color: var(--accent-line); background: var(--card-hover); transform: translateY(-1px); }
.gcard-icon { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 0; background: var(--surface); border: 2px solid var(--edge); box-shadow: var(--bevel); }
.gcard-icon img { width: 32px; height: 32px; }
.gcard-text { display: grid; gap: 2px; min-width: 0; }
.gcard-name { font-weight: 700; color: var(--heading); line-height: 1.3; }
.gcard-count { font-size: 0.82rem; color: var(--muted); }

/* ---------------------------------------------------------------- filters, A–Z */
.guide-filter { position: relative; margin: 0 0 16px; }
.guide-filter .icon { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); pointer-events: none; }
.guide-filter input {
  width: 100%; padding: 11px 14px 11px 42px; font: 0.95rem var(--font-body); color: var(--text);
  background: var(--input); border: 2px solid var(--edge); border-radius: var(--radius-sm); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.18);
}
.guide-filter input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.letters { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 18px; }
.letters a {
  display: grid; place-items: center; min-width: 34px; height: 34px; padding: 0 6px; font-weight: 700; text-decoration: none;
  color: var(--text-soft); background: var(--surface); border: 2px solid var(--edge); border-radius: 0; box-shadow: var(--bevel);
}
.letters a:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.az-group { scroll-margin-top: 80px; }
.az-group + .az-group { margin-top: 18px; }
.az-group h3 { margin: 0 0 10px; font: 400 1.8rem/1 var(--font-pixel); color: var(--accent-ink); }
.filter-empty { margin: 12px 0 0; padding: 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); }
[hidden] { display: none !important; }

/* Topic pages split into groups (the Blocks topic) */
.topic-group + .topic-group { margin-top: 28px; }
.topic-group h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; font-size: 1.15rem; }
.topic-group h2 .side-count { margin-left: 0; font-size: 0.8rem; }

/* ---------------------------------------------------------------- wiki articles */
.wiki-head { margin: 0 0 20px; }
.wiki-head h1 { margin-bottom: 0.2em; }
.kicker { margin: 0 0 6px; }
.kicker a { display: inline-flex; align-items: center; gap: 7px; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; text-decoration: none; color: var(--accent-ink); }
.kicker a:hover { text-decoration: underline; }
.kicker img { width: 16px; height: 16px; }
.wiki-meta { margin: 8px 0 0; font-size: 0.86rem; color: var(--muted); }
.wiki-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; margin: 0 0 20px; }
.wiki-layout .wiki-article { margin: 0; grid-column: 1; grid-row: 1; }
.infobox {
  grid-column: 2; grid-row: 1; position: sticky; top: 20px;
  background: var(--block); border: 2px solid var(--edge); border-radius: var(--radius); overflow: hidden; box-shadow: var(--bevel);
}
.infobox-title { margin: 0; padding: 12px 16px; font-weight: 700; text-align: center; color: var(--heading); background: var(--surface); border-bottom: 1px solid var(--line); }
.infobox-icon { display: grid; place-items: center; padding: 20px; border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 50% 45%, var(--accent-soft), transparent 70%); }
.infobox-icon img { width: 96px; height: 96px; }
.infobox-facts { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.infobox-facts th, .infobox-facts td { padding: 9px 14px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); line-height: 1.45; }
.infobox-facts tr:last-child th, .infobox-facts tr:last-child td { border-bottom: 0; }
.infobox-facts th { width: 38%; font-weight: 600; color: var(--muted); }
.infobox-facts td { color: var(--text); }
.toc { margin: 0 0 24px; padding: 14px 18px; background: var(--surface); border: 2px solid var(--edge); border-radius: var(--radius-sm); max-width: 760px; box-shadow: var(--bevel); }
.toc-title { margin: 0 0 6px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.toc ol { margin: 0; padding-left: 1.3em; columns: 2 220px; column-gap: 28px; }
.toc li { margin: 0 0 4px; break-inside: avoid; }
.toc li::marker { color: var(--accent); }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.wiki-article .post-body h2 { scroll-margin-top: 80px; }

/* ---------------------------------------------------------------- News & Updates */
.news-tags { margin: 0 0 20px; }
.news-tags .chips { justify-content: center; }
a.chip-btn { text-decoration: none; }
a.chip-btn[aria-current="page"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
a.chip-btn[aria-current="page"] span { color: var(--on-accent); opacity: 0.75; }
.feed-link { margin: 22px 0 0; text-align: center; }
.news-head { max-width: 860px; }
.news-head .nmeta { margin-bottom: 8px; }
.news-head .lead { margin-bottom: 14px; }
.news-cover { margin: 0 0 20px; max-width: 1024px; border-radius: var(--radius); overflow: hidden; border: 2px solid var(--edge); background: var(--surface); box-shadow: var(--bevel); }
.news-cover img { display: block; width: 100%; height: auto; }
/* A wiki page's featured picture (optional "cover" in _src/data/wiki.json): full width, above the infobox and article */
/* It sits in the left column above the article, with the infobox to its right */
.wiki-cover { max-width: none; }
.wiki-cover img { max-height: 420px; object-fit: cover; }
.wiki-layout.has-cover .wiki-cover { grid-column: 1; grid-row: 1; margin: 0; }
.wiki-layout.has-cover .wiki-article { grid-row: 2; }
.wiki-layout.has-cover .infobox { grid-row: 1 / span 2; }
.news-article .post-body hr { margin: 2em 0; border: 0; border-top: 1px solid var(--line); }
.post-updated { margin: 24px 0 0; font-size: 0.86rem; color: var(--muted); }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 20px; }
.post-nav a {
  display: grid; gap: 4px; padding: 14px 18px; text-decoration: none; font-weight: 600; color: var(--heading);
  background: var(--block); border: 2px solid var(--edge); border-radius: 0; box-shadow: var(--bevel);
}
.post-nav a:hover { border-color: var(--accent-line); background: var(--card-hover); }
.post-nav small { font-size: 0.78rem; font-weight: 600; color: var(--accent-ink); }
.post-nav .older { text-align: right; }

/* ---------------------------------------------------------------- Servers */
.srv-entry { margin: 0; }
.srv-entry .mc-server-motd { min-height: 2.3em; }
.mc-ping.wait i { background: #555; box-shadow: 1px 1px 0 #222; animation: srv-wait 1.2s ease-in-out infinite; }
.mc-ping.wait i:nth-child(2) { animation-delay: 0.15s; } .mc-ping.wait i:nth-child(3) { animation-delay: 0.3s; }
.mc-ping.wait i:nth-child(4) { animation-delay: 0.45s; } .mc-ping.wait i:nth-child(5) { animation-delay: 0.6s; }
@keyframes srv-wait { 50% { background: #9a9a9a; } }
@media (prefers-reduced-motion: reduce) { .mc-ping.wait i { animation: none; } }
.srv-state { font-weight: 600; }
.srv-state.on, .srv-state.off { display: inline-flex; align-items: center; gap: 6px; }
.srv-state.on::before, .srv-state.off::before { content: ''; width: 8px; height: 8px; border-radius: 50%; }
.srv-state.on { color: var(--green); }
.srv-state.on::before { background: var(--green); box-shadow: 0 0 0 3px var(--accent-soft); }
.srv-state.off { color: var(--danger); }
.srv-state.off::before { background: var(--danger); }
/* IP box with a copy button */
.srv-ip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 14px 0; padding: 8px 8px 8px 14px;
  background: var(--input); border: 2px solid var(--edge); border-radius: var(--radius-sm); box-shadow: var(--bevel);
}
.srv-ip-label { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
/* the IP never breaks mid-word; if there isn't room, the Copy button moves below it */
.srv-ip code { flex: 1 0 auto; max-width: 100%; font: 600 1rem var(--font-mono); color: var(--heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; user-select: all; }
.srv-copy { flex: none; }
.srv-copy .icon { width: 16px; height: 16px; }
.srv-copy.copied { filter: brightness(1.1); }
/* Featured server card */
.srv-feature {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 24px; align-items: center;
  margin: 0 0 30px; padding: clamp(18px, 3vw, 28px); overflow: hidden;
  background: radial-gradient(circle at 100% 0, var(--accent-soft), transparent 55%), var(--panel);
  border: 1px solid var(--accent-line); border-radius: var(--radius);
}
.srv-kicker { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.srv-kicker .icon { width: 15px; height: 15px; fill: currentColor; }
.srv-title-row { display: flex; align-items: center; gap: 12px; }
.srv-title-row img { width: 48px; height: 48px; border-radius: 0; }
.srv-name { margin: 0; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
.srv-name a { color: var(--heading); text-decoration: none; }
.srv-name a:hover { color: var(--accent-ink); }
.srv-short { margin: 8px 0 0; color: var(--text-soft); line-height: 1.6; }
.srv-facts { margin-top: 14px; }
.srv-feature .more-link { margin-top: 4px; }
.home-news .srv-kicker { display: none; } /* the home page section is already headed "Featured server" */
.srv-feature-preview { display: grid; gap: 12px; }
/* Server cards */
/* Server rows: one per row, in the site's card style (icon, details, then live status and the IP) */
.srv-rows { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.srv-row {
  display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 390px); gap: 8px 20px; align-items: center;
  padding: 18px 20px; background: var(--block); border: 2px solid var(--edge); border-radius: var(--radius);
  transition: border-color 0.15s ease, background-color 0.15s ease; box-shadow: var(--bevel);
}
.srv-row:hover { border-color: var(--accent-line); background: var(--card-hover); }
.srv-row-icon {
  display: grid; place-items: center; width: 68px; height: 68px; border-radius: 0;
  background: var(--surface); border: 2px solid var(--edge); box-shadow: var(--bevel);
}
.srv-row-icon img { width: 48px; height: 48px; border-radius: 0; }
.srv-row-main { display: grid; gap: 7px; min-width: 0; }
.srv-row-name { margin: 0; font-size: 1.12rem; letter-spacing: -0.01em; }
.srv-row-name a { color: var(--heading); text-decoration: none; }
.srv-row-name a:hover { color: var(--accent-ink); }
.srv-row-name .badge { margin-left: 6px; }
.srv-row .srv-short { margin: 0; font-size: 0.92rem; color: var(--muted); }
.srv-row-side { display: grid; gap: 10px; }
.srv-row-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 0; font-size: 0.85rem; color: var(--text-soft); }
.srv-row-stat { display: inline-flex; align-items: center; gap: 5px; font-variant-numeric: tabular-nums; }
.srv-row-stat .icon { width: 14px; height: 14px; color: var(--muted); }
.srv-row .srv-ip { margin: 0; padding: 6px 6px 6px 12px; }
.srv-row .srv-ip code { font-size: 0.9rem; }
.srv-row .srv-copy { padding: 7px 12px; font-size: 0.86rem; }
.srv-note { margin: 12px 0 0; font-size: 0.86rem; color: var(--muted); }
.guide-section + .srv-note, .srv-cards + .srv-note { margin-top: 18px; text-align: center; }
/* Server page */
.guide-hero-icon img[data-s-icon] { border-radius: 0; }
.srv-panel-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 28px; }
.srv-panel h2 { margin-top: 0; font-size: 1.25rem; }
.srv-panel .steps { margin-top: 16px; }
.srv-join-h { margin: 22px 0 0; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.srv-join-h + .steps { margin-top: 10px; }
.srv-panel .steps code { background: var(--surface); border: 2px solid var(--edge); border-radius: 0; padding: 1px 5px; box-shadow: var(--bevel); }
.srv-links { display: flex; flex-wrap: wrap; gap: 10px; }
.srv-links .icon { width: 16px; height: 16px; }
@media (max-width: 1150px) {
  .srv-row { grid-template-columns: auto minmax(0, 1fr); }
  .srv-row-side { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); align-items: center; }
}
@media (max-width: 900px) {
  .srv-feature, .srv-panel-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .srv-row { padding: 14px; gap: 10px 14px; }
  .srv-row-icon { width: 56px; height: 56px; }
  .srv-row-icon img { width: 40px; height: 40px; }
  .srv-row-side { grid-template-columns: minmax(0, 1fr); }
}

/* ---------------------------------------------------------------- search page */
.search-status { min-height: 1.5em; margin: 0 0 14px; text-align: center; color: var(--muted); }
.search-results { display: grid; gap: 26px; }
.search-group h2 { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.search-group h2 .side-count { margin-left: 0; font-size: 0.8rem; }
.search-tool-icon { display: grid; place-items: center; width: 100%; height: 100%; color: var(--accent-ink); }
.search-tool-icon .icon { width: 22px; height: 22px; }

/* ---------------------------------------------------------------- narrow screens */
@media (max-width: 1180px) {
  .wiki-layout { grid-template-columns: minmax(0, 1fr); }
  .infobox { grid-column: 1; grid-row: auto; position: static; display: grid; grid-template-columns: 150px minmax(0, 1fr); }
  .infobox-title { grid-column: 1 / -1; }
  .infobox-icon { border-bottom: 0; border-right: 1px solid var(--line); }
  .wiki-layout .wiki-article { grid-row: auto; }
  /* one column: the picture, then the infobox, then the article */
  .wiki-layout.has-cover .wiki-cover, .wiki-layout.has-cover .infobox, .wiki-layout.has-cover .wiki-article { grid-column: 1; grid-row: auto; }
}
@media (max-width: 760px) {
  .guide-cols { grid-template-columns: minmax(0, 1fr); }
  .post-nav { grid-template-columns: minmax(0, 1fr); }
  .post-nav .older { text-align: left; }
}
@media (max-width: 640px) {
  .guide-hero { gap: 14px; }
  .guide-hero-icon { width: 64px; height: 64px; border-radius: 0; }
  .guide-hero-icon img { width: 32px; height: 32px; }
  .infobox { grid-template-columns: minmax(0, 1fr); }
  .infobox-icon { border-right: 0; border-bottom: 1px solid var(--line); padding: 14px; }
  .infobox-icon img { width: 64px; height: 64px; }
  .recipes { gap: 18px; }
  .flame { width: 22px; height: 22px; }
}

/* ---------- weapon, tool and armour stats ---------- */
.stat-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; list-style: none; margin: 0; padding: 0; }
.stat-tiles li { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; background: var(--surface); border: 2px solid var(--edge); border-radius: var(--radius-sm); box-shadow: var(--bevel); }
.stat-label { font: 700 0.72rem var(--font-body); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.stat-val { font: 800 1.6rem/1.15 var(--font-body); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; color: var(--accent-ink); overflow-wrap: anywhere; }
.stat-tiles small { font-size: 0.8rem; color: var(--text-soft); }
.gear-stats h3 { margin: 26px 0 10px; font-size: 1.05rem; }
.table-scroll { overflow-x: auto; border: 2px solid var(--edge); border-radius: var(--radius-sm); box-shadow: var(--bevel); }
.table-scroll:focus-visible { outline: none; box-shadow: var(--ring); }
.stat-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; font-variant-numeric: tabular-nums; }
.stat-table th, .stat-table td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.stat-table thead th { font: 700 0.72rem var(--font-body); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); background: var(--surface); }
.stat-table tbody tr:last-child th, .stat-table tbody tr:last-child td { border-bottom: 0; }
.stat-table tbody th { font-weight: 600; }
.stat-table tbody th a, .stat-table tbody th strong { display: inline-flex; align-items: center; gap: 8px; }
.stat-table tbody th img { flex: none; }
.stat-table tr.is-current { background: var(--accent-soft); }
.stat-table tr.is-current th strong { color: var(--accent-ink); }
.stat-notes { margin: 18px 0 0; padding-left: 1.2em; color: var(--text-soft); font-size: 0.94rem; }
.stat-notes li + li { margin-top: 6px; }
.stat-source { margin: 14px 0 0; font-size: 0.8rem; color: var(--muted); }
