:root {
  color-scheme: light;
  --ink: #233b35;
  --green: #274d44;
  --accent: #b67243;
  --cream: #f7f5ed;
  --paper: #fffef9;
  --line: #dcded3;
  --muted: #5d6e66;
  --soft: #eaf0e5;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: 28px;
}
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    "Microsoft YaHei",
    sans-serif;
  line-height: 1.75;
}
a {
  color: var(--green);
  text-underline-offset: 4px;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid var(--green);
  border-radius: 8px;
  padding: 9px 15px;
  background: var(--green);
  color: white;
  font-weight: 600;
  line-height: 1.5;
}
button:hover {
  background: #1a3b32;
}
button:disabled {
  opacity: 0.55;
  cursor: default;
}
.quiet {
  background: transparent;
  color: var(--green);
}
.quiet:hover {
  background: var(--soft);
}
:focus-visible {
  outline: 3px solid #d18b45;
  outline-offset: 3px;
}
.skip-link {
  position: absolute;
  top: -70px;
  left: 16px;
  z-index: 5;
  background: white;
  padding: 12px;
}
.skip-link:focus {
  top: 8px;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: rgba(255, 254, 249, 0.88);
}
.header-inner {
  max-width: 1160px;
  padding: 18px 30px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 2px;
  text-decoration: none;
}
.brand span {
  color: var(--accent);
  font-size: 17px;
}
.site-header nav {
  display: flex;
  gap: 26px;
  font-size: 14px;
}
.site-header nav a {
  text-decoration: none;
}
.container {
  max-width: 1160px;
  margin: auto;
  padding: 0 30px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(200px, 1fr);
  gap: 52px;
  align-items: center;
  padding: 64px 0 52px;
}
.eyebrow {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 2px;
  color: var(--accent);
  margin: 0 0 12px;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(28px, 3.1vw, 42px);
  line-height: 1.36;
  letter-spacing: -0.8px;
  margin-bottom: 22px;
  max-width: 760px;
}
h2 {
  font-size: 25px;
  line-height: 1.5;
  margin-bottom: 16px;
}
h3 {
  font-size: 24px;
  margin: 12px 0 1px;
  line-height: 1.4;
}
.hero-intro {
  font-size: 16px;
  color: var(--muted);
  max-width: 720px;
}
.primary-link {
  display: inline-flex;
  gap: 24px;
  align-items: center;
  background: var(--green);
  color: white;
  border-radius: 8px;
  padding: 11px 19px;
  text-decoration: none;
  font-weight: 650;
}
.hero-art {
  max-width: 300px;
  justify-self: center;
}
.hero-art svg {
  width: 100%;
  display: block;
}
.hero-art p {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 5px;
  margin-top: 2px;
}
.page-section {
  margin: 0 0 45px;
  scroll-margin-top: 24px;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-heading > span {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
}
.breed-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 19px;
}
.breed-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
  box-shadow: 0 3px 0 rgba(35, 59, 53, 0.025);
}
[hidden] {
  display: none !important;
}
.card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.breed-number {
  font-size: 23px;
  font-family: Georgia, serif;
  color: #9ca78f;
}
.coat-chip {
  font-size: 12px;
  padding: 3px 9px;
  border: 1px solid #d9dfcf;
  border-radius: 20px;
  background: #f2f5ec;
}
.english-name {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 18px;
}
.breed-summary {
  font-size: 14px;
  min-height: 94px;
  color: var(--muted);
}
.breed-facts {
  font-size: 13px;
  margin: 0 0 18px;
}
.breed-facts > div {
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 9px;
  border-top: 1px solid #e8e9df;
  padding: 9px 0;
}
.breed-facts dt {
  color: var(--muted);
}
.breed-facts dd {
  margin: 0;
}
.observation {
  font-size: 13px;
  background: var(--soft);
  border-radius: 8px;
  padding: 12px;
  margin-top: auto;
}
.observation strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
}
.card-actions {
  margin: 3px 0 10px;
}
.card-actions button {
  width: 100%;
  font-size: 13px;
}
.compare-toggle[aria-pressed="true"] {
  background: transparent;
  color: var(--green);
  border-color: #b4c3b6;
}
.card-source {
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}
.small-note {
  font-size: 12px;
  color: var(--muted);
  margin: 15px 0 0;
}
.criteria-section {
  background: var(--soft);
  border-radius: 15px;
  padding: 27px 30px;
}
.question-list {
  margin: 8px 0 22px;
  padding-left: 23px;
  font-size: 14px;
  display: grid;
  gap: 5px;
}
.filters {
  display: flex;
  gap: 14px;
  align-items: end;
}
.filters label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  font-weight: 650;
  flex: 1;
}
.filters label:first-child {
  flex: 1.7;
}
input[type="search"],
select,
textarea {
  min-width: 0;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #aebaac;
  border-radius: 7px;
  color: var(--ink);
  background: var(--paper);
}
.filters button {
  white-space: nowrap;
}
.comparison-section {
  padding: 10px 0 0;
}
.comparison-section > p {
  font-size: 13px;
  color: var(--muted);
}
.section-heading button {
  background: transparent;
  color: var(--green);
  font-size: 12px;
  white-space: nowrap;
}
.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--paper);
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 14px;
  min-width: 620px;
}
thead {
  background: var(--green);
  color: white;
}
th,
td {
  text-align: left;
  vertical-align: top;
  padding: 15px 18px;
  border-bottom: 1px solid var(--line);
}
tbody th {
  width: 110px;
  white-space: nowrap;
  color: var(--muted);
  background: #f0f3e9;
  font-size: 12px;
}
tbody tr:last-child > * {
  border-bottom: 0;
}
.preparation {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 44px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 30px;
}
.preparation p {
  font-size: 13px;
  color: var(--muted);
}
.checklist {
  display: grid;
  gap: 11px;
  margin-top: 20px;
}
.check-item {
  display: flex;
  gap: 9px;
  font-size: 14px;
  align-items: start;
  cursor: pointer;
}
.check-item input {
  accent-color: var(--green);
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  margin-top: 5px;
}
.notes-panel > label {
  display: block;
  font-size: 14px;
  font-weight: 700;
  margin: 2px 0 12px;
}
textarea {
  resize: vertical;
  min-height: 150px;
  font-size: 14px;
}
.note-actions {
  display: flex;
  gap: 10px;
  margin-top: 12px;
}
.note-actions button {
  font-size: 12px;
}
.source-section {
  border-top: 1px solid var(--line);
  padding: 28px 0 40px;
}
.source-section h2 {
  font-size: 17px;
  margin-bottom: 10px;
}
.source-section p {
  font-size: 12px;
  color: var(--muted);
  max-width: 900px;
  margin-bottom: 8px;
}
.site-footer {
  max-width: 1100px;
  margin: auto;
  border-top: 1px solid var(--line);
  padding: 20px 0 30px;
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
}
.empty-state {
  padding: 25px;
  background: var(--paper);
  border: 1px dashed var(--line);
  border-radius: 12px;
}
#ready-status {
  font-weight: 700;
  color: var(--green);
}
@media (max-width: 900px) {
  .hero {
    gap: 20px;
  }
  .breed-grid {
    gap: 12px;
  }
  .breed-card {
    padding: 18px;
  }
  .breed-summary {
    min-height: 120px;
  }
  .preparation {
    gap: 24px;
  }
  .site-footer {
    margin: 0 30px;
  }
}
@media (max-width: 680px) {
  .header-inner {
    padding: 16px 20px;
    flex-wrap: wrap;
    gap: 12px;
  }
  .brand {
    font-size: 18px;
  }
  .site-header nav {
    gap: 20px;
    font-size: 12px;
  }
  .container {
    padding: 0 20px;
  }
  .hero {
    grid-template-columns: 1fr;
    padding: 34px 0 30px;
    gap: 0;
  }
  .hero-art {
    display: none;
  }
  h1 {
    font-size: 30px;
    line-height: 1.45;
    letter-spacing: -0.5px;
  }
  .hero-intro {
    font-size: 15px;
  }
  h2 {
    font-size: 21px;
  }
  .breed-grid {
    grid-template-columns: 1fr;
  }
  .breed-card {
    padding: 23px;
  }
  .breed-summary {
    min-height: 0;
  }
  .breed-facts {
    font-size: 14px;
  }
  .breed-facts > div {
    grid-template-columns: 45px 1fr;
  }
  .english-name {
    margin-bottom: 12px;
  }
  .section-heading {
    align-items: start;
  }
  .section-heading > span {
    padding-top: 24px;
  }
  .criteria-section {
    padding: 23px 20px;
  }
  .filters {
    flex-wrap: wrap;
  }
  .filters label:first-child {
    flex-basis: 100%;
  }
  .filters label {
    flex: 1;
  }
  .filters button {
    align-self: end;
  }
  .preparation {
    grid-template-columns: 1fr;
    padding: 23px 20px;
    gap: 24px;
  }
  .page-section {
    margin-bottom: 30px;
  }
  .table-scroll {
    margin-right: -5px;
  }
  table {
    font-size: 13px;
    min-width: 610px;
  }
  .site-footer {
    margin: 0 20px;
    gap: 15px;
    align-items: start;
  }
  .site-footer span {
    max-width: 70%;
  }
  .card-source {
    font-size: 12px;
  }
  .source-section {
    padding-top: 24px;
  }
  .note-actions {
    flex-wrap: wrap;
  }
  .section-heading button {
    white-space: normal;
    max-width: 110px;
  }
  .check-item {
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
@media print {
  .filters,
  .card-actions,
  .note-actions,
  .site-header nav,
  .primary-link,
  .hero-art {
    display: none;
  }
  .container {
    max-width: none;
    padding: 0;
  }
  .breed-grid {
    display: block;
  }
  .breed-card {
    break-inside: avoid;
    margin-bottom: 15px;
  }
  .page-section {
    break-inside: avoid;
  }
  .hero {
    display: block;
    padding: 15px 0;
  }
  .preparation {
    display: block;
  }
  .notes-panel {
    margin-top: 20px;
  }
}
