/* Preserve the compact formatting of the formerly inline stylesheet. */
/* stylelint-disable declaration-block-single-line-max-declarations, no-descending-specificity */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg:          #06090e;
  --bg2:         #090e18;
  --surface:     #0c1420;
  --border:      #18283a;
  --border2:     #243548;
  --text:        #c8d8e8;
  --text-dim:    #5a7088;
  --text-faint:  #1e3048;
  --accent:      #00dfc8;
  --accent-dim:  rgb(0 223 200 / 12%);
  --accent-glow: rgb(0 223 200 / 28%);
  --font-ui:     'Rajdhani', -apple-system, sans-serif;
  --font-mono:   'JetBrains Mono', monospace;
  --font-type:   'Bebas Neue', sans-serif;
  --boost-bg:    #0c1f0f;
  --boost-fg:    #4ade80;
  --boost-border:#1a3a20;
  --cut-bg:      #1f0c0c;
  --cut-fg:      #f87171;
  --cut-border:  #3a1a1a;
  --neutral-bg:  #0e141c;
  --neutral-fg:  #4a6070;
}

html.light {
  --bg:         #eef2f7;
  --bg2:        #e6ecf4;
  --surface:    #fff;
  --border:     #c8d4e4;
  --border2:    #b0c0d4;
  --text:       #18283a;
  --text-dim:   #5a6a7a;
  --text-faint: #c0ccd8;
  --accent:     #09b;
  --accent-dim: rgb(0 153 187 / 10%);
  --accent-glow:rgb(0 153 187 / 22%);
  --boost-bg:   #dcfce7;
  --boost-fg:   #15803d;
  --boost-border:#bbf7d0;
  --cut-bg:     #fee2e2;
  --cut-fg:     #b91c1c;
  --cut-border: #fecaca;
  --neutral-bg: #f1f5f9;
  --neutral-fg: #94a3b8;
}

html { background: var(--bg); }

body {
  font-family: var(--font-ui);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 50% at 20% 55%, rgb(0 223 200 / 4%) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 25%, rgb(100 80 255 / 3%) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
}

html.light body::before {
  background: radial-gradient(ellipse 70% 50% at 20% 55%, rgb(0 153 187 / 5%) 0%, transparent 60%);
}

.page-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 80px;
  width: 100%;
  position: relative;
  z-index: 1;
}
.nat-container { width: 100%; max-width: 960px; }

/* Hero */
.hero { text-align: center; margin-bottom: 28px; }

.hero-eyebrow {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 8px;
  opacity: 0.75;
}

.hero h1 {
  font-family: var(--font-ui);
  font-size: clamp(26px, 4.5vw, 44px);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.025em;
  line-height: 1.1;
  margin-bottom: 8px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 13px; color: var(--text-dim); }

/* Toolbar */
.toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.stat-filter-group {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  align-items: center;
}

.filter-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  color: var(--text-dim);
  text-transform: uppercase;
  margin-right: 2px;
}

.stat-btn {
  padding: 6px 13px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: var(--surface);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s, background 0.15s, box-shadow 0.15s;
  letter-spacing: 0.06em;
  user-select: none;
}

.stat-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}

.stat-btn.active-boost {
  background: var(--boost-bg);
  border-color: var(--boost-fg);
  color: var(--boost-fg);
  box-shadow: 0 0 12px rgb(74 222 128 / 20%);
}

.stat-btn.active-cut {
  background: var(--cut-bg);
  border-color: var(--cut-fg);
  color: var(--cut-fg);
  box-shadow: 0 0 12px rgb(248 113 113 / 20%);
}

.divider-v {
  width: 1px;
  height: 24px;
  background: var(--border);
  flex-shrink: 0;
}

.toggle-btn {
  padding: 6px 13px;
  border-radius: 6px;
  border: 1.5px solid var(--border);
  background: transparent;
  color: var(--text-dim);
  font-family: var(--font-ui);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s, color 0.15s;
  letter-spacing: 0.03em;
}
.toggle-btn:hover { border-color: var(--accent); color: var(--accent); }
.toggle-btn.active { border-color: var(--accent); color: var(--accent); background: var(--accent-dim); }
.search-wrap { position: relative; }

.search-wrap input {
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  color: var(--text);
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  width: 180px;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.search-wrap input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.search-wrap input::placeholder { color: var(--text-dim); }

/* Nature table */
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg2);
  box-shadow: 0 2px 40px rgb(0 0 0 / 45%), inset 0 1px 0 rgb(255 255 255 / 2.5%);
  margin-bottom: 32px;
  animation: table-reveal 0.3s ease both;
}
html.light .table-wrap { box-shadow: 0 2px 24px rgb(0 0 0 / 9%); }

@keyframes table-reveal {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

table.nat-table {
  width: 100%;
  border-collapse: collapse;
}

.nat-table thead tr {
  border-bottom: 1px solid var(--border);
}

.nat-table th {
  padding: 10px 14px;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
  text-align: left;
  background: var(--bg2);
  white-space: nowrap;
  cursor: pointer;
  user-select: none;
  transition: color 0.13s;
}
.nat-table th:hover { color: var(--accent); }
.nat-table th.sort-asc::after  { content: ' ↑'; color: var(--accent); }
.nat-table th.sort-desc::after { content: ' ↓'; color: var(--accent); }

.nat-table tbody tr {
  border-bottom: 1px solid color-mix(in srgb, var(--border) 50%, transparent);
  transition: background 0.1s;
}
.nat-table tbody tr:last-child { border-bottom: none; }
.nat-table tbody tr:hover { background: rgb(0 223 200 / 3%); }
html.light .nat-table tbody tr:hover { background: rgb(0 153 187 / 4%); }

.nat-table tbody tr.dimmed {
  opacity: 0.25;
  pointer-events: none;
}

.nat-table tbody tr.highlighted {
  background: rgb(0 223 200 / 5%);
}
html.light .nat-table tbody tr.highlighted { background: rgb(0 153 187 / 7%); }

.nat-table td {
  padding: 9px 14px;
  font-size: 14px;
  font-weight: 500;
  vertical-align: middle;
}

/* Nature name cell */
.nat-name {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}
.nat-name:hover .copy-hint { opacity: 1; }

.copy-hint {
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--accent);
  opacity: 0;
  transition: opacity 0.15s;
  letter-spacing: 0.08em;
}

.tier-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.tier-s { background: var(--accent); box-shadow: 0 0 6px var(--accent-glow); }
.tier-a { background: #818cf8; }
.tier-b { background: #94a3b8; }
.tier-c { background: var(--text-faint); }

/* Stat badge */
.stat-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.stat-badge.boost {
  background: var(--boost-bg);
  color: var(--boost-fg);
  border: 1px solid var(--boost-border);
}

.stat-badge.cut {
  background: var(--cut-bg);
  color: var(--cut-fg);
  border: 1px solid var(--cut-border);
}

.stat-badge.neutral {
  background: var(--neutral-bg);
  color: var(--neutral-fg);
  border: 1px solid var(--border);
}

.stat-badge .sign {
  font-size: 12px;
  line-height: 1;
}

/* Best for cell */
.best-for {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.4;
  max-width: 220px;
}
.best-for strong { color: var(--text); font-weight: 600; }

/* Toast */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: var(--surface);
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 8px 18px;
  border-radius: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  opacity: 0;
  transition: opacity 0.2s, transform 0.2s;
  pointer-events: none;
  z-index: 999;
  box-shadow: 0 4px 20px rgb(0 0 0 / 50%);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ── Competitive guide ── */
.section-header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 14px;
}

.section-title {
  font-family: var(--font-ui);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.015em;
}

.section-sub {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-dim);
}

.roles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 36px;
}

.role-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.role-card:hover {
  border-color: var(--border2);
  box-shadow: 0 4px 20px rgb(0 0 0 / 30%);
}
html.light .role-card:hover { box-shadow: 0 4px 16px rgb(0 0 0 / 8%); }

.role-label {
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.role-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 8px;
}

.role-natures {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 8px;
}

.role-nature-tag {
  padding: 3px 10px;
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.15s, box-shadow 0.15s;
  user-select: none;
}
.role-nature-tag:hover { opacity: 0.85; box-shadow: 0 2px 8px rgb(0 0 0 / 25%); }
.rnt-primary   { background: rgb(0 223 200 / 18%); color: var(--accent); border: 1px solid rgb(0 223 200 / 30%); }
.rnt-secondary { background: var(--surface); color: var(--text-dim); border: 1px solid var(--border); }
html.light .rnt-primary { background: rgb(0 153 187 / 12%); color: var(--accent); border-color: rgb(0 153 187 / 25%); }

.role-desc {
  font-size: 12px;
  color: var(--text-dim);
  line-height: 1.55;
}
.role-desc strong { color: var(--text); font-weight: 600; }

/* Legend row */
.table-legend {
  display: flex;
  gap: 16px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 10px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 5px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}
.tier-legend { display: flex; align-items: center; gap: 4px; }

/* SEO section */
.seo-section {
  margin-top: 48px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 14px;
  color: var(--text);
  line-height: 1.8;
}
.seo-section h2 { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 12px; letter-spacing: -0.015em; }

.seo-section h3 {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 32px 0 10px;
  padding-left: 10px;
  border-left: 2px solid var(--accent);
  opacity: 0.85;
}
.seo-section p { margin-bottom: 12px; color: color-mix(in srgb, var(--text) 80%, var(--text-dim)); }
.seo-section a { color: var(--accent); text-decoration: none; }
.seo-section a:hover { text-decoration: underline; }
.seo-section ul, .seo-section dl { margin: 0 0 12px 18px; }
.seo-section li { margin-bottom: 5px; color: color-mix(in srgb, var(--text) 80%, var(--text-dim)); }
.seo-section dt { font-weight: 700; color: var(--text); margin-top: 12px; }
.seo-section dd { margin-left: 0; margin-bottom: 8px; color: color-mix(in srgb, var(--text) 80%, var(--text-dim)); }

/* Individual nature guides */
.nature-guide { max-width: 860px; }
.nature-guide a { color: var(--accent); }

.nature-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
}

.nature-breadcrumb a { color: var(--text-dim); text-decoration: none; }
.nature-breadcrumb a:hover { color: var(--accent); }

.nature-guide-hero {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--border);
  border-radius: 16px;
  background: linear-gradient(145deg, var(--surface), var(--bg2));
  box-shadow: 0 18px 60px rgb(0 0 0 / 22%);
}

.nature-guide-hero h1 {
  max-width: 680px;
  margin: 0 0 14px;
  font-size: clamp(30px, 6vw, 48px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
}

.nature-answer {
  max-width: 720px;
  font-size: clamp(16px, 2.4vw, 19px);
  line-height: 1.6;
  color: color-mix(in srgb, var(--text) 85%, var(--text-dim));
}

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

.nature-modifier {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 4px 12px;
  padding: 14px 16px;
  border: 1px solid;
  border-radius: 10px;
}

.nature-modifier span {
  grid-column: 1 / -1;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  opacity: 0.75;
}

.nature-modifier strong { font-size: 16px; }
.nature-modifier em { align-self: center; font-family: var(--font-mono); font-size: 11px; font-style: normal; }
.nature-modifier-boost { color: var(--boost-fg); background: var(--boost-bg); border-color: var(--boost-border); }
.nature-modifier-cut { color: var(--cut-fg); background: var(--cut-bg); border-color: var(--cut-border); }

.nature-guide-section {
  margin-top: 46px;
  font-size: 15px;
  line-height: 1.75;
}

.nature-guide-section h2 {
  margin: 0 0 15px;
  font-size: clamp(21px, 3vw, 26px);
  line-height: 1.2;
  color: var(--text);
}

.nature-guide-section p { margin: 0 0 14px; color: color-mix(in srgb, var(--text) 82%, var(--text-dim)); }

.nature-checklist {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nature-checklist li {
  position: relative;
  padding: 12px 14px 12px 42px;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--surface);
}

.nature-checklist li::before {
  content: "✓";
  position: absolute;
  left: 15px;
  color: var(--accent);
  font-family: var(--font-mono);
  font-weight: 700;
}

.nature-caution {
  margin-top: 14px !important;
  padding: 13px 15px;
  border-left: 3px solid var(--cut-fg);
  background: var(--cut-bg);
}

.nature-examples { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.nature-examples li { padding: 13px 15px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); }
.nature-examples a { display: inline-block; min-width: 135px; font-weight: 700; text-decoration: none; }
.nature-examples a:hover { text-decoration: underline; }
.nature-note { margin-top: 13px !important; color: var(--text-dim) !important; font-size: 13px; }

.nature-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 10px; }
.nature-comparison-table { width: 100%; min-width: 580px; border-collapse: collapse; background: var(--surface); }
.nature-comparison-table th, .nature-comparison-table td { padding: 13px 15px; border-bottom: 1px solid var(--border); text-align: left; }
.nature-comparison-table thead th { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--text-dim); }
.nature-comparison-table tbody tr:last-child th, .nature-comparison-table tbody tr:last-child td { border-bottom: 0; }
.nature-comparison-table tbody th { color: var(--text); }
.nature-comparison-table tbody th a { text-decoration: none; }

.nature-faq details { border-top: 1px solid var(--border); }
.nature-faq details:last-child { border-bottom: 1px solid var(--border); }
.nature-faq summary { padding: 15px 4px; color: var(--text); font-weight: 700; cursor: pointer; }
.nature-faq details p { padding: 0 4px 14px; }

.nature-next-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 52px;
  padding: 18px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
}

.nature-next-links strong { width: 100%; font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-dim); }
.nature-next-links a { padding: 5px 9px; border: 1px solid var(--border); border-radius: 6px; text-decoration: none; }
.nature-next-links a:hover { border-color: var(--accent); }

/* Footer */
.page-footer {
  width: 100%;
  text-align: right;
  padding: 20px 16px;
  color: var(--text-faint);
  font-size: 13px;
  position: relative;
  z-index: 1;
}
.page-footer a { color: var(--text-dim); text-decoration: none; transition: color 0.12s; }
.page-footer a:hover { color: var(--accent); }

@media (width <= 600px) {
  .page-main { padding: 18px 10px 48px; }
  .toolbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .stat-filter-group { gap: 4px; }
  .stat-btn { padding: 5px 9px; font-size: 10px; }
  .best-for { display: none; }
  .nat-table th:last-child, .nat-table td:last-child { display: none; }
  .search-wrap input { width: 100%; }
  .roles-grid { grid-template-columns: 1fr; }
  .nature-modifiers { grid-template-columns: 1fr; }
  .nature-guide-hero { padding: 22px 18px; }
  .nature-examples a { display: block; min-width: 0; margin-bottom: 3px; }
}
