:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #202626;
  background: #f7f7f2;
  --muted: #505b5b;
  --line: #d9dfd8;
  --valle: #eef5f8;
  --llano: #fff8e6;
  --punta: #faeeea;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(100%, 54rem); margin: auto; padding: 2.5rem 1rem 2rem; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: clamp(2.25rem, 8vw, 4rem); letter-spacing: -.06em; line-height: 1.05; margin-block: .4rem; }
h2 { font-size: clamp(1.25rem, 4vw, 1.65rem); letter-spacing: -.025em; }
h3 { font-size: 1.08rem; }
.location { color: #245c52; font-weight: 700; }
.subtitle, .muted, footer { color: var(--muted); }
.languages { display: flex; justify-content: flex-end; gap: .25rem; margin-top: .75rem; }
.languages button { border: 1px solid transparent; border-radius: .5rem; background: transparent; color: var(--muted); padding-inline: .65rem; font-size: .875rem; }
.languages button[aria-pressed="true"] { background: #e9ede7; border-color: var(--line); color: #233a35; }
.languages:not([hidden]) + .tabs { margin-top: .4rem; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; padding: .25rem; gap: .25rem; background: #e9ede7; border-radius: .8rem; margin: 1.75rem 0 1.25rem; }
button { font: inherit; font-weight: 700; min-height: 44px; cursor: pointer; }
.tabs button { border: 0; border-radius: .6rem; color: inherit; background: transparent; }
.tabs button[aria-selected="true"] { background: #233a35; color: white; }
:focus-visible { outline: 2px solid #205d78; outline-offset: 3px; }
.date-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: .3rem 1rem; margin-bottom: 1.15rem; }
#state { color: #245c52; font-size: .875rem; font-weight: 700; }
.notice { padding: 1.15rem; line-height: 1.5; background: white; border: 1px solid var(--line); border-radius: .8rem; }
.notice button { margin-top: .65rem; border: 1px solid #51635e; background: white; color: inherit; border-radius: .45rem; padding-inline: .75rem; }
.rankings { display: grid; gap: 1.3rem; }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 0; margin: .55rem 0 0; gap: .5rem; list-style: none; }
.low { --accent: #15553a; --fill: #e0f0e7; }
.high { --accent: #842f2c; --fill: #f6e3df; }
.cards li { padding: .65rem .8rem; background: var(--fill); color: var(--accent); border-radius: .65rem; }
.cards li:first-child { grid-column: 1 / -1; padding: .85rem 1rem; }
.cards li:first-child .card-time { font-weight: 700; }
.card-price { display: block; font-variant-numeric: tabular-nums; }
.cards li:first-child .card-price { font-size: 1.7rem; font-weight: 750; letter-spacing: -.04em; }
.unit { font-size: .75rem; letter-spacing: 0; }
.hourly { margin-top: 1.6rem; }
.hourly .muted { font-size: .875rem; margin-top: .3rem; }
.legend { list-style: none; display: flex; flex-wrap: wrap; padding: 0; gap: .45rem; margin: .85rem 0 .45rem; }
.legend li { padding: .35rem .55rem; border: 1px solid var(--line); border-radius: .4rem; font-size: .8rem; }
.valle { background: var(--valle); }
.llano { background: var(--llano); }
.punta { background: var(--punta); }
.table-wrap { border: 1px solid var(--line); border-radius: .75rem; overflow: hidden; margin-top: .8rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: .65rem .7rem; border-bottom: 1px solid var(--line); }
thead th { background: white; font-size: .85rem; }
tbody th { font-size: .95rem; font-weight: 400; }
tr:last-child > * { border-bottom: 0; }
tr > :last-child { text-align: right; }
.secondary-time { display: block; color: var(--muted); font-size: .76rem; font-weight: 500; }
tbody tr.low, tbody tr.high { background: var(--fill); color: var(--accent); }
tbody tr.first th, tbody tr.first td, tbody tr.first .secondary-time { font-weight: 700; }
footer { margin-top: 1.6rem; font-size: .875rem; }
a { color: #245c52; text-underline-offset: .2em; }
@media (min-width: 40rem) {
  main { padding-inline: 2rem; }
  .rankings { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .secondary-time { display: inline; margin-left: .5rem; }
}
