@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@500;600;700&display=swap');

/* ══ RESET & VARS ══ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:         #e9edf5;
  --surface:    #ffffff;
  --surface2:   #f3f5fa;
  --border:     #c3cadb;
  --ink:        #0f1422;
  --muted:      #4f5b78;
  --accent:     #2a4fd6;
  --accent2:    #d4380d;
  --gold:       #b08c00;
  --green:      #1a7a4a;
  --red:        #c0392b;
  --heading:    #0b1020;
  --rule:       #c3cadb;
  --nav-h:      60px;
}

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(17px, 2.2vw, 20px);
  line-height: 1.82;
  padding-top: var(--nav-h);
}

/* ══ TOP NAV ══ */
.topnav {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  background: #0d1120;
  border-bottom: 1px solid rgba(255,255,255,0.07);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(12px, 3vw, 28px);
  z-index: 1000;
  gap: 12px;
}

/* Left menu buttons */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.nav-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(238,241,252,0.5);
  background: transparent;
  border: 1px solid rgba(255,255,255,0.1);
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  text-decoration: none;
}
.nav-btn:hover {
  color: #eef1fc;
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.22);
}
.nav-btn.active {
  color: #fff;
  background: var(--accent);
  border-color: var(--accent);
}
.nav-btn .icon { font-size: 15px; }

/* Nav brand center */
.nav-brand {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(238,241,252,0.25);
  flex: 1;
  text-align: center;
  pointer-events: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Right language switcher */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-shrink: 0;
}
.lang-btn {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(238,241,252,0.4);
  background: transparent;
  border: 1px solid transparent;
  padding: 5px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.18s;
}
.lang-btn:hover {
  color: #eef1fc;
  background: rgba(255,255,255,0.07);
}
.lang-btn.active {
  color: #9db6ff;
  border-color: rgba(136,170,255,0.3);
  background: rgba(42,79,214,0.18);
}

/* ══ HEADER ══ */
header {
  background: linear-gradient(135deg, #141824 0%, #1e2640 60%, #0f1a38 100%);
  position: relative;
  overflow: hidden;
}
header::before {
  content: '';
  position: absolute; top: 0; right: 0;
  width: 50%; height: 100%;
  background: repeating-linear-gradient(
    -55deg,
    transparent, transparent 18px,
    rgba(42,79,214,0.07) 18px, rgba(42,79,214,0.07) 19px
  );
  pointer-events: none;
}
header::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent) 0%, #6b8ef5 50%, var(--accent2) 100%);
}

.header-inner {
  width: min(1380px, 92vw);
  max-width: none;
  margin: 0 auto;
  padding: clamp(40px, 8vw, 78px) 0 clamp(36px, 7vw, 66px);
  position: relative;
  z-index: 1;
}

.header-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 24px;
}
.header-kicker-line {
  width: 32px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}
.header-kicker-text {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: #7a9bff;
}

h1 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(26px, 5.2vw, 54px);
  font-weight: 900;
  line-height: 1.08;
  color: #eef1fc;
  margin-bottom: 20px;
  letter-spacing: -0.025em;
}
h1 .mono-tag {
  display: inline-block;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.85em;
  font-weight: 400;
  color: #9db6ff;
  background: rgba(42,79,214,0.18);
  border: 1px solid rgba(42,79,214,0.35);
  padding: 2px 12px;
  border-radius: 6px;
  letter-spacing: 0;
}
.header-sub {
  font-size: clamp(15px, 2vw, 17px);
  font-style: italic;
  color: rgba(238,241,252,0.58);
  max-width: min(760px, 100%);
  line-height: 1.65;
  margin-bottom: 26px;
}
.header-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.header-badges span {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: rgba(238,241,252,0.55);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  padding: 5px 13px;
  border-radius: 4px;
}

/* ══ LAYOUT ══ */
.container {
  width: min(1380px, 92vw);
  max-width: none;
  margin: clamp(22px, 4vw, 44px) auto;
  padding: clamp(28px, 5vw, 64px) clamp(18px, 4vw, 56px);
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 10px 34px rgba(20,24,36,0.08);
}

/* Content panels */
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* ══ TOC ══ */
.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: clamp(20px, 4vw, 34px) clamp(18px, 4vw, 38px);
  margin-bottom: 60px;
  box-shadow: 0 2px 24px rgba(20,24,36,0.07);
}
.toc-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.toc-icon-box {
  width: 38px; height: 38px;
  background: var(--accent);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}
.toc-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
}
.toc-subtitle {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  margin-top: 2px;
}
.toc ol {
  padding-left: 0;
  list-style: none;
  counter-reset: toc;
  columns: 2;
  column-gap: 36px;
}
.toc li {
  counter-increment: toc;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 7px 0;
  break-inside: avoid;
}
.toc li::before {
  content: counter(toc, decimal-leading-zero);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(42,79,214,0.08);
  padding: 1px 7px;
  border-radius: 4px;
  flex-shrink: 0;
  margin-top: 3px;
}
.toc a {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  transition: color 0.2s;
  line-height: 1.5;
}
.toc a:hover { color: var(--accent); }

/* ══ SECTIONS ══ */
section {
  margin-bottom: 64px;
  padding-bottom: 64px;
  border-bottom: 1px solid var(--rule);
}
section:last-of-type { border-bottom: none; }

.section-label {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}
.section-label::before {
  content: '';
  display: inline-block;
  width: 22px; height: 2px;
  background: var(--accent);
  border-radius: 1px;
}

h2 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(24px, 3.2vw, 38px);
  font-weight: 900;
  line-height: 1.18;
  color: var(--heading);
  margin-bottom: 24px;
  letter-spacing: -0.015em;
}
h3 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #39435d;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-top: 36px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}
p { margin-bottom: 18px; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 700; color: var(--heading); }

/* ══ CALLOUTS ══ */
.callout {
  border-radius: 8px;
  padding: clamp(14px, 3vw, 20px) clamp(14px, 3vw, 22px);
  margin: 24px 0;
  font-size: 16px;
  font-family: 'Inter', Arial, sans-serif;
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border-width: 1px;
  border-style: solid;
}
.callout-icon { font-size: 20px; flex-shrink: 0; line-height: 1.5; }
.callout-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}
.callout-safe   { background: #f0faf5; border-color: #86efac; }
.callout-safe   .callout-label { color: var(--green); }
.callout-warn   { background: #fffbf0; border-color: #fcd34d; }
.callout-warn   .callout-label { color: #92600a; }
.callout-danger { background: #fef5f5; border-color: #fca5a5; }
.callout-danger .callout-label { color: var(--red); }
.callout-info   { background: #f0f4ff; border-color: #93c5fd; }
.callout-info   .callout-label { color: var(--accent); }

/* ══ CODE ══ */
code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.9em;
  background: rgba(42,79,214,0.10);
  color: #173db8;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(42,79,214,0.15);
}
pre {
  background: #0f1422;
  color: #d8e1ff;
  padding: clamp(18px, 3vw, 28px) clamp(18px, 3vw, 30px);
  border-radius: 12px;
  overflow-x: auto;
  font-size: 15px;
  line-height: 1.65;
  margin: 22px 0;
  border: 1px solid rgba(42,79,214,0.2);
}
.pre-label {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: rgba(200,212,255,0.35);
  margin-bottom: 12px;
  display: block;
}
pre code {
  background: none;
  padding: 0;
  border: none;
  color: #9db6ff;
  font-size: inherit;
}

/* ══ TABLES — desktop ══ */
.table-wrap {
  overflow-x: auto;
  margin: 24px 0;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(20,24,36,0.05);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  min-width: 340px;
}
thead th {
  background: var(--ink);
  color: #eef1fc;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 13px 16px;
  text-align: left;
}
tbody tr:nth-child(even) { background: var(--surface2); }
tbody tr { transition: background 0.14s; }
tbody tr:hover { background: #dce3f8; }
tbody td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
  line-height: 1.55;
}
tbody tr:last-child td { border-bottom: none; }

/* ══ STEPS ══ */
ol.steps {
  padding: 0;
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
ol.steps li {
  counter-increment: steps;
  position: relative;
  display: block;
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: 14px 18px 14px 64px;
  min-height: 58px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 1em;
  line-height: 1.75;
  text-align: left;
  overflow-wrap: anywhere;
  transition: border-left-color 0.2s, box-shadow 0.2s;
}
ol.steps li:hover {
  border-left-color: var(--accent2);
  box-shadow: 0 4px 16px rgba(20,24,36,0.08);
}
ol.steps li::before {
  content: counter(steps);
  position: absolute;
  left: 18px;
  top: 14px;
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 900;
  font-size: 15px;
  width: 30px;
  height: 30px;
  background: var(--accent);
  color: #fff;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

@media (max-width: 480px) {
  ol.steps li {
    padding: 12px 14px 12px 54px;
    min-height: 52px;
    line-height: 1.65;
  }

  ol.steps li::before {
    left: 14px;
    top: 12px;
    width: 28px;
    height: 28px;
    font-size: 13px;
  }
}

/* ══ PROS / CONS ══ */
.pc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin: 24px 0;
}
.pc-card {
  border-radius: 12px;
  padding: clamp(18px, 4vw, 26px) clamp(16px, 4vw, 28px);
  border: 1px solid var(--border);
}
.pc-card.pros {
  background: linear-gradient(160deg, #f0faf5 0%, #e6f7ed 100%);
  border-top: 4px solid var(--green);
}
.pc-card.cons {
  background: linear-gradient(160deg, #fef5f5 0%, #fce8e8 100%);
  border-top: 4px solid var(--red);
}
.pc-card h4 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 7px;
}
.pc-card.pros h4 { color: var(--green); }
.pc-card.cons h4 { color: var(--red); }
ul.pclist { list-style: none; padding: 0; }
ul.pclist li {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  align-items: flex-start;
  line-height: 1.55;
}
ul.pclist li::before { font-size: 13px; flex-shrink: 0; margin-top: 2px; font-weight: 700; }
.pros ul.pclist li::before { content: '✓'; color: var(--green); }
.cons ul.pclist li::before { content: '✗'; color: var(--red); }

/* ══ FAQ ══ */
.faq-wrap { display: flex; flex-direction: column; gap: 4px; }
details {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}
details[open] {
  box-shadow: 0 4px 20px rgba(42,79,214,0.08);
  border-color: rgba(42,79,214,0.3);
}
summary {
  font-family: 'Inter', Arial, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: var(--heading);
  padding: 18px 22px;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
  transition: background 0.15s;
}
summary:hover { background: var(--surface2); }
summary::-webkit-details-marker { display: none; }
.faq-q-badge {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  flex-shrink: 0;
  letter-spacing: 0.06em;
}
.faq-arrow {
  margin-left: auto;
  font-size: 13px;
  color: var(--muted);
  transition: transform 0.25s;
  flex-shrink: 0;
}
details[open] .faq-arrow { transform: rotate(180deg); }
.faq-a {
  padding: 16px 22px 18px 52px;
  font-size: 15px;
  font-family: 'Inter', Arial, sans-serif;
  color: var(--ink);
  border-top: 1px solid var(--border);
  background: var(--surface2);
  line-height: 1.8;
}

/* ══ CONCLUSION ══ */
.conclusion-box {
  background: var(--ink);
  border-radius: 16px;
  padding: clamp(26px, 6vw, 44px) clamp(22px, 6vw, 48px);
  margin-top: 32px;
  position: relative;
  overflow: hidden;
  color: #eef1fc;
}
.conclusion-box::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 90% 10%, rgba(42,79,214,0.3) 0%, transparent 55%),
    radial-gradient(circle at 10% 90%, rgba(212,56,13,0.15) 0%, transparent 50%);
  pointer-events: none;
}
.conclusion-box-inner { position: relative; z-index: 1; }
.conclusion-box h3 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9db6ff;
  margin-bottom: 12px;
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}
.conclusion-box h3::after { background: rgba(136,170,255,0.25); }
.conclusion-box p { color: rgba(238,241,252,0.78); font-size: 16px; line-height: 1.75; }
.conclusion-box strong { color: #eef1fc; }

/* ══ PAGINATION ══ */
.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(4px, 1.5vw, 10px);
  padding: clamp(28px, 6vw, 52px) clamp(16px, 4vw, 36px);
  background: var(--surface);
  border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.pg-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  min-width: 38px;
  height: 38px;
  padding: 0 8px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--muted);
  cursor: pointer;
  transition: all 0.18s;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.pg-btn:hover:not(:disabled):not(.active) {
  background: var(--surface2);
  color: var(--accent);
  border-color: var(--accent);
}
.pg-btn.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(42,79,214,0.35);
}
.pg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pg-btn.pg-prev,
.pg-btn.pg-next {
  gap: 5px;
  padding: 0 14px;
}
.pg-ellipsis {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  padding: 0 4px;
  user-select: none;
}
.pg-info {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-align: center;
  margin-top: 10px;
  width: 100%;
}

/* ══ IMAGES — fluid & responsive ══ */
img {
  display: block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
figure {
  margin: 28px 0;
}
figure img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 4px 24px rgba(20,24,36,0.10);
}
figcaption {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  margin-top: 10px;
  letter-spacing: 0.04em;
}
.img-fluid {
  width: 100%;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}
.img-wrap {
  overflow: hidden;
  border-radius: 12px;
  margin: 24px 0;
  box-shadow: 0 4px 20px rgba(20,24,36,0.08);
}
.img-wrap img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.4s ease;
}
.img-wrap:hover img { transform: scale(1.02); }

/* ══ FOOTER ══ */
footer {
  background: var(--ink);
  border-top: 1px solid rgba(255,255,255,0.05);
  color: rgba(238,241,252,0.38);
  text-align: center;
  padding: 32px clamp(16px, 4vw, 32px);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
}
footer strong { color: rgba(238,241,252,0.65); }

/* ══ MEDIA QUERIES ══ */

/* TOC single column on small screens */
@media (max-width: 560px) {
  .toc ol { columns: 1; }
  .pc-grid { grid-template-columns: 1fr; }
}

/* Nav brand hidden on narrow screens */
@media (max-width: 580px) {
  .nav-brand { display: none; }
}

/* Tables → card layout on mobile */
@media (max-width: 600px) {
  .table-wrap {
    border: none;
    box-shadow: none;
    background: transparent;
    overflow: visible;
  }
  table, thead, tbody, tr, th, td {
    display: block;
    width: 100%;
  }
  thead tr {
    position: absolute;
    top: -9999px;
    left: -9999px;
  }
  tbody tr {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    box-shadow: 0 2px 10px rgba(20,24,36,0.05);
    transition: box-shadow 0.2s;
  }
  tbody tr:hover {
    box-shadow: 0 4px 18px rgba(42,79,214,0.10);
    background: var(--surface);
  }
  tbody td {
    border-bottom: 1px dashed var(--border);
    padding: 9px 0;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
  }
  tbody td:last-child { border-bottom: none; }
  tbody td::before {
    content: attr(data-label);
    font-family: 'Inter', Arial, sans-serif;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--accent);
    background: rgba(42,79,214,0.07);
    border-radius: 4px;
    padding: 2px 7px;
    white-space: nowrap;
    flex-shrink: 0;
    margin-top: 2px;
    min-width: 72px;
  }
}

/* Nav buttons — icon only on very small screens */
@media (max-width: 480px) {
  .nav-btn span:not(.icon) { display: none; }
  .nav-btn { padding: 6px 10px; }
  .lang-btn { padding: 5px 6px; font-size: 10px; }
}

/* Show only active lang button on tiny screens */
@media (max-width: 360px) {
  .lang-switcher .lang-btn:not(.active) { display: none; }
}
/* ═════════════════════════════════════════════════════
   LAYOUT TUNING
   Fluid article pages on all screen sizes
   ═════════════════════════════════════════════════════ */

/* Use the available viewport width by default, with a readable upper limit. */
.container,
.header-inner {
  width: min(1380px, 92vw);
  max-width: none;
}

/* Shared blocks should follow the article width instead of keeping old 940px limits. */
p,
section > ul:not(.checklist):not(.pclist),
.callout,
.faq-wrap,
.conclusion-box,
.highlight-row,
ul.checklist,
.toc,
.table-wrap,
.pc-grid,
.method-cards,
.method-grid,
.related-grid,
.stat-row,
.verdict-row,
.os-pills,
ol.steps {
  max-width: none;
  width: 100%;
}

/* Keep long command examples inside their own scroll area instead of stretching the page. */
pre {
  max-width: 100%;
  overflow-x: auto;
}

pre code {
  white-space: pre;
}

@media (min-width: 1200px) {
  body {
    font-size: 20px;
  }

  h1 {
    font-size: clamp(42px, 4.8vw, 68px);
  }

  h2 {
    font-size: clamp(28px, 2.6vw, 40px);
  }

  h3 {
    font-size: 15px;
  }

  table {
    font-size: 15.5px;
  }
}

@media (min-width: 1600px) {
  .container,
  .header-inner {
    width: min(1500px, 88vw);
  }
}

@media (max-width: 760px) {
  .container,
  .header-inner {
    width: min(calc(100% - 24px), 94vw);
  }
}


/* ═════════════════════════════════════════════════════
   EXTRA COMPONENTS
   Shared blocks for article pages
   ═════════════════════════════════════════════════════ */


/* ══ READING PROGRESS BAR ══ */
#progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--accent), #6b8ef5, var(--accent2));
  z-index: 9999;
  transition: width 0.1s linear;
}


/* ══ STICKY IN-PAGE NAVIGATION ══ */
.sticky-nav {
  position: sticky;
  top: 0;
  z-index: 100;

  display: flex;
  align-items: center;
  gap: 24px;

  height: 52px;
  padding: 0 36px;

  background: rgba(20, 24, 36, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(10px);

  overflow-x: auto;
  scrollbar-width: none;
}

.sticky-nav::-webkit-scrollbar {
  display: none;
}

.sticky-nav a {
  flex-shrink: 0;

  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;

  color: rgba(238, 241, 252, 0.55);
  text-decoration: none;
  white-space: nowrap;

  transition: color 0.2s ease;
}

.sticky-nav a:hover {
  color: #9db6ff;
}

.sticky-nav a:focus-visible {
  outline: 2px solid rgba(136, 170, 255, 0.45);
  outline-offset: 4px;
  border-radius: 4px;
}

.sticky-nav-brand {
  flex-shrink: 0;
  margin-right: 8px;

  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;

  color: #9db6ff;
  white-space: nowrap;
}

.sticky-nav-sep {
  flex-shrink: 0;
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.1);
}


/* ══ BACK TO TOP BUTTON ══ */
#back-to-top {
  position: fixed;
  right: 28px;
  bottom: 28px;
  width: 44px;
  height: 44px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 10px;

  font-size: 18px;
  cursor: pointer;

  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);

  transition:
    opacity 0.25s ease,
    visibility 0.25s ease,
    transform 0.25s ease,
    background-color 0.2s ease;

  z-index: 9000;
  box-shadow: 0 4px 20px rgba(42, 79, 214, 0.35);
}

#back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

#back-to-top:hover {
  background: #1e3bbf;
}

#back-to-top:focus-visible {
  outline: 3px solid rgba(42, 79, 214, 0.28);
  outline-offset: 3px;
}


/* ══ RELATED ARTICLES ══ */
.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 16px;
  margin: 28px 0;
}

.related-card {
  display: flex;
  align-items: flex-start;
  gap: 14px;

  min-height: 96px;
  padding: 20px 22px;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;

  color: var(--ink);
  text-decoration: none;

  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease,
    background-color 0.2s ease;
}

.related-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 79, 214, 0.28);
  box-shadow: 0 8px 28px rgba(20, 24, 36, 0.08);
}

.related-card:focus-visible {
  outline: 3px solid rgba(42, 79, 214, 0.28);
  outline-offset: 3px;
}

.related-card-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;

  display: flex;
  align-items: center;
  justify-content: center;

  background: rgba(42, 79, 214, 0.08);
  border: 1px solid rgba(42, 79, 214, 0.12);
  border-radius: 10px;

  font-size: 20px;
  line-height: 1;
}

.related-card-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.related-card-sub {
  margin-top: 5px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.45;
}

.related-card:hover .related-card-title {
  color: var(--accent);
}


/* ══ METHOD CARDS ══ */
.method-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
  gap: 16px;
  margin: 28px 0;
}

.method-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 20px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.method-card:hover {
  transform: translateY(-3px);
  border-color: rgba(42, 79, 214, 0.22);
  box-shadow: 0 8px 32px rgba(42, 79, 214, 0.12);
}

.method-card-icon {
  font-size: 28px;
  margin-bottom: 10px;
  line-height: 1;
}

.method-card-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--heading);
  margin-bottom: 6px;
  line-height: 1.35;
}

.method-card-desc {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
}

.method-card-badge {
  display: inline-block;
  margin-top: 10px;

  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;

  padding: 3px 9px;
  border-radius: 4px;
}

.badge-both {
  background: rgba(42, 79, 214, 0.1);
  color: var(--accent);
}

.badge-10 {
  background: rgba(176, 140, 0, 0.12);
  color: var(--gold);
}

.badge-11 {
  background: rgba(26, 122, 74, 0.1);
  color: var(--green);
}


/* ══ HIGHLIGHTED SETTINGS PATH ══ */
.highlight-path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  margin: 8px 0 18px;
}

.highlight-path .crumb {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 13px;
  font-weight: 600;

  background: var(--surface2);
  color: var(--ink);
  border: 1px solid var(--border);

  padding: 3px 10px;
  border-radius: 5px;
}

.highlight-path .arrow {
  color: var(--muted);
  font-size: 13px;
}


/* ══ WINDOWS VERSION TAGS ══ */
.ver-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;

  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;

  padding: 3px 10px;
  border-radius: 20px;
  margin: 0 4px;
  vertical-align: middle;
  white-space: nowrap;
}

.ver-10 {
  background: rgba(176, 140, 0, 0.12);
  color: var(--gold);
  border: 1px solid rgba(176, 140, 0, 0.25);
}

.ver-11 {
  background: rgba(26, 122, 74, 0.1);
  color: var(--green);
  border: 1px solid rgba(26, 122, 74, 0.25);
}

.ver-both {
  background: rgba(42, 79, 214, 0.1);
  color: var(--accent);
  border: 1px solid rgba(42, 79, 214, 0.2);
}


/* ══ STAT ROW ══ */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0;
}

.stat-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 22px 18px;
  text-align: center;
}

.stat-num {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 34px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-label {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.05em;
  line-height: 1.4;
}


/* ══ KEYBOARD KEYS ══ */
kbd {
  display: inline-block;

  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 13.5px;
  font-weight: 700;

  background: var(--surface2);
  border: 1px solid var(--border);
  border-bottom: 3px solid var(--border);
  border-radius: 5px;

  padding: 2px 9px;
  color: var(--ink);
  margin: 0 2px;
  line-height: 1.4;
}
/* ══ ARTICLE IMAGE PLACEHOLDER ══ */
.img-placeholder {
  background: var(--surface2);
  border: 2px dashed var(--border);
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 36px 24px;
  margin: 24px 0;
  color: var(--muted);
  font-family: 'Inter', Arial, sans-serif;
  font-size: 14px;
  text-align: center;
}

.img-placeholder .img-icon {
  font-size: 36px;
  line-height: 1;
}

.img-placeholder .img-caption {
  font-size: 13px;
  letter-spacing: 0.03em;
  font-style: italic;
}

/* ══ TABLE SAFETY FIX ══ */
@media (max-width: 600px) {
  tbody td:not([data-label])::before {
    display: none;
  }
}


/* ══ SMALL-SCREEN FIXES FOR EXTRA COMPONENTS ══ */
@media (max-width: 600px) {
  .sticky-nav {
    padding: 0 18px;
    gap: 16px;
  }

  .related-grid,
  .method-cards {
    gap: 12px;
    margin: 22px 0;
  }

  .related-card {
    min-height: auto;
    padding: 17px 16px;
  }

  .related-card-icon {
    width: 34px;
    height: 34px;
    font-size: 18px;
  }

  .stat-row {
    grid-template-columns: 1fr;
  }

  #back-to-top {
    right: 18px;
    bottom: 18px;
    width: 40px;
    height: 40px;
  }
}
/* ═════════════════════════════════════════════════════
   ACPI / DRIVER ARTICLE COMPONENTS
   Reusable blocks used by driver and troubleshooting pages
   ═════════════════════════════════════════════════════ */

/* ══ VERDICT / FEATURE BADGES ══ */
.verdict-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 16px;
  margin: 28px 0;
}

.verdict-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px 22px;
  text-align: center;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.verdict-card:hover {
  transform: translateY(-2px);
  border-color: rgba(42, 79, 214, 0.22);
  box-shadow: 0 8px 28px rgba(20, 24, 36, 0.08);
}

.verdict-card .vc-icon {
  display: block;
  margin-bottom: 8px;
  font-size: 28px;
  line-height: 1;
}

.verdict-card .vc-label {
  display: block;
  margin-bottom: 4px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.verdict-card .vc-val {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.35;
}

/* ══ INLINE HIGHLIGHT ROW ══ */
.highlight-row {
  max-width: 940px;
  margin: 24px 0;
  padding: 16px 22px;
  background: linear-gradient(135deg, #f0f4ff 0%, #e8f0ff 100%);
  border: 1px solid rgba(42, 79, 214, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.65;
}

.highlight-row strong {
  color: var(--accent);
}

/* ══ METHOD GRID / DRIVER OPTIONS ══ */
.method-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 20px;
  margin: 28px 0;
}

.method-grid .method-card,
.method-card.m-official,
.method-card.m-manual,
.method-card.m-auto {
  position: relative;
  overflow: hidden;
  padding: 26px 24px;
}

.method-grid .method-card::before,
.method-card.m-official::before,
.method-card.m-manual::before,
.method-card.m-auto::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.method-card.m-official::before { background: var(--green); }
.method-card.m-manual::before  { background: var(--accent); }
.method-card.m-auto::before    { background: var(--gold); }

.method-card .mc-num {
  display: block;
  margin-bottom: 8px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.method-card h4 {
  margin-bottom: 10px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.35;
}

.method-card p {
  margin-bottom: 0;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.6;
}

.mc-badge {
  display: inline-block;
  margin-top: 14px;
  padding: 4px 10px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border-radius: 4px;
}

.m-official .mc-badge {
  background: #e6f7ed;
  color: var(--green);
}

.m-manual .mc-badge {
  background: rgba(42, 79, 214, 0.1);
  color: var(--accent);
}

.m-auto .mc-badge {
  background: #fdf8e0;
  color: var(--gold);
}

/* ══ ERROR CODE BADGE ══ */
.err-code {
  display: inline-block;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 13.5px;
  background: rgba(192, 57, 43, 0.08);
  color: var(--red);
  border: 1px solid rgba(192, 57, 43, 0.2);
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}

/* ══ CHECKLIST ══ */
ul.checklist {
  max-width: 940px;
  list-style: none;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

ul.checklist li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.55;
}

ul.checklist li::before {
  content: '✔';
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--green);
  font-weight: 700;
}

/* ══ OS SUPPORT PILLS ══ */
.os-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 24px;
}

.os-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--ink);
}

.os-pill.supported {
  background: #f0faf5;
  border-color: #86efac;
  color: var(--green);
}

.os-pill.partial {
  background: #fffbf0;
  border-color: #fcd34d;
  color: #92600a;
}

.os-pill.unsupported {
  background: #fef5f5;
  border-color: #fca5a5;
  color: var(--red);
}

@media (max-width: 600px) {
  .verdict-row,
  .method-grid {
    gap: 12px;
  }

  .verdict-card {
    padding: 18px 16px;
  }

  .highlight-row {
    padding: 14px 16px;
    font-size: 15px;
  }

  .os-pill {
    font-size: 11px;
    padding: 5px 11px;
  }
}

/* ═════════════════════════════════════════════════════
   METHOD CARD HEADER
   Reusable header layout for step-by-step method cards
   ═════════════════════════════════════════════════════ */

.method-card-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.method-num {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  font-weight: 800;
  background: var(--accent);
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  letter-spacing: 0.04em;
}

.method-title-wrap {
  min-width: 0;
}

.method-title {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--heading);
  line-height: 1.25;
}

.method-diff {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 3px;
  letter-spacing: 0.05em;
}

@media (max-width: 520px) {
  .method-card-header {
    align-items: flex-start;
  }

  .method-num {
    width: 34px;
    height: 34px;
    font-size: 11px;
  }
}
/* ═════════════════════════════════════════════════════
   APP CARDS
   Reusable app list cards
   ═════════════════════════════════════════════════════ */

.apps-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 14px;
  margin: 24px 0;
}

.app-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 18px;
  font-family: 'Inter', Arial, sans-serif;
}

.app-card-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 4px;
}

.app-card-type {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}

.app-card-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  margin-right: 6px;
}

@media (max-width: 640px) {
  .apps-grid {
    grid-template-columns: 1fr;
  }
}
/* ══ PATH BLOCK ══ */
.path-block {
  background: #1a1e2e;
  border: 1px solid rgba(42,79,214,0.25);
  border-radius: 8px;
  padding: 14px 20px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.path-block-icon {
  font-size: 16px;
  flex-shrink: 0;
}

.path-block code {
  background: none;
  border: none;
  padding: 0;
  color: #9db6ff;
  font-size: 13px;
  word-break: break-all;
}
/* Method card subheadings */
.method-card > h3 {
  margin-top: 0;
  font-size: 15px;
  letter-spacing: 0.06em;
  color: var(--heading);
}

.method-card > h3::after {
  background: var(--border);
}
/* ══ METHOD COMPARISON BAR ══ */
.verdict-bar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;

  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;

  padding: 18px 22px;
  margin: 10px 0;

  font-family: 'Inter', Arial, sans-serif;
}

.verdict-bar .method-name {
  min-width: 180px;
  font-size: 15px;
  font-weight: 700;
  color: var(--heading);
}

.difficulty-dots {
  display: flex;
  gap: 5px;
  flex-shrink: 0;
}

.difficulty-dots .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.difficulty-dots .dot.filled {
  background: var(--accent);
}

.difficulty-dots .dot.empty {
  background: var(--border);
}

.method-note {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}

.verdict-bar .os-pill {
  margin-left: auto;
}

@media (max-width: 640px) {
  .verdict-bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .verdict-bar .method-name {
    min-width: 0;
  }

  .verdict-bar .os-pill {
    margin-left: 0;
  }
}
/* ══ ERROR DISPLAY BOX ══ */
.error-display {
  background: #141824;
  border: 1px solid rgba(192, 57, 43, 0.3);
  border-radius: 12px;
  padding: clamp(22px, 4vw, 32px) clamp(20px, 5vw, 36px);
  margin: 28px 0;
  position: relative;
  overflow: hidden;
}

.error-display::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--red), #e74c3c, transparent);
}

.error-display-icon {
  display: block;
  margin-bottom: 12px;
  font-size: 40px;
  line-height: 1;
}

.error-display-code {
  margin-bottom: 8px;
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: clamp(15px, 2.5vw, 18px);
  font-weight: 700;
  color: #ff6b6b;
  overflow-wrap: anywhere;
}

.error-display-msg {
  font-family: 'Inter', Arial, sans-serif;
  font-size: 15px;
  color: rgba(200, 212, 255, 0.62);
  line-height: 1.6;
}

.error-display-msg strong {
  color: #8ab4f8;
}
/* Event Viewer method cards */
.method-card .ver-tag {
  align-self: flex-start;
}

@media (max-width: 600px) {
  .method-card-header .ver-tag {
    display: none;
  }
}

/* ═════════════════════════════════════════════════════
   CODE BLOCK WRAPPING
   Wrap long lines inside <pre><code> blocks on all screen sizes
   ═════════════════════════════════════════════════════ */

pre {
  white-space: pre-wrap;
  overflow-x: hidden;
}

pre code {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}


/* ═════════════════════════════════════════════════════
   READABILITY / WHITE SHEET TUNING
   Larger text, stronger contrast, white article sheet
   ═════════════════════════════════════════════════════ */

@media (max-width: 700px) {
  body {
    font-size: 17px;
  }

  .container {
    width: min(calc(100% - 20px), 94vw);
    margin: 14px auto;
    padding: 22px 14px;
    border-radius: 12px;
  }

  h2 {
    font-size: clamp(23px, 7vw, 30px);
  }

  h3 {
    font-size: 14px;
  }

  pre {
    font-size: 14px;
  }
}

/* ═════════════════════════════════════════════════════
   HIGH READABILITY OVERRIDES
   Large, high-contrast typography for all article blocks
   ═════════════════════════════════════════════════════ */

:root {
  --bg:       #e8edf5;
  --surface:  #ffffff;
  --surface2: #f4f6fb;
  --border:   #aeb8ce;
  --ink:      #050914;
  --muted:    #2f3a52;
  --accent:   #123fd1;
  --accent2:  #b8280a;
  --gold:     #705700;
  --green:    #075f34;
  --red:      #9d1f16;
  --heading:  #030713;
  --rule:     #aeb8ce;
}

body {
  color: var(--ink);
  font-size: clamp(18px, 1.45vw, 22px);
  line-height: 1.78;
  text-rendering: optimizeLegibility;
}

.container {
  background: #fff;
  color: var(--ink);
}

p,
li,
td,
summary,
.faq-a,
.callout,
.method-note,
.related-card-sub {
  color: var(--ink);
}

p {
  font-size: 1.05em;
  line-height: 1.82;
}

strong {
  color: #000;
  font-weight: 800;
}

/* Headings */
h1 {
  color: #fff;
}

h2 {
  font-size: clamp(30px, 3vw, 48px);
  line-height: 1.15;
  color: #030713;
  margin-bottom: 28px;
}

h3 {
  font-size: clamp(17px, 1.2vw, 21px);
  font-weight: 900;
  color: #101a31;
  letter-spacing: 0.16em;
}

.section-label {
  font-size: clamp(13px, 1vw, 16px);
  font-weight: 900;
  color: #123fd1;
  letter-spacing: 0.22em;
  margin-bottom: 16px;
}

.header-sub {
  color: rgba(255,255,255,0.78);
  font-size: clamp(18px, 1.6vw, 22px);
}

.header-badges span {
  color: rgba(255,255,255,0.82);
  font-size: 13px;
}

/* Table of Contents */
.toc {
  background: #fff;
  border-color: #9eabc4;
}

.toc-title {
  font-size: clamp(20px, 1.6vw, 26px);
  font-weight: 900;
  color: #030713;
}

.toc-subtitle {
  font-size: clamp(15px, 1vw, 18px);
  color: #26324b;
  font-weight: 700;
}

.toc li {
  margin: 12px 0;
}

.toc li::before {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: #123fd1;
  padding: 3px 9px;
}

.toc a {
  font-size: clamp(17px, 1.15vw, 20px);
  font-weight: 800;
  color: #071022;
  line-height: 1.55;
}

.toc a:hover {
  color: #0b36bd;
}

/* Inline code: high-contrast black badge */
code {
  font-family: 'JetBrains Mono', Consolas, monospace;
  font-size: 0.94em;
  font-weight: 700;
  background: #050914;
  color: #ffffff;
  border: 1px solid #050914;
  padding: 3px 8px;
  border-radius: 5px;
}

/* Code blocks: white code on black background */
pre {
  background: #050914;
  color: #ffffff;
  border: 1px solid #000;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.78;
  box-shadow: 0 6px 22px rgba(5,9,20,0.18);
  white-space: pre-wrap;
  overflow-x: hidden;
}

pre code {
  background: transparent;
  color: #ffffff;
  border: none;
  padding: 0;
  font-size: inherit;
  font-weight: 700;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pre-label {
  color: #b8c7ff;
  font-size: 13px;
  font-weight: 900;
}

/* Method grid/cards */
.method-grid {
  gap: 22px;
}

.method-grid .method-card,
.method-card.m-official,
.method-card.m-manual,
.method-card.m-auto,
.method-card {
  color: var(--ink);
  border-color: #9eabc4;
}

.method-card-icon {
  font-size: 34px;
}

.method-card-title,
.method-card h4 {
  font-size: clamp(18px, 1.25vw, 22px);
  font-weight: 900;
  color: #030713;
}

.method-card-desc,
.method-card p {
  font-size: clamp(16px, 1.05vw, 19px);
  color: #172138;
  line-height: 1.68;
}

.method-card .mc-num,
.method-card-badge,
.mc-badge {
  font-size: 13px;
  font-weight: 900;
  color: #111827;
}

/* Pros / Cons grid */
.pc-card {
  border-color: #9eabc4;
}

.pc-card h4 {
  font-size: clamp(16px, 1.1vw, 20px);
  font-weight: 900;
  color: #030713;
}

ul.pclist li {
  font-size: clamp(17px, 1.1vw, 20px);
  font-weight: 600;
  color: #071022;
  line-height: 1.65;
}

.pros ul.pclist li::before {
  color: #075f34;
  font-weight: 900;
}

.cons ul.pclist li::before {
  color: #9d1f16;
  font-weight: 900;
}

/* Method comparison */
.verdict-bar {
  border-color: #9eabc4;
  background: #fff;
  padding: 22px 24px;
}

.verdict-bar .method-name {
  font-size: clamp(17px, 1.15vw, 21px);
  font-weight: 900;
  color: #030713;
}

.method-note {
  font-size: clamp(16px, 1.05vw, 19px);
  font-weight: 700;
  color: #172138;
}

.difficulty-dots .dot {
  width: 13px;
  height: 13px;
}

.difficulty-dots .dot.filled {
  background: #123fd1;
}

.difficulty-dots .dot.empty {
  background: #b8c0d1;
}

.os-pill,
.verdict-bar .os-pill {
  font-size: 15px;
  font-weight: 900;
  color: #071022;
}

.os-pill.supported {
  color: #075f34;
}

.os-pill.unsupported {
  color: #9d1f16;
}

/* Callouts */
.callout {
  font-size: clamp(17px, 1.1vw, 20px);
  line-height: 1.7;
  color: #071022;
}

.callout-label {
  font-size: 13px;
  font-weight: 900;
  color: #030713 !important;
}

.callout-info {
  background: #eef4ff;
  border-color: #6793e6;
}

.callout-safe {
  background: #eefaf3;
  border-color: #58b982;
}

.callout-warn {
  background: #fff8df;
  border-color: #d4a514;
}

.callout-danger {
  background: #fff0ee;
  border-color: #d75a4d;
}

/* Tables */
table {
  font-size: clamp(16px, 1.05vw, 19px);
  color: #071022;
}

thead th {
  font-size: 13px;
  font-weight: 900;
  color: #fff;
  background: #050914;
}

tbody td {
  color: #071022;
  line-height: 1.65;
}

tbody tr:nth-child(even) {
  background: #eef2fa;
}

/* FAQ */
summary {
  font-size: clamp(17px, 1.1vw, 20px);
  font-weight: 900;
  color: #030713;
}

.faq-q-badge {
  font-size: 13px;
  font-weight: 900;
}

.faq-a {
  font-size: clamp(17px, 1.1vw, 20px);
  color: #071022;
  line-height: 1.78;
  background: #f4f6fb;
}

/* Steps */
ol.steps li {
  font-size: clamp(17px, 1.1vw, 20px);
  color: #071022;
  line-height: 1.75;
}

ol.steps li::before {
  font-size: 15px;
  font-weight: 900;
}

/* Badges and pale-blue text fixes */
.ver-tag,
.mc-badge,
.method-card-badge,
.badge-both,
.badge-10,
.badge-11 {
  font-size: 13px;
  font-weight: 900;
}

.ver-both,
.badge-both {
  background: #e6edff;
  color: #0b36bd;
  border-color: #7898ee;
}

.ver-10,
.badge-10 {
  background: #fff4c9;
  color: #5f4900;
  border-color: #c7a014;
}

.ver-11,
.badge-11 {
  background: #e6f7ed;
  color: #075f34;
  border-color: #4ba873;
}

.highlight-path .crumb {
  background: #050914;
  color: #fff;
  border-color: #050914;
  font-size: 0.94em;
  font-weight: 700;
}

/* Conclusion: black text on white background */
.conclusion-box {
  background: #ffffff;
  color: #071022;
  border: 2px solid #050914;
  box-shadow: 0 8px 28px rgba(5,9,20,0.12);
}

.conclusion-box::before {
  display: none;
}

.conclusion-box h3 {
  color: #030713;
  font-size: clamp(17px, 1.2vw, 22px);
}

.conclusion-box h3::after {
  background: #9eabc4;
}

.conclusion-box p {
  color: #071022;
  font-size: clamp(18px, 1.2vw, 21px);
  line-height: 1.8;
}

.conclusion-box strong {
  color: #000;
}

/* Footer */
footer {
  color: rgba(238,241,252,0.72);
}

footer strong {
  color: #fff;
}

/* Mobile readability */
@media (max-width: 700px) {
  body {
    font-size: 18px;
    line-height: 1.72;
  }

  .container {
    width: min(calc(100% - 18px), 96vw);
    padding: 22px 14px;
  }

  .toc a,
  .method-card p,
  .method-card-desc,
  ul.pclist li,
  .method-note,
  .callout,
  summary,
  .faq-a,
  ol.steps li {
    font-size: 17px;
  }

  h2 {
    font-size: clamp(28px, 7vw, 36px);
  }

  h3,
  .section-label {
    font-size: 14px;
  }

  pre {
    font-size: 15px;
  }

  table {
    font-size: 16px;
  }
}

/* ═════════════════════════════════════════════════════
   FONT SYSTEM OVERRIDES
   Inter for UI/articles, JetBrains Mono for code
   ═════════════════════════════════════════════════════ */

body,
button,
input,
select,
textarea {
  font-family: 'Inter', Arial, sans-serif;
}

h1,
h2,
h3,
h4,
.nav-btn,
.lang-btn,
.nav-brand,
.header-kicker-text,
.header-sub,
.header-badges span,
.toc-title,
.toc-subtitle,
.toc a,
.section-label,
.callout,
.callout-label,
table,
summary,
.faq-a,
.related-card-title,
.related-card-sub,
.method-card,
.method-card-title,
.method-card-desc,
.method-card h4,
.method-note,
.os-pill,
.ver-tag,
.mc-badge,
.method-card-badge,
.pc-card h4,
ul.pclist li,
ol.steps li,
.conclusion-box,
footer {
  font-family: 'Inter', Arial, sans-serif;
}

code,
pre,
pre code,
kbd,
.err-code,
.path-block code,
.highlight-path .crumb,
h1 .mono-tag {
  font-family: 'JetBrains Mono', Consolas, monospace;
}

/* Slightly tighter Inter rhythm */
body {
  letter-spacing: -0.006em;
}

p,
li,
td,
.callout,
.faq-a,
summary,
.method-card p,
.method-note {
  letter-spacing: -0.004em;
}

h1,
h2,
h3,
h4,
.toc-title,
.method-card-title,
.method-card h4 {
  letter-spacing: -0.018em;
}

.section-label,
h3,
.pre-label,
.callout-label,
thead th {
  letter-spacing: 0.12em;
}

/* Code remains deliberately high contrast */
code {
  font-size: 0.92em;
  font-weight: 600;
}

pre,
pre code {
  font-weight: 600;
}
/* ═════════════════════════════════════════════════════
   GAME MODE ARTICLE COMPONENTS
   Reusable status text, feature cards and tips list
   ═════════════════════════════════════════════════════ */

/* Table status text: YES / NO / PARTIAL / LIMITED */
.badge {
  display: inline;
  font-family: 'Inter', Arial, sans-serif;
  font-size: 0.95em;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: normal;
  line-height: inherit;
  padding: 0;
  border: none;
  border-radius: 0;
  background: transparent;
}

.badge-yes {
  color: #075f34;
}

.badge-no {
  color: #9d1f16;
}

.badge-part {
  color: #6b4d00;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: 22px;
  margin: 32px 0;
}

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 24px 22px;
  color: var(--ink);
  box-shadow: 0 2px 12px rgba(20,24,36,0.04);
  transition:
    box-shadow 0.2s ease,
    transform 0.2s ease,
    border-color 0.2s ease;
}

.feature-card:hover {
  box-shadow: 0 8px 28px rgba(20,24,36,0.10);
  border-color: rgba(18,63,209,0.28);
  transform: translateY(-2px);
}

.feature-card .fc-icon {
  display: block;
  font-size: 34px;
  line-height: 1;
  margin-bottom: 14px;
}

.feature-card h4 {
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(18px, 1.25vw, 22px);
  font-weight: 900;
  color: var(--heading);
  line-height: 1.28;
  margin-bottom: 10px;
}

.feature-card p {
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(16px, 1.05vw, 19px);
  font-weight: 500;
  color: #172138;
  line-height: 1.68;
  margin: 0;
}

/* Tips list */
ul.tips-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

ul.tips-list li {
  position: relative;
  padding-left: 28px;
  font-family: 'Inter', Arial, sans-serif;
  font-size: clamp(17px, 1.1vw, 20px);
  font-weight: 600;
  color: #071022;
  line-height: 1.7;
}

ul.tips-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0.1em;
  color: #123fd1;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.3;
}

/* Final section without inline styles */
.section-final {
  border-bottom: none !important;
  padding-bottom: 0 !important;
  margin-bottom: 0 !important;
}

@media (max-width: 700px) {
  .feature-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin: 24px 0;
  }

  .feature-card {
    padding: 20px 16px;
  }

  .feature-card .fc-icon {
    font-size: 30px;
  }

  .feature-card h4 {
    font-size: 18px;
  }

  .feature-card p,
  ul.tips-list li {
    font-size: 17px;
  }
}
footer a {
  color: rgba(238,241,252,0.72);
  text-decoration: none;
  font-weight: 700;
}

footer a:hover {
  color: #ffffff;
  text-decoration: underline;
}