/* Minecraft Mod APK - Global Design Tokens & Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Chakra+Petch:wght@500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Manrope:wght@400;500;600;700;800&family=Press+Start+2P&display=swap');

:root {
  /* Color Palette */
  --void: #0c120e;         /* page background */
  --deepslate: #161e19;    /* card / panel background */
  --deepslate-2: #1e2a22;  /* raised panel / icon tiles */
  --deepslate-3: #26362c;  /* active / highlighted panel */
  --stone-line: #2b3a30;   /* hairline borders */
  --grass: #5fa83b;        /* primary brand green */
  --grass-deep: #3f7828;   /* gradient partner for primary button */
  --emerald: #3ee08b;      /* CTA accent, links on hover, highlight text */
  --diamond: #7fe9e2;      /* cool info accent */
  --redstone: #e2543f;     /* warnings, cons accent */
  --gold: #e8b94a;         /* ratings, version tag */
  --sand: #eae3d2;         /* primary text on dark */
  --sand-dim: #a9b2a6;     /* secondary / body text */
  --sand-faint: #6d766f;   /* meta / caption text */

  /* Typography Families */
  --font-heading: 'Chakra Petch', sans-serif;
  --font-pixel: 'Press Start 2P', monospace;
  --font-body: 'Manrope', sans-serif;
  --font-mono: 'JetBrains Mono', monospace;

  /* Pixel Notch Clip Paths */
  --notch-lg: polygon(14px 0, calc(100% - 14px) 0, 100% 14px, 100% calc(100% - 14px), calc(100% - 14px) 100%, 14px 100%, 0 calc(100% - 14px), 0 14px);
  --notch-md: polygon(10px 0, calc(100% - 10px) 0, 100% 10px, 100% calc(100% - 10px), calc(100% - 10px) 100%, 10px 100%, 0 calc(100% - 10px), 0 10px);
  --notch-sm: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
}

/* Reset & Universal Rules */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border-radius: 0 !important; /* STRICT NO BORDER RADIUS RULE */
}

html {
  scroll-behavior: smooth;
  background-color: var(--void);
  color: var(--sand);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  text-align: left;
}

body {
  background-color: var(--void);
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* World Cross Section Background Lines */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: 
    radial-gradient(circle at 50% 0%, rgba(62, 224, 139, 0.05) 0%, transparent 60%),
    linear-gradient(rgba(43, 58, 48, 0.15) 1px, transparent 1px),
    linear-gradient(90deg, rgba(43, 58, 48, 0.15) 1px, transparent 1px);
  background-size: 100% 100%, 32px 32px, 32px 32px;
  pointer-events: none;
  z-index: -1;
}

/* Container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  box-sizing: border-box;
}

/* Section Styling */
.section {
  padding: 48px 0;
  position: relative;
}

/* Typography Base & Alignment */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--sand);
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-align: left;
}

h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  margin-bottom: 1.25rem;
}

h2 {
  font-size: clamp(1.5rem, 3.5vw, 2.25rem);
  margin-top: 2.25rem;
  margin-bottom: 1.25rem;
  color: #ffffff;
  border-left: 4px solid var(--emerald);
  padding-left: 16px;
  text-align: left;
}

h3 {
  font-size: clamp(1.2rem, 2.5vw, 1.45rem);
  margin-top: 1.75rem;
  margin-bottom: 0.85rem;
  color: var(--diamond);
  text-align: left;
}

h4 {
  font-size: 1.15rem;
  margin-top: 1.25rem;
  margin-bottom: 0.6rem;
  color: var(--sand);
  text-align: left;
}

p {
  margin-bottom: 1.25rem;
  color: var(--sand-dim);
  font-size: 1.05rem;
  line-height: 1.75;
  text-align: left;
  word-wrap: break-word;
}

p strong, li strong {
  color: var(--sand);
  font-weight: 700;
}

a {
  color: var(--emerald);
  text-decoration: none;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

a:hover {
  color: #ffffff;
  text-shadow: 0 0 8px rgba(62, 224, 139, 0.5);
}

ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 1.5rem;
  color: var(--sand-dim);
  text-align: left;
}

li {
  margin-bottom: 0.65rem;
  line-height: 1.7;
}

.styled-list {
  list-style: none;
  padding-left: 0;
}

.styled-list li {
  position: relative;
  padding-left: 24px;
  margin-bottom: 0.75rem;
}

.styled-list li::before {
  content: '▸';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald);
  font-weight: bold;
}

/* Header & Sticky Navigation */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: linear-gradient(180deg, #0e1e13 0%, #061109 100%);
  backdrop-filter: blur(14px);
  border-bottom: 3px solid #3ee08b;
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(62, 224, 139, 0.25);
  padding: 8px 0;
  /* Needed so mobile nav dropdown is positioned relative to the header */
  overflow: visible;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
  width: 100%;
  position: relative;
}

.logo-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
  margin-right: 20px;
  padding-right: 18px;
  border-right: 1px solid rgba(62, 224, 139, 0.3);
  min-width: 0;
}

.logo-text {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1rem;
  color: var(--sand);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 160px;
}

.logo-text span {
  color: var(--emerald);
}

.logo-img {
  width: 95px;
  height: 95px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 10px rgba(62, 224, 139, 0.4)) !important;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.logo-img:hover {
  filter: drop-shadow(0 4px 14px rgba(62, 224, 139, 0.55)) !important;
  transform: scale(1.04);
}

.footer-logo-img,
.footer-logo {
  width: 120px;
  height: 120px;
  object-fit: contain;
  filter: none !important;
}

/* Footer Social Icons & Justified Text */
.footer-text-justify {
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
}

.footer-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
  align-items: center;
}

.social-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  background: var(--deepslate-2);
  border: 1px solid var(--stone-line);
  color: var(--sand-dim);
  clip-path: polygon(4px 0%, 100% 0%, 100% calc(100% - 4px), calc(100% - 4px) 100%, 0% 100%, 0% 4px);
  transition: all 0.2s ease;
  text-decoration: none;
}

.social-icon-btn:hover {
  color: var(--emerald);
  background: rgba(62, 224, 139, 0.12);
  border-color: var(--emerald);
  transform: translateY(-2px);
}

.social-icon-btn svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.header-inner nav {
  flex-grow: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 0;
  overflow: visible;
  flex-shrink: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  flex-wrap: nowrap;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  overflow: visible;
}

.nav-links a {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 0.72rem;
  color: var(--sand-dim);
  text-transform: uppercase;
  letter-spacing: 0.01em;
  padding: 6px 7px;
  border-radius: 5px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
  position: relative;
}

/* Hide header download/CTA button globally */
.header-inner > .btn {
  display: none !important;
}

.nav-links a:hover {
  color: #ffffff;
  background: rgba(62, 224, 139, 0.18);
  box-shadow: 0 0 12px rgba(62, 224, 139, 0.35);
  transform: translateY(-1px);
  border-bottom: none;
}

.nav-links a.nav-active {
  color: #3ee08b;
  background: rgba(62, 224, 139, 0.22);
  box-shadow: 0 0 15px rgba(62, 224, 139, 0.4);
  border-bottom: 2px solid #3ee08b;
}

/* ── Dropdown Nav ────────────────────────── */
.nav-links li {
  position: relative;
}

.nav-links li.has-dropdown > a::after {
  content: ' ▾';
  font-size: 0.55rem;
  vertical-align: middle;
  opacity: 0.85;
  color: #3ee08b;
}

.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 220px;
  max-height: 80vh;
  overflow-y: auto;
  background: rgba(8, 18, 11, 0.98);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(62, 224, 139, 0.35);
  border-top: 3px solid #3ee08b;
  clip-path: polygon(10px 0%, 100% 0%, 100% 100%, 0% 100%, 0% 10px);
  z-index: 9999;
  padding: 8px 0;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.95), 0 0 20px rgba(62, 224, 139, 0.2);
  animation: dropFadeIn 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  scrollbar-width: thin;
  scrollbar-color: rgba(62, 224, 139, 0.4) transparent;
}

/* Right-align dropdowns near the right screen edge to prevent viewport clipping */
.nav-links li:nth-last-child(-n+4) .nav-dropdown {
  left: auto;
  right: 0;
}

@keyframes dropFadeIn {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}

.nav-links li.has-dropdown.open .nav-dropdown {
  display: block;
}

.nav-dropdown a {
  display: block;
  padding: 9px 18px;
  font-size: 0.75rem;
  color: var(--sand-dim);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-family: var(--font-heading);
  font-weight: 600;
  white-space: nowrap;
  border-bottom: none !important;
  transition: background 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.nav-dropdown a:hover {
  color: var(--emerald);
  background: rgba(62, 224, 139, 0.07);
  padding-left: 24px;
  border-bottom: none !important;
}

.nav-dropdown .dropdown-section {
  font-family: var(--font-pixel);
  font-size: 0.55rem;
  color: var(--emerald);
  padding: 10px 18px 4px 18px;
  letter-spacing: 0.08em;
  opacity: 0.7;
  pointer-events: none;
}

.nav-dropdown hr {
  border: none;
  border-top: 1px solid var(--stone-line);
  margin: 6px 12px;
}

.mobile-toggle {
  display: none;
  background: var(--deepslate);
  border: 1px solid var(--stone-line);
  color: var(--sand);
  font-family: var(--font-pixel);
  font-size: 0.8rem;
  padding: 8px 12px;
  cursor: pointer;
  clip-path: var(--notch-sm);
}

/* Button Component Library */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 14px 28px;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.btn-primary {
  background: linear-gradient(180deg, var(--emerald) 0%, var(--grass-deep) 100%);
  color: #0c1a10;
  clip-path: var(--notch-md);
  box-shadow: 0 4px 20px rgba(62, 224, 139, 0.35);
  border: none;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(62, 224, 139, 0.55);
  color: #000000;
}

.btn-secondary {
  background: var(--deepslate-2);
  color: var(--sand);
  border: 1px solid var(--stone-line);
  clip-path: var(--notch-md);
}

.btn-secondary:hover {
  border-color: var(--emerald);
  color: var(--emerald);
}

/* Eyebrow & Badges */
.eyebrow {
  font-family: var(--font-pixel);
  font-size: 0.68rem;
  color: var(--gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: inline-block;
  margin-bottom: 12px;
  background: rgba(232, 185, 74, 0.1);
  padding: 6px 12px;
  border: 1px solid rgba(232, 185, 74, 0.3);
  clip-path: var(--notch-sm);
  max-width: 100%;
  white-space: normal;
  word-break: break-word;
  overflow-wrap: break-word;
}

/* Hero Section */
.hero, .hero-section {
  padding: 50px 0 30px;
  position: relative;
  width: 100%;
  overflow-x: hidden;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 40px;
  align-items: start;
  width: 100%;
  max-width: 100%;
}

.hero-content {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

.hero-content p {
  font-size: 1.1rem;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 24px;
  width: 100%;
  max-width: 100%;
}

/* Cards Component */
.card {
  background-color: var(--deepslate);
  border: 1px solid var(--stone-line);
  clip-path: var(--notch-md);
  padding: 24px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: border-color 0.2s ease, transform 0.2s ease;
  text-align: left;
  max-width: 100%;
  box-sizing: border-box;
}

.card:hover {
  border-color: rgba(95, 168, 59, 0.6);
}

/* Pros & Cons Side-by-Side Cards */
.pros-cons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 20px;
  width: 100%;
}

.pro-card, .con-card {
  background-color: var(--deepslate-2);
  border: 1px solid var(--stone-line);
  clip-path: var(--notch-md);
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  box-sizing: border-box;
}

.pro-card {
  border-top: 3px solid var(--emerald);
}

.con-card {
  border-top: 3px solid var(--redstone);
}

.pro-card ul, .con-card ul {
  padding-left: 20px;
  margin-bottom: 0;
}

.pro-card li, .con-card li {
  margin-bottom: 10px;
  line-height: 1.6;
  color: var(--sand-dim);
}

.pro-card li:last-child, .con-card li:last-child {
  margin-bottom: 0;
}

/* Spec Quick Info Card */
.spec-card {
  background-color: var(--deepslate-2);
  border: 1px solid var(--stone-line);
  clip-path: var(--notch-lg);
  padding: 24px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}

.spec-title {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  color: var(--emerald);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--stone-line);
  padding-bottom: 10px;
  flex-wrap: wrap;
  gap: 8px;
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 14px;
  width: 100%;
  max-width: 100%;
}

.spec-item {
  background: var(--void);
  padding: 10px 14px;
  border: 1px solid var(--stone-line);
  clip-path: var(--notch-sm);
  text-align: left;
  box-sizing: border-box;
  max-width: 100%;
}

.spec-label {
  font-family: var(--font-pixel);
  font-size: 0.58rem;
  color: var(--sand-faint);
  text-transform: uppercase;
  display: block;
  margin-bottom: 4px;
}

.spec-value {
  font-family: var(--font-mono);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--sand);
  word-break: break-word;
}

/* Content Image Wrappers */
.content-image-wrapper {
  margin: 32px auto;
  background: var(--deepslate-2);
  border: 1px solid var(--stone-line);
  padding: 14px;
  clip-path: var(--notch-md);
  text-align: center;
  max-width: 100%;
  width: 100%;
}

.content-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: 520px;
  object-fit: contain;
  object-position: center;
  display: block;
  margin: 0 auto;
  clip-path: var(--notch-sm);
}

.image-caption {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--sand-dim);
  margin-top: 10px;
  margin-bottom: 0;
  text-align: center;
}

/* Callout Boxes */
.callout-box {
  background: var(--deepslate-2);
  border: 1px solid var(--stone-line);
  border-left: 4px solid var(--emerald);
  padding: 20px 24px;
  margin: 24px 0;
  clip-path: var(--notch-md);
  text-align: left;
}

.callout-box.tip { border-left-color: var(--emerald); }
.callout-box.warning { border-left-color: var(--gold); }
.callout-box.danger { border-left-color: var(--redstone); }

/* How-To Step List Component */
.how-to-steps {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: 24px 0;
}

.step-item {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  background: var(--deepslate);
  border: 1px solid var(--stone-line);
  padding: 20px 24px;
  clip-path: var(--notch-md);
  text-align: left;
}

.step-number {
  width: 44px;
  height: 44px;
  min-width: 44px;
  background: linear-gradient(135deg, var(--emerald) 0%, var(--grass-deep) 100%);
  color: #0c1a10;
  font-family: var(--font-pixel);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  clip-path: var(--notch-sm);
  font-weight: bold;
}

.step-content {
  flex: 1;
  text-align: left;
}

.step-content h4 {
  margin-top: 0;
  margin-bottom: 6px;
  color: var(--sand);
  font-size: 1.1rem;
}

.step-content p {
  margin-bottom: 0;
  font-size: 0.95rem;
  color: var(--sand-dim);
}

/* Tables Component */
.table-wrapper {
  overflow-x: auto;
  margin: 24px 0;
  border: 1px solid var(--stone-line);
  clip-path: var(--notch-md);
}

.styled-table, .data-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--deepslate);
  text-align: left;
}

.styled-table th, .styled-table td,
.data-table th, .data-table td {
  padding: 14px 20px;
  border-bottom: 1px solid var(--stone-line);
  font-size: 0.95rem;
  line-height: 1.6;
  text-align: left;
}

.styled-table th, .data-table th {
  background: var(--deepslate-2);
  font-family: var(--font-heading);
  color: var(--emerald);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.9rem;
  font-weight: 700;
  border-bottom: 2px solid var(--stone-line);
}

.styled-table tr:nth-child(even), .data-table tr:nth-child(even) {
  background: rgba(30, 42, 34, 0.4);
}

.styled-table tr:last-child td, .data-table tr:last-child td {
  border-bottom: none;
}

/* ==========================================================================
   Table of Contents Component (Matches User Screenshot 1)
   ========================================================================== */
.toc-card {
  background: var(--deepslate);
  border: 1px solid var(--stone-line);
  padding: 28px 32px;
  margin: 32px 0;
  clip-path: var(--notch-md);
  text-align: left;
}

.toc-title {
  font-family: var(--font-heading) !important;
  font-size: 1.3rem !important;
  font-weight: 700 !important;
  color: var(--emerald) !important;
  margin-top: 0 !important;
  margin-bottom: 20px !important;
  border-left: 4px solid var(--emerald) !important;
  padding-left: 14px !important;
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  text-transform: none !important;
}

.toc-list, ol.toc-list {
  columns: 2;
  column-gap: 40px;
  list-style-type: decimal;
  padding-left: 24px;
  margin: 0;
}

.toc-list li {
  margin-bottom: 12px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: var(--emerald);
  break-inside: avoid;
}

.toc-list li::marker {
  color: var(--emerald);
  font-weight: 700;
  font-family: var(--font-heading);
}

.toc-list li a {
  color: var(--emerald) !important;
  text-decoration: none !important;
  font-weight: 500;
  transition: color 0.2s ease, text-shadow 0.2s ease;
}

.toc-list li a:hover {
  color: #ffffff !important;
  text-shadow: 0 0 8px rgba(62, 224, 139, 0.6);
}

@media (max-width: 768px) {
  .toc-list, ol.toc-list {
    columns: 1;
  }
}

/* ==========================================================================
   FAQ Accordion Component (Matches User Screenshot)
   ========================================================================== */
.faq-section {
  margin: 40px 0;
}

.faq-title {
  font-family: var(--font-heading) !important;
  font-size: clamp(1.4rem, 3.2vw, 2.1rem) !important;
  color: #ffffff !important;
  margin-top: 0 !important;
  margin-bottom: 24px !important;
  border-left: 4px solid #3ee08b !important;
  padding-left: 14px !important;
  text-transform: none !important;
}

.faq-accordion {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.faq-item {
  background: #0d1611;
  border: 1px solid rgba(62, 224, 139, 0.22);
  border-radius: 8px;
  margin-bottom: 0;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  overflow: hidden;
}

.faq-item:hover, .faq-item.active {
  border-color: rgba(62, 224, 139, 0.5);
  background: #111e17;
  box-shadow: 0 0 12px rgba(62, 224, 139, 0.15);
}

.faq-header {
  padding: 18px 24px;
  font-family: var(--font-heading);
  font-size: 1.02rem;
  font-weight: 700;
  color: #ffffff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  text-align: left;
}

.faq-header span:first-child {
  padding-right: 16px;
  line-height: 1.4;
  color: #ffffff;
}

.faq-header:hover span:first-child {
  color: #3ee08b;
}

.faq-icon {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 700;
  color: #3ee08b;
  transition: transform 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .faq-icon {
  color: #3ee08b;
  transform: rotate(45deg);
}

.faq-content {
  display: none;
  padding: 0 24px 20px 24px;
  border-top: 1px solid rgba(62, 224, 139, 0.2);
  color: var(--sand-dim);
  font-size: 0.98rem;
  line-height: 1.75;
  text-align: left;
}

.faq-content p {
  margin-bottom: 0;
  color: var(--sand-dim);
}

.faq-item.active .faq-content {
  display: block;
}

/* Footer Component */
.site-footer {
  background: #070b09;
  border-top: 1px solid var(--stone-line);
  padding: 44px 0 24px;
  margin-top: 60px;
  text-align: left;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 0;              /* gap removed; border handled via padding instead */
  margin-bottom: 30px;
  align-items: stretch; /* both cols same height so border extends fully */
}

/* First col: logo + text block — self-contained, no overflow */
.footer-col {
  min-width: 0;    /* prevent grid blowout */
  overflow: hidden;
  padding: 0 40px 0 0;  /* replaces gap on left col */
}

/* Right col: no extra left padding needed */
.footer-col:last-child {
  padding: 0 0 0 0;
}

/* Full-height vertical divider between left and right footer columns */
.footer-col:first-child {
  border-right: 1px solid rgba(62, 224, 139, 0.3);
  padding-right: 40px;
}

/* Remove the header border-right from logo-brand when inside footer */
.footer-col .logo-brand {
  display: block;
  text-align: center;
  margin: 0 auto 16px auto;
  border-right: none !important;
  padding-right: 0 !important;
  margin-right: 0 !important;
}

/* Center the logo image in the left footer column */
.footer-col .footer-logo-img {
  display: block;
  max-width: 120px;
  height: auto;
  margin: 0 auto;
}

/* Constrain the tagline paragraph inside left col */
.footer-col .footer-text-justify {
  text-align: justify;
  text-justify: inter-word;
  max-width: 100%;
  font-size: 0.88rem;
  color: var(--sand-dim);
  line-height: 1.7;
  margin-bottom: 0;
}

.footer-col h4 {
  font-family: var(--font-heading);
  color: var(--emerald);
  text-transform: uppercase;
  margin-bottom: 14px;
  margin-top: 0;
}

.footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links li {
  margin-bottom: 8px;
}

.footer-links a {
  color: var(--sand-dim);
  font-size: 0.9rem;
}

.footer-disclaimer {
  border-top: 1px solid var(--stone-line);
  padding-top: 20px;
  font-size: 0.8rem;
  color: var(--sand-faint);
  line-height: 1.7;
}

/* Flexbox layout for exact pixel-perfect alignment:
   "Disclaimer:" label on left, text block on right.
   All wrapped lines (e.g. "Game Studios.") align perfectly under "This website". */
.disc-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-bottom: 6px;
}

.disc-label {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--sand-dim);
  white-space: nowrap;
}

.disc-text {
  flex: 1;
  text-align: justify;
  text-justify: inter-word;
  line-height: 1.7;
  margin: 0 !important;
  color: var(--sand-dim);
}

.footer-disclaimer p:last-child {
  text-align: center;
  color: var(--sand-faint);
  margin-top: 10px;
  text-indent: 0;
  padding-left: 0;
}

/* Media Queries / Responsive Breakpoints & Mobile Optimization */

/* Universal Mobile Safety Wrappers */
html, body {
  width: 100%;
  max-width: 100vw;
  overflow-x: hidden;
}

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

img, video, iframe, table, svg, canvas {
  max-width: 100%;
  height: auto;
}

h1, h2, h3, h4, h5, h6, p, span, a, div, .eyebrow {
  overflow-wrap: break-word;
  word-wrap: break-word;
  word-break: break-word;
}

@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .spec-card {
    width: 100%;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 32px;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }

  .site-header {
    padding: 8px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
  }

  /* ── Mobile Header: Logo left | MINECRAFT center | Hamburger right ── */
  .header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    width: 100%;
    position: relative;
  }

  /* Logo stays on the left */
  .header-inner .logo-brand {
    flex-shrink: 0;
    z-index: 2;
  }

  /* MINECRAFT centered title - injected via CSS */
  .header-inner::after {
    content: 'MINECRAFT';
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-pixel), 'Segoe UI', sans-serif;
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.12em;
    color: #3ee08b;
    text-shadow: 0 0 10px rgba(62, 224, 139, 0.6), 0 0 20px rgba(62, 224, 139, 0.3);
    pointer-events: none;
    z-index: 1;
  }

  /* Nav element hidden space - keep it invisible */
  .header-inner nav {
    flex-grow: 0;
    display: block;
    position: static;
    width: 0;
    overflow: visible;
  }

  /* Hamburger pushed to far right */
  .header-inner .mobile-toggle {
    flex-shrink: 0;
    z-index: 2;
  }

  .logo-brand {
    gap: 8px;
    margin-right: 0;
    padding-right: 0;
    border-right: none;
  }

  .logo-img {
    width: 68px;
    height: 68px;
  }

  .logo-text {
    font-size: 0.8rem;
    line-height: 1.2;
  }

  .header-inner > .btn {
    display: none;
  }

  .header-inner nav {
    flex-grow: 0;
    display: block;
    position: static;
  }

  /* ── Mobile Navigation Drawer ── */
  .nav-links {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    width: 100%;
    background: rgba(8, 18, 11, 0.98);
    backdrop-filter: blur(20px);
    border-bottom: 3px solid #3ee08b;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.95);
    flex-direction: column;
    padding: 16px;
    gap: 6px;
    z-index: 9999;
  }

  .nav-links.active {
    display: flex;
  }

  .nav-links li {
    width: 100%;
    margin-bottom: 0;
  }

  .nav-links a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    font-size: 0.85rem;
    font-family: var(--font-heading);
    font-weight: 700;
    color: var(--sand);
    padding: 10px 14px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.03);
    border-bottom: 1px solid rgba(62, 224, 139, 0.12);
    text-align: left;
  }

  /* Dropdown parent links: text left, arrow ▾ pushed right */
  .nav-links li.has-dropdown > a {
    justify-content: space-between;
  }

  .nav-links a:hover,
  .nav-links a.nav-active {
    color: #3ee08b;
    background: rgba(62, 224, 139, 0.16);
    box-shadow: 0 0 10px rgba(62, 224, 139, 0.25);
  }

  /* ── Mobile Touch Dropdowns ── */
  .nav-links li.has-dropdown .nav-dropdown {
    display: none;
  }

  .nav-links li.has-dropdown.open .nav-dropdown {
    display: block;
    position: static;
    min-width: unset;
    width: 100%;
    clip-path: none;
    border: 1px solid rgba(62, 224, 139, 0.25);
    border-radius: 8px;
    background: rgba(62, 224, 139, 0.06);
    box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.4);
    animation: dropFadeIn 0.15s ease;
    padding: 6px 8px;
    margin-top: 6px;
    margin-bottom: 4px;
  }

  .nav-dropdown a {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
    font-size: 0.78rem;
    padding: 9px 12px;
    color: var(--sand-dim);
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04) !important;
    background: transparent !important;
  }

  .nav-dropdown a::before {
    content: '▸';
    color: #3ee08b;
    font-size: 0.75rem;
    font-weight: bold;
    flex-shrink: 0;
  }

  .nav-dropdown a:hover {
    color: #3ee08b;
    background: rgba(62, 224, 139, 0.08) !important;
  }

  /* ── Mobile Menu Toggle Button ── */
  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 5px;
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, rgba(62, 224, 139, 0.15), rgba(62, 224, 139, 0.08));
    border: 1.5px solid rgba(62, 224, 139, 0.6);
    border-radius: 8px;
    cursor: pointer;
    box-shadow: 0 0 14px rgba(62, 224, 139, 0.3), inset 0 1px 0 rgba(62, 224, 139, 0.2);
    transition: all 0.22s ease;
    flex-shrink: 0;
    position: relative;
    overflow: hidden;
    padding: 0;
    font-size: 0; /* hide any stray text */
  }

  /* Hamburger bars via pseudo-elements + box-shadow trick */
  .mobile-toggle::before,
  .mobile-toggle::after {
    content: '';
    display: block;
    width: 20px;
    height: 2px;
    background: #3ee08b;
    border-radius: 2px;
    transition: all 0.22s ease;
    box-shadow: 0 0 6px rgba(62, 224, 139, 0.7);
  }

  /* Middle bar via a span inside the button */
  .mobile-toggle .bar-mid {
    display: block;
    width: 14px;
    height: 2px;
    background: #3ee08b;
    border-radius: 2px;
    transition: all 0.22s ease;
    box-shadow: 0 0 6px rgba(62, 224, 139, 0.5);
  }

  .mobile-toggle:hover {
    background: linear-gradient(135deg, rgba(62, 224, 139, 0.25), rgba(62, 224, 139, 0.14));
    border-color: #3ee08b;
    box-shadow: 0 0 20px rgba(62, 224, 139, 0.5), inset 0 1px 0 rgba(62, 224, 139, 0.3);
  }

  /* Active / open state — X icon */
  .mobile-toggle.is-open::before {
    transform: translateY(7px) rotate(45deg);
  }
  .mobile-toggle.is-open::after {
    transform: translateY(-7px) rotate(-45deg);
  }
  .mobile-toggle.is-open .bar-mid {
    opacity: 0;
    transform: scaleX(0);
  }

  h1 {
    font-size: clamp(1.4rem, 6vw, 2.2rem) !important;
    line-height: 1.25 !important;
    margin-bottom: 1rem !important;
  }

  h2 {
    font-size: clamp(1.2rem, 5vw, 1.7rem) !important;
    line-height: 1.3 !important;
    margin-top: 1.75rem !important;
    margin-bottom: 1rem !important;
    padding-left: 10px !important;
  }

  h3 {
    font-size: clamp(1.05rem, 4vw, 1.3rem) !important;
  }

  .hero-actions {
    flex-direction: column;
    width: 100%;
    gap: 12px;
  }

  .hero-actions .btn, .btn-lg {
    width: 100%;
    text-align: center;
    font-size: 0.88rem !important;
    padding: 12px 18px !important;
  }

  .eyebrow {
    font-size: 0.6rem !important;
    letter-spacing: 0.5px !important;
    white-space: normal !important;
    padding: 6px 10px !important;
    line-height: 1.4 !important;
  }

  .spec-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .step-item {
    flex-direction: column;
    gap: 12px;
  }

  .content-image {
    height: auto;
    max-height: 320px;
  }

  /* ── Universal Mobile Text Justification ── */
  p, .article-content p, .hero-content p, section p, div > p, article p, li > p {
    text-align: justify !important;
    text-justify: inter-word !important;
  }

  /* ── Footer Centering & Alignment for Mobile ── */
  .site-footer {
    text-align: center;
    padding: 40px 0 24px 0;
  }

  .footer-grid {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 32px;
    width: 100%;
  }

  .footer-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
    padding: 0 !important;     /* remove desktop padding on mobile */
    border-right: none !important;  /* remove column divider on mobile */
  }

  .footer-col .logo-brand {
    margin: 0 auto;
    justify-content: center;
    display: flex;
  }

  /* Mobile disclaimer styling */
  .disc-row {
    display: flex;
    gap: 6px;
  }

  .footer-logo-img, .footer-logo {
    margin: 0 auto;
  }

  .footer-text-justify {
    text-align: justify !important;
    text-justify: inter-word !important;
    margin: 12px auto 0 auto;
    max-width: 95%;
  }

  .footer-socials {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 18px auto 0 auto;
    width: 100%;
  }

  .footer-col h4 {
    text-align: center;
    width: 100%;
    margin-bottom: 16px;
  }

  .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px 18px;
    width: 100%;
    text-align: center;
    padding: 0;
  }

  .footer-links li {
    margin-bottom: 0;
  }

  .footer-disclaimer {
    border-top: 1px solid var(--stone-line);
    padding-top: 24px;
    margin-top: 32px;
    width: 100%;
  }

  .footer-disclaimer p {
    text-align: justify !important;
    text-justify: inter-word !important;
    font-size: 0.82rem;
    line-height: 1.7;
    color: var(--sand-dim);
    margin-bottom: 10px;
  }

  .footer-disclaimer p:last-child {
    text-align: center !important;
    color: var(--sand-faint);
    margin-top: 12px;
    font-size: 0.8rem;
  }

  .toc-card {
    padding: 20px 18px;
  }

  .toc-title {
    font-size: 1.1rem !important;
  }

  .toc-list, ol.toc-list {
    columns: 1 !important;
    padding-left: 18px;
  }

  .faq-header {
    padding: 14px 18px;
    font-size: 0.95rem;
  }

  .faq-content {
    padding: 0 18px 16px 18px;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .logo-text {
    font-size: 0.65rem;
    max-width: 110px;
    line-height: 1.15;
  }

  .logo-text span {
    display: block;
  }

  .logo-img {
    width: 56px;
    height: 56px;
  }

  h1 {
    font-size: 1.3rem !important;
  }

  h2 {
    font-size: 1.1rem !important;
  }

  .spec-title {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .styled-table th, .styled-table td,
  .data-table th, .data-table td {
    padding: 10px 12px;
    font-size: 0.82rem;
  }
}


/* Hide unstyled static search modal if present in legacy files */
#search-modal, .search-modal { display: none !important; }


/* Article Byline / Metadata Accent Bar */
.article-byline {
  display: inline-flex;
  align-items: center;
  border-left: 3px solid var(--emerald);
  padding-left: 12px;
  margin-top: 10px;
  margin-bottom: 24px;
  font-family: var(--font-heading), 'Chakra Petch', sans-serif;
  font-size: 0.92rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.03em;
}

/* Standardized Read Article Button */
.btn-read-article {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: linear-gradient(135deg, #3ee08b 0%, #2ecc71 100%);
  color: #06120a !important;
  font-family: var(--font-heading), 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 10px 20px;
  clip-path: polygon(8px 0, calc(100% - 8px) 0, 100% 8px, 100% calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 0 calc(100% - 8px), 0 8px);
  text-decoration: none !important;
  transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
  margin-top: 14px;
  cursor: pointer !important;
  pointer-events: auto !important;
  user-select: none;
}

.btn-read-article:hover {
  transform: translateY(-2px);
  filter: brightness(1.15) drop-shadow(0 0 12px rgba(62, 224, 139, 0.6));
  color: #06120a !important;
  text-decoration: none !important;
}

.btn-read-article:active {
  transform: translateY(0);
  filter: brightness(0.95);
}