/* MSH — Minecraft Server Helper
   Dependency-free starter theme. Keep performance and usability ahead of decoration. */
:root {
  color-scheme: dark;
  --bg: #08110f;
  --bg-soft: #0c1714;
  --surface: rgba(17, 31, 27, .76);
  --surface-solid: #101d19;
  --surface-2: #142520;
  --text: #f0f7f4;
  --text-soft: #b9d8cb;
  --muted: #9fb6ad;
  --muted-2: #71887f;
  --body-text: #c0d1cb;
  --border: rgba(176, 223, 204, .13);
  --accent: #74e0a4;
  --accent-rgb: 116 224 164;
  --accent-text: var(--accent);
  --accent-2: #83d9ff;
  --accent-2-rgb: 131 217 255;
  --accent-3: #c9ff72;
  --accent-3-rgb: 201 255 114;
  --danger: #ff9189;
  --danger-rgb: 255 145 137;
  --header-bg: rgba(8,17,15,.72);
  --header-scrolled: rgba(8,17,15,.91);
  --panel-bg: #0d1815;
  --overlay-bg: rgba(2,8,6,.72);
  --interactive-bg: rgba(255,255,255,.035);
  --interactive-hover: rgba(255,255,255,.07);
  --grid-line: rgba(255,255,255,.025);
  --footer-bg: rgba(0,0,0,.12);
  --hero-start: #ffffff;
  --on-accent: #06110d;
  --placeholder: #829b91;
  --pill-text: #bfd0ca;
  --breadcrumb: #789086;
  --shadow: 0 24px 70px rgba(0,0,0,.32);
  --radius: 18px;
  --max: 1180px;
}

:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f6faf8;
  --bg-soft: #edf4f1;
  --surface: rgba(255,255,255,.82);
  --surface-solid: #ffffff;
  --surface-2: #e9f2ee;
  --text: #14231e;
  --text-soft: #405a50;
  --muted: #5c6e67;
  --muted-2: #718079;
  --body-text: #40534b;
  --border: rgba(42,73,61,.15);
  --header-bg: rgba(246,250,248,.78);
  --header-scrolled: rgba(246,250,248,.95);
  --panel-bg: #ffffff;
  --overlay-bg: rgba(226,236,232,.78);
  --interactive-bg: rgba(20,35,30,.035);
  --interactive-hover: rgba(20,35,30,.07);
  --grid-line: rgba(20,35,30,.04);
  --footer-bg: rgba(20,35,30,.025);
  --hero-start: #14231e;
  --on-accent: #07110d;
  --placeholder: #7b8e86;
  --pill-text: #4f625a;
  --breadcrumb: #687b73;
  --shadow: 0 24px 70px rgba(35,70,55,.14);
  --accent-text: #287a51;
}

:root[data-theme="light"][data-accent="phoenix"] { --accent-text:#c94f45; }
:root[data-theme="light"][data-accent="blue"] { --accent-text:#2d72ba; }
:root[data-theme="light"][data-accent="yellow"] { --accent-text:#896300; }
:root[data-theme="light"][data-accent="purple"] { --accent-text:#704cbb; }

:root[data-accent="phoenix"] { --accent:#ff7468; --accent-rgb:255 116 104; --accent-2:#ffb35f; --accent-2-rgb:255 179 95; --accent-3:#ffd36e; --accent-3-rgb:255 211 110; }
:root[data-accent="blue"] { --accent:#68aefc; --accent-rgb:104 174 252; --accent-2:#70dcff; --accent-2-rgb:112 220 255; --accent-3:#9bb8ff; --accent-3-rgb:155 184 255; }
:root[data-accent="yellow"] { --accent:#f2c84b; --accent-rgb:242 200 75; --accent-2:#ff9e64; --accent-2-rgb:255 158 100; --accent-3:#fff08a; --accent-3-rgb:255 240 138; }
:root[data-accent="purple"] { --accent:#b58cff; --accent-rgb:181 140 255; --accent-2:#df83ff; --accent-2-rgb:223 131 255; --accent-3:#8fa9ff; --accent-3-rgb:143 169 255; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 12% -10%, rgb(var(--accent-rgb) / .13), transparent 32rem),
    radial-gradient(circle at 88% 8%, rgb(var(--accent-2-rgb) / .10), transparent 30rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: .28;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(to bottom, black 0, transparent 70%);
}

a { color: inherit; }
img, svg { display: block; }
button, input { font: inherit; }
button { color: inherit; }
::selection { background: rgb(var(--accent-rgb) / .28); }

.skip-link {
  position: fixed; left: 16px; top: -60px; z-index: 999;
  padding: 10px 14px; border-radius: 10px; background: var(--accent); color: var(--on-accent);
  font-weight: 800; text-decoration: none;
}
.skip-link:focus { top: 16px; }

.container { width: min(calc(100% - 36px), var(--max)); margin-inline: auto; }
.icon { width: 1.2em; height: 1.2em; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.site-header {
  position: sticky; top: 0; z-index: 60;
  background: var(--header-bg); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: background .2s ease, border-color .2s ease;
}
.site-header.scrolled { border-color: var(--border); background: var(--header-scrolled); }
.header-inner { min-height: 72px; display: flex; align-items: center; gap: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 850; letter-spacing: -.02em; white-space: nowrap; }
.brand-mark {
  display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--accent), var(--accent-3)); color: var(--on-accent);
  box-shadow: 0 8px 28px rgb(var(--accent-rgb) / .22);
  font-size: 13px; font-weight: 950; letter-spacing: -.05em;
}
.brand-copy small { display:block; color:var(--muted); font-size:10px; line-height:1.1; font-weight:650; letter-spacing:.02em; }
.nav { display:flex; align-items:center; gap:4px; margin-left: 8px; }
.nav a { padding: 8px 10px; border-radius: 9px; color: var(--muted); text-decoration:none; font-size:14px; font-weight:650; }
.nav a:hover, .nav a:focus-visible { background: var(--interactive-bg); color: var(--text); outline:none; }
.nav a.active, .nav a[aria-current] { background:var(--interactive-bg); color:var(--text); font-weight:750; }
.header-actions { display:flex; align-items:center; gap:8px; margin-left:auto; }
.search-trigger {
  display:flex; align-items:center; gap:9px; width: 230px; padding:9px 11px;
  border:1px solid var(--border); border-radius:12px; background:var(--interactive-bg); color:var(--muted); cursor:pointer;
}
.search-trigger:hover, .search-trigger:focus-visible { border-color:rgb(var(--accent-rgb) / .38); background:rgb(var(--accent-rgb) / .055); outline:none; color:var(--text); }
.search-trigger kbd { margin-left:auto; border:1px solid var(--border); border-bottom-color:var(--border); border-radius:6px; padding:1px 6px; font-size:11px; color:var(--muted); background:var(--interactive-bg); }
.icon-button { width:42px; height:42px; display:grid; place-items:center; border:1px solid var(--border); border-radius:12px; background:var(--interactive-bg); cursor:pointer; }
.icon-button:hover, .icon-button:focus-visible { background:var(--interactive-hover); outline:none; }
.menu-button { display:none; }

.hero { position:relative; overflow:hidden; padding: 86px 0 72px; }
.hero::after {
  content:""; position:absolute; left:50%; top:12px; translate:-50% 0; width:min(900px,100%); height:380px; z-index:-1;
  background:radial-gradient(ellipse, rgb(var(--accent-rgb) / .11), transparent 65%); filter:blur(22px);
}
.hero-inner { text-align:center; max-width:850px; margin:auto; }
.eyebrow { display:inline-flex; align-items:center; gap:8px; margin:0 0 18px; padding:7px 11px; border:1px solid var(--border); border-radius:999px; color:var(--text-soft); background:var(--interactive-bg); font-size:13px; font-weight:700; }
.eyebrow-dot { width:7px; height:7px; border-radius:50%; background:var(--accent); box-shadow:0 0 0 5px rgb(var(--accent-rgb) / .09); }
h1 { margin:0; font-size:clamp(42px, 7vw, 78px); line-height:.98; letter-spacing:-.055em; text-wrap:balance; }
.hero h1 span { background:linear-gradient(90deg, var(--hero-start) 15%, var(--accent) 62%, var(--accent-2)); -webkit-background-clip:text; background-clip:text; color:transparent; }
.hero-copy { max-width:690px; margin:24px auto 0; color:var(--muted); font-size:clamp(17px, 2.2vw, 20px); text-wrap:balance; }
.hero-search {
  margin:34px auto 0; max-width:720px; display:flex; align-items:center; gap:12px; padding:13px 14px;
  border:1px solid rgb(var(--accent-rgb) / .25); border-radius:17px; background:var(--surface); box-shadow:var(--shadow), inset 0 1px 0 rgba(255,255,255,.035);
  cursor:text; transition:transform .2s ease, border-color .2s ease;
}
.hero-search:hover, .hero-search:focus-within { transform:translateY(-2px); border-color:rgb(var(--accent-rgb) / .5); }
.hero-search input { width:100%; border:0; outline:0; background:transparent; color:var(--text); font-size:16px; }
.hero-search input::placeholder { color:var(--placeholder); }
.search-hint { color:var(--muted-2); font-size:12px; white-space:nowrap; }
.hero-meta { display:flex; justify-content:center; flex-wrap:wrap; gap:10px 18px; margin:18px 0 0; color:var(--breadcrumb); font-size:12px; }

.section { padding: 70px 0; }
.section-tight { padding-top: 26px; }
.section-head { display:flex; justify-content:space-between; align-items:end; gap:24px; margin-bottom:24px; }
.section-kicker { color:var(--accent-text); font-size:12px; font-weight:850; letter-spacing:.12em; text-transform:uppercase; }
h2 { margin:6px 0 0; font-size:clamp(27px, 4vw, 40px); line-height:1.12; letter-spacing:-.035em; }
.section-head p { max-width:550px; margin:0; color:var(--muted); }

.category-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:14px; }
.category-card {
  position:relative; overflow:hidden; min-height:178px; padding:22px; border:1px solid var(--border); border-radius:var(--radius);
  background:linear-gradient(145deg, var(--interactive-bg), transparent); text-decoration:none;
  transition:transform .2s ease, border-color .2s ease, background .2s ease;
}
.category-card::after { content:""; position:absolute; inset:auto -20% -55% 20%; height:140px; background:radial-gradient(circle, rgb(var(--accent-rgb) / .11), transparent 60%); opacity:0; transition:opacity .2s ease; }
.category-card:hover, .category-card:focus-visible { transform:translateY(-4px); border-color:rgb(var(--accent-rgb) / .34); background:linear-gradient(145deg, rgb(var(--accent-rgb) / .07), transparent); outline:none; }
.category-card:hover::after { opacity:1; }
.category-icon { width:42px; height:42px; display:grid; place-items:center; border-radius:12px; background:rgb(var(--accent-rgb) / .095); color:var(--accent-text); }
.category-card h3 { margin:30px 0 5px; font-size:18px; }
.category-card p { margin:0; color:var(--muted); font-size:14px; }
.category-arrow { position:absolute; top:22px; right:22px; color:var(--muted-2); transition:translate .2s ease, color .2s ease; }
.category-card:hover .category-arrow { translate:3px -3px; color:var(--accent); }

.problem-wrap { border:1px solid var(--border); border-radius:24px; padding:28px; background:var(--interactive-bg); }
.problem-list { display:flex; flex-wrap:wrap; gap:10px; }
.problem-pill { display:inline-flex; align-items:center; gap:8px; padding:10px 13px; border:1px solid var(--border); border-radius:999px; color:var(--pill-text); background:var(--interactive-bg); text-decoration:none; font-size:14px; }
.problem-pill:hover, .problem-pill:focus-visible { color:var(--text); border-color:rgb(var(--accent-rgb) / .35); background:rgb(var(--accent-rgb) / .06); outline:none; }
.problem-pill span { width:6px; height:6px; border-radius:50%; background:var(--accent); opacity:.65; }

.article-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.article-card { display:flex; flex-direction:column; min-height:260px; padding:22px; border:1px solid var(--border); border-radius:var(--radius); background:var(--interactive-bg); text-decoration:none; transition:transform .2s ease,border-color .2s ease,background .2s ease; }
.article-card:hover, .article-card:focus-visible { transform:translateY(-3px); border-color:rgb(var(--accent-2-rgb) / .28); background:var(--interactive-hover); outline:none; }
.article-category { display:inline-flex; align-items:center; gap:7px; color:var(--accent-text); font-size:11px; font-weight:850; letter-spacing:.11em; text-transform:uppercase; }
.article-card h3 { margin:18px 0 10px; font-size:21px; line-height:1.25; letter-spacing:-.02em; }
.article-card p { margin:0; color:var(--muted); font-size:14px; }
.article-more { margin-top:auto; padding-top:24px; color:var(--text-soft); font-size:13px; font-weight:700; }

.start-card { display:grid; grid-template-columns:1.2fr auto; gap:28px; align-items:center; padding:34px; border:1px solid rgb(var(--accent-rgb) / .22); border-radius:24px; background:linear-gradient(120deg,rgb(var(--accent-rgb) / .09),rgb(var(--accent-2-rgb) / .04)); }
.start-card h2 { margin:0 0 9px; }
.start-card p { margin:0; color:var(--muted); max-width:700px; }
.button { display:inline-flex; align-items:center; justify-content:center; gap:9px; min-height:44px; padding:10px 15px; border-radius:12px; background:var(--accent); color:var(--on-accent); text-decoration:none; font-size:14px; font-weight:850; box-shadow:0 12px 30px rgb(var(--accent-rgb) / .14); }
.button:hover, .button:focus-visible { filter:brightness(1.06); outline:3px solid rgb(var(--accent-rgb) / .18); }
.button.secondary { background:var(--interactive-bg); color:var(--text); border:1px solid var(--border); box-shadow:none; }

.site-footer { margin-top:66px; border-top:1px solid var(--border); background:var(--footer-bg); }
.footer-grid { display:grid; grid-template-columns:1.4fr repeat(3,.65fr); gap:48px; padding:52px 0 34px; }
.footer-copy { color:var(--muted); max-width:440px; margin-top:14px; font-size:14px; }
.footer-col h3 { margin:0 0 12px; font-size:13px; }
.footer-col a { display:block; width:max-content; max-width:100%; padding:4px 0; color:var(--muted); text-decoration:none; font-size:14px; }
.footer-col a:hover { color:var(--text); }
.footer-bottom { display:flex; justify-content:space-between; gap:18px; padding:18px 0 28px; border-top:1px solid var(--border); color:var(--muted-2); font-size:12px; }

/* Appearance controls */
.appearance-wrap { position:relative; }
.appearance-popover {
  position:absolute; top:calc(100% + 10px); right:0; width:280px; z-index:80;
  padding:16px; border:1px solid var(--border); border-radius:16px;
  background:var(--panel-bg); box-shadow:var(--shadow); opacity:0; visibility:hidden;
  transform:translateY(-5px) scale(.98); transform-origin:top right;
  transition:opacity .16s ease, transform .16s ease, visibility .16s ease;
}
.appearance-popover.open { opacity:1; visibility:visible; transform:none; }
.appearance-title { margin:0 0 12px; font-size:13px; font-weight:800; }
.appearance-row { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.appearance-row + .appearance-row { margin-top:15px; padding-top:15px; border-top:1px solid var(--border); }
.appearance-label { color:var(--muted); font-size:12px; font-weight:700; }
.mode-options { display:flex; gap:4px; padding:3px; border:1px solid var(--border); border-radius:10px; background:var(--interactive-bg); }
.mode-option { border:0; border-radius:7px; padding:5px 9px; background:transparent; color:var(--muted); cursor:pointer; font-size:12px; font-weight:750; }
.mode-option:hover, .mode-option:focus-visible { color:var(--text); outline:none; }
.mode-option.active { background:var(--surface-2); color:var(--text); box-shadow:0 1px 5px rgba(0,0,0,.12); }
.color-options { display:flex; gap:7px; }
.color-swatch { width:25px; height:25px; padding:0; border:2px solid transparent; border-radius:50%; background:var(--swatch); cursor:pointer; box-shadow:inset 0 0 0 2px var(--panel-bg); }
.color-swatch:hover, .color-swatch:focus-visible { transform:scale(1.08); outline:none; }
.color-swatch.active { border-color:var(--text); }
.sr-only { position:absolute !important; width:1px !important; height:1px !important; padding:0 !important; margin:-1px !important; overflow:hidden !important; clip:rect(0,0,0,0) !important; white-space:nowrap !important; border:0 !important; }

/* Search overlay */
.search-overlay { position:fixed; inset:0; z-index:100; display:none; padding:9vh 18px 30px; background:var(--overlay-bg); backdrop-filter:blur(10px); }
.search-overlay.open { display:block; animation:fade-in .14s ease both; }
.search-panel { width:min(760px,100%); max-height:82vh; margin:auto; overflow:hidden; border:1px solid var(--border); border-radius:20px; background:var(--panel-bg); box-shadow:0 30px 100px rgba(0,0,0,.34); animation:panel-in .18s ease both; }
.search-input-wrap { display:flex; align-items:center; gap:11px; padding:15px 17px; border-bottom:1px solid var(--border); }
.search-input-wrap input { flex:1; min-width:0; border:0; outline:0; background:transparent; color:var(--text); font-size:18px; }
.search-close { border:1px solid var(--border); background:var(--interactive-bg); color:var(--muted); border-radius:8px; padding:5px 8px; cursor:pointer; font-size:12px; }
.search-results { max-height:calc(82vh - 64px); overflow-y:auto; overflow-x:hidden; overscroll-behavior:contain; scrollbar-gutter:stable; padding:10px; }
.search-empty { padding:32px 18px; color:var(--muted); text-align:center; }
.search-result { display:grid; grid-template-columns:38px 1fr auto; gap:13px; align-items:start; padding:13px; border-radius:13px; text-decoration:none; }
.search-result:hover, .search-result:focus-visible, .search-result.active { outline:none; background:var(--interactive-bg); }
.search-result-icon { display:grid; place-items:center; width:38px; height:38px; border-radius:10px; color:var(--accent-text); background:rgb(var(--accent-rgb) / .08); }
.search-result-title { display:block; margin:0; font-size:15px; font-weight:780; line-height:1.35; }
.search-result-desc { display:block; margin:4px 0 0; color:var(--muted); font-size:13px; line-height:1.5; }
.search-result-cat { margin-top:2px; color:var(--muted-2); font-size:10px; font-weight:800; letter-spacing:.08em; text-transform:uppercase; white-space:nowrap; }

/* Inner pages */
.page-hero { padding:68px 0 34px; }
.breadcrumbs { display:flex; align-items:center; flex-wrap:wrap; gap:7px; margin-bottom:18px; color:var(--breadcrumb); font-size:13px; }
.breadcrumbs a { color:var(--muted); text-decoration:none; }
.breadcrumbs a:hover { color:var(--text); }
.page-hero h1 { font-size:clamp(38px,6vw,64px); max-width:900px; }
.page-lead { max-width:760px; margin:20px 0 0; color:var(--muted); font-size:18px; }
.category-page-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.article-shell { display:grid; grid-template-columns:minmax(0,760px) 250px; gap:64px; align-items:start; }
.article-body { padding-bottom:60px; }
.article-body h2 { margin-top:46px; font-size:28px; }
.article-body h3 { margin-top:30px; }
.article-body p, .article-body li { color:var(--body-text); }
.callout { margin:25px 0; padding:18px; border:1px solid rgb(var(--accent-2-rgb) / .19); border-left:3px solid var(--accent-2); border-radius:12px; background:rgb(var(--accent-2-rgb) / .05); }
.callout strong { display:block; margin-bottom:4px; color:var(--text); }
.toc { position:sticky; top:100px; padding:18px; border:1px solid var(--border); border-radius:15px; background:var(--interactive-bg); }
.toc strong { font-size:12px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted); }
.toc a { display:block; margin-top:9px; color:var(--muted); text-decoration:none; font-size:13px; }
.toc a:hover { color:var(--text); }
.badge { display:inline-flex; align-items:center; gap:6px; padding:5px 9px; border-radius:999px; background:rgb(var(--danger-rgb) / .08); border:1px solid rgb(var(--danger-rgb) / .16); color:var(--danger); font-size:11px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }

.reveal { opacity:0; transform:translateY(14px); transition:opacity .55s ease, transform .55s ease; }
.reveal.visible { opacity:1; transform:none; }
@keyframes fade-in { from{opacity:0} to{opacity:1} }
@keyframes panel-in { from{opacity:0; transform:translateY(-8px) scale(.985)} to{opacity:1; transform:none} }

@media (max-width: 980px) {
  .nav { display:none; }
  .search-trigger { width:44px; justify-content:center; }
  .search-trigger span, .search-trigger kbd { display:none; }
  .menu-button { display:grid; }
  .nav.mobile-open { display:flex; position:absolute; left:18px; right:18px; top:68px; padding:10px; flex-direction:column; align-items:stretch; background:var(--panel-bg); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow); }
  .nav.mobile-open a { padding:11px 12px; }
  .category-grid, .article-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .article-shell { grid-template-columns:1fr; gap:20px; }
  .toc { position:static; order:-1; }
}
@media (max-width: 680px) {
  .container { width:min(calc(100% - 26px), var(--max)); }
  .header-inner { min-height:64px; gap:10px; }
  .brand-copy { display:none; }
  .appearance-popover { position:fixed; top:72px; left:13px; right:13px; width:auto; }
  .hero { padding:66px 0 52px; }
  h1 { font-size:clamp(39px,13vw,58px); }
  .hero-copy { font-size:16px; }
  .hero-search { padding:12px; }
  .search-hint { display:none; }
  .section { padding:52px 0; }
  .section-head { align-items:start; flex-direction:column; gap:10px; }
  .category-grid, .article-grid, .category-page-grid { grid-template-columns:1fr; }
  .category-card { min-height:154px; }
  .start-card { grid-template-columns:1fr; padding:25px; }
  .button { width:100%; }
  .footer-grid { grid-template-columns:1fr 1fr; gap:30px; }
  .footer-grid > :first-child { grid-column:1 / -1; }
  .footer-bottom { flex-direction:column; }
  .search-overlay { padding-top:12px; }
  .search-panel { max-height:94vh; }
  .search-results { max-height:calc(94vh - 64px); }
  .search-result { grid-template-columns:38px 1fr; }
  .search-result-cat { display:none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior:auto !important; animation-duration:.01ms !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; }
  .reveal { opacity:1; transform:none; }
}



/* Category / directory page consistency */
.page-hero { padding:68px 0 18px; }
.breadcrumbs { margin-bottom:14px; }
.page-title-row { display:flex; align-items:center; gap:16px; margin-bottom:10px; }
.page-title-row .category-icon { flex:none; margin:0; }
.page-title-row h1 { margin:0; max-width:none; }
.page-lead { margin:10px 0 0; }
.page-hero + .section.section-tight { padding-top:8px; }
.page-hero + .section.section-tight > .container > :first-child { margin-top:0; }
.callout p { margin:6px 0 0; color:var(--body-text); }
.callout p:first-of-type { margin-top:4px; }
.guide-cluster + .guide-cluster { margin-top:38px; }
.section-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:18px; margin-bottom:14px; }
.section-heading h2 { margin:0; font-size:26px; }
.section-heading p, .section-copy { margin:8px 0 0; max-width:760px; color:var(--muted); font-size:15px; line-height:1.55; }
.plugin-jump-nav { margin:0 0 18px; }
.plugin-directory-section { padding:22px 0; border-top:1px solid var(--border); }
.plugin-directory-section:first-of-type { padding-top:12px; border-top:0; }
@media (max-width:680px) {
  .page-title-row { align-items:flex-start; gap:12px; }
  .page-title-row .category-icon { width:38px; height:38px; border-radius:11px; }
  .section-heading h2 { font-size:24px; }
}


/* Article rating and feedback */
.article-feedback {
  margin-top:52px;
  padding-top:26px;
  border-top:1px solid var(--border);
}
.article-rating-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:18px;
}
.article-rating-copy { min-width:0; display:grid; gap:3px; }
.article-rating-copy strong { color:var(--text); font-size:15px; }
.article-rating-status { min-height:18px; color:var(--muted); font-size:12px; }
.article-rating-actions { display:flex; flex-wrap:wrap; gap:8px; }
.article-rating-button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:8px 12px;
  border:1px solid var(--border);
  border-radius:11px;
  background:var(--interactive-bg);
  color:var(--text-soft);
  cursor:pointer;
  font-size:13px;
  font-weight:780;
}
.article-rating-button .icon { width:17px; height:17px; }
.article-rating-button:hover,
.article-rating-button:focus-visible {
  border-color:rgb(var(--accent-rgb) / .35);
  background:rgb(var(--accent-rgb) / .055);
  color:var(--text);
  outline:none;
}
.article-rating-button[aria-pressed="true"] {
  border-color:rgb(var(--accent-rgb) / .48);
  background:rgb(var(--accent-rgb) / .10);
  color:var(--accent-text);
}
.article-feedback-details {
  margin-top:16px;
  border:1px solid var(--border);
  border-radius:13px;
  background:var(--interactive-bg);
  overflow:hidden;
}
.article-feedback-summary {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  min-height:48px;
  padding:12px 14px;
  cursor:pointer;
  list-style:none;
  color:var(--text-soft);
  font-size:13px;
  font-weight:780;
  user-select:none;
}
.article-feedback-summary::-webkit-details-marker { display:none; }
.article-feedback-summary:hover,
.article-feedback-summary:focus-visible { background:var(--interactive-hover); color:var(--text); outline:none; }
.article-feedback-chevron { width:18px; height:18px; flex:0 0 auto; transition:transform .18s ease; }
.article-feedback-details[open] .article-feedback-chevron { transform:rotate(180deg); }
.article-feedback-panel { padding:2px 14px 16px; border-top:1px solid var(--border); }
.article-feedback-panel > p { margin:13px 0 16px; color:var(--muted); font-size:13px; }
.article-feedback-form { display:grid; gap:14px; }
.article-feedback-types { margin:0; padding:0; border:0; }
.article-feedback-types legend,
.article-feedback-message-label { margin:0 0 8px; color:var(--text-soft); font-size:12px; font-weight:800; }
.article-feedback-options { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
.article-feedback-options label {
  display:flex;
  align-items:center;
  gap:9px;
  min-height:42px;
  padding:9px 10px;
  border:1px solid var(--border);
  border-radius:10px;
  background:var(--interactive-bg);
  color:var(--body-text);
  cursor:pointer;
  font-size:12px;
}
.article-feedback-options label:hover { background:var(--interactive-hover); }
.article-feedback-options input { margin:0; accent-color:var(--accent); }
.article-feedback-form textarea {
  width:100%;
  min-height:112px;
  resize:vertical;
  padding:11px 12px;
  border:1px solid var(--border);
  border-radius:11px;
  outline:none;
  background:var(--interactive-bg);
  color:var(--text);
  font:inherit;
  font-size:14px;
  line-height:1.5;
}
.article-feedback-form textarea::placeholder { color:var(--placeholder); }
.article-feedback-form textarea:focus { border-color:rgb(var(--accent-rgb) / .52); box-shadow:0 0 0 3px rgb(var(--accent-rgb) / .10); }
.article-feedback-meta {
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-top:-7px;
  color:var(--muted-2);
  font-size:10px;
  line-height:1.45;
}
.article-feedback-meta span:last-child { white-space:nowrap; }
.article-feedback-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px; }
.article-feedback-actions .button { width:auto; border:0; cursor:pointer; box-shadow:none; }
.article-feedback-submit-status { color:var(--muted); font-size:11px; }

@media (max-width: 680px) {
  .article-rating-row { align-items:stretch; flex-direction:column; }
  .article-rating-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .article-rating-button { width:100%; }
  .article-feedback-options { grid-template-columns:1fr; }
  .article-feedback-actions { align-items:stretch; flex-direction:column; }
  .article-feedback-actions .button { width:100%; }
  .article-feedback-meta { flex-direction:column; gap:4px; }
}

/* Resource calculator */
.resource-tool-spotlight {
  display:grid; grid-template-columns:auto minmax(0,1fr) auto; align-items:center; gap:20px;
  padding:24px; border:1px solid rgb(var(--accent-rgb) / .20); border-radius:22px;
  background:linear-gradient(120deg,rgb(var(--accent-rgb) / .08),rgb(var(--accent-2-rgb) / .035));
  text-decoration:none; transition:border-color .18s ease, transform .18s ease, background .18s ease;
}
.resource-tool-spotlight:hover, .resource-tool-spotlight:focus-visible { border-color:rgb(var(--accent-rgb) / .38); transform:translateY(-2px); outline:none; }
.resource-tool-icon { display:grid; place-items:center; width:52px; height:52px; border-radius:15px; color:var(--accent-text); background:rgb(var(--accent-rgb) / .10); }
.resource-tool-icon .icon { width:25px; height:25px; }
.resource-tool-copy { min-width:0; display:grid; gap:4px; }
.resource-tool-copy strong { font-size:20px; line-height:1.25; letter-spacing:-.02em; }
.resource-tool-copy > span:last-child { color:var(--muted); font-size:14px; }
.resource-tool-action { display:flex; align-items:center; gap:6px; color:var(--text-soft); font-size:13px; font-weight:800; white-space:nowrap; }

.tool-list-card { display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:16px; align-items:center; min-height:120px; padding:22px; border:1px solid var(--border); border-radius:18px; background:var(--surface); text-decoration:none; }
.tool-list-card:hover, .tool-list-card:focus-visible { outline:none; border-color:rgb(var(--accent-rgb) / .30); background:var(--interactive-hover); }
.tool-list-card h3 { margin:0 0 5px; font-size:19px; }
.tool-list-card p { margin:0; color:var(--muted); font-size:14px; }
.tool-list-card .category-icon { margin:0; }
.tool-status { display:inline-flex; padding:4px 8px; border-radius:999px; color:var(--accent-text); background:rgb(var(--accent-rgb) / .08); font-size:10px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }

.calculator-page-hero { padding-bottom:28px; }
.calculator-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:20px; }
.calculator-meta span { padding:5px 9px; border:1px solid var(--border); border-radius:999px; color:var(--muted); background:var(--interactive-bg); font-size:11px; font-weight:750; }
.calculator-layout { display:grid; grid-template-columns:minmax(0,1.15fr) minmax(330px,.85fr); gap:26px; align-items:start; }
.calculator-panel, .estimate-panel { border:1px solid var(--border); border-radius:22px; background:var(--surface); }
.calculator-panel { padding:24px; }
.estimate-panel { position:sticky; top:96px; overflow:hidden; }
.calculator-intro { margin-bottom:22px; }
.calculator-intro h2 { margin:0 0 6px; font-size:23px; }
.calculator-intro p { margin:0; color:var(--muted); font-size:14px; }
.calculator-section { padding:22px 0; border-top:1px solid var(--border); }
.calculator-section:first-of-type { border-top:0; padding-top:0; }
.calculator-section h3, .calculator-section summary { margin:0 0 14px; font-size:14px; font-weight:850; letter-spacing:.01em; }
.calculator-section summary { display:flex; align-items:center; justify-content:space-between; gap:12px; cursor:pointer; list-style:none; }
.calculator-section summary::-webkit-details-marker { display:none; }
.calculator-section summary::after { content:'+'; color:var(--accent-text); font-size:20px; line-height:1; }
.calculator-section[open] summary::after { content:'−'; }
.form-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.form-field { min-width:0; display:grid; gap:7px; }
.form-field.full { grid-column:1 / -1; }
.form-field label, .field-label { color:var(--text-soft); font-size:12px; font-weight:800; }
.field-help { color:var(--muted-2); font-size:11px; line-height:1.45; }
.form-field input[type="number"], .form-field input[type="text"], .form-field select {
  width:100%; min-height:44px; padding:9px 11px; border:1px solid var(--border); border-radius:11px;
  outline:none; background:var(--interactive-bg); color:var(--text); font-size:14px;
}
.form-field input:focus, .form-field select:focus { border-color:rgb(var(--accent-rgb) / .52); box-shadow:0 0 0 3px rgb(var(--accent-rgb) / .10); }
.form-field select option { color:#111; }
.check-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:16px; }
.check-option { display:flex; align-items:flex-start; gap:9px; min-height:44px; padding:11px; border:1px solid var(--border); border-radius:11px; background:var(--interactive-bg); cursor:pointer; }
.check-option input { margin-top:3px; accent-color:var(--accent); }
.check-option span { display:grid; gap:1px; font-size:13px; font-weight:720; }
.check-option small { color:var(--muted-2); font-size:10px; font-weight:600; }
.calculator-actions { display:flex; gap:10px; align-items:center; justify-content:space-between; padding-top:20px; border-top:1px solid var(--border); }
.calculator-actions .button { width:auto; border:0; cursor:pointer; }
.text-button { border:0; padding:8px 4px; background:transparent; color:var(--muted); cursor:pointer; font-size:12px; font-weight:750; }
.text-button:hover, .text-button:focus-visible { color:var(--text); outline:none; }

.estimate-head { padding:21px 22px 18px; border-bottom:1px solid var(--border); background:linear-gradient(135deg,rgb(var(--accent-rgb) / .08),transparent); }
.estimate-head-row { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.estimate-head h2 { margin:0; font-size:18px; }
.estimate-beta { padding:4px 8px; border-radius:999px; background:rgb(var(--accent-rgb) / .10); color:var(--accent-text); font-size:10px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.estimate-head p { margin:7px 0 0; color:var(--muted); font-size:12px; }
.estimate-primary { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); }
.estimate-stat { min-width:0; padding:19px 20px; border-bottom:1px solid var(--border); }
.estimate-stat:nth-child(odd) { border-right:1px solid var(--border); }
.estimate-label { display:block; margin-bottom:4px; color:var(--muted-2); font-size:10px; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.estimate-value { display:block; color:var(--text); font-size:21px; font-weight:900; letter-spacing:-.025em; line-height:1.2; overflow-wrap:anywhere; }
.estimate-sub { display:block; margin-top:4px; color:var(--muted); font-size:11px; line-height:1.4; }
.meter { height:5px; margin-top:10px; overflow:hidden; border-radius:99px; background:var(--interactive-hover); }
.meter > span { display:block; height:100%; width:40%; border-radius:inherit; background:linear-gradient(90deg,var(--accent),var(--accent-2)); transition:width .2s ease; }
.estimate-section { padding:18px 20px; border-bottom:1px solid var(--border); }
.estimate-section:last-child { border-bottom:0; }
.estimate-section h3 { margin:0 0 11px; font-size:12px; text-transform:uppercase; letter-spacing:.08em; color:var(--muted); }
.factor-list, .warning-list, .port-list { display:grid; gap:8px; margin:0; padding:0; list-style:none; }
.factor-row { display:grid; grid-template-columns:minmax(0,1fr) 76px; align-items:center; gap:10px; }
.factor-row span:first-child { min-width:0; color:var(--text-soft); font-size:12px; }
.factor-bar { height:5px; overflow:hidden; border-radius:99px; background:var(--interactive-hover); }
.factor-bar i { display:block; height:100%; border-radius:inherit; background:var(--accent); }
.warning-item { padding:10px 11px; border:1px solid rgb(var(--danger-rgb) / .15); border-radius:10px; background:rgb(var(--danger-rgb) / .05); color:var(--body-text); font-size:11px; line-height:1.45; }
.warning-item.note { border-color:rgb(var(--accent-2-rgb) / .16); background:rgb(var(--accent-2-rgb) / .05); }
.port-item { display:flex; align-items:flex-start; justify-content:space-between; gap:16px; padding:8px 0; border-bottom:1px solid var(--border); font-size:11px; }
.port-item:last-child { border-bottom:0; }
.port-item strong { color:var(--text-soft); }
.port-item span { color:var(--muted); text-align:right; }
.estimate-disclaimer { margin:0; color:var(--muted-2); font-size:10px; line-height:1.5; }
.validation-message { min-height:18px; margin:8px 0 0; color:var(--danger); font-size:11px; }
.is-hidden { display:none !important; }

.methodology-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.method-card { padding:20px; border:1px solid var(--border); border-radius:16px; background:var(--interactive-bg); }
.method-card h3 { margin:0 0 7px; font-size:15px; }
.method-card p { margin:0; color:var(--muted); font-size:12px; }
.method-card a { color:var(--accent-text); font-weight:750; }

@media (max-width: 1060px) {
  .calculator-layout { grid-template-columns:1fr; }
  .estimate-panel { position:static; }
}
@media (max-width: 680px) {
  .resource-tool-spotlight { grid-template-columns:auto minmax(0,1fr); }
  .resource-tool-action { grid-column:1 / -1; padding-left:68px; }
  .calculator-panel { padding:18px; }
  .form-grid, .check-grid, .methodology-grid { grid-template-columns:1fr; }
  .form-field.full { grid-column:auto; }
  .estimate-primary { grid-template-columns:1fr; }
  .estimate-stat:nth-child(odd) { border-right:0; }
  .calculator-actions { align-items:stretch; flex-direction:column-reverse; }
  .calculator-actions .button { width:100%; }
}

@media (max-width: 1120px) {
  .nav { display:none; }
  .search-trigger { width:44px; justify-content:center; }
  .search-trigger span, .search-trigger kbd { display:none; }
  .menu-button { display:grid; }
  .nav.mobile-open { display:flex; position:absolute; left:18px; right:18px; top:68px; padding:10px; flex-direction:column; align-items:stretch; background:var(--panel-bg); border:1px solid var(--border); border-radius:14px; box-shadow:var(--shadow); }
  .nav.mobile-open a { padding:11px 12px; }
}

/* Custom 404 page */
.error-page {
  min-height: 62vh;
  display: grid;
  align-items: center;
  padding: 72px 0 54px;
}
.error-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, .95fr);
  gap: 46px;
  align-items: center;
}
.error-code {
  margin: 0 0 12px;
  color: var(--accent-text);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
}
.error-copy h1 {
  max-width: 720px;
  font-size: clamp(42px, 7vw, 76px);
}
.error-copy > p:not(.error-code) {
  max-width: 620px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.error-actions button.button {
  border: 0;
  cursor: pointer;
}
.error-return {
  margin-top: 18px;
  color: var(--muted-2);
  font-size: 12px;
}
.error-return button {
  margin-left: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-text);
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}
.error-return button:hover,
.error-return button:focus-visible {
  text-decoration: underline;
  outline: none;
}
.error-visual {
  position: relative;
  width: min(100%, 430px);
  aspect-ratio: 1 / .82;
  justify-self: end;
  display: grid;
  place-items: center;
  border: 1px solid var(--border);
  border-radius: 26px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgb(var(--accent-rgb) / .09), transparent 55%),
    var(--surface);
}
.error-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .42;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px);
  background-size: 24px 24px;
}
.error-blocks {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 68px);
  grid-template-rows: repeat(2, 68px);
  gap: 7px;
  transform: rotate(-2deg);
}
.error-block {
  display: grid;
  place-items: center;
  border: 1px solid rgb(var(--accent-rgb) / .20);
  background: rgb(var(--accent-rgb) / .09);
  color: var(--text);
  font-size: 29px;
  font-weight: 950;
  line-height: 1;
  box-shadow: inset 0 0 0 5px rgb(var(--accent-rgb) / .035);
}
.error-block:nth-child(2),
.error-block:nth-child(5) {
  border-color: rgb(var(--accent-2-rgb) / .20);
  background: rgb(var(--accent-2-rgb) / .07);
}
.error-block.empty {
  border-style: dashed;
  color: var(--muted-2);
  background: transparent;
}
.error-visual-label {
  position: absolute;
  right: 18px;
  bottom: 16px;
  left: 18px;
  color: var(--muted-2);
  font-size: 11px;
  text-align: center;
}

@media (max-width: 820px) {
  .error-page { padding-top: 54px; }
  .error-layout { grid-template-columns: 1fr; gap: 34px; }
  .error-visual { justify-self: start; width: min(100%, 390px); }
}
@media (max-width: 480px) {
  .error-actions { flex-direction: column; }
  .error-actions .button { width: 100%; }
  .error-blocks { grid-template-columns: repeat(3, 54px); grid-template-rows: repeat(2, 54px); gap: 6px; }
  .error-block { font-size: 23px; }
}


/* Beginner guide content */
.article-meta { display:flex; flex-wrap:wrap; gap:8px 14px; margin:0 0 14px; color:var(--muted-2); font-size:12px; font-weight:700; }
.article-meta span + span::before { content:"•"; margin-right:14px; color:var(--border); }
.article-body h2 { scroll-margin-top:100px; }
.article-body h2:first-child { margin-top:8px; }
.article-body p { margin:12px 0 0; }
.article-body ul, .article-body ol { margin:12px 0 0; padding-left:1.35rem; }
.article-body li + li { margin-top:7px; }
.article-body code { padding:.12em .38em; border:1px solid var(--border); border-radius:6px; background:var(--interactive-bg); color:var(--text-soft); font: .92em/1.4 ui-monospace,SFMono-Regular,Consolas,"Liberation Mono",monospace; }
.article-body pre { margin:16px 0; overflow:auto; padding:16px 18px; border:1px solid var(--border); border-radius:13px; background:rgba(0,0,0,.18); }
:root[data-theme="light"] .article-body pre { background:rgba(20,35,30,.035); }
.article-body pre code { padding:0; border:0; background:transparent; color:var(--text); font-size:13px; }
.table-wrap { margin:17px 0; overflow:auto; border:1px solid var(--border); border-radius:13px; }
.article-body table { width:100%; border-collapse:collapse; min-width:560px; font-size:13px; }
.article-body th, .article-body td { padding:11px 13px; border-bottom:1px solid var(--border); text-align:left; vertical-align:top; color:var(--body-text); }
.article-body th { background:var(--interactive-bg); color:var(--text); font-size:12px; }
.article-body tr:last-child td { border-bottom:0; }
.callout.warning { border-color:rgb(var(--danger-rgb) / .22); border-left-color:var(--danger); background:rgb(var(--danger-rgb) / .055); }
.quick-steps { margin:16px 0; padding:16px 18px; border:1px solid var(--border); border-radius:13px; background:var(--interactive-bg); }
.quick-steps ol { margin:0; }
.source-list { padding-left:1.15rem; }
.source-list a { color:var(--accent-text); text-underline-offset:3px; }
.related-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px; margin-top:15px; }
.related-link { display:grid; gap:4px; padding:14px; border:1px solid var(--border); border-radius:12px; background:var(--interactive-bg); text-decoration:none; }
.related-link:hover, .related-link:focus-visible { border-color:rgb(var(--accent-rgb) / .34); outline:none; }
.related-link strong { color:var(--text); font-size:13px; }
.related-link span { color:var(--muted); font-size:12px; line-height:1.45; }
.guide-index-meta { display:flex; flex-wrap:wrap; gap:8px; margin-top:18px; color:var(--muted-2); font-size:12px; }
.guide-cluster + .guide-cluster { margin-top:48px; }
.cluster-heading { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:14px; }
.cluster-heading h2 { font-size:26px; }
.cluster-heading span { color:var(--muted-2); font-size:12px; }
@media (max-width:680px) { .article-meta span + span::before { display:none; } .related-grid { grid-template-columns:1fr; } .article-body table { min-width:520px; } }


/* MSH plugin directory */
.plugin-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.plugin-title-row h1{margin-right:2px}.plugin-price-tag{display:inline-flex;align-items:center;padding:5px 9px;border-radius:999px;border:1px solid rgb(var(--accent-2-rgb)/.24);background:rgb(var(--accent-2-rgb)/.08);color:var(--accent-2);font-size:11px;font-weight:800;letter-spacing:.045em;white-space:nowrap}.plugin-official-link{margin-top:20px}.plugin-jump-nav{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 32px}.plugin-jump-nav a{padding:7px 10px;border:1px solid var(--border);border-radius:999px;text-decoration:none;color:var(--muted);font-size:12px}.plugin-jump-nav a:hover{border-color:rgb(var(--accent-2-rgb)/.3);color:var(--text)}.plugin-directory-section{padding:30px 0;border-top:1px solid var(--border)}.plugin-directory-section:first-of-type{border-top:0}.plugin-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.plugin-card{display:block;padding:17px;border:1px solid var(--border);border-radius:13px;background:var(--interactive-bg);text-decoration:none;transition:transform .18s ease,border-color .18s ease,background .18s ease}.plugin-card:hover,.plugin-card:focus-visible{transform:translateY(-2px);border-color:rgb(var(--accent-2-rgb)/.27);background:var(--interactive-hover);outline:none}.plugin-card-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:10px}.plugin-card h3{margin:0;font-size:18px;line-height:1.25;color:var(--text)}.plugin-card p{margin:10px 0 0;color:var(--muted);font-size:13px;line-height:1.55}.gamemode-card-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.gamemode-card{display:block;padding:18px;border:1px solid var(--border);border-radius:13px;background:var(--interactive-bg);text-decoration:none}.gamemode-card h3{margin:0 0 8px;color:var(--text)}.gamemode-card p{margin:0 0 12px;color:var(--muted);font-size:13px}.gamemode-card span{color:var(--accent-2);font-size:12px;font-weight:750}.plugin-facts th{width:34%}@media(max-width:900px){.plugin-card-grid,.gamemode-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:620px){.plugin-card-grid,.gamemode-card-grid{grid-template-columns:1fr}.plugin-card{padding:15px}.plugin-title-row{align-items:flex-start}}


/* Semantic plugin pricing tags: fixed meaning regardless of the user's accent color. */
.plugin-price-tag.price-free{border-color:rgb(76 201 121/.38);background:rgb(76 201 121/.11);color:#79dfa0}
.plugin-price-tag.price-free-premium{border-color:rgb(79 158 255/.42);background:rgb(79 158 255/.11);color:#7cbbff}
.plugin-price-tag.price-paid-open-source{border-color:rgb(232 190 62/.42);background:rgb(232 190 62/.11);color:#f0c957}
.plugin-price-tag.price-paid{border-color:rgb(239 90 84/.42);background:rgb(239 90 84/.11);color:#ff918a}
html[data-theme="light"] .plugin-price-tag.price-free{color:#16733d;border-color:rgb(22 115 61/.30);background:rgb(22 115 61/.08)}
html[data-theme="light"] .plugin-price-tag.price-free-premium{color:#1f63a9;border-color:rgb(31 99 169/.30);background:rgb(31 99 169/.08)}
html[data-theme="light"] .plugin-price-tag.price-paid-open-source{color:#806000;border-color:rgb(128 96 0/.30);background:rgb(128 96 0/.08)}
html[data-theme="light"] .plugin-price-tag.price-paid{color:#aa3732;border-color:rgb(170 55 50/.30);background:rgb(170 55 50/.08)}

/* Collapsible explanation on the authentication section. */
.auth-explainer{padding:0;overflow:hidden}
.auth-explainer summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px;cursor:pointer;list-style:none;color:var(--text);font-weight:800}
.auth-explainer summary::-webkit-details-marker{display:none}
.auth-explainer summary::after{content:'+';flex:0 0 auto;color:var(--danger);font-size:20px;font-weight:700;line-height:1}
.auth-explainer[open] summary::after{content:'−'}
.auth-explainer[open] summary{border-bottom:1px solid rgb(var(--danger-rgb)/.16)}
.auth-explainer-body{padding:16px 18px 18px}
.auth-explainer-body>:first-child{margin-top:0}
.auth-explainer-body>:last-child{margin-bottom:0}


/* MSH reusable card system — fixed component structure, data-driven content. */
.related-card-grid { margin-top:15px; }

.plugin-card { display:flex; flex-direction:column; min-width:0; height:100%; }
.plugin-card-heading { display:grid; grid-template-columns:minmax(0,1fr) max-content; align-items:start; gap:8px 10px; min-width:0; }
.plugin-card h3 { min-width:0; overflow-wrap:anywhere; word-break:normal; }
.plugin-price-tag { flex:0 0 auto; max-width:100%; }

/* Gamemode articles have a narrower content column because of the TOC.
   Two columns keeps plugin names and pricing badges readable. */
.article-body .plugin-card-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }

@media (max-width:680px) {
  .article-body .plugin-card-grid { grid-template-columns:1fr; }
}

/* Cloudflare Turnstile for article feedback */
.article-feedback-turnstile {
  min-height: 0;
  overflow: hidden;
  border-radius: 10px;
}
.article-feedback-form button:disabled,
.article-rating-button:disabled {
  cursor: wait;
  opacity: .62;
}


/* Basic site pages */
.basic-page-hero { padding-bottom:26px; }
.policy-body > :first-child { margin-top:0; }
.policy-body a { color:var(--accent-text); text-underline-offset:3px; }
.policy-updated { margin:0 0 28px !important; color:var(--muted-2) !important; font-size:12px; }
.site-feedback-card { margin:18px 0 34px; padding:20px; border:1px solid var(--border); border-radius:16px; background:var(--interactive-bg); }
.site-feedback-card .article-feedback-form { margin:0; }
@media (max-width:680px) { .site-feedback-card { padding:16px; } }
@media (max-width:480px) { .footer-grid { grid-template-columns:1fr; } .footer-grid > :first-child { grid-column:auto; } }


/* Compact category directories: show four cards until the visitor asks for more. */
.guide-cluster,.plugin-directory-section,.software-directory-section{scroll-margin-top:92px}
.section-extra-card{display:none!important}
.is-expanded .section-extra-card{display:block!important}
.section-expand-button{display:flex;align-items:center;justify-content:center;gap:7px;width:100%;margin:14px 0 0;padding:10px 14px;border:1px solid var(--border);border-radius:11px;background:var(--interactive-bg);color:var(--muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer;transition:border-color .18s ease,background .18s ease,color .18s ease}
.section-expand-button:hover,.section-expand-button:focus-visible{border-color:rgb(var(--accent-2-rgb)/.3);background:var(--interactive-hover);color:var(--text);outline:none}
.category-jump-nav{margin-top:24px}
@media(max-width:620px){.section-expand-button{padding:11px 12px}.category-jump-nav{gap:7px}.category-jump-nav a{font-size:11px}}


/* Floating back-to-top control */
.back-to-top{position:fixed;right:clamp(14px,2.4vw,28px);bottom:clamp(14px,2.4vw,28px);z-index:45;width:44px;height:44px;display:grid;place-items:center;border:1px solid var(--border);border-radius:999px;background:var(--surface);color:var(--text);box-shadow:0 10px 30px rgba(0,0,0,.18);opacity:0;visibility:hidden;transform:translateY(8px);pointer-events:none;cursor:pointer;transition:opacity .16s ease,transform .16s ease,visibility .16s,border-color .16s ease,background .16s ease}.back-to-top.is-visible{opacity:1;visibility:visible;transform:none;pointer-events:auto}.back-to-top:hover,.back-to-top:focus-visible{border-color:rgb(var(--accent-rgb)/.42);background:var(--interactive-hover);outline:none}.back-to-top .icon{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}@media(max-width:620px){.back-to-top{width:42px;height:42px;right:12px;bottom:12px}}@media(prefers-reduced-motion:reduce){.back-to-top{transition:none}}
