/* ════════════════════════════════════════════════════════════
   NAITRO Soil Variables Explainer — page styles
   ════════════════════════════════════════════════════════════ */
:root {
  --green-deep: #0F3D2E; --green-mid: #1D9E75; --green-light: #5DCAA5; --green-pale: #E1F5EE;
  --blue-deep: #0C447C; --blue-mid: #185FA5; --blue-pale: #E6F1FB;
  --amber: #E07B18; --amber-pale: #FAEEDA;
  --red: #C0392B; --red-pale: #FCEBEB;
  --purple: #534AB7; --purple-pale: #EEEDFE;
  --text-dark: #1c1917; --text-mid: #44403c; --text-soft: #78716c; --text-faint: #a8a29e;
  --border: #e7e5e4; --bg: #fafaf9; --white: #ffffff;
  --radius: 12px; --radius-sm: 6px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { font-family: 'Inter', system-ui, sans-serif; background: var(--bg); color: var(--text-dark); line-height: 1.6; }

nav { background: rgba(15,61,46,0.97); padding: 0 2rem; display: flex; align-items: center; height: 56px; position: sticky; top: 0; z-index: 100; }
.nav-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.nav-logo { width: 30px; height: 30px; background: var(--green-mid); border-radius: 6px; display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; color: #fff; }
.nav-name { font-size: 15px; font-weight: 500; color: #fff; }
.nav-links { display: flex; gap: 0; margin-left: 2.5rem; }
.nav-links a { font-size: 13px; color: rgba(255,255,255,0.6); padding: 0 14px; height: 56px; display: flex; align-items: center; text-decoration: none; transition: color .15s; }
.nav-links a:hover, .nav-links a.active { color: #fff; }

.hero { background: linear-gradient(160deg, #0A2E20 0%, #0F3D2E 60%, #0a3040 100%); padding: 3rem 2rem 2.5rem; }
.hero-inner { max-width: 1080px; margin: 0 auto; }
.hero h1 { font-size: clamp(1.5rem, 3.5vw, 2.25rem); font-weight: 300; color: #fff; line-height: 1.25; letter-spacing: -0.02em; margin-bottom: .75rem; }
.hero h1 strong { font-weight: 600; color: var(--green-light); }
.hero-sub { font-size: 14px; color: rgba(255,255,255,0.5); line-height: 1.75; max-width: 720px; }

.filter-bar { background: var(--white); border-bottom: 0.5px solid var(--border); padding: .875rem 2rem; display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; position: sticky; top: 56px; z-index: 90; }
.filter-select { font-size: 13px; font-family: 'Inter', system-ui, sans-serif; color: var(--text-dark); background: var(--bg); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 7px 32px 7px 12px; appearance: none; cursor: pointer; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'><path fill='%2378716c' d='M4 6l4 4 4-4z'/></svg>"); background-repeat: no-repeat; background-position: right 10px center; min-width: 160px; }
.filter-select:hover { border-color: var(--green-mid); }
.filter-search-wrap { position: relative; margin-left: auto; }
.filter-search-wrap i { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); font-size: 14px; color: var(--text-faint); }
.filter-search { font-size: 13px; font-family: 'Inter', system-ui, sans-serif; color: var(--text-dark); background: var(--bg); border: 0.5px solid var(--border); border-radius: var(--radius-sm); padding: 7px 12px 7px 32px; width: 220px; }
.filter-search:focus { outline: none; border-color: var(--green-mid); }
.filter-search::placeholder { color: var(--text-faint); }
.filter-count { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.filter-empty { text-align: center; padding: 3rem 1rem; color: var(--text-faint); font-size: 14px; }

@media (max-width: 768px) {
  .filter-bar { position: static; }
  .filter-search-wrap { margin-left: 0; width: 100%; }
  .filter-search { width: 100%; }
}

.main { max-width: 1080px; margin: 0 auto; padding: 2.5rem 2rem 5rem; }

.category-section { margin-bottom: 1rem; }
.category-header { display: flex; align-items: baseline; gap: .875rem; margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 2px solid var(--green-mid); }
.category-num { font-size: 13px; font-weight: 600; color: var(--green-mid); letter-spacing: .04em; }
.category-title { font-size: 22px; font-weight: 500; color: var(--text-dark); letter-spacing: -0.01em; }

.var-block { scroll-margin-top: 110px; margin-bottom: 3.5rem; padding-bottom: 3rem; border-bottom: 0.5px solid var(--border); }
.var-block:last-child { border-bottom: none; }

.var-block.coming-soon { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .25rem 0 1.25rem; margin-bottom: .5rem; border-bottom: 0.5px solid var(--border); }
.cs-name { font-size: 14px; font-weight: 500; color: var(--text-mid); }
.cs-unit { font-size: 11px; color: var(--text-faint); margin-left: 8px; }
.cs-badge { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--text-faint); background: var(--bg); border: 0.5px solid var(--border); padding: 3px 10px; border-radius: 99px; flex-shrink: 0; }

.var-title { font-size: 28px; font-weight: 500; color: var(--text-dark); letter-spacing: -0.015em; margin-bottom: .625rem; }
.var-desc { font-size: 15px; color: var(--text-mid); line-height: 1.7; max-width: 760px; margin-bottom: .875rem; }
.var-note { display: flex; gap: 10px; align-items: flex-start; background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius); padding: .875rem 1.125rem; font-size: 13px; color: var(--text-soft); line-height: 1.7; max-width: 760px; margin-bottom: 1.75rem; }
.var-note i { color: var(--green-mid); font-size: 16px; margin-top: 1px; flex-shrink: 0; }

.threshold-row { display: flex; gap: 1.5rem; margin-bottom: 1.5rem; flex-wrap: wrap; }
.threshold-chip { font-size: 12px; color: var(--text-soft); display: flex; align-items: center; gap: 6px; }
.threshold-chip strong { color: var(--text-dark); font-weight: 500; }
.threshold-dot { width: 8px; height: 8px; border-radius: 50%; }

.hml-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.hml-card { background: var(--white); border: 0.5px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.hml-head { padding: .75rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.hml-head.high { background: var(--green-pale); }
.hml-head.medium { background: var(--amber-pale); }
.hml-head.low { background: var(--red-pale); }
.hml-state { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.hml-head.high .hml-state { color: #085041; }
.hml-head.medium .hml-state { color: #7A4A08; }
.hml-head.low .hml-state { color: #7A2020; }
.hml-label { font-size: 11px; color: var(--text-soft); }

.hml-visual { aspect-ratio: 1; position: relative; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.hml-visual img { width: 100%; height: 100%; object-fit: cover; }
.hml-placeholder { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 1.5rem; text-align: center; }
.hml-placeholder.high { background: linear-gradient(135deg, #0F3D2E 0%, #1D9E75 100%); }
.hml-placeholder.medium { background: linear-gradient(135deg, #4A2E0A 0%, #E07B18 100%); }
.hml-placeholder.low { background: linear-gradient(135deg, #4A1414 0%, #C0392B 100%); }
.hml-placeholder i { font-size: 28px; color: rgba(255,255,255,0.5); }
.hml-placeholder-text { font-size: 10px; color: rgba(255,255,255,0.55); text-transform: uppercase; letter-spacing: .05em; font-weight: 500; }

.hml-cube-icon { width: 48px; height: 48px; opacity: .65; }

.hml-caption { padding: .875rem 1rem; }
.hml-caption-text { font-size: 11px; color: var(--text-soft); line-height: 1.6; }

.pending-badge { position: absolute; top: 8px; right: 8px; font-size: 9px; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; background: rgba(0,0,0,0.35); color: #fff; padding: 3px 7px; border-radius: 99px; backdrop-filter: blur(2px); }

@media (max-width: 768px) {
  .hml-grid { grid-template-columns: 1fr; }
}
