/* Shared November 2026 refinements: expanded navigation, team cards and article galleries. */
@media (min-width: 951px) {
  header .nav-row { gap: clamp(14px, 2vw, 32px); }
  header nav.top-inline {
    display: flex !important;
    flex: 0 1 auto !important;
    width: auto !important;
    min-width: 0;
    gap: clamp(8px, 1vw, 18px) !important;
  }
  header nav.top-inline a {
    font-size: clamp(.72rem, .82vw, .86rem) !important;
    padding-inline: 0 !important;
    white-space: nowrap;
  }
}

@media (min-width: 951px) and (max-width: 1120px) {
  header .nav-row { padding-inline: 16px !important; }
  header nav.top-inline { gap: 8px !important; }
  header nav.top-inline a { font-size: .72rem !important; }
}

header nav.top-inline a.current,
header nav.top-inline a[aria-current="page"] {
  position: relative;
  color: #fff !important;
  font-weight: 900 !important;
}
header nav.top-inline a.current::after,
header nav.top-inline a[aria-current="page"]::after {
  content: '';
  position: absolute;
  right: 7px;
  bottom: 4px;
  left: 7px;
  height: 3px;
  border-radius: 999px;
  background: #c9a7ff;
}
header nav.dropdown a.current,
header nav.dropdown a[aria-current="page"] {
  border-radius: 10px !important;
  background: rgba(201,167,255,.16) !important;
  color: #fff !important;
  font-weight: 850 !important;
}

.amounts .amount { appearance: none; width: 100%; font: inherit; cursor: pointer; transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease; }
.amounts .amount:hover { transform: translateY(-2px); border-color: #a875e6; }
.amounts .amount.selected,
.amounts .amount[aria-pressed="true"] { border-color: #5a18a7 !important; background: #f0e5ff !important; box-shadow: 0 0 0 3px rgba(90,24,167,.12); }
.donation-selection { margin: 10px 0 0 !important; color: #5a18a7 !important; font-size: .84rem !important; font-weight: 750; text-align: center; }

/* Story photography should fill a deliberate landscape frame rather than sit in odd squares. */
.story-grid .story img {
  width: 100% !important;
  aspect-ratio: 4 / 3 !important;
  object-fit: cover !important;
  object-position: center !important;
}
.feed-list .story-photo,
.feed-list .story-photo a { overflow: hidden !important; }
.feed-list .story-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  transform: none !important;
}
.feed-list .story-photo--contain img { object-fit: contain !important; padding: 18px !important; background: #f4eefc !important; }
.feed-list .story-photo--portrait img { object-fit: cover !important; padding: 0 !important; background: transparent !important; }
@media (min-width: 901px) {
  .feed-list .story-card {
    min-height: 390px !important;
    height: auto !important;
    max-height: none !important;
    grid-template-columns: minmax(300px, 38%) minmax(0, 1fr) !important;
  }
  .feed-list .story-photo,
  .feed-list .story-photo a,
  .feed-list .story-photo img,
  .feed-list .story-body {
    min-height: 390px !important;
    height: 390px !important;
    max-height: 390px !important;
  }
}
@media (max-width: 900px) {
  .feed-list .story-card { height: auto !important; max-height: none !important; }
  .feed-list .story-photo,
  .feed-list .story-photo a,
  .feed-list .story-photo img {
    min-height: 0 !important;
    height: auto !important;
    max-height: none !important;
    aspect-ratio: 16 / 10 !important;
  }
}

.people .profile-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
}
.people .profile-card { height: 100%; }
.people .profile-card--founder {
  grid-column: 1 / -1;
  width: min(100%, 360px);
  justify-self: center;
}
.people .profile-card--founder .profile-photo {
  aspect-ratio: 16 / 9 !important;
}
.people .profile-card--founder .profile-photo img {
  object-position: center 6% !important;
}
.people .profile-photo { aspect-ratio: 4 / 5; overflow: hidden; }
.people .profile-photo img { width: 100%; height: 100%; object-fit: cover; }

.article-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 32px 0 40px;
}
.article-photo-grid figure { margin: 0; }
.article-photo-grid img {
  width: 100%;
  height: min(58vw, 560px);
  object-fit: cover;
  border-radius: 20px;
  display: block;
}
.article-photo-grid figcaption {
  margin-top: 9px;
  color: #554c68;
  font-size: .9rem;
  line-height: 1.45;
}
@media (max-width: 640px) {
  .article-photo-grid { grid-template-columns: 1fr; }
  .article-photo-grid img { height: auto; max-height: 620px; object-fit: contain; background: #f4f0fa; }
}

/* Homepage success stories replace the stale available-dog cards. */
.success-showcase { padding: clamp(68px, 8vw, 108px) 0; background: #f4eefc; }
.success-showcase .section-head { align-items: end; }
.success-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 34px; }
.success-card { overflow: hidden; border: 1px solid #ded1f1; border-radius: 24px; background: #fff; box-shadow: 0 16px 38px rgba(43,0,107,.09); }
.success-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: center; }
.success-card-copy { padding: 22px; }
.success-card-copy span { display: block; margin-bottom: 8px; color: #6b3aac; font-size: .74rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.success-card-copy h3 { margin: 0 0 9px; color: #2b006b; font-size: 1.35rem; }
.success-card-copy p { margin: 0 0 16px; color: #5d536b; line-height: 1.6; }
.success-card-copy a { color: #2b006b; font-weight: 850; }
@media (max-width: 820px) { .success-grid { grid-template-columns: 1fr; } .success-card { display: grid; grid-template-columns: minmax(150px, 38%) 1fr; } .success-card img { height: 100%; aspect-ratio: auto; } }
@media (max-width: 540px) { .success-card { display: block; } .success-card img { height: auto; aspect-ratio: 4 / 3; } }

/* A designed archive rather than a plain disclosure list. */
.complete-story-index { margin-top: clamp(70px, 9vw, 120px) !important; margin-bottom: 80px !important; }
.complete-story-index details { overflow: hidden; border: 1px solid #d9c8ef !important; border-radius: 28px !important; background: linear-gradient(180deg,#f5effd 0,#fff 230px) !important; box-shadow: 0 24px 60px rgba(43,0,107,.11) !important; }
.complete-story-index summary { display: flex !important; justify-content: space-between !important; align-items: center !important; gap: 24px !important; padding: 26px 30px !important; list-style: none !important; background: #2b006b !important; color: #fff !important; cursor: pointer; }
.complete-story-index summary::-webkit-details-marker { display: none; }
.complete-story-index summary span { display: grid; gap: 5px; }
.complete-story-index summary small { color: #c9a7ff; font-size: .7rem; font-weight: 900; letter-spacing: .13em; }
.complete-story-index summary strong { color: #fff; font-size: clamp(1.2rem, 2.5vw, 1.75rem); }
.complete-story-index summary em { flex: 0 0 auto; padding: 9px 13px; border: 1px solid rgba(255,255,255,.32); border-radius: 999px; color: #fff; font-size: .78rem; font-style: normal; font-weight: 800; }
.archive-head { padding: 36px 30px 20px; }
.archive-head h2 { margin: 8px 0 9px; color: #2b006b; font-size: clamp(2rem, 4vw, 3.1rem); }
.archive-head p { max-width: 760px; color: #5d536b; line-height: 1.68; }
.archive-grid { display: grid !important; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 13px !important; margin: 0 !important; padding: 10px 30px 34px !important; list-style: none !important; }
.archive-card { position: relative; min-width: 0; padding: 15px 16px 16px !important; border: 1px solid #e3d8f1; border-left: 5px solid #7e9b6e; border-radius: 16px; background: rgba(255,255,255,.9); }
.archive-card[data-category="success"] { border-left-color: #7c3db9; }
.archive-card[data-category="fundraising"] { border-left-color: #c99a4b; }
.archive-card[data-category="event"] { border-left-color: #c15b4a; }
.archive-cat { display: block; margin-bottom: 7px; color: #6c5d7d; font-size: .68rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.archive-card a { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 8px 14px; align-items: center; }
.archive-card strong { color: #2b006b; font-size: .98rem; line-height: 1.32; }
.archive-date { color: #6b6177; font-size: .78rem; line-height: 1.4; }
.archive-arrow { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #eee3fb; color: #2b006b; font-weight: 900; }
.archive-card:hover { border-color: #b89cdb; box-shadow: 0 10px 24px rgba(43,0,107,.08); }
@media (max-width: 720px) { .archive-grid { grid-template-columns: 1fr; padding-inline: 14px !important; } .archive-head { padding-inline: 18px; } .complete-story-index summary { padding: 20px !important; } }

/* Final responsive media QA: show photographs cleanly instead of forcing circles or tiny thumbnails. */
html body main > section.hero .photo,
html body main > section.article-hero .article-hero-photo {
  width: min(38vw, 430px) !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  padding: 7px !important;
  overflow: hidden !important;
  border: 1px solid rgba(255,255,255,.5) !important;
  border-radius: 26px !important;
  background: #f7f1df !important;
  box-shadow: 0 24px 60px rgba(2,8,34,.34) !important;
}
html body main > section.hero .photo img,
html body main > section.article-hero .article-hero-photo img {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: 19px !important;
  background: transparent !important;
  transform: none !important;
}
html body main > section.hero.hero--graphic .photo {
  width: min(43vw, 520px) !important;
  aspect-ratio: 16 / 9 !important;
  background: #160033 !important;
}
html body main > section.hero.hero--graphic .photo img {
  object-fit: cover !important;
  background: #160033 !important;
}

/* Let the supplied team photographs lead each card and keep faces/dogs visible. */
html body main .people .profile-card {
  padding: 0 0 25px !important;
  overflow: hidden !important;
  align-items: stretch !important;
}
html body main .people .profile-photo {
  width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  aspect-ratio: 4 / 3 !important;
  margin: 0 0 7px !important;
  border: 0 !important;
  border-radius: 0 !important;
}
html body main .people .profile-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center 38% !important;
  background: transparent !important;
  border-radius: 0 !important;
}
html body main .people img[src*="dawn-founder"] { object-position: center 34% !important; }
html body main .people img[src*="jbd"] { object-position: center 30% !important; }
html body main .people img[src*="becky"] { object-position: center 48% !important; }
html body main .people img[src*="liz"] { object-position: center 44% !important; }
html body main .people img[src*="neil"] { object-position: center 20% !important; }
html body main .people img[src*="paula"] { object-position: center 42% !important; }
html body main .people img[src*="trish"] { object-position: center 38% !important; }
html body main > section.hero .photo img[src*="first-2027-calendar"] { object-fit: contain !important; background: #f7f1df !important; }
html body main .people .profile-card > :not(.profile-photo) {
  margin-right: 22px !important;
  margin-left: 22px !important;
}

.source-record {
  margin-top: 34px !important;
  padding: 24px !important;
  border: 1px solid #ded1f1 !important;
  border-left: 5px solid #7e9b6e !important;
  border-radius: 18px !important;
  background: #f8f4fc !important;
}
.source-record h2 { margin-top: 0 !important; }
.source-record ul { margin: 14px 0 0 !important; padding-left: 20px !important; }
.source-record a { color: #2b006b !important; font-weight: 800 !important; text-decoration: underline !important; text-underline-offset: 3px; }

@media (max-width: 950px) {
  html body main > section.hero .photo,
  html body main > section.article-hero .article-hero-photo {
    width: min(100%, 620px) !important;
    height: auto !important;
    min-height: 0 !important;
    aspect-ratio: 4 / 3 !important;
  }
  html body main > section.hero.hero--graphic .photo { aspect-ratio: 16 / 9 !important; }
}

@media (max-width: 699px) {
  html body main .page-hero > .blob { display: none !important; }
  html body main > section.hero .photo,
  html body main > section.article-hero .article-hero-photo {
    width: calc(100% - 28px) !important;
    max-width: 520px !important;
    border-radius: 20px !important;
  }
  html body main > section.hero.hero--graphic .photo {
    width: calc(100% - 28px) !important;
    max-width: 520px !important;
    aspect-ratio: 16 / 9 !important;
  }
  html body main > section.hero .photo img,
  html body main > section.article-hero .article-hero-photo img { border-radius: 14px !important; }
  html body main .people .profile-grid { gap: 22px !important; }
  html body main .people .profile-photo { aspect-ratio: 4 / 3 !important; }
}

/* Compact, deliberate mobile heroes across every page family. */
@media (max-width: 950px) {
  html body main > section.page-hero,
  html body main > section.guide-hero {
    min-height: 0 !important;
    height: auto !important;
    padding-top: clamp(42px, 7vw, 64px) !important;
    padding-bottom: clamp(42px, 7vw, 64px) !important;
  }
  html body main > section.hero {
    min-height: 0 !important;
    height: auto !important;
    padding-top: clamp(36px, 6vw, 58px) !important;
    padding-bottom: clamp(36px, 6vw, 58px) !important;
  }
  html body main > section.hero .photo,
  html body main > section.article-hero .article-hero-photo {
    max-height: 350px !important;
    aspect-ratio: 16 / 9 !important;
  }
}

@media (max-width: 699px) {
  html body main > section.page-hero,
  html body main > section.guide-hero {
    padding: 38px 16px 42px !important;
  }
  html body main > section.page-hero h1,
  html body main > section.guide-hero h1 {
    margin-block: 10px 14px !important;
    font-size: clamp(2.15rem, 10vw, 3rem) !important;
    line-height: 1.02 !important;
  }
  html body main > section.page-hero p,
  html body main > section.guide-hero p {
    max-width: 34rem !important;
    font-size: .98rem !important;
    line-height: 1.58 !important;
  }
  html body main > section.hero {
    padding: 30px 14px 36px !important;
  }
  html body main > section.hero h1 {
    margin-block: 10px 12px !important;
    font-size: clamp(2rem, 9.5vw, 2.85rem) !important;
    line-height: 1.03 !important;
  }
  html body main > section.hero p,
  html body main > section.hero .lead {
    font-size: .96rem !important;
    line-height: 1.58 !important;
  }
  html body main > section.hero .photo,
  html body main > section.article-hero .article-hero-photo {
    width: min(100%, 520px) !important;
    max-height: 235px !important;
    aspect-ratio: 16 / 9 !important;
    padding: 5px !important;
  }
}

/* Mobile navigation is a full-height editorial sheet with oversized links. */
@media (max-width: 950px) {
  body.mobile-menu-open { overflow: hidden !important; }
  header .menu-btn {
    width: 46px !important;
    height: 46px !important;
    padding: 9px !important;
    border: 1px solid rgba(255,255,255,.24) !important;
    border-radius: 14px !important;
    background: rgba(255,255,255,.08) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.12) !important;
  }
  header .menu-btn:hover,
  header .menu-btn[aria-expanded="true"] { background: rgba(201,167,255,.18) !important; }
  header .menu-btn span {
    width: 24px !important;
    margin: 5px auto !important;
    border-radius: 999px;
    transition: transform .22s ease, opacity .18s ease !important;
  }
  header .menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  header .menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  header .menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  header nav#dropdownNav.open:not([hidden]) {
    position: fixed !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    top: 76px !important;
    right: 0 !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: calc(100dvh - 76px) !important;
    max-height: none !important;
    padding: 18px 22px 28px !important;
    overflow-y: auto !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #fffdf7 !important;
    box-shadow: 0 24px 64px rgba(15,0,36,.22) !important;
  }
  header nav#dropdownNav a {
    display: flex !important;
    flex: 0 0 auto !important;
    min-height: 59px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 11px 10px !important;
    border: 0 !important;
    border-bottom: 1px solid #d8d3c7 !important;
    border-radius: 0 !important;
    background: transparent !important;
    color: #160033 !important;
    font-family: "Trebuchet MS", Arial, sans-serif !important;
    font-size: clamp(1.5rem, 7vw, 2.55rem) !important;
    font-weight: 900 !important;
    letter-spacing: -.035em !important;
    line-height: 1.03 !important;
    text-align: center !important;
    text-transform: uppercase !important;
  }
  header nav#dropdownNav a:hover { background: #f7f0ff !important; color: #2b006b !important; }
  header nav#dropdownNav a.current,
  header nav#dropdownNav a[aria-current="page"] {
    margin: 7px 0 !important;
    border: 1px solid #e5d9f5 !important;
    border-radius: 14px !important;
    background: #f3eaff !important;
    color: #2b006b !important;
    box-shadow: 0 8px 24px rgba(43,0,107,.08) !important;
  }
}

@media (max-width: 380px) {
  header nav#dropdownNav.open:not([hidden]) { padding: 12px 16px 20px !important; }
  header nav#dropdownNav a { min-height: 52px !important; font-size: 1.35rem !important; }
}

@media (min-width: 700px) and (max-width: 950px) {
  .people .profile-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people .profile-card--founder { grid-column: 1 / -1; width: min(100%, 360px); justify-self: center; }
}

@media (max-width: 699px) {
  .people .profile-grid { grid-template-columns: 1fr; }
  .people .profile-card--founder { grid-column: auto; }
}

@media (max-width: 760px) {
  main .filter-bar::before {
    content: none !important;
    display: none !important;
  }
}

/* News-card imagery uses a useful editorial frame instead of a forced square. */
@media (min-width: 901px) {
  html body main .feed-list .story-card {
    grid-template-columns: minmax(400px, 42%) minmax(0, 1fr) !important;
    min-height: 320px !important;
    height: auto !important;
    max-height: none !important;
    align-items: stretch !important;
  }
  html body main .feed-list .story-photo,
  html body main .feed-list .story-photo a {
    width: 100% !important;
    height: auto !important;
    min-height: 320px !important;
    max-height: none !important;
    align-self: stretch !important;
  }
  html body main .feed-list .story-photo img {
    width: 100% !important;
    height: 100% !important;
    min-height: 320px !important;
    max-height: none !important;
    object-fit: cover !important;
  }
  html body main .feed-list .story-photo--contain img {
    padding: 16px !important;
    object-fit: contain !important;
    background: #f3eaff !important;
  }
}
