/* =========================================================
   BellyDay — pregnancy water intake calculator
   Page-scoped additions only. Shared components live in assets/site.css.
   Loads after /assets/site.css.
   ========================================================= */

body.water {
  background:
    radial-gradient(circle at 2% -8%, rgba(77, 107, 85, 0.08), transparent 36%),
    radial-gradient(circle at 98% 0%, rgba(169, 199, 204, 0.17), transparent 32%),
    var(--bone);
}

/* ---------- Breadcrumbs and hero ---------- */

.water .crumbs { padding-top: 14px; font-size: 11.5px; color: var(--ink-55); }
.water .crumbs ol { display: flex; flex-wrap: wrap; gap: 4px 8px; margin: 0; padding: 0; list-style: none; }
.water .crumbs li + li::before { content: "›"; margin-right: 8px; color: var(--ink-55); }
.water .crumbs a { color: inherit; }
.water .crumbs a:hover { color: var(--ink); }
.water .crumbs [aria-current="page"] { color: var(--ink-70); }

.water-hero { padding-top: clamp(6px, 1.4vw, 16px); padding-bottom: clamp(5px, 1vw, 12px); }
.water .hero h1 { max-width: 27ch; font-size: clamp(30px, 4vw, 50px); line-height: 1.08; }
.water .hero__lede { max-width: 84ch; margin-top: 6px; font-size: clamp(12px, 1.1vw, 14px); line-height: 1.4; }
.water .hero__meta {
  display: flex; flex-wrap: wrap; gap: 5px 16px; margin-top: 7px;
  font-size: 11px; color: var(--ink-55);
}
.water .hero__meta span { display: inline-flex; align-items: center; gap: 6px; }
.water .hero__meta span::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: var(--sage); }
.water .hero__meta span:first-child::before { display: none; }

/* ---------- Tool card ---------- */

.water-tool { grid-template-columns: minmax(0, 1fr); padding-bottom: 4px; }
.water-panel { min-width: 0; border: 1px solid var(--line-strong); background: var(--paper); box-shadow: 5px 5px 0 var(--rose-tint); }
.water-glass-mark { display: flex; align-items: flex-end; gap: 4px; height: 22px; margin-bottom: 3px; }
.water-glass-mark span { width: 9px; height: 16px; border: 1px solid var(--sage); border-top: 0; background: linear-gradient(to top, rgba(169, 199, 204, 0.55) 0 58%, transparent 58%); }
.water-glass-mark span:nth-child(2) { height: 21px; }
.water-glass-mark span:nth-child(3) { height: 12px; }
.water-panel > h2 {
  font-family: var(--font-display); font-size: clamp(18px, 1.9vw, 24px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.2; text-wrap: balance;
}
.water-noscript { margin-top: 7px; font-size: 10px; line-height: 1.4; color: var(--ink-55); }
.water-panel :focus-visible { outline: 2px solid var(--rose-deep); outline-offset: 2px; }

.water-fieldset { min-width: 0; margin: 11px 0 0; padding: 0; border: 0; }
.water-fieldset legend { padding: 0; font-size: 11px; font-weight: 600; color: var(--ink-70); }
.water-radios { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 5px; }
.water-radios label {
  display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 11px;
  border: 1px solid var(--line-strong); background: var(--paper);
  font-size: 11px; font-weight: 600; color: var(--ink-70); cursor: pointer;
}
.water-radios input { margin: 0; accent-color: var(--rose-deep); }
.water-radios label:has(input:checked) { border-color: var(--rose); background: var(--rose-tint); color: var(--ink); }

.water-options { min-width: 0; margin-top: 9px; border-top: 1px solid var(--line); }
.water-options > summary, .water-how > summary {
  padding: 8px 0 2px; font-size: 11px; font-weight: 600; color: var(--ink-70); cursor: pointer;
}
.water-options__body { padding-bottom: 2px; }
.water-field { display: grid; gap: 3px; margin-top: 5px; font-size: 10.5px; color: var(--ink-70); }
.water-field select {
  width: 100%; max-width: 240px; height: 34px; padding: 0 8px;
  border: 1px solid var(--line-strong); border-radius: 0; background: var(--paper);
  color: var(--ink); font: 500 12px/1 "Inter Tight", system-ui, sans-serif; cursor: pointer;
}
.water-check { display: flex; align-items: center; gap: 6px; min-height: 28px; margin-top: 5px; font-size: 10.5px; color: var(--ink-70); cursor: pointer; }
.water-check input { margin: 0; accent-color: var(--rose-deep); }
.water-options__note { margin-top: 4px; font-size: 9.5px; line-height: 1.35; color: var(--ink-55); }

.water-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 9px; }
.water-panel .btn, .water-panel button { min-height: 30px; padding: 0 11px; font-size: 11px; }
.water-chip {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin-top: 8px; padding: 5px 8px; border: 1px solid var(--line); background: var(--bone);
  font-size: 10px; color: var(--ink-70);
}
.water-chip button { min-height: 20px; padding: 0 7px; font-size: 9.5px; }

/* ---------- Always-visible safety note ---------- */

.water-safety {
  min-width: 0; margin-top: 8px; padding: 9px 11px;
  border: 1px solid var(--line-strong); border-left: 3px solid var(--rose); background: var(--rose-tint);
  font-size: 10px; line-height: 1.45; color: var(--ink-70);
}

/* ---------- Result ---------- */

.water-empty { margin-top: 8px; min-height: 20px; padding: 8px 10px; border-left: 3px solid var(--apricot); background: var(--apricot-soft); font-size: 10px; line-height: 1.4; color: var(--ink-70); }
.water-result { margin-top: 9px; padding-top: 4px; border-top: 1px solid var(--line); }
.water-result h3 { font-family: var(--font-display); font-size: 13px; font-weight: 600; }
.water-total { margin-top: 6px; font-size: 12px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.water-drinks { margin-top: 3px; font-size: 11px; font-weight: 600; color: var(--ink-70); font-variant-numeric: tabular-nums; }
.water-summary, .water-note, .water-privacy { font-size: 10px; line-height: 1.42; color: var(--ink-70); }
.water-summary { margin-top: 7px; }
.water-additions { margin-top: 4px; }
.water-note { margin-top: 3px; font-size: 9.5px; color: var(--ink-55); }
.water-high { margin-top: 7px; padding: 7px 10px; border-left: 3px solid var(--rose); background: var(--rose-tint); font-size: 9.5px; line-height: 1.4; color: var(--rose-deep); }
.water-privacy { margin-top: 9px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 9.5px; color: var(--ink-55); }
[hidden] { display: none !important; }

.water-how { min-width: 0; margin-top: 10px; border-top: 1px solid var(--line); }
.water-how__body p { margin-top: 5px; font-size: 10px; line-height: 1.45; color: var(--ink-70); }
.water-table-wrap { max-width: 100%; overflow-x: auto; }
.water-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.water-table caption { padding: 6px 8px; text-align: left; font-size: 10px; font-weight: 600; background: var(--bone-deep); }
.water-table th, .water-table td { padding: 6px 8px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.water-table thead th { font-size: 10px; color: var(--ink-70); background: rgba(255, 253, 248, 0.65); }
.water-table tbody tr:last-child td { border-bottom: 0; }

.water-result-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 10px; padding-top: 8px; border-top: 1px solid var(--line); }
.water-action-hint { font-size: 9.5px; color: var(--ink-55); }
.water-print { display: none; }

/* ---------- Pillar ---------- */

.water .section__head { max-width: none; }
.water .section h2 { font-size: clamp(22px, 2.4vw, 31px); line-height: 1.22; }
.water .prose > p { margin-top: 12px; font-size: 13.5px; line-height: 1.68; color: var(--ink-70); }
.water .prose > p:first-child { margin-top: 4px; }
.water .prose .water-table { margin: 14px 0; border: 1px solid var(--line); font-size: 12.5px; }
.water .prose .water-table caption { font-size: 11.5px; }
.water .sources { padding-left: 1.3em; }
.water .sources li { margin-top: 7px; font-size: 12.5px; line-height: 1.55; }
.water .faq details > p { max-width: 82ch; }

/* ---------- Responsive ---------- */

@media (min-width: 901px) {
  .water-tool { justify-items: center; }
  .water-panel { max-width: 780px; }
  .water .prose > p { max-width: 92ch; }
}

@media (max-width: 560px) {
  .water .crumbs { padding-top: 8px; font-size: 10px; }
  .water-hero { padding-top: 3px; padding-bottom: 3px; }
  .water .hero h1 { font-size: 29px; }
  .water .hero__lede { margin-top: 4px; font-size: 11.5px; line-height: 1.3; }
  .water .hero__meta { display: none; }
  .water-panel { box-shadow: 3px 3px 0 var(--rose-tint); }
  .water-glass-mark { height: 18px; }
  .water-panel > h2 { font-size: 14px; line-height: 1.15; }
  .water-noscript { display: none; }
  .water-fieldset legend, .water-options > summary, .water-how > summary { font-size: 10px; }
  .water-radios { gap: 5px; }
  .water-radios label { min-height: 28px; padding: 0 9px; font-size: 10px; }
  .water-field select { height: 32px; font-size: 11px; }
  .water-panel .btn, .water-panel button { min-height: 26px; padding: 0 8px; font-size: 10px; }
  .water-safety { padding: 6px 8px; font-size: 9px; line-height: 1.35; }
  .water-empty, .water-summary, .water-note, .water-privacy, .water-action-hint { font-size: 9px; line-height: 1.35; }
  .water-total { font-size: 11px; }
  .water-drinks { font-size: 10px; }
  .water .section h2 { font-size: 21px; }
  .water .prose .water-table { font-size: 10.5px; }
  .water .prose .water-table th, .water .prose .water-table td { padding: 5px; }
}

@media (max-width: 359px) {
  .water-radios { gap: 4px; }
  .water-radios label { padding: 0 7px; }
  .water .prose .water-table { font-size: 9.5px; }
}

/* ---------- Print: inputs, target, notes and sources only ---------- */

@media print {
  body.water { background: #fff; }
  .masthead, .crumbs, .skip, .hero, .water-tool, .section, .footer, .dock,
  .section--hide-print { display: none !important; }
  .water-print { display: block; color: #000; font-size: 10pt; line-height: 1.5; }
  .water-print p { margin-top: 4pt; }
}
