/* Bali Pet Hub — design system, colours taken from the logo
   Palette: jungle green (ink), lagoon teal "HUB" (primary), banner cream, sunset gold (Platinum),
   bone orange "Adopt, don't shop" (adoption), blue (Verified badge only)
   Type: Bricolage Grotesque (headings) + Atkinson Hyperlegible (body, chosen for legibility on phones) */

@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Bricolage"; src: url("../fonts/bricolage-grotesque-latin-800-normal.woff2") format("woff2"); font-weight: 800; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-latin-400-italic.woff2") format("woff2"); font-weight: 400; font-style: italic; font-display: swap; }
@font-face { font-family: "Atkinson"; src: url("../fonts/atkinson-hyperlegible-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  --ink: #112a23;
  --ink-soft: #46605a;
  --muted: #6d817b;
  --lagoon: #067e7e;
  --lagoon-deep: #0a5c5b;
  --lagoon-tint: #e0f1ef;
  --paper: #fbf7ee;
  --cream: #fdf4e2;
  --forest: #112a23;
  --card: #ffffff;
  --line: #e4dccb;
  --line-strong: #cbbfa6;
  --gold: #f2b630;
  --gold-deep: #9a6a00;
  --gold-tint: #fff6dd;
  --hibiscus: #c14f22;
  --hibiscus-tint: #fbe9df;
  --verified: #2563eb;
  --verified-tint: #e7efff;
  --ok: #1e7a46;
  --ok-tint: #e2f4e9;
  --warn: #9a5b00;
  --warn-tint: #fff1d6;
  --bad: #b42323;
  --bad-tint: #fde6e6;
  --radius-s: 8px;
  --radius: 14px;
  --radius-l: 22px;
  --font-head: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Atkinson", "Segoe UI", system-ui, -apple-system, sans-serif;
  --wrap: 1180px;
  --gutter: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.6 var(--font-body); overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--lagoon); text-underline-offset: 3px; }
a:hover { color: var(--lagoon-deep); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; color: var(--ink); letter-spacing: -0.01em; }
h1 { font-size: clamp(1.75rem, 4.6vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.35rem, 3vw, 1.85rem); font-weight: 700; }
h3 { font-size: 1.15rem; font-weight: 700; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -0.18em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.stack > * + * { margin-top: 1rem; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.grow { flex: 1; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .75rem; } .mt-2 { margin-top: 1.5rem; } .mt-3 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .75rem; } .mb-2 { margin-bottom: 1.5rem; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---------------------------------------------------------------- header */
.site-header { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.site-header .wrap { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--ink); font-family: var(--font-head); font-weight: 800; font-size: 1.1rem; letter-spacing: -0.02em; }
.logo-mark { width: 34px; height: 34px; border-radius: 11px; background: var(--lagoon); color: #fff; display: grid; place-items: center; }
.logo-mark .icon { width: 22px; height: 22px; }
.logo-img { width: 44px; height: 44px; border-radius: 50%; flex: none; }
.logo-word { display: inline-flex; flex-direction: column; line-height: 1; }
.logo-word b { font-weight: 800; font-size: 1.22rem; letter-spacing: -0.015em; }
.logo-word b span { color: var(--lagoon); }
.logo-word small { font-family: var(--font-body); font-weight: 700; font-size: .66rem; letter-spacing: .06em; color: var(--ink-soft); margin-top: .2rem; }
.site-footer .logo-word b span { color: #5fc4bd; }
.site-footer .logo-word small { color: #b9cbc5; }
.nav { display: none; gap: .25rem; margin-left: auto; align-items: center; }
.nav a, .nav button.linklike { padding: .5rem .7rem; border-radius: 999px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .95rem; }
.nav a:hover, .nav a[aria-current="page"] { background: var(--lagoon-tint); color: var(--lagoon-deep); }
.nav .lang { font-size: .85rem; color: var(--muted); border: 1px solid var(--line); }
.menu-toggle { margin-left: auto; background: none; border: 1px solid var(--line); border-radius: 10px; padding: .45rem .6rem; color: var(--ink); cursor: pointer; }
.mobile-nav { display: none; border-top: 1px solid var(--line); background: var(--card); padding: .5rem var(--gutter) 1rem; }
.mobile-nav.open { display: block; }
.mobile-nav a { display: block; padding: .7rem .25rem; font-weight: 700; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.notif-dot { display: inline-block; min-width: 1.25rem; padding: 0 .35rem; border-radius: 999px; background: var(--hibiscus); color: #fff; font-size: .72rem; text-align: center; line-height: 1.25rem; }
@media (min-width: 900px) { .nav { display: flex; } .menu-toggle, .mobile-nav, .mobile-nav.open { display: none; } }

/* ---------------------------------------------------------------- buttons & forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; padding: .7rem 1.15rem; border-radius: 999px; border: 1.5px solid transparent; font: 700 .97rem/1.2 var(--font-body); text-decoration: none; cursor: pointer; background: var(--lagoon); color: #fff; min-height: 44px; }
.btn:hover { background: var(--lagoon-deep); color: #fff; }
.btn-ghost { background: transparent; color: var(--lagoon-deep); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--lagoon-tint); color: var(--lagoon-deep); }
.btn-gold { background: var(--gold); color: #3b2a00; }
.btn-gold:hover { background: #e2a516; color: #3b2a00; }
.btn-wa { background: #1fa855; }
.btn-wa:hover { background: #16884a; }
.btn-danger { background: var(--bad); }
.btn-danger:hover { background: #8f1b1b; }
.btn-small { padding: .4rem .8rem; min-height: 34px; font-size: .87rem; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linklike { background: none; border: 0; padding: 0; color: var(--lagoon); font: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

label { display: block; font-weight: 700; margin: 0 0 .35rem; font-size: .95rem; }
.field { margin-bottom: 1.05rem; }
.hint { font-size: .85rem; color: var(--muted); margin: .3rem 0 0; font-weight: 400; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=date], input[type=time], input[type=search], select, textarea {
  width: 100%; padding: .68rem .8rem; border: 1.5px solid var(--line-strong); border-radius: 10px; background: #fff; color: var(--ink); font: 1rem/1.4 var(--font-body); min-height: 44px; }
textarea { min-height: 120px; resize: vertical; }
input:focus, select:focus, textarea:focus { border-color: var(--lagoon); outline: 3px solid rgba(15,110,102,.18); outline-offset: 0; }
.check { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400; cursor: pointer; }
.check input { width: 1.15rem; height: 1.15rem; margin-top: .2rem; accent-color: var(--lagoon); flex: none; }
.field-error { color: var(--bad); font-size: .87rem; margin: .3rem 0 0; font-weight: 700; }
.has-error input, .has-error select, .has-error textarea { border-color: var(--bad); }
.grid-2, .grid-3 { display: grid; gap: 0 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: 1fr 1fr; } .grid-3 { grid-template-columns: repeat(3, 1fr); } }
fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1rem .25rem; margin: 0 0 1.25rem; background: var(--card); }
legend { font-family: var(--font-head); font-weight: 700; padding: 0 .4rem; font-size: 1.05rem; }

/* ---------------------------------------------------------------- alerts & badges */
.flash { border-radius: var(--radius); padding: .85rem 1rem; margin: 1rem 0; font-weight: 700; border: 1px solid; display: flex; gap: .6rem; align-items: flex-start; }
.flash-success { background: var(--ok-tint); color: var(--ok); border-color: #b5e0c5; }
.flash-error { background: var(--bad-tint); color: var(--bad); border-color: #f2bcbc; }
.flash-warning { background: var(--warn-tint); color: var(--warn); border-color: #f1d49a; }
.flash-info { background: var(--lagoon-tint); color: var(--lagoon-deep); border-color: #bcdcd2; }
.badge { display: inline-flex; align-items: center; gap: .3rem; padding: .18rem .6rem; border-radius: 999px; font-size: .78rem; font-weight: 700; line-height: 1.5; white-space: nowrap; }
.badge-ok { background: var(--ok-tint); color: var(--ok); }
.badge-warn { background: var(--warn-tint); color: var(--warn); }
.badge-bad { background: var(--bad-tint); color: var(--bad); }
.badge-muted { background: #edf2f0; color: var(--ink-soft); }
.badge-plat, .badge-platinum { background: var(--gold-tint); color: var(--gold-deep); border: 1px solid #f3d27a; }
/* The three trust labels are visually distinct (§116) */
.badge-verified { background: var(--verified-tint); color: var(--verified); }
.badge-prem { background: var(--lagoon-tint); color: var(--lagoon-deep); border: 1px solid #a9d3c6; }
.badge-org { background: var(--lagoon-tint); color: var(--lagoon-deep); border: 1px solid #a9d3c6; }
.badge-adopt { background: var(--hibiscus-tint); color: var(--hibiscus); }
.badge-open { background: var(--ok-tint); color: var(--ok); }
.badge-closed { background: #edf2f0; color: var(--ink-soft); }
.badge-emergency { background: var(--bad-tint); color: var(--bad); }

/* ---------------------------------------------------------------- hero: the sentence search */
.hero { background: var(--forest); color: #fff; position: relative; overflow: hidden; }
.hero::after { content: ""; position: absolute; inset: auto -10% -40px -10%; height: 140px;
  background: repeating-linear-gradient(170deg, rgba(255,255,255,.05) 0 14px, transparent 14px 34px); transform: skewY(-3deg); pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; padding-top: 2.5rem; padding-bottom: 3rem; }
.hero h1 { color: #fff; max-width: 15ch; margin-bottom: .4rem; }
.hero .lede { color: #d9e6df; font-size: 1.1rem; max-width: 48ch; }
.sentence-search { margin-top: 1.75rem; background: #fff; color: var(--ink); border-radius: var(--radius-l); padding: 1.1rem; }
.sentence { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.25rem, 3.6vw, 2rem); line-height: 1.5; letter-spacing: -0.015em; }
.sentence .slot { display: inline-block; position: relative; vertical-align: baseline; }
.sentence select { font: inherit; color: var(--lagoon); background: transparent; border: 0; border-bottom: 3px solid var(--gold); border-radius: 0; padding: 0 1.3rem 0 .1rem; min-height: 0; width: auto; max-width: 78vw; appearance: none; -webkit-appearance: none; cursor: pointer;
  background-image: linear-gradient(45deg, transparent 50%, var(--lagoon) 50%), linear-gradient(135deg, var(--lagoon) 50%, transparent 50%);
  background-position: calc(100% - 9px) 55%, calc(100% - 3px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.sentence select:focus { outline: 3px solid var(--gold); outline-offset: 2px; }
.sentence-actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; align-items: center; }
.sentence-actions .q { flex: 1 1 220px; }
.radius-pick { display: none; gap: .35rem; flex-wrap: wrap; }
.radius-pick.show { display: flex; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .42rem .8rem; border: 1.5px solid var(--line-strong); border-radius: 999px; background: #fff; color: var(--ink); font-weight: 700; font-size: .9rem; text-decoration: none; cursor: pointer; min-height: 38px; }
.chip:hover { border-color: var(--lagoon); color: var(--lagoon-deep); }
.chip.on, .chip[aria-pressed="true"], input:checked + .chip { background: var(--lagoon); color: #fff; border-color: var(--lagoon); }
.chip-input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip-input:focus-visible + .chip { outline: 3px solid var(--gold); outline-offset: 2px; }

.paths { display: grid; gap: 1rem; margin-top: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 760px) { .paths { grid-template-columns: repeat(3, 1fr); } }
.path { display: block; text-decoration: none; color: #fff; padding: 1rem 1.1rem; border-radius: var(--radius); border: 1px solid rgba(255,255,255,.22); }
.path:hover { background: rgba(255,255,255,.08); color: #fff; }
.path strong { font-family: var(--font-head); font-size: 1.15rem; display: flex; align-items: center; gap: .5rem; }
.path span { color: #d9e6df; font-size: .95rem; }

/* ---------------------------------------------------------------- sections */
.section { padding-top: 2.75rem; padding-bottom: 2.75rem; }
.section-tight { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.section-head { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.section-head h2 { margin: 0; }
.band { background: var(--card); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cat-grid { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .cat-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat { display: flex; justify-content: space-between; align-items: center; gap: .5rem; padding: .85rem 1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 700; }
.cat:hover { border-color: var(--lagoon); color: var(--lagoon-deep); }
.cat small { color: var(--muted); font-weight: 400; }
.area-list { display: flex; flex-wrap: wrap; gap: .45rem; }
.regencies { display: grid; gap: .6rem; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.regency { padding: .9rem 1rem; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.regency strong { display: block; font-family: var(--font-head); font-size: 1.05rem; }
.regency:hover { border-color: var(--lagoon); }
.why { display: grid; gap: 1rem; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 700px) { .why { grid-template-columns: repeat(5, 1fr); } }
.why li { border-top: 3px solid var(--lagoon); padding-top: .7rem; font-weight: 700; }

/* ---------------------------------------------------------------- business cards */
.results { display: grid; gap: .8rem; }
.bcard { display: grid; grid-template-columns: 1fr; gap: .2rem; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; position: relative; }
.bcard:hover { border-color: var(--line-strong); }
.bcard.platinum { border-color: #efd07a; background: linear-gradient(180deg, #fffaf0, #fff 70%); box-shadow: inset 4px 0 0 var(--gold); }
.bcard h3 { margin: 0; font-size: 1.12rem; }
.bcard h3 a { color: var(--ink); text-decoration: none; }
.bcard h3 a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.bcard h3 a:focus-visible::after { outline: 3px solid var(--gold); }
.bcard .meta { display: flex; gap: .4rem .8rem; flex-wrap: wrap; align-items: center; color: var(--ink-soft); font-size: .93rem; }
.bcard .badges { display: flex; gap: .35rem; flex-wrap: wrap; margin: .2rem 0; }
.bcard .fav, .bcard .card-actions { position: relative; z-index: 2; }
.bcard-media { display: grid; grid-template-columns: 1fr; gap: .9rem; }
@media (min-width: 560px) { .bcard-media.has-photo { grid-template-columns: 150px 1fr; } }
.bcard-media img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.stars { color: var(--gold-deep); letter-spacing: 1px; white-space: nowrap; }
.stars .off { color: #d9e1de; }
.featured-strip { display: grid; gap: .8rem; grid-template-columns: 1fr; margin-bottom: 1.25rem; }
@media (min-width: 800px) { .featured-strip { grid-template-columns: repeat(3, 1fr); } }

/* ---------------------------------------------------------------- directory layout */
.dir-layout { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
@media (min-width: 980px) { .dir-layout { grid-template-columns: 280px 1fr; } }
.filters { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: none; }
.filters.open { display: block; }
@media (min-width: 980px) { .filters { display: block; position: sticky; top: 80px; align-self: start; max-height: calc(100vh - 100px); overflow: auto; } .filter-toggle { display: none !important; } }
.filters h3 { font-size: 1rem; margin-top: .4rem; }
.filters .check { margin-bottom: .45rem; }
.toolbar { display: flex; gap: .5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 1rem; }
.seg { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 999px; overflow: hidden; background: #fff; }
.seg a { padding: .45rem .9rem; text-decoration: none; color: var(--ink); font-weight: 700; font-size: .9rem; display: inline-flex; gap: .35rem; align-items: center; }
.seg a.on { background: var(--lagoon); color: #fff; }
.map { width: 100%; height: 62vh; min-height: 360px; border-radius: var(--radius); border: 1px solid var(--line); z-index: 0; }
.map-small { height: 260px; min-height: 0; }
.crumbs { font-size: .88rem; color: var(--muted); margin: 1rem 0 .4rem; }
.crumbs a { color: var(--ink-soft); }
.page-head { padding: 1.5rem 0 .5rem; }
.page-head p { color: var(--ink-soft); max-width: 70ch; }
.empty { text-align: center; padding: 2.5rem 1rem; background: var(--card); border: 1px dashed var(--line-strong); border-radius: var(--radius); }

/* map markers */
.pin { width: 16px; height: 16px; border-radius: 50%; background: #7d918d; border: 3px solid #fff; box-shadow: 0 1px 4px rgba(0,0,0,.35); }
.pin-verified { background: var(--verified); width: 20px; height: 20px; }
.pin-platinum { width: 30px; height: 30px; background: var(--gold); border-color: #fff; display: grid; place-items: center; color: #3b2a00; font-size: 15px; font-weight: 800; }
.pin-me { background: var(--hibiscus); width: 18px; height: 18px; }
.leaflet-popup-content { font: 14px/1.4 var(--font-body); }
.leaflet-popup-content a { font-weight: 700; }

/* ---------------------------------------------------------------- profile pages */
.profile { display: grid; gap: 1.5rem; grid-template-columns: 1fr; padding-bottom: 6rem; }
@media (min-width: 980px) { .profile { grid-template-columns: 1fr 340px; padding-bottom: 2rem; } }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.panel + .panel { margin-top: 1rem; }
.panel h2 { font-size: 1.2rem; }
.profile-title { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; }
.profile-title h1 { margin: 0; }
.gallery { display: grid; gap: .5rem; grid-template-columns: 2fr 1fr; grid-auto-rows: 120px; margin-bottom: 1rem; }
.gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.gallery img:first-child { grid-row: span 2; }
.gallery.single { grid-template-columns: 1fr; grid-auto-rows: 260px; }
.gallery.single img:first-child { grid-row: auto; }
.hours { width: 100%; border-collapse: collapse; font-size: .95rem; }
.hours td { padding: .32rem 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.hours tr.today td { font-weight: 700; color: var(--lagoon-deep); }
.hours td:last-child { text-align: right; }
.actions-col { display: grid; gap: .55rem; }
.sticky-actions { position: fixed; left: 0; right: 0; bottom: 0; background: rgba(255,255,255,.97); border-top: 1px solid var(--line); padding: .6rem var(--gutter) calc(.6rem + env(safe-area-inset-bottom)); display: flex; gap: .5rem; z-index: 40; }
.sticky-actions .btn { flex: 1; padding-left: .5rem; padding-right: .5rem; }
@media (min-width: 980px) { .sticky-actions { display: none; } }
.notice { border-radius: var(--radius); padding: 1rem 1.1rem; background: var(--warn-tint); color: var(--warn); font-weight: 700; margin-bottom: 1rem; }
.cta-box { border: 1.5px dashed var(--line-strong); border-radius: var(--radius); padding: 1rem; }
.facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: .6rem 1rem; margin: 0; }
.facts dt { font-size: .82rem; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; }
.tags { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; list-style: none; }
.tags li { background: var(--lagoon-tint); color: var(--lagoon-deep); padding: .25rem .65rem; border-radius: 999px; font-size: .88rem; font-weight: 700; }
.review { border-top: 1px solid var(--line); padding: 1rem 0; }
.review:first-of-type { border-top: 0; }
.review .response { margin: .6rem 0 0 1rem; padding: .6rem .8rem; border-left: 3px solid var(--lagoon); background: var(--lagoon-tint); border-radius: 0 10px 10px 0; font-size: .95rem; }
details.disclose summary { cursor: pointer; font-weight: 700; color: var(--lagoon); list-style: none; }
details.disclose summary::-webkit-details-marker { display: none; }
details.disclose[open] summary { margin-bottom: .8rem; }
.rating-input { display: flex; flex-direction: row-reverse; justify-content: flex-end; gap: .2rem; }
.rating-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.rating-input label { font-size: 2rem; line-height: 1; color: #d9e1de; cursor: pointer; margin: 0; }
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold); }
.rating-input input:focus-visible + label { outline: 3px solid var(--gold); }

/* ---------------------------------------------------------------- adoption */
.animal-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.acard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; position: relative; display: flex; flex-direction: column; }
.acard img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--lagoon-tint); }
.acard .body { padding: .85rem 1rem 1rem; display: grid; gap: .3rem; }
.acard h3 { margin: 0; font-size: 1.2rem; }
.acard h3 a { color: var(--ink); text-decoration: none; }
.acard h3 a::after { content: ""; position: absolute; inset: 0; }
.acard .fav { position: absolute; top: .6rem; right: .6rem; z-index: 2; }
.acard .facts-line { color: var(--ink-soft); font-size: .93rem; }
.health { display: flex; gap: .35rem; flex-wrap: wrap; }
.adopt-rule { border-left: 4px solid var(--hibiscus); background: var(--hibiscus-tint); padding: .85rem 1rem; border-radius: 0 var(--radius) var(--radius) 0; color: #6b2a10; }
.fav-btn { background: #fff; border: 1.5px solid var(--line-strong); color: var(--hibiscus); border-radius: 999px; width: 40px; height: 40px; display: grid; place-items: center; cursor: pointer; }
.fav-btn[aria-pressed="true"] { background: var(--hibiscus); color: #fff; border-color: var(--hibiscus); }
.fav-btn[aria-pressed="true"] .icon { fill: currentColor; }
.photo-strip { display: grid; gap: .5rem; grid-template-columns: repeat(3, 1fr); margin-bottom: 1rem; }
.photo-strip img { border-radius: 12px; aspect-ratio: 1; object-fit: cover; width: 100%; }
.photo-strip img:first-child { grid-column: span 3; aspect-ratio: 4/3; }

/* ---------------------------------------------------------------- dashboards & account */
.dash-head { background: var(--card); border-bottom: 1px solid var(--line); padding: 1.25rem 0 0; }
.tabs { display: flex; gap: .25rem; overflow-x: auto; margin-top: 1rem; scrollbar-width: none; }
.tabs a { padding: .65rem 1rem; border-bottom: 3px solid transparent; text-decoration: none; color: var(--ink-soft); font-weight: 700; white-space: nowrap; }
.tabs a.on { color: var(--lagoon-deep); border-color: var(--lagoon); }
.cards-2 { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .cards-2 { grid-template-columns: 1fr 1fr; } }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .6rem; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; text-decoration: none; color: var(--ink); }
.stat b { display: block; font-family: var(--font-head); font-size: 1.6rem; line-height: 1.1; }
.stat span { font-size: .85rem; color: var(--muted); }
a.stat:hover { border-color: var(--lagoon); }
.stat.alert b { color: var(--hibiscus); }
.list-plain { list-style: none; padding: 0; margin: 0; }
.list-plain li { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.plan-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .plan-grid { grid-template-columns: repeat(3, 1fr); } }
.plan { background: var(--card); border: 1.5px solid var(--line); border-radius: var(--radius); padding: 1.1rem; }
.plan.current { border-color: var(--lagoon); }
.plan.platinum { border-color: #efd07a; background: linear-gradient(180deg, #fffaf0, #fff 60%); }
.plan .price { font-family: var(--font-head); font-size: 1.6rem; font-weight: 800; }
.plan ul { padding-left: 1.1rem; margin: .5rem 0 1rem; }
.hours-editor .day { display: grid; grid-template-columns: 70px 1fr; gap: .5rem; align-items: start; padding: .55rem 0; border-bottom: 1px solid var(--line); }
.hours-editor .day > strong { padding-top: .6rem; }
.hours-editor .blocks { display: grid; gap: .4rem; }
.hours-editor .block { display: flex; gap: .4rem; align-items: center; }
.hours-editor .block input { width: auto; flex: 1; min-width: 0; }
.hours-editor select { max-width: 220px; }
.thumbs { display: flex; gap: .6rem; flex-wrap: wrap; }
.thumbs figure { margin: 0; width: 140px; }
.thumbs img { border-radius: 10px; aspect-ratio: 4/3; object-fit: cover; width: 100%; }
.thumbs figcaption { margin-top: .3rem; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--forest); color: #c5d6d2; margin-top: 3rem; padding: 2.5rem 0 1.5rem; font-size: .95rem; }
.site-footer a { color: #e6f1ee; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; color: #fff; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: 1fr; }
@media (min-width: 800px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.3fr; } }
.site-footer h3 { color: #fff; font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.site-footer .newsletter input[type=email] { background: #1c3a31; border-color: #33574c; color: #fff; }
.site-footer .check { color: #c5d6d2; font-size: .88rem; }
.footer-bottom { border-top: 1px solid #2c4945; margin-top: 2rem; padding-top: 1rem; font-size: .85rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ---------------------------------------------------------------- content pages */
.prose { max-width: 72ch; }
.prose h2 { margin-top: 1.6em; }
.prose ul, .prose ol { padding-left: 1.3rem; }
.auth-card { max-width: 460px; margin: 2rem auto; }
.pagination { display: flex; gap: .35rem; flex-wrap: wrap; margin: 1.5rem 0; }
.pagination a, .pagination span { padding: .45rem .8rem; border-radius: 10px; border: 1px solid var(--line); background: #fff; text-decoration: none; color: var(--ink); font-weight: 700; }
.pagination span[aria-current] { background: var(--lagoon); color: #fff; border-color: var(--lagoon); }
.dup-box { border: 1.5px solid #f1d49a; background: var(--warn-tint); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; }
.dup-box ul { margin: .5rem 0; padding-left: 1.1rem; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
table.data { width: 100%; border-collapse: collapse; font-size: .93rem; }
table.data th, table.data td { padding: .6rem .75rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
table.data th { background: #f1f6f4; font-size: .82rem; color: var(--ink-soft); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
.qr { width: 200px; height: 200px; background: #fff; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.qr svg, .qr img { width: 100%; height: 100%; }
.error-page { text-align: center; padding: 4rem 0; }
.error-page .code { font-family: var(--font-head); font-size: 5rem; font-weight: 800; color: var(--lagoon); line-height: 1; }
.featured-strip .bcard-media.has-photo { grid-template-columns: 1fr; }
.featured-strip .bcard-media img { aspect-ratio: 16/9; }
.sentence select { max-width: min(78vw, 14ch + 2rem); }
fieldset { min-width: 0; }
.hours-editor .day { grid-template-columns: 76px minmax(0, 1fr); }
.hours-editor .block input[type=time] { min-width: 0; padding-left: .45rem; padding-right: .35rem; }
@media (max-width: 420px) { .hours-editor .day { grid-template-columns: 1fr; } .hours-editor .day > strong { padding-top: 0; } }

/* ---------------------------------------------------------------- hero with the Bali Pet Hub logo */
.hero-top { display: grid; gap: .5rem 2rem; align-items: center; }
.hero-logo { width: min(100%, 440px); margin: -1.25rem auto -.25rem; }
.hero-text { min-width: 0; }
@media (min-width: 900px) {
  .hero-top { grid-template-columns: minmax(0, 1fr) minmax(0, 520px); }
  .hero-logo { order: 2; width: 100%; margin: -1.5rem 0 -1rem; }
}
