/* ThePetAdvisor — "Weekend Atlas" design contract, locked September 2026.
   Royal purple / gold / midnight-blue ombré. Mobile-first. No circle motifs
   (max border-radius 8px anywhere; never border-radius:50%). No emojis. */

:root {
  --midnight: #101B3C;
  --midnight-2: #1A2650;
  --purple: #5E2B97;
  --purple-deep: #3E1C66;
  --gold: #C9A227;
  --gold-light: #E8C766;
  --paper: #FAF8F1;
  --card: #FFFFFF;
  --ink: #1B2340;
  --ink-soft: #4A5478;
  --line: #E4DFD2;
  --ok: #2E7D4F;
  --warn: #B07A1E;
  --hero-ombre: linear-gradient(135deg, #101B3C 0%, #2A1B5E 45%, #5E2B97 100%);
  --divider-ombre: linear-gradient(90deg, #5E2B97, #C9A227);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-text-size-adjust: 100%;
}

h1, h2, h3, .fraunces {
  font-family: "Fraunces", Georgia, "Times New Roman", serif;
  line-height: 1.2;
}

a { color: var(--purple); }
a:hover { color: var(--purple-deep); }

/* ---------- Header ---------- */
.site-header {
  background: linear-gradient(135deg, var(--midnight) 0%, var(--midnight-2) 60%, var(--purple-deep) 100%);
  position: sticky;
  top: 0;
  z-index: 100;
}
.site-header-inner {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0.75rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--paper);
}
.brand img { width: 34px; height: 34px; display: block; }
.brand .wordmark {
  font-family: "Fraunces", Georgia, serif;
  font-size: 1.25rem;
  color: var(--paper);
}
.site-nav { display: flex; gap: 1.25rem; }
.site-nav a {
  color: var(--gold-light);
  text-decoration: none;
  font-size: 0.95rem;
}
.site-nav a:hover { color: #fff; }

/* ---------- Hero ---------- */
.hero {
  background: var(--hero-ombre);
  color: var(--paper);
  padding: 3rem 1.25rem 2.75rem;
}
.hero-inner { max-width: 1080px; margin: 0 auto; }
.kicker {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.8rem;
  color: var(--gold-light);
  margin: 0 0 0.75rem;
}
.hero h1 {
  color: var(--paper);
  font-size: 2.25rem;
  margin: 0 0 0.75rem;
  max-width: 22ch;
}
.hero .subhead {
  color: #EDE6F5;
  font-size: 1.05rem;
  max-width: 62ch;
  margin: 0 0 1.5rem;
}
.btn-row { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.btn {
  display: inline-block;
  background: var(--gold);
  color: var(--midnight);
  font-weight: 600;
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
}
.btn:hover { background: var(--gold-light); color: var(--midnight); }
.btn-ghost {
  display: inline-block;
  border: 1px solid var(--gold-light);
  color: var(--paper);
  text-decoration: none;
  padding: 0.65rem 1.25rem;
  border-radius: 4px;
}
.btn-ghost:hover { background: rgba(232, 199, 102, 0.12); color: #fff; }

/* ---------- Tabs ---------- */
.tabs {
  position: sticky;
  top: 57px;
  z-index: 90;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.tabs-inner {
  max-width: 1080px;
  margin: 0 auto;
  display: flex;
  padding: 0 1.25rem;
}
.tab {
  display: inline-flex;
  align-items: baseline;
  gap: 0.4rem;
  padding: 0.85rem 0.9rem;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.9rem;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.tab:hover { color: var(--purple); }
.tab .n {
  font-family: "Fraunces", Georgia, serif;
  color: var(--gold);
  font-size: 0.85rem;
}

/* ---------- Sections ---------- */
main { display: block; }
.section { padding: 2.5rem 1.25rem; }
.section:nth-of-type(odd) { background: var(--paper); }
.section:nth-of-type(even) { background: #F3EFE3; }
.section-inner { max-width: 1080px; margin: 0 auto; }
.section-head {
  display: flex;
  align-items: baseline;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}
.section-head .num {
  font-family: "Fraunces", Georgia, serif;
  color: var(--gold);
  font-size: 1.1rem;
}
.section-head h2 { margin: 0; font-size: 1.75rem; }
.section-head .rule {
  flex: 1;
  height: 4px;
  background: var(--divider-ombre);
  align-self: center;
  min-width: 2rem;
}
.section h3 { font-size: 1.25rem; margin: 2rem 0 0.75rem; }
.section h3:first-of-type { margin-top: 0; }
.section p.lead { font-size: 1.05rem; color: var(--ink-soft); max-width: 70ch; }

/* ---------- Fact grid ---------- */
.fact-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.fact {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1rem 1.25rem;
}
.fact .k {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin: 0 0 0.35rem;
}
.fact .v { font-size: 1rem; margin: 0; }
.fact .v strong { color: var(--ink); }

/* ---------- Chips & badge rows ---------- */
.chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
  white-space: nowrap;
}
.chip.ok { background: #E3F0E8; color: var(--ok); border: 1px solid #BFDCCB; }
.chip.pending { background: #F8EEDD; color: var(--warn); border: 1px solid #E4CFA1; }
.badge-row { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.75rem 0; }

/* ---------- Show cards ---------- */
.show-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1rem 0;
}
.show-card:hover { border-left-color: var(--gold); }
.show-card .date {
  font-family: "Fraunces", Georgia, serif;
  color: var(--purple);
  font-size: 1.05rem;
  margin: 0 0 0.25rem;
}
.show-card h3 { margin: 0 0 0.5rem; font-size: 1.3rem; }
.show-card p { margin: 0.35rem 0; color: var(--ink-soft); }
.show-card dl { margin: 0.5rem 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0.25rem 1rem; }
.show-card dt { font-weight: 600; font-size: 0.9rem; }
.show-card dd { margin: 0; font-size: 0.9rem; color: var(--ink-soft); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; margin: 1rem 0; -webkit-overflow-scrolling: touch; }
table.data {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
  min-width: 560px;
}
table.data thead th {
  background: var(--midnight);
  color: var(--paper);
  font-family: "Fraunces", Georgia, serif;
  font-weight: 600;
  text-align: left;
  padding: 0.7rem 1rem;
}
table.data tbody td {
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
table.data tbody tr:nth-child(even) { background: rgba(94, 43, 151, 0.045); }
table.data tbody tr:hover { background: rgba(201, 162, 39, 0.10); }

/* ---------- Hotel cards ---------- */
.hotel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.hotel-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.hotel-card h3 { margin: 0 0 0.35rem; font-size: 1.2rem; }
.hotel-card .rate { color: var(--gold); font-weight: 700; margin: 0 0 0.5rem; font-size: 1rem; }
.hotel-card .rate .suffix { color: var(--ink-soft); font-weight: 400; font-size: 0.85rem; }
.hotel-card p { margin: 0.3rem 0; font-size: 0.92rem; color: var(--ink-soft); }
.hotel-card .pet { font-weight: 600; color: var(--ink); }
.hotel-card .phone { margin-top: 0.5rem; }

/* ---------- Callouts ---------- */
.callout {
  border-radius: 8px;
  padding: 1.1rem 1.35rem;
  margin: 1.5rem 0;
  font-size: 0.95rem;
}
.callout.tip { background: #EFE7F8; border-left: 4px solid var(--purple); }
.callout.warn { background: #FBF3E2; border-left: 4px solid var(--warn); }
.callout h4 { margin: 0 0 0.5rem; font-size: 1rem; }
.callout ul { margin: 0.4rem 0 0.2rem; padding-left: 1.25rem; }
.callout li { margin-bottom: 0.3rem; }
.callout p { margin: 0.4rem 0; }

/* ---------- Sources ---------- */
.source-list { font-size: 0.9rem; color: var(--ink-soft); list-style: none; padding: 0; }
.source-list li { margin-bottom: 0.6rem; padding-left: 0; }
.src-tag {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.7rem;
  background: var(--midnight);
  color: var(--gold-light);
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  margin-right: 0.5rem;
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--midnight);
  color: #C9CFE6;
  padding: 2.5rem 1.25rem 1.25rem;
}
.footer-inner { max-width: 1080px; margin: 0 auto; }
.footer-cols {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}
.footer-cols h4 { color: var(--gold-light); margin: 0 0 0.6rem; font-size: 1rem; }
.footer-cols p { font-size: 0.9rem; margin: 0; max-width: 42ch; }
.footer-cols ul { list-style: none; padding: 0; margin: 0; }
.footer-cols li { margin-bottom: 0.35rem; }
.footer-cols a { color: #C9CFE6; text-decoration: none; font-size: 0.9rem; }
.footer-cols a:hover { color: var(--gold-light); }
.footer-bottom {
  border-top: 1px solid rgba(232, 199, 102, 0.25);
  padding-top: 1rem;
  font-size: 0.82rem;
  color: #9AA1BE;
}
.footer-bottom p { margin: 0.25rem 0; }

/* ---------- Lists ---------- */
ul.plain, ol.plain { padding-left: 1.25rem; }
ul.plain li, ol.plain li { margin-bottom: 0.4rem; }
dl.kv { display: grid; grid-template-columns: auto 1fr; gap: 0.3rem 1rem; margin: 1rem 0; }
dl.kv dt { font-weight: 600; }
dl.kv dd { margin: 0; color: var(--ink-soft); }

.divider-bar { height: 4px; background: var(--divider-ombre); }

/* ---------- Breed finder ---------- */
.finder {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
  margin: 1.5rem 0;
}
.finder label { display: block; font-weight: 600; margin-bottom: 0.5rem; }
.finder .finder-row { display: flex; gap: 0.6rem; flex-wrap: wrap; }
.finder input[type="search"] {
  flex: 1 1 220px;
  font-size: 1rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--ink);
}
.finder input[type="search"]:focus { outline: 2px solid var(--purple); outline-offset: 1px; }
.finder .legend { font-size: 0.88rem; color: var(--ink-soft); margin: 0.9rem 0 0; }
.finder .legend strong { color: var(--ink); }
.finder-results { margin-top: 1rem; }
.finder-results .count { font-weight: 600; margin-bottom: 0.75rem; }
.finder-results .none { color: var(--ink-soft); }
.finder-results .note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 0.75rem; }

/* ---------- Wide screens ---------- */
@media (min-width: 640px) {
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
  .hotel-grid { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 3rem; }
  .footer-cols { grid-template-columns: 1.4fr 1fr 1fr; }
}
@media (min-width: 900px) {
  .fact-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- Supplemental: home / shows / about pages ---------- */

/* Show cards used as links */
a.show-card { display: block; text-decoration: none; color: inherit; }
a.show-card:hover { border-left-color: var(--gold); }
.show-card .facts-line { font-size: 0.92rem; color: var(--ink-soft); margin: 0.5rem 0 0.9rem; }
.show-card .facts-line strong { color: var(--ink); }
.show-card .cta { font-weight: 700; color: var(--purple); }
a.show-card:hover .cta { color: var(--gold); }
.show-card .region {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0 0 0.35rem;
}

/* Numbered how-it-works steps */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.step {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.3rem 1.25rem;
}
.step .num {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 700;
  font-size: 2rem;
  color: var(--gold);
  line-height: 1;
  display: block;
  margin-bottom: 0.5rem;
}
.step h3 { margin: 0 0 0.5rem; font-size: 1.15rem; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.97rem; }

/* Interior page titles */
.page-title {
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
  margin: 0 0 0.75rem;
  line-height: 1.2;
}
.page-lede {
  font-size: 1.05rem;
  color: var(--ink-soft);
  max-width: 70ch;
  margin: 0 0 1.5rem;
}

/* Prose blocks */
.prose h2 { font-size: 1.5rem; margin: 1.8rem 0 0.6rem; }
.prose p { margin: 0.6rem 0; }
.prose ul { padding-left: 1.25rem; }
.prose li { margin-bottom: 0.4rem; }
.prose a { color: var(--purple); font-weight: 600; }
.prose a:hover { color: var(--gold); }

/* Warning callout alias (amber tint) */
.callout.warning { background: #FBF3E2; border-left: 4px solid var(--warn); }

@media (min-width: 760px) {
  .steps { grid-template-columns: repeat(3, 1fr); }
  .page-title { font-size: 2.4rem; }
}

/* ---------- Homepage Atlas hero (terrier mark) ---------- */
.hero-split .hero-inner {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  align-items: flex-start;
}
.hero-mark {
  order: -1;
  max-width: 240px;
}
.hero-mark img {
  display: block;
  width: 100%;
  height: auto;
}
.hero-copy { max-width: 640px; }
@media (min-width: 760px) {
  .hero-split .hero-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2.5rem;
  }
  .hero-mark { order: 0; max-width: 300px; flex: 0 0 300px; }
}

/* ---------- Edition status cards ---------- */
.edition-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
}
.edition-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-top: 4px solid var(--gold);
  border-radius: 8px;
  padding: 1.25rem 1.5rem;
}
.edition-card.pending-ed { border-top-color: var(--warn); }
.edition-card .ed-kicker {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: 0.72rem;
  color: var(--ink-soft);
  margin: 0 0 0.3rem;
}
.edition-card h3 { margin: 0 0 0.4rem; font-size: 1.25rem; }
.edition-card p { margin: 0.35rem 0; color: var(--ink-soft); font-size: 0.95rem; }
.edition-card .ed-cta { margin-top: 0.75rem; }
@media (min-width: 640px) {
  .edition-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 900px) {
  .edition-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
}

/* ---------- "Click here to enter" rows ---------- */
.enter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
  margin: 1rem 0 0.25rem;
}
.enter-row .btn { font-size: 0.95rem; }
.enter-note { font-size: 0.85rem; color: var(--ink-soft); margin: 0.4rem 0 0; }
.show-card .enter-row { margin-top: 0.9rem; }

/* ---------- Specialty club list ---------- */
.club-list {
  columns: 1;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  font-size: 0.93rem;
}
.club-list li {
  margin-bottom: 0.35rem;
  padding-left: 1.1rem;
  position: relative;
  break-inside: avoid;
}
.club-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 0.5rem;
  height: 0.5rem;
  background: var(--gold);
  border-radius: 2px;
}
@media (min-width: 640px) {
  .club-list { columns: 2; column-gap: 2rem; }
}
