/* Guides: /guides/cocktail-ratios */
.guide-page { margin-block: var(--s-8) var(--s-12); }
.guide-head { display: grid; gap: var(--s-4); max-width: var(--measure); margin-top: var(--s-4); }
.guide-lede { font-size: var(--size-qty); }
.guide-section { margin-top: var(--s-12); max-width: 40rem; }
.guide-section > h2 { margin-bottom: var(--s-4); }
.guide-ratios__note { color: var(--text-soft); font-size: var(--size-small); }

/* Scrolls sideways inside the page at 390px; focusable so keyboard users can scroll it */
.ratio-table { margin-top: var(--s-6); overflow-x: auto; }
.ratio-table table { width: 100%; border-collapse: collapse; font-size: var(--size-small); }
.ratio-table caption { padding-bottom: var(--s-3); caption-side: top; text-align: left; font-size: var(--size-small); color: var(--text-soft); }
.ratio-table :is(th, td) { padding: var(--s-1) var(--s-3); text-align: right; white-space: nowrap; }
.ratio-table :is(th, td):first-child { min-width: 9rem; padding-left: 0; text-align: left; white-space: normal; }
.ratio-table :is(th, td):last-child { padding-right: 0; }
.ratio-table thead th { padding-block: var(--s-2); font-family: var(--font-mono); font-weight: 500; color: var(--text-soft); }
.ratio-table tbody tr { border-top: 1px solid var(--rule); }
.ratio-table tbody th { font-weight: 600; }
.ratio-table td { font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.ratio-table a { display: inline-flex; align-items: center; min-height: var(--tap); }
.ratio-table td strong { font-weight: 600; }
.ratio-table__exact { margin-left: var(--s-1); font-family: var(--font-sans); font-size: var(--size-cap); color: var(--text-soft); }

.guide-sources ol { display: grid; gap: var(--s-1); margin-top: var(--s-3); font-size: var(--size-small); }
.guide-sources a { display: inline-flex; align-items: center; min-height: var(--tap); color: var(--text-soft); }

@media (min-width: 40em) {
  .ratio-table table { font-size: var(--size-ui); }
}
