/* Reusable long-form breed guide compositions. */

.breed-hero {
  padding: clamp(34px, 5vw, 62px) 0 var(--section-md);
  overflow: clip;
}

.breed-hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1.05fr);
  gap: clamp(38px, 6vw, 82px);
  align-items: center;
}

.breed-hero h1 {
  max-width: 11em;
  margin: 0 0 21px;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 800;
  letter-spacing: -0.054em;
  line-height: 0.98;
}

.breed-hero__lead {
  max-width: 640px;
  margin: 0 0 28px;
  color: var(--muted);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.64;
}

.breed-hero__media {
  position: relative;
}

.breed-hero__media::before {
  position: absolute;
  inset: -6% -5% -6% 12%;
  border-radius: 36px;
  background: var(--sand);
  content: "";
}

.breed-hero__media picture {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.breed-hero__media img {
  width: 100%;
  height: clamp(470px, 52vw, 640px);
  object-fit: cover;
}

.breed-hero__routes {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 20px;
}

.breed-hero__routes a {
  display: inline-flex;
  min-height: 42px;
  padding: 8px 0 5px;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid rgba(29, 27, 25, 0.28);
  color: var(--ink);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

.breed-hero__routes a:hover {
  border-color: var(--brown);
  color: var(--brown);
}

/* Opening chapter */
.breed-opening {
  padding: var(--section-md) 0 var(--section-lg);
}

.breed-opening__story {
  display: grid;
  grid-template-columns: minmax(280px, 0.76fr) minmax(0, 1.24fr);
  gap: clamp(36px, 7vw, 94px);
  padding-top: clamp(32px, 4vw, 56px);
  border-top: 1px solid var(--line);
}

.breed-opening__story h2 {
  max-width: 9em;
  margin: 0;
  font-size: clamp(38px, 5.6vw, 66px);
  letter-spacing: -0.052em;
  line-height: 1;
}

.breed-opening__copy {
  max-width: 760px;
}

.breed-opening__copy p {
  margin: 0 0 19px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.76;
}

.breed-opening__copy p:first-child {
  color: var(--ink);
  font-size: clamp(19px, 2.2vw, 23px);
  line-height: 1.6;
}

.breed-profile {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: clamp(52px, 7vw, 86px) 0 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.breed-profile > div {
  min-width: 0;
  padding: 22px 18px 24px 0;
}

.breed-profile > div + div {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}

.breed-profile dt {
  margin: 0 0 8px;
  color: var(--muted-light);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.breed-profile dd {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.45;
}

.expert-statement {
  max-width: 980px;
  margin: clamp(56px, 8vw, 98px) 0 0 auto;
  padding: clamp(30px, 5vw, 52px) clamp(28px, 6vw, 72px);
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  background: var(--brown);
  color: #fff;
}

.expert-statement p {
  margin: 0;
  font-size: clamp(22px, 3.3vw, 36px);
  font-weight: 720;
  letter-spacing: -0.026em;
  line-height: 1.32;
}

/* History is intentionally flexible: story beats can vary by breed. */
.breed-history {
  --history-line: rgba(255, 255, 255, 0.17);
  --history-muted: rgba(255, 255, 255, 0.69);
  --history-accent: #d8b18e;
  margin: 0 0 var(--section-md);
  padding: clamp(70px, 9vw, 118px) 0;
  overflow: clip;
  background: var(--dark);
  color: #fff;
}

.breed-history .eyebrow {
  color: var(--history-accent);
}

.history-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.58fr);
  gap: clamp(34px, 7vw, 92px);
  align-items: end;
  margin-bottom: clamp(58px, 8vw, 104px);
}

.history-head h2 {
  max-width: 10em;
  margin: 0;
  color: #fff;
  font-size: clamp(42px, 6vw, 70px);
  letter-spacing: -0.055em;
  line-height: 0.99;
}

.history-head p {
  max-width: 570px;
  margin: 0;
  color: var(--history-muted);
  font-size: 16px;
  line-height: 1.76;
}

.history-opening {
  display: grid;
  grid-template-columns: minmax(0, 1.32fr) minmax(320px, 0.68fr);
  gap: clamp(32px, 5vw, 74px);
  align-items: center;
}

.history-opening > * {
  min-width: 0;
}

.history-opening figure {
  margin: 0;
}

.history-opening__media {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.history-opening__media img {
  width: 100%;
  height: clamp(440px, 49vw, 650px);
  object-fit: cover;
  filter: grayscale(1) contrast(1.04);
}

.history-caption,
.history-archive figcaption,
.historical-dog__portrait figcaption,
.history-modern figure figcaption {
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  line-height: 1.55;
}

.history-opening__copy {
  padding-block: 12px;
}

.history-kicker {
  margin: 0 0 14px;
  color: var(--history-accent);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.4;
  text-transform: uppercase;
}

.history-opening h3,
.history-story h3,
.history-turn h3,
.historical-dog h3,
.history-modern h3 {
  margin: 0;
  color: #fff;
  font-size: clamp(30px, 4.4vw, 52px);
  letter-spacing: -0.047em;
  line-height: 1.05;
}

.history-opening__copy p:not(.history-kicker),
.history-story p,
.history-turn__copy p,
.historical-dog__copy p,
.history-modern__copy p {
  margin: 20px 0 0;
  color: var(--history-muted);
  font-size: 16px;
  line-height: 1.78;
}

.history-spread {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-top: clamp(100px, 13vw, 168px);
}

.history-story {
  grid-column: 4 / 10;
  grid-row: 1 / span 3;
  max-width: 710px;
  padding-top: clamp(30px, 5vw, 72px);
}

.history-story h3 + p::first-letter {
  float: left;
  margin: 9px 10px 0 0;
  color: var(--history-accent);
  font-size: 64px;
  font-weight: 800;
  line-height: 0.72;
}

.history-archive {
  margin: 0;
}

.history-archive img {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 5px;
  filter: grayscale(1) sepia(0.08) contrast(1.04);
}

.history-archive--late {
  grid-column: 1 / 4;
  grid-row: 2;
  margin-top: 54px;
}

.history-archive--avon {
  grid-column: 10 / 13;
  grid-row: 1;
}

.history-brandy {
  grid-column: 9 / 13;
  grid-row: 3;
  margin-top: 18px;
  padding: 24px 0 0 22px;
  border-top: 1px solid var(--history-line);
  border-left: 2px solid var(--history-accent);
}

.history-brandy strong {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-size: 15px;
}

.history-brandy p {
  margin: 0;
  color: var(--history-muted);
  font-size: 13px;
  line-height: 1.68;
}

.history-turn {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(250px, 0.55fr);
  gap: clamp(44px, 8vw, 112px);
  align-items: center;
  margin-top: clamp(112px, 15vw, 186px);
  padding-block: clamp(50px, 7vw, 84px);
  border-top: 1px solid var(--history-line);
  border-bottom: 1px solid var(--history-line);
}

.history-turn__copy {
  max-width: 760px;
}

.history-turn .history-archive {
  margin: 0;
}

.historical-dog {
  position: relative;
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(44px, 8vw, 110px);
  align-items: center;
  margin-top: clamp(112px, 15vw, 190px);
  padding: clamp(34px, 5vw, 60px);
  border: 1px solid rgba(216, 177, 142, 0.42);
  background: #2b241f;
}

.historical-dog::before {
  position: absolute;
  top: clamp(-53px, -4vw, -32px);
  right: clamp(16px, 4vw, 52px);
  color: rgba(255, 255, 255, 0.07);
  content: attr(data-year);
  font-size: clamp(72px, 12vw, 154px);
  font-weight: 800;
  letter-spacing: -0.07em;
  line-height: 0.8;
}

.historical-dog__portrait {
  position: relative;
  z-index: 1;
  margin: 0;
}

.historical-dog__portrait picture {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: #d8c9a4;
}

.historical-dog__portrait img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  filter: sepia(0.28) contrast(1.05);
}

.historical-dog__copy {
  position: relative;
  z-index: 1;
}

.historical-dog__quote {
  margin: 28px 0 0;
  padding: 21px 0 0 22px;
  border-top: 1px solid var(--history-line);
  border-left: 2px solid var(--history-accent);
  color: #fff;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 650;
  line-height: 1.45;
}

.historical-dog__quote cite {
  display: block;
  margin-top: 10px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 10px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.history-modern {
  padding-top: clamp(116px, 15vw, 188px);
}

.history-modern__head {
  display: grid;
  grid-template-columns: minmax(210px, 0.58fr) minmax(0, 1.42fr);
  gap: clamp(30px, 6vw, 84px);
}

.history-modern__head h3 {
  grid-column: 2;
  grid-row: 1;
  max-width: 12em;
}

.history-modern__head .history-kicker {
  grid-column: 1;
}

.history-modern__grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(38px, 7vw, 96px);
  align-items: start;
  margin-top: clamp(56px, 8vw, 94px);
}

.history-modern figure {
  margin: 0;
}

.history-modern figure picture {
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.history-modern figure img {
  width: 100%;
  min-height: 470px;
  object-fit: cover;
}

.history-modern__copy p:first-child {
  margin-top: 0;
}

.history-traits {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: clamp(64px, 9vw, 108px) 0 0;
  border-top: 1px solid var(--history-line);
  border-bottom: 1px solid var(--history-line);
}

.history-traits > div {
  min-width: 0;
  padding: 25px clamp(13px, 2vw, 25px) 28px 0;
}

.history-traits > div + div {
  padding-left: clamp(13px, 2vw, 25px);
  border-left: 1px solid var(--history-line);
}

.history-traits dt {
  margin: 0 0 9px;
  color: #fff;
  font-size: 14px;
  font-weight: 750;
  line-height: 1.35;
}

.history-traits dd {
  margin: 0;
  color: var(--history-muted);
  font-size: 12px;
  line-height: 1.58;
}

.history-insight {
  display: grid;
  grid-template-columns: minmax(150px, 0.4fr) minmax(0, 1.2fr) minmax(220px, 0.6fr);
  gap: clamp(28px, 5vw, 68px);
  align-items: start;
  margin-top: clamp(76px, 10vw, 126px);
  padding-block: clamp(38px, 5vw, 62px);
  border-top: 1px solid rgba(216, 177, 142, 0.48);
  border-bottom: 1px solid rgba(216, 177, 142, 0.48);
}

.history-insight blockquote {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3.4vw, 38px);
  font-weight: 720;
  letter-spacing: -0.03em;
  line-height: 1.26;
}

.history-insight > p {
  margin: 0;
  color: var(--history-muted);
  font-size: 14px;
  line-height: 1.72;
}

.history-sources {
  margin-top: 42px;
  color: rgba(255, 255, 255, 0.52);
  font-size: 11px;
  line-height: 1.75;
}

.history-sources strong {
  color: rgba(255, 255, 255, 0.78);
}

.history-sources a {
  color: rgba(255, 255, 255, 0.84);
}

.history-sources a:hover {
  color: #fff;
}

.history-motion-ready [data-history-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.history-motion-ready [data-history-reveal].is-visible {
  opacity: 1;
  transform: none;
}

/* Life with the breed */
.breed-lifestyle,
.breed-fit,
.breed-puppy,
.breed-training,
.breed-problems {
  padding-block: var(--section-md);
}

.lifestyle-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(14px, 2vw, 22px);
}

.life-story {
  display: flex;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.life-story:nth-child(1),
.life-story:nth-child(4) {
  grid-column: span 7;
}

.life-story:nth-child(2),
.life-story:nth-child(3) {
  grid-column: span 5;
}

.life-story:nth-child(5) {
  grid-column: span 12;
}

.life-story:not(:nth-child(5)) {
  flex-direction: column;
}

.life-story__media {
  min-height: 220px;
}

.life-story:nth-child(1) .life-story__media,
.life-story:nth-child(4) .life-story__media {
  height: 290px;
}

.life-story:nth-child(2) .life-story__media,
.life-story:nth-child(3) .life-story__media {
  height: 235px;
}

.life-story:nth-child(5) .life-story__media {
  flex: 0 0 52%;
  min-height: 330px;
}

.life-story__media picture,
.life-story__media img {
  width: 100%;
  height: 100%;
}

.life-story__media img {
  object-fit: cover;
}

.life-story__body {
  display: flex;
  padding: 22px 24px 25px;
  flex: 1;
  flex-direction: column;
}

.life-story__time {
  margin-bottom: 9px;
  color: var(--brown);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.life-story h3 {
  margin: 0 0 9px;
  font-size: 20px;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

.life-story p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.life-story p.life-story__takeaway {
  margin-top: 17px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-weight: 700;
}

/* Fit */
.fit-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(32px, 7vw, 88px);
  align-items: end;
  margin-bottom: clamp(36px, 5vw, 60px);
}

.fit-intro h2 {
  max-width: 11em;
  margin: 0;
  font-size: clamp(36px, 5vw, 54px);
  letter-spacing: -0.047em;
  line-height: 1.04;
}

.fit-intro > p {
  max-width: 610px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.74;
}

.fit-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.fit-panel {
  padding: clamp(31px, 5vw, 54px);
}

.fit-panel:first-child {
  background: #fff;
}

.fit-panel:last-child {
  background: var(--brown-dark);
  color: #fff;
}

.fit-panel:last-child .eyebrow {
  color: #dcb895;
}

.fit-panel h3 {
  margin: 0 0 23px;
  color: inherit;
  font-size: clamp(25px, 3.3vw, 35px);
  letter-spacing: -0.03em;
  line-height: 1.14;
}

.fit-panel ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.fit-panel li {
  position: relative;
  padding: 13px 0 13px 27px;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
  line-height: 1.55;
}

.fit-panel li::before {
  position: absolute;
  top: 21px;
  left: 2px;
  width: 8px;
  height: 8px;
  border: 2px solid var(--brown);
  border-radius: 50%;
  content: "";
}

.fit-panel li:last-child {
  border-bottom: 0;
}

.fit-panel:last-child li {
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.79);
}

.fit-panel:last-child li::before {
  border-color: #dcb895;
}

/* Puppy and selection */
.puppy-layout {
  display: grid;
  grid-template-columns: minmax(310px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(34px, 6vw, 76px);
  align-items: stretch;
}

.puppy-visual {
  min-height: 570px;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.puppy-visual picture,
.puppy-visual img {
  width: 100%;
  height: 100%;
}

.puppy-visual img {
  object-fit: cover;
}

.puppy-copy {
  align-self: center;
}

.puppy-copy h2 {
  margin: 0 0 15px;
  font-size: clamp(32px, 4.4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1.07;
}

.puppy-copy > p {
  margin: 0 0 27px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.puppy-point,
.selection-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 16px 0;
  border-top: 1px solid var(--line);
}

.puppy-point:last-child,
.selection-item:last-of-type {
  border-bottom: 1px solid var(--line);
}

.puppy-point__num,
.selection-item__num {
  color: var(--brown);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.puppy-point h3,
.selection-item h3 {
  margin: 0 0 6px;
  font-size: 17px;
  line-height: 1.35;
}

.puppy-point p,
.selection-item p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.58;
}

.puppy-selection {
  padding-block: var(--section-md);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.selection-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.68fr) minmax(0, 1.32fr);
  gap: clamp(34px, 7vw, 88px);
}

.selection-intro h2 {
  position: sticky;
  top: calc(var(--header-height) + var(--section-nav-height) + 20px);
  margin: 0;
  font-size: clamp(31px, 4.4vw, 46px);
  letter-spacing: -0.04em;
  line-height: 1.07;
}

.selection-item {
  grid-template-columns: 44px minmax(0, 1fr);
  padding-block: 21px;
}

.selection-item h3 {
  font-size: 18px;
}

.selection-item p {
  font-size: 15px;
  line-height: 1.62;
}

.selection-source {
  margin: 18px 0 0;
  color: var(--muted-light);
  font-size: 11px;
  line-height: 1.62;
}

.self-check {
  margin-top: clamp(42px, 7vw, 76px);
  padding: clamp(27px, 4vw, 44px);
  border-radius: var(--radius-md);
  background: var(--sand);
}

.self-check h3 {
  margin: 0 0 10px;
  font-size: clamp(25px, 3vw, 34px);
  letter-spacing: -0.035em;
  line-height: 1.12;
}

.self-check__intro {
  max-width: 630px;
  margin: 0 0 23px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.62;
}

.self-check__items {
  display: grid;
  gap: 9px;
}

.self-check__item {
  position: relative;
  display: grid;
  min-height: 52px;
  padding: 11px 14px;
  grid-template-columns: 27px 1fr;
  gap: 13px;
  align-items: center;
  border: 1px solid rgba(107, 65, 34, 0.15);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.74);
  color: var(--ink);
  font-size: 14px;
  font-weight: 650;
  cursor: pointer;
}

.self-check__item:hover {
  border-color: rgba(107, 65, 34, 0.4);
}

.self-check__item input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.self-check__mark {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 1.5px solid rgba(107, 65, 34, 0.44);
  border-radius: 7px;
  background: #fff;
  color: transparent;
}

.self-check__item input:checked + .self-check__mark {
  border-color: var(--brown);
  background: var(--brown);
  color: #fff;
}

.self-check__item input:focus-visible + .self-check__mark {
  outline: 3px solid rgba(107, 65, 34, 0.3);
  outline-offset: 2px;
}

.self-check__status {
  margin: 12px 1px 0;
  color: var(--brown);
  font-size: 12px;
  font-weight: 750;
}

/* Training */
.training-intro {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: start;
}

.training-intro h2 {
  margin: 0;
  font-size: clamp(34px, 4.8vw, 52px);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.training-intro__copy {
  max-width: 690px;
}

.training-intro__copy p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.training-intro__copy p:last-child {
  margin-bottom: 0;
}

.load-balance {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  margin-top: var(--section-md);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--dark);
  color: #fff;
}

.load-balance__copy,
.load-balance__detail {
  padding: clamp(34px, 5vw, 58px);
}

.load-balance__copy h3 {
  margin: 0 0 15px;
  color: #fff;
  font-size: clamp(29px, 4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.load-balance__copy p,
.load-balance__detail > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 15px;
  line-height: 1.7;
}

.load-balance__detail {
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.load-balance__parts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 27px;
}

.load-balance__parts span {
  padding: 7px 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 700;
}

.load-balance__detail > p.load-balance__statement {
  margin-top: 31px;
  color: #fff;
  font-size: clamp(21px, 3vw, 28px);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.28;
}

.skill-timeline {
  margin-top: var(--section-md);
  padding: var(--section-md) clamp(16px, 4vw, 24px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.skill-timeline__inner {
  width: min(100%, calc(var(--max) - 2 * clamp(16px, 4vw, 24px)));
  margin-inline: auto;
}

.skill-timeline__title {
  max-width: 760px;
  margin: 0;
  font-size: clamp(29px, 4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.skill-timeline__inner > p:not(.eyebrow) {
  max-width: 680px;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.skill-timeline ol {
  position: relative;
  display: grid;
  margin: 36px 0 0;
  padding: 0;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
}

.skill-timeline ol::before {
  position: absolute;
  top: 27px;
  right: 10%;
  left: 10%;
  height: 2px;
  background: var(--line);
  content: "";
}

.skill-timeline li {
  position: relative;
  z-index: 1;
  padding: 0 11px;
  text-align: center;
}

.skill-timeline__num {
  display: grid;
  width: 54px;
  height: 54px;
  margin: 0 auto 15px;
  place-items: center;
  border: 2px solid var(--brown);
  border-radius: 50%;
  background: var(--paper);
  color: var(--brown);
  font-size: 13px;
  font-weight: 800;
}

.skill-timeline h3 {
  margin: 0 0 7px;
  font-size: 14px;
  line-height: 1.35;
}

.skill-timeline p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.training-scenario {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(34px, 6vw, 72px);
  align-items: center;
  padding-top: var(--section-md);
}

.training-scenario__copy {
  order: 2;
}

.training-scenario__copy h3 {
  margin: 0 0 18px;
  font-size: clamp(29px, 4vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1.08;
}

.training-scenario__copy p {
  margin: 0 0 15px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.68;
}

.training-scenario__media {
  order: 1;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.training-scenario__media img {
  width: 100%;
  height: clamp(310px, 40vw, 450px);
  object-fit: cover;
}

/* Problems and help */
.problem-context {
  max-width: 730px;
  margin: -18px 0 34px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.68;
}

.problem-list {
  border-top: 1px solid var(--line);
}

.problem-row {
  display: grid;
  min-height: 80px;
  padding: 19px 4px;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  transition: background-color 180ms ease, padding 180ms ease;
}

.problem-row:hover {
  padding-inline: 12px;
  background: var(--brown-soft);
  color: var(--ink);
}

.problem-row__num {
  color: var(--brown);
  font-size: 12px;
  font-weight: 800;
}

.problem-row h3 {
  margin: 0 0 3px;
  font-size: 16px;
  line-height: 1.35;
}

.problem-row p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.problem-row__arrow {
  color: var(--brown);
}

.help-chapter {
  margin-top: var(--section-md);
  padding-block: var(--section-lg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f0ebe5;
}

.help-chapter__head {
  display: grid;
  grid-template-columns: minmax(260px, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(34px, 7vw, 88px);
  align-items: end;
}

.help-chapter__head h2 {
  max-width: 11em;
  margin: 0;
  font-size: clamp(38px, 5.3vw, 60px);
  letter-spacing: -0.05em;
  line-height: 1.02;
}

.help-chapter__head > p {
  max-width: 660px;
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.75;
}

.adult-note {
  display: grid;
  grid-template-columns: minmax(220px, 0.84fr) minmax(0, 1.16fr);
  gap: clamp(30px, 6vw, 78px);
  margin-block: clamp(60px, 8vw, 98px);
  padding: clamp(30px, 5vw, 49px);
  border-left: 4px solid var(--brown);
  background: #fff;
}

.adult-note h3 {
  margin: 0;
  font-size: clamp(24px, 3vw, 34px);
  letter-spacing: -0.03em;
  line-height: 1.22;
}

.adult-note p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.72;
}

.help-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.help-compare > div {
  padding: clamp(27px, 4vw, 38px);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fff;
}

.help-compare > div:last-child {
  border-color: transparent;
  background: var(--brown-dark);
  color: #fff;
}

.help-compare h3 {
  margin: 0 0 17px;
  color: inherit;
  font-size: 19px;
  line-height: 1.3;
}

.help-compare ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.help-compare li {
  position: relative;
  padding: 11px 0 11px 22px;
  border-bottom: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.55;
}

.help-compare li::before {
  position: absolute;
  top: 18px;
  left: 1px;
  width: 7px;
  height: 7px;
  border: 2px solid var(--brown);
  border-radius: 50%;
  content: "";
}

.help-compare > div:last-child li {
  border-color: rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.79);
}

.help-compare > div:last-child li::before {
  border-color: #dcb895;
}

.help-compare li:last-child {
  border-bottom: 0;
}

.help-note {
  max-width: 780px;
  margin: 22px 0 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.expert-feature {
  display: grid;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
  margin-top: clamp(76px, 10vw, 122px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: var(--brown-dark);
  color: #fff;
}

.expert-feature__media {
  display: flex;
  min-height: 560px;
  padding: 26px 10px 0;
  align-items: flex-end;
  justify-content: center;
  background: #3b2b20;
}

.expert-feature__media picture,
.expert-feature__media img {
  width: 100%;
  height: 100%;
}

.expert-feature__media img {
  max-height: 560px;
  object-fit: contain;
  object-position: center bottom;
}

.expert-feature__copy {
  align-self: center;
  padding: clamp(38px, 6vw, 72px);
}

.expert-feature__copy .eyebrow {
  color: #dcb895;
}

.expert-feature__copy blockquote {
  margin: 0 0 22px;
  color: #fff;
  font-size: clamp(23px, 3.2vw, 35px);
  font-weight: 720;
  letter-spacing: -0.026em;
  line-height: 1.3;
}

.expert-feature__copy > p {
  max-width: 590px;
  margin: 0 0 23px;
  color: rgba(255, 255, 255, 0.73);
  font-size: 15px;
  line-height: 1.68;
}

.expert-feature__signature {
  margin-bottom: 27px;
}

.expert-feature__signature strong {
  display: block;
  color: #fff;
  font-size: 14px;
}

.expert-feature__signature span {
  color: rgba(255, 255, 255, 0.52);
  font-size: 12px;
}

.related-section {
  padding-block: clamp(36px, 6vw, 62px);
  border-top: 1px solid var(--line);
}

.related-section h2 {
  margin: 0 0 18px;
  color: var(--muted-light);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.related-links {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.related-links a {
  display: inline-flex;
  min-height: 42px;
  padding: 9px 15px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.related-links a:hover {
  border-color: var(--brown);
  background: var(--brown-soft);
  color: var(--brown);
}

.guide-sources {
  padding: 0 0 var(--section-md);
  color: var(--muted-light);
  font-size: 11px;
  line-height: 1.65;
}

.guide-sources strong {
  color: var(--muted);
}

@media (max-width: 1024px) {
  .breed-hero__grid {
    grid-template-columns: minmax(0, 0.9fr) minmax(390px, 1.1fr);
  }

  .breed-profile {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .breed-profile > div:nth-child(4) {
    border-left: 0;
  }

  .breed-profile > div:nth-child(n + 4) {
    border-top: 1px solid var(--line);
  }

  .history-opening,
  .history-modern__grid {
    grid-template-columns: 1fr;
  }

  .history-opening__copy {
    max-width: 790px;
  }

  .history-spread {
    grid-template-columns: repeat(8, minmax(0, 1fr));
  }

  .history-story {
    grid-column: 3 / 7;
  }

  .history-archive--late {
    grid-column: 1 / 3;
  }

  .history-archive--avon {
    grid-column: 7 / 9;
  }

  .history-brandy {
    grid-column: 6 / 9;
  }

  .history-traits {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .history-traits > div:nth-child(4) {
    border-left: 0;
  }

  .history-traits > div:nth-child(n + 4) {
    border-top: 1px solid var(--history-line);
  }
}

@media (max-width: 900px) {
  .breed-hero__grid {
    grid-template-columns: 1fr;
  }

  .breed-hero__media {
    order: -1;
    max-width: 620px;
  }

  .breed-hero__media img {
    height: min(72vw, 500px);
    min-height: 340px;
  }

  .breed-opening__story,
  .fit-intro,
  .selection-layout,
  .training-intro,
  .help-chapter__head,
  .adult-note {
    grid-template-columns: 1fr;
  }

  .history-head,
  .history-insight {
    grid-template-columns: 1fr;
  }

  .history-turn {
    grid-template-columns: minmax(0, 1.15fr) minmax(210px, 0.55fr);
  }

  .historical-dog {
    grid-template-columns: minmax(220px, 0.65fr) minmax(0, 1.35fr);
    gap: 40px;
  }

  .history-modern__head {
    grid-template-columns: 1fr;
  }

  .history-modern__head h3,
  .history-modern__head .history-kicker {
    grid-column: 1;
    grid-row: auto;
  }

  .selection-intro h2 {
    position: static;
  }

  .life-story:nth-child(n) {
    grid-column: span 6;
  }

  .life-story:nth-child(5) {
    grid-column: span 12;
  }

  .puppy-layout {
    grid-template-columns: 1fr;
  }

  .puppy-visual {
    min-height: 390px;
    max-height: 520px;
  }

  .load-balance {
    grid-template-columns: 1fr;
  }

  .load-balance__detail {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    border-left: 0;
  }

  .skill-timeline ol {
    grid-template-columns: 1fr;
  }

  .skill-timeline ol::before {
    display: none;
  }

  .skill-timeline li {
    display: grid;
    padding: 0 0 26px;
    grid-template-columns: 48px 1fr;
    gap: 16px;
    text-align: left;
  }

  .skill-timeline li:not(:last-child)::after {
    position: absolute;
    top: 52px;
    bottom: 0;
    left: 23px;
    width: 2px;
    background: var(--line);
    content: "";
  }

  .skill-timeline__num {
    width: 48px;
    height: 48px;
    margin: 0;
  }

  .training-scenario {
    grid-template-columns: 1fr;
  }

  .training-scenario__copy,
  .training-scenario__media {
    order: initial;
  }
}

@media (max-width: 680px) {
  .breed-hero__media::before {
    inset: -4% -4% -4% 9%;
  }

  .breed-profile {
    grid-template-columns: 1fr 1fr;
  }

  .breed-profile > div,
  .breed-profile > div + div {
    padding: 17px 12px;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .breed-profile > div:nth-child(even) {
    border-left: 1px solid var(--line);
  }

  .breed-profile > div:nth-child(-n + 2) {
    border-top: 0;
  }

  .expert-statement {
    border-radius: var(--radius-md);
  }

  .breed-history {
    padding-block: 58px 70px;
  }

  .history-opening__media img {
    height: 68vw;
    min-height: 300px;
  }

  .history-spread {
    display: flex;
    margin-top: 86px;
    flex-direction: column;
    gap: 43px;
  }

  .history-story {
    order: 1;
    padding-top: 0;
  }

  .history-archive--late {
    order: 3;
    width: min(64%, 270px);
    margin: 0 0 0 auto;
  }

  .history-archive--avon {
    order: 2;
    width: min(78%, 350px);
  }

  .history-brandy {
    order: 4;
    width: 92%;
    margin: 0 0 0 auto;
  }

  .history-turn {
    grid-template-columns: 1fr;
    margin-top: 92px;
  }

  .history-turn .history-archive {
    width: min(76%, 360px);
    margin-left: auto;
  }

  .historical-dog {
    grid-template-columns: 1fr;
    margin-top: 100px;
    padding: 28px 22px 32px;
  }

  .historical-dog__portrait {
    width: min(76%, 340px);
  }

  .history-modern {
    padding-top: 96px;
  }

  .history-modern figure img {
    min-height: 0;
  }

  .history-traits {
    grid-template-columns: 1fr;
  }

  .history-traits > div,
  .history-traits > div + div {
    padding: 20px 0;
    border-top: 1px solid var(--history-line);
    border-left: 0;
  }

  .history-traits > div:first-child {
    border-top: 0;
  }

  .life-story:nth-child(n) {
    grid-column: span 12;
    flex-direction: column;
  }

  .life-story:nth-child(n) .life-story__media {
    height: 225px;
    min-height: 225px;
    flex-basis: auto;
  }

  .fit-grid,
  .help-compare,
  .expert-feature {
    grid-template-columns: 1fr;
  }

  .self-check {
    margin-inline: -8px;
  }

  .expert-feature__media {
    min-height: 390px;
    max-height: 470px;
  }

  .problem-row {
    grid-template-columns: 36px 1fr;
  }

  .problem-row__arrow {
    display: none;
  }
}

@media (max-width: 430px) {
  .breed-hero h1 {
    font-size: 40px;
  }

  .breed-hero__media img {
    min-height: 285px;
  }

  .breed-opening__copy p,
  .breed-opening__copy p:first-child {
    font-size: 16px;
    line-height: 1.7;
  }

  .breed-profile {
    grid-template-columns: 1fr;
  }

  .breed-profile > div,
  .breed-profile > div + div,
  .breed-profile > div:nth-child(even) {
    padding: 15px 0;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .breed-profile > div:first-child {
    border-top: 0;
  }

  .history-opening__copy p:not(.history-kicker),
  .history-story p,
  .history-turn__copy p,
  .historical-dog__copy p,
  .history-modern__copy p {
    font-size: 15px;
    line-height: 1.72;
  }

  .history-story h3 + p::first-letter {
    font-size: 54px;
  }

  .puppy-visual {
    min-height: 290px;
  }

  .puppy-point,
  .selection-item {
    grid-template-columns: 33px minmax(0, 1fr);
  }

  .load-balance__copy,
  .load-balance__detail {
    padding: 30px 22px;
  }

  .adult-note {
    padding: 27px 22px;
  }

  .expert-feature__copy {
    padding: 32px 22px 38px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .history-motion-ready [data-history-reveal] {
    opacity: 1;
    transform: none;
  }
}
