@font-face {
  font-family: "Schibsted Grotesk";
  src: url("/fonts/schibsted-grotesk.woff2") format("woff2");
  font-weight: 400 900;
  font-display: swap;
}

:root {
  --ink: #1C2A39;
  --ink-2: #4A5866;
  --paper: #FFFFFF;
  --sage: #EDF2EE;
  --sage-2: #DCE6DF;
  --line: #D3DCD6;
  --tag: #F5C842;
  --tag-edge: #D9AA22;
  --green: #1E6B57;
  --green-2: #15513F;
  --brick: #B4442E;
  --bar: #9CC3B4;
  --radius: 6px;
  --wrap: 1120px;
  --font: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px/1.6 var(--font);
}
img { max-width: 100%; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--green-2); text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.02em; margin: 0 0 .5em; }
h1 { font-size: clamp(2.1rem, 5.2vw, 3.6rem); font-weight: 850; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.5rem, 3vw, 2.05rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 750; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; background: var(--paper); padding: 8px 12px; z-index: 10; }

/* header */
.site-head { border-bottom: 1px solid var(--line); background: var(--paper); }
.site-head .wrap { display: flex; align-items: center; gap: 28px; min-height: 64px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-weight: 850; font-size: 1.28rem; letter-spacing: -0.03em; }
.logo svg { width: 30px; height: 22px; flex: none; }
.logo:hover { color: var(--ink); }
.nav { display: flex; gap: 22px; flex-wrap: wrap; margin-left: auto; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: .96rem; padding: 4px 0; border-bottom: 2px solid transparent; }
.nav a:hover, .nav a[aria-current] { border-bottom-color: var(--green); color: var(--ink); }

/* the hang tag */
.tag {
  --rot: -4deg;
  position: relative;
  display: inline-block;
  background: var(--tag);
  color: var(--ink);
  padding: 18px 26px 20px 46px;
  border-radius: 6px 14px 14px 6px;
  clip-path: polygon(22px 0, 100% 0, 100% 100%, 22px 100%, 0 50%);
  transform: rotate(var(--rot));
  transform-origin: 12px 50%;
  filter: drop-shadow(0 6px 10px rgba(28, 42, 57, .22));
  min-width: 240px;
}
.tag::before {
  content: "";
  position: absolute; left: 18px; top: 50%;
  width: 12px; height: 12px; margin-top: -6px;
  border-radius: 50%;
  background: var(--paper);
  box-shadow: inset 0 0 0 2px var(--tag-edge);
}
.tag-label { display: block; font-size: .9rem; font-weight: 650; }
.tag-price { display: block; font-size: clamp(2.2rem, 5vw, 3.1rem); font-weight: 900; letter-spacing: -0.04em; line-height: 1; margin: 4px 0 8px; }
.tag-lines { display: grid; gap: 1px; font-size: .92rem; }
.tag-lines b { font-weight: 800; }
.tag-wrap { position: relative; }
.tag-string { position: absolute; pointer-events: none; }

/* hero (breed) */
.hero { padding: 40px 0 48px; }
.hero .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.crumbs { font-size: .9rem; color: var(--ink-2); margin-bottom: 14px; }
.crumbs a { color: var(--ink-2); }
.lede { font-size: 1.15rem; color: var(--ink-2); max-width: 36em; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 14px 22px; margin: 26px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); }
.facts div { min-width: 0; }
.facts dt { font-size: .85rem; color: var(--ink-2); }
.facts dd { margin: 0; font-weight: 700; }
.photo { position: relative; }
.photo img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--sage); }
.photo .tag { position: absolute; right: -14px; bottom: -26px; }
.photo-none { aspect-ratio: 4 / 3; border-radius: var(--radius); background: var(--sage); display: grid; place-items: center; }
.photo-none .tag { position: static; }
.credit { font-size: .76rem; color: var(--ink-2); margin-top: 36px; }
.credit a { color: var(--ink-2); }

/* sections */
.band { padding: 56px 0; }
.band.tint { background: var(--sage); }
.band h2 + .sub { color: var(--ink-2); margin-top: -.2em; max-width: 42em; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }

/* itemized bill */
.bill { list-style: none; margin: 18px 0 0; padding: 0; }
.bill li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.bill .name { font-weight: 600; }
.bill .amt { font-weight: 750; text-align: right; }
.bill .barline { grid-column: 1 / -1; height: 6px; background: transparent; border-radius: 3px; overflow: hidden; }
.bill .barline i { display: block; height: 100%; background: var(--bar); border-radius: 3px; transition: width .35s ease; }
.bill .total { border-bottom: 0; border-top: 2px solid var(--ink); font-size: 1.1rem; }
.bill .total .name, .bill .total .amt { font-weight: 850; }
.bill .note { font-size: .86rem; color: var(--ink-2); font-weight: 400; }
.tint .bill li { border-color: var(--sage-2); }

/* calculator */
.calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.calc fieldset { border: 0; padding: 0; margin: 0 0 22px; min-width: 0; }
.calc legend, .calc .label { font-weight: 750; margin-bottom: 8px; padding: 0; display: block; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg span { display: inline-block; padding: 8px 14px; border: 1.5px solid var(--line); border-radius: 999px; background: var(--paper); font-weight: 600; font-size: .95rem; cursor: pointer; }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.seg input:focus-visible + span { outline: 3px solid var(--green); outline-offset: 2px; }
.hint { font-size: .86rem; color: var(--ink-2); margin: 6px 0 0; }
.stepper { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--sage-2); }
.stepper:last-child { border-bottom: 0; }
.stepper input { width: 84px; padding: 7px 10px; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; font-weight: 700; text-align: right; background: var(--paper); color: var(--ink); }
select.breed-pick { width: 100%; padding: 11px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; font-weight: 650; background: var(--paper); color: var(--ink); }
.calc-out { position: sticky; top: 16px; }
.calc-out .tag { margin: 6px 0 30px 6px; }
.calc-out .tag-price { transition: opacity .15s; }
.reset { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* tables */
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; font-size: .97rem; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-weight: 750; font-size: .88rem; color: var(--ink-2); border-bottom: 2px solid var(--ink); white-space: nowrap; }
td.num, th.num { text-align: right; white-space: nowrap; }
td.num { font-weight: 700; }
tbody tr:hover { background: var(--sage); }
th button { all: unset; cursor: pointer; }
th button:focus-visible { outline: 3px solid var(--green); }
th[aria-sort] button::after { content: " ▾"; }
th[aria-sort="ascending"] button::after { content: " ▴"; }
.rank { color: var(--ink-2); width: 2.5em; }
.tbl-filters { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: end; margin-top: 20px; }
.tbl-filters input[type=search] { padding: 9px 12px; border: 1.5px solid var(--line); border-radius: var(--radius); font: inherit; min-width: 240px; }

/* lists of breeds */
.breed-list { list-style: none; margin: 16px 0 0; padding: 0; }
.breed-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.breed-list a { font-weight: 650; }
.breed-list span { font-weight: 750; white-space: nowrap; }
.tint .breed-list li { border-color: var(--sage-2); }

/* home */
.home-hero { padding: 64px 0 56px; background: var(--sage); }
.home-hero .wrap { display: grid; grid-template-columns: 1.25fr 1fr; gap: 48px; align-items: center; }
.home-hero h1 { max-width: 12em; }
.finder { margin-top: 26px; position: relative; max-width: 520px; }
.finder label { font-weight: 700; display: block; margin-bottom: 8px; }
.finder input { width: 100%; padding: 15px 16px; font: inherit; font-size: 1.1rem; border: 2px solid var(--ink); border-radius: var(--radius); background: var(--paper); color: var(--ink); }
.finder ul { list-style: none; margin: 4px 0 0; padding: 4px 0; position: absolute; left: 0; right: 0; z-index: 5; background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius); max-height: 320px; overflow: auto; box-shadow: 0 10px 24px rgba(28, 42, 57, .12); }
.finder li a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 14px; color: var(--ink); text-decoration: none; }
.finder li a:hover, .finder li a.on { background: var(--sage); }
.finder li span { color: var(--ink-2); }
.hero-tag { display: grid; justify-items: center; gap: 18px; }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; }
.sizes h3 { margin-bottom: 2px; }
.sizes p { font-size: .9rem; color: var(--ink-2); margin: 0; }
.three { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; }

/* prose (guides, methodology) */
.prose { max-width: 720px; }
.prose h2 { margin-top: 1.6em; }
.prose h3 { margin-top: 1.4em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .35em; }
.prose table { margin: 1.2em 0; }
.prose blockquote { margin: 1.2em 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--tag); color: var(--ink-2); }
.page-head { padding: 44px 0 10px; }
.updated { color: var(--ink-2); font-size: .92rem; }
.callout { background: var(--sage); border-radius: var(--radius); padding: 18px 20px; margin: 1.4em 0; }
.inline-calc { margin: 2em 0; padding: 28px; background: var(--sage); border-radius: var(--radius); }
.inline-calc .calc { grid-template-columns: 1fr; gap: 10px; }
.inline-calc .calc-out { position: static; }

.health td:first-child { font-weight: 700; }
.health .src { font-size: .82rem; }
.sources { font-size: .9rem; padding-left: 1.2em; }
.sources li { margin-bottom: .3em; overflow-wrap: anywhere; }
.disclaimer { font-size: .88rem; color: var(--ink-2); }
.up { color: var(--brick); font-weight: 700; }
.down { color: var(--green); font-weight: 700; }

/* footer */
.site-foot { background: var(--ink); color: #D7DEE5; padding: 44px 0 36px; margin-top: 0; font-size: .93rem; }
.site-foot a { color: #fff; }
.site-foot .wrap { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.site-foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.site-foot .fine { grid-column: 1 / -1; border-top: 1px solid #3A4A5A; padding-top: 18px; font-size: .84rem; color: #AFBAC5; }
.site-foot .logo { color: #fff; }

.ad { margin: 28px auto; min-height: 0; }

@media (max-width: 860px) {
  .hero .wrap, .home-hero .wrap, .cols, .calc { grid-template-columns: 1fr; gap: 34px; }
  .photo .tag { right: 8px; bottom: -22px; }
  .sizes { grid-template-columns: 1fr 1fr; }
  .three { grid-template-columns: 1fr; gap: 28px; }
  .site-foot .wrap { grid-template-columns: 1fr; }
  .calc-out { position: static; }
  .nav { margin-left: 0; gap: 16px; }
  .site-head .wrap { padding-top: 10px; padding-bottom: 8px; gap: 8px 20px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  .tag { min-width: 200px; padding: 14px 18px 16px 40px; }
  .sizes { grid-template-columns: 1fr; gap: 20px; }
  .band { padding: 42px 0; }
  .hide-sm { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}


/* sharing */
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 18px; }
.share-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; background: var(--green); color: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.share-btn:hover { background: var(--green-2); }
.share-status { font-size: .9rem; color: var(--green-2); font-weight: 600; }
.hero-share { margin-top: 14px; }
.photo + .hero-share, .photo-none + .hero-share { justify-content: flex-start; }

/* pet picker */
.pet-grid { list-style: none; margin: 24px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px 24px; }
.pet-grid a { display: grid; gap: 2px; color: var(--ink); text-decoration: none; }
.pet-grid img, .pet-noimg { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); background: var(--sage); margin-bottom: 10px; display: block; }
.pet-name { font-weight: 850; font-size: 1.25rem; letter-spacing: -0.02em; }
.pet-grid a:hover .pet-name { text-decoration: underline; text-underline-offset: 3px; }
.pet-sub { font-size: .88rem; color: var(--ink-2); }
.pet-cost { margin-top: 4px; }
.pet-switch { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: baseline; }
@media (max-width: 860px) { .pet-grid { grid-template-columns: 1fr 1fr; gap: 22px 16px; } }
@media (max-width: 480px) { .pet-name { font-size: 1.08rem; } .pet-cost { font-size: .92rem; } }

/* shopping list */
.shop { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.shop li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.shop-name { display: block; font-weight: 700; }
.shop-note { display: block; font-size: .88rem; color: var(--ink-2); margin-top: 2px; }
.shop-btn { flex: none; display: inline-block; padding: 7px 14px; border: 1.5px solid var(--ink); border-radius: 999px; color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; white-space: nowrap; }
.shop-btn:hover { background: var(--ink); color: var(--paper); }
.disclosure { font-size: .84rem; color: var(--ink-2); margin-top: 16px; }
@media (max-width: 860px) { .shop { grid-template-columns: 1fr; } }

/* category bar */
.catbar { border-top: 1px solid var(--line); background: var(--paper); }
.catbar .wrap { display: flex; flex-wrap: nowrap; gap: 0 20px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.catbar .wrap::-webkit-scrollbar { display: none; }
.catbar a { flex: none; padding: 10px 0 8px; color: var(--ink-2); text-decoration: none; font-weight: 650; font-size: .93rem; border-bottom: 2px solid transparent; }
.catbar a:hover, .catbar a[aria-current] { color: var(--ink); border-bottom-color: var(--tag-edge); }
.site-head { border-bottom: 1px solid var(--line); }
