/* Čaje: the kind chips and photo grid of /caje, the tea page /caje/{id}. */

/* Kind chips: one swipe row on phones, wrapped on wider screens. */
.tea-kinds { display: flex; gap: 6px; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter); overflow-x: auto; scroll-padding-inline: var(--gutter); scrollbar-width: none; }
.tea-kinds::-webkit-scrollbar { display: none; }
@media (min-width: 700px) { .tea-kinds { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; } }
.tea-kind { display: inline-flex; flex: none; align-items: center; gap: 6px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--text-2); font-size: var(--step--1); font-weight: 700; line-height: 1; white-space: nowrap; text-decoration: none; transition: border-color var(--dur-2), background-color var(--dur-2), color var(--dur-2); -webkit-tap-highlight-color: transparent; }
.tea-kind:hover { border-color: var(--line-strong); color: var(--text); }
.tea-kind:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 2px; }
.tea-kind .icon { width: 16px; height: 16px; }
.tea-kind__dot { width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--tone, var(--accent)); box-shadow: 0 0 0 3px color-mix(in oklab, var(--tone, var(--accent)) 22%, transparent); }
.tea-kind__count { color: var(--text-3); font-size: 11px; font-weight: 800; }
.tea-kind[aria-current="page"] { border-color: var(--tone, var(--accent)); background: color-mix(in oklab, var(--tone, var(--accent)) 24%, var(--bg-raised)); color: var(--text); }
.tea-kind[aria-current="page"] .tea-kind__count { color: var(--text-2); }

/* Photo grid: two columns on a phone, three on a tablet, four on a desktop. */
.tea-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); margin: 0; padding: 0; list-style: none; }
@media (min-width: 640px) { .tea-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tea-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); } }
.tea-grid > li { display: flex; min-width: 0; }
.tea-card { display: flex; flex: 1; flex-direction: column; min-width: 0; overflow: hidden; }
.tea-card__pic, .tea-hero__art {
    display: grid; place-items: center; overflow: hidden;
    color: color-mix(in oklab, var(--tone, var(--tone-neutral)) 55%, #fff);
    background: radial-gradient(90% 120% at 30% 20%, color-mix(in oklab, var(--tone, var(--tone-neutral)) 55%, var(--bg-raised)), color-mix(in oklab, var(--tone, var(--tone-neutral)) 16%, var(--bg-sunken)));
}
.tea-card__pic { aspect-ratio: 4 / 3; }
.tea-card__pic img { display: block; width: 100%; height: 100%; object-fit: cover; background: var(--bg-sunken); }
.tea-card__pic .icon { width: 40px; height: 40px; stroke-width: 1.6; }
.tea-card__body { display: flex; flex: 1; flex-direction: column; gap: 4px; min-width: 0; padding: var(--space-3); }
.tea-card__kind { color: var(--text-3); font-size: 11px; font-weight: 800; letter-spacing: 0.08em; line-height: 1.3; text-transform: uppercase; }
.tea-card__name { font-family: var(--font-display); font-size: var(--step-1); font-weight: var(--display-weight); letter-spacing: var(--display-tracking); line-height: 1.1; overflow-wrap: anywhere; }
.tea-card__score { margin-top: auto; padding-top: var(--space-2); }
.tea-card .club-score__num { font-size: var(--step-2); }
.tea-card .unrated { font-size: 12px; }
@media (min-width: 720px) { .tea-card__body { padding: var(--space-4); } }

/* Tea page: photo and words side by side from 900 px, the two score cards under them. */
.tea-hero { display: grid; gap: var(--space-4); }
.tea-hero__media { display: grid; gap: 8px; margin: 0; min-width: 0; }
.tea-hero__zoom { overflow: hidden; }
.tea-hero__photo { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; background: var(--bg-sunken); }
.tea-hero__art { aspect-ratio: 2 / 1; border-radius: var(--radius-l); }
.tea-hero__art .icon { width: 64px; height: 64px; stroke-width: 1.4; }
.tea-hero__credit { display: flex; gap: 6px; align-items: flex-start; color: var(--text-3); font-size: 12px; line-height: 1.4; overflow-wrap: anywhere; }
.tea-hero__credit .icon { width: 14px; height: 14px; flex: none; margin-top: 1px; }
.tea-hero__credit a { color: inherit; }
.tea-hero__text { display: grid; gap: var(--space-3); align-content: center; justify-items: start; min-width: 0; }
.tea-hero__title { font-size: var(--step-4); line-height: 1; overflow-wrap: break-word; text-wrap: balance; }
.tea-hero__lead { max-width: 46ch; color: var(--text-2); font-size: var(--step-1); text-wrap: pretty; }
@media (min-width: 900px) {
    .tea-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: var(--space-4) var(--space-7); }
    .tea-hero > nav { grid-column: 1 / -1; }
    .tea-hero__art { aspect-ratio: 4 / 3; }
}

.tea-scores { display: grid; gap: var(--space-4); }
.tea-scores > .card { min-width: 0; }
.tea-scores .club-card .card__body { align-content: center; height: 100%; container-type: inline-size; }
@media (min-width: 900px) { .tea-scores { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
/* A narrow card puts the coals under the number instead of past its edge. */
@container (max-width: 300px) { .tea-scores .club-score--hero { grid-template-columns: minmax(0, 1fr); } }

.tea-unserved { display: flex; align-items: center; gap: var(--space-3); margin: 0; padding: var(--space-3) var(--space-4); border: 1px dashed var(--line-strong); border-radius: var(--radius-l); color: var(--text-2); font-weight: 700; }
.tea-unserved__icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-2); }
.tea-unserved__icon .icon { width: 22px; height: 22px; }
