/* ============================================================
   GEMWIRE.GG - Main Stylesheet
   Mobile-first, dark gaming theme
   ============================================================ */

:root {
  --bg: #0a0a0f;
  --surface: #12121e;
  --surface-soft: #1a1a2e;
  --surface-hover: #1e1e38;
  --text: #e8e8f0;
  --text-muted: #8888aa;
  --brand: #8B5CF6;
  --brand-dark: #6D28D9;
  --brand-light: #a78bfa;
  --brand-gradient: linear-gradient(135deg, #8B5CF6, #6D28D9);
  --border: #2a2a3e;
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
  --font: 'Inter', system-ui, -apple-system, sans-serif;
  --max-width: 1280px;
  --container-px: 1.25rem;
}

/* ============ RESET ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand-light); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand); }
a:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 3px; }
button { cursor: pointer; font-family: inherit; }
ul, ol { list-style: none; }
table { border-collapse: collapse; width: 100%; }

/* ============ ACCESSIBILITY ============ */
.skip-link {
  position: absolute; top: -100px; left: 1rem; z-index: 999;
  background: var(--brand); color: #fff; padding: 0.5rem 1rem;
  border-radius: var(--radius-sm); font-weight: 600;
}
.skip-link:focus { top: 1rem; }

/* ============ CONTAINER ============ */
.container {
  max-width: var(--max-width);
  margin-inline: auto;
  padding-inline: var(--container-px);
}

/* ============ TYPOGRAPHY ============ */
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 700; line-height: 1.2; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; }
h3 { font-size: clamp(1.15rem, 2.5vw, 1.5rem); font-weight: 600; line-height: 1.4; }
h4 { font-size: 1.1rem; font-weight: 600; }
p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* ============ BUTTONS ============ */
.btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.65rem 1.4rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.95rem; border: 2px solid transparent;
  transition: all 0.2s; white-space: nowrap; min-height: 44px;
}
.btn-primary {
  background: var(--brand-gradient); color: #fff;
  border-color: transparent;
}
.btn-primary:hover { opacity: 0.88; color: #fff; }
.btn-secondary {
  background: transparent; color: var(--brand-light);
  border-color: var(--brand);
}
.btn-secondary:hover { background: var(--brand); color: #fff; }
.btn-ghost {
  background: var(--surface-soft); color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover { background: var(--surface-hover); color: var(--text); }
.btn-icon {
  background: none; border: none; color: var(--text-muted);
  padding: 0.5rem; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
  min-height: 44px; min-width: 44px; transition: color 0.2s, background 0.2s;
}
.btn-icon:hover { color: var(--text); background: var(--surface-soft); }

/* ============ ICONS ============ */
.icon { width: 1.25em; height: 1.25em; display: inline-block; vertical-align: -0.15em; flex-shrink: 0; }

/* ============ FLASH MESSAGES ============ */
.flash-messages { padding: 1rem 0; }
.flash {
  padding: 0.75rem 1rem; border-radius: var(--radius-sm); margin-bottom: 0.5rem;
  font-weight: 500;
}
.flash-success { background: rgba(34,197,94,0.15); border: 1px solid var(--success); color: var(--success); }
.flash-danger { background: rgba(239,68,68,0.15); border: 1px solid var(--danger); color: var(--danger); }
.flash-warning { background: rgba(245,158,11,0.15); border: 1px solid var(--warning); color: var(--warning); }

/* ============ HEADER ============ */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,10,15,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex; align-items: center; gap: 1.5rem;
  padding-block: 0.875rem;
}
.logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-size: 1.25rem; font-weight: 700; color: var(--text);
  flex-shrink: 0;
}
.logo:hover { color: var(--brand-light); }
.logo-icon { color: var(--brand); width: 1.5rem; height: 1.5rem; }
.logo-dot { color: var(--brand); }
.main-nav { flex: 1; display: none; }
.nav-list { display: flex; gap: 0.25rem; align-items: center; }
.nav-link {
  padding: 0.4rem 0.75rem; border-radius: var(--radius-sm);
  color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
  transition: color 0.2s, background 0.2s;
}
.nav-link:hover, .nav-link.active { color: var(--text); background: var(--surface-soft); }
.header-actions { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }

@media (min-width: 900px) {
  .main-nav { display: flex; }
  .mobile-nav-toggle { display: none; }
}

/* Mobile nav */
.mobile-nav {
  background: var(--surface); border-bottom: 1px solid var(--border);
  padding: 1rem;
}
.mobile-nav[hidden] { display: none; }
.mobile-nav-list { display: flex; flex-direction: column; gap: 0.5rem; }
.mobile-nav-list a {
  display: block; padding: 0.65rem 1rem; border-radius: var(--radius-sm);
  color: var(--text); font-weight: 500;
}
.mobile-nav-list a:hover { background: var(--surface-soft); }

/* Search overlay */
.search-overlay {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(10,10,15,0.92); backdrop-filter: blur(8px);
  display: flex; align-items: flex-start; justify-content: center;
  padding-top: 10vh;
}
.search-overlay[hidden] { display: none; }
.search-box {
  width: 100%; max-width: 600px; padding: 0 1rem;
  display: flex; gap: 0.75rem; align-items: center;
}
.search-input {
  flex: 1; background: var(--surface); border: 2px solid var(--border);
  color: var(--text); padding: 0.75rem 1rem; border-radius: var(--radius-sm);
  font-size: 1rem; font-family: inherit;
}
.search-input:focus { outline: none; border-color: var(--brand); }
.search-close { flex-shrink: 0; }

/* ============ HERO ============ */
.hero {
  background: radial-gradient(ellipse at top left, rgba(139,92,246,0.15) 0%, transparent 60%),
              var(--bg);
  padding-block: 4rem 3rem;
  border-bottom: 1px solid var(--border);
}
.hero-inner {
  display: grid; gap: 2.5rem; align-items: center;
}
@media (min-width: 768px) {
  .hero-inner { grid-template-columns: 1fr 1fr; }
  .hero { padding-block: 6rem 4rem; }
}
.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(139,92,246,0.15); border: 1px solid rgba(139,92,246,0.3);
  color: var(--brand-light); font-size: 0.8rem; font-weight: 600;
  padding: 0.3rem 0.75rem; border-radius: 4px; margin-bottom: 1rem;
  letter-spacing: 0.05em; text-transform: uppercase;
}
.hero-title {
  background: linear-gradient(135deg, #e8e8f0, var(--brand-light));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; margin-bottom: 1rem;
}
.hero-subtitle { color: var(--text-muted); font-size: 1.1rem; max-width: 520px; margin-bottom: 2rem; }
.hero-ctas { display: flex; gap: 1rem; flex-wrap: wrap; }
.hero-svg { width: 100%; max-width: 360px; margin: 0 auto; }

/* ============ TRUST STRIP ============ */
.trust-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding-block: 1rem;
}
.trust-list {
  display: flex; gap: 1.5rem; overflow-x: auto; padding-bottom: 0.25rem;
  justify-content: center; flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 0.5rem;
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  white-space: nowrap; flex-shrink: 0;
}
.trust-item .icon { color: var(--brand); }

/* ============ SECTIONS ============ */
.section { padding-block: 3.5rem; }
.section:nth-child(even) { background: var(--surface); }
.section-header {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 1.75rem; gap: 1rem;
}
.section-title { }
.section-link {
  display: flex; align-items: center; gap: 0.25rem;
  color: var(--brand-light); font-size: 0.9rem; font-weight: 500;
  white-space: nowrap;
}
.section-link:hover { color: var(--brand); }

/* ============ CARDS ============ */
.card-grid {
  display: grid; gap: 1.25rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}
.card {
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.5rem;
  display: flex; flex-direction: column; gap: 0.75rem;
  transition: border-color 0.2s, transform 0.2s;
  position: relative;
}
.card:hover { border-color: var(--brand); transform: translateY(-2px); }
.card-badge {
  display: inline-flex; align-items: center;
  background: rgba(139,92,246,0.15); color: var(--brand-light);
  font-size: 0.75rem; font-weight: 600; padding: 0.2rem 0.6rem;
  border-radius: 4px; text-transform: uppercase; letter-spacing: 0.04em;
  align-self: flex-start;
}
.card-title { font-size: 1.05rem; font-weight: 600; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--brand-light); }
.card-excerpt { color: var(--text-muted); font-size: 0.9rem; flex: 1; }
.card-meta { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; margin-top: auto; }
.card-time { display: flex; align-items: center; gap: 0.3rem; color: var(--text-muted); font-size: 0.8rem; }
.card-date { color: var(--text-muted); font-size: 0.8rem; }
.card-link { display: flex; align-items: center; gap: 0.2rem; font-size: 0.875rem; font-weight: 500; color: var(--brand-light); }
.card-link:hover { color: var(--brand); }

.card-tool { text-align: center; align-items: center; }
.tool-icon-wrap {
  width: 3.5rem; height: 3.5rem; display: flex; align-items: center; justify-content: center;
  background: rgba(139,92,246,0.15); border-radius: var(--radius);
  color: var(--brand); flex-shrink: 0;
}
.tool-icon-wrap .icon { width: 1.75rem; height: 1.75rem; }

/* ============ SAFETY CALLOUT ============ */
.safety-callout {
  background: rgba(139,92,246,0.06);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding-block: 2.5rem;
}
.callout-inner {
  display: flex; gap: 1.5rem; align-items: flex-start;
}
.callout-icon { width: 2.5rem; height: 2.5rem; color: var(--brand); flex-shrink: 0; margin-top: 0.25rem; }
.callout-title { font-size: 1.2rem; margin-bottom: 0.5rem; }

/* ============ INTERNAL LINKS ============ */
.link-grid {
  display: grid; gap: 0.75rem;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  margin-top: 1.25rem;
}
.link-tile {
  display: flex; flex-direction: column; align-items: center; gap: 0.5rem;
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem 0.75rem;
  color: var(--text); font-weight: 500; font-size: 0.875rem;
  text-align: center; transition: all 0.2s;
}
.link-tile:hover { border-color: var(--brand); background: var(--surface-hover); color: var(--brand-light); }
.link-tile .icon { width: 1.5rem; height: 1.5rem; color: var(--brand); }

/* ============ BREADCRUMBS ============ */
.breadcrumbs {
  padding-block: 0.875rem;
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}
.breadcrumbs ol {
  display: flex; flex-wrap: wrap; gap: 0.25rem; align-items: center;
  list-style: none; font-size: 0.875rem;
  max-width: var(--max-width); margin-inline: auto;
  padding-inline: var(--container-px);
}
.breadcrumbs a { color: var(--text-muted); }
.breadcrumbs a:hover { color: var(--brand-light); }
.breadcrumbs [aria-current="page"] { color: var(--text); }
.crumb-sep { color: var(--border); margin-inline: 0.25rem; }

/* ============ ARTICLE LAYOUT ============ */
.article-layout {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  padding-block: 2rem;
  align-items: start;
}
@media (min-width: 1024px) {
  .article-layout {
    grid-template-columns: 220px 1fr 220px;
  }
  .article-sidebar-left { position: sticky; top: 5rem; }
  .article-sidebar-right { position: sticky; top: 5rem; }
}

.article-header { margin-bottom: 1.75rem; }
.article-title { margin-bottom: 0.75rem; }
.article-meta {
  display: flex; flex-wrap: wrap; gap: 1rem;
  color: var(--text-muted); font-size: 0.875rem;
}
.meta-item { display: flex; align-items: center; gap: 0.35rem; }

/* Article body */
.article-body h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.article-body h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.article-body ul, .article-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.article-body ul { list-style: disc; }
.article-body ol { list-style: decimal; }
.article-body li { margin-bottom: 0.35rem; }
.article-body table { margin-block: 1.5rem; border-radius: var(--radius); overflow: hidden; }
.article-body th, .article-body td { padding: 0.65rem 0.875rem; text-align: left; border-bottom: 1px solid var(--border); }
.article-body th { background: var(--surface-soft); font-weight: 600; color: var(--text); }
.article-body td { color: var(--text-muted); }
.article-body tr:last-child td { border-bottom: none; }
.article-body a { color: var(--brand-light); }
.article-body a:hover { color: var(--brand); }
.article-body code { background: var(--surface-soft); padding: 0.1em 0.4em; border-radius: 3px; font-size: 0.875em; }
.article-body pre { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 1rem; overflow-x: auto; margin-block: 1.25rem; }

/* Callout boxes */
.callout {
  border-radius: var(--radius-sm); padding: 1rem 1.25rem;
  margin-block: 1.25rem; border-left: 4px solid;
  font-size: 0.9rem;
}
.callout-note { background: rgba(139,92,246,0.08); border-color: var(--brand); }
.callout-warning { background: rgba(245,158,11,0.08); border-color: var(--warning); color: var(--text); }
.callout-tip { background: rgba(34,197,94,0.08); border-color: var(--success); }

/* Charts */
.chart-block { margin-block: 1.5rem; overflow-x: auto; }
.chart-title { font-weight: 600; margin-bottom: 0.5rem; color: var(--text-muted); font-size: 0.875rem; }

/* Author box */
.author-box {
  display: flex; gap: 1rem; align-items: flex-start;
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; margin-top: 2.5rem;
}
.author-avatar {
  width: 3rem; height: 3rem; flex-shrink: 0;
  background: rgba(139,92,246,0.15); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--brand);
}
.author-name { font-weight: 600; margin-bottom: 0.25rem; }
.author-bio { font-size: 0.875rem; color: var(--text-muted); }

/* Sidebars */
.article-sidebar { }

/* TOC */
.toc-wrapper { }
.toc-toggle {
  display: flex; align-items: center; gap: 0.5rem;
  width: 100%; background: var(--surface-soft); border: 1px solid var(--border);
  color: var(--text); padding: 0.65rem 0.875rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.875rem; cursor: pointer;
}
@media (min-width: 1024px) { .toc-toggle { display: none; } }
.toc {
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 1rem;
}
.toc-title {
  font-weight: 600; font-size: 0.8rem; text-transform: uppercase;
  letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.75rem;
  display: none;
}
@media (min-width: 1024px) { .toc-title { display: block; } }
.toc-items { display: flex; flex-direction: column; gap: 0.25rem; }
.toc-item { }
.toc-h2 { }
.toc-h3 { padding-left: 0.875rem; }
.toc-link {
  display: block; font-size: 0.8rem; color: var(--text-muted);
  padding: 0.2rem 0; border-left: 2px solid transparent;
  padding-left: 0.5rem; transition: all 0.15s; border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.toc-link:hover, .toc-link.active { color: var(--brand-light); border-left-color: var(--brand); }

/* Right sidebar */
.related-panel { margin-bottom: 1.5rem; }
.related-heading { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.75rem; }
.related-list { display: flex; flex-direction: column; gap: 0.5rem; }
.related-item { }
.related-link {
  display: flex; align-items: flex-start; gap: 0.35rem;
  color: var(--text-muted); font-size: 0.875rem; line-height: 1.4;
}
.related-link:hover { color: var(--brand-light); }
.related-link .icon { flex-shrink: 0; margin-top: 0.15rem; }
.related-time { margin-left: auto; font-size: 0.75rem; flex-shrink: 0; }

.sidebar-safety {
  background: rgba(139,92,246,0.06); border: 1px solid rgba(139,92,246,0.2);
  border-radius: var(--radius-sm); padding: 0.875rem;
  font-size: 0.8rem; color: var(--text-muted); margin-bottom: 1rem;
  display: flex; gap: 0.5rem; align-items: flex-start;
}
.sidebar-safety .icon { color: var(--brand); flex-shrink: 0; }
.sidebar-updated { font-size: 0.75rem; color: var(--text-muted); }

/* Related bottom */
.related-bottom { padding-block: 2.5rem; border-top: 1px solid var(--border); }
.related-bottom-title { margin-bottom: 1.25rem; }

/* ============ LISTING PAGE ============ */
.listing-page { padding-block: 2rem; }
.page-title { margin-bottom: 1.5rem; }
.page-intro { color: var(--text-muted); max-width: 640px; margin-bottom: 2rem; font-size: 1.05rem; }
.listing-section-title { font-size: 1.15rem; font-weight: 600; margin-bottom: 1.25rem; color: var(--text-muted); border-bottom: 1px solid var(--border); padding-bottom: 0.5rem; }
.listing-body { margin-bottom: 2rem; }

/* Tool explainer sections */
.tool-explainer { margin-bottom: 2rem; max-width: 760px; }
.tool-explainer h2 { font-size: 1.25rem; margin-top: 1.5rem; margin-bottom: 0.6rem; }
.tool-explainer h2:first-child { margin-top: 0; }
.tool-explainer p { color: var(--text-muted); font-size: 0.95rem; margin-bottom: 0.875rem; }
.tool-explainer a { color: var(--brand-light); }
.tool-form-title { font-size: 1.15rem; margin-bottom: 1.25rem; }

/* Tool FAQ */
.tool-faq { margin-top: 2.5rem; max-width: 760px; }
.tool-faq h2 { margin-bottom: 1.25rem; }
.faq-item { border-top: 1px solid var(--border); padding: 1rem 0; }
.faq-item h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.faq-item p { color: var(--text-muted); font-size: 0.9rem; margin: 0; }

/* ============ STATIC PAGE ============ */
.static-page { padding-block: 2rem; max-width: 780px; }
.page-body h2 { margin-top: 2rem; margin-bottom: 0.75rem; }
.page-body h3 { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.page-body ul, .page-body ol { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-body ul { list-style: disc; }
.page-body ol { list-style: decimal; }
.page-body li { margin-bottom: 0.4rem; }
.page-body a { color: var(--brand-light); }
.page-body table { margin-block: 1.5rem; }
.page-body th, .page-body td { padding: 0.65rem 0.875rem; border-bottom: 1px solid var(--border); }
.page-body th { background: var(--surface-soft); }

/* ============ TOOLS ============ */
.tool-page { padding-block: 2rem; max-width: 760px; }
.tool-card {
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 2rem;
  margin-top: 1.5rem;
}
.tool-form { display: flex; flex-direction: column; gap: 1.25rem; }
.form-group { display: flex; flex-direction: column; gap: 0.5rem; }
.form-label { font-weight: 500; font-size: 0.9rem; }
.form-select, .form-input {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); padding: 0.65rem 0.875rem; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.95rem; width: 100%;
}
.form-select:focus, .form-input:focus { outline: none; border-color: var(--brand); }
.form-hint { font-size: 0.75rem; color: var(--text-muted); }
.range-input { -webkit-appearance: none; width: 100%; height: 6px; background: var(--border); border-radius: 3px; }
.range-input::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: var(--brand); cursor: pointer; }
.range-input:focus { outline: none; }
.radio-group { display: flex; gap: 1.25rem; }
.radio-label { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; font-size: 0.9rem; }

.tool-result { margin-top: 2rem; border-top: 1px solid var(--border); padding-top: 1.5rem; }
.tool-result[hidden] { display: none; }
.result-title { margin-bottom: 1rem; }
.result-highlight { display: flex; align-items: baseline; gap: 0.5rem; margin-bottom: 1rem; }
.result-big { font-size: 3rem; font-weight: 700; color: var(--brand); }
.result-label { font-size: 1.1rem; color: var(--text-muted); }
.result-note { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1rem; }
.result-tips { font-size: 0.875rem; color: var(--text-muted); }
.result-tips a { color: var(--brand-light); }
.result-tips-list { list-style: disc; padding-left: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; margin-bottom: 1rem; }
.result-tips-list li { font-size: 0.9rem; color: var(--text); }

/* Checklist */
.checklist { display: flex; flex-direction: column; gap: 0.875rem; }
.checklist-item { border: 1px solid var(--border); border-radius: var(--radius-sm); }
.check-label {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.875rem; cursor: pointer; transition: background 0.15s;
  border-radius: var(--radius-sm);
}
.check-label:hover { background: var(--surface-hover); }
.check-input { position: absolute; opacity: 0; width: 0; height: 0; }
.check-custom {
  width: 1.25rem; height: 1.25rem; flex-shrink: 0;
  border: 2px solid var(--border); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  margin-top: 0.2rem; transition: all 0.15s; color: transparent;
}
.check-input:checked + .check-custom { background: var(--brand); border-color: var(--brand); color: #fff; }
.check-input:focus-visible + .check-custom { outline: 2px solid var(--brand); outline-offset: 2px; }
.check-custom .icon { width: 0.875rem; height: 0.875rem; }
.check-desc { font-size: 0.8rem; color: var(--text-muted); margin-top: 0.15rem; }

.score-bar { height: 8px; background: var(--border); border-radius: 4px; margin-top: 1.5rem; overflow: hidden; }
.score-bar-fill { height: 100%; background: var(--brand-gradient); border-radius: 4px; transition: width 0.3s; }
.score-label { font-size: 0.875rem; color: var(--text-muted); margin-top: 0.5rem; margin-bottom: 1rem; }

/* ============ SEARCH PAGE ============ */
.search-page { padding-block: 2rem; max-width: 760px; }
.search-form-inline { display: flex; gap: 0.75rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.results-count { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.25rem; }
.results-list { display: flex; flex-direction: column; gap: 1.5rem; }
.result-item { padding: 1.25rem; background: var(--surface-soft); border: 1px solid var(--border); border-radius: var(--radius); }
.result-type { display: inline-block; font-size: 0.75rem; text-transform: uppercase; font-weight: 600; color: var(--brand-light); margin-bottom: 0.35rem; }
.result-title { font-size: 1.1rem; margin-bottom: 0.4rem; }
.result-excerpt { font-size: 0.875rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.result-url { font-size: 0.8rem; color: var(--text-muted); }
.no-results { color: var(--text-muted); }

/* ============ SITEMAP ============ */
.sitemap-grid { display: grid; gap: 2rem; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); margin-top: 1.5rem; }
.sitemap-section h2 { font-size: 1rem; margin-bottom: 0.75rem; color: var(--brand-light); }
.sitemap-section ul { list-style: none; display: flex; flex-direction: column; gap: 0.35rem; }
.sitemap-section a { color: var(--text-muted); font-size: 0.875rem; }
.sitemap-section a:hover { color: var(--brand-light); }

/* ============ PAGINATION ============ */
.pagination {
  display: flex; align-items: center; gap: 1rem; justify-content: center;
  margin-top: 2.5rem;
}
.pagination-info { color: var(--text-muted); font-size: 0.875rem; }

/* ============ FOOTER ============ */
.site-footer {
  background: var(--surface); border-top: 1px solid var(--border);
  padding-top: 3rem;
}
.footer-inner {
  display: grid; gap: 2.5rem;
  grid-template-columns: 1fr;
  padding-bottom: 2.5rem;
}
@media (min-width: 640px) { .footer-inner { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .footer-inner { grid-template-columns: 2fr repeat(4, 1fr); } }
.footer-logo {
  display: flex; align-items: center; gap: 0.5rem;
  font-weight: 700; color: var(--text); font-size: 1.1rem; margin-bottom: 0.75rem;
}
.footer-logo .icon { color: var(--brand); }
.footer-desc { color: var(--text-muted); font-size: 0.875rem; line-height: 1.6; }
.footer-heading { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); margin-bottom: 0.875rem; }
.footer-col ul { display: flex; flex-direction: column; gap: 0.5rem; }
.footer-col a { color: var(--text-muted); font-size: 0.875rem; transition: color 0.15s; }
.footer-col a:hover { color: var(--brand-light); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-block: 1.25rem;
  text-align: center;
}
.footer-bottom p { color: var(--text-muted); font-size: 0.8rem; }

/* ============ RESPONSIVE UTILITIES ============ */
@media (max-width: 767px) {
  .article-sidebar-right { order: 3; }
  .article-sidebar-left .toc-list { display: none; }
  .article-sidebar-left .toc-list.open { display: block; }
}

/* ============ LONDON TIME ============ */
.trust-item--time { margin-left: auto; }
.london-time-link {
  font-weight: 600; color: var(--brand-light);
  text-decoration: none; letter-spacing: 0.03em;
}
.london-time-link:hover { color: var(--brand); }
#london-clock { font-variant-numeric: tabular-nums; letter-spacing: 0.03em; }

/* ============ QUICKPLAY SECTION ============ */
.quickplay-intro {
  color: var(--text-muted); font-size: 0.95rem; line-height: 1.7;
  max-width: 720px; margin-bottom: 1.75rem;
}
.quickplay-intro a { color: var(--brand-light); font-weight: 500; }
.quickplay-intro a:hover { color: var(--brand); }
.quickplay-grid {
  display: grid; gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr));
}
.quickplay-card {
  display: flex; flex-direction: column; align-items: center; gap: 0.4rem;
  background: var(--surface-soft); border: 1px solid var(--border);
  border-radius: 4px; padding: 1.25rem 0.75rem; text-align: center;
  text-decoration: none; transition: border-color 0.2s, transform 0.2s;
}
.quickplay-card:hover { border-color: var(--brand); transform: translateY(-2px); }
.quickplay-icon { display: flex; align-items: center; justify-content: center; width: 2.25rem; height: 2.25rem; color: var(--brand-light); }
.quickplay-icon .icon { width: 100%; height: 100%; }
.quickplay-name { font-weight: 600; color: var(--text); font-size: 0.95rem; }

/* ============ CONTACT PAGE ============ */
.contact-layout { display: grid; grid-template-columns: 1fr 320px; gap: 3rem; align-items: start; padding-block: 2rem; }
@media (max-width: 860px) { .contact-layout { grid-template-columns: 1fr; } }

.contact-lead { color: var(--text-muted); margin-bottom: 2rem; font-size: 1.05rem; }

.contact-form { display: flex; flex-direction: column; gap: 1.25rem; }

.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }

.field-group { display: flex; flex-direction: column; gap: 0.4rem; }

.field-label { font-size: 0.875rem; font-weight: 600; color: var(--text); }
.field-label span { color: var(--danger); margin-left: 0.15rem; }

.field-input {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.65rem 0.875rem;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.15s;
  width: 100%;
  box-sizing: border-box;
}
.field-input:focus { outline: none; border-color: var(--brand); }
.field-textarea { resize: vertical; min-height: 160px; }

.contact-success {
  display: flex; align-items: flex-start; gap: 0.875rem;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: 4px;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
}
.contact-success .icon { color: #10b981; flex-shrink: 0; margin-top: 0.1rem; }
.contact-success strong { display: block; margin-bottom: 0.25rem; }
.contact-success p { margin: 0; color: var(--text-muted); font-size: 0.9rem; }

.contact-sidebar { display: flex; flex-direction: column; gap: 1.25rem; }
.contact-info-card {
  background: var(--surface-soft);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem;
}
.contact-info-title { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.75rem; }
.contact-info-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.5rem; }
.contact-info-list li { display: flex; align-items: center; gap: 0.5rem; font-size: 0.9rem; color: var(--text-muted); }
.contact-info-list .icon { color: var(--brand-light); flex-shrink: 0; }
.quickplay-desc { color: var(--text-muted); font-size: 0.78rem; }
