/* ── Monster Hunter Outlanders Wiki theme ──────────────────────────────────
   Ember-and-charcoal game-wiki look: warm near-black surfaces, lantern-orange
   accent, serif display headings over an Inter body. One palette, one theme:
   every colour below is a token in this :root block and nothing else in the
   file hardcodes a colour.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --bg: #100d0b;
  --card: #1a1512;
  --line: #31271f;
  --text: #f4ede2;
  --muted: #b9aa98;
  --brand: #e8873a;
  --brand-2: #f3a854;
  --on-brand: #100d0b;
  --scrim: rgba(10, 8, 6, 0.9);
  --scrim-soft: rgba(10, 8, 6, 0.4);
  --shadow: rgba(0, 0, 0, 0.45);
  --t-s: #ffd39b;
  --t-a: #cfe8b0;
  --t-b: #bcd6f2;
  --t-c: #f2c6d1;
  --radius: 14px;
  --radius-s: 9px;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  height: auto;
}

a {
  color: var(--brand);
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--brand-2);
}

h1,
h2,
h3,
h4 {
  font-family: Fraunces, Georgia, 'Times New Roman', serif;
  font-weight: 700;
  line-height: 1.18;
  margin: 0;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 16px;
}

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--card);
  color: var(--text);
  padding: 10px 16px;
  z-index: 100;
}

.skip-link:focus {
  left: 12px;
  top: 12px;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--brand);
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn--primary {
  background: var(--brand);
  color: var(--on-brand);
}

.btn--primary:hover {
  background: var(--brand);
  color: var(--on-brand);
  transform: translateY(-1px);
}

.btn--ghost {
  background: transparent;

  border-color: var(--line);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.btn:focus-visible,
.icon-btn:focus-visible,
a:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 2px;
}

.text-link {
  color: var(--brand);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.text-link:hover {
  text-decoration: underline;
}

/* ── Header ──────────────────────────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 40;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
}

.site-head__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 62px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  flex-shrink: 0;
}

.brand__mark {
  display: block;
}

.brand__text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand {
  min-width: 0;
}

.brand__name {
  font-family: Fraunces, Georgia, serif;
  font-size: 16px;
  font-weight: 700;
}

.brand__tag {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.site-nav__link {
  padding: 8px 10px;
  border-radius: var(--radius-s);
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
}

.site-nav__link:hover {
  color: var(--text);
  background: var(--card);
}

.site-nav__link.is-active {
  color: var(--brand);
}

.site-head__tools {
  display: flex;
  align-items: center;
  gap: 6px;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}

.icon-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.icon-btn--menu {
  display: none;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.site-foot {
  margin-top: 64px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.site-foot__inner {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 40px;
}

.brand--foot {
  margin-bottom: 12px;
}

.site-foot__tag {
  color: var(--muted);
  font-size: 14px;

  margin-bottom: 12px;
  max-width: 34ch;
}

.site-foot__official a {
  font-size: 14px;
  font-weight: 600;
}

.site-foot__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.site-foot__col a {
  color: var(--muted);
  font-size: 14px;
  text-decoration: none;
}

.site-foot__col a:hover {
  color: var(--brand);
}

.site-foot__head {
  margin: 0 0 4px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text);
}

.site-foot__base {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 20px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}

.site-foot__disclaimer {
  margin: 0;
  max-width: 76ch;
  font-size: 12px;
  line-height: 1.6;
  color: var(--muted);
}

.site-foot__copy {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

/* ── Home hero ───────────────────────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  min-height: clamp(30rem, 78svh, 40rem);
  background-color: var(--bg);
  background-image: var(--hero-image);
  background-size: cover;
  background-position: 72% center;
  overflow: hidden;
}

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--scrim) 0%, var(--scrim-soft) 46%, transparent 100%),
    linear-gradient(0deg, var(--scrim) 0%, transparent 55%, var(--scrim-soft) 100%);
}

.hero__inner {
  padding-top: 96px;
  padding-bottom: 56px;
  color: var(--text);
}

.hero__eyebrow {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand-2);
}

.hero__title {
  max-width: 20ch;
  font-size: clamp(2.2rem, 5vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 58ch;
  margin: 18px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.hero__stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 40px;
  margin: 36px 0 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.hero__stats li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.hero__stats strong {
  font-family: Fraunces, Georgia, serif;
  font-size: 24px;
  font-weight: 700;
  color: var(--text);
}

.hero__stats span {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section {
  padding: 64px 0;
  border-top: 1px solid var(--line);
}

.section--tint {
  background: var(--bg);
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px 24px;
  margin-bottom: 8px;
}

.section__title {
  font-size: clamp(1.5rem, 2.6vw, 1.9rem);
}

.section__lead {
  max-width: 70ch;
  margin: 8px 0 28px;
  color: var(--muted);
  font-size: 16px;
}

/* ── Quick start cards ───────────────────────────────────────────────────── */
.quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.quick-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.quick-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: var(--brand);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.18s ease;
}

.quick-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  color: var(--text);
}

.quick-card:hover::before {
  transform: scaleX(1);
}

.quick-card__num {
  font-family: Fraunces, Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1;
  color: var(--line);
}

.quick-card__title {
  font-size: 16px;
  font-weight: 700;
}

.quick-card__desc {
  font-size: 14px;
  color: var(--muted);
}

.quick-card__cta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

/* ── Tier board ──────────────────────────────────────────────────────────── */
.tier-board {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}

.tier-row {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.tier-row__grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-s);
  font-size: 18px;
  font-weight: 800;
  font-family: Fraunces, Georgia, serif;
}

.tier-grade--S {
  color: var(--t-s);
  background: var(--card);
  border: 1px solid var(--line);
}

.tier-grade--A {

  color: var(--t-a);
  background: var(--card);
  border: 1px solid var(--line);
}

.tier-grade--B {
  color: var(--t-b);
  background: var(--card);
  border: 1px solid var(--line);
}

.tier-grade--C {
  color: var(--t-c);
  background: var(--card);
  border: 1px solid var(--line);
}

.tier-row__list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.tier-row__list a {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  background: var(--card);
}

.tier-row__list a:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.tier-row__list em {
  font-style: normal;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

/* ── Latest cards ────────────────────────────────────────────────────────── */
.latest-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.latest-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.latest-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  color: var(--text);
}

.latest-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.latest-card__title {
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
}

.latest-card__desc {
  font-size: 14px;
  color: var(--muted);
}

/* ── Explore cards ───────────────────────────────────────────────────────── */
.explore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 24px;
}

.explore-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.explore-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  color: var(--text);
}

.explore-card__title {
  font-family: Fraunces, Georgia, serif;
  font-size: 19px;
  font-weight: 700;
}

.explore-card__sub {
  font-size: 14px;
  color: var(--muted);
}

.explore-card__rows {

  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.explore-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card);
  font-size: 13px;
  color: var(--muted);
}

.explore-row__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  max-width: 46%;
  min-height: 26px;
  padding: 2px 8px;
  border-radius: 7px;
  background: var(--line);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.explore-card__cta {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--brand);
}

/* ── CTA band ────────────────────────────────────────────────────────────── */
.cta-band {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: clamp(18rem, 38svh, 26rem);
  margin-top: 8px;
  border-top: 1px solid var(--line);
  background-color: var(--bg);
  background-image: var(--cta-image);
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.cta-band__scrim {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, var(--scrim) 0%, var(--scrim-soft) 50%, transparent 100%),
    linear-gradient(0deg, var(--scrim) 0%, transparent 60%, var(--scrim-soft) 100%);
}

.cta-band__inner {
  padding-top: 64px;
  padding-bottom: 64px;
  color: var(--text);
}

.cta-band h2 {
  max-width: 24ch;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
}

.cta-band p {
  max-width: 52ch;
  margin: 12px 0 0;
  color: var(--muted);
}

.cta-band__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

/* ── Breadcrumbs ─────────────────────────────────────────────────────────── */
.crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 28px;
  font-size: 13px;
  color: var(--muted);
}

.crumbs a {
  color: var(--muted);
  text-decoration: none;
}

.crumbs a:hover {
  color: var(--brand);
}

/* ── Article ─────────────────────────────────────────────────────────────── */
.article {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 20px 24px;
}

.article__head {
  margin-top: 18px;
}

.article__head--hub {
  max-width: 760px;
  margin: 0 auto;
}

.article__title {
  font-size: clamp(1.9rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.article__lead {
  max-width: 66ch;
  margin: 14px 0 0;
  font-size: 17px;
  color: var(--muted);
}

.article__meta {
  display: flex;
  flex-wrap: wrap;

  gap: 6px 18px;
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.article__cover {
  margin: 26px 0 0;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  overflow: hidden;
  background: var(--card);
}

.article__cover img {
  display: block;
  width: 100%;
}

.quick-answer {
  margin: 26px 0 0;
  padding: 18px 20px;
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--card);
}

.quick-answer__title {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--brand);
}

.quick-answer__text {
  margin: 0;
  font-size: 16px;
}

/* ── Prose (article body from markdown) ──────────────────────────────────── */
.prose {
  margin-top: 28px;
  font-size: 17px;
  line-height: 1.72;
  max-width: 72ch;
}

.prose > :first-child {
  margin-top: 0;
}

.prose h2 {
  margin: 44px 0 14px;
  font-size: 26px;
  scroll-margin-top: 84px;
}

.prose h3 {
  margin: 30px 0 10px;
  font-size: 20px;
  scroll-margin-top: 84px;
}

.prose h4 {
  margin: 24px 0 8px;
  font-size: 17px;
}

.prose p,
.prose li {
  color: var(--text);
}

.prose ul,
.prose ol {
  margin: 0 0 18px;
  padding-left: 24px;
}

.prose li {
  margin-bottom: 6px;
}

.prose li::marker {
  color: var(--brand);
}

.prose strong {
  color: var(--text);
  font-weight: 700;
}

.prose em {
  color: var(--muted);
}

.prose hr {
  height: 1px;
  margin: 36px 0;
  border: 0;
  background: var(--line);
}

.prose blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 3px solid var(--line);
  background: var(--card);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  color: var(--muted);
}

.prose code {
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--card);
  border: 1px solid var(--line);
  font-size: 0.9em;
}

.prose img {
  border-radius: var(--radius-s);
  border: 1px solid var(--line);
}

.prose table {
  width: 100%;
  margin: 22px 0;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 1.5;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.table-scroll {
  max-width: 100%;
  margin: 22px 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
}

.table-scroll table {
  margin: 0;
  border: 0;
  border-radius: 0;
  min-width: 100%;
  width: auto;
}

.prose thead th {
  background: var(--card);
  font-weight: 700;
  text-align: left;
  white-space: nowrap;
}

.prose th,
.prose td {
  padding: 9px 12px;

  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.prose tbody tr:last-child td {
  border-bottom: 0;
}

.prose tbody tr:nth-child(even) {
  background: var(--card);
}

/* Callout blocks (raw HTML from the old site's MDX callouts) */
.callout {
  margin: 24px 0;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 0 var(--radius-s) var(--radius-s) 0;
  background: var(--card);
}

.callout--warn {
  border-left-color: var(--brand-2);
  background: var(--card);
}

.callout__title {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.callout--warn .callout__title {
  color: var(--brand-2);
}

.callout p {
  margin: 0 0 10px;
  font-size: 15px;
}

.callout p:last-child {
  margin-bottom: 0;
}

.callout ul,
.callout ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

/* ── FAQ ─────────────────────────────────────────────────────────────────── */
.faq {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.faq__title {
  font-size: 24px;
  margin-bottom: 16px;
}

.faq__item {
  margin-bottom: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card);
}

.faq__item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.faq__item summary::-webkit-details-marker {
  display: none;
}

.faq__item summary::after {
  content: '+';
  flex-shrink: 0;
  color: var(--brand);
  font-size: 18px;
  line-height: 1;
}

.faq__item[open] summary::after {
  content: '−';
}

.faq__item p {
  margin: 0;
  padding: 0 16px 16px;
  font-size: 15px;
  color: var(--muted);
}

/* ── Tags, engagement, related, pagination ───────────────────────────────── */
.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}

.tag-list li {
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
  background: var(--card);
}

.engage {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.engage .btn {
  min-height: 40px;
  font-size: 14px;
}

.engage .btn[aria-pressed='true'] {
  border-color: var(--brand);
  color: var(--brand);
}

.engage__count {
  font-size: 13px;
  color: var(--muted);
}

.engage__msg {

  font-size: 13px;
  color: var(--brand);
}

.related {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.related__title {
  font-size: 22px;
  margin-bottom: 16px;
}

.related__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.related-card {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}

.related-card:hover {
  border-color: var(--brand);
  color: var(--text);
}

.related-card__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.related-card__title {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.prevnext {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 40px;
}

.prevnext__item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
}

.prevnext__item--next {
  text-align: right;
  align-items: flex-end;
}

.prevnext__item:hover {
  border-color: var(--brand);
  color: var(--text);
}

.prevnext__label {
  font-size: 12px;
  color: var(--muted);
}

.prevnext__title {
  font-size: 14px;
  font-weight: 600;
}

/* ── Comments ────────────────────────────────────────────────────────────── */
.comments {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.comments__title {
  font-size: 22px;
}

.comments__intro {
  max-width: 60ch;
  margin: 8px 0 20px;
  font-size: 14px;
  color: var(--muted);
}

.comment {
  padding: 14px 16px;
  margin-bottom: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card);
}

.comment--reply {
  margin-left: 18px;
  background: var(--card);
}

.comment__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  margin: 0 0 6px;
  font-size: 13px;
}

.comment__name {
  font-weight: 700;
  color: var(--text);
}

.comment__time {
  color: var(--muted);
  font-size: 12px;
}

.comment__owner {
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--brand);
  color: var(--on-brand);
  font-size: 12px;
  font-weight: 700;
}

.comment__text {
  margin: 0;
  font-size: 15px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.comment__to {
  margin: 6px 0 0;
  font-size: 13px;

  color: var(--brand);
}

.comment__reply {
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
}

.comment__reply:hover {
  color: var(--brand);
}

.comment__replies:not(:empty) {
  margin-top: 10px;
}

.comment-form {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.comment-form__label {
  display: block;
  margin-bottom: 12px;
  font-size: 13px;
  font-weight: 600;
}

.comment-form__label span {
  font-weight: 400;
  color: var(--muted);
}

.comment-form input,
.comment-form textarea {
  display: block;
  width: 100%;
  margin-top: 5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 15px;
}

.comment-form input:focus,
.comment-form textarea:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.comment-form__reply,
.comment-form__cancel {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--brand);
}

.comment-form__cancel {
  padding: 0;
  border: 0;
  background: none;
  text-decoration: underline;
  cursor: pointer;
}

.comment-form__msg {
  margin: 12px 0 0;
  font-size: 14px;
  color: var(--muted);
}

/* ── Hub / recent card grid ──────────────────────────────────────────────── */
.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  max-width: var(--max);
  margin: 32px auto 0;
  padding: 0 20px;
}

.cover-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  text-decoration: none;
  overflow: hidden;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.cover-card:hover {
  border-color: var(--line);
  transform: translateY(-2px);
  color: var(--text);
}

.cover-card__img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.cover-card__label,
.cover-card__title,
.cover-card__desc,
.cover-card__date {
  padding: 0 16px;
}

.cover-card__label {
  margin-top: 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--brand);
}

.cover-card__title {
  font-family: Fraunces, Georgia, serif;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.cover-card__desc {
  font-size: 14px;
  color: var(--muted);

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.cover-card__date {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
}

.hub__intro {
  margin-top: 16px;
}

.hub__intro.prose {
  max-width: 72ch;
}

.hub__footnote {
  max-width: 72ch;
  margin: 28px auto 0;
  padding: 0 20px;
  font-size: 14px;
  color: var(--muted);
}

/* ── Tier explorer (tier list page) ──────────────────────────────────────── */
.explorer {
  margin: 26px 0 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

.explorer__filters {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 10px;
}

.explorer__field {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.explorer__field span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
}

.explorer__field input,
.explorer__field select {
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg);
  color: var(--text);
  font: inherit;
  font-size: 14px;
}

.explorer__field input:focus,
.explorer__field select:focus {
  outline: 2px solid var(--brand);
  outline-offset: 1px;
}

.explorer__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0 12px;
  font-size: 13px;
  color: var(--muted);
}

.explorer__reset {
  padding: 0;
  border: 0;
  background: none;
  color: var(--brand);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.explorer__cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.adv-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card);
}

.adv-card[hidden] {
  display: none;
}

.adv-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.adv-card__name {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 17px;
}

.adv-card__rarity {
  margin-left: 6px;
  padding: 1px 6px;
  border: 1px solid var(--line);
  border-radius: 5px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--muted);
  vertical-align: middle;
}

.adv-card__kit {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.adv-card__note {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
}

.adv-card__right {

  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.adv-card__grade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  font-family: Fraunces, Georgia, serif;
  font-size: 15px;
  font-weight: 800;
}

.adv-card__score {
  font-size: 15px;
  font-weight: 700;
}

.adv-card__grades {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 2px;
}

.adv-card__grade-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  padding: 2px 7px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  color: var(--muted);
}

.adv-card__grade-chip b {
  color: var(--text);
}

.explorer__empty {
  padding: 24px;
  text-align: center;
  font-size: 14px;
  color: var(--muted);
}

/* ── Tool shell ──────────────────────────────────────────────────────────── */
.tool-shell {
  margin-top: 26px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
}

/* ── 404 ─────────────────────────────────────────────────────────────────── */
.notfound {
  display: flex;
  align-items: center;
  min-height: 62vh;
}

.notfound__inner {
  padding-top: 64px;
  padding-bottom: 64px;
}

.notfound__title {
  font-size: clamp(2rem, 4.4vw, 2.8rem);
}

.notfound__lead {
  max-width: 54ch;
  margin: 14px 0 0;
  color: var(--muted);
}

.notfound__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.notfound__links {
  margin-top: 30px;
  font-size: 13px;
  color: var(--muted);
}

.notfound__links a {
  margin-right: 12px;
  color: var(--muted);
}


/* Light-theme surface overrides for the components above */






/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 980px) {
  .quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .latest-grid,
  .card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-foot__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 860px) {
  .site-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 10px 16px 14px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__link {
    padding: 11px 10px;
    font-size: 15px;
  }

  .icon-btn--menu {
    display: inline-flex;
  }

  .explore-grid,
  .related__grid {

    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .explorer__filters {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  body {
    font-size: 16px;
  }

  .brand__name {
    max-width: 52vw;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .site-head__inner {
    gap: 10px;
  }

  .blog-intro {
    max-width: 100%;
  }

  .wrap {
    padding: 0 16px;
  }

  .hero {
    min-height: 34rem;
    background-position: 68% center;
  }

  .hero__inner {
    padding-top: 72px;
    padding-bottom: 36px;
  }

  .hero__stats {
    gap: 10px 24px;
  }

  .section {
    padding: 44px 0;
  }

  .quick-grid,
  .latest-grid,
  .explore-grid,
  .card-grid,
  .related__grid,
  .prevnext,
  .explorer__cards,
  .explorer__filters {
    grid-template-columns: 1fr;
  }

  .article {
    padding: 0 16px 16px;
  }

  .article__title {
    font-size: 2rem;
  }

  .prose {
    font-size: 16px;
  }

  .prose h2 {
    font-size: 22px;
  }

  .prose table {
    font-size: 13px;
  }

  .site-foot__inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .cta-band__inner {
    padding-top: 44px;
    padding-bottom: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

.to-top {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 18px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

.to-top:hover {
  border-color: var(--brand);
  color: var(--brand);
}

/* ── Consent banner ──────────────────────────────────────────────────────── */
.consent {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--card);
  border-top: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.consent[hidden] {
  display: none;
}

.consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  max-width: var(--max);
  margin: 0 auto;
  padding: 14px 20px;
}

.consent__text {
  flex: 1 1 340px;
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted);
}

.consent__actions {
  display: flex;
  gap: 8px;
}

.consent__actions .btn {
  min-height: 38px;
  padding: 0 16px;
  font-size: 14px;
}

/* ── Ad slots ────────────────────────────────────────────────────────────── */
.ad-slot {
  display: flex;
  justify-content: center;
  margin: 30px auto;
  max-width: 760px;
}

.ad-slot[hidden] {
  display: none;
}

.ad-slot iframe {
  display: block;
  border: 0;
  max-width: 100%;
}

.ad-slot--incontent iframe {
  width: 728px;
  height: 90px;
}

.ad-slot--native iframe {
  width: 700px;
  height: 240px;
}

.ad-slot__label {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  text-align: center;
}

.ad-anchor {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 55;
  display: none;
  justify-content: center;
  align-items: center;
  padding: 4px 0;
  background: var(--card);
  border-top: 1px solid var(--line);
}

.ad-anchor[hidden] {
  display: none;
}

.ad-anchor iframe {
  display: block;
  width: 320px;
  height: 50px;
  border: 0;
}

.ad-anchor__close {
  position: absolute;
  right: 6px;
  top: -26px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  font-size: 15px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 768px) {
  .ad-slot--incontent {
    display: none;
  }

  .ad-slot--native iframe {
    width: 100%;
    max-width: 480px;
    height: 240px;
  }

  .ad-anchor:not([hidden]) {
    display: flex;
  }
}

body.has-anchor-ad {
  padding-bottom: 66px;
}
