/* Cali's Kitty Friends — cream, ginger, black. Bootstrap handles layout; this file is the brand. */

:root {
  --ink: #3a2a22;
  --ink-soft: #5a4034;
  --muted: #8a6550;
  --accent: #f57e29;
  --accent-dark: #c45c1a;
  --gold: #e6a82e;
  --gold-deep: #c98918;
  --cream: #fff8dc;
  --paper: #fbf3ea;
  --card: #fffdf9;
  --nav: #1c1612;
  --border: #e4c4b4;
  --shadow: 0 10px 28px rgba(47, 47, 47, 0.08);
  --round: 1.35rem;
  --font: "Nunito", "Segoe UI", sans-serif;
  --display: "Fredoka", "Nunito", "Segoe UI", sans-serif;
  --stripe: linear-gradient(90deg, var(--cream) 0 22%, var(--gold) 22% 40%, var(--accent) 40% 68%, var(--nav) 68% 100%);
  --coat: url("/images/calico-coat.svg");
  --hero: url("/images/calico-hero.svg");
}

html { scroll-behavior: smooth; }

body {
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    linear-gradient(180deg, rgba(251, 243, 234, 0.35) 0%, rgba(251, 243, 234, 0.82) 18rem, var(--paper) 36rem),
    var(--coat);
  background-size: 100% 100%, 1100px 1100px;
  background-repeat: no-repeat, repeat;
  font-family: var(--font);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6,
.navbar-brand, .display-5, .modal-title {
  font-family: var(--display);
  letter-spacing: -0.02em;
  color: var(--accent-dark);
  font-weight: 600;
}

main h1,
main .h1,
main .h2 {
  color: var(--accent-dark);
}

main h2.h3,
main h3,
main .h3,
main .h4,
main .h5,
main .h6 {
  color: #a34f16;
}

.page { max-width: 40rem; }

main h1 + p,
.lead {
  color: var(--ink-soft);
  font-weight: 600;
}

.text-muted,
.form-text {
  color: var(--muted) !important;
}

.form-label {
  font-weight: 700;
  color: var(--ink-soft);
}

.form-label .required { color: var(--accent); }

.inset .fw-semibold,
.panel .h5,
.panel h3 {
  color: #a34f16;
}

main {
  flex: 1 0 auto;
  padding: 3.5rem 0;
}

/* Nav */

body .navbar,
.navbar {
  background-color: var(--nav) !important;
  padding-top: 0.7rem;
  padding-bottom: 0.7rem;
  box-shadow: 0 8px 0 var(--accent);
}

body .navbar .navbar-brand,
body .navbar .navbar-nav .nav-link {
  color: var(--cream) !important;
}

body .navbar .navbar-brand .brand-name {
  color: var(--cream) !important;
}

body .navbar .navbar-nav .nav-link {
  font-weight: 700;
  padding-left: 0.85rem !important;
  padding-right: 0.85rem !important;
  border-radius: 999px;
}

body .navbar .navbar-nav .nav-link.active,
body .navbar .navbar-nav .nav-link:hover,
body .navbar .navbar-nav .nav-link:focus {
  color: #fff !important;
  background: rgba(238, 122, 47, 0.28);
}

.navbar-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  line-height: 1.15;
  text-decoration: none;
}

.brand-lockup {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand-name {
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--cream);
}

.brand-url {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.2;
  color: var(--gold) !important;
}

.brand-tagline {
  font-family: var(--font);
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
  color: #ffd9a8 !important;
  max-width: 16.5rem;
}

.brand-mark {
  width: 2.55rem;
  height: 2.55rem;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 0.35rem;
}
.navbar-toggler {
  border-color: rgba(255, 250, 244, 0.45);
  padding: 0.45rem 0.55rem;
}

.navbar-toggler:focus {
  box-shadow: 0 0 0 0.2rem rgba(244, 185, 67, 0.35);
}

.navbar-toggler-burger {
  display: block;
  position: relative;
  width: 1.35rem;
  height: 1rem;
}

.navbar-toggler-burger span {
  display: block;
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 999px;
  background: var(--cream);
  transition: transform 0.28s ease, opacity 0.2s ease, top 0.28s ease;
}

.navbar-toggler-burger span:nth-child(1) { top: 0; }
.navbar-toggler-burger span:nth-child(2) { top: calc(50% - 1px); }
.navbar-toggler-burger span:nth-child(3) { top: calc(100% - 2px); }

.navbar-toggler[aria-expanded="true"] .navbar-toggler-burger span:nth-child(1) {
  top: calc(50% - 1px);
  transform: rotate(45deg);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-burger span:nth-child(2) {
  opacity: 0;
  transform: scaleX(0.4);
}

.navbar-toggler[aria-expanded="true"] .navbar-toggler-burger span:nth-child(3) {
  top: calc(50% - 1px);
  transform: rotate(-45deg);
}

.navbar .btn {
  box-shadow: none;
}

/* Buttons & links */

.btn {
  font-family: var(--font);
  font-weight: 700;
  border-radius: 999px;
  border-width: 2px;
  text-decoration: none;
}

.btn:hover,
.btn:focus { text-decoration: none; }

.btn-accent,
.btn-accent:visited {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-accent:hover,
.btn-accent:focus {
  background: var(--accent-dark);
  border-color: var(--accent-dark);
  color: #fff;
}

.btn-outline-accent,
.btn-outline-accent:visited {
  background: transparent;
  border-color: var(--accent);
  color: var(--accent);
}

.btn-outline-accent:hover,
.btn-outline-accent:focus {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.btn-outline-light,
.btn-outline-light:visited {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.92);
}

.btn-outline-light:hover,
.btn-outline-light:focus {
  color: var(--nav);
  background: var(--cream);
  border-color: var(--cream);
}

main a:not(.btn) {
  color: var(--accent);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 0.18em;
  text-decoration-color: rgba(245, 126, 41, 0.4);
}

main a:not(.btn):hover {
  color: var(--accent-dark);
  text-decoration-color: var(--accent-dark);
}

/* Hero */

.hero {
  position: relative;
  isolation: isolate;
  padding: 5.5rem 0 11rem;
  color: var(--cream);
  background: var(--paper);
}

.hero-wash {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(28, 22, 18, 0.22) 0%, rgba(28, 22, 18, 0.06) 40%, transparent 72%),
    var(--hero) center / cover no-repeat;
  -webkit-mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 22%,
    rgba(0, 0, 0, 0.82) 40%,
    rgba(0, 0, 0, 0.5) 58%,
    rgba(0, 0, 0, 0.22) 76%,
    rgba(0, 0, 0, 0.06) 90%,
    transparent 100%
  );
  mask-image: linear-gradient(
    to bottom,
    #000 0%,
    #000 22%,
    rgba(0, 0, 0, 0.82) 40%,
    rgba(0, 0, 0, 0.5) 58%,
    rgba(0, 0, 0, 0.22) 76%,
    rgba(0, 0, 0, 0.06) 90%,
    transparent 100%
  );
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 14rem;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(251, 243, 234, 0.12) 28%,
    rgba(251, 243, 234, 0.4) 52%,
    rgba(251, 243, 234, 0.72) 76%,
    var(--paper) 100%
  );
}

.hero .container { position: relative; z-index: 2; }

.hero-paws {
  position: absolute;
  left: 4%;
  bottom: 4.25rem;
  width: min(13.5rem, 38vw);
  height: 8.5rem;
  z-index: 2;
  pointer-events: none;
  background: var(--cream);
  -webkit-mask: url("/images/paw-trail.svg") left bottom / contain no-repeat;
  mask: url("/images/paw-trail.svg") left bottom / contain no-repeat;
  opacity: 0.4;
}

.hero-kicker {
  display: inline-block;
  margin-bottom: 0.85rem;
  padding: 0.28rem 0.85rem;
  border-radius: 999px;
  background: rgba(244, 185, 67, 0.22);
  border: 1px solid rgba(244, 185, 67, 0.45);
  color: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(28, 22, 18, 0.35);
}

.hero h1,
.hero .display-5 {
  color: #fff;
  font-weight: 700;
  text-shadow: 0 2px 18px rgba(28, 22, 18, 0.35);
}

.hero .lead,
.hero p {
  color: #ffe0b8;
  font-weight: 600;
  text-shadow: 0 1px 10px rgba(28, 22, 18, 0.28);
}

.house-count {
  display: inline-flex;
  align-items: baseline;
  gap: 0.5rem;
  margin: 0;
  padding: 0.45rem 0.95rem 0.5rem;
  border-radius: 999px;
  background: var(--card);
  border: 2px solid var(--border);
  box-shadow: var(--shadow);
  font-family: var(--display);
  font-weight: 600;
  color: var(--accent-dark);
  line-height: 1;
}

.house-count-num {
  font-size: 1.85rem;
  color: var(--accent);
}

.house-count-label {
  font-size: 1.05rem;
  letter-spacing: -0.01em;
}

/* Cards */

.panel {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--round);
  box-shadow: var(--shadow);
  overflow: hidden;
  height: 100%;
}

.panel::before {
  content: "";
  display: block;
  height: 10px;
  background: var(--stripe);
  flex-shrink: 0;
}

.panel .card-body {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  padding: 1.15rem 1.25rem 1.3rem;
}

.panel .card-cta,
.panel .card-body > a.card-cta,
.panel .card-body > .btn.card-cta {
  margin-top: auto;
  align-self: flex-end;
  text-align: right;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
}

.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  margin-bottom: 0.45rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  font-size: 0.95rem;
}

.clinic-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.clinic-list li + li {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.cat-card { transition: transform 0.18s ease, box-shadow 0.18s ease; }

.cat-card-clickable { cursor: pointer; }

.cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(28, 22, 18, 0.12);
}

.cat-card-photo,
.cat-card-photo-img,
.kitty-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  height: auto;
  object-fit: cover;
  display: block;
}

.cat-card-photo {
  background: var(--stripe), linear-gradient(160deg, var(--cream), var(--accent));
  background-size: 100% 12px, cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--display);
  font-size: 3.4rem;
}

.inset {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(228, 196, 180, 0.85);
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
}

.cost-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.cost-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(228, 196, 180, 0.55);
}

.cost-list li:last-child { border-bottom: 0; }

.cost-list li span:last-child {
  flex-shrink: 0;
  font-weight: 700;
  color: var(--accent-dark);
}

.about-cali {
  margin: 0;
}

.about-cali-frame {
  position: relative;
  max-width: 22rem;
  margin: 0 auto;
  padding: 0.85rem;
  background: linear-gradient(#fff4e4, #ffe9d2);
  border: 3px solid rgba(196, 148, 112, 0.55);
  border-radius: calc(var(--round) + 0.35rem);
  box-shadow: var(--shadow);
}

.about-cali-frame img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: calc(var(--round) - 0.15rem);
  object-fit: cover;
  aspect-ratio: 4 / 5;
  border: 2px solid rgba(228, 196, 180, 0.9);
}

.about-cali-paw {
  position: absolute;
  z-index: 1;
  width: 1.35rem;
  height: 1.35rem;
  background: var(--accent);
  -webkit-mask: url("/images/paw.svg") center / contain no-repeat;
  mask: url("/images/paw.svg") center / contain no-repeat;
  opacity: 0.9;
  pointer-events: none;
}

.about-cali-paw-tl {
  top: 0.15rem;
  left: 0.2rem;
  transform: rotate(-28deg);
  background: var(--gold);
}

.about-cali-paw-tr {
  top: 0.2rem;
  right: 0.15rem;
  transform: rotate(22deg);
  background: var(--accent);
}

.about-cali-paw-bl {
  bottom: 0.2rem;
  left: 0.2rem;
  transform: rotate(-12deg) scaleX(-1);
  background: var(--accent);
}

.about-cali-paw-br {
  bottom: 0.15rem;
  right: 0.25rem;
  transform: rotate(30deg);
  background: var(--nav);
}

.about-cali figcaption {
  margin-top: 0.85rem;
  text-align: center;
  color: var(--gold-deep);
  font-size: 0.95rem;
  font-weight: 700;
}

.table-stack .stack-heading {
  color: var(--accent-dark);
}

.cat-card .h5 {
  color: var(--accent-dark);
}

.label-pill {
  display: inline-block;
  margin-bottom: 0.45rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  background: #ffcc80;
  color: #8a3d0a;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.6rem;
  border-radius: 999px;
  background: #f3e6d8;
}

.status-pill.available { background: #c8ebc4; color: #21571f; }
.status-pill.pending { background: #ffcc80; color: #7a3b0a; }
.status-pill.foster { background: #ffe0c2; color: #8a3d12; }
.status-pill.medical { background: #f3b6b0; color: #7a2d2d; }
.status-pill.adopted { background: #e8dff6; color: #4a3570; }
.status-pill.not_available { background: #e6e1db; color: #5c5348; }
.status-pill.unpublished { background: var(--nav); color: #fffaf4; }

.care-flags {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0;
  margin: 0;
}

.care-flag {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.28rem 0.7rem 0.28rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fffdf9;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
}

.care-flag.is-done {
  border-color: #9dcf98;
  background: #e7f6e4;
  color: #21571f;
}

.care-flag-mark {
  font-weight: 800;
  line-height: 1;
}

/* Profile photos */

.thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
  gap: 0.65rem;
}

.thumbs button {
  border: 2px solid transparent;
  border-radius: 1rem;
  padding: 0.15rem;
  background: rgba(255, 255, 255, 0.8);
}

.thumbs button.active,
.thumbs button:hover { border-color: var(--accent); }

.thumbs img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.8rem;
}

.carousel .carousel-control-prev,
.carousel .carousel-control-next { width: 16%; }

.carousel .carousel-control-prev-icon,
.carousel .carousel-control-next-icon {
  background-color: rgba(28, 22, 18, 0.62);
  border-radius: 999px;
  background-size: 60% 60%;
  width: 2.65rem;
  height: 2.65rem;
}

.kitty-photo { border-radius: 1.25rem; }

.kitty-records { list-style: none; padding: 0; margin: 0; }
.kitty-records li { padding: 0.75rem 0; border-bottom: 1px solid var(--border); }
.kitty-records li:last-child { border-bottom: 0; }

/* Forms & admin */

.form-control,
.form-select {
  border-radius: 0.85rem;
  border-color: var(--border);
  padding: 0.65rem 0.85rem;
}

.form-control:focus,
.form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 0.2rem rgba(238, 122, 47, 0.2);
}

.form-check-input:checked {
  background-color: var(--accent);
  border-color: var(--accent);
}

legend.form-label {
  float: none;
  width: auto;
  font-size: 1rem;
}

.alert { border-radius: 1rem; border: 0; }
.table { --bs-table-bg: transparent; }

@media (min-width: 768px) {
  .table-stack .stack-heading {
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
  }
}

@media (max-width: 767.98px) {
  .table-stack {
    width: 100%;
  }

  .table-stack thead {
    display: none;
  }

  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td {
    display: block;
    width: 100%;
  }

  .table-stack tr {
    margin-bottom: 0.75rem;
    padding: 0.65rem 0.85rem 0.75rem;
    background: var(--card);
    border: 2px solid var(--border);
    border-radius: var(--round);
    box-shadow: var(--shadow);
  }

  .table-stack td {
    display: grid;
    grid-template-columns: minmax(5.5rem, 34%) 1fr;
    gap: 0.4rem 0.75rem;
    align-items: start;
    padding: 0.3rem 0;
    border: 0;
    text-align: left;
    word-break: break-word;
  }

  .table-stack td + td {
    border-top: 1px solid rgba(228, 196, 180, 0.55);
  }

  .table-stack td::before {
    content: attr(data-label);
    font-family: var(--font);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: var(--muted);
    padding-top: 0.1rem;
  }

  .table-stack td.stack-primary {
    grid-template-columns: 1fr;
    padding-top: 0;
    padding-bottom: 0.4rem;
    border-top: 0;
  }

  .table-stack td.stack-primary::before {
    display: none;
  }

  .table-stack td.stack-actions {
    grid-template-columns: 1fr;
    padding-top: 0.55rem;
  }

  .table-stack td.stack-actions::before {
    display: none;
  }

  .table-stack td.stack-actions[data-label]:not([data-label=""])::before {
    display: block;
    margin-bottom: 0.2rem;
  }

  .table-stack .stack-heading {
    font-family: var(--display);
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--accent-dark);
    line-height: 1.25;
  }

  .table-stack .admin-cat-thumb,
  .table-stack .admin-cat-thumb-empty {
    width: 52px;
    height: 52px;
    line-height: 52px;
  }

  .table-stack .apply-credit-form,
  .table-stack .admin-users-form {
    width: 100%;
  }

  .table-stack .admin-users-form {
    gap: 0.45rem !important;
  }

  .table-stack .admin-users-form .form-select,
  .table-stack .admin-users-form .btn {
    width: 100%;
  }

  .table-stack .apply-credit-form .form-label {
    margin-bottom: 0.15rem;
  }
}

.modal-content {
  border: 2px solid var(--border);
  border-radius: var(--round);
}

.modal-header,
.modal-footer { border-color: rgba(228, 196, 180, 0.7); }

.staff-panel {
  background: #fff4e8;
  border: 2px dashed var(--accent);
  border-radius: var(--round);
  padding: 1.15rem 1.25rem;
}

.kitty-edit-section > .h6 {
  margin-bottom: 0.85rem;
  color: var(--accent-dark);
}

.kitty-edit-side {
  display: flex;
  flex-direction: column;
}

.kitty-edit-side > * + * {
  margin-top: 1.25rem;
}

@media (min-width: 992px) {
  .kitty-edit-side {
    position: sticky;
    top: 1rem;
  }
}

.admin-cat-thumb,
.admin-cat-thumb-empty {
  width: 48px;
  height: 48px;
  border-radius: 0.85rem;
  object-fit: cover;
  display: inline-block;
}

.admin-cat-thumb-empty {
  background: #ffcc80;
  font-family: var(--display);
  font-weight: 700;
  line-height: 48px;
  text-align: center;
}

.doc-thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 0.85rem;
  background: #ffcc80;
}

.photo-thumb-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
  border-radius: 1.25rem;
}

.photo-thumb-btn:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.photo-view-img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 0.85rem;
}

.photo-crop-wrap { max-height: 420px; background: var(--nav); }
.photo-crop-wrap img { display: block; max-width: 100%; }
.photo-crop-wrap .cropper-view-box,
.photo-crop-wrap .cropper-face { border-radius: 0; }

.cam-placeholder {
  position: relative;
  overflow: hidden;
  background: linear-gradient(165deg, #3a2e26 0%, var(--nav) 100%);
  color: var(--cream);
  border-radius: var(--round);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem;
  box-shadow: var(--shadow);
}

.cam-placeholder::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--hero);
  background-size: cover;
  background-position: center;
  opacity: 0.18;
  pointer-events: none;
}

.cam-placeholder > * {
  position: relative;
  z-index: 1;
  max-width: 28rem;
}

.cam-placeholder p:first-child {
  font-family: var(--display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold);
}

.cam-placeholder p {
  color: var(--cream);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

.hp-field {
  position: absolute;
  left: -10000px;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

/* Footer */

footer {
  background: var(--nav);
  color: #ffe8d2;
  padding: 2rem 0 1.35rem;
  margin-top: 2.5rem;
  box-shadow: 0 -8px 0 var(--accent);
}

footer a {
  color: var(--cream);
  text-decoration: none;
  font-weight: 700;
}

footer a:hover {
  color: var(--gold);
  text-decoration: none;
}

.paw-sep {
  display: inline-block;
  width: 0.72rem;
  height: 0.72rem;
  margin: 0 0.55rem;
  vertical-align: -0.08rem;
  background: currentColor;
  -webkit-mask: url("/images/paw.svg") center / contain no-repeat;
  mask: url("/images/paw.svg") center / contain no-repeat;
  opacity: 0.45;
}

.footer-credit { border-color: rgba(255, 204, 128, 0.25) !important; }
.footer-credit-text { color: #d4b896; }
.footer-credit-link { color: var(--cream); }
.footer-credit-link:hover { color: var(--gold); }

/* Mobile */

@media (max-width: 1199.98px) {
  body .navbar,
  .navbar {
    position: relative;
    z-index: 1030;
  }

  .navbar > .container {
    position: relative;
  }

  .navbar .navbar-collapse {
    position: absolute;
    top: calc(100% + 0.55rem);
    left: 0.75rem;
    right: 0.75rem;
    z-index: 1031;
    margin-top: 0;
    padding: 0.75rem 0.85rem 1rem;
    background: var(--nav);
    border: 1px solid rgba(255, 232, 210, 0.18);
    border-radius: 1.15rem;
    box-shadow: 0 16px 36px rgba(28, 22, 18, 0.35);
    max-height: min(70vh, calc(100dvh - 5.5rem));
    overflow-y: auto;
  }

  body .navbar .navbar-nav .nav-link {
    padding: 0.7rem 0.85rem !important;
  }

  .navbar .d-flex.flex-wrap {
    width: 100%;
    padding-top: 0.35rem;
    padding-bottom: 0.15rem;
  }

  .navbar .d-flex.flex-wrap .btn {
    flex: 1 1 auto;
    text-align: center;
  }
}

@media (min-width: 1200px) {
  body .navbar .navbar-nav .nav-link {
    padding-left: 0.55rem !important;
    padding-right: 0.55rem !important;
    white-space: nowrap;
  }

  .navbar .d-flex.flex-wrap {
    flex-wrap: nowrap !important;
    flex-shrink: 0;
  }

  .brand-tagline {
    max-width: 14rem;
  }
}

@media (max-width: 767.98px) {
  main {
    padding: 2rem 0;
  }

  .brand-tagline {
    display: none;
  }

  .brand-name {
    font-size: 1.05rem;
  }

  .brand-url {
    font-size: 0.68rem;
  }

  .brand-mark {
    width: 2.15rem;
    height: 2.15rem;
  }

  .hero {
    padding: 3.25rem 0 6.5rem;
    text-align: center;
  }

  .hero .display-5 {
    font-size: clamp(1.85rem, 8vw, 2.4rem);
  }

  .hero .lead {
    font-size: 1.05rem;
  }

  .hero-paws {
    width: min(9.5rem, 42vw);
    height: 5.5rem;
    bottom: 2.5rem;
    opacity: 0.32;
  }

  .hero::after {
    height: 8.5rem;
  }

  .hero .btn-lg {
    width: 100%;
    max-width: 18rem;
  }

  .section-head {
    flex-direction: column;
    align-items: flex-start !important;
    gap: 0.35rem;
  }

  .panel .card-body {
    padding: 1rem 1.05rem 1.15rem;
  }

  .inset {
    padding: 0.9rem 0.95rem;
  }

  .cam-placeholder {
    min-height: 180px;
    padding: 1.35rem 1.15rem;
  }

  .table {
    font-size: 0.92rem;
  }

  .apply-credit-form {
    min-width: 0;
    width: 100%;
  }

  .admin-users-form .form-select {
    min-width: 9rem;
    flex: 1 1 auto;
  }

  .kitty-photo {
    border-radius: 1rem;
  }

  .carousel .carousel-control-prev-icon,
  .carousel .carousel-control-next-icon {
    width: 2.25rem;
    height: 2.25rem;
  }
}

@media (max-width: 575.98px) {
  .container {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .brand-lockup {
    max-width: calc(100vw - 7.5rem);
  }

  .hero {
    padding: 2.75rem 0 5.5rem;
  }

  .hero-kicker {
    font-size: 0.68rem;
    letter-spacing: 0.06em;
    padding: 0.22rem 0.7rem;
  }

  .hero-paws {
    display: none;
  }

  footer .paw-sep {
    margin: 0 0.35rem;
  }

  .admin-actions .btn,
  .donate-actions .btn {
    width: 100%;
  }
}
