/* Kucēna ABC, the puppy buyer's guide. Editorial, magazine-like: Didone display type, ink on warm paper,
   hairline rules instead of boxes, square corners, small tracked capitals for labels. System fonts only
   (CSP allows no font files). Rules are scoped to body.gs (the page started inside the KynoPass app). */
body.gs {
  --bg: #f7f4ee; --sand: #ede7dc; --card: #fbf9f5; --ink: #141210; --soft: #5e5850; --rule: #d9d2c5; --hair: #141210;
  --accent: #7a1f1a; --accent-tint: #f1e4df; --ok: #2c6a45; --bad: #9e2a1f; --bad-tint: #f3e6e2;
  --coi-green: #2c6a45; --coi-amber: #a8761a; --coi-red: #9e2a1f;
  --display: "Didot", "Bodoni 72", "Bodoni MT", "Bodoni Moda", "Libre Bodoni", "Playfair Display", Georgia, serif;
  --serif: "Iowan Old Style", "Charter", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --sans: "Helvetica Neue", Helvetica, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;

  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink); font: 1.06rem/1.7 var(--serif); -webkit-font-smoothing: antialiased;
}
@media (prefers-color-scheme: dark) {
  body.gs {
    --bg: #12100e; --sand: #1c1916; --card: #171411; --ink: #f1ece4; --soft: #a9a196; --rule: #35302a; --hair: #f1ece4;
    --accent: #e3a08f; --accent-tint: #2c1d1a; --ok: #79c497; --bad: #ef8f80; --bad-tint: #2b1c1a;
    --coi-green: #79c497; --coi-amber: #e0b65a; --coi-red: #ef8f80;
  }
}
.gs *, .gs *::before, .gs *::after { box-sizing: border-box; }
.gs main { flex: 1; counter-reset: sec; }
.gs h1, .gs h2 { font-family: var(--display); font-weight: 400; line-height: 1.04; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
.gs h1 { font-size: clamp(2.8rem, 7.4vw, 5.6rem); letter-spacing: -.025em; line-height: .98; }
.gs h1 em { font-style: italic; color: var(--ink); }
.gs h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); }
.gs h3 { font: 600 .74rem/1.4 var(--sans); letter-spacing: .2em; text-transform: uppercase; margin: 0 0 14px; }
.gs p { margin: 0; }
.gs a { color: var(--ink); text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: var(--accent); }
.gs a:hover { color: var(--accent); }
.gs img { display: block; max-width: 100%; height: auto; }
.gs figure { margin: 0; }
.gs :focus-visible { outline: 1px solid var(--ink); outline-offset: 4px; }
.gs-wrap { max-width: 76rem; margin-inline: auto; padding-inline: max(20px, env(safe-area-inset-left, 0px)); }
.gs-text { max-width: 46rem; }
.gs-muted { color: var(--soft); font-size: .9rem; }
.gs-lede { color: var(--soft); font-size: 1.18rem; line-height: 1.6; max-width: 58ch; font-style: italic; }
.gs h2 + .gs-lede { margin-top: 18px; }

/* Masthead: centred wordmark between two rules, like a magazine cover */
.gs-top { background: var(--bg); border-bottom: 1px solid var(--hair); }
.gs-top .gs-wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding-block: 18px 16px; }
.gs-top .gs-wrap::before { content: ""; }
.gs-name { grid-column: 2; font-family: var(--display); font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 400; letter-spacing: .14em;
  text-transform: uppercase; color: var(--ink) !important; text-decoration: none; white-space: nowrap; }
.gs-lang { justify-self: end; display: flex; gap: 14px; font: 600 .7rem var(--sans); letter-spacing: .2em; }
.gs-lang a { text-decoration: none; color: var(--soft); padding-bottom: 2px; border-bottom: 1px solid transparent; }
.gs-lang a[aria-current] { color: var(--ink); border-bottom-color: var(--ink); }
.gs-footer { border-top: 1px solid var(--hair); margin-top: 72px; padding-block: 28px; font-size: .85rem; color: var(--soft); }
.gs-footer .gs-wrap { display: grid; gap: 4px; }

/* Photos: square corners, no shadow */
.gs-photo img, .gs-hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.gs-photo { aspect-ratio: 3 / 2; }
.gs-photo.gs-tall { aspect-ratio: auto; min-height: 20rem; }
.gs-photo.gs-wide { aspect-ratio: 21 / 9; }

/* Hero: cover story */
.gs-hero { padding-block: clamp(32px, 6vw, 72px) 0; }
.gs-hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: end; }
.gs-hero-copy { display: grid; gap: 26px; }
.gs-hero .gs-lede { font-style: normal; color: var(--ink); }
.gs-hero .gs-lede::first-letter { font-family: var(--display); float: left; font-size: 4.1em; line-height: .82; padding: 6px 10px 0 0; }
.gs-hero-photo { display: grid; gap: 10px; }
.gs-hero-photo img { aspect-ratio: 4 / 5; }
.gs-hero-photo figcaption { font-size: .82rem; font-style: italic; color: var(--soft); padding-top: 8px; border-top: 1px solid var(--rule); }
.gs-eyebrow { display: flex; align-items: center; gap: 14px; font: 600 .72rem var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--accent); }
.gs-eyebrow::after { content: ""; flex: 0 0 3rem; height: 1px; background: currentColor; }

/* Contents: a tracked line of capitals between rules */
.gs-toc { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 0; margin-top: clamp(36px, 6vw, 64px);
  padding-block: 14px; border-block: 1px solid var(--hair); counter-reset: toc; }
.gs-toc a { counter-increment: toc; font: 600 .68rem var(--sans); letter-spacing: .18em; text-transform: uppercase; text-decoration: none;
  color: var(--ink); padding: 4px 11px; }
.gs-toc a::before { content: counter(toc, decimal-leading-zero) " "; font: italic 400 .8rem var(--display); letter-spacing: 0; color: var(--accent); margin-right: 4px; }
.gs-toc a:hover { color: var(--accent); }

/* Sections: numbered like magazine features */
.gs-body { display: grid; gap: clamp(64px, 10vw, 120px); padding-top: clamp(48px, 7vw, 88px); }
.gs-body > section { scroll-margin-top: 16px; }
.gs-body > section[id] { counter-increment: sec; }
.gs-body > section[id] h2::before { content: counter(sec, decimal-leading-zero); display: block; margin-bottom: 14px;
  font: italic 400 1.05rem var(--display); color: var(--accent); letter-spacing: .04em; }
.gs-section { display: grid; gap: 24px; }
.gs-card { background: transparent; border-top: 1px solid var(--hair); padding: 22px 0 0; min-width: 0; }
.gs .gs-card > * + * { margin-top: 12px; }
.gs-split { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(24px, 5vw, 64px); align-items: stretch; }
.gs-split-wide { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
.gs-split-docs { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
.gs-short { border-top: 0; padding-top: 0; }
.gs-short h2 { margin-bottom: 26px; }
.gs-steps { margin: 0; padding: 0; list-style: none; counter-reset: step; display: grid; }
.gs-steps li { counter-increment: step; display: grid; grid-template-columns: 3rem minmax(0, 1fr); gap: 10px; align-items: baseline;
  padding: 12px 0; border-top: 1px solid var(--rule); }
.gs-steps li::before { content: counter(step); font: italic 400 2rem/1 var(--display); color: var(--accent); }

.gs-breeds { display: grid; gap: 28px; padding-block: clamp(36px, 6vw, 64px); border-block: 1px solid var(--hair); }
.gs-breeds-text { display: grid; gap: 12px; max-width: 46rem; text-align: center; margin-inline: auto; }
.gs-breeds-photos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(8px, 2vw, 20px); }
.gs-breeds-photos .gs-photo { aspect-ratio: 3 / 4; }
.gs-breeds-photos .gs-photo:nth-child(2) { transform: translateY(clamp(12px, 3vw, 36px)); }

.gs-pair { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 18rem), 1fr)); gap: 16px clamp(24px, 4vw, 48px); }
.gs-list { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.gs-list li { position: relative; padding-left: 1.6rem; }
.gs-list li::before { position: absolute; left: 0; top: 0; font: 600 .9rem/1.9 var(--sans); }
.gs-list.good li::before { content: "+"; color: var(--ok); }
.gs-list.bad li::before { content: "–"; color: var(--bad); }

.gs-qa { margin: 0; padding: 0; list-style: none; display: grid; counter-reset: q; }
.gs-qa li { counter-increment: q; display: grid; grid-template-columns: 2.8rem minmax(0, 1fr); column-gap: 10px; row-gap: 4px;
  padding: 18px 0; border-top: 1px solid var(--rule); }
.gs-qa li::before { content: counter(q, decimal-leading-zero); grid-row: span 2; font: italic 400 1.5rem/1.1 var(--display); color: var(--accent); }
.gs-qa .q { font-family: var(--display); font-size: 1.32rem; line-height: 1.25; }
.gs-qa .a { color: var(--soft); font-size: .95rem; }
.gs-qa .a span { font: 600 .66rem var(--sans); letter-spacing: .16em; text-transform: uppercase; color: var(--ok); margin-right: 4px; }
.gs-photo-card { position: sticky; top: 16px; border-top: 0; padding: 0; }
.gs-photo-card h3 { margin-top: 20px; }

.gs-docs { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 28px clamp(20px, 3vw, 36px); align-content: start; }
.gs-docs dt { font-family: var(--display); font-size: 1.45rem; line-height: 1.15; }
.gs-docs dd { margin: 8px 0 0; color: var(--soft); font-size: .94rem; }

.gs-flags { margin: 0; padding: 0; list-style: none; display: grid; counter-reset: flag; }
.gs-flags li { counter-increment: flag; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 10px; padding: 14px 0;
  border-top: 1px solid var(--rule); }
.gs-flags li:first-child { border-top-color: var(--hair); }
.gs-flags li::before { content: counter(flag, decimal-leading-zero); font: italic 400 1.3rem/1.2 var(--display); color: var(--bad); }

.gs-coi { margin: 0; padding: 0; list-style: none; display: grid; }
.gs-coi li { display: grid; grid-template-columns: minmax(9rem, max-content) minmax(0, 1fr); gap: 4px 20px; align-items: baseline;
  padding: 16px 0 16px 18px; border-top: 1px solid var(--rule); border-left: 3px solid; }
.gs-coi li.green { border-left-color: var(--coi-green); }
.gs-coi li.amber { border-left-color: var(--coi-amber); }
.gs-coi li.red { border-left-color: var(--coi-red); }
.gs-coi strong { font: 400 1.35rem var(--display); font-variant-numeric: lining-nums tabular-nums; }

.gs-timeline { margin: 18px 0; padding: 0; list-style: none; }
.gs-timeline li { display: grid; grid-template-columns: 8rem minmax(0, 1fr); gap: 18px; padding: 16px 0; border-top: 1px solid var(--rule); }
.gs-timeline time { font: italic 400 1.3rem/1.3 var(--display); color: var(--accent); font-variant-numeric: lining-nums; }

.gs-table { overflow-x: auto; border-block: 1px solid var(--hair); }
.gs-table table { width: 100%; border-collapse: collapse; font-size: .94rem; }
.gs-table th, .gs-table td { text-align: left; padding: 14px 16px 14px 0; border-bottom: 1px solid var(--rule); vertical-align: top; }
.gs-table thead th { font: 600 .66rem var(--sans); letter-spacing: .18em; text-transform: uppercase; color: var(--soft); }
.gs-table tbody th { font-family: var(--display); font-weight: 400; font-size: 1.2rem; }
.gs-table tbody tr:last-child > * { border-bottom: 0; }

/* Full-bleed photo with a pull quote */
.gs-band { position: relative; margin-top: clamp(64px, 10vw, 120px); min-height: clamp(22rem, 52vw, 40rem); display: grid; overflow: hidden; }
.gs-band > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 25%; }
.gs-band-text { position: relative; align-self: end; padding-block: clamp(32px, 6vw, 64px);
  background: linear-gradient(180deg, transparent, rgba(12, 10, 8, .5) 35%, rgba(12, 10, 8, .8)); color: #fff; }
.gs-band-text .gs-wrap { display: grid; gap: 14px; }
.gs-quote { font: italic 400 clamp(2rem, 5.2vw, 3.8rem)/1.06 var(--display); max-width: 22ch; text-wrap: balance; letter-spacing: -.01em; }
.gs-quote::before { content: "“"; }
.gs-quote::after { content: "”"; }
.gs-band-text p:last-child { max-width: 52ch; opacity: .88; font-size: 1rem; }

/* Origin: KynoPass named as a tool */
.gs-search { display: grid; gap: 10px; }
.gs-search label { font-size: .94rem; }
.gs-search div { display: flex; gap: 0; border-bottom: 1px solid var(--hair); }
.gs-search input[type=search] { flex: 1; min-width: 0; font: italic 1.15rem var(--serif); color: var(--ink); background: transparent;
  border: 0; border-radius: 0; padding: 12px 0; -webkit-appearance: none; appearance: none; }
.gs-search input[type=search]:focus { outline: none; }
.gs-search div:focus-within { border-bottom-width: 2px; }
.gs-search input[type=submit] { font: 600 .7rem var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--bg); background: var(--ink);
  border: 0; border-radius: 0; padding: 0 22px; cursor: pointer; -webkit-appearance: none; appearance: none; margin-bottom: 6px; }
.gs-search input[type=submit]:hover { background: var(--accent); }
.gs .gs-points { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: .96rem; }
.gs .gs-points strong { font-family: var(--display); font-weight: 400; font-size: 1.2rem; display: block; }

.gs-sources { display: grid; gap: 12px; font-size: .88rem; border-top: 1px solid var(--hair); padding-top: 24px; }
.gs-body > .gs-sources h2 { font: 600 .74rem var(--sans); letter-spacing: .22em; text-transform: uppercase; }
.gs-sources ul { margin: 0; padding-left: 1.2rem; display: grid; gap: 4px; }

@media (max-width: 860px) {
  .gs-hero-grid, .gs-split, .gs-split-wide, .gs-split-docs { grid-template-columns: minmax(0, 1fr); }
  .gs-hero-photo img { aspect-ratio: 4 / 3; }
  .gs-photo.gs-tall { aspect-ratio: 3 / 2; min-height: 0; }
  .gs-photo-card { position: static; }
  .gs-photo.gs-wide { aspect-ratio: 3 / 2; }
  .gs-toc { justify-content: flex-start; }
}
@media (max-width: 560px) {
  .gs-top .gs-wrap { grid-template-columns: 1fr auto; }
  .gs-top .gs-wrap::before { display: none; }
  .gs-name { grid-column: 1; letter-spacing: .08em; }
  .gs-toc a { padding: 4px 10px 4px 0; }
  .gs-eyebrow::after { display: none; }
  .gs-breeds-photos .gs-photo { aspect-ratio: 3 / 4; }
  .gs-timeline li, .gs-coi li { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  /* Country table as stacked entries: no sideways scrolling on a phone */
  .gs-table { border: 0; overflow: visible; }
  .gs-table table, .gs-table tbody, .gs-table tr, .gs-table td, .gs-table th { display: block; }
  .gs-table thead { display: none; }
  .gs-table tr { border-top: 1px solid var(--rule); padding: 12px 0; }
  .gs-table tbody th, .gs-table tbody td { border: 0; padding: 2px 0; }
  .gs-table td::before { content: attr(data-label) ": "; color: var(--soft); }
}
@media print {
  .gs-toc, .gs-origin, .gs-lang, .gs-band, .gs-breeds, .gs-photo, .gs-hero-photo { display: none; }
  .gs-hero-grid, .gs-split { display: block; }
  .gs-card, .gs-qa li { break-inside: avoid; }
}

/* Kennel organisations and breed clubs */
.gs-feds { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 24px clamp(20px, 3vw, 36px); }
.gs-feds li { display: grid; gap: 6px; align-content: start; }
.gs .gs-feds li > * + * { margin-top: 0; }
.gs-feds a { font-family: var(--display); font-size: 1.25rem; line-height: 1.2; text-decoration: none; }
.gs-feds a:hover { text-decoration: underline; }
.gs-clubs ul { margin: 0; padding: 0; list-style: none; columns: 2 20rem; column-gap: 40px; }
.gs-clubs li { break-inside: avoid; padding: 9px 0; border-bottom: 1px solid var(--rule); font-size: .96rem; }
.gs-clubs a { text-decoration: none; }
.gs-clubs a:hover { text-decoration: underline; }
.gs-tag { display: inline-block; margin-left: 8px; font: 600 .6rem var(--sans); letter-spacing: .16em; text-transform: uppercase;
  vertical-align: 2px; color: var(--soft); }
