:root {
  --amy-green: #aad816;
  --amy-green-dark: #617d0c;
  --amy-green-deep: #344806;
  --amy-green-soft: #dff29f;
  --cream: #fff8e8;
  --cream-2: #f5ecd5;
  --wood: #7b4a24;
  --wood-dark: #3e2414;
  --ink: #2d271f;
  --muted: #6f675c;
  --white: #ffffff;
  --danger: #a52a2a;
  --shadow: 0 18px 50px rgba(53, 42, 26, 0.16);
  --radius-lg: 26px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --content: 1180px;
  --float-bar-height: 62px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Nunito Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #fffdf6 0%, var(--cream) 100%);
  min-height: 100vh;
  padding-bottom: 108px;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.skip-link {
  position: fixed;
  top: 8px;
  left: 8px;
  z-index: 9999;
  transform: translateY(-160%);
  background: var(--wood-dark);
  color: white;
  padding: 10px 14px;
  border-radius: 10px;
}
.skip-link:focus { transform: translateY(0); }

.site-header {
  position: sticky;
  top: 0;
  z-index: 80;
  background: rgba(255, 248, 232, 0.96);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(62,36,20,.1);
  animation: headerIn .38s ease both;
}
@keyframes headerIn { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: translateY(0); } }

.header-inner {
  max-width: var(--content);
  margin: 0 auto;
  min-height: 86px;
  padding: 10px 20px;
  display: flex;
  align-items: center;
  gap: 22px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  min-width: 235px;
}
.brand img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 18px;
  box-shadow: 0 6px 18px rgba(65,40,18,.16);
}
.brand-copy strong {
  display: block;
  font-family: "Poiret One", cursive;
  font-size: 1.55rem;
  line-height: 1;
  color: var(--wood-dark);
}
.brand-copy span {
  font-size: .75rem;
  letter-spacing: .04em;
  color: var(--amy-green-deep);
  font-weight: 800;
}

.main-nav { margin-left: auto; }
.main-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.main-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 11px;
  text-decoration: none;
  border-radius: 12px;
  font-weight: 800;
  color: var(--wood-dark);
  transition: background .18s ease, transform .18s ease;
}
.main-nav a:hover, .main-nav a[aria-current="page"] { background: rgba(170,216,22,.22); transform: translateY(-1px); }
.main-nav .admin-only { display: none; }
body.admin-mode .main-nav .admin-only { display: list-item; }

.menu-toggle {
  display: none;
  margin-left: auto;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(62,36,20,.16);
  background: white;
  cursor: pointer;
}
.menu-toggle span { display: block; width: 20px; height: 2px; margin: 4px auto; background: var(--wood-dark); }

.mobile-drawer {
  display: none;
}

main { overflow: clip; }
.shell { max-width: var(--content); margin: 0 auto; padding: 0 20px; }
.section { padding: 74px 0; }
.section-tight { padding: 42px 0; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: .78rem;
  font-weight: 900;
  color: var(--amy-green-dark);
}
.eyebrow::before { content: ""; width: 28px; height: 3px; border-radius: 99px; background: var(--amy-green); }

h1, h2, h3, .display-font {
  font-family: "Poiret One", cursive;
  color: var(--wood-dark);
}
h1 { font-size: clamp(2.5rem, 6vw, 5.4rem); line-height: .98; margin: 16px 0 20px; }
h2 { font-size: clamp(2rem, 4vw, 3.65rem); line-height: 1.04; margin: 0 0 18px; }
h3 { font-size: clamp(1.4rem, 2.5vw, 2rem); margin: 0 0 10px; }
p { line-height: 1.7; }
.lead { font-size: clamp(1.05rem, 2vw, 1.28rem); color: var(--muted); max-width: 760px; }

.hero { padding: 54px 0 64px; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 52px; }
.hero-card {
  position: relative;
  min-height: 470px;
  border-radius: 38px;
  background: radial-gradient(circle at 28% 22%, #dff29f 0 18%, transparent 19%), linear-gradient(145deg, var(--amy-green) 0%, #8ebd0f 100%);
  box-shadow: var(--shadow);
  display: grid;
  place-items: center;
  padding: 34px;
  isolation: isolate;
}
.hero-card::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 2px dashed rgba(62,36,20,.28);
  border-radius: 28px;
  z-index: -1;
}
.hero-card img { width: min(88%, 430px); border-radius: 30px; box-shadow: 0 18px 44px rgba(45,39,31,.22); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 14px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 900;
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--amy-green); color: var(--wood-dark); box-shadow: 0 10px 24px rgba(124,160,16,.22); }
.btn-dark { background: var(--wood-dark); color: white; }
.btn-light { background: white; color: var(--wood-dark); border-color: rgba(62,36,20,.12); }
.btn-danger { background: #fff1f1; color: var(--danger); border-color: #f1b5b5; }

.card-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 22px; }
.info-card, .animal-card, .team-card, .panel {
  background: rgba(255,255,255,.86);
  border: 1px solid rgba(62,36,20,.09);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 28px rgba(53,42,26,.08);
}
.info-card { padding: 28px; }
.info-card .icon { width: 48px; height: 48px; border-radius: 15px; background: var(--amy-green-soft); display: grid; place-items: center; margin-bottom: 18px; font-size: 1.4rem; }

.band { background: linear-gradient(125deg, var(--wood-dark), #6b3f1e); color: white; }
.band h2 { color: white; }
.band .lead { color: rgba(255,255,255,.78); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin: 28px 0; }
.filter-chip {
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(62,36,20,.14);
  background: white;
  font-weight: 800;
  cursor: pointer;
}
.filter-chip.active { background: var(--amy-green); border-color: var(--amy-green); }

.animal-card { overflow: hidden; position: relative; }
.animal-card-media { position: relative; aspect-ratio: 4/3; background: var(--cream-2); overflow: hidden; cursor: pointer; }
.animal-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.animal-card-media:hover img { transform: scale(1.035); }
.animal-card-body { padding: 18px 18px 20px; }
.animal-card-body h3 { font-size: 1.75rem; }
.animal-meta { display: flex; flex-wrap: wrap; gap: 8px 12px; color: var(--muted); font-size: .92rem; }
.status-badge { position: absolute; left: 14px; top: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(255,255,255,.9); font-size: .78rem; font-weight: 900; }
.admin-photo-button { display: none; position: absolute; right: 12px; bottom: 12px; z-index: 4; }
body.admin-mode .admin-photo-button { display: inline-flex; }

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(31,27,22,.78);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.lightbox.open { display: flex; }
.lightbox-dialog {
  width: min(920px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  background: rgba(255,248,232,.98);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.lightbox-main { display: grid; place-items: center; min-height: 300px; }
.lightbox-main img { width: 100%; max-height: 62vh; object-fit: contain; border-radius: 20px; background: #efe7d7; }
.lightbox-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 12px; }
.lightbox-thumbs button { border: 2px solid transparent; border-radius: 12px; padding: 0; overflow: hidden; background: transparent; cursor: pointer; }
.lightbox-thumbs button.active { border-color: var(--amy-green-dark); }
.lightbox-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.lightbox-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 16px; }
.icon-btn { width: 44px; height: 44px; border-radius: 50%; border: 0; background: white; cursor: pointer; font-size: 1.3rem; box-shadow: 0 6px 16px rgba(0,0,0,.12); }

.team-grid { display: grid; grid-template-columns: repeat(5, minmax(0,1fr)); gap: 18px; }
.team-card { text-align: center; padding: 22px 14px; }
.team-avatar { width: 128px; height: 128px; border-radius: 50%; margin: 0 auto 16px; background: radial-gradient(circle at 35% 28%, #fff 0 8%, transparent 9%), linear-gradient(145deg, var(--amy-green-soft), #c8a276); border: 6px solid white; box-shadow: 0 8px 22px rgba(53,42,26,.12); display: grid; place-items: center; font-family: "Poiret One", cursive; font-size: 2rem; color: var(--wood-dark); }
.team-card h3 { font-size: 1.45rem; }
.team-role { font-size: .82rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 900; color: var(--amy-green-dark); }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-weight: 900; color: var(--wood-dark); }
.field input, .field select, .field textarea {
  width: 100%;
  border: 1px solid rgba(62,36,20,.2);
  border-radius: 13px;
  background: white;
  padding: 12px 13px;
  color: var(--ink);
}
.field textarea { min-height: 130px; resize: vertical; }
.form-note { font-size: .9rem; color: var(--muted); }

.donation-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.donation-card { padding: 24px; border-radius: 22px; background: white; border: 1px solid rgba(62,36,20,.1); }
.donation-card h3 { font-size: 1.55rem; }
.donation-card p { color: var(--muted); }

/* Floating action/social bar */
.action-dock {
  position: fixed;
  left: 50%;
  bottom: max(14px, env(safe-area-inset-bottom));
  z-index: 120;
  transform: translateX(-50%);
  width: min(700px, calc(100vw - 24px));
  pointer-events: none;
  animation: dockIn .42s .1s ease both;
}
@keyframes dockIn { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translate(-50%,0); } }
.action-dock-shell {
  position: relative;
  min-height: var(--float-bar-height);
  border-radius: 24px 24px 28px 28px;
  background: var(--wood-dark);
  box-shadow: 0 15px 36px rgba(37,26,18,.28);
  display: grid;
  grid-template-columns: repeat(3,1fr);
  align-items: center;
  padding: 7px 54px;
  pointer-events: auto;
}
.action-dock-link {
  min-height: 48px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  text-align: center;
  text-decoration: none;
  color: white;
  border-radius: 14px;
  font-family: "Poiret One", cursive;
  font-size: clamp(.92rem, 2.8vw, 1.12rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: .015em;
}
.action-dock-link:hover { background: rgba(255,255,255,.1); }
.action-dock-link + .action-dock-link { border-left: 1px solid rgba(255,255,255,.15); }
.social-lobe {
  position: absolute;
  top: -22px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--wood-dark);
  border: 5px solid var(--cream);
  display: grid;
  place-items: center;
  color: white;
  text-decoration: none;
  font-weight: 900;
  box-shadow: 0 8px 16px rgba(37,26,18,.2);
}
.social-lobe.left { left: 10px; }
.social-lobe.right { right: 10px; }
.social-lobe span { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(170,216,22,.16); }

.site-footer { background: #2d2016; color: rgba(255,255,255,.78); padding: 64px 0 130px; margin-top: 30px; }
.footer-grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 36px; }
.site-footer h3 { color: white; }
.site-footer a { color: white; text-decoration-thickness: 1px; text-underline-offset: 3px; }

/* Cuteness */
.cuteness-stage { text-align: center; }
.cuteness-message {
  width: min(820px, 100%);
  margin: 0 auto;
  min-height: 1.3em;
  max-width: 30ch;
  text-align: center;
  overflow-wrap: anywhere;
}
.cuteness-message[contenteditable="true"] { outline: 3px dashed rgba(97,125,12,.4); outline-offset: 6px; border-radius: 8px; }
.cuteness-photo {
  width: min(720px, 100%);
  margin: 24px auto;
  border-radius: 34px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-2);
}
.cuteness-photo img { width: 100%; max-height: 560px; object-fit: cover; }

.note-board-wrap { margin-top: 46px; }
.note-board-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.note-board {
  position: relative;
  width: 100%;
  min-height: 820px;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.14) 1px, transparent 1px),
    #91633c;
  background-size: 30px 30px;
  box-shadow: inset 0 0 0 8px #5f3d22, var(--shadow);
  touch-action: pan-y;
}
.note-pad {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 122px;
  height: 122px;
  border: 0;
  cursor: grab;
  border-radius: 4px 4px 12px 4px;
  box-shadow: 0 9px 20px rgba(0,0,0,.18);
  transform: rotate(2deg);
  font-family: "Poiret One", cursive;
  font-weight: 800;
  padding: 14px;
  z-index: 40;
}
.note-pad::after { content: "+ grab a note"; }
.sticky-note {
  position: absolute;
  width: 148px;
  min-height: 148px;
  padding: 18px 15px 28px;
  border-radius: 3px 3px 14px 3px;
  box-shadow: 0 8px 18px rgba(0,0,0,.16);
  user-select: none;
  touch-action: none;
  overflow: hidden;
  cursor: default;
}
.sticky-note.owned { cursor: grab; }
.sticky-note.owned:hover { outline: 3px solid rgba(255,255,255,.72); }
.sticky-note p {
  margin: 0;
  line-height: 1.24;
  font-size: clamp(.88rem, 2vw, 1rem);
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.note-delete {
  position: absolute;
  right: 6px;
  bottom: 5px;
  width: 24px;
  height: 24px;
  border: 0;
  background: rgba(255,255,255,.5);
  border-radius: 50%;
  cursor: pointer;
  display: none;
}
.sticky-note.owned .note-delete, body.admin-mode .sticky-note .note-delete { display: grid; place-items: center; }
.note-editor {
  width: 100%;
  height: 102px;
  resize: none;
  border: 0;
  background: rgba(255,255,255,.34);
  padding: 8px;
  border-radius: 6px;
  outline: 2px solid rgba(62,36,20,.2);
}

/* Admin */
.admin-banner { display: none; background: var(--amy-green-deep); color: white; padding: 8px 18px; text-align: center; font-size: .9rem; font-weight: 800; }
body.admin-mode .admin-banner { display: block; }
.admin-grid { display: grid; grid-template-columns: 260px 1fr; gap: 24px; }
.admin-side { padding: 18px; align-self: start; position: sticky; top: 110px; }
.admin-side a { display: block; padding: 10px 12px; border-radius: 10px; text-decoration: none; font-weight: 800; }
.admin-side a:hover { background: var(--amy-green-soft); }
.admin-main { padding: 28px; }
.owner-only { display: none; }
body.admin-owner .owner-only { display: block; }
.auth-card { width: min(520px, 100%); margin: 60px auto; padding: 30px; }
.upload-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 18px 0; }
.upload-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 14px; }
.upload-thumb { position: relative; border-radius: 16px; overflow: hidden; background: var(--cream-2); border: 1px solid rgba(62,36,20,.12); }
.upload-thumb img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }
.upload-thumb footer { padding: 10px; font-size: .85rem; }
.upload-thumb .delete-photo { position: absolute; top: 8px; right: 8px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); color: var(--danger); cursor: pointer; font-weight: 900; }
.drop-zone { padding: 30px; border: 2px dashed rgba(97,125,12,.4); border-radius: 18px; background: rgba(223,242,159,.35); text-align: center; }

.photo-picker {
  position: fixed;
  inset: 0;
  z-index: 230;
  background: rgba(31,27,22,.76);
  display: none;
  place-items: center;
  padding: 20px;
}
.photo-picker.open { display: grid; }
.photo-picker-panel { width: min(950px,100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--cream); border-radius: 26px; padding: 22px; }
.photo-picker-grid { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; margin-top: 16px; }
.photo-picker-grid button { border: 2px solid transparent; padding: 0; background: transparent; border-radius: 12px; overflow: hidden; cursor: pointer; }
.photo-picker-grid button:hover { border-color: var(--amy-green-dark); }
.photo-picker-grid img { width: 100%; aspect-ratio: 1/1; object-fit: cover; }

@media (max-width: 980px) {
  .main-nav { display: none; }
  .menu-toggle { display: block; }
  .mobile-drawer {
    display: block;
    position: fixed;
    top: 86px;
    right: 0;
    bottom: 0;
    width: min(360px, 90vw);
    z-index: 100;
    background: var(--cream);
    box-shadow: -20px 0 40px rgba(53,42,26,.18);
    padding: 24px;
    transform: translateX(105%);
    transition: transform .24s ease;
  }
  .mobile-drawer.open { transform: translateX(0); }
  .mobile-drawer a { display: block; padding: 13px 14px; border-radius: 12px; text-decoration: none; font-size: 1.05rem; font-weight: 900; opacity: 0; transform: translateX(14px); }
  .mobile-drawer.open a { animation: itemIn .24s ease forwards; }
  .mobile-drawer.open a:nth-child(2) { animation-delay: .03s; }
  .mobile-drawer.open a:nth-child(3) { animation-delay: .06s; }
  .mobile-drawer.open a:nth-child(4) { animation-delay: .09s; }
  .mobile-drawer.open a:nth-child(5) { animation-delay: .12s; }
  @keyframes itemIn { to { opacity: 1; transform: none; } }
  .mobile-drawer .admin-only { display: none; }
  body.admin-mode .mobile-drawer .admin-only { display: block; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-card { min-height: 360px; order: -1; }
  .card-grid, .donation-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .team-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .admin-grid { grid-template-columns: 1fr; }
  .admin-side { position: static; }
  .upload-grid { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 680px) {
  body { padding-bottom: 105px; }
  .header-inner { min-height: 74px; padding: 8px 14px; }
  .brand { min-width: 0; gap: 8px; }
  .brand img { width: 54px; height: 54px; border-radius: 14px; }
  .brand-copy strong { font-size: 1.3rem; }
  .brand-copy span { display: none; }
  .mobile-drawer { top: 74px; }
  .shell { padding: 0 15px; }
  .section { padding: 52px 0; }
  .hero { padding: 32px 0 44px; }
  .hero-grid { gap: 28px; }
  .hero-card { min-height: 290px; border-radius: 28px; padding: 22px; }
  .hero-card::after { inset: 13px; }
  .hero-card img { width: min(84%, 350px); }
  h1 { font-size: clamp(2.65rem, 15vw, 4.2rem); }
  .card-grid, .donation-grid, .form-grid, .footer-grid { grid-template-columns: 1fr; }
  .team-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .field.full { grid-column: auto; }
  .lightbox { padding: 10px; }
  .lightbox-dialog { padding: 12px; border-radius: 20px; }
  .lightbox-thumbs { grid-template-columns: repeat(4,1fr); }
  .lightbox-main img { max-height: 50vh; }
  .action-dock { width: calc(100vw - 16px); bottom: max(8px, env(safe-area-inset-bottom)); }
  .action-dock-shell { min-height: 58px; padding: 6px 42px; border-radius: 21px 21px 25px 25px; }
  .action-dock-link { padding: 0 5px; font-size: clamp(.9rem, 4vw, 1rem); }
  .social-lobe { width: 48px; height: 48px; top: -18px; border-width: 4px; }
  .social-lobe.left { left: 6px; }
  .social-lobe.right { right: 6px; }
  .social-lobe span { width: 34px; height: 34px; }
  .note-board { min-height: 1120px; border-radius: 22px; }
  .note-pad { width: 108px; height: 108px; top: 16px; right: 16px; }
  .sticky-note { width: 132px; min-height: 132px; padding: 15px 12px 27px; }
  .note-board-head { align-items: start; flex-direction: column; }
  .upload-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .photo-picker-grid { grid-template-columns: repeat(3,1fr); }
  .site-footer { padding-bottom: 120px; }
}

@media (max-width: 360px) {
  .action-dock-link { font-size: .9rem; }
  .action-dock-link.cuteness-label span { max-width: 72px; }
  .team-grid { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* ======================================================
   BUILD 02: navigation, full logo and responsive polish
====================================================== */
.brand img {
  object-fit: contain;
  border-radius: 50%;
  box-shadow: none;
  background: transparent;
}
.hero-card img {
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 30px rgba(45,39,31,.22));
}

.main-nav > ul { overflow: visible; }
.nav-item-has-menu { position: relative; }
.nav-item-has-menu > a { gap: 4px; }
.nav-caret { font-size: .78em; transform: translateY(-1px); }
.nav-submenu {
  position: absolute;
  top: calc(100% + 8px);
  left: 50%;
  transform: translate(-50%, -8px);
  min-width: 230px;
  padding: 10px !important;
  display: grid !important;
  gap: 3px !important;
  background: rgba(255,248,232,.99);
  border: 1px solid rgba(62,36,20,.12);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(53,42,26,.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .16s ease, transform .16s ease, visibility .16s ease;
  z-index: 140;
}
.nav-submenu::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: -10px;
  height: 12px;
}
.nav-submenu li { width: 100%; }
.nav-submenu a {
  width: 100%;
  min-height: 38px;
  padding: 8px 11px;
  white-space: nowrap;
  transform: none !important;
}
.nav-item-has-menu:hover > .nav-submenu,
.nav-item-has-menu:focus-within > .nav-submenu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

/* Animal card action row */
.animal-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.animal-card-actions .btn { flex: 1 1 145px; }
.lightbox-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

/* Anchor targets should clear the sticky header. */
#available, #recent, #adopted,
#how, #requirements, #application,
#volunteer, #foster, #wishlist, #other-needs,
#amy, #mission, #nonprofit {
  scroll-margin-top: 118px;
}

.mobile-nav-group {
  border-bottom: 1px solid rgba(62,36,20,.08);
}
.mobile-nav-group summary {
  list-style: none;
  cursor: pointer;
  padding: 13px 14px;
  border-radius: 12px;
  font-size: 1.05rem;
  font-weight: 900;
  color: var(--wood-dark);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mobile-nav-group summary::-webkit-details-marker { display: none; }
.mobile-nav-group summary::after {
  content: "+";
  font-size: 1.2rem;
  line-height: 1;
}
.mobile-nav-group[open] summary {
  background: rgba(170,216,22,.18);
}
.mobile-nav-group[open] summary::after { content: "−"; }
.mobile-nav-submenu {
  display: grid;
  gap: 3px;
  padding: 0 8px 10px 18px;
}
.mobile-nav-submenu a {
  font-size: .94rem !important;
  padding: 9px 12px !important;
  font-weight: 800 !important;
  opacity: 1 !important;
  transform: none !important;
}
.mobile-nav-overview {
  color: var(--amy-green-deep);
}

/* Keep the three center actions readable, including CUTENESS WALL. */
.action-dock-link {
  font-size: clamp(.9rem, 2.3vw, 1.08rem);
}
.action-dock-link.cuteness-label span {
  max-width: 120px;
}

@media (max-width: 1120px) and (min-width: 981px) {
  .header-inner { gap: 12px; padding-inline: 14px; }
  .brand { min-width: 184px; gap: 8px; }
  .brand img { width: 54px; height: 54px; }
  .brand-copy strong { font-size: 1.32rem; }
  .brand-copy span { font-size: .68rem; }
  .main-nav a { padding-inline: 7px; font-size: .88rem; }
}

@media (max-width: 980px) {
  .mobile-drawer {
    overflow-y: auto;
    overscroll-behavior: contain;
  }
  .mobile-drawer > .mobile-nav-link {
    border-bottom: 1px solid rgba(62,36,20,.08);
  }
}

@media (max-width: 680px) {
  .brand img { object-fit: contain; border-radius: 50%; }
  .action-dock-shell {
    padding-left: 42px;
    padding-right: 42px;
  }
  .action-dock-link {
    font-size: clamp(.78rem, 3.3vw, .96rem);
    padding-inline: 3px;
  }
  .action-dock-link.cuteness-label span {
    max-width: 84px;
    line-height: 1.02;
  }
}

@media (max-width: 390px) {
  .action-dock-shell { padding-left: 38px; padding-right: 38px; }
  .social-lobe { width: 50px; height: 50px; top: -20px; }
  .social-lobe.left { left: 7px; }
  .social-lobe.right { right: 7px; }
  .action-dock-link { font-size: .77rem; }
}

/* Final small-screen dock readability floor for older users. */
@media (max-width: 390px) {
  .action-dock-link { font-size: .86rem; }
  .action-dock-link.cuteness-label span { max-width: 82px; }
}


/* Build 03: gallery/profile usability */
.lightbox-panel {
  position: relative;
  width: min(920px, 100%);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  overscroll-behavior: contain;
  background: rgba(255,248,232,.985);
  border-radius: 28px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.lightbox-panel > .lightbox-actions:first-child {
  position: sticky;
  top: -20px;
  z-index: 12;
  margin-top: 0;
  padding: 12px 0 10px;
  background: rgba(255,248,232,.97);
  backdrop-filter: blur(10px);
}
.lightbox-close-btn {
  min-width: 92px;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  background: white;
  color: var(--wood-dark);
  box-shadow: 0 6px 16px rgba(0,0,0,.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 0 14px;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}
.lightbox-close-btn > span:first-child { font-size: 1.55rem; line-height: 1; }
.lightbox-bottom-close { width: 100%; margin-top: 14px; }
.lightbox-main { min-height: 0; }
.lightbox-main img {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 60dvh;
  margin: 0 auto;
  object-fit: contain;
}

.profile-back-row { margin-bottom: 20px; }
.profile-back-btn { min-height: 46px; }
.animal-profile-grid { grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); }
.animal-profile-photo-frame {
  width: min(680px, 100%);
  aspect-ratio: 4 / 3;
  margin: 0 auto;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 28px;
  background: var(--cream-2);
  box-shadow: var(--shadow);
}
.animal-profile-photo-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.profile-thumbs { width: min(680px, 100%); margin-left: auto; margin-right: auto; }
.animal-profile-copy { padding: 28px; }
.profile-copy-back { margin-top: 12px; }

@media (max-width: 980px) {
  .animal-profile-grid { grid-template-columns: 1fr; }
  .profile-back-row {
    position: sticky;
    top: 78px;
    z-index: 25;
    width: max-content;
    margin-bottom: 16px;
  }
  .profile-back-btn {
    box-shadow: 0 8px 18px rgba(0,0,0,.14);
    background: rgba(255,255,255,.96);
  }
  .animal-profile-photo-frame {
    width: 100%;
    aspect-ratio: 4 / 3;
    border-radius: 22px;
  }
  .lightbox-panel {
    max-height: calc(100dvh - 20px);
    padding: 10px;
    border-radius: 18px;
  }
  .lightbox-panel > .lightbox-actions:first-child {
    top: -10px;
    padding: 9px 0 8px;
  }
  .lightbox-close-btn { min-width: 48px; padding: 0 10px; }
  .lightbox-close-btn .close-label { display: none; }
  .lightbox-main img { max-height: 48dvh; }
  .lightbox-profile-actions { width: 100%; }
  .lightbox-profile-actions .btn { flex: 1 1 150px; }
}


/* ======================================================
   BUILD 04: dark-green brand framing
====================================================== */
.site-header {
  background: rgba(52, 72, 6, .97);
  border-bottom-color: rgba(255,255,255,.14);
  box-shadow: 0 8px 24px rgba(37,52,5,.16);
}
.brand-copy strong { color: var(--cream); }
.brand-copy span { color: var(--amy-green-soft); }
.main-nav a { color: var(--cream); }
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  background: rgba(170,216,22,.18);
  color: #fff;
}
.nav-submenu a { color: var(--wood-dark); }
.menu-toggle {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.25);
}
.menu-toggle span { background: var(--cream); }

.band {
  background: linear-gradient(125deg, var(--amy-green-deep), var(--amy-green-dark));
  color: white;
}
.band .eyebrow { color: var(--amy-green-soft) !important; }
.band .eyebrow::before { background: var(--amy-green); }
.band .lead { color: rgba(255,255,255,.86); }

.action-dock-shell {
  background: var(--amy-green-deep);
  box-shadow: 0 15px 36px rgba(35,49,5,.32);
}
.action-dock-link { color: var(--cream); }
.action-dock-link:hover { background: rgba(255,255,255,.11); }
.action-dock-link + .action-dock-link { border-left-color: rgba(255,255,255,.2); }
.social-lobe {
  background: var(--wood-dark);
  border-color: var(--cream);
  color: white;
}
.social-lobe span {
  background: #efd1a5;
  color: var(--wood-dark);
}

.site-footer {
  background: var(--amy-green-deep);
  color: rgba(255,255,255,.84);
}
.site-footer h3,
.site-footer a { color: var(--cream); }

@media (max-width: 980px) {
  .mobile-drawer { background: var(--cream); }
  .mobile-drawer a,
  .mobile-nav-group summary { color: var(--wood-dark); }
}

/* ======================================================
   BUILD 05: real admin authentication + B2 media library
   Existing public visual system intentionally unchanged.
====================================================== */
.admin-banner-link {
  color: white;
  text-decoration: none;
}
.admin-banner-link:hover,
.admin-banner-link:focus-visible {
  text-decoration: underline;
  text-underline-offset: 3px;
}
.setup-panel {
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(62,36,20,.12);
}
.setup-panel summary {
  cursor: pointer;
  font-weight: 900;
  color: var(--wood-dark);
}
.setup-panel[open] summary { margin-bottom: 16px; }
.status-error { color: var(--danger) !important; font-weight: 800; }
.status-success { color: var(--amy-green-dark) !important; font-weight: 800; }
.admin-logout { width: 100%; margin-top: 18px; }
.owner-account-section { margin-top: 28px; }
.editor-list { display: grid; gap: 10px; margin-top: 18px; }
.editor-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(62,36,20,.1);
  border-radius: 14px;
  background: rgba(255,255,255,.7);
}
.inline-control { display: flex; gap: 8px; }
.inline-control input { flex: 1 1 auto; }
.gallery-filters { display: flex; flex-wrap: wrap; gap: 8px; }
.gallery-filters select {
  min-height: 44px;
  border: 1px solid rgba(62,36,20,.2);
  border-radius: 13px;
  background: white;
  padding: 8px 12px;
  color: var(--ink);
}
.load-more-row { display: flex; justify-content: center; margin-top: 22px; }
.upload-thumb footer { overflow-wrap: anywhere; }
.upload-thumb .delete-photo:disabled { opacity: .45; cursor: wait; }

@media (max-width: 680px) {
  .inline-control { align-items: stretch; }
  .inline-control .btn { flex: 0 0 auto; }
  .gallery-filters { width: 100%; }
  .gallery-filters select { flex: 1 1 160px; }
  .editor-row { align-items: flex-start; flex-direction: column; }
  .editor-row .btn { width: 100%; }
}

/* Shared administration */
[hidden] { display:none !important; }
.ark-library { padding:24px; grid-column:1/-1; }
.ark-actions { display:flex; flex-wrap:wrap; align-items:center; gap:10px; margin:14px 0; }
.ark-dialog { width:min(760px,calc(100vw - 24px)); max-height:90dvh; overflow:auto; border:0; border-radius:18px; padding:24px; color:var(--ink,#203326); background:#fff; }
.ark-dialog::backdrop { background:rgba(0,0,0,.55); }
.ark-dialog-head { display:flex; justify-content:space-between; align-items:center; gap:16px; }
.ark-dialog h2 { font-size:1.8rem; }
.ark-dialog input,.ark-dialog select,.ark-dialog textarea,.ark-library select,.ark-library input { width:100%; padding:12px; font:inherit; font-size:16px; border:1px solid #a6b4a9; border-radius:8px; }
.ark-dialog label { display:block; margin:10px 0; }
.ark-dialog textarea { min-height:110px; }
.ark-dialog .photo-picker-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(125px,1fr)); gap:12px; }
.ark-dialog .photo-picker-grid img { width:100%; height:125px; object-fit:cover; }
.ark-selected-photos { display:flex; flex-wrap:wrap; gap:12px; }
.ark-selected-photos img { display:block; width:120px; height:120px; object-fit:cover; }
.ark-removed { outline:2px dashed #987b44; opacity:.7; }
.team-avatar img { width:100%; height:100%; object-fit:cover; border-radius:inherit; }
.ark-library .upload-thumb { min-width:0; }
.ark-library .upload-thumb footer { overflow-wrap:anywhere; }
.ark-library details { margin-top:24px; }
.ark-library summary { cursor:pointer; font-weight:800; padding:12px 0; }
body:not(.admin-mode) .ark-actions.admin-only { display:none; }
@media(max-width:600px) { .ark-dialog { padding:16px; } .ark-dialog .form-grid { grid-template-columns:1fr; } }

body:not(.admin-mode) .admin-only { display:none !important; }

/* Team photos stay inside the original circular frame. */
.team-avatar { position:relative; width:128px; height:128px; min-width:128px; min-height:128px; aspect-ratio:1; box-sizing:border-box; overflow:hidden; border-radius:50%; }
.team-avatar img { position:absolute; inset:0; display:block; width:100%; height:100%; min-width:0; min-height:0; max-width:100%; max-height:100%; object-fit:cover; object-position:center; border-radius:50%; }
/* Keep the full opaque library panel above the sticky tools on desktop. */
@media(min-width:981px) {
  .admin-grid > .admin-side { z-index:1; }
  .admin-grid > .ark-library { position:relative; z-index:2; background:var(--white,#fff); }
}

/* Featured picture: square dimensions, circular clipping at every screen size. */
.cuteness-photo { width:min(720px,100%); aspect-ratio:1; height:auto; border-radius:50%; overflow:hidden; position:relative; }
.cuteness-photo img { position:absolute; inset:0; display:block; width:100%; height:100%; max-height:none; object-fit:cover; object-position:center; border-radius:50%; }
.ark-restore-preview { display:block; max-width:100%; max-height:320px; object-fit:contain; margin:16px auto; }

/* Full profiles show the entire original image without grid overflow or crop. */
.animal-profile-photo-frame { position:relative; min-width:0; }
.animal-profile-photo-frame img[data-profile-main] { position:absolute; inset:0; width:100%; height:100%; min-width:0; min-height:0; max-width:100%; max-height:100%; object-fit:contain !important; object-position:center; transform:none !important; }

/* Canonical board sections: three across on desktop, stacked on mobile. */
.note-board { min-height:0 !important; }
.ark-board-stage { position:absolute; left:0; top:0; transform-origin:0 0; }
.ark-board-stage .sticky-note { position:absolute; width:148px; height:180px; min-height:0; box-sizing:border-box; padding:16px 12px 28px; transform:none; }
.ark-board-stage .sticky-note p { font-size:14px; line-height:1.25; margin:0; max-height:130px; overflow:auto; overflow-wrap:anywhere; }
.ark-board-stage .sticky-note.owned { touch-action:none; }
.ark-note-edit { position:absolute; bottom:4px; left:8px; font:inherit; font-size:12px; border:0; background:transparent; cursor:pointer; }
.ark-board-add { position:relative !important; inset:auto !important; margin:12px 0; transform:none !important; }
.ark-photo-page { position:relative; isolation:isolate; }
.ark-page-photos { position:absolute; inset:0; z-index:-1; pointer-events:none; }
.ark-page-photos.ark-page-photos-front { z-index:60; }
.ark-page-photo { position:absolute; }
.ark-page-photo>img { display:block; width:100%; height:auto; max-width:none; border-radius:0; object-fit:contain; }
.ark-photo-page .ark-page-photos.editing { z-index:70; }
.ark-page-photos.editing .ark-page-photo { pointer-events:auto; outline:2px dashed #176b49; cursor:move; touch-action:none; }
.ark-page-photo-tools { position:sticky; top:0; z-index:40; padding:12px; background:#fff; display:flex; flex-wrap:wrap; gap:8px; align-items:center; }
.ark-page-photo-tools[hidden],.ark-page-photo-tools button[hidden] { display:none; }
.ark-page-photo-actions { position:absolute; bottom:0; left:0; right:0; display:flex; gap:4px; flex-wrap:wrap; }
.ark-page-photo-actions button { font-size:12px; background:white; color:#124c35; border:1px solid #176b49; padding:6px; cursor:pointer; }
.ark-page-photo-actions [data-size] { margin-left:auto; cursor:nwse-resize; touch-action:none; }

.ark-board-stage .sticky-note:not(.owned) { touch-action:pan-y; }

.ark-page-photo-actions select { max-width:100%; background:white; color:#124c35; font-size:12px; }

/* Board v5.5: cork interior, protected source pad, no scrollable note content. */
.note-board {
  background: #a7c24b url('/assets/img/green-cork.png') repeat;
  background-size: 300px 300px;
  box-shadow: inset 0 0 0 8px #5f3d22, var(--shadow);
}
.ark-board-stage > .note-pad {
  position: absolute; right: auto; width: 122px; height: 122px;
  z-index: 2147483647; transform: rotate(2deg); touch-action: none;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  pointer-events: auto;
}
.ark-board-stage > .note-pad::after { content: '+ drag a note'; pointer-events: none; }
.ark-board-stage > .note-pad:disabled { cursor: wait; opacity: .8; }
.ark-board-stage .sticky-note {
  height: 180px; padding: 12px 12px 36px;
  overflow: hidden !important; touch-action: none !important;
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
}
.ark-board-stage .sticky-note .ark-note-text,
.ark-board-stage .sticky-note textarea {
  display: block; width: 100%; height: 100%; min-height: 0; max-height: none;
  margin: 0; padding: 0; border: 0; border-radius: 0; box-shadow: none;
  overflow: hidden !important; resize: none; scrollbar-width: none;
  background: transparent; color: var(--ink); font-family: inherit;
  font-weight: 600; line-height: 1.15; letter-spacing: normal;
  white-space: pre-wrap; overflow-wrap: anywhere; word-break: break-word;
}
.ark-board-stage .sticky-note .ark-note-text {
  pointer-events: none; user-select: none; -webkit-user-select: none;
}
.ark-board-stage .sticky-note .ark-note-text[hidden] { display: none; }
.ark-board-stage .sticky-note textarea {
  pointer-events: auto; user-select: text; -webkit-user-select: text;
  touch-action: auto; -webkit-touch-callout: default; outline: none;
}
.ark-board-stage .sticky-note.is-editing { touch-action: auto !important; outline: 2px solid #344806; }
.ark-board-stage .sticky-note textarea::-webkit-scrollbar,
.ark-board-stage .sticky-note .ark-note-text::-webkit-scrollbar { display: none; }
.ark-board-stage .sticky-note .is-empty { opacity: .65; }
.ark-note-controls {
  position: absolute; left: 8px; right: 8px; bottom: 6px; height: 24px;
  display: flex; align-items: center; gap: 4px;
}
.ark-note-controls button {
  padding: 3px 6px; border: 0; border-radius: 4px; background: rgba(255,255,255,.75);
  color: #2d271f; font: 700 12px/1.2 'Nunito Sans',sans-serif;
  cursor: pointer; touch-action: manipulation;
}
.ark-note-controls [data-remove] { margin-left: auto; font-size: 16px; }
.ark-note-controls [data-count] { margin-left: auto; font: 10px/1 sans-serif; white-space: nowrap; }
.ark-board-status:empty { display: none; }

/* Gallery actions and optional page-photo links. */
.upload-thumb [data-gallery-download], .upload-thumb [data-gallery-trash] { display:block; margin:10px auto; }
.ark-page-photo-link { position:absolute; inset:0; pointer-events:none; }
.ark-page-photo-link:focus-visible { outline:3px solid #176b49; }

/* Match public page geometry while positioning and previewing page photos. */
body.ark-photo-placement .admin-only:not(.ark-page-photo-tools),
body.ark-photo-placement .admin-banner,
body.ark-photo-placement .ark-removed { display:none !important; }
body.ark-photo-placement .ark-page-photo-tools { position:fixed; top:0; left:0; right:0; z-index:90; max-height:35vh; overflow:auto; }

/* Social icon balance and optional team biographies. */
.social-lobe.left span { font-size:1.25em; }
.team-bio-button { font-size:.8rem; padding:5px 13px; min-height:0; margin-top:8px; }
.team-bio-page { padding:28px; margin-top:20px; max-width:800px; margin-left:auto; margin-right:auto; }
.team-bio-page .team-avatar { margin-left:auto; margin-right:auto; }
.team-bio-page .team-role,.team-bio-page h1 { text-align:center; }
.team-bio-text { white-space:pre-wrap; overflow-wrap:anywhere; line-height:1.7; }
.team-bio-page textarea { width:100%; min-height:320px; padding:14px; font:inherit; font-size:16px; }

/* Community link keeps the standard navigation type size. */
.community-nav-label { display:inline-flex;flex-direction:column;align-items:center;line-height:1.2;white-space:nowrap; }
.mobile-nav-link[href="/cuteness"] { white-space:normal;line-height:1.45; }
.ark-copy-tool { position:fixed;right:16px;top:100px;z-index:1000;box-shadow:0 3px 12px #0002; }
.ark-dialog [data-fields] textarea { width:100%;box-sizing:border-box; }
[hidden] { display:none !important; }
body.ark-photo-placement .ark-copy-tool { display:none !important; }
