/* Modstoke site. Colours follow Modstoke Manager; type is Roboto, the game's own UI face. */

@font-face { font-family: Roboto; src: url(/fonts/roboto-400.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: Roboto; src: url(/fonts/roboto-500.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: Roboto; src: url(/fonts/roboto-700.woff2) format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: Roboto; src: url(/fonts/roboto-900.woff2) format("woff2"); font-weight: 900; font-style: normal; font-display: swap; }

:root {
  --bg: #101217;
  --panel: #171a21;
  --panel-alt: #1d2129;
  --header: #0d0f13;
  --deep: #0a0b0e;
  --line: #2b3039;
  --line-strong: #3b414c;
  --text: #eef0f4;
  --muted: #9da6b6;
  --accent: #eeb66b;
  --accent-hover: #f5c98a;
  --on-accent: #17130c;
  --mono: Consolas, "Cascadia Mono", ui-monospace, "Liberation Mono", monospace;
  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 40px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 Roboto, "Segoe UI", Arial, sans-serif; -webkit-font-smoothing: antialiased; }
h1, h2, h3, p, figure, dl, dd, ol, ul { margin: 0; }
h1 { font-size: clamp(34px, 5.2vw, 56px); line-height: 1.05; font-weight: 900; letter-spacing: -0.02em; }
h2 { font-size: clamp(22px, 2.4vw, 28px); line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 18px; line-height: 1.3; font-weight: 700; }
p { color: var(--muted); }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
code { font-family: var(--mono); font-size: 0.9em; background: var(--deep); border: 1px solid var(--line); padding: 1px 5px; border-radius: 2px; overflow-wrap: anywhere; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.mono { font-family: var(--mono); font-size: 0.92em; letter-spacing: 0; }
.eyebrow { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 18px; line-height: 1.55; color: #c3c9d3; max-width: 62ch; }
.lede a, .prose a, .docs-body a, .list-note a, .setup p a, .together p a, .tool-text p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 20; background: var(--accent); color: var(--on-accent); padding: 10px 14px; }
.skip:focus { top: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Buttons and links */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 2px; background: var(--accent); color: var(--on-accent); font-size: 15px; font-weight: 500; white-space: nowrap; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button-quiet, .button-outline { background: transparent; color: var(--text); border-color: var(--line-strong); }
.button-quiet:hover, .button-outline:hover { background: transparent; border-color: var(--accent); color: var(--accent); }
.button-light { background: var(--accent); color: var(--on-accent); }
.button-block { width: 100%; }
.text-link, .inline-link { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--accent); text-decoration: underline; text-underline-offset: 4px; }
.text-link:hover, .inline-link:hover { color: var(--accent-hover); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }

/* Release strip and header */
.release-strip { background: var(--deep); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.release-strip .wrap { display: flex; align-items: center; gap: 10px; min-height: 34px; white-space: nowrap; overflow: hidden; }
.release-strip a:hover { color: var(--text); }
.release-strip .mono { color: var(--text); }
.strip-label { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: #6f7888; margin-right: 4px; }
.strip-sep { color: #4a515d; }
.strip-discord { margin-left: auto; }
.strip-discord.strip-tight { margin-left: 18px; }

.site-header { background: var(--header); border-bottom: 1px solid var(--line); position: relative; z-index: 10; }
.site-header .wrap { display: flex; align-items: center; gap: 32px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 900; letter-spacing: 0.04em; }
.brand svg { width: 28px; height: 21px; color: var(--accent); }
.desktop-nav { display: flex; gap: 26px; }
.desktop-nav a, .menu nav a { display: flex; align-items: center; min-height: 63px; font-size: 15px; color: #c9cfd8; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.desktop-nav a:hover, .menu nav a:hover { color: var(--text); }
.desktop-nav a[aria-current], .menu nav a[aria-current] { color: var(--accent); border-bottom-color: var(--accent); }
.header-download { margin-left: auto; min-height: 38px; font-size: 14px; }
.menu { display: none; }

/* Home */
.hero { position: relative; min-height: clamp(460px, 64vh, 660px); display: flex; align-items: flex-end; background: var(--deep); overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-image img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 35%; }
/* A plain dark scrim so the text stays readable over the photo. */
.hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(10, 11, 14, 0.94) 0%, rgba(10, 11, 14, 0.62) 42%, rgba(10, 11, 14, 0.08) 78%), linear-gradient(90deg, rgba(10, 11, 14, 0.72) 0%, rgba(10, 11, 14, 0.35) 45%, rgba(10, 11, 14, 0) 70%); }
.hero-text { position: relative; z-index: 1; width: 100%; padding-top: 120px; padding-bottom: 48px; }
.hero-text h1 { max-width: 15ch; margin: 10px 0 16px; }
.hero-text .actions { margin-top: 26px; }
.hero-file { margin-top: 12px; font-size: 13px; color: #aeb6c3; }
.hero.no-image { min-height: 0; }
.hero.no-image::after { display: none; }

.block { padding-top: 64px; }
.block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.mod-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mod-card { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); }
.mod-card:hover { border-color: var(--accent); }
.mod-card img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border-bottom: 1px solid var(--line); }
.mod-card-body { display: flex; flex-direction: column; gap: 8px; padding: 16px; font-size: 14px; line-height: 1.5; color: var(--muted); }
.mod-card-title { font-size: 18px; font-weight: 700; color: var(--text); }
.mod-card-title .mono, .mod-row h2 .version { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: 4px; }

.setup { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 48px; align-items: start; }
.setup h2 { margin-bottom: 20px; }
.setup p + p, .support p + p { margin-top: 12px; }
.steps { list-style: none; padding: 0; counter-reset: step; display: grid; gap: 18px; margin-bottom: 20px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 40px 1fr; gap: 4px 12px; color: var(--muted); }
.steps li::before { content: counter(step, decimal-leading-zero); grid-row: span 2; font-family: var(--mono); color: var(--accent); font-size: 15px; padding-top: 2px; }
.steps strong { color: var(--text); font-weight: 700; }
.setup-shot img { border: 1px solid var(--line-strong); }
.setup-shot figcaption, .shot figcaption { margin-top: 8px; font-size: 13px; color: var(--muted); }

.ledger { list-style: none; padding: 0; border-top: 1px solid var(--line); }
.ledger li { display: grid; grid-template-columns: 130px minmax(180px, 260px) 1fr; gap: 16px; align-items: baseline; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.ledger time { color: var(--muted); font-size: 14px; }
.ledger a { font-weight: 500; }
.ledger a:hover { color: var(--accent); }
.ledger a .mono { color: var(--muted); font-weight: 400; margin-left: 4px; }
.ledger li > span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.together { display: flex; justify-content: space-between; align-items: center; gap: 24px 48px; padding-bottom: 8px; }
.together > div:first-child { max-width: 64ch; }
.together h2 { margin-bottom: 10px; }

/* Page heads */
.page-head { padding-top: 48px; padding-bottom: 32px; }
.page-head h1 { margin: 10px 0 16px; }
.not-found { min-height: 50vh; }
.not-found .actions { margin-top: 24px; }

/* Mod list */
.list-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 16px; margin-bottom: 16px; background: var(--panel); border: 1px solid var(--line); }
.list-tools[hidden] { display: none; }
.list-tools .search { flex: 1 1 260px; }
input[type="search"], select { width: 100%; min-height: 42px; padding: 8px 12px; background: var(--deep); color: var(--text); border: 1px solid var(--line-strong); border-radius: 2px; font: inherit; font-size: 15px; }
select { width: auto; }
#search-status { font-size: 14px; margin-left: auto; }
.mod-rows { display: grid; gap: 12px; }
.mod-row { display: grid; grid-template-columns: 300px minmax(0, 1fr) auto; gap: 24px; padding: 16px; background: var(--panel); border: 1px solid var(--line); }
.mod-row[hidden] { display: none; }
.mod-row-image img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border: 1px solid var(--line); }
.mod-row h2 { font-size: 22px; margin-bottom: 8px; }
.mod-row h2 a:hover { color: var(--accent); }
.mod-row p { font-size: 15px; max-width: 70ch; }
.mod-facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 14px; font-size: 14px; }
.mod-facts dt, .mod-details dt { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: #737c8c; }
.mod-row-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.list-note { margin-top: 20px; font-size: 15px; }

/* Mod page */
.crumbs { display: flex; gap: 10px; padding-top: 24px; font-size: 14px; color: var(--muted); }
.crumbs a { color: var(--accent); }
.mod-head { padding: 20px 0 28px; }
.mod-head h1 { margin-bottom: 14px; }
.mod-head-meta { margin: 14px 0 18px; font-size: 14px; }
.mod-head-meta .mono { color: var(--text); }
.mod-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 40px; align-items: start; }
.mod-cover img { width: 100%; border: 1px solid var(--line-strong); }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 12px; }
.shot a { position: relative; display: block; }
.shot img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; border: 1px solid var(--line); }
.shot a:hover img { border-color: var(--accent); }
.play { position: absolute; left: 12px; bottom: 12px; width: 44px; height: 44px; background: rgba(10, 11, 14, 0.82); border: 1px solid var(--accent); border-radius: 2px; }
.play::after { content: ""; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 13px; border-color: transparent transparent transparent var(--accent); }
.shot.wide + .shot.wide { margin-top: 20px; }
.prose { margin-top: 40px; max-width: 72ch; }
.prose h2 { margin-bottom: 14px; }
.prose p, .prose li { color: #c3c9d3; }
.prose p + p, .prose p + ul, .prose ul + p, .prose ol + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose li::marker { color: var(--accent); }
.testing { margin-top: 40px; max-width: 72ch; padding: 18px 20px; background: var(--panel); border: 1px solid var(--line-strong); }
.testing h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.testing p { color: #c3c9d3; }
.mod-details { position: sticky; top: 16px; padding: 20px; background: var(--panel); border: 1px solid var(--line); }
.mod-details h2 { font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.mod-details dl { margin-bottom: 18px; }
.mod-details dl > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.mod-details dt { padding-top: 3px; }
.mod-details dd a { color: var(--accent); }
.aside-note { margin-top: 12px; font-size: 13px; }

/* Tools */
.tool { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; padding-top: 40px; padding-bottom: 40px; border-top: 1px solid var(--line); }
.tool h2 { margin-bottom: 14px; }
.tool-text p + p { margin-top: 12px; }
.file-line { margin: 18px 0 12px; font-size: 14px; }
.file-line .mono { color: var(--text); }

/* Docs */
.docs { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 48px; align-items: start; padding-bottom: 16px; }
.docs-nav { position: sticky; top: 16px; display: flex; flex-direction: column; border-left: 1px solid var(--line); }
.docs-nav a { padding: 7px 0 7px 14px; font-size: 14px; color: var(--muted); }
.docs-nav a:hover { color: var(--text); }
.docs-body { max-width: 74ch; }
.docs-body > section { padding: 0 0 36px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.docs-body > section:last-child { border-bottom: 0; }
.docs-body h2 { margin-bottom: 14px; }
.docs-body p { color: #c3c9d3; }
.docs-body p + p { margin-top: 12px; }
.docs-body .eyebrow { margin-bottom: 8px; }
.compat-row { display: flex; justify-content: space-between; padding: 12px 0; margin-bottom: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.compat-row span { color: var(--accent); }
.checklist { padding-left: 22px; display: grid; gap: 14px; margin-top: 14px; color: #c3c9d3; }
.checklist strong { color: var(--text); }
.checklist li::marker { color: var(--accent); font-family: var(--mono); }

/* Pages from release-view, guides-view and servers-view */
.page-hero { padding-top: 48px; padding-bottom: 24px; }
.page-hero h1 { margin: 10px 0 14px; }
.page-hero .eyebrow { margin-bottom: 0; }
.page-lede { font-size: 18px; color: #c3c9d3; max-width: 62ch; }
.compact { padding-bottom: 24px; }
.releases-body { display: grid; gap: 28px; padding-bottom: 16px; }
.release-download-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 16px; }
.release-download-card { min-width: 0; padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.release-download-card .eyebrow { margin-bottom: 10px; }
.release-download-card h2 { margin-bottom: 10px; }
.release-download-card > p { margin: 10px 0 16px; }
.release-download-card .button { max-width: 100%; margin: 4px 0 18px; padding-block: 10px; white-space: normal; overflow-wrap: anywhere; text-align: center; }
.release-file-details { display: grid; gap: 8px; font-size: 14px; }
.release-file-details div { display: grid; grid-template-columns: 80px minmax(0, 1fr); gap: 12px; }
.release-file-details dt { color: var(--muted); }
.release-file-details dd { overflow-wrap: anywhere; }
.release-download-card code, .release-record code { font-size: 13px; }
.release-warning { padding: 14px 16px; background: var(--panel-alt); border: 1px solid #5c4a2e; color: #e6d3b4; font-size: 15px; }
.release-history > h2 { margin-bottom: 8px; }
.release-history > p { margin-bottom: 16px; }
.release-record { border-top: 1px solid var(--line); padding: 20px 0; }
.release-record h3 { margin: 6px 0 8px; font-family: var(--mono); font-weight: 400; }
.release-record p { margin: 8px 0; overflow-wrap: anywhere; }
.release-record p a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.release-changelog { white-space: pre-line; color: #c3c9d3; }
.release-signing, .release-validation { font-size: 14px; }
.release-note { display: grid; gap: 8px; }
.light-section { color: var(--text); }

/* Hosting */
.status-line { display: inline-block; margin-top: 18px; padding: 6px 12px; font-size: 14px; color: var(--text); border: 1px solid var(--line-strong); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 880px; margin-bottom: 16px; }
.plan { padding: 22px 24px; background: var(--panel); border: 1px solid var(--line); }
.plan h3 { font-size: 22px; margin-bottom: 4px; }
.plan-price { margin-bottom: 14px; font-size: 14px; }
.plan-price .mono { font-size: 26px; color: var(--text); margin-right: 4px; }
.plan dl > div, .roles > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.plan dt, .roles dt { color: var(--muted); }
.faq h3 { margin-top: 22px; font-size: 18px; }
.faq h3:first-of-type { margin-top: 14px; }

/* Support */
.support { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: start; }
.support h2, .support .donate-panel h2 { margin-bottom: 16px; }
.donate-panel { padding: 24px; background: var(--panel); border: 1px solid var(--line); }
.donate { display: grid; gap: 14px; }
.donate[hidden], .donate-closed[hidden] { display: none; }
.segmented { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; border: 0; }
.segmented label { position: relative; }
.segmented input[type="radio"] { position: absolute; opacity: 0; }
.segmented label span { display: inline-flex; align-items: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 15px; cursor: pointer; }
.segmented input:checked + span { border-color: var(--accent); color: var(--accent); }
.segmented input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.segmented .other input { width: 120px; min-height: 42px; padding: 8px 12px; background: var(--deep); color: var(--text); border: 1px solid var(--line-strong); border-radius: 2px; font: inherit; font-size: 15px; }
.paypal-buttons { min-height: 48px; max-width: 420px; }
.donate-status { min-height: 1.6em; color: var(--text); }
.roles { margin: 12px 0 16px; }
.roles dd a { color: var(--accent); }

/* Footer */
.site-footer { margin-top: 80px; background: var(--deep); border-top: 1px solid var(--line); padding: 40px 0 48px; }
.site-footer .wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 2fr); gap: 40px; }
.footer-brand p { margin-top: 14px; font-size: 14px; max-width: 42ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-links h2 { font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase; color: #737c8c; margin-bottom: 10px; }
.footer-links a { display: block; padding: 4px 0; font-size: 14px; color: #c3c9d3; }
.footer-links a:hover { color: var(--accent); }

/* The language menu, at the end of the header */
.lang-menu { position: relative; margin-left: 4px; }
.header-download + .lang-menu { margin-left: 0; }
.desktop-nav + .lang-menu { margin-left: auto; }
.lang-menu summary { list-style: none; display: flex; align-items: center; gap: 7px; min-height: 38px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 14px; color: #c9cfd8; cursor: pointer; white-space: nowrap; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary svg { width: 16px; height: 16px; flex: none; }
.lang-menu summary:hover, .lang-menu[open] summary { border-color: var(--accent); color: var(--text); }
.lang-menu nav { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; display: grid; grid-template-columns: repeat(2, minmax(150px, 1fr)); gap: 2px; width: max-content; max-width: min(92vw, 380px); padding: 12px; background: var(--header); border: 1px solid var(--line-strong); border-radius: 4px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45); }
.lang-menu nav p { grid-column: 1 / -1; margin: 0 4px 8px; font-size: 13px; color: var(--muted); }
.lang-menu nav a { padding: 8px 10px; border-radius: 2px; font-size: 14px; color: #c9cfd8; }
.lang-menu nav a:hover { background: rgba(255, 255, 255, 0.06); color: var(--text); }
.lang-menu nav a[aria-current] { color: var(--accent); }
.footer-translated { font-size: 13px; color: var(--muted); }

@media (max-width: 1100px) {
  .mod-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-row { grid-template-columns: 220px minmax(0, 1fr); }
  .mod-row-actions { grid-column: 2; flex-direction: row; align-items: center; gap: 16px; }
  .desktop-nav { gap: 20px; }
}

@media (max-width: 900px) {
  .setup, .tool, .support { grid-template-columns: 1fr; gap: 28px; }
  .plans { grid-template-columns: 1fr; }
  .mod-layout { grid-template-columns: 1fr; }
  .mod-details { position: static; }
  .docs { grid-template-columns: 1fr; gap: 24px; }
  .docs-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0 18px; border-left: 0; }
  .docs-nav a { padding: 6px 0; }
  .ledger li { grid-template-columns: 110px 1fr; }
  .ledger li > span { grid-column: 2; white-space: normal; }
  .site-footer .wrap { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  body { font-size: 15px; }
  .lede, .page-lede { font-size: 16px; }
  .strip-label, .strip-discord { display: none; }
  .site-header .wrap { min-height: 56px; gap: 12px; }
  .desktop-nav, .header-download { display: none; }
  .menu { display: block; margin-left: auto; }
  .lang-menu summary span { display: none; }
  .lang-menu summary { padding: 0 10px; min-height: 40px; }
  .menu summary { list-style: none; display: flex; align-items: center; min-height: 40px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 2px; font-size: 14px; cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu[open] summary { border-color: var(--accent); color: var(--accent); }
  .menu nav { position: absolute; left: 0; right: 0; top: 100%; display: flex; flex-direction: column; padding: 4px var(--gutter) 12px; background: var(--header); border-bottom: 1px solid var(--line); }
  .menu nav a { min-height: 46px; border-bottom: 1px solid var(--line); margin: 0; }
  .menu nav a[aria-current] { border-bottom-color: var(--line); }
  .hero { min-height: 520px; }
  .hero-text { padding-bottom: 32px; }
  .mod-cards { grid-template-columns: 1fr; }
  .mod-row { grid-template-columns: 1fr; gap: 14px; }
  .mod-row-actions { grid-column: 1; justify-content: flex-start; }
  .block { padding-top: 48px; }
  .ledger li { grid-template-columns: 1fr; gap: 2px; }
  .ledger li > span { grid-column: 1; }
  .together { flex-direction: column; align-items: flex-start; }
  .footer-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mod-details dl > div { grid-template-columns: 110px 1fr; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
