/* ============================================================
   Humane Society of Atchison — interior page styles
   ============================================================ */

/* ── Page hero (interior banner) ── */
.page-hero {
  background: linear-gradient(160deg, var(--teal) 0%, var(--teal-dk) 100%);
  color: #fff; padding: clamp(44px, 7vw, 76px) 0;
}
.page-hero h1 { color: #fff; font-size: clamp(34px, 6vw, 56px); }
.page-hero p { color: #d4e6e9; font-size: clamp(16px, 2.3vw, 19px); max-width: 60ch; margin: 10px auto 0; }
.page-hero.center { text-align: center; }
.page-hero .eyebrow { color: #fff; background: rgba(255,255,255,.16); }

/* ── Prose / content columns ── */
.prose { max-width: 760px; }
.prose.legal h2 { font-size: clamp(22px, 3vw, 28px); margin-top: 1.6em; }
.prose.legal h2:first-child { margin-top: 0; }
.prose.legal p, .prose.legal li { font-size: 15.5px; }
.prose h2 { margin-top: 1.4em; }
.prose h3 { color: var(--amber-dk); margin: 1.2em 0 .3em; }
.prose ul { margin: 0 0 1rem 1.1rem; }
.prose li { margin-bottom: .4rem; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: start; }
.grid-2.narrow { gap: 30px; }
@media (max-width: 820px) { .grid-2 { grid-template-columns: 1fr; gap: 28px; } }

/* ── Info / feature cards (same system as the animal & event cards) ── */
.cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 24px; }
.cards > * { flex: 0 0 300px; max-width: 100%; }
@media (max-width: 720px) and (min-width: 601px) { .cards > * { flex-basis: calc((100% - 24px) / 2); } }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column; padding: 0;
  transition: transform .22s cubic-bezier(.32,.72,0,1), box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(31,111,125,.35); }
.card .ico {
  font-size: 44px; line-height: 1; margin: 0; height: 120px; display: grid; place-items: center;
  background: radial-gradient(120px 80px at 50% 110%, rgba(224,145,58,.22), transparent 70%), linear-gradient(160deg, var(--cream-2), #fff);
  border-bottom: 1px solid var(--line);
}
.card .ico--pair { display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 40px; }
.card .ico--pair span:first-child { transform: translateY(-3px) scaleX(-1); }  /* person faces the puppy */
.card .ico--pair span:last-child { transform: translateY(6px); }
.card--coral .ico { background: radial-gradient(120px 80px at 50% 110%, rgba(224,80,58,.22), transparent 70%), linear-gradient(160deg, var(--cream-2), #fff); }
.card--teal .ico { background: radial-gradient(120px 80px at 50% 110%, rgba(31,111,125,.22), transparent 70%), linear-gradient(160deg, var(--cream-2), #fff); }
.card h3 { color: var(--teal); font-size: 24px; margin: 0 0 6px; padding: 18px 18px 0; line-height: 1.1; }
.card p { color: var(--ink-soft); font-size: 14.5px; padding: 0 18px; margin: 0; flex: 1 1 auto; }
.card__foot { padding: 14px 18px 18px; margin-top: auto; }
.card__address { font-weight: 800; color: var(--ink); line-height: 1.5; margin-top: 8px !important; flex: 0 0 auto !important; }
.card__address--email { font-size: 12.5px; letter-spacing: -.02em; white-space: nowrap; overflow-wrap: anywhere; }
.card p + p { margin-top: 6px; }
.card__foot .btn { width: 100%; justify-content: center; font-size: 15px; padding: 12px 18px; }
.card__foot .btn--ghost { background: #fff; }
.card > p:last-child { padding-bottom: 20px; }
.card .step { position: absolute; top: 12px; left: 12px; width: 32px; height: 32px; border-radius: 50%; background: var(--teal); color: #fff; font-weight: 900; font-size: 14px; display: grid; place-items: center; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.card { position: relative; }

/* ── Callout strip ── */
.callout {
  background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 20px 22px; box-shadow: var(--shadow-sm); display: flex; align-items: center;
  justify-content: space-between; gap: 20px; flex-wrap: wrap;
  transition: transform .22s cubic-bezier(.32,.72,0,1), box-shadow .22s ease;
}
.callout:hover { box-shadow: var(--shadow); }
.callout > div { display: flex; align-items: center; gap: 16px; flex: 1 1 320px; min-width: 0; }
.callout__ico {
  flex: 0 0 auto; width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 26px;
  background: radial-gradient(60px 40px at 50% 110%, rgba(224,145,58,.28), transparent 70%), var(--cream-2);
}
.callout h3 { color: var(--teal); font-size: 22px; margin: 0; }
.callout p { color: var(--ink-soft); margin: 4px 0 0; font-size: 14.5px; }
.callout .btn { flex: 0 0 auto; }
@media (max-width: 600px) { .callout .btn { width: 100%; justify-content: center; } }

/* ── Filter bars (Adopt) — segmented pill cards, same as the admin ── */
.pill-filters {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 5px;
  width: fit-content; max-width: 100%; margin: 0 auto 12px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow-sm);
}
.pill-filters--sub { margin-bottom: 26px; }
.pill-filter {
  background: none; border: 0; border-radius: 999px; padding: 9px 16px;
  font-family: inherit; font-weight: 800; font-size: 14.5px; color: var(--ink-soft); cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.pill-filter:hover { background: var(--cream-2); color: var(--teal); }
.pill-filter.active { background: var(--teal); color: #fff; }
.pill-filter:focus-visible { outline: 3px solid rgba(31,111,125,.35); outline-offset: 2px; }
.pill-filters--sub .pill-filter { font-size: 13px; padding: 8px 14px; }
.pill-filters--sub .pill-filter:hover { color: var(--amber-dk); }
.pill-filters--sub .pill-filter.active { background: var(--amber); color: #fff; }
@media (max-width: 600px) {
  .pill-filters { width: 100%; border-radius: 20px; padding: 6px; }
  .pill-filter { flex: 1 1 auto; text-align: center; padding: 9px 10px; }
}
.animal-card__badge.adopted { background: var(--ink-soft); }

/* ── Adoptable animals grid ── */
.animals-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; gap: 24px; }
.animal-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
  transition: transform .22s cubic-bezier(.32,.72,0,1), box-shadow .22s ease, border-color .22s ease;
}
.animal-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(31,111,125,.35); }
.animal-card__photo { aspect-ratio: 1 / 1; background: linear-gradient(160deg, var(--cream-2), #fff); position: relative; overflow: hidden; }
.animal-card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s cubic-bezier(.32,.72,0,1); }
.animal-card:hover .animal-card__photo img { transform: scale(1.04); }
.animal-card__photo .placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-size: 72px; color: var(--teal-lt); opacity: .8; }
.animal-card__badge {
  position: absolute; top: 12px; left: 12px; z-index: 1; font-size: 11.5px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: #fff; background: var(--ok); padding: 5px 11px; border-radius: 999px;
  box-shadow: 0 6px 16px -6px rgba(0,0,0,.4);
}
.animal-card__badge.pending { background: var(--amber); }
.animal-card__badge.adopted { background: var(--ink-soft); }
.animal-card__species {
  position: absolute; top: 10px; right: 12px; z-index: 1; width: 34px; height: 34px; border-radius: 50%;
  background: rgba(255,255,255,.92); display: grid; place-items: center; font-size: 18px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.35);
}
.animal-card__body { padding: 18px 18px 8px; flex: 1 1 auto; display: flex; flex-direction: column; gap: 8px; }
.animal-card__body h3 { color: var(--teal); font-size: 26px; margin: 0; line-height: 1.1; }
.animal-card__meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.animal-card__meta span {
  font-size: 12px; font-weight: 800; color: var(--ink-soft); background: var(--cream-2);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.animal-card__meta .chip-days { background: rgba(31,111,125,.12); color: var(--teal); }
.card .ico--img { padding: 10px; background: #fff; }
.card .ico--img img { max-height: 100%; max-width: 100%; object-fit: contain; cursor: zoom-in; border-radius: 10px; }
.animal-card__body p {
  font-size: 14.5px; color: var(--ink-soft); margin: 2px 0 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.animal-card.is-expanded .animal-card__body p { -webkit-line-clamp: unset; display: block; }
.animal-card__more {
  align-self: flex-start; background: none; border: 0; padding: 2px 0; margin-top: -2px; cursor: pointer;
  font-family: inherit; font-weight: 800; font-size: 13.5px; color: var(--teal); display: none;
}
.animal-card__more:hover { text-decoration: underline; }
.animal-card.has-more .animal-card__more { display: inline-block; }
.animal-card__foot { padding: 10px 18px 18px; margin-top: auto; }
.animal-card__cta { width: 100%; justify-content: center; font-size: 15px; padding: 12px 18px; }
.animal-card__cta.btn--ghost { background: #fff; }
.animal-card__home { display: block; text-align: center; font-weight: 800; color: var(--ink-soft); font-size: 14.5px; padding: 12px 0 2px; }
.grid-empty, .empty-state {
  grid-column: 1 / -1; text-align: center; color: var(--ink-soft); font-weight: 600;
  background: #fff; border: 1.5px dashed var(--line); border-radius: 20px; padding: 36px 24px; max-width: 560px; margin: 0 auto;
}
.grid-empty::before, .empty-state::before { content: "🐾"; display: block; font-size: 34px; margin-bottom: 10px; }
.empty-state a { color: var(--teal); font-weight: 800; }

/* ── Team cards (About page) ── */
.team-card .animal-card__photo { aspect-ratio: 1 / 1; }
@media (max-width: 600px) {
  .cards.team-grid { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 4px 2px 12px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .cards.team-grid::-webkit-scrollbar { display: none; }
  .cards.team-grid > * { flex: 0 0 44% !important; max-width: none; scroll-snap-align: start; } /* two cards + a peek of the third */
  .team-card .animal-card__body { padding: 12px 12px 6px; gap: 6px; }
  .team-card .animal-card__body h3 { font-size: 18px; }
  .team-card__title { font-size: 11px; padding: 3px 8px; }
  .team-card .animal-card__body p { font-size: 13px; -webkit-line-clamp: 3; }
}
.team-card .animal-card__photo img { object-position: center top; }
.team-card__ph { width: 100%; height: 100%; background: var(--team-ph) center / cover no-repeat; }
.team-card .animal-card__body h3 { font-size: 24px; }
.team-card__title { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .04em; color: var(--amber-dk); background: rgba(224,145,58,.14); padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.team-card--board .team-card__title { color: var(--coral-dk); background: rgba(224,80,58,.12); }
.team-card .animal-card__body p { -webkit-line-clamp: 4; }

/* ── Carousel (animals + events): 3-up, snap, arrows ── */
.hs-car { position: relative; }
.animals-grid.hs-carousel, .events-list.hs-carousel {
  display: flex; grid-template-columns: none; justify-content: flex-start; gap: 24px;
  overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; padding: 8px 4px 16px;
  scrollbar-width: none; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain;
}
.hs-carousel::-webkit-scrollbar { display: none; }
.hs-carousel > * { flex: 0 0 calc((100% - 48px) / 3); max-width: none; scroll-snap-align: start; }
.hs-carousel > .grid-empty, .hs-carousel > .empty-state { flex: 0 0 100%; max-width: none; }
@media (max-width: 980px) { .hs-carousel > * { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 600px) { .hs-carousel > * { flex-basis: 100%; } .hs-carousel { gap: 16px; } }
.hs-car__btn {
  position: absolute; top: 38%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line);
  background: #fff; color: var(--teal); font-size: 30px; line-height: 1; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 14px 30px -12px rgba(20,50,60,.5); transition: transform .15s ease, opacity .15s ease;
  padding: 0 0 4px;
}
.hs-car__btn--prev { left: -18px; } .hs-car__btn--next { right: -18px; }
.hs-car__btn:hover:not([disabled]) { transform: scale(1.06); }
.hs-car__btn[disabled] { opacity: .3; cursor: default; }
.hs-car.no-scroll .hs-car__btn { display: none; }
.hs-car.no-scroll .hs-carousel { justify-content: center; }
@media (max-width: 700px) { .hs-car__btn--prev { left: 2px; } .hs-car__btn--next { right: 2px; } }

/* Card: "See more" story link + full-width Adopt me, photo count */
.animal-card__link {
  align-self: flex-start; display: inline-flex; align-items: center; gap: 6px; margin-top: 2px; padding: 4px 0;
  background: none; border: 0; font-family: inherit; font-weight: 800; font-size: 14px; color: var(--teal); cursor: pointer; text-decoration: none;
}
.animal-card__link .arr { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(31,111,125,.12); font-size: 13px; transition: transform .15s ease, background .15s ease; }
.animal-card__link:hover .arr { transform: translateX(3px); background: rgba(31,111,125,.2); }
.animal-card__link:hover { text-decoration: underline; }
.animal-card__foot--split { display: flex; gap: 8px; }
.animal-card__foot--split .btn { flex: 1 1 auto; justify-content: center; }
.animal-card.is-open { outline: 3px solid var(--amber); outline-offset: 2px; }
.animal-card__count { position: absolute; right: 12px; bottom: 12px; z-index: 2; background: rgba(0,0,0,.55); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 999px; text-decoration: none; cursor: pointer; transition: background .15s ease, transform .15s ease; }
.animal-card__count:hover { background: var(--teal); transform: translateY(-1px); }

/* Pet detail — expands below the carousel */
.pet-detail { margin-top: 0; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .5s cubic-bezier(.32,.72,0,1), opacity .3s ease, margin .3s ease; scroll-margin-top: 110px; }
.pet-detail.open { max-height: 2600px; opacity: 1; margin-top: 8px; }
.pet-detail__card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden;
  display: grid; grid-template-columns: 400px minmax(0, 1fr); max-width: 980px; margin: 0 auto;
}
.pet-detail__close { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--cream-2); color: var(--ink-soft); font-size: 24px; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform .15s ease, background .15s ease; }
.pet-detail__close:hover { background: var(--line); transform: rotate(90deg); }
.pet-detail__media { background: var(--cream-2); display: flex; flex-direction: column; }
.pet-detail__stage { position: relative; aspect-ratio: 1 / 1; background: #111; }
.pet-detail__stage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pet-detail__stage video { width: 100%; height: 100%; object-fit: contain; display: block; background: #111; }
.pet-detail__stage img { cursor: zoom-in; }
.pet-detail__ph { width: 100%; height: 100%; display: grid; place-items: center; font-size: 96px; background: linear-gradient(160deg, var(--cream-2), #fff); }
.pet-detail__thumbs { display: flex; gap: 8px; padding: 10px; overflow-x: auto; scrollbar-width: none; }
.pet-detail__thumbs::-webkit-scrollbar { display: none; }
.pet-detail__thumb { position: relative; flex: 0 0 60px; height: 60px; border-radius: 12px; overflow: hidden; border: 2px solid transparent; padding: 0; background: #fff; cursor: pointer; transition: border-color .15s ease, transform .15s ease; }
.pet-detail__thumb img, .pet-detail__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.pet-detail__thumb.on { border-color: var(--amber); }
.pet-detail__thumb:hover { transform: translateY(-2px); }
.pet-detail__play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 22px; background: rgba(0,0,0,.35); }
.pet-detail__info { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.pet-detail__info h2 { font-size: clamp(28px, 3vw, 34px); margin: 0; line-height: 1.05; }
.pet-detail__desc { color: var(--ink-soft); font-size: 15px; line-height: 1.6; white-space: normal; flex: 1 1 auto; min-height: 0; padding-right: 6px; }
.pet-detail__card { align-items: stretch; }
.pet-detail__media { min-height: 100%; }
.pet-detail__cta .btn { font-size: 15px; padding: 12px 18px; }
.pet-detail__cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 8px; }
.pet-detail__cta .btn { flex: 1 1 auto; justify-content: center; }
@media (max-width: 900px) { .pet-detail__card { grid-template-columns: 1fr; } .pet-detail__stage { aspect-ratio: 4 / 3; } .pet-detail__info { padding: 20px 18px 22px; } }
@media (prefers-reduced-motion: reduce) { .pet-detail { transition: none; } }

/* Subscribe card */
.subscribe-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-sm); padding: 22px 24px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 20px; align-items: center; max-width: 1000px; margin: 34px auto 0; }
.subscribe-card h3 { color: var(--teal); font-size: 24px; margin: 0 0 6px; }
.subscribe-card p { color: var(--ink-soft); font-size: 14.5px; margin: 0; }
.subscribe-card .form { gap: 10px; }
.subscribe-card .row2 { grid-template-columns: 1fr auto; align-items: end; }
.subscribe-card .opts { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; font-weight: 700; }
.subscribe-card .opts label { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; }
.subscribe-card .opts input { width: auto; }
@media (max-width: 760px) { .subscribe-card { grid-template-columns: 1fr; } .subscribe-card .row2 { grid-template-columns: 1fr; } }

/* Staff pick badge */
.animal-card__star { position: absolute; left: 12px; bottom: 12px; z-index: 1; background: var(--amber); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .04em; padding: 5px 11px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }

/* Donate need cards */
.card__urgent { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--coral); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 5px 11px; border-radius: 999px; box-shadow: 0 6px 16px -6px rgba(0,0,0,.4); }
.card__qty { display: inline-block; margin: 0 18px 4px; font-size: 12.5px; font-weight: 800; color: var(--amber-dk); background: rgba(224,145,58,.14); padding: 4px 10px; border-radius: 999px; align-self: flex-start; }
.card__how { font-size: 13.5px !important; color: var(--ink-soft); flex: 0 0 auto !important; margin-top: 6px !important; }

/* ── Adoption application drawer ── */
.apply-drawer { position: fixed; inset: 0; z-index: 1500; display: flex; justify-content: flex-end; background: rgba(20,40,45,.45); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .4s; }
.apply-drawer.open { opacity: 1; visibility: visible; transition: opacity .22s ease, visibility 0s; }
.apply-drawer__panel { width: min(600px, 100%); height: 100%; background: var(--cream); display: flex; flex-direction: column; border-radius: 24px 0 0 24px; box-shadow: -24px 0 60px -20px rgba(20,40,45,.5); transform: translateX(104%); transition: transform .4s cubic-bezier(.32,.72,0,1); will-change: transform; }
.apply-drawer.open .apply-drawer__panel { transform: none; }
.apply-drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 24px; background: #fff; border-bottom: 1px solid var(--line); flex: 0 0 auto; }
.apply-drawer__head h2 { font-size: 24px; margin: 0; }
.apply-drawer__head small { display: block; color: var(--ink-soft); font-size: 13px; font-weight: 700; margin-top: 2px; }
.apply-drawer__close { background: var(--cream-2); border: 0; width: 38px; height: 38px; border-radius: 50%; font-size: 24px; line-height: 1; cursor: pointer; color: var(--ink-soft); display: grid; place-items: center; transition: transform .15s ease, background .15s ease; }
.apply-drawer__close:hover { background: var(--line); transform: rotate(90deg); }
.apply-drawer__body { padding: 20px 24px 40px; overflow-y: auto; flex: 1 1 auto; overscroll-behavior: contain; }
.apply-drawer__body .info-panel { box-shadow: none; }
.apply-drawer__body .info-panel > h3:first-child { display: none; }
body.apply-open { overflow: hidden; }
@media (max-width: 600px) { .apply-drawer__panel { width: 100%; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .apply-drawer, .apply-drawer__panel { transition: none; } }

/* ── "Applying for" banner on the adoption form ── */
.apply-for {
  display: none; align-items: center; gap: 14px; margin-bottom: 18px; padding: 12px 14px;
  background: var(--cream); border: 1px solid var(--line); border-radius: 14px;
}
.apply-for.show { display: flex; }
.apply-for__thumb { width: 56px; height: 56px; border-radius: 12px; object-fit: cover; background: var(--cream-2); display: grid; place-items: center; font-size: 26px; flex: 0 0 auto; }
.apply-for__text { flex: 1 1 auto; min-width: 0; }
.apply-for__text .k { font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--coral-dk); }
.apply-for__text .v { font-family: "Chewy", cursive; font-size: 22px; color: var(--teal); line-height: 1.1; }
.apply-for__change { font-size: 13px; font-weight: 700; color: var(--ink-soft); background: none; border: 0; cursor: pointer; text-decoration: underline; padding: 4px; }
.apply-for__change:hover { color: var(--teal); }
#apply, #signup { scroll-margin-top: 110px; }

/* ── Events (same card system as animals) ── */
.events-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 320px)); justify-content: center; gap: 24px; }
.event-card .animal-card__photo .placeholder { font-size: 64px; color: var(--amber-dk); }
.event-card__date {
  position: absolute; top: 12px; left: 12px; z-index: 1; min-width: 56px; text-align: center;
  background: rgba(255,255,255,.96); border-radius: 14px; padding: 6px 8px 7px;
  box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); line-height: 1;
}
.event-card__date .m { display: block; font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--coral-dk); }
.event-card__date .d { display: block; font-family: "Chewy", cursive; font-size: 28px; color: var(--teal); margin-top: 2px; }
.event-card__date.past .m { color: var(--ink-soft); }
.event-card__date.past .d { color: var(--ink-soft); }
.event-card.is-past .animal-card__photo img { filter: grayscale(.5); opacity: .85; }
.event-card .animal-card__body h3 { font-size: 24px; }
.event-card__rows { display: grid; gap: 8px; margin: 2px 0 4px; }
.event-card__row { display: grid; grid-template-columns: 22px 1fr; gap: 8px; align-items: start; font-size: 14.5px; line-height: 1.45; color: var(--ink); font-weight: 600; overflow-wrap: anywhere; }
.event-card__row .ico { font-size: 16px; line-height: 1.3; text-align: center; }
.event-card__row.past { color: var(--ink-soft); }
.event-card__row em { font-style: normal; color: var(--ink-soft); font-weight: 700; }

/* Event photos are usually portrait flyers — show the whole poster instead of cropping it */
.event-card .animal-card__photo { aspect-ratio: 4 / 5; background: var(--cream-2); }
.event-card .animal-card__photo img { object-fit: contain; }
.event-card__past { display: block; text-align: center; font-weight: 800; color: var(--ink-soft); font-size: 14.5px; padding: 12px 0 2px; }
.empty-state { text-align: center; color: var(--ink-soft); padding: 40px 0; grid-column: 1 / -1; }

/* ── Contact / info panel ── */
.info-panel { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 22px 24px 26px; box-shadow: var(--shadow-sm); overflow: hidden; }
.info-panel h3 { color: var(--teal); margin-bottom: 14px; }
/* first h3 becomes a band header, like every other card */
.info-panel > h3:first-child {
  margin: -22px -24px 20px; padding: 16px 24px; font-size: 24px; line-height: 1.1;
  background: radial-gradient(220px 90px at 0% 120%, rgba(31,111,125,.16), transparent 70%), linear-gradient(160deg, var(--cream-2), #fff);
  border-bottom: 1px solid var(--line);
}
.info-row { display: flex; gap: 12px; padding: 11px 0; border-top: 1px solid var(--line); }
.info-row:first-of-type { border-top: 0; }
.info-row .ico { font-size: 20px; }
.info-row > span:not(.ico) { display: block; flex: 1 1 auto; min-width: 0; }
.info-row .k, .info-row .v { display: block; }
.info-row .v { overflow-wrap: anywhere; }
.info-row .k { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.info-row .v { font-weight: 700; color: var(--ink); }
.info-row a { color: var(--teal); text-decoration: none; }
.hours-table { width: 100%; border-collapse: collapse; }
.hours-table td { padding: 8px 0; border-top: 1px solid var(--line); font-size: 15px; }
.hours-table td:last-child { text-align: right; font-weight: 700; }
.hours-table tr:first-child td { border-top: 0; }
.map-embed { border: 0; width: 100%; height: 300px; border-radius: 20px; box-shadow: var(--shadow-sm); }
.map-embed--tall { height: 100%; min-height: 360px; }
.card__address .muted { font-weight: 600; }

/* ── Ways-to-give (donate) ── */
.give-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 320px)); justify-content: center; gap: 24px; }
.give-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px;
  box-shadow: var(--shadow-sm); text-align: center; display: flex; flex-direction: column;
  transition: transform .22s cubic-bezier(.32,.72,0,1), box-shadow .22s ease, border-color .22s ease;
}
.give-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(31,111,125,.35); }
.give-card .ico { font-size: 38px; margin-bottom: 12px; }
.give-card h3 { color: var(--teal); margin-bottom: 8px; }
.give-card p { color: var(--ink-soft); font-size: 15px; flex: 1; }
.give-card .btn { margin-top: 16px; align-self: center; }
.soon-tag { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--amber-dk); background: rgba(224,145,58,.12); padding: 4px 12px; border-radius: 999px; margin-top: 16px; align-self: center; }

/* ── Mission band (shared with the home page; home.css keeps its own copy) ── */
.band { background: var(--teal-dk); color: #fff; }
.band .wrap { padding: clamp(44px, 6vw, 72px) var(--gutter); text-align: center; }
.band h2 { color: #fff; max-width: 20ch; margin: 0 auto .5em; }
.band p { color: #cfe0e2; max-width: 60ch; margin: 0 auto 22px; font-size: 17px; }
.band p:last-child { margin-bottom: 0; }

/* Phones: cards fill the gutter width instead of capping at 300px */
@media (max-width: 600px) {
  .animals-grid, .events-list { grid-template-columns: 1fr; }
  .cards > * { flex-basis: 100%; }
}

/* About: founded / our story */
.about-history { max-width: 780px; }
.about-history p { font-size: 16.5px; color: var(--ink-soft); }

/* ── Application drawer form (built per pet / opening) ── */
.apply-intro { font-size: 15px; color: var(--ink-soft); margin: 0 0 16px; line-height: 1.55; }
.q-choice { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.q-choice legend { font-weight: 700; font-size: 14px; color: var(--ink); margin-bottom: 7px; padding: 0; float: left; width: 100%; }
.q-pill { position: relative; }
.q-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.q-pill span { display: inline-block; padding: 9px 16px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; font-weight: 700; font-size: 14px; color: var(--ink); cursor: pointer; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.q-pill:hover span { border-color: var(--teal); color: var(--teal); }
.q-pill input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.q-pill input:focus-visible + span { outline: 3px solid rgba(31,111,125,.35); outline-offset: 2px; }
.q-choice .form-note { flex: 1 1 100%; }
.q-check { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; font-weight: 700; font-size: 14.5px; cursor: pointer; line-height: 1.4; }
.q-check input { width: auto; margin-top: 3px; flex: 0 0 auto; }
.callout--apply { max-width: 900px; margin: 0 auto; }
.center { text-align: center; }
.apply-drawer__body .info-panel .apply-for { margin-top: 0; }

/* ── Openings (Volunteer page) ── */
.job-card { position: relative; }
.job-kind { position: absolute; top: 14px; right: 14px; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 4px 9px; border-radius: 999px; background: var(--cream-2); color: var(--ink-soft); }
.job-when { font-weight: 700; color: var(--teal) !important; font-size: 14px !important; }
.job-desc { background: var(--cream); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
