/* ==========================================================================
 * File: maparea/static/css/natscreen.css
 * Purpose: Styling for the iVerify National Screen (Top 100 Logistics Markets)
 *          report page. NSG green/brass, matching the site-report / front-page
 *          house style. No animations/gradients/shadows beyond the report norm.
 * 2026-07-04 v1.0 - Initial.
 * ========================================================================== */
:root {
  --ns-green: #16432e; --ns-green-soft: #1f5a3d; --ns-brass: #b08d57;
  --ns-ink: #1f2d3d; --ns-muted: #5b6b7b; --ns-line: #e2e7ec;
  --ns-bg: #f6f7f9; --ns-card: #ffffff;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: 'DM Sans', system-ui, -apple-system, sans-serif;
  color: var(--ns-ink); background: var(--ns-bg); line-height: 1.55; }
.ns-topnav { height: 56px; background: var(--ns-green); color: #fff; display: flex;
  align-items: center; justify-content: space-between; padding: 0 20px;
  position: sticky; top: 0; z-index: 20; }
.ns-topnav a { color: #cfe3d7; text-decoration: none; font-size: 14px; }
.ns-topnav a:hover { color: #fff; }
.ns-brand { color: #fff; font-weight: 600; letter-spacing: .3px; }
.ns-wrap { max-width: 1080px; margin: 0 auto; padding: 34px 22px 90px; }
.ns-eyebrow { text-transform: uppercase; letter-spacing: 3px; font-size: 11px;
  color: var(--ns-brass); margin-bottom: 8px; }
.ns-wrap h1 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: 40px; line-height: 1.1; margin: 0 0 10px; color: var(--ns-green); }
.ns-lede { font-size: 17px; color: var(--ns-ink); max-width: 74ch; margin: 0 0 14px; }
.ns-chain { display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 14px 0 6px; font-size: 13px; color: var(--ns-green); }
.ns-chain .step { background: #eef3ef; border: 1px solid #d6e2da; border-radius: 16px;
  padding: 4px 12px; font-weight: 600; }
.ns-chain .arrow { color: var(--ns-brass); font-weight: 700; }
.ns-vintage { font-size: 12.5px; color: var(--ns-muted); margin-top: 10px; }
.ns-section { margin-top: 40px; padding-top: 26px; border-top: 1px solid var(--ns-line); }
.ns-section h2 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400;
  font-size: 27px; margin: 0 0 4px; color: var(--ns-green); }
.ns-section .kicker { font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--ns-brass); margin-bottom: 6px; }
.ns-cap { color: var(--ns-muted); font-size: 14px; max-width: 78ch; margin: 6px 0 12px; }
.ns-map-wrap { position: relative; }
.ns-map { height: 420px; width: 100%; border: 1px solid var(--ns-line); border-radius: 10px; }
.ns-mapbtn { position: absolute; bottom: 12px; left: 12px; z-index: 5; background: #fff;
  border: 1px solid #ccc; border-radius: 5px; padding: 4px 10px; cursor: pointer;
  font-size: 12px; font-family: inherit; }
.ns-legend { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px;
  color: #444; margin-top: 8px; }
.ns-legend .li { display: inline-flex; align-items: center; gap: 5px; }
.ns-legend .sw { width: 12px; height: 12px; border-radius: 50%; border: 1px solid #fff;
  box-shadow: 0 0 2px rgba(0,0,0,.4); display: inline-block; }
.ns-legend .bar { width: 18px; height: 12px; border-radius: 2px; display: inline-block; }
.ns-pending { background: #fbf7ee; border: 1px solid #ecdcb8; border-radius: 10px;
  padding: 16px 18px; color: #6b5a33; font-size: 14px; max-width: 80ch; }
.ns-pending strong { color: #7a5a1a; }
.ns-tablewrap { overflow-x: auto; border: 1px solid var(--ns-line); border-radius: 10px; }
table.ns-table { border-collapse: collapse; width: 100%; font-size: 13px; background: var(--ns-card); }
table.ns-table th { background: var(--ns-green); color: #fff; text-align: left;
  padding: 9px 10px; font-weight: 600; white-space: nowrap; position: sticky; top: 56px; }
table.ns-table td { padding: 8px 10px; border-top: 1px solid var(--ns-line); white-space: nowrap; }
table.ns-table tbody tr { cursor: pointer; }
table.ns-table tbody tr:hover { background: #eef3ef; }
.ns-num { text-align: right; font-variant-numeric: tabular-nums; }
.ns-badge { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 7px;
  border-radius: 10px; }
.ns-badge.flood { background: #fde2e1; color: #a12a1e; }
.ns-badge.proj { background: #e7efe9; color: #1f5a3d; }
.ns-scorecell { font-weight: 600; }
.ns-drill { margin-top: 14px; border: 1px solid var(--ns-brass); border-radius: 10px;
  padding: 16px 18px; background: #fffdf8; display: none; }
.ns-drill h3 { margin: 0 0 6px; color: var(--ns-green); font-size: 18px; }
.ns-drill .close { float: right; cursor: pointer; color: var(--ns-muted); font-size: 20px;
  line-height: 1; border: none; background: none; }
.ns-drill table { border-collapse: collapse; width: 100%; font-size: 12.5px; margin-top: 8px; }
.ns-drill th, .ns-drill td { padding: 5px 8px; border-top: 1px solid var(--ns-line); text-align: left; }
.ns-drill th { color: var(--ns-muted); font-weight: 600; }
.ns-methtable { border-collapse: collapse; width: 100%; font-size: 13px; margin-top: 10px; }
.ns-methtable th, .ns-methtable td { padding: 7px 9px; border-top: 1px solid var(--ns-line);
  text-align: left; vertical-align: top; }
.ns-methtable th { color: var(--ns-muted); font-weight: 600; }
.ns-formula { background: #f2f5f2; border: 1px solid #dbe6de; border-radius: 8px;
  padding: 12px 14px; font-family: 'DM Mono', ui-monospace, monospace; font-size: 13px;
  color: var(--ns-green); overflow-x: auto; }
.ns-note { color: var(--ns-muted); font-size: 13px; margin-top: 10px; max-width: 82ch; }
.ns-status { color: var(--ns-muted); font-size: 12.5px; }

/* ---- Screen 6 controls: weight sliders, use-model presets, filters (v2) ---- */
.ns-controls { margin-top: 16px; border: 1px solid var(--ns-line); border-radius: 10px;
  background: var(--ns-card); padding: 14px 16px; }
.ns-ctrl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 12px; }
.ns-ctrl-row:last-child { margin-bottom: 0; }
.ns-ctrl-lab { font-size: 11px; letter-spacing: 1.5px; text-transform: uppercase;
  color: var(--ns-brass); font-weight: 600; }
.ns-slider { display: flex; flex-direction: column; gap: 4px; min-width: 150px; }
.ns-slider label { font-size: 12px; color: var(--ns-muted); font-weight: 600; }
.ns-slider label span { color: var(--ns-green); font-family: 'DM Mono', monospace; }
.ns-slider input[type=range] { width: 150px; accent-color: var(--ns-green); }
.ns-btn { font-family: 'DM Sans', sans-serif; font-size: 12.5px; font-weight: 600;
  border: 1px solid var(--ns-line); background: #fff; color: var(--ns-ink);
  border-radius: 16px; padding: 5px 12px; cursor: pointer; }
.ns-btn:hover { border-color: var(--ns-brass); color: var(--ns-green); }
.ns-btn.preset.active { background: var(--ns-green); color: #fff; border-color: var(--ns-green); }
.ns-custom-tag { font-size: 11px; font-weight: 600; color: #7a5a1a;
  background: #fbf7ee; border: 1px solid #ecdcb8; border-radius: 12px; padding: 2px 9px; }
.ns-inp { font-family: 'DM Sans', sans-serif; font-size: 13px; border: 1px solid var(--ns-line);
  border-radius: 6px; padding: 4px 8px; color: var(--ns-ink); background: #fff; }
.ns-ctrl-note { margin: 4px 0 0; font-size: 12.5px; }
