
* { box-sizing: border-box; }

:root {
  --orange: #e97824;
  --ink: #222;
  --muted: #666;
  --paper: #fff;
  --soft: #f5f5f3;
}

html, body { margin: 0; padding: 0; }

body {
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--soft);
}

.page {
  width: min(1100px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 56px;
}

.page-header { margin-bottom: 28px; }

.eyebrow {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--orange);
}

h1 {
  margin: 0 0 10px;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.05;
}

.page-header > p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.asm-source {
  position: fixed !important;
  left: -100000px !important;
  top: -100000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.dog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.dog-card {
  overflow: hidden;
  border-radius: 14px;
  background: var(--paper);
  box-shadow: 0 3px 16px rgba(0,0,0,.08);
}

.card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  background: #ddd;
}

.card-body { padding: 18px; }

.card-body h2 {
  margin: 0 0 8px;
  font-size: 27px;
}

.card-body p {
  margin: 0 0 16px;
  color: var(--muted);
  line-height: 1.45;
}

.view-button,
.apply-button {
  display: inline-block;
  border-radius: 8px;
  padding: 11px 15px;
  background: var(--orange);
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.back-link {
  display: inline-block;
  margin-bottom: 22px;
  color: var(--ink);
  text-decoration: none;
}

.profile {
  overflow: hidden;
  border-radius: 14px;
  padding: 24px;
  background: var(--paper);
  box-shadow: 0 3px 16px rgba(0,0,0,.08);
}

.hero-image {
  display: block;
  width: 100%;
  max-height: 650px;
  object-fit: contain;
  border-radius: 10px;
  background: #eee;
}

.gallery {
  margin-top: 16px;
}

.gallery-strip {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.gallery-thumb {
  flex: 0 0 110px;
  width: 110px;
  height: 82px;
  object-fit: cover;
  border: 2px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  background: #ddd;
}

.gallery-thumb.is-active {
  border-color: var(--orange);
}

.facts,
.compat-grid {
  display: grid;
  gap: 10px;
}

.facts {
  grid-template-columns: repeat(4, 1fr);
  margin: 22px 0 30px;
}

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

.facts div,
.compat-grid div {
  border-radius: 9px;
  padding: 13px;
  background: var(--soft);
}

.facts div { text-align: center; }

.facts strong,
.facts span,
.compat-grid strong,
.compat-grid span {
  display: block;
}

.facts strong,
.compat-grid strong {
  margin-bottom: 5px;
  font-size: 11px;
  letter-spacing: .6px;
  text-transform: uppercase;
}

.compatibility,
.bio { margin-top: 30px; }

.compatibility h2,
.bio h2 { margin: 0 0 14px; }

.bio { line-height: 1.65; }

.apply-wrap {
  margin-top: 30px;
  padding-top: 22px;
  border-top: 1px solid #ddd;
}

.apply-wrap p {
  margin: 0 0 14px;
  color: var(--muted);
}

.status {
  padding: 18px;
  border-radius: 10px;
  background: white;
}

@media (max-width: 820px) {
  .dog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compat-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .page { width: min(100% - 22px, 1100px); padding-top: 22px; }
  .dog-grid { grid-template-columns: 1fr; }
  .facts, .compat-grid { grid-template-columns: 1fr 1fr; }
  .profile { padding: 14px; }
  .gallery-thumb {
    flex-basis: 92px;
    width: 92px;
    height: 70px;
  }
}
