/* Cobble Guide: site layout and look (sidebar, home page, tool cards, tool page frame, footer).
   Dark by default; [data-theme="light"] on <html> switches to the light colours (js/theme.js, the switch in the sidebar).
   Tool styles are in tools.css and use the same variables, so every tool works in both themes. */

/* Nunito by The Nunito Project Authors, SIL Open Font License 1.1 (see fonts/OFL-Nunito.txt): all site text.
   One variable file covers every weight from 200 to 1000. */
@font-face {
  font-family: 'Nunito';
  font-style: normal;
  font-weight: 200 1000;
  font-display: swap;
  src: url(../fonts/nunito-latin-wght.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* VT323 by The VT323 Project Authors, SIL Open Font License 1.1 (see fonts/OFL.txt): in-game text. */
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/vt323-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'VT323';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url(../fonts/vt323-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------------------------------------------------------------- colours */
:root {
  color-scheme: dark;
  --font-pixel: 'VT323', 'Courier New', monospace;
  --font-body: 'Nunito', ui-rounded, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-mono: ui-monospace, 'Cascadia Mono', Consolas, 'SF Mono', Menlo, monospace;

  /* A blocky look, like the game's own menus: square corners, 2px dark edges, a bevel (light top-left,
     dark right) and a solid ledge under raised things (buttons, cards), which sink in when pressed. */
  --bg: #111315;
  --header: rgba(23, 25, 28, 0.92);
  --panel: #17191c;        /* the page behind everything (and the sidebar) */
  --block: #1f2226;        /* panels and cards */
  --card: #272a2e;         /* buttons and other raised controls */
  --card-hover: #2f3337;
  --surface: #1a1c1f;      /* boxes inside panels, sunk in a little */
  --surface-2: #1f2226;
  --input: #121416;
  --edge: #0a0b0c;         /* the dark edge round every block */
  --line: #2c3035;         /* thin dividers */
  --line-strong: #3a3f45;
  --text: #ededed;
  --text-soft: #c2c6cb;
  --muted: #969a9f;
  --heading: #ffffff;
  --bevel-hi: rgba(255, 255, 255, 0.055);
  --bevel-lo: rgba(0, 0, 0, 0.32);
  --accent: #6cc349;       /* the brand green */
  --accent-hover: #7fd15d;
  --accent-ink: #6cc349;   /* accent-coloured text (8.8:1 on the dark background) */
  --accent-soft: rgba(108, 195, 73, 0.13);
  --accent-line: rgba(108, 195, 73, 0.42);
  --on-accent: #0c1a06;    /* text on accent buttons */
  --link: #6cc349;
  --link-hover: #95d97a;
  --green: #6cc349;
  --yellow: #f5c542;
  --gold: #f0a94a;
  --aqua: #5ad1e6;
  --danger: #ff7a70;
  --danger-soft: rgba(255, 122, 112, 0.12);
  --danger-line: rgba(255, 122, 112, 0.45);
  --ok-soft: rgba(108, 195, 73, 0.1);

  --radius: 0;
  --radius-sm: 0;
  --bevel: inset 0 2px 0 var(--bevel-hi), inset 2px 0 0 var(--bevel-hi), inset -2px 0 0 var(--bevel-lo);
  --lift: 0 4px 0 var(--edge);      /* the ledge under raised things */
  --press: inset 0 3px 0 rgba(0, 0, 0, 0.4);
  --shadow-sm: 0 2px 0 rgba(0, 0, 0, 0.3);
  --shadow: 0 6px 0 rgba(0, 0, 0, 0.35), 0 10px 24px rgba(0, 0, 0, 0.3);
  --ring: 0 0 0 3px rgba(108, 195, 73, 0.4);

  /* the game's own screens */
  --gui: #c6c6c6;
  --gui-hi: #ffffff;
  --gui-lo: #555555;
  --gui-text: #3f3f3f;
  --slot: #8b8b8b;
  --slot-hi: #ffffff;
  --slot-lo: #373737;
  --tooltip-bg: rgba(16, 0, 16, 0.94);
  --tooltip-border: #2d0a63;

  /* Slime Chunk Finder map */
  --map-bg: #12151a;
  --map-grid: rgba(255, 255, 255, 0.06);
  --map-label: rgba(232, 236, 241, 0.7);
  --map-axis: rgba(245, 197, 66, 0.55);
  --map-hover: #f5c542;
  --map-select: #ffffff;
}
[data-theme="light"] {
  color-scheme: light;
  /* light theme: warm parchment and tan, like an old map */
  --bg: #e7e0cf;
  --header: rgba(228, 220, 203, 0.94);
  --panel: #f6f3ec;
  --block: #ece6d8;
  --card: #dfd6c3;
  --card-hover: #e8e0cf;
  --surface: #f5f1e8;
  --surface-2: #ece6d8;
  --input: #fbf9f4;
  --edge: #a89a80;
  --line: #d9d0bd;
  --line-strong: #c2b69d;
  --text: #2a261f;
  --text-soft: #4a4337;
  --muted: #776d5c;
  --heading: #221e18;
  --bevel-hi: rgba(255, 255, 255, 0.6);
  --bevel-lo: rgba(0, 0, 0, 0.12);
  --accent: #6cc349;       /* the same brand green for buttons and highlights, with dark text on it */
  --accent-hover: #5fb63c;
  --accent-ink: #2f7419;   /* a deeper green for text, readable on parchment (5.2:1) */
  --accent-soft: #e1eed3;
  --accent-line: #9fca82;
  --on-accent: #0f1f08;
  --link: #2f7419;
  --link-hover: #1f5410;
  --green: #2f7419;
  --yellow: #a26a00;
  --gold: #a35d00;
  --aqua: #0d6b7a;
  --danger: #c0352b;
  --danger-soft: #fdeceb;
  --danger-line: #f1b9b4;
  --ok-soft: #e8f2dd;
  --press: inset 0 3px 0 rgba(0, 0, 0, 0.16);
  --shadow-sm: 0 2px 0 rgba(80, 60, 20, 0.12);
  --shadow: 0 6px 0 rgba(80, 60, 20, 0.18), 0 10px 24px rgba(80, 60, 20, 0.12);
  --ring: 0 0 0 3px rgba(61, 127, 36, 0.4);
  --map-bg: #f6f3ec;
  --map-grid: rgba(0, 0, 0, 0.08);
  --map-label: rgba(21, 26, 33, 0.7);
  --map-axis: rgba(176, 124, 0, 0.6);
  --map-hover: #b07c00;
  --map-select: #151a21;
}

/* Each tool has its own colour for its icon tile and tags (crafty-style coloured cards). */
.hue-green { --h: #34d399; } .hue-teal { --h: #2dd4bf; } .hue-cyan { --h: #22d3ee; } .hue-blue { --h: #60a5fa; }
.hue-indigo { --h: #818cf8; } .hue-violet { --h: #a78bfa; } .hue-pink { --h: #f472b6; } .hue-red { --h: #f87171; }
.hue-orange { --h: #fb923c; } .hue-amber { --h: #fbbf24; } .hue-lime { --h: #a3e635; }
[data-theme="light"] .hue-green { --h: #059669; } [data-theme="light"] .hue-teal { --h: #0d9488; }
[data-theme="light"] .hue-cyan { --h: #0891b2; } [data-theme="light"] .hue-blue { --h: #2563eb; }
[data-theme="light"] .hue-indigo { --h: #4f46e5; } [data-theme="light"] .hue-violet { --h: #7c3aed; }
[data-theme="light"] .hue-pink { --h: #db2777; } [data-theme="light"] .hue-red { --h: #dc2626; }
[data-theme="light"] .hue-orange { --h: #ea580c; } [data-theme="light"] .hue-amber { --h: #b45309; }
[data-theme="light"] .hue-lime { --h: #4d7c0f; }

/* ---------------------------------------------------------------- base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 24px; }
@media (max-width: 1000px) { html { scroll-padding-top: 76px; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font: 400 1rem/1.65 var(--font-body);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
main { flex: 1; min-width: 0; padding-top: 28px; padding-bottom: 40px; }
img { max-width: 100%; height: auto; image-rendering: pixelated; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
::selection { background: var(--accent-soft); }

h1, h2, h3, h4 { font-family: var(--font-body); color: var(--heading); line-height: 1.2; letter-spacing: -0.015em; text-wrap: balance; }
h1 { font-size: clamp(1.8rem, 3.6vw, 2.4rem); font-weight: 800; letter-spacing: -0.025em; margin: 0 0 0.3em; }
h2 { font-size: clamp(1.2rem, 2vw, 1.45rem); font-weight: 700; margin: 0 0 0.5em; }
h3 { font-size: 1.05rem; font-weight: 700; margin: 0 0 0.4em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
code { font-family: var(--font-mono); font-size: 0.9em; }
.lead { font-size: 1.06rem; line-height: 1.6; color: var(--text-soft); max-width: 72ch; }
[hidden] { display: none !important; }
.wrap { width: 100%; max-width: 1280px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 8px 14px; border-radius: var(--radius-sm); background: var(--accent); color: var(--on-accent); }
.skip:focus { left: 16px; }
.icon { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  font: 600 0.92rem/1.2 var(--font-body);
  color: var(--text);
  text-decoration: none;
  background: var(--card);
  border: 2px solid var(--edge);
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}
.btn:hover { color: var(--text); background: var(--card-hover); border-color: var(--muted); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-primary, .btn-primary:hover { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn-sm { padding: 6px 11px; font-size: 0.84rem; }
.btn-icon { padding: 8px; }
.link-btn { padding: 0; font: inherit; color: var(--link); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; background: none; border: 0; cursor: pointer; }
.link-btn:hover, .link-btn:focus-visible { color: var(--link-hover); }

/* ---------------------------------------------------------------- sidebar layout
   Desktop: a sticky sidebar on the left (logo, search, categories with their tools, theme switch).
   Below 1000px: the sidebar slides in from the left, opened from the top bar (js/main.js). */
.layout { display: grid; grid-template-columns: 276px minmax(0, 1fr); min-height: 100vh; }
.content {
  min-width: 0; display: flex; flex-direction: column;
  background: radial-gradient(circle at 100% 0, var(--accent-soft), transparent 55%), var(--panel);
}
.sidebar {
  position: sticky; top: 0; height: 100vh; z-index: 40;
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px 14px 12px;
  background: var(--block); border-right: 1px solid var(--line);
  overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin;
}
.side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 6px 0; }
.side-close { display: none; }
/* Logo: the stone block (inline SVG) and the "CobbleGuide" wordmark, with "Guide" in the brand green */
.logo { display: inline-flex; align-items: center; gap: 10px; flex: none; color: var(--heading); text-decoration: none; font: 800 1.6rem/1 var(--font-body); letter-spacing: -0.04em; }
.logo:hover { color: var(--heading); }
.logo-mark { display: block; width: 40px; height: 40px; flex: none; transition: transform 0.2s ease; }
.logo:hover .logo-mark { transform: rotate(-8deg) scale(1.06); }
.logo-text { white-space: nowrap; }
.logo-text span { color: var(--accent-ink); }
@media (prefers-reduced-motion: reduce) { .logo-mark { transition: none; } }
.side-head .logo { margin: 0 auto; }
.hsearch { position: relative; display: flex; align-items: center; }
.hsearch .icon { position: absolute; left: 11px; width: 17px; height: 17px; color: var(--muted); pointer-events: none; }
.hsearch input {
  width: 100%; padding: 9px 12px 9px 36px; font: 0.9rem var(--font-body); color: var(--text);
  background: var(--surface); border: 2px solid var(--edge); border-radius: var(--radius-sm); box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.18);
}
.hsearch input::placeholder { color: var(--muted); }
.hsearch input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.side-nav { display: grid; gap: 2px; }
.side-home {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 0;
  color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.side-home .icon { width: 18px; height: 18px; }
.side-home:hover { color: var(--heading); background: var(--surface); }
.side-home[aria-current] { color: var(--accent-ink); background: var(--accent-soft); }
.side-count { margin-left: auto; font-size: 0.74rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
/* Main sections (Tools, Recipes, Wiki, News & Updates): the name links to the section's main page,
   the chevron opens and closes its list (js/main.js; without JavaScript the lists are always shown). */
.side-sec-head { display: flex; align-items: center; border-radius: 0; }
.side-sec-head:hover { background: var(--surface); }
.side-sec-link {
  display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 8px 4px 8px 10px; border-radius: 0;
  color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: 0.92rem;
}
.side-sec-link .icon { width: 18px; height: 18px; flex: none; }
.side-sec-link .side-arrow { width: 13px; height: 13px; color: var(--muted); opacity: 0.7; transition: transform 0.15s ease, color 0.15s ease, opacity 0.15s ease; }
.side-sec-link:hover { color: var(--heading); }
.side-sec-link:hover .side-arrow { transform: translateX(2px); color: var(--accent-ink); opacity: 1; }
.side-sec.active .side-sec-link { color: var(--accent-ink); }
.side-sec-head:has([aria-current]) { background: var(--accent-soft); }
.side-sec-head > .side-count { margin-left: 4px; padding-right: 4px; }
.side-sec-head:not(:has(.side-toggle)) > .side-count { padding-right: 12px; }
.side-toggle {
  display: grid; place-items: center; flex: none; width: 30px; height: 30px; margin-right: 3px; padding: 0; border: 0; border-radius: 0;
  color: var(--muted); background: none; cursor: pointer;
}
.side-toggle:hover { color: var(--heading); background: var(--card-hover); }
.side-toggle:focus-visible { outline: none; box-shadow: var(--ring); }
.side-toggle .icon { width: 15px; height: 15px; transition: transform 0.15s ease; }
.side-sec.open .side-toggle .icon { transform: rotate(180deg); }
/* The indented list under a section */
.side-sub { list-style: none; margin: 2px 0 8px 19px; padding: 0 0 0 10px; border-left: 1px solid var(--line); }
.js .side-sec:not(.open) > .side-sub { display: none; }
.side-sub a { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-radius: 0; color: var(--muted); text-decoration: none; font-size: 0.875rem; line-height: 1.3; }
.side-sub a .icon { width: 16px; height: 16px; flex: none; }
.side-sub a:hover { color: var(--heading); background: var(--surface); }
.side-sub a[aria-current] { color: var(--heading); background: var(--surface); font-weight: 600; }
.side-sub .side-count { font-weight: 500; }
.side-img { width: 16px; height: 16px; flex: none; image-rendering: pixelated; }
.side-foot { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.side-theme, .side-link {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border-radius: 0; cursor: pointer;
  font: 600 0.9rem var(--font-body); color: var(--text-soft); text-decoration: none; background: none; border: 0;
}
.side-theme:hover, .side-link:hover { color: var(--heading); background: var(--surface); }
.side-link[aria-current] { color: var(--accent-ink); background: var(--accent-soft); }
.side-theme .icon, .side-link .icon { width: 18px; height: 18px; }
.side-theme .i-moon, .side-theme .t-light { display: none; }
[data-theme="light"] .side-theme .i-sun, [data-theme="light"] .side-theme .t-dark { display: none; }
[data-theme="light"] .side-theme .i-moon, [data-theme="light"] .side-theme .t-light { display: inline; }
.theme-btn { padding: 8px; }
.theme-btn .icon { width: 18px; height: 18px; }
.theme-btn .i-sun { display: none; }
[data-theme="light"] .theme-btn .i-sun { display: inline; }
[data-theme="light"] .theme-btn .i-moon { display: none; }
.mobile-bar, .side-backdrop { display: none; }

@media (max-width: 1000px) {
  .layout { display: block; }
  .mobile-bar {
    position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 10px;
    min-height: 58px; padding: 0 16px; background: var(--header); border-bottom: 1px solid var(--line);
    -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px);
  }
  .mobile-bar .logo { font-size: 1.3rem; gap: 8px; }
  .mobile-bar .logo-mark { width: 32px; height: 32px; }
  html:not(.js) .mobile-bar [data-sidebar-toggle] { visibility: hidden; }
  html:not(.js) .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .js .sidebar {
    position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw);
    transform: translateX(-100%); visibility: hidden; box-shadow: var(--shadow);
    transition: transform 0.2s ease, visibility 0.2s ease;
  }
  .js .side-close { display: inline-flex; }
  .side-open .sidebar { transform: none; visibility: visible; }
  .side-open .side-backdrop { display: block; position: fixed; inset: 0; z-index: 35; background: rgba(0, 0, 0, 0.5); }
  html.side-open { overflow: hidden; }
}
@media (prefers-reduced-motion: reduce) { .js .sidebar { transition: none; } }
/* ---------------------------------------------------------------- panels, breadcrumbs */
.panel {
  background: var(--block);
  border: 2px solid var(--edge);
  border-radius: var(--radius);
  padding: clamp(18px, 3vw, 30px);
  margin: 0 0 20px; box-shadow: var(--bevel);
}
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0 0 16px; padding: 0; font-size: 0.86rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--accent-ink); text-decoration: underline; }
.crumbs [aria-current] { color: var(--text-soft); }

/* ---------------------------------------------------------------- icon tiles and tags */
.tile {
  display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 0;
  color: var(--h, var(--accent)); background: color-mix(in srgb, var(--h, var(--accent)) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--h, var(--accent)) 28%, transparent);
}
.tile .icon { width: 20px; height: 20px; }
.tile-lg { width: 56px; height: 56px; border-radius: 0; }
.tile-lg .icon { width: 28px; height: 28px; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; padding: 0; list-style: none; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 0; font-size: 0.74rem; font-weight: 500; line-height: 1.5; white-space: nowrap;
  color: var(--h, var(--accent-ink)); background: color-mix(in srgb, var(--h, var(--accent)) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--h, var(--accent)) 35%, transparent);
}
.badge {
  display: inline-block; padding: 1px 8px; border-radius: 0; font-size: 0.72rem; font-weight: 600; vertical-align: 0.2em;
  color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-line);
}

/* ---------------------------------------------------------------- home page */
.home-hero { text-align: center; padding: clamp(20px, 5vw, 48px) 0 clamp(22px, 4vw, 36px); }
.home-hero h1 { font-size: clamp(2.2rem, 5.2vw, 3.4rem); letter-spacing: -0.035em; margin-bottom: 0.25em; }
.home-hero h1 span { color: var(--accent-ink); }
.home-hero .lead { margin: 0 auto; font-size: 1.1rem; }
/* Home page hero: taller, with a parrot and a bee floating either side */
.home-hero.is-home { position: relative; text-align: center; padding: 130px 0px; }
.home-hero.is-home > :not(.hero-mob) { position: relative; z-index: 1; }
.hero-mob { position: absolute; height: auto; pointer-events: none; user-select: none; animation: hero-float 6s ease-in-out infinite; will-change: transform; }
.hero-parrot { width: 130px; left: 0; top: 18px; }
.hero-bee { width: 150px; right: 0; top: 30px; animation-delay: -3s; }
@keyframes hero-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-24px); } }
@media (max-width: 1100px) { .hero-parrot { width: 96px; top: 12px; } .hero-bee { width: 112px; top: 22px; } }
@media (max-width: 640px) { .home-hero.is-home { padding: 110px 0 60px; } .hero-parrot { width: 76px; top: 10px; } .hero-bee { width: 88px; top: 20px; } }
/* "Reduce motion" turned on (or Windows "Show animations" off): a smaller, slower drift instead of none */
@media (prefers-reduced-motion: reduce) { .hero-mob { animation: hero-drift 8s ease-in-out infinite; } }
@keyframes hero-drift { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }

.featured { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 0 0 24px; padding: 0; list-style: none; }
.fcard {
  position: relative; display: flex; flex-direction: column; gap: 12px; height: 100%; overflow: hidden;
  padding: 22px 24px; color: var(--text); text-decoration: none;
  background: var(--block); border: 2px solid var(--edge); border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease, background-color 0.15s ease; box-shadow: var(--bevel);
}
.fcard:hover { color: var(--text); border-color: color-mix(in srgb, var(--h) 55%, transparent); background: var(--card-hover); transform: translateY(-2px); }
.fcard-head { display: flex; align-items: center; gap: 14px; padding-right: 70px; }
.fcard-title { display: block; font-size: 1.2rem; font-weight: 700; color: var(--heading); letter-spacing: -0.01em; }
.fcard-tagline { display: block; font-size: 0.92rem; color: var(--text-soft); }
.fcard-desc { margin: 0; color: var(--muted); font-size: 0.92rem; line-height: 1.6; }
.fcard-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.fcard-open { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; color: var(--h); font-weight: 600; font-size: 0.92rem; }
.fcard-art { position: absolute; right: 18px; top: 16px; width: 64px; height: 64px; opacity: 0.22; transform: rotate(8deg); transition: opacity 0.2s ease; }
.fcard:hover .fcard-art { opacity: 0.45; }

/* Minecraft item pictures (pixel art: keep the pixels sharp when scaled up) */
img.mc { image-rendering: pixelated; }
/* Home page: the Recipes and Wiki cards */
.guide-cards { margin-top: -8px; }
.gcard-art { position: absolute; right: 18px; top: 18px; display: flex; gap: 6px; opacity: 0.5; transition: opacity 0.2s ease; }
.gcard-art img { width: 32px; height: 32px; }
.gcard:hover .gcard-art { opacity: 0.9; }
.gcard .fcard-head { padding-right: 120px; }
/* Home page: the three sections (tools, recipes, wiki) */
.hubs { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 16px; margin: 0 0 64px; padding: 0; list-style: none; }
.hub {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 24px;
  background: var(--block); border: 2px solid var(--edge); border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease; box-shadow: var(--bevel);
}
.hub:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.hub-art { position: absolute; right: 18px; top: 20px; display: flex; gap: 6px; opacity: 0.55; transition: opacity 0.2s ease; }
.hub-art img { width: 32px; height: 32px; }
.hub:hover .hub-art { opacity: 0.95; }
.hub .tile { margin-bottom: 4px; }
.hub-title { margin: 0; font-size: 1.35rem; letter-spacing: -0.02em; }
.hub-title a { color: var(--heading); text-decoration: none; }
.hub-title a:hover { color: var(--accent-ink); }
.hub-count { margin: -6px 0 0; font-size: 0.9rem; font-weight: 600; color: var(--accent-ink); }
.hub-desc { margin: 0; font-size: 0.92rem; line-height: 1.6; color: var(--muted); }
.hub-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 4px 0 6px; padding: 0; list-style: none; }
.hub-links a {
  display: inline-block; padding: 3px 9px; border-radius: 0; font-size: 0.8rem; font-weight: 500; text-decoration: none;
  color: var(--text-soft); background: var(--surface); border: 2px solid var(--edge); box-shadow: var(--bevel);
}
.hub-links a:hover { color: var(--heading); border-color: var(--accent-line); }
.hub-btn { margin-top: auto; align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.hub-btn .icon { width: 16px; height: 16px; }
.home-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px 32px; margin: 0 0 32px; }
.home-split .mtiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); }
@media (max-width: 1100px) {
  .home-split { grid-template-columns: minmax(0, 1fr); }
}

/* News cards (home page and the News & Updates pages) */
/* Home page sections: generous space between them, so each one reads on its own */
.home-news { margin: 0 0 64px; }
.home-news-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
@media (max-width: 640px) {
  .hubs, .home-news { margin-bottom: 44px; }
  .home-split { row-gap: 44px; }
}
.home-news-head h2 { font-size: 1.35rem; }
.home-news-head a, .feed-link a { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; text-decoration: none; }
.home-news-head a:hover, .feed-link a:hover { text-decoration: underline; }
.home-news-head .icon, .feed-link .icon { width: 15px; height: 15px; }
.ncards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.ncard {
  display: flex; flex-direction: column; height: 100%; overflow: hidden;
  background: var(--block); border: 2px solid var(--edge); border-radius: var(--radius);
  transition: border-color 0.15s ease, transform 0.15s ease; box-shadow: var(--bevel);
}
.ncard:hover { border-color: var(--accent-line); transform: translateY(-2px); }
.ncard-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--surface); border-bottom: 1px solid var(--line); }
.ncard-thumb > img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.ncard:hover .ncard-thumb > img { transform: scale(1.03); }
.ncard-art { display: grid; place-items: center; width: 100%; height: 100%;
  background: radial-gradient(circle at 50% 50%, var(--accent-soft), transparent 70%), repeating-linear-gradient(45deg, transparent 0 14px, color-mix(in srgb, var(--line) 50%, transparent) 14px 15px); }
.ncard-art img { width: 64px; height: 64px; }
.ncard-text { display: flex; flex-direction: column; gap: 8px; flex: 1; padding: 16px 18px 18px; }
.ncard-title { margin: 0; font-size: 1.08rem; line-height: 1.35; letter-spacing: -0.01em; }
.ncard-title a { color: var(--heading); text-decoration: none; }
.ncard-title a:hover { color: var(--accent-ink); }
.ncard-title a::after { content: ''; position: absolute; inset: 0; }
.ncard { position: relative; }
.ncard .tags { position: relative; z-index: 1; margin-top: auto; }
.ncard-lead { margin: 0; font-size: 0.9rem; line-height: 1.55; color: var(--muted); }
.nmeta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; font-size: 0.82rem; color: var(--muted); }
a.tag { text-decoration: none; }
a.tag:hover { color: var(--heading); border-color: var(--accent); }
/* A search box in a page (home of the wiki, search page, 404) */
.guide-search { max-width: 620px; margin: 22px auto 0; }

.finder { display: grid; gap: 12px; margin: 0 0 8px; }
.finder-search { position: relative; }
.finder-search .icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); pointer-events: none; }
.finder-search input {
  width: 100%; padding: 14px 16px 14px 46px; font: 1rem var(--font-body); color: var(--text);
  background: var(--block); border: 2px solid var(--edge); border-radius: 0; box-shadow: inset 0 3px 0 rgba(0, 0, 0, 0.18);
}
.finder-search input::placeholder { color: var(--muted); }
.finder-search input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip-btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 0; cursor: pointer;
  font: 500 0.86rem var(--font-body); color: var(--text-soft); background: var(--block); border: 2px solid var(--edge); box-shadow: var(--bevel);
}
.chip-btn span { color: var(--muted); font-size: 0.78rem; font-variant-numeric: tabular-nums; }
.chip-btn:hover { border-color: var(--line-strong); color: var(--heading); }
.chip-btn[aria-pressed="true"] { color: var(--on-accent); background: var(--accent); border-color: var(--accent); }
.chip-btn[aria-pressed="true"] span { color: var(--on-accent); opacity: 0.75; }
.finder-empty { padding: 26px; text-align: center; color: var(--muted); background: var(--block); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

.cat-section { margin-top: 34px; }
.cat-head { margin-bottom: 14px; }
.cat-head h2 { margin-bottom: 0.15em; font-size: 1.35rem; }
.cat-head p { margin: 0; color: var(--muted); }

/* ---------------------------------------------------------------- tool cards */
.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.tcard {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto 1fr; column-gap: 12px; row-gap: 10px;
  height: 100%; padding: 16px; 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);
}
.tcard:hover { color: var(--text); background: var(--card-hover); border-color: color-mix(in srgb, var(--h) 50%, transparent); transform: translateY(-1px); }
.tcard .tile { grid-row: 1; }
.tcard-head { grid-column: 2; align-self: center; min-width: 0; }
.tcard-title { display: block; font-weight: 700; font-size: 0.98rem; line-height: 1.3; color: var(--heading); }
.tcard-arrow { grid-column: 3; align-self: center; width: 16px; height: 16px; color: var(--muted); transition: transform 0.15s ease, color 0.15s ease; }
.tcard:hover .tcard-arrow { color: var(--h); transform: translateX(3px); }
.tcard-desc { grid-column: 1 / -1; margin: 0; font-size: 0.86rem; line-height: 1.55; color: var(--muted); }
.tcard-desc strong { display: block; margin-bottom: 2px; font-weight: 500; color: var(--text-soft); }
.tcard .tags { grid-column: 1 / -1; align-self: end; }

/* ---------------------------------------------------------------- tool pages */
.tool-hero { display: flex; gap: 18px; align-items: flex-start; margin: 0 0 22px; }
.tool-hero h1 { margin-bottom: 0.2em; }
.tool-hero .lead { margin-bottom: 12px; }
.tool-panel { padding-top: clamp(18px, 2.6vw, 28px); }
.more-section { margin-top: 30px; }
.more-section h2 { font-size: 1.2rem; }

/* ---------------------------------------------------------------- article text under each tool */
.post { padding-left: clamp(18px, 5vw, 60px); padding-right: clamp(18px, 5vw, 60px); }
.post-body { max-width: 760px; font-size: 1rem; line-height: 1.75; color: var(--text-soft); }
.post-body h2 { margin-top: 1.7em; }
.post-body h2:first-child { margin-top: 0; }
.post-body strong { color: var(--heading); }
.post-body ul, .post-body ol { padding-left: 1.3em; margin: 0 0 1em; }
.post-body li { margin-bottom: 0.45em; padding-left: 0.2em; }
.post-body li::marker { color: var(--accent); }
.post-body code { background: var(--surface); border: 1px solid var(--line); border-radius: 0; padding: 1px 5px; color: var(--text); }
.post-body table { width: 100%; border-collapse: separate; border-spacing: 0; margin: 0 0 1em; font-size: 0.92rem; border: 2px solid var(--edge); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--bevel); }
.post-body th, .post-body td { border-bottom: 1px solid var(--line); padding: 8px 12px; text-align: left; vertical-align: top; }
.post-body tr:last-child td { border-bottom: 0; }
.post-body th { background: var(--surface); color: var(--heading); font-weight: 600; }

/* ---------------------------------------------------------------- facts (small labelled chips) */
.facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 18px 0 0; }
.facts li { background: var(--surface); border: 2px solid var(--edge); border-radius: var(--radius-sm); padding: 5px 11px; font-size: 0.9rem; box-shadow: var(--bevel); }
.facts span { color: var(--muted); margin-right: 6px; font-size: 0.74rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }

/* ---------------------------------------------------------------- inventory GUI (crafting grids, loom/anvil steps): the game's own look */
.recipes { display: flex; flex-wrap: wrap; gap: 26px; align-items: flex-start; }
.recipe-card { margin: 0; }
.recipe-card figcaption { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font-weight: 700; font-size: 1rem; color: var(--heading); }
.gui {
  --s: 58px;
  display: inline-flex; align-items: center; gap: 22px; padding: 20px 24px;
  background: var(--gui); border: 3px solid #000; border-radius: 4px;
  box-shadow: inset 4px 4px 0 var(--gui-hi), inset -4px -4px 0 var(--gui-lo);
}
.grid3 { display: grid; grid-template-columns: repeat(3, var(--s)); }
.slot {
  position: relative; display: grid; place-items: center; width: var(--s); height: var(--s);
  background: var(--slot); box-shadow: inset 3px 3px 0 var(--slot-lo), inset -3px -3px 0 var(--slot-hi); text-decoration: none;
}
.slot img { width: calc(var(--s) - 22px); height: calc(var(--s) - 22px); display: block; filter: drop-shadow(2px 2px 0 rgba(0, 0, 0, 0.25)); }
a.slot:hover, .slot[tabindex]:hover { background: #a6a6a6; }
.slot-out { --s: 76px; }
.count { position: absolute; right: 5px; bottom: 1px; font: 400 1.9rem/1 var(--font-pixel); color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.arrow { width: 46px; height: 32px; flex: none; background: var(--slot); clip-path: polygon(0 34%, 56% 34%, 56% 0, 100% 50%, 56% 100%, 56% 66%, 0 66%); }
.plus { font: 700 2rem var(--font-pixel); color: var(--gui-text); }
.furnace { display: grid; justify-items: center; gap: 6px; }
.mc-tooltip {
  position: fixed; z-index: 1000; pointer-events: none; max-width: 260px; padding: 6px 9px 7px;
  background: var(--tooltip-bg); border: 2px solid #100010; border-radius: 3px; box-shadow: inset 0 0 0 2px var(--tooltip-border);
  font: 400 1.3rem/1.1 var(--font-pixel); color: #fff; text-shadow: 2px 2px 0 #3f3f3f;
}

/* ---------------------------------------------------------------- ads (Google AdSense: ad() in _src/build.js, js/ads.js) */
.ad { margin: 32px 0; text-align: center; }
.ad-label { display: block; margin-bottom: 6px; font-size: 0.68rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ad ins.adsbygoogle { min-height: 100px; } /* room kept for the ad, so the page doesn't jump when it loads */
.ad:has(ins.adsbygoogle[data-ad-status="unfilled"]) { display: none; } /* AdSense had no ad: no gap left behind */
.home-news + .ad, .ad + .home-news { margin-top: 0; }
@media print { .ad { display: none; } }

/* ---------------------------------------------------------------- footer */
.site-footer { margin-top: 20px; border-top: 1px solid var(--line); padding: 48px 0 30px; font-size: 0.9rem; color: var(--muted); background: var(--block); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 28px 32px; }
.foot-brand p { max-width: 34ch; }
.foot-brand .logo { margin-bottom: 14px; }
.foot-brand .logo { font-size: 1.4rem; }
.foot-brand .logo-mark { width: 34px; height: 34px; }
.foot-col h2 { margin: 0 0 12px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-ink); }
.foot-col h2 + ul { margin-bottom: 20px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; }
.foot-col li { margin-bottom: 7px; line-height: 1.35; }
.foot-col a { color: var(--text-soft); text-decoration: none; }
.foot-col a:hover { color: var(--heading); text-decoration: underline; }
.foot-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 10px; margin: 28px 0 0; }
.foot-links a { color: var(--text-soft); text-decoration: none; }
.foot-links a:hover { color: var(--heading); text-decoration: underline; }
.foot-links + .disclaimer { margin-top: 14px; }
.disclaimer { margin: 32px 0 0; padding-top: 20px; border-top: 1px solid var(--line); font-size: 0.8rem; text-align: center; }

/* ---------------------------------------------------------------- responsive */
@media (max-width: 900px) {
  .featured { grid-template-columns: minmax(0, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
  .wrap { padding-left: 16px; padding-right: 16px; }
  main { padding-top: 18px; }
  .tool-hero { gap: 14px; }
  .tool-hero .tile-lg { width: 46px; height: 46px; }
  .fcard { padding: 18px; }
  .fcard-art, .gcard-art { display: none; }
  .fcard-head, .gcard .fcard-head { padding-right: 0; }
  .gui { --s: 46px; gap: 12px; padding: 14px 14px; }
  .slot-out { --s: 60px; }
  .arrow { width: 32px; height: 24px; }
  .count { font-size: 1.5rem; }
}
@media (max-width: 420px) {
  .gui { --s: 40px; gap: 8px; padding: 12px 10px; }
  .slot-out { --s: 52px; }
}

/* ---------------------------------------------------------------- blocky look
   Square, bevelled blocks with a solid ledge underneath, heavy rounded type and green label tabs on section
   headings: the feel of the game's own menus. The colours and the bevel/ledge values are the variables at the top. */
body { font-weight: 500; }
h1, h2, h3, h4 { letter-spacing: 0; }
h1 { font-weight: 900; text-shadow: 0 3px 0 rgba(0, 0, 0, 0.45); }
h2 { font-weight: 900; }
h3 { font-weight: 800; }
[data-theme="light"] h1 { text-shadow: 0 2px 0 rgba(255, 255, 255, 0.75); }
.home-hero h1, .tool-hero h1, .guide-hero h1, .wiki-head h1 { letter-spacing: -0.01em; }
.logo { font-weight: 900; letter-spacing: -0.02em; }
.lead { font-weight: 500; }

/* raised things: a ledge underneath; lift a little on hover, sink in when pressed */
html .btn, html .chip-btn, html .fcard, html .hub, html .ncard, html .tcard, html .witem, html .gcard-sm, html .mtile, html .game-card, html .letters a, html .hub-links a, html .choice, html .srv-row {
  box-shadow: var(--bevel), var(--lift);
  transition: transform 0.1s ease, box-shadow 0.1s ease, background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
html .btn:hover, html .chip-btn:hover, html .fcard:hover, html .hub:hover, html .ncard:hover, html .tcard:hover, html .witem:hover, html .gcard-sm:hover, html .mtile:hover, html .game-card:hover, html .letters a:hover, html .hub-links a:hover, html .choice:hover, html .srv-row:hover {
  transform: translateY(-2px); box-shadow: var(--bevel), 0 6px 0 var(--edge);
}
html .btn:active, html .chip-btn:active, html .fcard:active, html .hub:active, html .ncard:active, html .tcard:active, html .witem:active, html .gcard-sm:active, html .mtile:active, html .game-card:active, html .letters a:active, html .hub-links a:active, html .choice:active, html .srv-row:active {
  transform: translateY(3px); box-shadow: var(--press), 0 1px 0 var(--edge);
}
html .btn:disabled, html .btn:disabled:hover, html .btn:disabled:active { transform: none; box-shadow: var(--bevel), var(--lift); }
html .btn { font-weight: 800; letter-spacing: 0.01em; }
html .btn:focus-visible, html .chip-btn:focus-visible, html .choice:focus-visible { box-shadow: var(--ring), var(--lift); }
html .btn-primary { text-shadow: none; box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 2px 0 0 rgba(255, 255, 255, 0.2), inset -2px 0 0 rgba(0, 0, 0, 0.18), var(--lift); }
html .btn-primary:hover { box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 2px 0 0 rgba(255, 255, 255, 0.2), inset -2px 0 0 rgba(0, 0, 0, 0.18), 0 6px 0 var(--edge); }
/* chosen options look pressed in */
html .chip-btn[aria-pressed="true"], html .choice[aria-pressed="true"] { transform: translateY(3px); box-shadow: var(--press), 0 1px 0 var(--edge); }
html .chip-btn { font-weight: 800; }
@media (prefers-reduced-motion: reduce) {
html .btn, html .chip-btn, html .fcard, html .hub, html .ncard, html .tcard, html .witem, html .gcard-sm, html .mtile, html .game-card, html .letters a, html .hub-links a, html .choice, html .srv-row { transition: none; }
}

/* icon tiles and tags: square, with a coloured edge */
.tile { border-width: 2px; box-shadow: var(--bevel); }
.tag, .badge { font-weight: 700; }

/* inputs: sunk into the page */
.hsearch input, .finder-search input, .guide-filter input { background: var(--input); font-weight: 600; }
.hsearch input:focus, .finder-search input:focus, .guide-filter input:focus { box-shadow: var(--ring); }

/* sidebar: like a menu bar, with the current page as a pressed green button */
.sidebar { border-right: 2px solid var(--edge); }
.side-foot { border-top: 2px solid var(--edge); }
.side-home, .side-sec-link, .side-sub a, .side-theme, .side-link { font-weight: 700; }
.side-home:hover, .side-sec-head:hover, .side-sub a:hover, .side-theme:hover, .side-link:hover { background: var(--card); box-shadow: var(--bevel); }
.side-sec-link:hover { background: none; }
.side-home[aria-current], .side-link[aria-current], .side-sub a[aria-current], .side-sec-head:has([aria-current]) {
  color: var(--on-accent); background: var(--accent); box-shadow: var(--press);
}
.side-sec-head:has([aria-current]) .side-sec-link, .side-sec-head:has([aria-current]) .side-count, .side-sec-head:has([aria-current]) .side-toggle,
.side-sub a[aria-current] .side-count, .side-sec-head:has([aria-current]) .side-arrow { color: var(--on-accent); }
.side-sub { border-left: 2px solid var(--line); }
.side-toggle:hover { background: var(--card-hover); }
@media (max-width: 1000px) { .mobile-bar { border-bottom: 2px solid var(--edge); } }

/* section headings: a green label tab sitting on a green rule */
.cat-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 4px 14px; margin-bottom: 18px; border-bottom: 3px solid var(--accent); }
.wrap .cat-head h2 {
  display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 7px 14px 5px;
  font-size: 0.95rem; font-weight: 900; line-height: 1.25; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--on-accent); background: var(--accent);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35), inset 2px 0 0 rgba(255, 255, 255, 0.18);
}
.wrap .cat-head h2 img { width: 22px; height: 22px; }
.wrap .cat-head h2 .side-count { color: var(--on-accent); opacity: 0.75; }
.cat-head p { flex: 1 1 260px; margin: 0; padding-bottom: 5px; font-size: 0.92rem; color: var(--muted); }
.home-news-head { align-items: flex-end; }
.home-news-head a { padding-bottom: 5px; }
