
.hyd {
  --hyd-sand:    #faf7f2;
  --hyd-cream:   #f5efe6;
  --hyd-brown:   #4a2c0a;
  --hyd-brown-2: #7c4a1a;
  --hyd-brown-3: #b87333;
  --hyd-espresso:#2d1506;
  --hyd-water:   #0284c7;
  --hyd-water-lt:#e0f2fe;
  --hyd-water-dk:#075985;
  --hyd-teal:    #0d9488;
  --hyd-amber:   #d97706;
  --hyd-amber-lt:#fef3c7;
  --hyd-red:     #dc2626;
  --hyd-red-lt:  #fee2e2;
  --hyd-green:   #16a34a;
  --hyd-green-lt:#dcfce7;
  --hyd-ink:     #1c1008;
  --hyd-ink-2:   #3d2a12;
  --hyd-ink-3:   #7a5c35;
  --hyd-ink-4:   #b8936a;
  --hyd-line:    rgba(74,44,10,0.1);
  --hyd-line-2:  rgba(74,44,10,0.18);
  --hyd-ff-head: 'Bricolage Grotesque', system-ui, sans-serif;
  --hyd-ff-body: 'Instrument Sans', system-ui, sans-serif;
  --hyd-ff-mono: 'DM Mono', monospace;
  --hyd-r4:  4px;
  --hyd-r8:  8px;
  --hyd-r12: 12px;
  --hyd-r16: 16px;
  --hyd-r20: 20px;
  --hyd-r24: 24px;

  font-family: var(--hyd-ff-body);
  font-size: 15px;
  color: var(--hyd-ink);
  background: var(--hyd-sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.hyd *, .hyd *::before, .hyd *::after { box-sizing: border-box; }

/* ── PAGE ────────────────────────────────────────────────── */
.hyd__page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px 100px;
}

/* ── HERO ─────────────────────────────────────────────────  */
.hyd__hero { text-align: center; margin-bottom: 44px; }

.hyd__hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--hyd-cream);
  border: 1px solid var(--hyd-line-2);
  color: var(--hyd-brown-2);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  padding: 5px 13px;
  border-radius: 20px;
  margin-bottom: 16px;
}

.hyd__hero-title {
  font-family: var(--hyd-ff-head);
  font-size: clamp(30px, 6vw, 58px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -1px;
  color: var(--hyd-espresso);
  margin-bottom: 14px;
}

.hyd__hero-title .hyd__title-accent {
  color: var(--hyd-water);
  font-style: italic;
}

.hyd__hero-sub {
  font-size: 15px;
  color: var(--hyd-ink-3);
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.65;
}

/* ── CARD ────────────────────────────────────────────────── */
.hyd__card {
  background: #fff;
  border: 1px solid var(--hyd-line-2);
  border-radius: var(--hyd-r24);
  padding: 28px;
  margin-bottom: 16px;
  position: relative;
}

.hyd__card-title {
  font-family: var(--hyd-ff-head);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--hyd-ink-3);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ── FORM GRID ───────────────────────────────────────────── */
.hyd__form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 20px;
}
@media (max-width: 560px) { .hyd__form-grid { grid-template-columns: 1fr; } }

.hyd__fg { display: flex; flex-direction: column; gap: 5px; }
.hyd__label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--hyd-ink-3);
}
.hyd__input, .hyd__select {
  padding: 10px 13px;
  font-family: var(--hyd-ff-body);
  font-size: 14px;
  border: 1px solid var(--hyd-line-2);
  border-radius: var(--hyd-r8);
  background: var(--hyd-sand);
  color: var(--hyd-ink);
  outline: none;
  width: 100%;
  transition: border-color 0.15s, box-shadow 0.15s;
  -webkit-appearance: none;
  appearance: none;
}
.hyd__input:focus, .hyd__select:focus {
  border-color: var(--hyd-water);
  box-shadow: 0 0 0 3px rgba(2,132,199,0.1);
}
.hyd__select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23b8936a' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-color: var(--hyd-sand);
  padding-right: 32px;
}

/* Weight input with unit toggle */
.hyd__weight-row { display: flex; gap: 8px; }
.hyd__weight-row .hyd__input { flex: 1; }
.hyd__unit-toggle {
  display: flex;
  border: 1px solid var(--hyd-line-2);
  border-radius: var(--hyd-r8);
  overflow: hidden;
  flex-shrink: 0;
}
.hyd__unit-btn {
  padding: 0 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: var(--hyd-sand);
  color: var(--hyd-ink-3);
  border: none;
  transition: all 0.12s;
  font-family: var(--hyd-ff-body);
}
.hyd__unit-btn.active {
  background: var(--hyd-espresso);
  color: #fff;
}

/* ── DRINK BUILDER ───────────────────────────────────────── */
.hyd__drinks-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 14px;
}
.hyd__drink-row {
  display: grid;
  grid-template-columns: 1fr auto 80px auto;
  gap: 8px;
  align-items: center;
}
@media (max-width: 480px) {
  .hyd__drink-row { grid-template-columns: 1fr auto; grid-template-rows: auto auto; }
}
.hyd__drink-qty {
  width: 72px;
  text-align: center;
  font-family: var(--hyd-ff-mono);
  font-weight: 500;
}
.hyd__drink-qty-btn {
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 1px solid var(--hyd-line-2);
  background: var(--hyd-sand);
  color: var(--hyd-ink-2);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
  flex-shrink: 0;
  line-height: 1;
}
.hyd__drink-qty-btn:hover { background: var(--hyd-espresso); color: #fff; border-color: var(--hyd-espresso); }
.hyd__drink-remove {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid var(--hyd-line);
  background: transparent;
  color: var(--hyd-ink-4);
  font-size: 14px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.12s;
  flex-shrink: 0;
}
.hyd__drink-remove:hover { background: var(--hyd-red-lt); border-color: #fca5a5; color: var(--hyd-red); }

.hyd__caffeine-badge {
  font-family: var(--hyd-ff-mono);
  font-size: 11px;
  color: var(--hyd-ink-4);
  white-space: nowrap;
  text-align: right;
  min-width: 60px;
}

.hyd__add-drink-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: var(--hyd-r8);
  border: 1px dashed var(--hyd-line-2);
  background: transparent;
  color: var(--hyd-ink-3);
  font-family: var(--hyd-ff-body);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  width: 100%;
  justify-content: center;
}
.hyd__add-drink-btn:hover { background: var(--hyd-cream); border-color: var(--hyd-line-2); color: var(--hyd-ink); }

/* ── CALCULATE BUTTON ────────────────────────────────────── */
.hyd__calc-btn {
  width: 100%;
  padding: 15px;
  background: var(--hyd-espresso);
  color: #fff;
  font-family: var(--hyd-ff-head);
  font-size: 16px;
  font-weight: 800;
  border: none;
  border-radius: var(--hyd-r12);
  cursor: pointer;
  letter-spacing: 0.2px;
  transition: background 0.15s, transform 0.1s;
  margin-top: 4px;
}
.hyd__calc-btn:hover { background: var(--hyd-brown); }
.hyd__calc-btn:active { transform: scale(0.99); }

/* ── RESULTS ─────────────────────────────────────────────── */
#hyd-results { display: none; }
#hyd-results.hyd--visible {
  display: block;
  animation: hyd-fadein 0.35s ease;
}
@keyframes hyd-fadein {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── MAIN RESULT DISPLAY ─────────────────────────────────── */
.hyd__result-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
  padding-bottom: 20px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--hyd-line);
}
@media (max-width: 480px) { .hyd__result-hero { grid-template-columns: 1fr; } }

.hyd__result-total-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--hyd-ink-3);
  margin-bottom: 4px;
}
.hyd__result-total {
  font-family: var(--hyd-ff-head);
  font-size: clamp(44px, 8vw, 72px);
  font-weight: 800;
  color: var(--hyd-water);
  line-height: 1;
  letter-spacing: -2px;
}
.hyd__result-total-unit {
  font-size: 22px;
  font-weight: 500;
  color: var(--hyd-ink-3);
  margin-left: 3px;
}

/* Wave animation visual */
.hyd__wave-container {
  width: 80px; height: 100px;
  border: 2px solid var(--hyd-line-2);
  border-radius: 8px 8px 16px 16px;
  overflow: hidden;
  background: var(--hyd-sand);
  position: relative;
  flex-shrink: 0;
}
.hyd__wave-fill {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--hyd-water);
  transition: height 0.6s cubic-bezier(0.4, 0, 0.2, 1), background 0.4s;
}
.hyd__wave-pct {
  position: absolute;
  bottom: 4px; left: 0; right: 0;
  text-align: center;
  font-family: var(--hyd-ff-mono);
  font-size: 11px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  z-index: 1;
}

/* ── BREAKDOWN GRID ──────────────────────────────────────── */
.hyd__breakdown-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 20px;
}
.hyd__bk-card {
  background: var(--hyd-sand);
  border: 1px solid var(--hyd-line);
  border-radius: var(--hyd-r12);
  padding: 13px 15px;
}
.hyd__bk-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--hyd-ink-4);
  margin-bottom: 4px;
}
.hyd__bk-value {
  font-family: var(--hyd-ff-mono);
  font-size: 20px;
  font-weight: 500;
  color: var(--hyd-ink);
  line-height: 1;
}
.hyd__bk-card.accent { background: var(--hyd-water-lt); border-color: rgba(2,132,199,0.2); }
.hyd__bk-card.accent .hyd__bk-value { color: var(--hyd-water-dk); }

/* ── CAFFEINE METER ──────────────────────────────────────── */
.hyd__caf-meter { margin-bottom: 20px; }
.hyd__caf-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}
.hyd__caf-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--hyd-ink-3);
}
.hyd__caf-value {
  font-family: var(--hyd-ff-mono);
  font-size: 13px;
  font-weight: 500;
}
.hyd__caf-track {
  height: 8px;
  background: var(--hyd-line);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 5px;
}
.hyd__caf-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease, background 0.4s;
}
.hyd__caf-scale {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: var(--hyd-ink-4);
}

/* ── ALERTS ──────────────────────────────────────────────── */
.hyd__alert {
  display: none;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border-radius: var(--hyd-r8);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.5;
  margin-bottom: 16px;
}
.hyd__alert.hyd--visible { display: flex; }
.hyd__alert svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; }
.hyd__alert-electrolyte { background: var(--hyd-amber-lt); border: 1px solid #fcd34d; color: var(--hyd-amber); }
.hyd__alert-limit       { background: var(--hyd-red-lt);   border: 1px solid #fca5a5; color: var(--hyd-red); }
.hyd__alert-ok          { background: var(--hyd-green-lt); border: 1px solid #86efac; color: var(--hyd-green); }

/* ── TIMING SCHEDULE ─────────────────────────────────────── */
.hyd__timing-list {
  display: flex;
  flex-direction: column;
  gap: 0;
}
.hyd__timing-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hyd-line);
}
.hyd__timing-row:last-child { border-bottom: none; }
.hyd__timing-time {
  font-family: var(--hyd-ff-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--hyd-ink-3);
  min-width: 52px;
  margin-top: 1px;
}
.hyd__timing-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
}
.hyd__timing-content { flex: 1; }
.hyd__timing-title { font-size: 13px; font-weight: 600; color: var(--hyd-ink); margin-bottom: 2px; }
.hyd__timing-desc  { font-size: 12px; color: var(--hyd-ink-3); line-height: 1.5; }
.hyd__timing-amount {
  font-family: var(--hyd-ff-mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--hyd-water);
  flex-shrink: 0;
}

/* ── REFERENCE TABLE ─────────────────────────────────────── */
.hyd__ref-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.hyd__ref-table th {
  background: var(--hyd-cream);
  padding: 8px 12px;
  text-align: left;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--hyd-ink-3);
  border-bottom: 1px solid var(--hyd-line);
}
.hyd__ref-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--hyd-line);
  color: var(--hyd-ink-2);
  vertical-align: middle;
}
.hyd__ref-table tr:last-child td { border-bottom: none; }
.hyd__ref-table td:first-child { font-weight: 600; }
.hyd__mg-bar { height: 6px; background: var(--hyd-line); border-radius: 3px; margin-top: 4px; }
.hyd__mg-fill { height: 100%; border-radius: 3px; }

/* ── HOW-TO STEPS ────────────────────────────────────────── */
.hyd__steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
@media (max-width: 560px) { .hyd__steps-grid { grid-template-columns: 1fr; } }
.hyd__step-card {
  background: var(--hyd-cream);
  border: 1px solid var(--hyd-line);
  border-radius: var(--hyd-r16);
  padding: 18px;
}
.hyd__step-num {
  width: 30px; height: 30px;
  background: var(--hyd-espresso);
  color: #fff;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800;
  margin-bottom: 10px;
}
.hyd__step-title { font-size: 13px; font-weight: 700; margin-bottom: 5px; color: var(--hyd-espresso); }
.hyd__step-desc  { font-size: 12px; color: var(--hyd-ink-3); line-height: 1.55; }

/* ── ACTIONS ─────────────────────────────────────────────── */
.hyd__actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hyd__action-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: var(--hyd-r8);
  border: 1px solid var(--hyd-line-2);
  background: #fff;
  color: var(--hyd-ink-2);
  font-family: var(--hyd-ff-body);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}
.hyd__action-btn:hover { background: var(--hyd-cream); border-color: var(--hyd-line-2); }
.hyd__action-btn svg { width: 13px; height: 13px; flex-shrink: 0; }

/* ── ARTICLE ─────────────────────────────────────────────── */
.hyd__article { margin-top: 56px; padding-top: 36px; border-top: 1px solid var(--hyd-line); }
.hyd__article-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1.2px; color: var(--hyd-brown-2); margin-bottom: 8px;
}
.hyd__article-h1 {
  font-family: var(--hyd-ff-head);
  font-size: clamp(22px, 3.5vw, 34px);
  font-weight: 800;
  line-height: 1.15;
  color: var(--hyd-espresso);
  margin-bottom: 14px;
  letter-spacing: -0.3px;
}
.hyd__article-lead {
  font-size: 15px; color: var(--hyd-ink-2); line-height: 1.75;
  padding-left: 14px; border-left: 3px solid var(--hyd-brown-3);
  margin-bottom: 28px;
}
.hyd__article-body { color: var(--hyd-ink-2); line-height: 1.8; }
.hyd__article-body h2 {
  font-family: var(--hyd-ff-head);
  font-size: 20px; font-weight: 800;
  color: var(--hyd-espresso); margin: 30px 0 8px;
  letter-spacing: -0.2px;
}
.hyd__article-body h3 {
  font-size: 15px; font-weight: 700;
  color: var(--hyd-ink); margin: 18px 0 6px;
}
.hyd__article-body p { margin-bottom: 13px; font-size: 14px; }
.hyd__article-body ul { padding-left: 18px; margin-bottom: 13px; }
.hyd__article-body li { margin-bottom: 6px; font-size: 14px; }
.hyd__article-body strong { color: var(--hyd-espresso); font-weight: 600; }

.hyd__faq-item { border-top: 1px solid var(--hyd-line); padding: 14px 0; }
.hyd__faq-q {
  font-size: 14px; font-weight: 700; color: var(--hyd-espresso);
  cursor: pointer; display: flex; justify-content: space-between; gap: 12px;
}
.hyd__faq-chevron {
  width: 16px; height: 16px; color: var(--hyd-ink-4); flex-shrink: 0;
  transition: transform 0.2s; margin-top: 2px;
}
.hyd__faq-item.hyd--open .hyd__faq-chevron { transform: rotate(180deg); }
.hyd__faq-a {
  font-size: 13px; color: var(--hyd-ink-3); line-height: 1.65;
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.hyd__faq-item.hyd--open .hyd__faq-a { max-height: 300px; }

/* ── TOAST ───────────────────────────────────────────────── */
.hyd__toast {
  position: fixed;
  bottom: 24px; left: 50%;
  transform: translateX(-50%) translateY(8px);
  background: var(--hyd-espresso);
  color: #fff;
  padding: 10px 20px;
  border-radius: 20px;
  font-size: 13px; font-weight: 600;
  z-index: 9999;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(45,21,6,0.3);
}
.hyd__toast.hyd--show { opacity: 1; transform: translateX(-50%) translateY(0); }