* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.65;
  color: #243040;
  background: #fff7ef;
}
a { color: #146d82; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: #fff;
  color: #000;
  padding: 10px 14px;
  z-index: 2000;
}
.skip-link:focus { left: 10px; }
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: #ffffff;
  border-bottom: 1px solid #ead8ce;
}
.site-header__inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: 72px;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #243040;
  font-weight: 800;
  font-size: 1.25rem;
}
.site-logo:hover { text-decoration: none; }
.site-logo__mark {
  display: inline-block;
  width: 42px;
  height: 42px;
  line-height: 42px;
  text-align: center;
  border-radius: 50%;
  background: #fff0e9;
}
.desktop-nav { display: none; }
.menu-toggle {
  width: 48px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  background: #fff0e9;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  padding: 0 12px;
  cursor: pointer;
  flex: 0 0 auto;
}
.menu-toggle:hover,
.menu-toggle:focus {
  background: #ffe4d8;
  outline: 2px solid transparent;
}
body.menu-open .menu-toggle span:not(.screen-reader-text) { background: #d95f50; }
.menu-toggle span:not(.screen-reader-text) {
  height: 3px;
  width: 100%;
  border-radius: 99px;
  background: #243040;
}
.menu-overlay {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  background: rgba(36, 48, 64, .42);
  opacity: 0;
  visibility: hidden;
  z-index: 1090;
}
.mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  width: 430px;
  max-width: 90vw;
  height: 100vh;
  z-index: 1100;
  background: #fff;
  box-shadow: -20px 0 40px rgba(0,0,0,.18);
  transform: translateX(100%);
  transition: transform .22s ease;
  padding: 22px;
  overflow-y: auto;
}
.mobile-menu__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 18px;
  border-bottom: 1px solid #f0e3dc;
  margin-bottom: 18px;
}
.mobile-menu__eyebrow {
  margin: 0 0 4px;
  color: #d95f50;
  font-size: .78rem;
  text-transform: uppercase;
  letter-spacing: .09em;
  font-weight: 900;
}
.mobile-menu__title {
  margin: 0;
  color: #243040;
  font-size: 1rem;
  line-height: 1.35;
  font-weight: 800;
}
.mobile-menu__close {
  border: 0;
  background: #fff0e9;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  flex: 0 0 auto;
}
.mobile-menu__section {
  display: grid;
  gap: 7px;
  padding: 16px 0;
  border-bottom: 1px solid #f0e3dc;
}
.mobile-menu__section h2 {
  margin: 0 0 4px;
  color: #607083;
  font-size: .82rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.mobile-menu__section a {
  color: #243040;
  font-size: 1.02rem;
  font-weight: 850;
  padding: 11px 12px;
  border-radius: 14px;
  background: #fff8f4;
}
.mobile-menu__section a:hover,
.mobile-menu__section a:focus {
  background: #fff0e9;
  text-decoration: none;
}
.mobile-menu__section--popular {
  padding: 16px;
  border: 1px solid #ead8ce;
  border-radius: 20px;
  background: #fff7ef;
  margin-bottom: 8px;
}
.mobile-menu__section--popular a { background: #fff; }
body.menu-open { overflow: hidden; }
body.menu-open .menu-overlay { opacity: 1; visibility: visible; }
body.menu-open .mobile-menu { transform: translateX(0); }
.main-content { min-height: 70vh; }
.hero { padding: 54px 22px 34px; }
.hero__content { max-width: 1050px; margin: 0 auto; }
.hero h1,
.article-card h1 {
  font-size: 3.4rem;
  line-height: 1.05;
  letter-spacing: -.04em;
  margin: 10px 0 18px;
}
.hero p { max-width: 780px; font-size: 1.18rem; color: #607083; }
.eyebrow {
  color: #d95f50;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-weight: 900;
  font-size: .78rem;
  margin-bottom: 0;
}
.page-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 28px;
  align-items: start;
}
.article-card,
.tool-card,
.sidebar-card,
.result-card,
.soft-callout {
  background: #ffffff;
  border: 1px solid #ead8ce;
  border-radius: 24px;
  box-shadow: 0 18px 50px rgba(35, 48, 64, .12);
}
.article-card { padding: 42px; }
.article-card h2 { margin-top: 34px; line-height: 1.2; font-size: 2rem; }
.article-card p { color: #415065; }
.hero-figure {
  margin: 0 0 26px;
}
.hero-image {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 24px;
  object-fit: cover;
  background: #fff0e9;
}
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 18px;
  color: #607083;
  font-size: .9rem;
}
.breadcrumbs li:after { content: '/'; margin-left: 8px; color: #a6b0ba; }
.breadcrumbs li:last-child:after { content: ''; }
.tool-card { padding: 34px; margin-bottom: 26px; }
.tool-card h2 { margin-top: 0; }
.calculator-form { display: grid; gap: 18px; }
.form-row { display: grid; gap: 7px; }
.form-row label,
.checkbox-row { font-weight: 800; }
.form-row label span { color: #607083; font-weight: 600; }
input, select, button { font: inherit; }
input[type="text"], input[type="date"], select {
  width: 100%;
  border: 1px solid #d8c7bd;
  border-radius: 16px;
  padding: 14px 14px;
  min-height: 52px;
  background: #fff;
  color: #243040;
}
.checkbox-row { display: flex; gap: 10px; align-items: flex-start; }
.checkbox-row input { margin-top: 6px; }
.form-row--hidden { display: none; }
.form-row--visible { display: grid; }
.form-note { font-size: .92rem; color: #607083; margin: 0; }
.button-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 999px;
  padding: 13px 20px;
  background: #f77f6f;
  color: #fff;
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(247, 127, 111, .25);
}
.button-link:hover { background: #d95f50; text-decoration: none; }
.button-link--button { cursor: pointer; width: fit-content; }
.result-area:empty { display: none; }
.result-card { padding: 34px; margin: 28px 0; }
.result-card h2 { margin-top: 0; }
.result-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 20px 0;
}
.result-stat {
  background: #fff8f4;
  border: 1px solid #f1dcd2;
  border-radius: 18px;
  padding: 16px;
}
.result-stat strong { display: block; font-size: .86rem; color: #607083; text-transform: uppercase; letter-spacing: .08em; }
.result-stat span { display: block; margin-top: 4px; font-size: 1.1rem; font-weight: 900; }
.fact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 20px 0;
}
.fact-card {
  border: 1px solid #ead8ce;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}
.fact-card__image {
  display: block;
  background: #fff8f4;
  padding: 16px;
  text-align: center;
}
.fact-card__image img {
  width: 100%;
  max-width: 150px;
  object-fit: contain;
}
.fact-card__body { padding: 16px; }
.fact-card__body strong { display: block; color: #607083; font-size: .82rem; letter-spacing: .08em; text-transform: uppercase; }
.fact-card__body span { display: block; font-weight: 900; font-size: 1.1rem; margin-top: 3px; }
.result-links { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; }
.content-section { margin-top: 34px; }
.soft-callout {
  padding: 18px 20px;
  background: #fff0e9;
  box-shadow: none;
  font-weight: 800;
  color: #6b3d34;
}
.table-wrap { overflow-x: auto; margin: 18px 0; }
table { border-collapse: collapse; width: 100%; background: #fff; border-radius: 18px; overflow: hidden; }
th, td { padding: 14px 16px; border-bottom: 1px solid #ead8ce; text-align: left; }
th { background: #fff0e9; color: #573a33; }
.link-cloud,
.link-list,
.footer-links { display: flex; flex-wrap: wrap; gap: 10px; }
.link-cloud a,
.link-list a,
.footer-links a {
  padding: 10px 14px;
  border-radius: 999px;
  background: #fff0e9;
  color: #5b3b35;
  font-weight: 800;
}
.link-cloud--large a { font-size: .98rem; }
.link-list { flex-direction: column; align-items: flex-start; }
.link-list a { border-radius: 14px; }
.faq-block details {
  border: 1px solid #ead8ce;
  border-radius: 16px;
  padding: 15px 17px;
  margin: 12px 0;
  background: #fff;
}
.faq-block summary { cursor: pointer; font-weight: 900; }
.content-sidebar { position: sticky; top: var(--sidebar-stop-top, 94px); display: grid; gap: 18px; }
.sidebar-card { padding: 20px; box-shadow: 0 10px 30px rgba(35, 48, 64, .08); }
.sidebar-card h2 { font-size: 1rem; margin: 0 0 12px; }
.sidebar-card a { display: block; padding: 10px 0; border-top: 1px solid #f0e3dc; font-weight: 800; }
.sidebar-card a:first-of-type { border-top: 0; }
.site-footer { margin-top: 40px; background: #243040; color: #fff; }
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 40px 22px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.site-footer h2 { margin-top: 0; }
.site-footer p { color: #dce3ea; }
.site-footer a { color: #fff; background: rgba(255,255,255,.12); }
@media (max-width: 940px) {
  .page-wrap { grid-template-columns: 1fr; }
  .content-sidebar { position: static; }
  .result-grid, .fact-grid { grid-template-columns: 1fr; }
  .site-footer__inner { grid-template-columns: 1fr; }
  .hero h1, .article-card h1 { font-size: 2.6rem; }
}
@media (max-width: 560px) {
  .site-header__inner { padding: 0 14px; }
  .mobile-menu { max-width: 92vw; padding: 18px; }
  .mobile-menu__section a { font-size: .98rem; padding: 10px 11px; }
  .hero { padding: 34px 16px 20px; }
  .page-wrap { padding: 14px; }
  .article-card { border-radius: 18px; padding: 20px; }
  .tool-card, .result-card { padding: 22px; }
  .button-link--button { width: 100%; }
  th, td { padding: 12px; }
  .hero h1, .article-card h1 { font-size: 2.1rem; }
}

.mini-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.mini-card {
  border: 1px solid #ead8ce;
  border-radius: 20px;
  background: #fff8f4;
  padding: 18px;
}
.mini-card h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.25;
}
.mini-card p { margin: 0; }
.section-lead {
  font-size: 1.08rem;
  font-weight: 800;
  color: #243040 !important;
}
.soft-callout--small {
  box-shadow: none;
  margin: 18px 0;
}
.fact-card__static-image {
  display: block;
  width: 100%;
  max-width: 180px;
  margin: 18px auto 0;
  padding: 0 18px;
}
.fact-grid--static .fact-card {
  display: flex;
  flex-direction: column;
}
@media (max-width: 940px) {
  .mini-card-grid { grid-template-columns: 1fr; }
}


.result-next {
  margin-top: 22px;
  padding: 20px;
  border-radius: 22px;
  background: #fff8f4;
  border: 1px solid #ead8ce;
}
.result-next h3 {
  margin: 0 0 8px;
  font-size: 1.2rem;
}
.result-next p { margin-top: 0; }
.result-mini-note {
  display: block;
  margin-top: 12px;
  color: #607083;
  font-size: .92rem;
}
.breed-hub-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 22px 0;
}
.breed-hub-card {
  display: block;
  padding: 16px;
  border: 1px solid #ead8ce;
  border-radius: 18px;
  background: #fff;
}
.breed-hub-card strong { display: block; color: #243040; }
.breed-hub-card span { display: block; color: #607083; margin-top: 4px; }
.zodiac-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.zodiac-card {
  border: 1px solid #ead8ce;
  border-radius: 20px;
  background: #fff;
  padding: 16px;
}
.zodiac-card img {
  display: block;
  width: 86px;
  height: 86px;
  object-fit: contain;
  margin-bottom: 10px;
}
.zodiac-card h3 { margin: 0 0 8px; }
.zodiac-card p { margin: 0; }
@media (max-width: 760px) {
  .breed-hub-list, .zodiac-grid { grid-template-columns: 1fr; }
}


/* Result card and sidebar polish */
.result-card--fun {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #ffffff 0%, #fff8f4 58%, #fff0e9 100%);
}
.result-card--fun:before {
  content: '';
  position: absolute;
  width: 260px;
  height: 260px;
  right: -90px;
  top: -110px;
  border-radius: 50%;
  background: rgba(247, 127, 111, .16);
}
.result-spotlight {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 24px;
  align-items: center;
}
.result-summary {
  font-size: 1.08rem;
  color: #415065;
}
.result-age-bubble {
  width: 190px;
  min-height: 190px;
  border-radius: 50%;
  background: #243040;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  justify-self: end;
  text-align: center;
  box-shadow: 0 20px 45px rgba(36, 48, 64, .22);
}
.result-age-bubble span,
.result-age-bubble small {
  color: #dce3ea;
  font-weight: 800;
}
.result-age-bubble strong {
  display: block;
  font-size: 4rem;
  line-height: .95;
  letter-spacing: -.05em;
}
.result-badge-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 4px;
}
.result-badge-row span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #ead8ce;
  padding: 9px 13px;
  font-weight: 900;
  color: #573a33;
}
.result-grid--fun .result-stat {
  background: #ffffff;
}
.result-story-card {
  border: 1px solid #ead8ce;
  border-radius: 22px;
  padding: 20px;
  background: #fff;
  margin: 20px 0;
}
.result-story-card h3 { margin: 0 0 8px; }
.result-story-card p { margin: 0; }
.result-birthday-card {
  border: 2px dashed #f77f6f;
  border-radius: 24px;
  padding: 22px;
  margin: 22px 0;
  background: #fff;
}
.result-birthday-card h3 { margin: 0 0 10px; }
.result-birthday-card__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 16px 0;
}
.result-birthday-card__grid div {
  background: #fff8f4;
  border: 1px solid #f1dcd2;
  border-radius: 16px;
  padding: 12px;
}
.result-birthday-card__grid strong {
  display: block;
  color: #607083;
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.result-birthday-card__grid span {
  display: block;
  color: #243040;
  font-weight: 900;
  margin-top: 3px;
}
.button-link--light {
  background: #fff0e9;
  color: #6b3d34;
  box-shadow: none;
}
.button-link--light:hover {
  color: #fff;
}
.search-intent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0;
}
.search-intent-card {
  display: block;
  border: 1px solid #ead8ce;
  border-radius: 20px;
  background: #fff;
  padding: 18px;
}
.search-intent-card strong {
  display: block;
  color: #243040;
  font-size: 1.05rem;
}
.search-intent-card span {
  display: block;
  color: #607083;
  margin-top: 5px;
}
@media (max-width: 940px) {
  .result-spotlight { grid-template-columns: 1fr; }
  .result-age-bubble { justify-self: start; width: 160px; min-height: 160px; }
  .result-age-bubble strong { font-size: 3.2rem; }
  .result-birthday-card__grid, .search-intent-grid { grid-template-columns: 1fr; }
}
@media print {
  body * { visibility: hidden; }
  .result-card--fun, .result-card--fun * { visibility: visible; }
  .result-card--fun {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    box-shadow: none;
    border: 0;
  }
  .result-links, .result-next, .button-link { display: none !important; }
}


/* Birthday visual polish */
.fact-grid--birthday-facts {
  align-items: stretch;
}
.fact-card--visual {
  position: relative;
  border-color: #ead8ce;
  box-shadow: 0 14px 34px rgba(36, 48, 64, .08);
}
.fact-card--visual:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(36, 48, 64, .11);
}
.fact-card--visual .fact-card__image {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 24% 18%, rgba(247, 127, 111, .15), transparent 28%),
    radial-gradient(circle at 82% 22%, rgba(42, 155, 184, .13), transparent 26%),
    linear-gradient(135deg, #ffffff 0%, #fff8f4 100%);
  border-bottom: 1px solid #f1dcd2;
}
.fact-card--visual .fact-card__image img {
  width: 122px;
  height: 122px;
  max-width: none;
  filter: drop-shadow(0 12px 18px rgba(36, 48, 64, .13));
}
.fact-card--visual .fact-card__body {
  min-height: 154px;
}
.fact-card--visual .fact-card__body p {
  margin-bottom: 0;
}
.result-birthday-card {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 14% 10%, rgba(247, 127, 111, .16), transparent 28%),
    radial-gradient(circle at 86% 12%, rgba(83, 170, 129, .12), transparent 26%),
    #ffffff;
}
.result-birthday-card:before {
  content: '🐾';
  position: absolute;
  right: 20px;
  top: 14px;
  font-size: 2.3rem;
  opacity: .14;
}
.result-birthday-card__item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}
.result-mini-icon {
  display: flex;
  width: 46px;
  height: 46px;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #ead8ce;
}
.result-mini-icon img {
  display: block;
  width: 34px;
  height: 34px;
  object-fit: contain;
}
.result-birthday-card__grid em {
  display: block;
  color: #243040;
  font-style: normal;
  font-weight: 900;
  margin-top: 3px;
}
.result-card--fun:after {
  content: '';
  position: absolute;
  left: -56px;
  bottom: -70px;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(83, 170, 129, .10);
  pointer-events: none;
}
.result-card--fun > * {
  position: relative;
  z-index: 1;
}
@media (max-width: 560px) {
  .fact-card--visual .fact-card__image {
    min-height: 126px;
  }
  .fact-card--visual .fact-card__image img {
    width: 104px;
    height: 104px;
  }
  .result-birthday-card__item {
    grid-template-columns: 42px minmax(0, 1fr);
  }
  .result-mini-icon {
    width: 40px;
    height: 40px;
  }
  .result-mini-icon img {
    width: 30px;
    height: 30px;
  }
}
/* Specificity guard for birthday-card icons */
.result-birthday-card__grid .result-mini-icon {
  display: flex;
  color: inherit;
  font-weight: normal;
  margin-top: 0;
}
.result-birthday-card__grid .result-birthday-card__text {
  display: block;
  margin-top: 0;
}

/* Puppy milestone polish */
.result-stat--highlight a {
  color: inherit;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Version 12 internal linking polish */
.next-page-panel {
  margin-top: 38px;
  padding: 24px;
  border: 1px solid #ead8ce;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff8f4 0%, #ffffff 100%);
}
.next-page-panel h2 { margin-top: 0; }
.next-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 18px;
}
.next-card {
  display: block;
  padding: 16px;
  border: 1px solid #ead8ce;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(35, 48, 64, .06);
}
.next-card strong {
  display: block;
  color: #243040;
  font-size: 1rem;
}
.next-card span {
  display: block;
  color: #607083;
  margin-top: 5px;
  line-height: 1.45;
}
.next-card:hover,
.next-card:focus {
  transform: translateY(-1px);
}
.content-sidebar {
  align-content: start;
}
@media (max-width: 700px) {
  .next-card-grid { grid-template-columns: 1fr; }
  .next-page-panel { padding: 18px; }
}

/* Version 14 breed hub grouping */
.breed-hub-section {
  margin: 24px 0 30px;
  padding: 18px;
  border: 1px solid #ead8ce;
  border-radius: 22px;
  background: #fffaf6;
}
.breed-hub-section h3 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  color: #243040;
}
.breed-hub-section p {
  margin-top: 0;
}
.breed-hub-section .breed-hub-list {
  margin-bottom: 0;
}
