/* Explicit matching for the already width-pinned Noto files. */
@font-face {
  font-family: 'RACCU Noto Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url("../fonts/NotoSansWidth9375-0.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;
}
@font-face {
  font-family: 'RACCU Noto Sans';
  font-style: italic;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url("../fonts/NotoSansWidth9375-1.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: 'RACCU Noto Sans';
  font-style: italic;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url("../fonts/NotoSansWidth9375-0.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;
}
@font-face {
  font-family: 'RACCU Noto Sans';
  font-style: italic;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url("../fonts/NotoSansWidth9375-1.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: 'RACCU Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url("../fonts/NotoSansWidth9375-2.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;
}
@font-face {
  font-family: 'RACCU Noto Sans';
  font-style: normal;
  font-weight: 400;
  font-stretch: normal;
  font-display: swap;
  src: url("../fonts/NotoSansWidth9375-3.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: 'RACCU Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url("../fonts/NotoSansWidth9375-2.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;
}
@font-face {
  font-family: 'RACCU Noto Sans';
  font-style: normal;
  font-weight: 600;
  font-stretch: normal;
  font-display: swap;
  src: url("../fonts/NotoSansWidth9375-3.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;
}
/* Independent experiment. No changes to the original prototype. */
:root {
  --p2-text: #454b50;
  --p2-heading: #202a32;
  --p2-muted: #62696e;
  --p2-line: #e3e5e5;
  --p2-surface: #f4f5f4;
  --muted: var(--p2-text);
  --ink: var(--p2-heading);
  --line: var(--p2-line);
  --reading: 400 15px/24px var(--font-reading);
  --supporting: 400 14px/22px var(--font-reading);
  --entry-title: 600 16px/23px var(--font-title);
  --section-gap: 36px;
  --rubric: 600 15px/22px var(--font-navigation);
}
body { color: var(--p2-text); background: #fff; }
body, .summary, .article > p, .about-content p, .planned-entry p,
.story-copy time, .documentation-source { font-stretch: normal; }
.shell, main.shell, .header-inner, .site-footer.shell {
  width: calc(100% - 40px); max-width: 700px; margin-inline: auto;
}
.site-header { border: 0; background: #fff; }
.header-inner { min-height: 100px; gap: 12px; }
.brand { top: 9px; width: min(68vw, 318px, calc(100% - 88px)); }
.language { top: 0; align-self: flex-start; margin-top: 16px; }
main.shell { padding-top: 24px; }
body.section-landing main > .intro {
  display: block; min-height: 0; height: 0; padding: 0; margin: 0;
}
.article, .section-news .article, .article.reference-page,
.article.mh3u-release, .article.tool-document, .error-document {
  padding-top: 0; font: var(--reading); max-inline-size: none;
}
.article :is(h1,.release-title), .article.mh3u-release .release-title,
.article.reference-page h1.page-title { color: var(--p2-heading); margin-top: 0; }
.section-landing .intro + :is(.feed,.project-feature,.about-content) {
  margin-top: 0; padding-top: 0;
}
.about-content > p:first-child { margin-top: 0; }
/* Start height (decided 2026-11-16): one text line after the divider on every page, 24 px on
   phones and 26 px from 700 px – as close to the 24 px between subline and divider. The intro
   sentence (News, Projects, About) is italic in the rubric grey, with the same line after it. */
:root { --masthead-after: 24px; }
@media (min-width: 700px) { :root { --masthead-after: 26px; } }
.section-landing .intro + .about-content > p:first-child { color: var(--p2-muted, #62696e); }
[data-news-intro] + :is(.feed,.news-filter), [data-page-intro] + .project-feature,
.section-landing .intro + .about-content:not([data-news-intro], [data-page-intro]) > p:first-child + * { margin-top: var(--masthead-after); }
/* The filter row belongs to the feed it filters: closer to it than to the intro. */
.news-filter + .feed { margin-top: 16px; }
.feed { padding: 0; }
/* Page row: only the rule above it (the last news item's rule); no rule below, so it does not compete with the footer line. */
.section-news .pagination { border-bottom: 0; }
.journal-month > h2, .catalogue-heading,
.about-content h2, .release-section-heading, .reference-page h2,
.reference-page h3 { color: var(--p2-muted); }
.journal-month > h2, .catalogue-heading {
  min-height: 36px; padding-block: 0 12px; border-bottom: 1px solid var(--line);
}
.journal-month > h2::before, .project-line-heading::before,
.catalogue-icon-heading::before, .about-content h2::before,
.legal-notice-heading::before, .credits-source-title::before,
.release-section-heading::before,
.credits-source-kicker::before, .release-wip-section > .release-kicker::before { filter: grayscale(1); }
/* Rubric icons sit on the text centre like every other rubric (the old 1 px drop from site.css is gone). */
.reference-page .credits-source-kicker::before { position: static; top: auto; }
.journal-month + .journal-month { margin-top: 36px; }
.story { padding: 20px 0; row-gap: 16px; }
.story-copy { gap: 6px 12px; }
.story h3, .section-news .story h3, .recent-title,
.section-projects .tool-entry .story-copy h3 {
  color: var(--blue); font: 600 17px/24px var(--font-title);
}
.summary, .planned-entry p, .article > p { color: var(--p2-text); font: var(--reading); }
.about-content p, .section-projects .tool-entry .summary,
.section-projects .planned-entry > p:not(.planned-native),
.article.mh3u-release :is(.release-step-body,.release-step-intro,.release-wip-card,.release-project-credits),
.article.mh3u-release .project-credit p,
.article.mh3u-release .version-history-body :is(p:not(.version-history-label),ul,ol,li) {
  font: var(--reading);
}
.story-copy time, .article-meta time, .tool-platform { color: var(--p2-muted); }
.category, .article-meta .category, .release-item-status,
.story .category {
  background: #f0f2f1; border-radius: 4px; padding: 3px 7px;
  color: #62696e; font: 400 12px/16px var(--font-reading);
  text-transform: none; letter-spacing: 0;
}
/* Category tag beside the date: 18 px box (2/0), centred on the 22 px date line. The text keeps
   the date's baseline; the flat box reaches only just above the digits like the icon and the
   chevron. A 22 px box stuck out 6 px above the row and looked top-aligned (2026-11-23). */
.category, .article-meta .category, .story .category, .story-copy .category { padding-top: 2px; padding-bottom: 0; align-self: center; }
.news-meta-end { align-items: center; align-self: center; }
/* News filter: the feed's category chips as links to the static archives (/news/<category>/).
   One quiet row that wraps when more categories get a filter; the current view is filled dark.
   In articles the category chip links to its archive in the same way. */
.news-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.news-filter .category { padding: 5px 10px 3px; } /* 24 px touch height, text 1 px lower as above */
a.category { text-decoration: none; }
a.category[aria-current] { background: var(--p2-heading); color: #fff; }
@media (hover: hover) { a.category:not([aria-current]):hover { color: var(--p2-heading); background: #e3e5e5; } }
a.category:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.comparison, .story-field-image { margin-top: 16px; }
.release-highlights, .story-notice {
  margin-top: 14px; border-radius: 6px; background: var(--p2-surface);
}
.story > :is(.comparison,.story-field-image,.release-highlights,.story-notice,.story-status) {
  margin-block: 0;
}
.story-notice strong { color: var(--p2-heading); font: 600 14px/22px var(--font-reading); }
.story-status :is(dt,dd), .legal-document .legal-translation-note h2,
.legal-document .terms-label, .credits-context-quote .project-context-title,
.credits-source-user, .credits-source-user .credit-cell-value,
.mh3u-release .release-clean-note strong,
.mh3u-release .release-variant-pending .release-variant-title {
  color: var(--p2-muted) !important;
}
.story-status dd { margin-top: 2px; }
/* Key facts sit in the same quiet box as highlights and short notes (decided 2026-11-12),
   so the pairs do not float loose under the text. */
.story-status { padding: 9px 12px; border-radius: 6px; background: var(--p2-surface); }
.catalogue-section { margin-top: 36px; }
.catalogue-heading { margin-bottom: 18px; }
:is(a.project-visual, .story .project-visual) { display: grid; grid-template-columns: minmax(0,1fr); overflow: hidden; }
:is(a.project-visual, .story .project-visual) > img { aspect-ratio: 2 / 1; height: auto; border-radius: 8px; }
.project-caption {
  position: static; align-self: end; width: auto; padding: 36px 36px 12px 12px;
  background: linear-gradient(0deg, rgb(20 37 56 / 92%) 0%, rgb(20 37 56 / 60%) 55%, transparent 100%);
  color: #fff; text-align: left;
}
.project-caption .project-label { color: #fff; margin-bottom: 3px; font: 400 12px/16px var(--font-navigation); }
.project-caption p, .project-caption h3 { font: 600 17px/24px var(--font-navigation); }
.project-caption .project-native { color: #fff; margin-top: 0; font-size: 14px; line-height: 22px; }
a.project-visual::after { color: #fff; border-color: #fff; bottom: 16px; }
/* In the news feed the whole entry is the link; its meta row already shows the chevron. */
.story .project-visual::after { display: none; }
/* News articles reuse the MH3U gallery (hero + lightbox) inside .mh3u-release; the article already sets the top offset. */
.article > .mh3u-release { padding-top: 0; }
.planned-entry h3 { color: var(--p2-heading); font: var(--entry-title); }
.planned-fields > div { grid-template-columns: minmax(110px, .85fr) minmax(0, 1.3fr); }
.planned-fields :is(dt,dd) { color: var(--p2-muted); }
.mh3u-release .release-kicker { color: var(--p2-muted); font: var(--rubric); }
.mh3u-release .release-current { margin: 6px 0 18px; color: var(--p2-muted); }
/* Title block: rubric, title and native name belong together; the release line follows 8 px apart. */
/* Title block: "Current release" 8 px below the title on every project and tool page, with or without native name,
   and for every platform line (the hidden 3DS line stands between the title and the Wii U line). */
.mh3u-release .release-intro h1.release-title ~ .release-current { margin-top: 8px; }
.mh3u-release .release-card + .release-card { margin-top: 36px; }
.mh3u-release .game-platform-panel > .release-card:not(.release-gallery-section) {
  margin-top: var(--section-gap);
}
.mh3u-release .release-intro + :is(.release-history-section,.release-related-news,.documentation-manual) { margin-top: 20px; }
.mh3u-release .release-game-details dl { gap: 6px 16px; }
.mh3u-release .release-history-intro, .mh3u-release .release-legal-note { background: var(--p2-surface); }
.mh3u-release :is(.release-step-title,.release-variant-title,.version-history-title) { font: var(--entry-title); }
.mh3u-release summary :is(.release-step-title,.version-history-title) { color: var(--p2-heading); }
.mh3u-release .release-variant-subtitle { font: var(--supporting); color: var(--p2-muted); }
.mh3u-release .release-archive-link .release-section-heading {
  min-height: 44px; margin: 0; padding: 0; color: var(--blue);
}
.mh3u-release .release-hero img { height: auto; aspect-ratio: 2/1; }
.mh3u-release .release-gallery-placeholder { width: 100%; aspect-ratio: 2/1; max-height: 300px; }
.reference-page .legal-translation-note h2 { color: var(--p2-muted); }
.site-footer { margin-top: 36px; padding-top: 16px; }
.site-footer .footer-workshop { font-size: 13px; color: var(--p2-muted); }
.site-footer .footer-site-links a { font-weight: 400; }
/* BYOD line: same visual gap to the link row as between the first line and the icons; the links keep their touch height. */
.site-footer .footer-site-links + .footer-workshop { margin-top: -8px; }
.primary-nav a[aria-current] { color: var(--blue); }
.primary-nav a[aria-current]::after { content: none; }
.primary-nav a > span { position: relative; }
.primary-nav a[aria-current] > span::after {
  content: ""; position: absolute; inset: auto 0 -6px;
  height: 2px; border-radius: 1px; background: var(--blue);
}
/* Local controls stay unboxed, distinct from the informational notice surfaces. */
.mh3u-release .release-game-switch > label,
.mh3u-release .runtime-mode-tab,
.credits-document .project-category-button,
.legal-lang-button, .language-options button {
  position: relative; color: var(--p2-muted); background: transparent;
  border: 0; border-bottom: 2px solid var(--p2-line);
  border-radius: 0; box-shadow: none;
  min-height: 48px;
}
.mh3u-release .release-game-switch > input:checked + label,
.mh3u-release .runtime-mode-tab[aria-selected="true"],
.credits-document .project-category-button[aria-pressed="true"],
.legal-lang-button[aria-pressed="true"],
.language-options button[aria-pressed="true"] {
  color: var(--p2-heading); background: transparent;
  border-bottom-color: var(--p2-heading);
}
.mh3u-release .release-game-switch > input:checked + label::after,
.mh3u-release .runtime-mode-tab[aria-selected="true"]::after,
.credits-document .project-category-button[aria-pressed="true"]::after,
.legal-lang-button[aria-pressed="true"]::after,
.language-options button[aria-pressed="true"]::after {
  content: none;
}
.mh3u-release .runtime-mode-tabs { border-bottom: 0; gap: 8px; }
.mh3u-release .release-game-switch { column-gap: 8px; }
.mh3u-release .runtime-mode-tab img { filter: grayscale(1); }
.credits-category-nav .project-category-button::after { content: none; }
.credits-category-nav .project-category-button { justify-content: center; text-align: center; }
.credits-category-nav { gap: 8px; }
/* Credits use the same labelled records on every viewport. */
.credits-source-table, .credits-source-table tbody { display: block; }
.credits-source-table thead {
  position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%);
}
.credits-source-table tr { display: block; padding: 12px 0; border-bottom: 1px solid var(--line); }
.credits-source-table td {
  display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 12px;
  padding: 5px 0; border: 0; width: auto; min-width: 0;
}
.credits-source-table td::before {
  content: attr(data-label); color: var(--muted); font: var(--supporting);
}
.credits-source-user .credit-cell-value { overflow-wrap: anywhere; word-break: normal; }
@media (min-width: 1100px) {
  .credits-source-identifiers .credit-cell-value {
    display: grid; grid-template-columns: max-content max-content;
    justify-content: start; gap: 24px;
  }
  .credits-source-identifiers .credit-cell-value > span + span { margin-top: 0; }
}
.mh3u-release :is(.release-step,.version-history-item) > summary {
  color: var(--p2-heading); border-radius: 0; background: transparent;
}
/* Same outer dimensions for real elements and generated link chevrons. */
.link-chevron::after, a.project-visual::after,
.pagination a[rel="prev"]::before, .pagination a[rel="next"]::after,
.article .back::before, .mh3u-release .release-variant-link::after,
.mh3u-release .version-history-toggle,
.article.mh3u-release .version-history-item > summary .version-history-toggle,
.mh3u-release .release-lightbox-nav::after {
  box-sizing: border-box; width: 8px; height: 8px;
  border: solid var(--blue); border-width: 0 1.5px 1.5px 0;
}
a.project-visual::after,
.mh3u-release .release-hero-caption .link-chevron::after,
.mh3u-release .release-lightbox-nav::after { border-color: #fff; }
/* External links (other websites, YouTube): the same chevron, turned to point up-right.
   They open in a new tab; nothing is embedded. */
a.project-visual.external-visual::after { transform: rotate(-90deg); }
/* In a news article the picture card keeps the same gap as the gallery picture and the downloads. */
.article > a.project-visual.external-visual { margin-top: 16px; }
/* Download links inside a news article: the release download rows, without the page offset. */
.mh3u-release.md-downloads { padding-top: 0; margin-top: 16px; }
a.external-link::after {
  content: ""; display: inline-block; box-sizing: border-box; width: 6px; height: 6px;
  margin: 0 2px 2px 5px; vertical-align: middle;
  border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(-90deg);
}
.mh3u-release .release-item-status {
  color: var(--p2-muted); background: #f0f2f1;
}
@media (hover: hover) {
  .mh3u-release .release-game-switch > label:hover,
  .mh3u-release .runtime-mode-tab:hover,
  .credits-document .project-category-button:hover,
  .legal-lang-button:hover, .language-options button:hover,
  .mh3u-release :is(.release-step,.version-history-item) > summary:hover {
    color: var(--p2-heading); box-shadow: none;
  }
}
@media (width < 540px) {
  :root { --page-title-size: clamp(17px, calc(6.25vw - 4px), 25px); }
  .project-caption p, .project-caption h3 { font-size: 16px; line-height: 22px; }
  .project-caption .project-label { font: 400 12px/16px var(--font-navigation); }
}
@media (min-width: 700px) {
  :root { --reading: 400 16px/26px var(--font-reading); }
  body { width: min(100%,860px); padding-bottom: 28px; }
  .section-landing .site-header, .site-header { position: relative; top: auto; z-index: 5; flex-shrink: 0; }
  .header-inner {
    display: grid; grid-template-columns: 1fr auto; grid-template-rows: 44px 44px;
    gap: 0 24px; padding-top: 24px;
  }
  .brand { top: 0; width: 318px; height: 82px; grid-column: 1; grid-row: 1 / 3; align-self: start; }
  .language { top: -2px; order: 0; grid-column: 2; grid-row: 1; align-self: start; justify-self: end; margin-top: 0; }
  .primary-nav {
    position: static; inset: auto; width: auto; grid-column: 2; grid-row: 2;
    display: flex; justify-content: flex-end; justify-self: end; gap: 28px; padding: 0;
    border: 0; background: none; margin: 0;
  }
  .primary-nav a {
    display: flex; align-items: flex-end; gap: 8px; min-height: 44px; padding: 0; border-radius: 0;
    font: 600 18px/24px var(--font-navigation);
    text-transform: uppercase; letter-spacing: 1px;
  }
  .primary-nav .icon { display: none; }
  main.shell { padding-top: 28px; }
  .story { row-gap: 24px; }
  :is(a.project-visual, .story .project-visual) > img { height: 260px; aspect-ratio: auto; object-fit: cover; }
  .mh3u-release .release-hero img { max-height: 300px; object-fit: cover; }
}

/* Standalone error cards follow the live/v2.2.2 structure, with P2 typography. */
body.section-error {
  width: 100%; max-width: none; max-inline-size: none; min-height: 100dvh; margin: 0; padding: 0;
  background: #f8f7f4; box-shadow: none;
}
.section-error .error-main {
  flex: 1; display: flex; flex-direction: column; justify-content: center;
  width: min(100%, 760px); max-inline-size: 760px; margin: 0 auto;
  padding: 38px 34px 18px; font: var(--reading);
}
.section-error .error-card {
  width: 100%; padding: 30px; border: 1px solid var(--line); border-radius: 5px;
  background: #fff; box-shadow: 0 10px 28px rgb(31 42 48 / 2.6%);
}
.section-error .kicker { margin: 0 0 16px; color: var(--p2-muted); }
.section-error h1 {
  margin: 0 0 14px; color: var(--p2-heading);
  font: 700 clamp(26px, 4vw, 34px)/1.15 var(--font-title);
}
.section-error .error-copy { margin: 0 0 16px; color: var(--p2-text); font: var(--reading); }
.section-error .error-copy:last-child { margin-bottom: 0; }
.section-error a { color: var(--blue); font-weight: 600; text-decoration: none; }
@media (max-width: 520px) {
  .section-error .error-main { justify-content: flex-start; padding: 20px 18px 18px; }
  .section-error .error-card { padding: 20px; }
}

/* Masthead rhythm: subline, --masthead-gap (24 px), divider, --masthead-after (24 px on phones up to 36 px), content. */
@media (width < 700px) {
  /* The header follows the wordmark height, so the gaps stay fixed while the wordmark scales.
     The wordmark keeps its position (brand box 18 px from the top, wordmark at 28 px). */
  .section-landing .header-inner { min-height: 0; align-items: flex-start; }
  .section-landing .brand { top: 0; height: auto; margin-top: 18px; padding-bottom: 0; }
  .section-landing main.shell { padding-top: var(--masthead-after); }
}
@media (min-width: 700px) {
  /* Wordmark and navigation stay; the subline ends 3 px above the header, the divider is 1 px. */
  .section-landing main.shell { padding-top: calc(var(--masthead-gap) - 3px + 1px + var(--masthead-after)); }
}

/* Markdown formats in news articles and free text pages (About frame).
   Built from existing patterns: the rubric for h2, the story title for h3, the version
   label for h4, the reference-page lists, the grey surface of highlights and facts,
   the credits table rows and the planned-entry separators. The writing view uses #doc. */
:is(.section-news .article, .section-news #doc, .about-content) > h3:not([class]) {
  margin: 24px 0 0; color: var(--p2-heading); font: 600 17px/24px var(--font-title);
}
:is(.section-news .article, .section-news #doc, .about-content) > h4:not([class]) {
  margin: 20px 0 0; color: var(--p2-heading); font: 600 15px/22px "Barlow Semi Condensed", sans-serif; text-transform: uppercase; letter-spacing: .02em;
}
:is(.section-news .article, .section-news #doc, .about-content) > :is(h3, h4):not([class]) + p { margin-top: 6px; }
/* News subheading (h2) to its text: 6 px like h3/h4 (was 12 px, read as too far apart). */
:is(.section-news .article, .section-news #doc) > h2:not([class]) { margin-bottom: 6px; }
:is(.section-news .article, .section-news #doc) > h2:not([class]) + p { margin-top: 6px; }
:is(.section-news .article, .section-news #doc, .about-content) > :is(ul, ol):not([class]) {
  margin: 12px 0 0; padding-inline-start: 22px;
}
:is(.section-news .article, .section-news #doc, .about-content) > :is(ul, ol):not([class]) li + li,
:is(.section-news .article, .section-news #doc, .about-content) > :is(ul, ol):not([class]) :is(ul, ol) { margin-top: 4px; }
:is(.section-news .article, .section-news #doc, .about-content) > :is(ul, ol):not([class]) :is(ul, ol) { padding-inline-start: 20px; }
:is(.section-news .article, .section-news #doc, .about-content) > ol:not([class]) ol { list-style-type: lower-alpha; }
:is(.section-news .article, .section-news #doc, .about-content) > blockquote:not([class]) {
  margin: 16px 0 0; padding: 2px 0 2px 14px; border-left: 3px solid var(--line); color: var(--p2-muted); font-style: italic; font-synthesis: style;
}
:is(.section-news .article, .section-news #doc, .about-content) > blockquote:not([class]) p { margin: 0; }
:is(.section-news .article, .section-news #doc, .about-content) > blockquote:not([class]) p + p { margin-top: 10px; }
:is(.section-news .article, .section-news #doc, .about-content) :is(p, li, td, dd) code {
  padding: 1px 5px; border-radius: 4px; background: var(--p2-surface); font: .875em/1 ui-monospace, Consolas, monospace; overflow-wrap: anywhere;
}
:is(.section-news .article, .section-news #doc, .about-content) > pre:not([class]),
.section-news #doc > .wv-card > pre:not([class]) {
  margin: 16px 0 0; padding: 12px 14px; overflow-x: auto; border-radius: 6px; background: var(--p2-surface);
  color: var(--p2-text); font: 13px/20px ui-monospace, Consolas, monospace;
}
:is(.section-news .article, .section-news #doc, .about-content) > hr:not([class]) {
  height: 0; margin: 28px 0; border: 0; border-top: 1px solid var(--line);
}
.md-table { margin: 16px 0 28px; overflow-x: auto; }
.md-table table { width: 100%; border-collapse: collapse; font: var(--supporting, 400 14px/20px "RACCU Noto Sans", sans-serif); }
.md-table th { padding: 0 16px 10px; border-bottom: 1px solid var(--line); color: var(--p2-muted); font: 600 13px/18px "Barlow Semi Condensed", sans-serif; text-align: left; text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.md-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.md-table :is(th, td):first-child { padding-left: 0; }
.md-table :is(th, td):last-child { padding-right: 0; }
/* Definition list (proposal): a glossary in the rhythm of the planned entries. */
:is(.section-news .article, .section-news #doc, .about-content) > dl:not([class]) { margin: 16px 0 0; }
:is(.section-news .article, .section-news #doc, .about-content) > dl:not([class]) dt { color: var(--p2-heading); font: 600 16px/24px var(--font-title); }
:is(.section-news .article, .section-news #doc, .about-content) > dl:not([class]) dt:not(:first-child) { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
:is(.section-news .article, .section-news #doc, .about-content) > dl:not([class]) dd { margin: 2px 0 0; }
:is(.section-news .article, .section-news #doc, .about-content) > dl:not([class]) dd p { margin: 0; }
/* Footnotes (proposal): blue number in the text, notes under a thin rule in the small grey type
   of the legal notes, each with the blue up-chevron back to its place. No heading word, so
   translations need nothing extra. */
.md-footnote-ref { font-size: .7em; line-height: 0; vertical-align: super; }
.md-footnote-ref a { padding: 0 1px; color: var(--blue); font-weight: 600; text-decoration: none; }
.md-footnotes { margin: var(--section-gap) 0 0; padding-top: 12px; border-top: 1px solid var(--line); }
.md-footnotes ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.md-footnotes li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: baseline; color: var(--p2-muted); font: 400 14px/20px "RACCU Noto Sans", sans-serif; }
.md-footnote-label { min-width: 14px; color: var(--blue); font-weight: 600; }
.md-footnote-back { position: relative; width: 20px; height: 16px; }
.md-footnote-back::after { content: ""; position: absolute; left: 6px; top: 6px; box-sizing: border-box; width: 8px; height: 8px; border-top: 1.5px solid var(--blue); border-left: 1.5px solid var(--blue); transform: rotate(45deg); }
:target.md-footnote-ref a, li:target .md-footnote-label { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 2px; }
/* Lists inside notice boxes: the same indent as in the text. */
:is(.section-news .article, .section-news #doc, .about-content) .md-notice :is(ul, ol) { margin: 8px 0 0; padding-inline-start: 22px; }
/* A details block (:::details) in a news article: the step look of the project pages
   (dark title, chevron that turns), placed like the downloads. */
.mh3u-release.md-details { padding-top: 0; margin-top: 16px; }
.mh3u-release.md-details .release-step > summary { grid-template-columns: minmax(0,1fr) 12px; }
.mh3u-release.md-details .release-step-body { padding-inline-start: 0; }
.mh3u-release.md-details .release-step { border-bottom: 1px solid var(--line); }
.md-footnotes a:not(.md-footnote-back) { color: var(--blue); }
/* Documentation chapters (:::step with top=…): at the end of an open chapter the blue
   up-chevron of the footnotes leads back to the top, in the column of the chapter chevron. */
.mh3u-release .release-step-top { position: relative; display: block; width: 20px; height: 16px; margin: 12px 0 0 auto; }
.mh3u-release .release-step-top::after { content: ""; position: absolute; right: 3px; top: 6px; box-sizing: border-box; width: 8px; height: 8px; border-top: 1.5px solid var(--blue); border-left: 1.5px solid var(--blue); transform: rotate(45deg); }
.mh3u-release .release-step[id] { scroll-margin-top: 20px; }
/* Chapters in a documentation: separated by the step rule, as on the tool pages. */
.documentation-source > .release-step, .mh3u-release .mh3u-source-content > .release-step { border-bottom: 1px solid var(--line); }
/* Chapter groups (:::section) in a documentation: the rubric with icon, section gap above. */
/* … also in the editor's writing view, where the blocks sit directly in #doc. */
.mh3u-release :is(.documentation-source, #doc, .mh3u-source-content) > h2.md-section { margin-top: var(--section-gap, 36px); }
/* Rubric icons are grey like every other rubric; Raccu blue stays reserved for links. */
.mh3u-release :is(.documentation-source, #doc, .mh3u-source-content) > h2.md-section > img { filter: grayscale(1); }
/* Two tables never run into each other: should a lead-in be missing, the second keeps a clear gap.
   A lead-in after a table starts 28 px below it (table margin), the table follows its lead-in after 16 px. */
.md-table + .md-table { margin-top: 32px; }
.md-table:last-child { margin-bottom: 0; }
/* Subheadings inside a chapter (### in a step): they belong to what follows, so they keep
   24 px to the text above and only 8 px to their own text, list or table. */
.mh3u-release .release-step-body > h3 { margin: 24px 0 8px; color: var(--p2-heading); font: var(--entry-title, 600 15px/22px "Inter", sans-serif); }
.mh3u-release .release-step-body > h3:first-child { margin-top: 0; }
.mh3u-release .release-step-body > h3 + :is(ul, ol, p, .md-table) { margin-top: 8px; }
/* A lead-in line ("You need:", "During the series:") belongs to the list below it. */
.mh3u-release .release-step-body > p + :is(ul, ol) { margin-top: 6px; }
/* Pictures in a guide step show the whole picture in its own aspect ratio (game screens 16:9), never the 2:1 feed crop or letterboxing. */
.mh3u-release .release-step-body > .project-visual.md-picture { margin: 12px 0 20px; }
.mh3u-release .release-step-body > .project-visual.md-picture > img { height: auto; aspect-ratio: auto; object-fit: initial; }
/* Pictures in documentation steps use the news gallery (Open gallery, lightbox) but show the whole
   picture in its own aspect ratio: a guide must not crop game text or tool windows. */
.mh3u-release .release-step-body > .mh3u-release { margin: 12px 0 20px; padding: 0; }
.mh3u-release .release-step-body .release-hero img { height: auto; max-height: none; aspect-ratio: auto; object-fit: initial; }
/* SHA-256 under a package: small grey line outside the link, selectable for copying. */
.mh3u-release .release-variant-hash { margin: -4px 0 8px; color: var(--p2-muted); font: var(--supporting); overflow-wrap: anywhere; }
.mh3u-release .release-variant-hash code { font: 13px/22px ui-monospace, Consolas, monospace; }

/* Long words and addresses (file names, links) break instead of widening the page on phones. */
main :is(p, li, dt, dd, td, th, h1, h2, h3, h4, blockquote, figcaption), .site-footer { overflow-wrap: break-word; }
/* Download rows in a news article or free page: one column, as on the project and tool pages. */
.mh3u-release.md-downloads .release-variant-list { grid-template-columns: minmax(0, 1fr); gap: 0; }
/* Picture card in the text (:::image), like the video card. */
:is(.article, .about-content) > .project-visual.md-picture { margin-top: 16px; }
/* Not a link: no chevron (like the feed pictures). */
.project-visual.md-picture::after { display: none; }
/* Numbers and short tags never break (MH3U and tool pages): step numbers 01, 02 …, REQUIRED /
   OPTIONAL, the current version and version titles. The number column grows with larger type
   (zoom, system font size) instead of splitting "01" into two lines. */
.mh3u-release :is(.release-step-number, .release-item-status, .release-current strong, .version-history-title) { white-space: nowrap; }
.mh3u-release .release-step > summary { grid-template-columns: minmax(20px, max-content) minmax(0,1fr) auto 12px; }
/* Runtime tabs share the full width, two (Package, Updates) as well as three. */
.mh3u-release .runtime-mode-tabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }

/* Wordmark and subline as on raccu.com (measured 2026-11-16 at 320–1440 px): both the same width,
   220–286 px up to 900 px, then 31vw up to 318 px; the gap between them 6 px on phones, 7 px on
   tablets, 7–10 px on desktops. The masthead rhythm stays: the divider keeps --masthead-gap below
   the subline, and from 700 px the header ends 3 px below the subline (as before), with the
   navigation on the subline. Wordmark 4378 × 720 and subline 754.86 × 42: height 0.2201 × width.
   Pages with a language menu (legal texts) keep room for it. */
.header-inner { --brand-w: clamp(220px, 68vw, 286px); --brand-gap: 6px; }
.brand { width: var(--brand-w); height: auto; gap: var(--brand-gap); }
.header-inner:has(> .language) .brand { width: min(var(--brand-w), calc(100% - 88px)); }
.section-landing .brand::after { margin-top: calc(var(--masthead-gap) - var(--brand-gap)); }
@media (min-width: 521px) { .header-inner { --brand-gap: 7px; } }
@media (min-width: 901px) { .header-inner { --brand-w: clamp(250px, 31vw, 318px); --brand-gap: clamp(7px, 0.8vw, 10px); } }
@media (min-width: 700px) {
  .header-inner { --brand-h: calc(13px + 0.2201 * var(--brand-w) + var(--brand-gap)); grid-template-rows: 44px max(0px, calc(var(--brand-h) - 44px)); }
  .header-inner:has(> .language) { grid-template-rows: 44px max(44px, calc(var(--brand-h) - 44px)); }
  .brand, .header-inner:has(> .language) .brand, .section-landing .brand { width: var(--brand-w); height: var(--brand-h); }
  .primary-nav { align-self: end; }
}

/* Consistency pass (2026-11-16): the same element looks the same everywhere.
   1 Category chips in "Related news" lists like the feed chips (grey, rubric grey text). */
.story-copy .category { background: #f0f2f1; border-radius: 4px; color: #62696e; }
/* 2 Sub-headings in the update history ("Main changes") like every other uppercase rubric. */
.mh3u-release .version-history-label { color: var(--p2-muted, #62696e); letter-spacing: .025em; }
/* 3 Tab switchers share one size: Credits and the legal EN/DE switch as the MH3U switchers. */
.legal-lang-button, .credits-document .project-category-button { font: 600 17px/24px var(--font-navigation); }
/* 4 Page row (Previous / Next) and "Back to …" links: the rubric letter spacing. */
.pagination a, .article .back { letter-spacing: .025em; }
/* 5 Game details: the 22 px line of all other meta text. */
.mh3u-release .release-game-details dl { line-height: 22px; }
/* 6 Work-in-progress list: the reading text of its card. */
.mh3u-release .release-wip-list { font: inherit; }
