/* The savings page, /ahorro and /en/savings (DESIGN.md §4, "Savings calculator" and "Savings tables").
   Tokens only from websuya.css. Limón stays on the main WhatsApp button and the closing band; the pale tint
   grounds the whole bookings band, never a row or a card. */

/* The calculator: the form on a grey panel, the two answers as white cards beside it. */
.ws-calc { display: grid; gap: 22px; }
@media (min-width: 960px) { .ws-calc { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: start; } }
.ws-calc__form { background: var(--surface-2); border-radius: 18px; padding: 28px 24px; }
.ws-calc__form h2 { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); margin-bottom: 18px; }
.ws-calc__label { display: block; font-weight: 700; margin-bottom: 8px; }
.ws-calc__row { display: flex; gap: 10px; flex-wrap: wrap; }
.ws-calc__input, .ws-calc__select {
  min-height: 52px; border: 2px solid var(--fg); border-radius: var(--radius-btn); background: var(--surface);
  color: var(--fg); font: 700 1.3rem/1 var(--f-display); padding: 0 14px;
}
.ws-calc__input { flex: 1 1 140px; min-width: 0; }
.ws-calc__select { flex: 0 0 auto; font-size: 1.05rem; }
.ws-calc__hint { color: var(--muted); font-size: .93rem; margin: 12px 0 18px; max-width: 46ch; }
.ws-calc__out { min-width: 0; }
.ws-calc__lead { font-size: 1.15rem; margin: 0 0 14px; }
.ws-calc__cards { display: grid; gap: 16px; }
@media (min-width: 620px) { .ws-calc__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ws-calc__card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 22px; min-width: 0; }
.ws-calc__card h3 { font-size: 1.15rem; margin-bottom: 12px; }
.ws-calc__big { font: 700 clamp(2.2rem, 1.6rem + 2vw, 3.2rem)/1 var(--f-display); letter-spacing: -0.02em; margin: 0 0 4px; }
.ws-calc__unit { color: var(--muted); font-weight: 700; margin: 0 0 14px; }
.ws-calc__card p { margin-bottom: 10px; }
.ws-calc__fine { font-size: .9rem; color: var(--muted); border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; }
.ws-calc__card--more .ws-calc__big { color: var(--muted); }
.ws-calc .ws-actions { margin-bottom: 6px; }
.ws-calc__copied { font-weight: 700; margin: 0; }

/* The tables: a hairline grid on a computer; on a phone each row becomes a card with its labels. */
.ws-save__intro { font-size: 1.15rem; color: var(--muted); margin: 18px 0 0; max-width: 64ch; }
.ws-save__intro b { color: var(--fg); }
.ws-save { width: 100%; border-collapse: collapse; }
.ws-save th, .ws-save td { text-align: left; vertical-align: top; padding: 16px 14px 16px 0; border-top: 1px solid var(--line); }
.ws-save thead th { border-top: 0; padding-top: 0; font-weight: 700; color: var(--muted); font-size: .93rem; }
.ws-save thead td { border-top: 0; width: 40%; }
.ws-save tbody th { font-weight: 400; }
.ws-save tbody th strong { display: block; font: 700 1.1rem/1.2 var(--f-display); margin-bottom: 4px; }
.ws-save tbody th span { display: block; color: var(--muted); font-size: .93rem; max-width: 52ch; }
.ws-save td { font: 700 1.2rem/1.2 var(--f-display); white-space: nowrap; }
.ws-save--wide td:nth-child(n+4) { font: 400 1rem/1.35 var(--f-body); white-space: normal; }
.ws-save td b { font-size: 1.35rem; }
.ws-save__us th, .ws-save__us td { background: var(--surface-2); }
.ws-save__us th { border-left: 4px solid var(--fg); padding-left: 14px; }
.ws-save__note { font-weight: 700; margin-top: 22px; max-width: 64ch; }
@media (max-width: 759px) {
  .ws-save thead { display: none; }
  .ws-save, .ws-save tbody, .ws-save tr, .ws-save th, .ws-save td { display: block; width: 100%; }
  .ws-save tr { border: 1px solid var(--line); border-radius: 16px; padding: 16px 16px 6px; margin-bottom: 14px; background: var(--surface); }
  .ws-save th, .ws-save td { border-top: 0; padding: 0 0 10px; background: none; }
  .ws-save__us { border-left: 4px solid var(--fg) !important; background: var(--surface-2) !important; }
  .ws-save__us th { border-left: 0; padding-left: 0; }
  .ws-save td { display: flex; justify-content: space-between; gap: 12px; white-space: normal; }
  .ws-save td::before { content: attr(data-label); font: 400 .93rem/1.3 var(--f-body); color: var(--muted); }
  .ws-save--wide td:nth-child(n+4) { font-weight: 700; }
}

/* Bookings: the heading and the text side by side on a computer. */
.ws-save__booking { display: grid; gap: 18px; }
@media (min-width: 860px) { .ws-save__booking { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.ws-save__booking p { font-size: 1.1rem; max-width: 60ch; }

/* Dates and sources, on white (Home's .ws-sources sits on ink). */
.ws-sources--light { color: var(--muted); margin-top: 0; }
.ws-sources--light a { color: var(--fg); }
.ws-save__h-small { font-size: 1.2rem; margin-bottom: 10px; color: var(--fg); }
