/* Teamwear size guides. The tables are the content, so they get the room. */
.tg-sizeguide__filters { display: grid; gap: var(--tg-sp-4); margin-bottom: var(--tg-sp-6); }
.tg-sizeguide__filter-label { display: block; font-size: var(--tg-fs-xs); text-transform: uppercase; letter-spacing: .06em; font-weight: var(--tg-fw-bold); color: var(--tg-text-muted); margin-bottom: var(--tg-sp-2); }
.tg-sizeguide__chips { display: flex; flex-wrap: wrap; gap: var(--tg-sp-2); }
/* `min-width: 0` is load-bearing. A grid item's default minimum is AUTO, so
   without it each guide grows to fit its widest table, the scroller grows with
   it, and nothing ever scrolls - the table just runs off the side and gets
   clipped by the site-wide `overflow-x: clip`, losing the right-hand columns
   with no way to reach them. Same trap as the news article column and the
   bottom bar. */
.tg-sizeguide__guides { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--tg-sp-7); }
.tg-sizeguide__guide { min-width: 0; }
.tg-sizeguide__guide[hidden] { display: none; }
.tg-sizeguide__title { font-size: var(--tg-fs-lg); margin: 0 0 var(--tg-sp-2); }
.tg-sizeguide__brand { display: block; font-size: var(--tg-fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--tg-green-strong); }
.tg-sizeguide__intro { margin: 0 0 var(--tg-sp-4); color: var(--tg-text-muted); max-width: 70ch; }
.tg-sizeguide__chart-title { font-size: var(--tg-fs-sm); text-transform: uppercase; letter-spacing: .05em; margin: var(--tg-sp-5) 0 var(--tg-sp-2); }

/* A table wider than the screen scrolls on its own rather than pushing the page
   sideways - the site-wide `overflow-x: clip` would otherwise just CLIP the
   right-hand columns, losing data with no way to reach it. */
.tg-sizeguide__scroll { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; border: var(--tg-bw) solid var(--tg-border); border-radius: var(--tg-radius); }
.tg-sizeguide__scroll:focus-visible { outline: 2px solid var(--tg-green); outline-offset: 2px; }
.tg-sizeguide__table { width: 100%; border-collapse: collapse; font-size: var(--tg-fs-sm); }
.tg-sizeguide__table th,
.tg-sizeguide__table td { padding: var(--tg-sp-2) var(--tg-sp-3); text-align: left; white-space: nowrap; border-bottom: var(--tg-bw) solid var(--tg-border); }
.tg-sizeguide__table thead th { background: var(--tg-paper); font-weight: var(--tg-fw-bold); position: sticky; top: 0; }
.tg-sizeguide__table tbody tr:last-child th,
.tg-sizeguide__table tbody tr:last-child td { border-bottom: 0; }
/* The size column stays put while the measurements scroll, or a row read on a
   phone is a line of numbers with nothing to say which size they belong to. */
.tg-sizeguide__rowhead { position: sticky; left: 0; background: var(--tg-white); font-weight: var(--tg-fw-bold); }
.tg-sizeguide__table thead .tg-sizeguide__rowhead { background: var(--tg-paper); z-index: 1; }
.tg-sizeguide__note { margin: var(--tg-sp-3) 0 0; font-size: var(--tg-fs-sm); color: var(--tg-text-muted); max-width: 70ch; }
.tg-sizeguide__source { margin: var(--tg-sp-2) 0 0; font-size: var(--tg-fs-xs); color: var(--tg-text-muted); display: flex; flex-wrap: wrap; gap: var(--tg-sp-3); }
.tg-sizeguide__empty { padding: var(--tg-sp-4); background: var(--tg-paper); border-radius: var(--tg-radius); }
.tg-sizeguide__how { margin-top: var(--tg-sp-7); padding-top: var(--tg-sp-6); border-top: var(--tg-bw) solid var(--tg-border); }
.tg-sizeguide__how h4 { margin: var(--tg-sp-4) 0 var(--tg-sp-1); font-size: var(--tg-fs-md); }
.tg-sizeguide__how p { margin: 0; max-width: 70ch; color: var(--tg-text-muted); }
@media (min-width: 760px) {
	.tg-sizeguide__filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* The filters are buttons, so they need the element defaults reset to match the
   chip styling the links had. */
.tg-sizeguide__chips .tg-chip {
	font: inherit; font-size: var(--tg-fs-xs); line-height: 1.2;
	cursor: pointer; border: var(--tg-bw) solid var(--tg-border);
}
.tg-sizeguide__chips .tg-chip:hover { border-color: var(--tg-green); }
.tg-sizeguide__chips .tg-chip[aria-pressed="true"] { border-color: var(--tg-green); }
