/* TankStocked.com — calm aquatic palette, mobile-first, system fonts, no libraries */
:root {
  --bg: #f4f9fb;
  --surface: #ffffff;
  --ink: #0f2c38;
  --ink-soft: #3d5b66;
  --muted: #6c8591;
  --line: #d8e6ec;
  --teal: #0e7c86;
  --teal-dark: #0a5a62;
  --teal-soft: #e3f3f4;
  --aqua: #2fb6c4;
  --green: #1f9d6b;
  --green-soft: #e2f5ec;
  --amber: #c77f12;
  --amber-soft: #fbf0db;
  --red: #c0392b;
  --red-soft: #fbe7e4;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(15,44,56,.06), 0 6px 20px rgba(15,44,56,.06);
  --maxw: 880px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
}
img { max-width: 100%; height: auto; }
a { color: var(--teal); }
a:hover { color: var(--teal-dark); }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 18px; }

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 50;
}
.site-header .wrap {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 60px; gap: 12px; flex-wrap: wrap;
}
.brand {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 800; font-size: 1.15rem; color: var(--ink); text-decoration: none;
  letter-spacing: -.01em;
}
.brand .logo {
  width: 26px; height: 26px; display: inline-block;
  background: linear-gradient(135deg, var(--aqua), var(--teal-dark));
  border-radius: 7px;
  position: relative;
}
.brand .logo::after {
  content: ""; position: absolute; left: 5px; right: 5px; bottom: 6px; height: 6px;
  background: rgba(255,255,255,.85); border-radius: 6px 6px 3px 3px;
}
.nav { display: flex; gap: 16px; flex-wrap: wrap; }
.nav a { text-decoration: none; color: var(--ink-soft); font-weight: 600; font-size: .95rem; }
.nav a:hover { color: var(--teal); }

/* Hero */
.hero {
  background: linear-gradient(160deg, var(--teal-soft), #f4f9fb 70%);
  border-bottom: 1px solid var(--line);
  padding: 38px 0 30px;
}
.hero h1 { margin: 0 0 10px; font-size: 2rem; line-height: 1.15; letter-spacing: -.02em; }
.hero p { margin: 0; color: var(--ink-soft); font-size: 1.08rem; max-width: 620px; }

h1 { font-size: 1.9rem; line-height: 1.18; letter-spacing: -.02em; }
h2 { font-size: 1.4rem; margin-top: 1.8em; letter-spacing: -.01em; }
h3 { font-size: 1.12rem; margin-top: 1.4em; }

/* Cards / sections */
main { padding: 28px 0 10px; }
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow);
  margin-bottom: 22px;
}
.grid { display: grid; gap: 16px; }
@media (min-width: 620px) { .grid.cols-3 { grid-template-columns: repeat(3,1fr); } .grid.cols-2 { grid-template-columns: repeat(2,1fr); } }

.tool-card {
  display: block; text-decoration: none; color: inherit;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow);
  transition: transform .12s ease, box-shadow .12s ease, border-color .12s ease;
}
.tool-card:hover { transform: translateY(-2px); border-color: var(--aqua); box-shadow: 0 8px 26px rgba(15,44,56,.12); }
.tool-card h3 { margin: 0 0 6px; color: var(--ink); }
.tool-card p { margin: 0; color: var(--muted); font-size: .96rem; }
.tool-card .pill { display:inline-block; margin-bottom:10px; font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--teal-dark); background:var(--teal-soft); padding:3px 9px; border-radius:20px; }

/* Forms */
label { display: block; font-weight: 600; margin: 0 0 6px; font-size: .95rem; }
.field { margin-bottom: 16px; }
input[type=number], input[type=text], select {
  width: 100%; padding: 11px 12px; font-size: 1rem;
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; color: var(--ink); font-family: inherit;
}
input:focus, select:focus { outline: 2px solid var(--aqua); outline-offset: 1px; border-color: var(--aqua); }
.inline { display: flex; gap: 10px; flex-wrap: wrap; align-items: flex-end; }
.inline > .field { flex: 1 1 140px; margin-bottom: 0; }
.unit-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.unit-toggle button {
  border: 0; background: #fff; padding: 10px 14px; cursor: pointer;
  font-weight: 600; color: var(--ink-soft); font-family: inherit; font-size: .95rem;
}
.unit-toggle button.active { background: var(--teal); color: #fff; }

.btn {
  display: inline-block; background: var(--teal); color: #fff; border: 0;
  padding: 12px 20px; font-size: 1rem; font-weight: 700; border-radius: var(--radius-sm);
  cursor: pointer; font-family: inherit; text-decoration: none;
}
.btn:hover { background: var(--teal-dark); color:#fff; }
.btn.secondary { background: #fff; color: var(--teal); border: 1px solid var(--teal); }

/* Fish picker */
.fish-search { margin-bottom: 12px; }
.fish-list { max-height: 320px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.fish-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
}
.fish-row:last-child { border-bottom: 0; }
.fish-row .meta { font-size: .82rem; color: var(--muted); }
.fish-row .name { font-weight: 600; }
.qtybox { display: flex; align-items: center; gap: 6px; }
.qtybox button {
  width: 30px; height: 30px; border: 1px solid var(--line); background: #fff; border-radius: 6px;
  font-size: 1.1rem; cursor: pointer; line-height: 1; color: var(--ink);
}
.qtybox input { width: 48px; text-align: center; padding: 6px; }

.selected-list { list-style: none; margin: 0; padding: 0; }
.selected-list li { display:flex; justify-content:space-between; align-items:center; padding:8px 0; border-bottom:1px dashed var(--line); }
.selected-list .rm { color: var(--red); background:none; border:0; cursor:pointer; font-weight:700; }

/* Result panel */
.result { margin-top: 6px; }
.gauge-track { height: 16px; background: #e8eef1; border-radius: 20px; overflow: hidden; margin: 12px 0 6px; }
.gauge-fill { height: 100%; width: 0; border-radius: 20px; transition: width .4s ease; background: var(--green); }
.verdict { font-size: 1.25rem; font-weight: 800; margin: 6px 0; }
.verdict.ok { color: var(--green); }
.verdict.warn { color: var(--amber); }
.verdict.bad { color: var(--red); }
.stat-row { display: grid; gap: 12px; margin: 14px 0; }
@media (min-width: 520px){ .stat-row { grid-template-columns: repeat(3,1fr); } }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.stat .big { font-size: 1.4rem; font-weight: 800; color: var(--teal-dark); }
.stat .lbl { font-size: .78rem; color: var(--muted); text-transform: uppercase; letter-spacing: .03em; }
.warnings { list-style: none; padding: 0; margin: 10px 0 0; }
.warnings li { padding: 9px 12px; border-radius: var(--radius-sm); margin-bottom: 8px; font-size: .95rem; }
.warnings li.w-warn { background: var(--amber-soft); color: #7a4e05; }
.warnings li.w-bad  { background: var(--red-soft); color: #8a241a; }
.warnings li.w-ok   { background: var(--green-soft); color: #145c3e; }

/* Callout / answer box (GEO) */
.answer {
  background: var(--teal-soft); border-left: 4px solid var(--teal);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 0 0 22px;
}
.answer p:first-child { margin-top: 0; }
.answer p:last-child { margin-bottom: 0; }
.note { font-size: .88rem; color: var(--muted); }
.disclaimer {
  background: var(--amber-soft); border: 1px solid #f0dcae; border-radius: var(--radius-sm);
  padding: 12px 14px; font-size: .88rem; color: #6f4e0d; margin: 18px 0;
}
.aff-slot {
  background: #fff; border: 1px dashed var(--line); border-radius: var(--radius-sm);
  padding: 14px; margin: 18px 0; font-size: .92rem; color: var(--ink-soft);
}
.aff-slot strong { color: var(--ink); }
.aff-tag { font-size:.72rem; font-weight:700; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }

/* Tables */
table { width: 100%; border-collapse: collapse; margin: 14px 0; font-size: .95rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); }
th { background: var(--teal-soft); color: var(--teal-dark); font-size: .85rem; text-transform: uppercase; letter-spacing: .03em; }

/* Breadcrumbs */
.crumbs { font-size: .85rem; color: var(--muted); padding: 14px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--teal); }

/* FAQ */
.faq details { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 14px; margin-bottom: 10px; background: #fff; }
.faq summary { font-weight: 700; cursor: pointer; padding: 10px 0; }
.faq details[open] summary { color: var(--teal-dark); }

/* Footer */
.site-footer {
  background: var(--ink); color: #c4d7de; margin-top: 40px; padding: 30px 0;
  font-size: .92rem;
}
.site-footer a { color: #9fe0e6; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .cols { display: grid; gap: 18px; }
@media (min-width: 620px){ .site-footer .cols { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h4 { color: #fff; margin: 0 0 8px; font-size: .95rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: 6px; }
.site-footer .fine { margin-top: 18px; border-top: 1px solid #234650; padding-top: 14px; color: #8fb0ba; font-size: .82rem; }

.btn-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 14px 0; }
.center { text-align: center; }
.lead { font-size: 1.08rem; color: var(--ink-soft); }
ul.clean { padding-left: 1.1em; }
ul.clean li { margin-bottom: 6px; }
.hidden { display: none !important; }
