/* Dog Years — shared site stylesheet, linked by every page including index.html (which also
   keeps its own inline <style> block for calculator-specific rules — its :root token values are
   kept in sync with this file by hand, see the matching block there).

   v1.1 redesign (2026-07-16): tokens below match the "Dog Years Design.dc.html" handoff pack in
   design/v1.1/. Values changed only slightly from the pre-redesign palette (this was always a
   warm-cream/terracotta site) — the bigger visual shift is Bricolage Grotesque + Public Sans
   replacing the generic system font stack. Old variable names kept as-is so every existing rule
   in this file and in index.html's inline styles picks up the new values with no other changes.

   Font loading note: using @import here for now so every page linking this stylesheet gets the
   new fonts in one change, rather than editing <head> on 236 individual HTML files. This is a
   known perf trade-off (blocking request) — swap to <link rel="preconnect"> + <link rel="stylesheet">
   in each page's <head> during the Phase 3/4 page-by-page rebuild and remove this @import then. */
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,700;12..96,800&family=Public+Sans:wght@400;500;600;700&display=swap');

:root {
  --bg: #faf6f0;
  --card: #ffffff;
  --ink: #2b241d;
  --muted: #6b6155;
  --muted-2: #7d7060;
  --accent: #b4552d;
  --accent-hover: #8f3f1e;
  --accent-soft: #f2ead9;
  --result-tint: #f8f0e0;
  --line: #ece4d6;
  --input-border: #ddd2bd;
  --input-border-hover: #b8a98e;
  --warn: #a8402a;
  --warn-bg: #fdf3f0;
  --ad-bg: #f5efe3;
  --disabled-bg: #ddd2bd;
  --disabled-text: #a0937f;
  --focus-ring: #f2ead9;
  --compare-b: #4a6741;
  --on-dark-muted: #cfc4b2;
  --font-heading: 'Bricolage Grotesque', 'Segoe UI', Tahoma, sans-serif;
  --font-body: 'Public Sans', 'Segoe UI', Tahoma, Verdana, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}
/* The account dashboard (design pack 3b) is mostly white -- header, the
   .dy-panel, dog cards -- so the site's normal --bg (very pale cream) reads
   as basically all-white next to it, unlike the mockup's more visibly tan
   canvas. Scoped to this page only via a body class, rather than darkening
   --bg globally and affecting the other 235 pages, which haven't had this
   flagged (2026-07-21). */
body.account-page { background: var(--accent-soft); }

h1, h2, h3, h4,
.site-logo, .fact-box .fact-big, .guide-card .g-title,
.dog-card-name, .showcase-card-name, .compare-result-card h3,
.auth-card h2, .dy-modal h2, .cookie-modal h2 {
  font-family: var(--font-heading);
  font-weight: 800;
}

/* ---------- Header / nav ---------- */
.site-header {
  background: var(--card);
  border-bottom: 1px solid var(--line);
}
.site-header-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.site-logo {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}
.site-nav {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.site-nav a:hover,
.site-nav a.active {
  color: var(--accent);
}

/* ---------- Page content container ---------- */
/* Standardised to 1000px site-wide (2026-07-22, per Peter) -- matches the
   homepage's .wrap (index.html has its own copy of this value in its inline
   <style>, kept in sync by hand, see the note at the top of this file).
   Used to be 720px, with two narrower/wider one-off variants (.narrow at
   640px for admin.html/contact.html, .dy-account-wrap at 1000px for
   account.html) -- both removed now that every page shares one width; forms
   and cards that need to stay narrower (e.g. .auth-card, .cookie-modal) cap
   themselves independently with their own max-width, so this change doesn't
   stretch them out. */
.page-wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

.page-wrap h1 {
  font-size: 30px;
  margin: 0 0 8px;
}
.page-wrap .lede {
  color: var(--muted);
  font-size: 16px;
  margin: 0 0 32px;
}
.page-wrap h2 {
  font-size: 22px;
  margin: 36px 0 12px;
}
.page-wrap h3 {
  font-size: 18px;
  margin: 24px 0 8px;
}
.page-wrap p {
  margin: 0 0 16px;
  font-size: 16px;
}
.page-wrap ul, .page-wrap ol {
  margin: 0 0 16px;
  padding-left: 22px;
}
.page-wrap li {
  margin-bottom: 8px;
  font-size: 16px;
}
.page-wrap a:not(.btn-primary):not(.btn-secondary) { color: var(--accent); }
.page-wrap strong { color: var(--ink); }

.page-wrap table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 24px;
  font-size: 14px;
}
.page-wrap th, .page-wrap td {
  border: 1px solid var(--line);
  padding: 8px 10px;
  text-align: left;
}
.page-wrap th {
  background: var(--accent-soft);
  font-weight: 600;
}

/* ---------- Reusable content blocks ---------- */
.fact-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 24px;
}
.fact-box .fact-big {
  font-size: 32px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1.1;
}
.fact-box .fact-label {
  font-size: 13px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-top: 4px;
}

.breed-photo {
  margin: 0 0 24px;
}
.breed-photo img {
  width: 100%;
  height: auto;
  max-height: 380px;
  object-fit: cover;
  border-radius: 12px;
  display: block;
  border: 1px solid var(--line);
}
.breed-photo .photo-credit {
  font-size: 11px;
  color: var(--muted);
  margin-top: 6px;
  text-align: right;
}
.breed-photo .photo-credit a { color: var(--muted); }

.cta-box {
  background: linear-gradient(180deg, var(--accent-soft), #fbfaf7);
  border-radius: 12px;
  padding: 24px 22px;
  text-align: center;
  margin: 32px 0;
}
.cta-box h3 {
  margin: 0 0 8px;
  font-size: 18px;
}
.cta-box p {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 16px;
}
.cta-box a.btn {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.affiliate-box {
  background: #fbfaf7;
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
  margin: 24px 0;
}
.affiliate-box h3 {
  margin: 0 0 6px;
  font-size: 15px;
}
.affiliate-box p {
  margin: 0 0 12px;
  font-size: 13px;
  color: var(--muted);
}
.affiliate-box a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  margin-right: 10px;
}
.ad-tag {
  display: inline-block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 1px 5px;
  margin-left: 6px;
  vertical-align: middle;
}

/* Guides hub: search + size filter bar */
.breed-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin: 0 0 16px;
}
.breed-filter-input {
  flex: 1 1 220px;
  padding: 9px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  color: var(--ink);
  background: var(--card);
}
.breed-filter-input:hover { border-color: var(--input-border-hover, var(--accent)); }
.breed-filter-input:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--focus-ring, var(--accent-soft));
}
.size-filter-btn {
  padding: 7px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--card);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.size-filter-btn:hover { border-color: var(--input-border-hover, var(--accent)); }
.size-filter-btn:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--focus-ring, var(--accent-soft));
}
.size-filter-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.breed-filter-empty {
  display: none;
  color: var(--muted);
  font-style: italic;
}
.breed-filter-empty.show { display: block; }

.breed-show-all-wrap {
  text-align: center;
  margin: -4px 0 32px;
}
.breed-show-all-hint {
  color: var(--muted);
  font-size: 13.5px;
  margin: 0 0 14px;
}

/* Guides hub grid */
.guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 14px;
  margin: 0 0 32px;
}
.guide-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px 18px;
  text-decoration: none;
  color: var(--ink);
  display: block;
}
.guide-card { transition: border-color 0.15s, box-shadow 0.15s; }
.guide-card:hover { border-color: var(--accent); }
.guide-card:focus-visible {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--focus-ring, var(--accent-soft));
}
.guide-card .g-title {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 4px;
}
.guide-card .g-desc {
  font-size: 13px;
  color: var(--muted);
}
.guide-section-title {
  font-size: 20px;
  margin: 32px 0 14px;
}

/* ---------- Footer ---------- */
/* Dark treatment (design 1a, 2026-07-17) — was a plain border-top/light footer;
   the design pack shows a dark bar site-wide, so this rule is global. Content/
   order unchanged, colours only, to keep the affiliate disclosure line intact. */
.site-footer {
  background: var(--ink);
  border-top: none;
  margin-top: 40px;
  padding: 28px 20px 32px;
  text-align: center;
}
.footer-inner {
  max-width: 720px;
  margin: 0 auto;
}
.footer-links {
  display: flex;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.footer-links a {
  color: var(--on-dark-muted, #cfc4b2);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
}
.footer-links a:hover { color: #fff; }
.footer-sources {
  font-size: 12px;
  color: var(--on-dark-muted, #cfc4b2);
  margin-bottom: 6px;
}
.footer-disclosure {
  font-size: 11px;
  color: #a89a84;
}

@media (max-width: 600px) {
  .page-wrap { padding: 28px 16px 48px; }
  .page-wrap h1 { font-size: 26px; }
}

/* ---------- Breed comparison tool (/compare) ---------- */
.compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 20px;
}
.compare-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 18px 20px;
}
.compare-card label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin: 14px 0 6px;
}
.compare-card label:first-child { margin-top: 0; }
.compare-card input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  color: var(--ink);
  background: #fff;
}
.compare-card input:hover { border-color: var(--input-border-hover, var(--accent)); }
.compare-card input:focus {
  outline: none;
  border-color: var(--ink);
  box-shadow: 0 0 0 3px var(--focus-ring, var(--accent-soft));
}
.breed-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 6px 0 0;
}
.breed-hint.detected { color: var(--accent); }
.breed-hint.warn { color: var(--warn); }

.popular-compare {
  margin: 0 0 32px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
}
.popular-compare-label { color: var(--muted); font-weight: 600; }
.popular-compare a { color: var(--accent); text-decoration: none; }
.popular-compare a:hover { text-decoration: underline; }

.compare-results { margin: 0 0 8px; }
.compare-placeholder { color: var(--muted); font-style: italic; }
.compare-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 0 0 16px;
}
.compare-result-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  padding: 16px 18px;
}
.compare-result-card h3 { margin: 0 0 6px; font-size: 17px; }
.compare-result-card p { margin: 0 0 8px; font-size: 14px; }
.compare-result-card p:last-child { margin-bottom: 0; }
.compare-meta { color: var(--muted); font-size: 13px; }

.compare-note {
  background: var(--accent-soft);
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px;
  margin: 0 0 24px;
}

.compare-table th, .compare-table td { text-align: center; }
.compare-table th:first-child, .compare-table td:first-child { text-align: left; }

@media (max-width: 600px) {
  .compare-grid, .compare-cards { grid-template-columns: 1fr; }
}

/* ---------- Cookie consent banner + preferences modal ---------- */
.cookie-banner {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  background: var(--ink);
  color: #fff;
  padding: 18px 20px;
  z-index: 1000;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.15);
}
.cookie-banner-inner {
  max-width: 900px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  justify-content: space-between;
}
.cookie-banner p {
  margin: 0;
  font-size: 13px;
  color: #f0dccb;
  flex: 1 1 320px;
}
.cookie-banner a { color: #fff; text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-btn {
  padding: 9px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
}
.cookie-btn-accept { background: var(--accent); color: #fff; }
.cookie-btn-reject { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.cookie-btn-manage { background: transparent; color: #f0dccb; border: none; text-decoration: underline; padding: 9px 4px; }

.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,38,32,0.55);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.cookie-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 480px;
  width: 100%;
  padding: 26px;
  max-height: 85vh;
  overflow-y: auto;
}
.cookie-modal h2 { margin: 0 0 8px; font-size: 19px; color: var(--ink); }
.cookie-modal .cm-intro { margin: 0 0 18px; font-size: 13px; color: var(--muted); }
.cookie-category {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin-bottom: 12px;
}
.cookie-category-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
  gap: 12px;
}
.cookie-category-head strong { font-size: 14px; color: var(--ink); }
.cookie-category p { margin: 0; font-size: 12px; color: var(--muted); }
.cookie-toggle {
  position: relative;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.cookie-toggle-track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 22px;
  cursor: pointer;
  transition: 0.2s;
}
.cookie-toggle-track:before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.cookie-toggle input:checked + .cookie-toggle-track { background: var(--accent); }
.cookie-toggle input:checked + .cookie-toggle-track:before { transform: translateX(18px); }
.cookie-toggle input:disabled + .cookie-toggle-track { background: var(--accent); opacity: 0.5; cursor: not-allowed; }
.cookie-modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}
.cookie-modal-actions .cookie-btn { flex: 1 1 auto; text-align: center; }

#cookieSettingsLink { cursor: pointer; }

@media (max-width: 480px) {
  .cookie-banner-actions { width: 100%; justify-content: flex-start; }
}

/* ---------- Account / sign-in ---------- */
.auth-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px 24px;
  max-width: 420px;
  margin: 0 auto;
}
.auth-card h2 {
  margin: 0 0 8px;
  font-size: 20px;
}
.auth-card p.auth-sub {
  color: var(--muted);
  font-size: 14px;
  margin: 0 0 20px;
}

/* Signed-in dashboard shell v2 (design pack 3b, 2026-07-19): white panel with a
   left sidebar of tabs (My dogs / Email preferences / Account details, plus a
   Sign out action) replacing the old flat single-column layout. All three tab
   panels render into the DOM up front and are toggled with .active (see the
   tab click handler in account.html) rather than rebuilt on each switch --
   that way a control repeated in two places (the birthday-reminder toggle
   appears on every dog card AND on the Email preferences tab) can be kept in
   sync by just updating every matching element, without worrying about
   whether a given element currently exists. */
.dy-panel {
  display: flex;
  align-items: stretch;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(43,38,32,0.06);
}
.dy-sidebar {
  flex: 0 0 200px;
  padding: 28px 14px;
  border-right: 1px solid var(--line);
}
.dy-tab-btn {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 10px 14px;
  margin-bottom: 2px;
  border-radius: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.dy-tab-btn:hover { background: var(--accent-soft); }
.dy-tab-btn.active { background: var(--ink); color: #fff; }
.dy-tab-btn.active:hover { background: var(--ink); }
.dy-tab-btn-signout { margin-top: 18px; color: var(--muted); }
.dy-main {
  flex: 1 1 auto;
  min-width: 0;
  padding: 28px 32px;
}
.dy-tab-panel { display: none; }
.dy-tab-panel.active { display: block; }
.dy-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 20px;
}
.dy-dashboard-head h2 {
  margin: 0;
  font-size: 22px;
}
.dy-main h3 {
  margin: 0 0 14px;
  font-size: 16px;
}
.dy-master-toggle {
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
  margin-bottom: 14px;
}
.dy-dashboard-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.dy-account-email {
  font-size: 13px;
  color: var(--muted);
}
@media (max-width: 760px) {
  .dy-panel { flex-direction: column; border-radius: 16px; }
  .dy-sidebar {
    flex: 0 0 auto;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding: 16px;
  }
  .dy-tab-btn { width: auto; margin-bottom: 0; }
  .dy-tab-btn-signout { margin-top: 0; margin-left: auto; }
  .dy-main { padding: 20px; }
}

.auth-field {
  margin-bottom: 16px;
}
.auth-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
}
.auth-field input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
}
.auth-field input[type="email"]:focus {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.auth-btn {
  width: 100%;
  padding: 11px 16px;
  border: none;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}
.auth-btn:hover { background: var(--accent-hover, var(--accent)); }
.auth-btn:focus-visible {
  outline: none;
  background: var(--accent-hover, var(--accent));
  box-shadow: 0 0 0 3px var(--focus-ring, var(--accent-soft)), 0 0 0 5px var(--accent);
}
.auth-btn:disabled { background: var(--disabled-bg, var(--line)); color: var(--disabled-text, var(--muted)); cursor: not-allowed; }
.auth-btn-secondary {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--ink);
}
.auth-notice {
  font-size: 13px;
  border-radius: 8px;
  padding: 10px 12px;
  margin-bottom: 16px;
}
.auth-notice-error {
  background: #fbe6df;
  color: var(--warn);
  border: 1px solid #eec3b3;
}
.auth-notice-success {
  background: #eef5e9;
  color: #3d6b2c;
  border: 1px solid #cfe3c2;
}
.auth-loading { color: var(--muted); font-size: 14px; }

.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}
.dashboard-header .dh-email {
  font-size: 14px;
  color: var(--muted);
}
.dog-list-empty {
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  color: var(--muted);
}
.dog-list-empty p { margin: 0 0 14px; }

/* ---------- Dog list / cards v2 (design pack 3b, 2026-07-19) ---------- */
.dog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
  align-items: start;
}
.dog-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.dog-card-top { display: flex; align-items: flex-start; gap: 14px; }
.dog-card-photo img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 1px solid var(--line);
}
.dog-card-photo-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
}
.dog-card-body { flex: 1 1 auto; min-width: 0; padding-top: 2px; }
.dog-card-name { font-family: var(--font-heading); font-weight: 800; font-size: 17px; }
.dog-card-meta { font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.dog-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 20px;
}
.dog-badge-muted { background: var(--line); color: var(--muted); }
.dog-badge-pending { background: #fbf0d9; color: #8a6414; }
.dog-badge-ok { background: #eef5e9; color: #3d6b2c; }
.dog-badge-warn { background: #fbe6df; color: var(--warn); }

.dog-card-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.dog-stat { background: var(--bg); border-radius: 10px; padding: 10px 6px; text-align: center; }
.dog-stat-num {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 21px;
  color: var(--ink);
  line-height: 1.1;
}
.dog-stat.accent .dog-stat-num { color: var(--accent); }
.dog-stat-label {
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-top: 3px;
}

.dog-card-toggles {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.dy-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13.5px;
  color: var(--ink);
}
.dy-switch-status { font-size: 11.5px; color: var(--muted); margin: -4px 0 0; }

/* Same pill-switch technique as .cookie-toggle above, under its own class
   name so this isn't coupled to cookie-consent.js. */
.dy-switch { position: relative; width: 38px; height: 21px; flex-shrink: 0; }
.dy-switch input { opacity: 0; width: 0; height: 0; }
.dy-switch-track {
  position: absolute;
  inset: 0;
  background: var(--line);
  border-radius: 22px;
  cursor: pointer;
  transition: 0.2s;
}
.dy-switch-track:before {
  content: "";
  position: absolute;
  height: 15px;
  width: 15px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s;
  box-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.dy-switch input:checked + .dy-switch-track { background: var(--accent); }
.dy-switch input:checked + .dy-switch-track:before { transform: translateX(17px); }

.dog-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  padding-top: 4px;
  font-size: 13px;
}
.dog-card-links a, .dog-card-links button {
  background: none;
  border: none;
  padding: 0;
  font: inherit;
  font-weight: 700;
  color: var(--accent);
  cursor: pointer;
  text-decoration: none;
}
.dog-card-links a:hover, .dog-card-links button:hover { text-decoration: underline; }
.dog-card-links .dog-remove-link { color: var(--warn); }

.dog-add-tile {
  border: 2px dashed var(--input-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 32px 20px;
  min-height: 200px;
  cursor: pointer;
  background: none;
  font: inherit;
  color: inherit;
}
.dog-add-tile:hover { background: var(--accent-soft); }
.dog-add-tile .icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--accent); font-weight: 800;
  margin-bottom: 12px;
}
.dog-add-tile-title { font-family: var(--font-heading); font-weight: 800; font-size: 15px; color: var(--ink); }
.dog-add-tile-body { font-size: 12.5px; color: var(--muted); margin-top: 4px; }

.add-dog-row { text-align: center; margin: 20px 0; }
.btn-pill { border-radius: 999px; }

/* ---------- Generic modal (dog add/edit) ---------- */
.dy-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(43,38,32,0.55);
  z-index: 1001;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
}
.dy-modal {
  background: #fff;
  border-radius: 14px;
  max-width: 440px;
  width: 100%;
  padding: 26px;
  max-height: 90vh;
  overflow-y: auto;
}
.dy-modal h2 { margin: 0 0 16px; font-size: 19px; color: var(--ink); }
.dy-modal-close-row { text-align: right; margin-top: 18px; }

/* ---------- Photo crop tool ---------- */
.photo-section {
  border-top: 1px solid var(--line);
  margin-top: 18px;
  padding-top: 16px;
}
.photo-section-label {
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 10px;
}
.crop-frame {
  width: 220px;
  height: 220px;
  border-radius: 12px;
  overflow: hidden;
  margin: 0 auto 12px;
  border: 2px solid var(--accent);
  background: var(--line);
  cursor: grab;
  touch-action: none;
}
.crop-frame:active { cursor: grabbing; }
.crop-frame canvas { display: block; }
.crop-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}
.crop-controls label { font-size: 12px; color: var(--muted); white-space: nowrap; }
.crop-controls input[type="range"] { flex: 1 1 auto; }
.crop-actions { display: flex; gap: 10px; }
.crop-actions .auth-btn { flex: 1 1 auto; }
.current-photo-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 13px;
  color: var(--muted);
}
.current-photo-preview img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
}

/* ---------- Sharing toggles (photo modal, dog_profiles Phase 2 columns) ---------- */
.sharing-toggles {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}
.sharing-toggles-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 10px;
}
.sharing-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
  margin-bottom: 10px;
}
.sharing-toggle-status {
  font-size: 13px;
  color: var(--muted);
  min-height: 16px;
}
.sharing-toggle-row input { margin-top: 3px; }
/* Shown per-dog on the account page instead of the toggles, when that dog
   has no photo yet -- these settings all depend on one, so a locked note
   naming the specific dog (plus a direct shortcut) is clearer than a single
   generic message for the whole section (see renderSharingPrefs() in
   account.html). */
.sharing-toggles-locked-note {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 10px;
  line-height: 1.5;
}

/* ---------- Public showcase gallery (/showcase) ---------- */
/* auto-fit, not auto-fill (2026-07-22, per Peter): auto-fill always reserves
   as many column tracks as would fit the row, whether or not there's a card
   to put in them, so any row that isn't completely full left visibly empty
   space after the last real card. auto-fit collapses unused tracks instead.
   Track max is kept as 1fr (not a fixed px cap) -- a fixed max changes how
   the browser *counts* columns in the first place (it sizes by the max when
   it's a definite length rather than flexible), which quietly drops the
   column count and breaks showcaseMoreDogsGridHtml's chunk-of-10 grouping
   (each chunk's trailing row would then show fewer cards than expected with
   leftover empty space). Instead the CARD itself is capped at 200px (see
   .showcase-card below), so a lone leftover card in a partial row doesn't
   stretch to fill its track's full width, while the grid's column-count math
   is unaffected. This grid (5 columns at the site's current 1000px page
   width) is correct for showcaseMoreDogsGridHtml's "More dogs" section,
   whose CHUNK is deliberately kept a multiple of 5 so every row it produces
   is either full or entirely absent -- 2026-07-23: briefly replaced with a
   flexbox layout to also fix the birthday sections below, but that changed
   "More dogs" from 5 to 4 cards per row too (fixed-width flex items don't
   pack as tightly as this grid's flexible 1fr columns), which Peter didn't
   want changed. Reverted -- see .showcase-grid-birthday below for how the
   birthday sections (whose card count *can't* be forced to a multiple of 5,
   since it's real, uncontrollable daily data) are kept gap-safe instead,
   without touching this grid. */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  margin: 24px 0 40px;
}
.showcase-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  max-width: 200px;
  margin: 0 auto;
}
.showcase-card-photo img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 10px;
  object-fit: cover;
  display: block;
  margin-bottom: 12px;
  border: 1px solid var(--line);
}
.showcase-card-name {
  font-weight: 700;
  font-size: 16px;
  margin-bottom: 2px;
}
.showcase-card-breed {
  font-size: 13px;
  margin-bottom: 6px;
}
.showcase-card-breed a { color: var(--accent); text-decoration: none; }
.showcase-card-breed a:hover { text-decoration: underline; }
.showcase-card-age { font-size: 13px; color: var(--muted); }
@media (max-width: 640px) {
  .showcase-grid { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 14px; }
  .showcase-card, .showcase-add-tile { max-width: 160px; }
}

/* Birthday-today / upcoming-birthdays spotlight sections, above the main
   showcase grid -- see getShowcaseData in worker/index.js. Deliberately
   shares the exact same .showcase-grid rule as "More dogs" above (only
   overriding card colour here) rather than a separate layout mechanism --
   Peter wants both sections to always be pixel-identical in card size and
   column count (2026-07-23), and a second, independently-tuned layout
   (e.g. flexbox, tried briefly the same day) can drift out of sync with
   this grid's auto-fit column choice at in-between viewport widths, even if
   it's tuned to match at one specific width. Card COUNT in these sections is
   real, uncontrollable data though (however many dogs have a birthday today,
   or -- as of 2026-07-23 -- the soonest N upcoming), so a short last row is
   still possible and would otherwise leave empty trailing grid cells (the
   "4 blank spaces" Peter first reported) -- that's handled separately, via
   JS, in showcase.html's centerPartialLastRow(), which nudges just a short
   last row's real cards to sit centred using grid-column-start, without
   touching this grid's column count or card sizing at all. */
.showcase-section { margin-bottom: 8px; }
.showcase-section-title {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 14px;
}
.showcase-grid-birthday .showcase-card {
  border-color: var(--accent);
  background: var(--accent-soft);
}
.showcase-card-days {
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
  margin-top: 4px;
}

/* ========================================================================
   v1.1 redesign — reusable component library (buttons, inputs, ad units,
   AWIN affiliate cards). Added 2026-07-16, Phase 1 of the redesign rollout.
   These are additive classes — nothing above this point was removed, so
   existing pages keep working unchanged until each is migrated to use these.
   ======================================================================== */

/* ---------- Buttons (primary / secondary) with full state coverage ---------- */
.btn-primary {
  display: inline-block;
  padding: 13px 24px;
  border: none;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:active,
.btn-primary:focus-visible {
  background: var(--accent-hover);
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring), 0 0 0 5px var(--accent);
}
.btn-primary:disabled,
.btn-primary.is-disabled {
  background: var(--disabled-bg);
  color: var(--disabled-text);
  cursor: not-allowed;
  box-shadow: none;
}

.btn-secondary {
  display: inline-block;
  padding: 11.5px 22px;
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 14.5px;
  font-weight: 700;
  text-decoration: none;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.15s, box-shadow 0.15s;
}
.btn-secondary:hover { background: var(--accent-soft); }
.btn-secondary:active,
.btn-secondary:focus-visible {
  background: var(--accent-soft);
  outline: none;
  box-shadow: 0 0 0 3px var(--focus-ring), 0 0 0 5px var(--ink);
}
.btn-secondary:disabled,
.btn-secondary.is-disabled {
  border-color: var(--input-border);
  color: var(--disabled-text);
  background: transparent;
  cursor: not-allowed;
  box-shadow: none;
}

/* ---------- Text inputs with full state coverage ---------- */
.input-field {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--input-border);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.input-field:hover { border-color: var(--input-border-hover); }
.input-field:focus, .input-field:focus-visible {
  outline: none;
  border: 2px solid var(--ink);
  padding: 10px 13px; /* compensate for the thicker border so layout doesn't shift */
  box-shadow: 0 0 0 3px var(--focus-ring);
}
.input-field:disabled {
  border-color: var(--line);
  background: var(--ad-bg);
  color: var(--disabled-text);
  cursor: not-allowed;
}
.input-field.has-error {
  border: 2px solid var(--warn);
  background: var(--warn-bg);
  padding: 10px 13px;
}
.input-error-message {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--warn);
  margin-top: 5px;
}

/* ---------- AdSense unit wrapper ---------- */
/* Usage: <div class="ad-unit ad-unit--leaderboard"><!-- ad script/ins tag here --></div>
   Sizes: --leaderboard (728x90), --mpu (300x250), --mobile-banner (320x100).
   Placement rules (see design/v1.1/README.md 6a): never inside/above the calculator or result;
   homepage gets one above the footer only; max 2 per page on mobile. */
.ad-unit-wrap { text-align: center; margin: 24px 0; }
.ad-unit-label {
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--muted-2);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.ad-unit {
  background: var(--ad-bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.ad-unit--leaderboard { width: 728px; max-width: 100%; height: 90px; }
.ad-unit--mpu { width: 300px; max-width: 100%; height: 250px; }
.ad-unit--mobile-banner { width: 320px; max-width: 100%; height: 100px; }

/* ---------- AWIN "Recommended" affiliate card — 3 variants ---------- */
/* Shared AD chip + disclosure line, per ASA/CAP affiliate marketing rules. */
.awin-chip {
  font-size: 10px;
  font-weight: 700;
  color: var(--muted-2);
  border: 1px solid var(--input-border);
  border-radius: 4px;
  padding: 2px 6px;
  background: #fff;
  letter-spacing: 0.02em;
}
.awin-disclosure {
  font-size: 11px;
  color: var(--muted-2);
  margin-top: 10px;
  line-height: 1.45;
}

/* Sidebar card variant */
.awin-card {
  width: 100%;
  max-width: 340px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.awin-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: var(--accent-soft);
}
.awin-card-head .awin-recommended {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #8a6a3f;
}
.awin-card-body { padding: 18px; }
.awin-card-image {
  height: 90px;
  border-radius: 10px;
  background: repeating-linear-gradient(45deg, var(--input-border), var(--input-border) 6px, #e7ddca 6px, #e7ddca 12px);
  margin-bottom: 14px;
}
.awin-card-title { font-size: 15px; font-weight: 700; color: var(--ink); font-family: var(--font-heading); }
.awin-card-blurb { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 6px 0 14px; }

/* Inline mid-article row variant */
.awin-inline {
  width: 100%;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  overflow: hidden;
  align-items: center;
  margin: 24px 0;
}
.awin-inline-accent { width: 6px; align-self: stretch; background: var(--accent-soft); flex-shrink: 0; }
.awin-inline-image {
  width: 110px;
  flex-shrink: 0;
  align-self: stretch;
  background: repeating-linear-gradient(45deg, var(--input-border), var(--input-border) 6px, #e7ddca 6px, #e7ddca 12px);
}
.awin-inline-body { padding: 16px 20px; flex: 1 1 auto; min-width: 0; }
.awin-inline-body .awin-inline-head { display: flex; justify-content: space-between; align-items: center; }
.awin-inline-title { font-size: 14.5px; font-weight: 700; color: var(--ink); font-family: var(--font-heading); margin-top: 6px; }
.awin-inline-blurb { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.awin-inline-cta { flex-shrink: 0; margin: 0 20px; }

/* Banner variant (e.g. account senior nudge) */
.awin-banner {
  background: var(--accent-soft);
  border-radius: 14px;
  padding: 18px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 24px 0;
}
.awin-banner-text { font-size: 13.5px; color: var(--ink); line-height: 1.5; flex: 1 1 240px; }
.awin-banner-cta { flex-shrink: 0; }

@media (max-width: 640px) {
  .awin-inline { flex-direction: column; align-items: stretch; }
  .awin-inline-image { width: 100%; height: 100px; }
  .awin-inline-cta { margin: 0 20px 16px; }
}

/* ========================================================================
   v1.1 redesign — breed SEO landing template (design pack 6c), applied to
   all 221 {slug}-dog-years.html pages. Added 2026-07-16, Phase 4.
   ======================================================================== */
.breed-breadcrumb {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted-2);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.breed-breadcrumb a { color: var(--muted-2); }
.breed-breadcrumb a:hover { color: var(--accent); }

.breed-hero {
  display: flex;
  gap: 24px;
  align-items: center;
  margin-bottom: 24px;
}
.breed-hero-photo {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 4px solid #fff;
  box-shadow: 0 8px 24px rgba(43,36,29,.12);
}
.breed-hero-text h1 { margin: 0; }
.breed-chips { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.breed-chip {
  background: var(--accent-soft);
  color: #8a6a3f;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border-radius: 999px;
  padding: 4px 11px;
  text-transform: uppercase;
}

.breed-stats-row {
  display: flex;
  gap: 12px;
  margin: 0 0 28px;
  flex-wrap: wrap;
}
.breed-stat-card {
  flex: 1 1 130px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
  text-align: center;
}
.breed-stat-card.wide { flex: 2 1 220px; text-align: left; }
.breed-stat-card .bs-value {
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.15;
}
.breed-stat-card .bs-value.accent { color: var(--accent); }
.breed-stat-card .bs-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted-2);
  margin-top: 3px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.breed-stat-card .bs-text { font-size: 13px; color: var(--body, var(--ink)); line-height: 1.5; }

.breed-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 36px;
  align-items: start;
}
.breed-sidebar { display: flex; flex-direction: column; gap: 18px; }
.breed-sidebar-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
}
.breed-sidebar-box h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted-2);
  text-transform: uppercase;
  letter-spacing: 0.02em;
  margin: 0 0 10px;
}
.breed-sidebar-box a { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.breed-sidebar-box a:last-child { margin-bottom: 0; }

.breed-calc-widget {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(43,36,29,.08);
  margin-bottom: 28px;
}
.breed-calc-widget h2 { margin: 0 0 16px; font-size: 19px; }
.breed-calc-row { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.breed-calc-row .field { flex: 1 1 140px; margin-bottom: 0; }
.breed-calc-row label { font-size: 12px; font-weight: 700; color: var(--muted); display: block; margin-bottom: 6px; }
.breed-calc-result {
  background: var(--result-tint, var(--accent-soft));
  border-radius: 14px;
  padding: 18px 20px;
  text-align: center;
  margin-top: 18px;
  display: none;
}
.breed-calc-result.show { display: block; }
.breed-calc-result .bc-label { font-size: 12.5px; font-weight: 700; color: var(--muted-2); letter-spacing: 0.02em; }
.breed-calc-result .bc-value { font-family: var(--font-heading); font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.breed-calc-result .bc-sub { font-size: 13px; color: var(--muted); font-weight: 600; }

.breed-table-senior td, .breed-table-senior th { position: relative; }
table.breed-age-table tr.senior-row td { background: var(--result-tint, var(--accent-soft)); font-weight: 700; }

/* Breed article restyle (design 5d, 2026-07-17): plain title/chips hero
   (photo moved to the sidebar), a short lede line where the old "Temperament"
   stat card text now lives, a condensed representative-row age table with a
   Life Stage column and a dark header, and a white sidebar CTA card. */
.breed-hero-plain { margin-bottom: 22px; }
.breed-hero-plain h1 { margin: 0; }
.breed-lede { font-size: 15px; color: var(--muted); line-height: 1.6; margin: 14px 0 0; }

.breed-sidebar-photo {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--line);
  display: block;
}
.breed-sidebar-photo-credit {
  font-size: 10.5px;
  color: var(--muted-2);
  margin: 6px 0 0;
  text-align: right;
}
.breed-sidebar-photo-credit a { color: var(--muted-2); }

.breed-sidebar-cta {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px 20px;
  box-shadow: 0 8px 24px rgba(43,36,29,.06);
}
.breed-sidebar-cta h3 { margin: 0 0 6px; font-size: 16px; }
.breed-sidebar-cta p { font-size: 13px; color: var(--muted); line-height: 1.5; margin: 0 0 14px; }
.breed-sidebar-cta .btn-primary { display: block; text-align: center; }

table.breed-age-table--condensed th {
  background: var(--ink);
  color: #fff;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.04em;
  font-weight: 700;
}
table.breed-age-table--condensed tr.senior-row td { color: var(--accent); }

@media (max-width: 760px) {
  .breed-layout { grid-template-columns: 1fr; }
  .breed-hero { flex-direction: column; text-align: center; }
  .breed-hero-photo { width: 120px; height: 120px; }
}

/* ========================================================================
   v1.1 redesign — Phase A follow-up: About / Contact / Embed / Guides /
   Compare / Showcase / 404 / empty-account / breed-not-found (design pack
   screens 4a, 4b, 4c, 4d, 5e, 5f, 6e). Added 2026-07-16.
   ======================================================================== */

/* Generic striped photo placeholder, reused anywhere a real photo is pending. */
.photo-placeholder {
  border-radius: 16px;
  background: repeating-linear-gradient(45deg, var(--input-border), var(--input-border) 8px, #e7ddca 8px, #e7ddca 16px);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: monospace;
  font-size: 10px;
  color: #8a7d6a;
}

/* Dark "ink panel" CTA — used at the foot of Guides and in About's sidebar. */
.cta-dark {
  background: var(--ink);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  margin: 40px 0 0;
}
.cta-dark h3 { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--bg); margin: 0; }
.cta-dark p { font-size: 14px; color: var(--on-dark-muted, #cfc4b2); margin: 4px 0 0; }
.cta-dark.centered { flex-direction: column; text-align: center; padding: 24px; }
.cta-dark.centered h3 { font-size: 19px; }
.cta-dark.centered .btn-primary { margin-top: 14px; }

/* "At a glance" key/value stat list — About sidebar. */
.stat-list { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink); }
.stat-list-label { font-size: 12px; font-weight: 700; color: #8a7d6a; letter-spacing: 0.05em; text-transform: uppercase; margin-bottom: 2px; }
.stat-list-row { display: flex; justify-content: space-between; gap: 12px; }
.stat-list-row strong { font-weight: 700; }

/* Sidebar box, reused outside breed pages (About page). */
.info-box {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}

/* ---------- Guides hub (4a): breed card size-band chip + count tile ---------- */
.guide-card-chips { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.guide-card-chip {
  background: var(--accent-soft);
  color: #8a6a3f;
  font-size: 10.5px;
  font-weight: 700;
  border-radius: 999px;
  padding: 3px 8px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.guide-card-chip.muted { background: transparent; color: var(--muted-2); text-transform: none; padding: 3px 0; }
.guide-more-tile {
  border: 2px dashed var(--input-border);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  min-height: 140px;
}
.guide-more-tile strong { font-size: 13.5px; color: var(--muted); }
.guide-more-tile span { font-size: 12px; color: var(--muted-2); line-height: 1.4; }

/* ---------- Compare (4b): stat-row cards + ageing-curve chart ---------- */
.compare-result-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 28px; margin: 32px 0; align-items: start; }
@media (max-width: 760px) { .compare-result-layout { grid-template-columns: 1fr; } }
.compare-stat-cards { display: flex; flex-direction: column; gap: 12px; }
.compare-stat-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  text-align: center;
}
.compare-stat-card .cs-a { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--accent); }
.compare-stat-card .cs-b { font-family: var(--font-heading); font-size: 22px; font-weight: 800; color: var(--compare-b, #4a6741); }
.compare-stat-card .cs-label { font-size: 10.5px; font-weight: 700; color: var(--muted-2); text-transform: uppercase; }
.compare-chart-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px;
}
.compare-chart-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 18px; }
.compare-chart-frame {
  position: relative;
  height: 220px;
  border-left: 1.5px solid var(--input-border);
  border-bottom: 1.5px solid var(--input-border);
  margin-bottom: 26px;
}
.compare-chart-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.compare-chart-xaxis { position: absolute; bottom: -24px; left: 0; right: 0; display: flex; justify-content: space-between; font-size: 11px; color: var(--muted-2); font-weight: 600; }
.compare-chart-legend { display: flex; gap: 20px; font-size: 12.5px; font-weight: 700; flex-wrap: wrap; }
.compare-chart-legend .a { color: var(--accent); }
.compare-chart-legend .b { color: var(--compare-b, #4a6741); }
.compare-note-panel { background: var(--accent-soft); border-radius: 14px; padding: 16px 20px; font-size: 13px; line-height: 1.55; color: #4a3f33; }

/* ---------- Showcase (4c): add-your-dog CTA tile ---------- */
.showcase-add-tile {
  border: 2px dashed var(--input-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
  padding: 20px;
  min-height: 220px;
  max-width: 200px;
  margin: 0 auto;
  width: 100%;
  text-decoration: none;
}
.showcase-add-tile .icon {
  width: 48px; height: 48px; border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; color: var(--accent);
}
.showcase-add-tile strong { font-size: 14px; font-weight: 700; color: var(--muted); }
.showcase-add-tile span { font-size: 12px; color: var(--muted-2); line-height: 1.4; }

/* ---------- 6e: 404 page ---------- */
.state-404 {
  max-width: 560px;
  margin: 48px auto;
  background: var(--card);
  border-radius: 16px;
  box-shadow: 0 12px 40px rgba(43,36,29,.18);
  padding: 56px 48px;
  text-align: center;
}
.state-404-eyebrow { font-size: 11px; font-weight: 700; color: var(--muted-2); letter-spacing: 0.1em; margin-bottom: 6px; }
.state-404-code { font-family: var(--font-heading); font-size: 72px; font-weight: 800; color: var(--accent); line-height: 1; }
.state-404-title { font-family: var(--font-heading); font-size: 26px; font-weight: 800; color: var(--ink); margin-top: 10px; }
.state-404-body { font-size: 14.5px; color: var(--muted); line-height: 1.55; margin: 10px auto 24px; max-width: 38ch; }
.state-404-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- 6e: empty account ---------- */
.state-empty {
  border: 2px dashed var(--input-border);
  border-radius: 18px;
  padding: 36px 24px;
  text-align: center;
}
.state-empty .icon {
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--accent-soft);
  margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.state-empty-title { font-family: var(--font-heading); font-size: 18px; font-weight: 800; color: var(--ink); }
.state-empty-body { font-size: 13px; color: var(--muted); line-height: 1.55; margin: 8px 0 18px; }
.state-empty-foot { font-size: 12px; color: var(--muted-2); margin-top: 12px; }

/* ---------- 6e / 5g: breed-not-found fallback ---------- */
.breed-not-found {
  border: 1px solid var(--line);
  border-radius: 12px;
  margin-top: 8px;
  padding: 18px;
  text-align: center;
}
.breed-not-found-title { font-size: 14px; font-weight: 700; color: var(--ink); }
.breed-not-found-body { font-size: 12.5px; color: var(--muted); line-height: 1.5; margin: 6px 0 12px; }
.breed-not-found-suggest { font-size: 12px; color: var(--muted-2); margin-top: 10px; }
.breed-not-found-suggest a { color: var(--muted-2); text-decoration: underline; }
.breed-not-found-suggest a:hover { color: var(--accent); }

/* ---------- 5f: embed code snippet + preview ---------- */
.embed-snippet {
  background: var(--ink);
  border-radius: 12px;
  padding: 18px 20px;
  font-family: monospace;
  font-size: 12.5px;
  color: #cfc4b2;
  line-height: 1.6;
  position: relative;
  white-space: pre-wrap;
  word-break: break-word;
}
.embed-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 5px 12px;
  font-family: var(--font-body);
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
}
.embed-copy-btn:hover { background: var(--accent-hover); }
.embed-preview-label { font-size: 12.5px; font-weight: 700; color: var(--muted-2); margin: 24px 0 10px; letter-spacing: 0.05em; text-transform: uppercase; }
.embed-preview {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 20px;
}
.embed-backlink { font-size: 10.5px; color: var(--muted-2); text-align: right; margin-top: 8px; }
.embed-backlink a { color: var(--muted-2); }

@media (max-width: 760px) {
  .compare-stat-card { grid-template-columns: 1fr; text-align: center; gap: 4px; }
  .cta-dark { flex-direction: column; text-align: center; }

  /* AdSense placeholders (design 6a): swap to the 320x100 mobile-banner
     size at the same anchors, and cap at 2 slots per page on mobile --
     matters mainly on Showcase, whose ad-unit-wrap count between grid
     chunks scales with how many dogs are shown. */
  .ad-unit--leaderboard, .ad-unit--mpu { width: 320px; height: 100px; }
  .showcase-section .ad-unit-wrap:nth-of-type(n+3) { display: none; }
}

/* Account page: share-link status message under a dog card's action row. */
.dog-card-share-status {
  font-size: 12px;
  color: var(--muted-2);
  margin-top: 8px;
  word-break: break-all;
}
