/* =========================================================================
   In The Kibble v5
   Fredoka display, IBM Plex Sans interface, IBM Plex Mono for every figure.
   Palette pulled from the brand assets: bowl, bag, kibble, paper, good.
   ========================================================================= */

:root {
	/* Ink */
	--itk5-ink: #17160F;
	--itk5-ink-2: #4A4538;
	--itk5-ink-3: #5C564A;
	--itk5-muted: #8A8579;
	--itk5-muted-2: #A8A192;

	/* Paper */
	--itk5-paper: #FAF7F1;
	--itk5-paper-2: #F9F6F0;
	--itk5-paper-3: #F4EFE4;
	--itk5-white: #FFFFFF;

	/* Rules */
	--itk5-line: #EAE3D5;
	--itk5-line-2: #E0D9C9;
	--itk5-line-3: #F2EDE3;

	/* Bowl: the primary action colour */
	--itk5-bowl: #F04F2A;
	--itk5-bowl-deep: #D63F1C;
	--itk5-bowl-text: #C0421F;
	--itk5-bowl-soft: #FDF1EC;
	--itk5-bowl-edge: #F6D9CF;

	/* Bag, kibble */
	--itk5-bag: #69CEF6;
	--itk5-kibble: #C06E2A;

	/* Verdict tones */
	--itk5-good: #2F7A55;
	--itk5-good-soft: #F0F8EE;
	--itk5-good-chip: #EAF3E8;
	--itk5-warn: #E9A23B;
	--itk5-warn-soft: #FDF7EC;
	--itk5-warn-edge: #F0E0C0;

	/* Dark surfaces */
	--itk5-dark: #17160F;
	--itk5-dark-2: #221F17;
	--itk5-dark-line: #2E2C22;
	--itk5-dark-line-2: #3E3A2D;
	--itk5-dark-text: #FAF7F1;
	--itk5-dark-muted: #C9C3B5;
	--itk5-dark-dim: #8A8579;
	--itk5-dark-accent: #F0A08A;

	/* The kibble bar */
	--itk5-track: #EFEAE0;
	--itk5-seg-protein: #F04F2A;
	--itk5-seg-fat: #E9A23B;
	--itk5-seg-fiber: #7FA65B;
	--itk5-seg-moisture: #69CEF6;
	--itk5-seg-ash: #B8B2A4;
	--itk5-seg-starch: repeating-linear-gradient(45deg, #DED6C2 0 4px, #EDE7DA 4px 8px);

	--itk5-shell: 1120px;
	--itk5-gutter: 30px;

	--itk5-display: 'Fredoka', ui-rounded, system-ui, sans-serif;
	--itk5-sans: 'IBM Plex Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
	--itk5-mono: 'IBM Plex Mono', ui-monospace, Menlo, monospace;

	--itk5-r-sm: 6px;
	--itk5-r: 8px;
	--itk5-r-lg: 11px;
	--itk5-r-xl: 14px;
}

/* ------------------------------------------------------------------ reset */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
	margin: 0;
	background: var(--itk5-paper-3);
	color: var(--itk5-ink-2);
	font: 400 15px/1.6 var(--itk5-sans);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
h1, h2, h3, h4, h5, h6, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible { outline: 2px solid var(--itk5-bowl); outline-offset: 2px; }

.itk5-sr {
	position: absolute; width: 1px; height: 1px;
	padding: 0; margin: -1px; overflow: hidden;
	clip: rect(0 0 0 0); clip-path: inset(50%);
	white-space: nowrap; border: 0;
}

.itk5-skip {
	position: absolute; left: -9999px; top: 0; z-index: 100;
	background: var(--itk5-ink); color: var(--itk5-dark-text);
	padding: 12px 18px; border-radius: 0 0 var(--itk5-r) 0;
	font: 600 12px var(--itk5-sans);
}

.itk5-skip:focus { left: 0; }

/* --------------------------------------------------------------- primitives */

/* Eyebrow: mono, tracked, kibble brown. Marks a brand or a section. */
.itk5-eyebrow {
	display: block;
	font: 600 9.5px/1.4 var(--itk5-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--itk5-kibble);
}

.itk5-eyebrow--lg { font-size: 10px; letter-spacing: .14em; }
.itk5-eyebrow--dark { color: var(--itk5-dark-accent); letter-spacing: .16em; }

/* Every figure on the site is Plex Mono. */
.itk5-fig {
	font-family: var(--itk5-mono);
	font-weight: 500;
	font-variant-numeric: tabular-nums;
	color: var(--itk5-ink);
}

.itk5-fig--good { color: var(--itk5-good); font-weight: 600; }
.itk5-fig--warn { color: var(--itk5-warn); font-weight: 600; }
.itk5-fig--bad { color: var(--itk5-bowl-text); font-weight: 600; }
.itk5-fig--muted { color: var(--itk5-muted-2); font-weight: 400; }

.itk5-meta {
	font: 500 11.5px var(--itk5-mono);
	color: var(--itk5-ink-3);
}

/* Buttons */
.itk5-btn {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 12px 20px;
	border-radius: var(--itk5-r);
	background: var(--itk5-bowl);
	color: #fff;
	font: 600 13.5px var(--itk5-sans);
	border: 0;
	cursor: pointer;
	transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.itk5-btn:hover { background: var(--itk5-bowl-deep); color: #fff; }

.itk5-btn--ghost {
	background: transparent;
	border: 1px solid var(--itk5-line-2);
	color: var(--itk5-ink);
	font-weight: 500;
}

.itk5-btn--ghost:hover { background: transparent; border-color: var(--itk5-bowl); color: var(--itk5-bowl-text); }

.itk5-btn--dark-ghost {
	background: transparent;
	border: 1px solid var(--itk5-dark-line-2);
	color: var(--itk5-dark-text);
	font-weight: 500;
}

.itk5-btn--dark-ghost:hover { background: transparent; border-color: var(--itk5-bag); color: var(--itk5-dark-text); }

.itk5-btn--pill { border-radius: 99px; }

/* Chip: a pill filter or tag. */
.itk5-chip {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 6px 13px;
	border-radius: 99px;
	border: 1px solid var(--itk5-line-2);
	background: var(--itk5-white);
	font: 500 12px var(--itk5-sans);
	color: var(--itk5-ink-3);
	cursor: pointer;
	transition: border-color .16s ease, color .16s ease, background .16s ease;
}

.itk5-chip:hover { border-color: var(--itk5-bowl); color: var(--itk5-bowl-text); }

.itk5-chip--on {
	border-color: var(--itk5-bowl-edge);
	background: var(--itk5-bowl-soft);
	color: var(--itk5-bowl-text);
	font-weight: 600;
}

/* Tag: a small status label, mono. */
.itk5-tag {
	display: inline-block;
	padding: 3px 8px;
	border-radius: 4px;
	font: 600 9.5px/1.5 var(--itk5-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
}

.itk5-tag--bowl { background: var(--itk5-bowl); color: #fff; }
.itk5-tag--bag { background: var(--itk5-bag); color: var(--itk5-ink); }
.itk5-tag--warn { background: var(--itk5-warn); color: #fff; }
.itk5-tag--ink { background: var(--itk5-ink); color: var(--itk5-dark-text); }

.itk5-pill-note {
	display: inline-block;
	padding: 5px 10px;
	border-radius: var(--itk5-r-sm);
	background: var(--itk5-bowl-soft);
	border: 1px solid var(--itk5-bowl-edge);
	font: 600 11px var(--itk5-sans);
	color: var(--itk5-bowl-text);
}

.itk5-pill-note--good {
	background: var(--itk5-good-chip);
	border-color: transparent;
	color: var(--itk5-good);
	font-family: var(--itk5-mono);
	font-size: 10.5px;
}

/* Link in running text */
.itk5-link { color: var(--itk5-bowl-text); font-weight: 500; }
.itk5-link:hover { color: var(--itk5-bowl-deep); }

/* ============================================================ the kibble bar
   One 100% pill of the guaranteed analysis, starch hatched as filler. Same
   shape at every size so it teaches once and reads everywhere. */

.itk5-bar {
	display: flex;
	overflow: hidden;
	border-radius: 99px;
	background: var(--itk5-track);
	width: 100%;
}

.itk5-bar--xs { height: 7px; }
.itk5-bar--sm { height: 8px; }
.itk5-bar--row { height: 11px; }
.itk5-bar--md { height: 14px; }
.itk5-bar--lg { height: 34px; border-radius: var(--itk5-r); }

.itk5-bar__seg {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 100%;
	min-width: 0;
}

.itk5-bar__seg--protein { background: var(--itk5-seg-protein); }
.itk5-bar__seg--fat { background: var(--itk5-seg-fat); }
.itk5-bar__seg--fiber { background: var(--itk5-seg-fiber); }
.itk5-bar__seg--moisture { background: var(--itk5-seg-moisture); }
.itk5-bar__seg--ash { background: var(--itk5-seg-ash); }
.itk5-bar__seg--starch { background: var(--itk5-seg-starch); }

.itk5-bar__figure {
	font: 600 11.5px var(--itk5-mono);
	color: #fff;
}

.itk5-bar__seg--moisture .itk5-bar__figure,
.itk5-bar__seg--ash .itk5-bar__figure,
.itk5-bar__seg--starch .itk5-bar__figure { color: var(--itk5-ink-3); }

/* The key */
.itk5-key {
	display: flex;
	flex-wrap: wrap;
	gap: 5px 15px;
}

.itk5-key__item {
	display: flex;
	align-items: center;
	gap: 5px;
	font: 400 10.5px var(--itk5-mono);
	color: var(--itk5-ink-3);
}

.itk5-key__item--strong { color: var(--itk5-ink); }

.itk5-key__dot {
	width: 8px;
	height: 8px;
	border-radius: 2px;
	display: block;
	flex: none;
}

.itk5-key__dot--protein { background: var(--itk5-seg-protein); }
.itk5-key__dot--fat { background: var(--itk5-seg-fat); }
.itk5-key__dot--fiber { background: var(--itk5-seg-fiber); }
.itk5-key__dot--moisture { background: var(--itk5-seg-moisture); }
.itk5-key__dot--ash { background: var(--itk5-seg-ash); }
.itk5-key__dot--starch { background: repeating-linear-gradient(45deg, #DED6C2 0 3px, #EDE7DA 3px 6px); }

/* ------------------------------------------------------------------ layout */

.itk5-page { min-height: 100vh; display: flex; flex-direction: column; }
.itk5-main { flex: 1 0 auto; }

.itk5-shell {
	width: 100%;
	max-width: var(--itk5-shell);
	margin: 0 auto;
	padding: 0 var(--itk5-gutter);
}

/* The site is a stack of panels on paper. */
.itk5-panel {
	background: var(--itk5-paper);
	border: 1px solid var(--itk5-line);
	border-radius: var(--itk5-r-lg);
	overflow: hidden;
}

.itk5-stack { padding: 26px 0 40px; display: grid; gap: 18px; }

/* ------------------------------------------------------------------ header */

.itk5-header {
	background: var(--itk5-paper);
	border-bottom: 1px solid var(--itk5-line);
	position: sticky;
	top: 0;
	z-index: 30;
}

.itk5-header__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 14px var(--itk5-gutter);
	max-width: var(--itk5-shell);
	margin: 0 auto;
}

.itk5-logo { display: flex; align-items: center; gap: 9px; flex: none; }

.itk5-logo__mark {
	width: 22px;
	height: 22px;
	border-radius: var(--itk5-r-sm);
	background: var(--itk5-bag);
	display: block;
	flex: none;
}

.itk5-logo__word {
	font: 600 17px/1 var(--itk5-display);
	color: var(--itk5-ink);
	white-space: nowrap;
}

.itk5-nav {
	display: flex;
	gap: 24px;
	flex-wrap: wrap;
	font: 500 13px var(--itk5-sans);
	color: var(--itk5-ink-2);
	margin-left: auto;
}

.itk5-nav li { list-style: none; display: block; }
.itk5-nav li::marker { content: none; }

.itk5-nav a { transition: color .16s ease; }
.itk5-nav a:hover,
.itk5-nav .current-menu-item > a { color: var(--itk5-bowl-text); }

/* The dog chip. Impersonal until the profile is fetched. */
.itk5-dogchip {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 5px 11px 5px 6px;
	border: 1px solid var(--itk5-line-2);
	border-radius: 99px;
	font: 500 12px var(--itk5-sans);
	color: var(--itk5-ink);
	flex: none;
	transition: border-color .16s ease;
}

.itk5-dogchip:hover { border-color: var(--itk5-bowl); }

.itk5-dogchip__avatar {
	width: 22px;
	height: 22px;
	border-radius: 99px;
	background: var(--itk5-kibble);
	display: block;
	flex: none;
}

/* ------------------------------------------------------------------ footer */

.itk5-footer {
	margin-top: 40px;
	background: var(--itk5-dark);
	color: var(--itk5-dark-muted);
}

.itk5-footer__inner {
	max-width: var(--itk5-shell);
	margin: 0 auto;
	padding: 32px var(--itk5-gutter);
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 24px 40px;
	flex-wrap: wrap;
}

.itk5-footer__blurb {
	font: 400 13px/1.6 var(--itk5-sans);
	color: var(--itk5-dark-muted);
	max-width: 46ch;
}

.itk5-footer__nav {
	display: flex;
	gap: 22px;
	flex-wrap: wrap;
	font: 500 13px var(--itk5-sans);
	color: var(--itk5-dark-muted);
}

.itk5-footer__nav a:hover { color: var(--itk5-dark-text); }
.itk5-footer .itk5-logo__word { color: var(--itk5-dark-text); }

/* ================================================================= homepage */

.itk5-hero {
	padding: 56px var(--itk5-gutter) 44px;
	text-align: center;
	background: linear-gradient(#FFFDF8, var(--itk5-paper-3));
	border-bottom: 1px solid var(--itk5-line);
}

.itk5-hero__stat {
	margin: 0 0 14px;
	font: 600 10.5px/1 var(--itk5-mono);
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--itk5-kibble);
}

.itk5-hero h1 {
	margin: 0 auto 14px;
	max-width: 17ch;
	font: 600 52px/1.04 var(--itk5-display);
	color: var(--itk5-ink);
	letter-spacing: -.02em;
	text-wrap: balance;
}

.itk5-hero__lede {
	margin: 0 auto 26px;
	max-width: 52ch;
	font: 400 15.5px/1.6 var(--itk5-sans);
	color: var(--itk5-ink-3);
	text-wrap: pretty;
}

/* The search pill */
.itk5-search {
	display: flex;
	align-items: center;
	gap: 10px;
	max-width: 600px;
	margin: 0 auto;
	padding: 7px 7px 7px 18px;
	background: var(--itk5-white);
	border: 1px solid var(--itk5-line-2);
	border-radius: 99px;
	box-shadow: 0 6px 20px -12px rgba(23, 22, 15, .28);
}

.itk5-search input[type="search"] {
	flex: 1;
	min-width: 0;
	border: 0;
	background: none;
	font: 400 14.5px var(--itk5-sans);
	color: var(--itk5-ink);
	padding: 0;
}

.itk5-search input[type="search"]::placeholder { color: var(--itk5-muted-2); }
.itk5-search input[type="search"]:focus { outline: none; }

.itk5-search .itk5-btn { padding: 11px 22px; border-radius: 99px; flex: none; }

.itk5-hero__chips {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 16px;
}

/* The recall strip */
.itk5-alert {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 13px var(--itk5-gutter);
	background: var(--itk5-bowl-soft);
	border-top: 1px solid var(--itk5-bowl-edge);
	border-bottom: 1px solid var(--itk5-bowl-edge);
}

.itk5-alert__text {
	font: 400 13px var(--itk5-sans);
	color: var(--itk5-ink-2);
}

.itk5-alert__more {
	margin-left: auto;
	font: 600 12.5px var(--itk5-sans);
	color: var(--itk5-bowl-text);
}

/* The "reading for your dog" band, written in by JS when a profile exists. */
.itk5-dogband {
	display: none;
	background: radial-gradient(120% 100% at 12% 0%, #241F17 0%, var(--itk5-dark) 62%);
	color: var(--itk5-dark-text);
	padding: 30px var(--itk5-gutter);
	border-bottom: 1px solid var(--itk5-dark-line);
}

.itk5-dogband[data-itk5-ready] { display: block; }

.itk5-dogband__inner {
	max-width: var(--itk5-shell);
	margin: 0 auto;
	display: flex;
	align-items: center;
	gap: 15px;
	flex-wrap: wrap;
}

.itk5-dogband__avatar {
	width: 62px;
	height: 62px;
	flex: none;
	border-radius: 99px;
	background: repeating-linear-gradient(135deg, var(--itk5-dark-line) 0 6px, #241F17 6px 12px);
}

.itk5-dogband h2 {
	margin: 0 0 3px;
	font: 600 28px/1 var(--itk5-display);
	color: var(--itk5-dark-text);
	letter-spacing: -.015em;
}

.itk5-dogband__facts {
	margin: 0;
	font: 400 12.5px var(--itk5-mono);
	color: var(--itk5-dark-muted);
}

.itk5-dogband__cta { margin-left: auto; }

/* Section headings on the homepage */
.itk5-sechead {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 16px;
	flex-wrap: wrap;
	margin-bottom: 16px;
}

.itk5-sechead h2 {
	margin: 0;
	font: 600 19px var(--itk5-display);
	color: var(--itk5-ink);
}

.itk5-sechead__more { font: 500 12px var(--itk5-sans); color: var(--itk5-bowl-text); }

.itk5-section { padding: 30px 0; }

/* ==================================================================== cards */

.itk5-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
}

.itk5-grid--3 { grid-template-columns: repeat(3, 1fr); }

.itk5-card {
	background: var(--itk5-white);
	border: 1px solid var(--itk5-line);
	border-radius: 9px;
	padding: 13px;
	transition: border-color .16s ease;
	display: block;
}

.itk5-card:hover { border-color: var(--itk5-bowl); }

.itk5-card__shot {
	aspect-ratio: 1;
	border-radius: 7px;
	background: repeating-linear-gradient(135deg, var(--itk5-paper-3) 0 6px, var(--itk5-line) 6px 12px);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 11px;
	overflow: hidden;
}

.itk5-card__shot img { width: 100%; height: 100%; object-fit: cover; }

.itk5-card__shot span {
	font: 500 9px var(--itk5-mono);
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--itk5-muted-2);
}

.itk5-card__name {
	margin: 3px 0 10px;
	font: 500 13px/1.35 var(--itk5-sans);
	color: var(--itk5-ink);
}

.itk5-card .itk5-bar { margin-bottom: 7px; }

.itk5-card__figs { margin: 0; font: 500 11px var(--itk5-mono); color: var(--itk5-ink-3); }

/* ================================================================== browse
   Sidebar of filters, rows of results. */

.itk5-browse { display: grid; grid-template-columns: 256px 1fr; }

.itk5-browse__bar {
	display: flex;
	align-items: center;
	gap: 14px;
	flex-wrap: wrap;
	padding: 14px 26px;
	border-bottom: 1px solid var(--itk5-line);
	background: var(--itk5-paper);
}

.itk5-browse__title { font: 600 15px/1 var(--itk5-display); color: var(--itk5-ink); }
.itk5-browse__count { font: 500 12px var(--itk5-mono); color: var(--itk5-muted); }

.itk5-sorts {
	margin-left: auto;
	display: flex;
	gap: 7px;
	align-items: center;
	flex-wrap: wrap;
}

.itk5-sorts__label {
	font: 400 11.5px var(--itk5-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--itk5-muted);
}

.itk5-sort {
	padding: 6px 12px;
	border-radius: 7px;
	border: 1px solid var(--itk5-line-2);
	font: 500 12px var(--itk5-sans);
	color: var(--itk5-ink-3);
	transition: border-color .16s ease, color .16s ease;
}

.itk5-sort:hover { border-color: var(--itk5-bowl); color: var(--itk5-bowl-text); }

.itk5-sort--on {
	background: var(--itk5-ink);
	border-color: var(--itk5-ink);
	color: var(--itk5-dark-text);
}

.itk5-sort--on:hover { color: var(--itk5-dark-text); border-color: var(--itk5-ink); }

.itk5-facets {
	padding: 20px 22px;
	border-right: 1px solid var(--itk5-line);
	background: var(--itk5-paper-2);
}

.itk5-facets__group { margin-bottom: 20px; }

.itk5-facets__label {
	display: block;
	margin-bottom: 9px;
	font: 600 10px/1 var(--itk5-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--itk5-kibble);
}

.itk5-facets__value {
	margin: 0 0 7px;
	font: 500 22px/1 var(--itk5-display);
	color: var(--itk5-ink);
}

.itk5-facets__hint { margin: 0; font: 400 11px var(--itk5-mono); color: var(--itk5-muted); }

.itk5-facets input[type="range"] {
	width: 100%;
	accent-color: var(--itk5-bowl);
	margin: 0 0 6px;
}

.itk5-facets__chips { display: flex; flex-wrap: wrap; gap: 6px; }

.itk5-facets__list { display: grid; gap: 7px; }

.itk5-facets__row {
	display: flex;
	align-items: center;
	gap: 8px;
	font: 400 12.5px var(--itk5-sans);
	color: var(--itk5-ink-2);
}

.itk5-facets__row:hover { color: var(--itk5-bowl-text); }
.itk5-facets__row--on { color: var(--itk5-bowl-text); font-weight: 600; }
.itk5-facets__row .itk5-facets__n { margin-left: auto; font: 400 11px var(--itk5-mono); color: var(--itk5-muted-2); }

/* The dog card in the sidebar, filled in by JS. */
.itk5-facets__dog {
	display: none;
	align-items: center;
	gap: 9px;
	padding: 11px 12px;
	margin-bottom: 18px;
	background: var(--itk5-ink);
	border-radius: 9px;
}

.itk5-facets__dog[data-itk5-ready] { display: flex; }

.itk5-facets__dog span.itk5-facets__dogavatar {
	width: 26px;
	height: 26px;
	flex: none;
	border-radius: 99px;
	background: var(--itk5-kibble);
	display: block;
}

.itk5-facets__dogname { margin: 0; font: 600 12.5px/1.2 var(--itk5-sans); color: var(--itk5-dark-text); }
.itk5-facets__dogfacts { margin: 0; font: 400 10.5px var(--itk5-mono); color: var(--itk5-dark-dim); }

/* Results */
.itk5-results { padding: 14px 22px 20px; }

.itk5-rowgrid {
	display: grid;
	grid-template-columns: 2.1fr 1fr 1fr 1.5fr;
	gap: 14px;
	align-items: center;
}

.itk5-results__head {
	padding: 0 12px 9px;
	border-bottom: 1px solid var(--itk5-line);
	font: 400 10px var(--itk5-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--itk5-muted);
}

.itk5-results__head .itk5-results__sorted { color: var(--itk5-bowl); }

.itk5-row {
	padding: 13px 12px;
	border-radius: var(--itk5-r);
	transition: background .16s ease;
}

.itk5-row:hover { background: var(--itk5-paper-2); }

.itk5-row__food { display: flex; gap: 11px; align-items: center; min-width: 0; }

.itk5-row__shot {
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: var(--itk5-r-sm);
	background: repeating-linear-gradient(135deg, var(--itk5-paper-3) 0 5px, var(--itk5-line) 5px 10px);
	overflow: hidden;
}

.itk5-row__shot img { width: 100%; height: 100%; object-fit: cover; }

.itk5-row__name {
	margin: 0;
	font: 500 13px/1.3 var(--itk5-sans);
	color: var(--itk5-ink);
}

.itk5-row__num { font: 500 14px var(--itk5-mono); color: var(--itk5-ink); }

/* Dissolved on the table so protein and starch stay their own grid cells under
   their own headings; it becomes a real flex row once the grid collapses. */
.itk5-row__figures { display: contents; }

.itk5-row__label { display: none; }

/* The excluded note */
.itk5-excluded {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
	margin-top: 12px;
	padding: 12px 14px;
	background: var(--itk5-warn-soft);
	border: 1px dashed var(--itk5-warn-edge);
	border-radius: var(--itk5-r);
	font: 400 12.5px var(--itk5-sans);
	color: var(--itk5-ink-3);
}

/* =================================================================== review
   The single food. Composition first: the bar is the verdict. */

.itk5-review { padding: 26px 28px; }
.itk5-review--narrow { max-width: 720px; margin: 0 auto; }

.itk5-review h1 {
	margin: 0 0 18px;
	font: 600 30px/1.16 var(--itk5-display);
	color: var(--itk5-ink);
	letter-spacing: -.01em;
	text-wrap: balance;
}

.itk5-review .itk5-bar--lg { margin-bottom: 10px; }
.itk5-review .itk5-key { margin-bottom: 20px; }

/* The verdict box, toned by how the food actually reads. */
.itk5-verdict {
	margin: 0 0 20px;
	padding: 16px 18px;
	border-radius: 0 var(--itk5-r) var(--itk5-r) 0;
	font: 400 15px/1.55 var(--itk5-sans);
	text-wrap: pretty;
	background: var(--itk5-good-soft);
	border-left: 3px solid var(--itk5-good);
	color: #243B2E;
}

.itk5-verdict strong { font-weight: 600; }

.itk5-verdict--flat { background: var(--itk5-paper-3); border-left-color: var(--itk5-muted); color: var(--itk5-ink-2); }
.itk5-verdict--warn { background: var(--itk5-warn-soft); border-left-color: var(--itk5-warn); color: #5A431B; }
.itk5-verdict--bad { background: var(--itk5-bowl-soft); border-left-color: var(--itk5-bowl); color: #6B2A16; }

.itk5-review__label {
	display: block;
	margin: 0 0 9px;
	font: 600 10px/1 var(--itk5-mono);
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--itk5-kibble);
}

/* First five, with the salt divider as a black rule. */
.itk5-first5 {
	display: flex;
	align-items: stretch;
	margin-bottom: 8px;
	border-radius: var(--itk5-r);
	overflow: hidden;
	border: 1px solid var(--itk5-line);
}

.itk5-first5__item {
	flex: 1;
	padding: 10px 6px;
	text-align: center;
	font: 500 11.5px var(--itk5-sans);
	color: var(--itk5-ink);
	background: var(--itk5-bowl-soft);
	border-left: 1px solid var(--itk5-bowl-edge);
	min-width: 0;
	overflow-wrap: anywhere;
}

.itk5-first5__item:first-child { border-left: 0; }

/* Positions four and five step back a tone, as the design does. */
.itk5-first5__item--late { background: var(--itk5-paper-3); border-left-color: var(--itk5-line); }

.itk5-first5__salt { flex: none; width: 5px; background: var(--itk5-ink); }

.itk5-first5__rest {
	flex: 1;
	padding: 10px 6px;
	text-align: center;
	background: #F9F6F0;
	font: 400 11.5px var(--itk5-sans);
	color: var(--itk5-muted-2);
}

.itk5-note {
	margin: 0;
	font: 400 12px/1.5 var(--itk5-sans);
	color: var(--itk5-muted);
}

.itk5-note + .itk5-note { margin-top: 8px; }

/* The analysis table on the review */
.itk5-ledger { width: 100%; margin-bottom: 20px; }

.itk5-ledger td {
	padding: 10px 0;
	border-top: 1px solid var(--itk5-line-3);
	font: 400 13px var(--itk5-sans);
	color: var(--itk5-ink-2);
}

.itk5-ledger td:last-child { text-align: right; }

.itk5-ledger tr:first-child td { border-top: 0; }

.itk5-ledger__derived td {
	border-top: 1px solid var(--itk5-line);
	border-bottom: 1px solid var(--itk5-line);
	font-weight: 600;
	color: var(--itk5-ink);
}

.itk5-ledger__aside { font: 400 11px var(--itk5-mono); color: var(--itk5-muted-2); }

/* Plugin panels sit in the same rhythm as the rest of the page. */
.itk5-plugin {
	margin-top: 24px;
	padding-top: 22px;
	border-top: 1px solid var(--itk5-line);
}

/* ==================================================================== lists */

.itk5-list__item {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 24px;
	padding: 16px 12px;
	border-radius: var(--itk5-r);
	transition: background .16s ease;
}

.itk5-list__item:hover { background: var(--itk5-paper-2); }
.itk5-list__item + .itk5-list__item { border-top: 1px solid var(--itk5-line-3); border-radius: 0; }

.itk5-list__title { margin: 0; font: 600 17px/1.3 var(--itk5-sans); color: var(--itk5-ink); }
.itk5-list__title:hover { color: var(--itk5-bowl-text); }

.itk5-list__excerpt { margin: 5px 0 0; font: 400 13px/1.55 var(--itk5-sans); color: var(--itk5-ink-3); max-width: 68ch; }

.itk5-list__date { flex: none; font: 400 11px var(--itk5-mono); color: var(--itk5-muted-2); }

/* The recall log */
.itk5-log__row {
	display: grid;
	grid-template-columns: 96px 1fr 170px;
	gap: 20px;
	align-items: baseline;
	padding: 16px 12px;
	border-radius: var(--itk5-r);
	transition: background .16s ease;
}

.itk5-log__row:hover { background: var(--itk5-paper-2); }
.itk5-log__row + .itk5-log__row { border-top: 1px solid var(--itk5-line-3); border-radius: 0; }

.itk5-log__date { font: 400 11.5px var(--itk5-mono); color: var(--itk5-muted); }
.itk5-log__title { margin: 2px 0 0; font: 600 15px/1.35 var(--itk5-sans); color: var(--itk5-ink); text-wrap: pretty; }
.itk5-log__title:hover { color: var(--itk5-bowl-text); }
.itk5-log__product { margin: 5px 0 0; font: 400 12.5px/1.5 var(--itk5-sans); color: var(--itk5-ink-3); }
.itk5-log__reason { text-align: right; }

/* The ingredient glossary */
.itk5-glossary { columns: 2; column-gap: 44px; }

.itk5-glossary__item {
	break-inside: avoid;
	padding: 12px 0;
	border-bottom: 1px solid var(--itk5-line-3);
}

.itk5-glossary__term { margin: 0; font: 600 15px/1.3 var(--itk5-sans); color: var(--itk5-ink); }
.itk5-glossary__term:hover { color: var(--itk5-bowl-text); }
.itk5-glossary__gloss { margin: 3px 0 0; font: 400 12.5px/1.55 var(--itk5-sans); color: var(--itk5-ink-3); }

/* ================================================================= headings */

.itk5-pagehead {
	padding: 26px 28px 20px;
	border-bottom: 1px solid var(--itk5-line);
	background: var(--itk5-paper);
}

.itk5-pagehead h1 {
	margin: 0;
	font: 600 27px/1.15 var(--itk5-display);
	color: var(--itk5-ink);
	letter-spacing: -.01em;
	text-wrap: balance;
}

.itk5-pagehead__meta { margin: 6px 0 0; font: 500 12px var(--itk5-mono); color: var(--itk5-muted); }
.itk5-pagehead__intro { margin: 12px 0 0; font: 400 13.5px/1.6 var(--itk5-sans); color: var(--itk5-ink-3); max-width: 70ch; }

.itk5-body { padding: 20px 28px 28px; }

/* ==================================================================== prose */

.itk5-prose { font: 400 15.5px/1.7 var(--itk5-sans); color: var(--itk5-ink-2); }

.itk5-prose > * + * { margin-top: 18px; }

.itk5-prose h2 { margin-top: 32px; font: 600 24px/1.2 var(--itk5-display); color: var(--itk5-ink); letter-spacing: -.01em; }
.itk5-prose h3 { margin-top: 26px; font: 600 19px/1.25 var(--itk5-display); color: var(--itk5-ink); }
.itk5-prose h4 { margin-top: 22px; font: 600 15px var(--itk5-sans); color: var(--itk5-ink); }

.itk5-prose a { color: var(--itk5-bowl-text); font-weight: 500; }
.itk5-prose a:hover { color: var(--itk5-bowl-deep); }

.itk5-prose ul, .itk5-prose ol { padding-left: 22px; list-style: disc; }
.itk5-prose ol { list-style: decimal; }
.itk5-prose li + li { margin-top: 6px; }

.itk5-prose blockquote {
	padding: 14px 18px;
	background: var(--itk5-paper-3);
	border-left: 3px solid var(--itk5-bowl);
	border-radius: 0 var(--itk5-r) var(--itk5-r) 0;
}

.itk5-prose img, .itk5-prose figure { margin-top: 24px; border-radius: var(--itk5-r); overflow: hidden; }
.itk5-prose figcaption { margin-top: 8px; font: 400 11.5px var(--itk5-mono); color: var(--itk5-muted); }

.itk5-prose table { margin-top: 20px; font-size: 14px; }
.itk5-prose th, .itk5-prose td { text-align: left; padding: 9px 12px 9px 0; border-top: 1px solid var(--itk5-line); }
.itk5-prose th { font: 600 10px var(--itk5-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--itk5-muted); }

.itk5-prose code, .itk5-prose pre { font-family: var(--itk5-mono); font-size: 13px; background: var(--itk5-paper-3); }
.itk5-prose code { padding: 2px 5px; border-radius: 4px; }
.itk5-prose pre { padding: 16px 18px; border-radius: var(--itk5-r); overflow-x: auto; }

/* =============================================================== pagination */

.itk5-pagination { display: flex; flex-wrap: wrap; gap: 7px; padding: 20px 12px 4px; }

.itk5-pagination .page-numbers {
	display: inline-block;
	padding: 7px 13px;
	border-radius: 7px;
	border: 1px solid var(--itk5-line-2);
	background: var(--itk5-white);
	font: 500 12.5px var(--itk5-sans);
	color: var(--itk5-ink-3);
}

.itk5-pagination .page-numbers:hover { border-color: var(--itk5-bowl); color: var(--itk5-bowl-text); }

.itk5-pagination .page-numbers.current {
	background: var(--itk5-ink);
	border-color: var(--itk5-ink);
	color: var(--itk5-dark-text);
}

/* ===================================================================== 404 */

.itk5-blank { padding: 72px 28px; text-align: center; }
.itk5-blank h1 { margin: 0 0 14px; font: 600 34px/1.1 var(--itk5-display); color: var(--itk5-ink); }
.itk5-blank p { margin: 0 auto 26px; max-width: 46ch; font: 400 15px/1.6 var(--itk5-sans); color: var(--itk5-ink-3); }
.itk5-blank .itk5-search { margin-bottom: 22px; }

/* ================================================================ comments */

.itk5-comments { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--itk5-line); }
.itk5-comments h2 { margin: 0 0 16px; font: 600 19px var(--itk5-display); color: var(--itk5-ink); }
.itk5-comments__list { margin: 0 0 24px; }
.itk5-comments__list .comment-body { padding: 16px 0; border-top: 1px solid var(--itk5-line-3); }
.itk5-comments__list .comment-author { font: 600 13px var(--itk5-sans); color: var(--itk5-ink); }
.itk5-comments__list .comment-metadata,
.itk5-comments__list .comment-metadata a { font: 400 11px var(--itk5-mono); color: var(--itk5-muted-2); }
.itk5-comments__list p { margin: 8px 0 0; font: 400 14.5px/1.65 var(--itk5-sans); color: var(--itk5-ink-2); }

.itk5-comments input[type="text"],
.itk5-comments input[type="email"],
.itk5-comments input[type="url"],
.itk5-comments textarea {
	width: 100%;
	font: 400 14.5px var(--itk5-sans);
	color: var(--itk5-ink);
	background: var(--itk5-white);
	border: 1px solid var(--itk5-line-2);
	border-radius: var(--itk5-r);
	padding: 10px 12px;
	margin-bottom: 14px;
}

.itk5-comments input:focus, .itk5-comments textarea:focus { outline: none; border-color: var(--itk5-bowl); }

.itk5-comments .submit {
	padding: 12px 20px;
	border-radius: var(--itk5-r);
	background: var(--itk5-bowl);
	color: #fff;
	font: 600 13.5px var(--itk5-sans);
	border: 0;
	cursor: pointer;
}

.itk5-comments .submit:hover { background: var(--itk5-bowl-deep); }
.itk5-comments .comment-form-cookies-consent { display: flex; gap: 10px; align-items: baseline; }
.itk5-comments .comment-form-cookies-consent input { width: auto; margin: 0; }

/* ============================== the itk-* plugin panels, in the v5 language
   The score, dry-matter, portion and recall components are rendered by the
   plugins and ship their own palette as custom properties on their roots.
   Several of them (.itk-alerts, .itk-ingredients, .itk-method) re-declare the
   same properties further down, so the override is applied to every itk-
   element inside the panel, not just the roots. Two classes also beats their
   one, so this holds on specificity rather than on order and survives a plugin
   update. */

.itk5-plugin,
.itk5-plugin [class*="itk-"] {
	--itk-ink: #17160F;
	--itk-muted: #8A8579;
	--itk-line: #EAE3D5;
	--itk-bg-soft: #F9F6F0;
	--itk-blue: #F04F2A;
	--itk-blue-soft: #FDF1EC;
	--itk-good: #2F7A55;
	--itk-green: #2F7A55;
	--itk-green-soft: #EAF3E8;
	--itk-warn: #E9A23B;
	--itk-amber: #E9A23B;
	--itk-amber-soft: #FDF7EC;
	--itk-bad: #C0421F;
	--itk-red: #C0421F;
	--itk-red-deep: #A4262C;
	--itk-salt: #C06E2A;
	--itk-salt-soft: #F4EFE4;
}

.itk5-plugin > .itk-nutrition,
.itk5-plugin > .itk-score,
.itk5-plugin > .itk-portions,
.itk5-plugin > .itk-method,
.itk5-plugin > .itk-recall-history,
.itk5-plugin > .itk-checker {
	margin: 0;
	font-family: var(--itk5-sans);
	font-size: 14.5px;
}

/* Their headings take the display face, like every other heading here. */
.itk5-plugin .itk-nutrition-title,
.itk5-plugin .itk-score-title,
.itk5-plugin .itk-portions-title,
.itk5-plugin .itk-ingredients-title,
.itk5-plugin .itk-recall-history-title,
.itk5-plugin .itk-method-title,
.itk5-plugin .itk-alerts-title,
.itk5-plugin .itk-checker-title {
	font-family: var(--itk5-display);
	font-weight: 600;
	font-size: 19px;
	line-height: 1.2;
	letter-spacing: -.005em;
	color: var(--itk5-ink);
}

/* Every figure is Plex Mono here too. */
.itk5-plugin .itk-score-points,
.itk5-plugin .itk-score-value,
.itk5-plugin .itk-num,
.itk5-plugin .itk-num--strong { font-family: var(--itk5-mono); }

/* The score badge: this design gives it the dark rounded square from the
   scorecard exploration rather than the plugin's grade-coloured ring. */
.itk5-plugin .itk-score-figure,
.itk5-plugin .itk-score-figure--a,
.itk5-plugin .itk-score-figure--b,
.itk5-plugin .itk-score-figure--c,
.itk5-plugin .itk-score-figure--d,
.itk5-plugin .itk-score-figure--e {
	background: var(--itk5-ink);
	border-color: var(--itk5-ink);
	color: var(--itk5-dark-text);
	border-radius: var(--itk5-r-xl);
	font-family: var(--itk5-display);
}

.itk5-plugin .itk-score-component {
	background: var(--itk5-white);
	border-color: var(--itk5-line);
	border-radius: 9px;
}

.itk5-plugin .itk-alerts,
.itk5-plugin .itk-checker {
	background: var(--itk5-paper-3);
	border: 0;
	border-radius: var(--itk5-r-lg);
}

.itk5-plugin .itk-alerts-button,
.itk5-plugin .itk-checker-button,
.itk5-plugin .itk-portions-button {
	background: var(--itk5-bowl);
	border-radius: var(--itk5-r);
	font: 600 13.5px var(--itk5-sans);
	padding: 12px 20px;
	color: #fff;
}

.itk5-plugin .itk-alerts-button:hover,
.itk5-plugin .itk-checker-button:hover,
.itk5-plugin .itk-portions-button:hover { background: var(--itk5-bowl-deep); }

.itk5-plugin .itk-alerts-input,
.itk5-plugin .itk-checker-input,
.itk5-plugin .itk-portions-field select {
	border: 1px solid var(--itk5-line-2);
	border-radius: var(--itk5-r);
	font: 400 14.5px var(--itk5-sans);
	background: var(--itk5-white);
}

/* ================================================================ responsive */

@media (max-width: 1000px) {
	.itk5-browse { grid-template-columns: 1fr; }
	.itk5-facets { border-right: 0; border-bottom: 1px solid var(--itk5-line); }
	.itk5-grid { grid-template-columns: repeat(3, 1fr); }
	.itk5-hero h1 { font-size: 44px; }
}

@media (max-width: 820px) {
	:root { --itk5-gutter: 20px; }

	.itk5-grid, .itk5-grid--3 { grid-template-columns: repeat(2, 1fr); }
	.itk5-hero { padding: 42px var(--itk5-gutter) 34px; }
	.itk5-hero h1 { font-size: 36px; }
	.itk5-review h1 { font-size: 25px; }
	.itk5-pagehead h1 { font-size: 23px; }

	.itk5-header__inner { flex-wrap: wrap; }
	.itk5-nav { order: 3; width: 100%; margin-left: 0; gap: 18px; }

	.itk5-log__row { grid-template-columns: 88px 1fr; }
	.itk5-log__reason { grid-column: 2; text-align: left; margin-top: 6px; }
	.itk5-glossary { columns: 1; }

	/* The results table becomes a stack of records with its columns named. */
	.itk5-results__head { display: none; }

	.itk5-rowgrid.itk5-row { display: block; }
	.itk5-row__figures { display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 10px 0; }
	.itk5-row__num { display: flex; flex-direction: column; gap: 1px; }
	.itk5-row__label {
		display: block;
		font: 400 9.5px var(--itk5-mono);
		letter-spacing: .1em;
		text-transform: uppercase;
		color: var(--itk5-muted);
	}
}

@media (max-width: 560px) {
	.itk5-grid, .itk5-grid--3 { grid-template-columns: 1fr; }
	.itk5-hero h1 { font-size: 30px; }
	.itk5-review { padding: 20px var(--itk5-gutter); }
	.itk5-body, .itk5-pagehead { padding-left: var(--itk5-gutter); padding-right: var(--itk5-gutter); }
	.itk5-results { padding: 14px var(--itk5-gutter) 20px; }
	.itk5-first5 { flex-wrap: wrap; }
	.itk5-first5__item { flex: 1 0 33%; }
	.itk5-first5__salt { width: 100%; height: 4px; }
	.itk5-first5__rest { flex: 1 0 100%; }
	.itk5-log__row { grid-template-columns: 1fr; gap: 4px; }
	.itk5-log__reason { grid-column: 1; }
	.itk5-dogband__cta { margin-left: 0; width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; animation: none !important; }
}

/* ========================================================= brand directory */

.itk5-alphanav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	padding-bottom: 18px;
	margin-bottom: 4px;
	border-bottom: 1px solid var(--itk5-line);
}

.itk5-alphanav__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 30px;
	padding: 5px 8px;
	border-radius: var(--itk5-r-sm);
	border: 1px solid var(--itk5-line-2);
	background: var(--itk5-white);
	font: 600 12px var(--itk5-mono);
	color: var(--itk5-ink-3);
	transition: border-color .16s ease, color .16s ease;
}

.itk5-alphanav__link:hover { border-color: var(--itk5-bowl); color: var(--itk5-bowl-text); }

.itk5-brandset { padding-top: 22px; scroll-margin-top: 80px; }

.itk5-brandset__letter {
	margin: 0 0 12px;
	font: 600 15px/1 var(--itk5-display);
	color: var(--itk5-kibble);
}

.itk5-brandgrid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 10px;
}

.itk5-brand {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 11px 13px;
	background: var(--itk5-white);
	border: 1px solid var(--itk5-line);
	border-radius: 9px;
	transition: border-color .16s ease;
	min-width: 0;
}

.itk5-brand:hover { border-color: var(--itk5-bowl); }

.itk5-brand__logo {
	width: 46px;
	height: 46px;
	flex: none;
	border-radius: var(--itk5-r-sm);
	background: var(--itk5-paper-3);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
}

.itk5-brand__logo img { width: 100%; height: 100%; object-fit: contain; }

.itk5-brand__initial {
	font: 600 18px var(--itk5-display);
	color: var(--itk5-muted-2);
}

.itk5-brand__body { min-width: 0; }

.itk5-brand__name {
	display: block;
	font: 500 13.5px/1.3 var(--itk5-sans);
	color: var(--itk5-ink);
	overflow-wrap: anywhere;
}

.itk5-brand__count {
	display: block;
	margin-top: 2px;
	font: 400 11px var(--itk5-mono);
	color: var(--itk5-muted-2);
}

/* ============================================================== compare
   One label column, then one column per food. The bars share a single axis so
   the hatched starch block can be read straight across. */

.itk5-compare {
	--itk5-compare-cols: 3;
	overflow-x: auto;
}

.itk5-compare__row {
	display: grid;
	grid-template-columns: 150px repeat(var(--itk5-compare-cols), minmax(150px, 1fr));
	border-top: 1px solid var(--itk5-line-3);
	align-items: center;
}

.itk5-compare__row--head {
	border-top: 0;
	align-items: end;
	padding-bottom: 12px;
}

.itk5-compare__row--head + .itk5-compare__row { border-top-color: var(--itk5-line); }

.itk5-compare__label {
	padding: 11px 12px 11px 0;
	font: 400 12.5px var(--itk5-sans);
	color: var(--itk5-ink-2);
}

.itk5-compare__row--head .itk5-compare__label { padding: 0; }

.itk5-compare__cell { padding: 11px 16px; }

.itk5-compare__cell--text {
	font: 400 12.5px/1.45 var(--itk5-sans);
	color: var(--itk5-ink);
	overflow-wrap: anywhere;
}

.itk5-compare__title {
	display: block;
	margin: 3px 0 8px;
	font: 600 14px/1.3 var(--itk5-sans);
	color: var(--itk5-ink);
}

.itk5-compare__title:hover { color: var(--itk5-bowl-text); }

/* Shade every other food column so the eye can track one down the table. */
.itk5-compare__row > .itk5-compare__cell:nth-child(odd) { background: var(--itk5-paper-2); }

@media (max-width: 820px) {
	.itk5-brandgrid { grid-template-columns: repeat(2, 1fr); }
	.itk5-compare__row { grid-template-columns: 110px repeat(var(--itk5-compare-cols), minmax(130px, 1fr)); }
	.itk5-compare__label { font-size: 11.5px; }
	.itk5-compare__cell { padding: 10px 12px; }
}

@media (max-width: 560px) {
	.itk5-brandgrid { grid-template-columns: 1fr; }
}

/* ============================================================== the doors
   The three ways into the site. */

.itk5-doors {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}

.itk5-door {
	display: block;
	padding: 20px 22px;
	background: var(--itk5-paper);
	border: 1px solid var(--itk5-line);
	border-radius: var(--itk5-r-lg);
	transition: border-color .16s ease, transform .16s ease;
}

.itk5-door:hover { border-color: var(--itk5-bowl); }

.itk5-door__mark {
	display: block;
	width: 26px;
	height: 26px;
	border-radius: var(--itk5-r-sm);
	margin-bottom: 14px;
}

.itk5-door__mark--bowl { background: var(--itk5-bowl); }
.itk5-door__mark--good { background: var(--itk5-good); }
.itk5-door__mark--bag { background: var(--itk5-bag); }

.itk5-door__title {
	margin: 0 0 7px;
	font: 600 18px/1.2 var(--itk5-display);
	color: var(--itk5-ink);
}

.itk5-door__body {
	margin: 0;
	font: 400 13.5px/1.55 var(--itk5-sans);
	color: var(--itk5-ink-3);
}

/* ============================================================= the explainer
   The one piece of writing on the homepage, with the figure it is about. */

.itk5-explain {
	display: grid;
	grid-template-columns: 1.35fr 1fr;
	gap: 0;
	overflow: hidden;
}

.itk5-explain__body { padding: 28px 30px; }

.itk5-explain__body h2 {
	margin: 8px 0 14px;
	font: 600 26px/1.15 var(--itk5-display);
	color: var(--itk5-ink);
	letter-spacing: -.01em;
	text-wrap: balance;
}

.itk5-explain__body p {
	margin: 0 0 14px;
	font: 400 14.5px/1.65 var(--itk5-sans);
	color: var(--itk5-ink-3);
	max-width: 58ch;
}

.itk5-explain__body p:last-child { margin-bottom: 0; }

.itk5-explain__figure {
	padding: 28px 30px;
	background: var(--itk5-dark);
	color: var(--itk5-dark-muted);
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.itk5-explain__number {
	display: block;
	font: 600 60px/1 var(--itk5-display);
	color: var(--itk5-dark-text);
	letter-spacing: -.02em;
	margin-bottom: 12px;
}

.itk5-explain__caption {
	margin: 0;
	font: 400 14px/1.6 var(--itk5-sans);
	color: var(--itk5-dark-muted);
	max-width: 34ch;
}

.itk5-explain__caption--small {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px solid var(--itk5-dark-line);
	font: 400 11.5px/1.5 var(--itk5-mono);
	color: var(--itk5-dark-dim);
}

@media (max-width: 1000px) {
	.itk5-doors { grid-template-columns: 1fr; }
	.itk5-explain { grid-template-columns: 1fr; }
	.itk5-explain__number { font-size: 48px; }
}

/* ============================================================ compare picker */

.itk5-review__actions { margin: 0 0 20px; }

.itk5-compare__drop {
	display: inline-block;
	margin-top: 8px;
	font: 500 11px var(--itk5-mono);
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--itk5-muted);
}

.itk5-compare__drop:hover { color: var(--itk5-bowl-text); }

.itk5-picker {
	margin-top: 26px;
	padding-top: 22px;
	border-top: 1px solid var(--itk5-line);
}

.itk5-picker__search { margin: 0; max-width: 520px; }

.itk5-picker__list {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 8px;
}

.itk5-picker__item {
	display: flex;
	align-items: center;
	gap: 11px;
	padding: 10px 13px;
	background: var(--itk5-white);
	border: 1px solid var(--itk5-line);
	border-radius: 9px;
	transition: border-color .16s ease;
	min-width: 0;
}

.itk5-picker__item:hover { border-color: var(--itk5-bowl); }

.itk5-picker__item .itk5-fig { margin-left: auto; flex: none; }

.itk5-picker__plus {
	width: 24px;
	height: 24px;
	flex: none;
	border-radius: 99px;
	background: var(--itk5-bowl-soft);
	color: var(--itk5-bowl-text);
	display: flex;
	align-items: center;
	justify-content: center;
	font: 600 15px/1 var(--itk5-sans);
}

@media (max-width: 820px) {
	.itk5-picker__list { grid-template-columns: 1fr; }
}

/* ============================================================== breadcrumbs */

.itk5-crumbs { padding: 16px 0 0; }

.itk5-crumbs__inner {
	max-width: var(--itk5-shell);
	margin: 0 auto;
	padding: 0 var(--itk5-gutter);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	font: 400 11.5px var(--itk5-mono);
	color: var(--itk5-muted);
}

.itk5-crumbs a { color: var(--itk5-ink-3); }
.itk5-crumbs a:hover { color: var(--itk5-bowl-text); }
.itk5-crumbs__sep { color: var(--itk5-muted-2); }
.itk5-crumbs [aria-current] { color: var(--itk5-ink); overflow-wrap: anywhere; }

/* ================================================================= masthead
   The bag on one side, what it is made of on the other. */

.itk5-masthead {
	display: grid;
	grid-template-columns: 400px 1fr;
	gap: 34px;
	padding: 28px 30px 26px;
	border-bottom: 1px solid var(--itk5-line);
	align-items: start;
}

.itk5-shots { position: sticky; top: 84px; }

.itk5-shots__main {
	margin: 0;
	aspect-ratio: 1;
	border-radius: var(--itk5-r-lg);
	background: var(--itk5-white);
	border: 1px solid var(--itk5-line);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}

.itk5-shots__main img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	padding: 18px;
}

.itk5-shots__rail {
	display: flex;
	gap: 8px;
	margin-top: 10px;
	overflow-x: auto;
	scrollbar-width: thin;
	padding-bottom: 4px;
}

.itk5-shots__thumb {
	flex: none;
	width: 58px;
	height: 58px;
	padding: 4px;
	border-radius: var(--itk5-r-sm);
	background: var(--itk5-white);
	border: 1px solid var(--itk5-line);
	overflow: hidden;
	cursor: pointer;
	transition: border-color .16s ease;
}

.itk5-shots__thumb img { width: 100%; height: 100%; object-fit: contain; }
.itk5-shots__thumb:hover { border-color: var(--itk5-bowl); }
.itk5-shots__thumb.is-on { border-color: var(--itk5-ink); border-width: 2px; padding: 3px; }

.itk5-identity { min-width: 0; }

.itk5-identity__brand {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-bottom: 10px;
}

.itk5-identity__logo {
	width: 40px;
	height: 40px;
	flex: none;
	border-radius: var(--itk5-r-sm);
	background: var(--itk5-white);
	border: 1px solid var(--itk5-line);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 3px;
}

.itk5-identity__logo img { width: 100%; height: 100%; object-fit: contain; }

.itk5-identity h1 {
	margin: 0 0 18px;
	font: 600 32px/1.14 var(--itk5-display);
	color: var(--itk5-ink);
	letter-spacing: -.015em;
	text-wrap: balance;
}

.itk5-identity .itk5-bar--lg { margin-bottom: 10px; }
.itk5-identity .itk5-key { margin-bottom: 20px; }
.itk5-identity .itk5-verdict { margin-bottom: 20px; }

/* At a glance: the three figures somebody came for. */
.itk5-glance {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1px;
	margin: 0 0 20px;
	background: var(--itk5-line);
	border: 1px solid var(--itk5-line);
	border-radius: var(--itk5-r);
	overflow: hidden;
}

.itk5-glance__item { background: var(--itk5-paper-2); padding: 13px 15px; }

.itk5-glance dt {
	margin: 0 0 4px;
	font: 400 9.5px var(--itk5-mono);
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--itk5-muted);
}

.itk5-glance dd { margin: 0; font-size: 22px; font-weight: 600; }

.itk5-identity__actions { margin: 0; }

/* ==================================================== the first five, as tiles */

.itk5-section-block { margin-bottom: 26px; }

.itk5-five {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 10px;
	margin: 0 0 14px;
	counter-reset: itk5-five;
}

.itk5-five__item { counter-increment: itk5-five; }

.itk5-five__item > a {
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	height: 100%;
	padding: 0 10px 13px;
	background: var(--itk5-bowl-soft);
	border: 1px solid var(--itk5-bowl-edge);
	border-radius: var(--itk5-r-lg);
	margin-top: 22px;
	transition: border-color .16s ease, transform .16s ease;
}

.itk5-five__item > a:hover {
	border-color: var(--itk5-bowl);
	transform: translateY(-2px);
}

/* The photograph lifts out of the tile, which is how the previous site did it
   and it is the one flourish on the page worth keeping. */
.itk5-five__shot {
	width: 62px;
	height: 62px;
	margin-top: -22px;
	margin-bottom: 8px;
	border-radius: 99px;
	background: var(--itk5-white);
	border: 1px solid var(--itk5-bowl-edge);
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: none;
}

.itk5-five__shot img { width: 100%; height: 100%; object-fit: cover; }

.itk5-five__rank {
	font: 600 20px var(--itk5-display);
	color: var(--itk5-muted-2);
}

.itk5-five__name {
	font: 600 12.5px/1.3 var(--itk5-sans);
	color: var(--itk5-ink);
	overflow-wrap: anywhere;
}

.itk5-five__gloss {
	margin-top: 5px;
	font: 400 11px/1.45 var(--itk5-sans);
	color: var(--itk5-ink-3);
}

/* The salt divider, as a rule with its explanation. */
.itk5-saltline {
	display: flex;
	align-items: center;
	gap: 12px;
	margin: 0;
}

.itk5-saltline__rule {
	flex: none;
	width: 5px;
	height: 26px;
	border-radius: 3px;
	background: var(--itk5-ink);
}

.itk5-saltline__text {
	font: 400 12px/1.5 var(--itk5-sans);
	color: var(--itk5-muted);
}

/* ============================================================ related foods */

.itk5-related { padding-bottom: 8px; }

/* --------------------------------------------------------------- polish */

/* Cards lift very slightly. Enough to read as interactive, not enough to
   distract from a page whose job is to be read. */
.itk5-card { transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease; }

.itk5-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px -18px rgba(23, 22, 15, .5);
}

.itk5-door:hover { transform: translateY(-2px); }

/* Images inside cards never jump: the box owns the ratio. */
.itk5-card__shot img,
.itk5-row__shot img { display: block; }

@media (max-width: 1000px) {
	.itk5-masthead { grid-template-columns: 320px 1fr; gap: 26px; }
	.itk5-shots { position: static; }
	.itk5-five { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 820px) {
	.itk5-masthead { grid-template-columns: 1fr; padding: 22px var(--itk5-gutter); }
	.itk5-shots__main { max-width: 320px; }
	.itk5-identity h1 { font-size: 26px; }
	.itk5-five { grid-template-columns: repeat(2, 1fr); }
	.itk5-glance dd { font-size: 19px; }
}

@media (max-width: 560px) {
	.itk5-five { grid-template-columns: 1fr; }
	.itk5-glance { grid-template-columns: 1fr; }
	.itk5-shots__main { max-width: none; }
}

@media print {
	.itk5-header, .itk5-footer, .itk5-crumbs, .itk5-shots__rail,
	.itk5-identity__actions, .itk5-related, .itk5-facets { display: none; }
	.itk5-panel { border: 0; }
	body { background: #fff; }
}

/* The salt line needs air under the tiles it explains. */
.itk5-five + .itk5-saltline { margin-top: 16px; }

/* ============================================ ingredient page and brand header */

.itk5-ingredient__head {
	display: flex;
	align-items: center;
	gap: 18px;
	margin-bottom: 18px;
}

.itk5-ingredient__shot {
	width: 86px;
	height: 86px;
	flex: none;
	border-radius: 99px;
	background: var(--itk5-white);
	border: 1px solid var(--itk5-line);
	overflow: hidden;
}

.itk5-ingredient__shot img { width: 100%; height: 100%; object-fit: cover; }

/* A brand archive leads with the brand, not with a bare term name. */
.itk5-brandhead {
	display: flex;
	align-items: center;
	gap: 16px;
	padding: 20px 26px;
	border-bottom: 1px solid var(--itk5-line);
	background: var(--itk5-paper);
}

.itk5-brandhead__logo {
	width: 62px;
	height: 62px;
	flex: none;
	border-radius: var(--itk5-r);
	background: var(--itk5-white);
	border: 1px solid var(--itk5-line);
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	padding: 6px;
}

.itk5-brandhead__logo img { width: 100%; height: 100%; object-fit: contain; }

.itk5-brandhead__name {
	margin: 0;
	font: 600 24px/1.1 var(--itk5-display);
	color: var(--itk5-ink);
	letter-spacing: -.01em;
}

.itk5-brandhead__meta { margin: 4px 0 0; font: 400 12px var(--itk5-mono); color: var(--itk5-muted); }

@media (max-width: 560px) {
	.itk5-brandhead { padding: 16px var(--itk5-gutter); }
	.itk5-ingredient__head { gap: 14px; }
	.itk5-ingredient__shot { width: 66px; height: 66px; }
}

/* A related run of two or three should fill the row rather than leaving a gap
   where a fourth card would have been. */
.itk5-related .itk5-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

/* The glossary carries the ingredient photograph where one exists. */
.itk5-glossary__link {
	display: flex;
	align-items: center;
	gap: 12px;
	min-width: 0;
}

.itk5-glossary__shot {
	width: 44px;
	height: 44px;
	flex: none;
	border-radius: 99px;
	background: var(--itk5-paper-3);
	border: 1px solid var(--itk5-line);
	overflow: hidden;
}

.itk5-glossary__shot img { width: 100%; height: 100%; object-fit: cover; }

/* Entries with no photograph keep the same rhythm rather than jumping left. */
.itk5-glossary__shot--none { background: var(--itk5-paper-2); }

.itk5-glossary__term {
	display: block;
	font: 600 15px/1.3 var(--itk5-sans);
	color: var(--itk5-ink);
}

.itk5-glossary__link:hover .itk5-glossary__term { color: var(--itk5-bowl-text); }

.itk5-glossary__gloss {
	display: block;
	margin-top: 2px;
	font: 400 12.5px/1.5 var(--itk5-sans);
	color: var(--itk5-ink-3);
}

.itk5-glossary__shot--none {
	background: var(--itk5-paper-3);
	display: flex;
	align-items: center;
	justify-content: center;
	font: 600 15px var(--itk5-display);
	color: var(--itk5-muted-2);
}

/* Grid children default to min-width:auto, so an intrinsically wide child (a
   full-size photograph, a long unbroken food name) pushes its track past the
   container instead of shrinking. Every grid in this theme wants the opposite. */
.itk5-masthead > *,
.itk5-browse > *,
.itk5-explain > *,
.itk5-rowgrid > *,
.itk5-grid > *,
.itk5-doors > *,
.itk5-five > *,
.itk5-glance > *,
.itk5-brandgrid > *,
.itk5-picker__list > * { min-width: 0; }

.itk5-shots,
.itk5-shots__main,
.itk5-shots__rail { max-width: 100%; }

/* The plugins' own tables have a wider minimum than a phone. They scroll inside
   their panel rather than pushing the page sideways. */
.itk5-plugin { overflow-x: auto; }

.itk5-plugin .itk-nutrition-table,
.itk5-plugin table { min-width: 0; }

@media (max-width: 560px) {
	.itk5-plugin .itk-nutrition-table { font-size: 13px; }
}

/* Long unbroken food names must wrap rather than set the column width. */
.itk5-row__name,
.itk5-card__name,
.itk5-compare__title,
.itk5-list__title,
.itk5-log__title { overflow-wrap: anywhere; }

/* The salt note explains the tiles above it, so it needs to read as its own
   statement rather than as a caption hanging off the last one. */
.itk5-five + .itk5-saltline {
	margin-top: 20px;
	padding: 11px 14px;
	background: var(--itk5-paper-3);
	border-radius: var(--itk5-r);
}

.itk5-saltline__text { color: var(--itk5-ink-3); }
