/* administracionesotero.com — theme_10 Nordic Ice Decision Matrix */
:root {
  --bg: #f0f4f8;
  --surface: #ffffff;
  --ink: #102a43;
  --accent: #0284c7;
  --accent-ink: #ffffff;
  --muted: #486581;
  --line: #d9e2ec;
  --danger: #b91c1c;
  --ok: #15803d;
  --warn: #b45309;
  --radius: 10px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
}
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
a { color: var(--accent); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.92em; }
.muted { color: var(--muted); }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.15; margin: 0.4em 0; }
h2 { font-size: 1.4rem; margin-top: 0; }
h3 { font-size: 1.05rem; margin-bottom: 0.4em; }
code { background: #e4edf5; padding: 0.1em 0.35em; border-radius: 4px; font-size: 0.9em; }

/* header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 10;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 20px; flex-wrap: wrap; }
.brand { font-weight: 700; font-size: 1.1rem; color: var(--ink); text-decoration: none; }
.brand-accent { color: var(--accent); }
.site-header nav a { color: var(--muted); text-decoration: none; margin-left: 14px; font-size: 0.92rem; }
.site-header nav a:hover, .site-header nav a:focus { color: var(--accent); }

/* disclosure banner — above the fold */
.disclosure-banner {
  background: #fff7ed;
  border: 1px solid #fed7aa;
  border-left: 4px solid var(--warn);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin: 18px 0 8px;
  font-size: 0.92rem;
  color: var(--ink);
}

/* hero */
.hero { padding: 28px 0 8px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.12em; font-size: 0.78rem; color: var(--accent); font-weight: 700; margin: 0; }
.lede { font-size: 1.08rem; max-width: 62ch; }
.hero-meta { font-size: 0.85rem; }

/* panels */
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 22px 0;
}

/* controls */
.controls {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 16px;
  margin: 12px 0 20px;
}
.ctl label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 4px; }
.ctl input[type=range] { width: 100%; accent-color: var(--accent); }
.ctl select {
  width: 100%; padding: 8px; border: 1px solid var(--line);
  border-radius: 6px; background: var(--surface); color: var(--ink);
}

/* allocation sliders */
.sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px 24px; }
.slider-row label { display: block; font-size: 0.85rem; font-weight: 600; }
.slider-row input[type=range] { width: 100%; accent-color: var(--accent); }

/* SVG chart */
#curve-svg {
  width: 100%; height: auto; display: block;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius);
  margin: 14px 0 6px;
}
#curve-svg .grid { stroke: var(--line); stroke-width: 1; }
#curve-svg .axis { fill: var(--muted); font-size: 11px; font-family: system-ui, sans-serif; }
#curve-svg .baseline { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 5 4; }
#curve-svg .curve { stroke: var(--accent); stroke-width: 2.4; fill: none; }
#curve-svg .area { fill: rgba(2, 132, 199, 0.10); }
#curve-svg .dot { fill: var(--accent); }

/* stats */
.stats-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px; margin-top: 14px;
}
.stat {
  background: var(--bg); border: 1px solid var(--line);
  border-radius: 8px; padding: 10px 12px;
}
.stat-k { display: block; font-size: 0.75rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.stat-v { font-size: 1.05rem; font-weight: 700; }

/* tables */
.table-wrap { overflow-x: auto; margin: 12px 0; }
table { border-collapse: collapse; width: 100%; font-size: 0.9rem; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { background: var(--bg); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
tbody tr:hover { background: #f7fafc; }

/* buttons */
button {
  background: var(--accent); color: var(--accent-ink);
  border: 0; border-radius: 8px; padding: 10px 18px;
  font-size: 0.95rem; font-weight: 600; cursor: pointer;
}
button:hover, button:focus { filter: brightness(1.08); }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* export panel */
.export-panel {
  border: 1px dashed var(--accent); border-radius: var(--radius);
  padding: 14px 16px; margin-top: 14px; background: #f4fafe;
}
.export-panel .mono { word-break: break-all; }

/* audit flags */
.flag-row { display: flex; gap: 16px; flex-wrap: wrap; align-items: center; margin: 10px 0; }
.flag-row label { font-size: 0.9rem; display: flex; gap: 6px; align-items: center; }
.flag-row input { accent-color: var(--accent); }
.grade-verified { color: var(--ok); font-weight: 700; }
.grade-plausible { color: #1d4ed8; font-weight: 700; }
.grade-unverified { color: var(--warn); font-weight: 700; }
.grade-rejected { color: var(--danger); font-weight: 700; }

/* legal pages */
.legal { max-width: 760px; }
.legal h1 { font-size: 1.7rem; }
.legal section { margin: 18px 0; }

/* footer */
.site-footer {
  border-top: 1px solid var(--line);
  margin-top: 30px; padding: 22px 0 40px;
  background: var(--surface);
  font-size: 0.88rem; color: var(--muted);
}
.site-footer nav a { margin-right: 14px; }
.site-footer .wrap { display: flex; flex-direction: column; gap: 8px; }

/* accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 3px solid var(--accent); outline-offset: 2px;
}
@media (max-width: 640px) {
  .header-inner { flex-direction: column; align-items: flex-start; }
  .site-header nav a { margin-left: 0; margin-right: 12px; }
  .panel { padding: 16px; }
}
