/* abuse.love — theme_05 Maritime Chartroom Workbench */
:root {
  --bg: #0c192c;
  --surface: #132640;
  --ink: #f1f5f9;
  --accent: #38bdf8;
  --muted: #94a3b8;
  --line: #1e3a5f;
  --warn: #fbbf24;
}
* { 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;
}
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.horizon {
  position: sticky; top: 0; z-index: 10;
  background: linear-gradient(180deg, #0a1424, var(--bg));
  border-bottom: 1px solid var(--line);
}
.horizon-inner {
  max-width: 1100px; margin: 0 auto; padding: 0.7rem 1.2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.brand { font-weight: 700; font-size: 1.25rem; color: var(--ink); letter-spacing: 0.02em; }
.brand .dot { color: var(--accent); }
nav a { color: var(--muted); margin-left: 1.1rem; font-size: 0.92rem; }
nav a:hover { color: var(--ink); }

main { max-width: 1100px; margin: 0 auto; padding: 0 1.2rem 3rem; }
.hero { padding: 3rem 0 1.5rem; }
.kicker { color: var(--accent); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; margin: 0 0 0.5rem; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); margin: 0 0 1rem; letter-spacing: -0.02em; }
.lede { max-width: 46rem; color: var(--muted); font-size: 1.05rem; }
.disclosure-above-fold {
  margin-top: 1.2rem; padding: 0.7rem 0.9rem;
  background: var(--surface); border: 1px solid var(--line); border-left: 3px solid var(--warn);
  border-radius: 6px; font-size: 0.9rem; max-width: 52rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 1.4rem 1.4rem 1.6rem;
  margin: 1.4rem 0;
}
.panel h2 { margin-top: 0; font-size: 1.25rem; color: var(--ink); }
.calc-strip {
  display: flex; flex-wrap: wrap; gap: 0.9rem; align-items: end;
  padding: 0.9rem; background: #0f2038; border: 1px solid var(--line); border-radius: 8px;
}
.calc-strip label { display: flex; flex-direction: column; font-size: 0.78rem; color: var(--muted); gap: 0.25rem; }
input, select, button {
  font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--line); border-radius: 6px; padding: 0.45rem 0.6rem;
}
input[type="number"] { width: 8.5rem; }
button {
  background: var(--accent); color: #062033; font-weight: 600; border: none; cursor: pointer;
}
button:hover { filter: brightness(1.1); }

#wave-svg { width: 100%; height: auto; display: block; margin-top: 1rem; background: #0a1424; border: 1px solid var(--line); border-radius: 8px; }
table { width: 100%; border-collapse: collapse; margin-top: 1rem; font-size: 0.92rem; }
th, td { text-align: left; padding: 0.5rem 0.6rem; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }

.est-out { display: flex; gap: 2.5rem; margin-top: 1rem; flex-wrap: wrap; }
.est-label { display: block; color: var(--muted); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; }
.est-out strong { font-size: 1.6rem; color: var(--accent); }
.muted { color: var(--muted); }
.mono, .hash, .pre { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.hash { word-break: break-all; color: var(--accent); }
.pre { background: #0a1424; border: 1px solid var(--line); border-radius: 8px; padding: 0.9rem; overflow-x: auto; font-size: 0.8rem; white-space: pre-wrap; }
.actions { display: flex; gap: 0.7rem; margin-top: 0.8rem; }
.actions button { background: var(--surface); border: 1px solid var(--accent); color: var(--accent); }
.about p { color: var(--muted); }

footer {
  border-top: 1px solid var(--line); margin-top: 2rem;
  padding: 1.4rem 1.2rem 2.4rem; text-align: center;
}
footer nav a { color: var(--muted); margin: 0 0.8rem; font-size: 0.9rem; }
footer nav a:hover { color: var(--ink); }

@media (max-width: 640px) {
  .calc-strip { flex-direction: column; align-items: stretch; }
  input[type="number"], select { width: 100%; }
  .horizon-inner { justify-content: center; text-align: center; }
  nav a { margin: 0 0.5rem; }
}
