/* aclickoff.com — theme_05 Maritime Chartroom Workbench */
:root {
  --bg: #0c192c;
  --surface: #132640;
  --ink: #f1f5f9;
  --accent: #38bdf8;
  --muted: #94a3b8;
  --line: #1e3354;
  --line-strong: #38bdf8;
  --sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "SF Mono", "Cascadia Code", Menlo, Consolas, "Courier New", monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* Masthead — chartroom horizon bar */
.masthead {
  background: linear-gradient(180deg, #0e2038 0%, var(--bg) 100%);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
  gap: 8px 24px; padding-top: 20px; padding-bottom: 20px;
}
.brand {
  font-family: var(--mono); font-weight: 700; font-size: 22px;
  letter-spacing: 0.04em; text-decoration: none; color: var(--ink);
}
.brand .tld { color: var(--accent); }
.mast-meta {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-variant-numeric: tabular-nums;
}

/* Disclosure strip — above the fold */
.disclosure-strip {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  font-size: 12px; color: var(--muted);
}
.disclosure-strip .wrap { display: flex; gap: 12px; align-items: baseline; padding-top: 9px; padding-bottom: 9px; }
.disclosure-strip strong {
  color: var(--accent); letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 10px; font-weight: 700; white-space: nowrap;
}
.disclosure-strip a { color: var(--ink); }

/* Hero — chartroom plot title */
.hero { padding: 64px 0 48px; border-bottom: 1px solid var(--line); }
.hero .kicker {
  font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--accent); margin: 0 0 14px; font-weight: 700;
}
.hero h1 {
  font-family: var(--mono);
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05; letter-spacing: -0.01em;
  margin: 0 0 20px; font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede {
  max-width: 64ch; color: var(--muted); font-size: 16px;
  margin: 0 0 32px;
}
.hero .facts {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
}
.hero .fact { padding: 14px 16px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hero .fact .k {
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.hero .fact .v { font-family: var(--mono); font-size: 19px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--accent); }

/* Sections */
section { padding: 52px 0; border-bottom: 1px solid var(--line); }
section:last-of-type { border-bottom: none; }
h2.sec {
  font-family: var(--mono); font-size: 26px; letter-spacing: 0.01em;
  margin: 0 0 6px; font-weight: 700;
}
h2.sec .num { color: var(--accent); margin-right: 10px; }
.mod-desc { color: var(--muted); font-size: 14px; max-width: 74ch; margin: 0 0 24px; }
.mod-head { margin-bottom: 20px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.mod-num {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px;
  color: var(--muted); white-space: nowrap; background: var(--surface);
}

.surface { background: var(--surface); border: 1px solid var(--line); border-radius: 6px; }
.pad { padding: 24px; }

/* Calculator strip — horizontal chartroom console */
.calc-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px 20px;
}
.field label {
  display: block; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 5px; font-weight: 700;
}
.field input, .field select {
  font-family: var(--mono); font-size: 13px; padding: 8px 10px;
  border: 1px solid var(--line); border-radius: 4px;
  background: var(--bg); color: var(--ink); width: 100%;
}
.field input:focus, .field select:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field.check { display: flex; align-items: center; gap: 10px; padding-top: 22px; }
.field.check input { width: auto; accent-color: var(--accent); }
.field.check label { margin: 0; text-transform: none; letter-spacing: 0; font-size: 13px; color: var(--ink); font-weight: 400; }
.preset-row { display: flex; gap: 12px; align-items: end; margin-bottom: 20px; flex-wrap: wrap; }
.preset-row .field { flex: 1 1 320px; }

/* Verdict badge */
.verdict {
  display: inline-block; font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: 0.12em; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line);
}
.verdict.pass { background: #052e22; color: #5eead4; border-color: #0d9488; }
.verdict.warn { background: #3a2a08; color: #fcd34d; border-color: #b45309; }
.verdict.fail { background: #3f1216; color: #fda4af; border-color: #be123c; }

/* Findings + checklist tables — coordinate-table feel */
table.ledger { width: 100%; border-collapse: collapse; font-size: 13px; }
table.ledger th {
  text-align: left; font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); border-bottom: 2px solid var(--line-strong); padding: 8px 10px;
  font-family: var(--mono); font-weight: 700; white-space: nowrap;
}
table.ledger td { border-bottom: 1px solid var(--line); padding: 9px 10px; vertical-align: top; }
table.ledger tr:hover td { background: #16304f; }
.table-scroll { overflow-x: auto; }
.tag {
  display: inline-block; font-family: var(--mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; border: 1px solid var(--line); border-radius: 3px;
  padding: 1px 7px; color: var(--muted); white-space: nowrap;
}
.status-pass { color: #5eead4; border-color: #0d9488; background: #052e22; }
.status-fail { color: #fda4af; border-color: #be123c; background: #3f1216; }
.status-warn { color: #fcd34d; border-color: #b45309; background: #3a2a08; }
.status-na { color: var(--muted); }
.sev-fail { color: #fda4af; border-color: #be123c; }
.sev-warn { color: #fcd34d; border-color: #b45309; }
.sev-info { color: var(--muted); }

/* Metrics strip — instrument cluster */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; margin-bottom: 20px; }
.metrics .fact { background: var(--bg); padding: 12px 14px; }
.metrics .k { font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.metrics .v { font-family: var(--mono); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.metrics .unit { font-size: 11px; color: var(--muted); }

/* SVG plot canvas — wide chartroom canvas */
.chart-box { overflow-x: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
svg.text { font-family: var(--sans); }
svg .axis { stroke: var(--muted); stroke-width: 1; }
svg .grid-line { stroke: var(--line); stroke-width: 1; stroke-dasharray: 3 3; }
svg .lbl { font-size: 10px; fill: var(--muted); letter-spacing: 0.06em; }
.readout {
  font-family: var(--mono); font-size: 12px; color: var(--ink);
  margin-top: 12px; padding: 10px 12px; background: var(--bg);
  border: 1px dashed var(--line); border-radius: 4px; word-break: break-word;
}
.readout .k { color: var(--muted); }

/* Export */
.export-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.btn {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  font-weight: 700; border: 1px solid var(--accent); background: var(--bg); color: var(--accent);
  padding: 10px 18px; border-radius: 4px; cursor: pointer;
}
.btn:hover { background: var(--accent); color: var(--bg); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--bg); }
.btn.primary:hover { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.receipt {
  font-family: var(--mono); font-size: 12px;
  border: 1px dashed var(--line-strong); padding: 14px; word-break: break-all;
  background: var(--bg); border-radius: 4px;
}
.receipt .k { color: var(--muted); }

/* Domain record */
ul.ledger-list { list-style: none; margin: 0; padding: 0; }
ul.ledger-list li {
  display: flex; justify-content: space-between; gap: 16px;
  padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13.5px;
}
ul.ledger-list li:last-child { border-bottom: none; }
ul.ledger-list .k { color: var(--muted); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; white-space: nowrap; padding-top: 2px; }
ul.ledger-list .v { text-align: right; font-variant-numeric: tabular-nums; }

/* FAQ */
details.faq { border-bottom: 1px solid var(--line); }
details.faq summary {
  cursor: pointer; padding: 16px 0; font-family: var(--mono);
  font-size: 17px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px;
}
details.faq summary::after { content: "+"; color: var(--accent); }
details.faq[open] summary::after { content: "–"; }
details.faq .faq-body { padding: 0 0 18px; color: var(--muted); max-width: 74ch; font-size: 14.5px; }
details.faq .faq-body p { margin: 0 0 10px; }

/* Reference notes */
.ref-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.ref-card h4 { font-family: var(--mono); margin: 0 0 8px; font-size: 16px; color: var(--accent); }
.ref-card p { margin: 0; color: var(--muted); font-size: 13.5px; }
.ref-card .tag { margin-bottom: 10px; }

/* Footer */
footer.site { background: #081426; color: var(--muted); padding: 44px 0 48px; font-size: 12.5px; border-top: 1px solid var(--line); }
footer.site a { color: var(--ink); }
footer.site h4 {
  color: var(--ink); font-family: var(--mono); font-size: 16px; margin: 0 0 12px; font-weight: 700;
}
footer.site .cols { display: grid; grid-template-columns: repeat(12, 1fr); gap: 24px; }
footer.site .c5 { grid-column: span 5; }
footer.site .c7 { grid-column: span 7; }
@media (max-width: 900px) { footer.site .c5, footer.site .c7 { grid-column: span 12; } }
footer.site ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
footer.site li { margin-bottom: 0; }
footer.site .pub { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); color: #64748b; font-size: 11.5px; line-height: 1.7; }

/* Utility */
.muted { color: var(--muted); }
.small { font-size: 12px; }
code { font-family: var(--mono); font-size: 0.92em; background: var(--bg); border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
