:root {
  --lm-blue: #0675a9;
  --lm-blue-dark: #00547f;
  --lm-aqua: #6dd5ed;
  --lm-ink: #183447;
  --lm-muted: #526b7a;
  --lm-cream: #f8f3eb;
  --lm-paper: #fffdfa;
  --lm-coral: #c94d3d;
  --lm-red: #b4232d;
  --lm-green: #11683f;
  --lm-line: rgba(24, 52, 71, 0.16);
  --lm-shadow-sm: 0 8px 22px rgba(24, 52, 71, 0.08);
  --lm-shadow-md: 0 18px 46px rgba(24, 52, 71, 0.12);
  --lm-radius-sm: 10px;
  --lm-radius: 16px;
  --lm-page: min(1120px, calc(100vw - 40px));
}

html {
  scroll-padding-top: 84px;
  background: var(--lm-cream);
}

body.lm-system {
  color: var(--lm-ink);
  background: var(--lm-cream);
  font-family: "Avenir Next", "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  scrollbar-color: rgba(6, 117, 169, 0.55) var(--lm-cream);
  scrollbar-width: thin;
}

body.lm-system::selection,
body.lm-system *::selection {
  color: #fff;
  background: var(--lm-blue-dark);
}

body.lm-system *,
body.lm-system *::before,
body.lm-system *::after {
  box-sizing: border-box;
}

body.lm-system :where(a, button, input, select, textarea, summary):focus-visible {
  outline: 3px solid rgba(0, 117, 169, 0.48) !important;
  outline-offset: 3px !important;
}

body.lm-system :where(button, input, select, textarea) {
  font: inherit;
}

body.lm-system :where(h1, h2) {
  color: var(--lm-ink);
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.035em;
  text-wrap: balance;
}

body.lm-system :where(h3, h4) {
  color: var(--lm-ink);
  letter-spacing: -0.02em;
  text-wrap: balance;
}

body.lm-system :where(p, li) {
  overflow-wrap: anywhere;
}

.lm-skip-link {
  position: fixed;
  z-index: 100000;
  inset-block-start: 12px;
  inset-inline-start: 12px;
  padding: 11px 15px;
  color: #fff;
  background: var(--lm-ink);
  border-radius: var(--lm-radius-sm);
  box-shadow: var(--lm-shadow-md);
  transform: translateY(-160%);
  transition: transform 160ms ease-out;
  text-decoration: none;
  font-weight: 800;
}

.lm-skip-link:focus {
  color: #fff;
  transform: translateY(0);
}

/* Shared top bars */
body.lm-system :where(.pet-topbar, .lf-topbar, .publish-topbar, .knowledge-header) {
  border-bottom: 1px solid var(--lm-line);
  background: rgba(255, 253, 250, 0.97);
  box-shadow: none;
  backdrop-filter: blur(12px);
}

body.lm-system :where(.pet-brand, .lf-brand, .publish-brand, .knowledge-brand, .brand, .brand-link) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--lm-blue-dark);
  font-weight: 850;
  letter-spacing: -0.03em;
}

body.lm-system :where(.pet-brand-mark, .lf-brand-mark, .publish-brand-mark, .knowledge-brand__mark) {
  background: var(--lm-blue);
  border-radius: 12px 12px 12px 4px;
}

/* Activity, veterinary and generic POI details */
body.lm-detail {
  min-height: 100vh;
  overflow-x: clip;
  color: var(--lm-ink) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(109, 213, 237, 0.18), transparent 30rem),
    var(--lm-cream) !important;
}

body.lm-detail .vet-topbar {
  padding: 22px 0 8px;
}

body.lm-detail .vet-topbar .container {
  width: var(--lm-page);
  max-width: none;
  padding-inline: 0;
}

body.lm-detail .map-header {
  height: 64px;
  background: rgba(255, 253, 250, 0.97);
  border-bottom: 1px solid var(--lm-line);
  backdrop-filter: blur(12px);
}

body.lm-detail .brand-link {
  color: var(--lm-blue-dark);
  font-size: 1.32rem;
}

body.lm-detail .back-btn {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  padding: 0 14px;
  color: var(--lm-ink);
  background: transparent;
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius-sm);
  box-shadow: none;
}

body.lm-detail .back-btn:hover {
  color: var(--lm-blue-dark);
  background: #eaf6fb;
}

body.lm-detail .vet-hero {
  margin: 0;
  padding: clamp(34px, 6vw, 76px) 0 24px;
  color: var(--lm-ink);
  background: transparent;
}

body.lm-detail.map-shell.static-shell .vet-hero {
  padding-top: calc(var(--shell-header-h, 56px) + clamp(34px, 5vw, 64px));
}

body.lm-detail .vet-hero .container,
body.lm-detail main.container,
body.lm-detail .static-main > .container {
  width: var(--lm-page);
  max-width: none;
  padding-inline: 0;
}

body.lm-detail .static-main {
  padding-top: 0;
}

body.lm-detail .vet-hero h1 {
  max-width: 18ch;
  margin: 0 0 12px;
  color: var(--lm-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5.5vw, 4.6rem);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.045em;
}

body.lm-detail .vet-hero p {
  max-width: 70ch;
  margin: 0;
  color: var(--lm-muted);
  font-size: clamp(1rem, 1.5vw, 1.14rem);
  line-height: 1.55;
}

body.lm-detail .page-card {
  display: grid;
  gap: 16px;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body.lm-detail .page-card > section,
body.lm-detail .map-box,
body.lm-detail .hero-photo {
  margin-top: 0 !important;
  padding: clamp(22px, 3vw, 32px);
  overflow: hidden;
  background: var(--lm-paper);
  border: 1px solid var(--lm-line);
  border-radius: var(--lm-radius);
  box-shadow: var(--lm-shadow-sm);
}

body.lm-detail .page-card > section::before {
  display: none !important;
}

body.lm-detail .section-title {
  margin: 0 0 12px;
  color: var(--lm-ink);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.45rem, 2.4vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.lm-detail .page-card :where(p, li, .reviews) {
  color: var(--lm-muted);
  line-height: 1.62;
}

body.lm-detail .page-card p {
  max-width: 72ch;
}

body.lm-detail :where(a[href^="tel:"], a[href^="mailto:"]) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

body.lm-detail .page-card ul {
  margin: 0;
  padding-inline-start: 1.2rem;
}

body.lm-detail .map-box {
  padding: 0;
}

body.lm-detail .map-box #map {
  min-height: 360px;
  border-radius: var(--lm-radius);
}

body.lm-detail .poi-actions {
  gap: 10px;
}

body.lm-detail :where(.claim-btn, .lm-vet-claim-btn, .lm-vet-promote-btn, .btn-primary, .btn-secondary) {
  min-height: 48px;
  padding: 0 17px;
  border: 0;
  border-radius: 12px;
  box-shadow: none;
  font-weight: 800;
}

body.lm-detail :where(.claim-btn, .lm-vet-claim-btn, .btn-primary) {
  color: #fff;
  background: var(--lm-blue-dark);
}

body.lm-detail :where(.lm-vet-promote-btn, .btn-secondary) {
  color: #fff;
  background: var(--lm-green);
}

body.lm-system.lm-detail a.lm-vet-promote-btn,
body.lm-system.lm-detail a.btn-secondary {
  color: #fff !important;
  background: var(--lm-green) !important;
}

body.lm-detail :where(.claim-btn, .lm-vet-claim-btn, .lm-vet-promote-btn, .btn-primary, .btn-secondary):hover {
  color: #fff;
  filter: brightness(0.92);
  transform: translateY(-1px);
}

.lm-data-note {
  max-width: 68ch;
  margin: 0 0 16px;
  padding: 12px 14px;
  color: var(--lm-ink) !important;
  background: #eaf6fb;
  border-radius: var(--lm-radius-sm);
  font-size: 0.92rem;
  line-height: 1.5;
}

/* Lost & Found */
body.lm-lostfound {
  background: var(--lm-cream);
}

body.lm-lostfound .lf-main {
  width: var(--lm-page);
  margin-inline: auto;
}

body.lm-lostfound .lf-intro {
  max-width: 780px;
  margin: 0 auto clamp(28px, 5vw, 54px);
  text-align: center;
}

body.lm-lostfound .lf-intro h2 {
  font-size: clamp(2rem, 4vw, 3.4rem);
}

body.lm-lostfound .lf-intro p {
  max-width: 68ch;
  margin-inline: auto;
  color: var(--lm-muted) !important;
  line-height: 1.62;
}

body.lm-lostfound .lf-layout {
  gap: 18px;
}

body.lm-lostfound :where(.lf-form-shell, .lf-form-section, .lf-map-shell, .lf-side-card) {
  border-color: var(--lm-line);
  border-radius: var(--lm-radius);
  box-shadow: var(--lm-shadow-sm);
}

body.lm-lostfound .lf-form-section {
  padding: clamp(20px, 3vw, 30px);
  background: var(--lm-paper);
}

body.lm-lostfound .lf-section-heading {
  margin-bottom: 20px;
  font-family: Georgia, "Times New Roman", serif;
  letter-spacing: -0.025em;
}

body.lm-lostfound :where(.form-control, .form-select) {
  min-height: 48px;
  color: var(--lm-ink);
  background-color: #fff;
  border-color: rgba(24, 52, 71, 0.24);
  border-radius: var(--lm-radius-sm);
}

body.lm-lostfound :where(.form-control, .form-select):focus {
  border-color: var(--lm-blue);
  box-shadow: 0 0 0 4px rgba(6, 117, 169, 0.14);
}

body.lm-lostfound :where(a[href^="tel:"], a[href^="mailto:"]) {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

/* Commercial offer */
body.lm-commercial #business-payment-link,
body.lm-commercial .business-payment-link,
body.lm-commercial .btn-accent {
  color: #fff !important;
  background: var(--lm-blue-dark) !important;
}

body.lm-commercial :where(.hero-card, .value-card, .offer-card, .support-card, .fit-card) {
  border-radius: var(--lm-radius);
}

body.lm-commercial :where(.value-card, .offer-card, .support-card, .fit-card) {
  box-shadow: none;
  border: 1px solid var(--lm-line);
}

body.lm-commercial .eyebrow {
  display: none;
}

body.lm-commercial .lang-chip {
  min-height: 44px;
}

body.lm-commercial .hero-title {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 700;
  letter-spacing: -0.04em;
}

/* Editorial and trust pages */
body.lm-content :where(.knowledge-main, .about-main, .static-main, main) {
  color: var(--lm-ink);
}

body.lm-content :where(.knowledge-shell, .about-section, .about-summary, .about-band, .about-business, .about-faq) {
  border-radius: var(--lm-radius);
}

body.lm-content :where(.knowledge-copy, .knowledge-aside, .about-capability, .about-step, .about-band__route) {
  border-color: var(--lm-line);
  box-shadow: none;
}

/* Generated lost/found details */
body.lm-pet-report :where(.page-card, .lost-card, .found-card, article, main > section) {
  border-radius: var(--lm-radius);
}

/* Browser and interaction details */
body.lm-system :where(a, button) {
  text-underline-offset: 0.18em;
}

body.lm-system :where(button, [role="button"], a[class*="btn"], a[class*="action"]) {
  touch-action: manipulation;
}

body.lm-system :where(button, [role="button"]):active,
body.lm-system :where(a[class*="btn"], a[class*="action"]):active {
  transform: translateY(1px);
}

@media (max-width: 767px) {
  :root {
    --lm-page: min(calc(100% - 28px), 1120px);
  }

  body.lm-detail .vet-topbar {
    padding-top: 16px;
  }

  body.lm-detail .vet-topbar .container {
    align-items: center;
    flex-direction: row;
  }

  body.lm-detail .vet-hero {
    padding-top: 34px;
  }

  body.lm-detail.map-shell.static-shell .vet-hero {
    padding-top: calc(var(--shell-header-h, 56px) + 28px);
  }

  body.lm-detail .vet-hero h1 {
    font-size: clamp(2.25rem, 12vw, 3.5rem);
  }

  body.lm-detail .page-card > section,
  body.lm-detail .map-box,
  body.lm-detail .hero-photo {
    border-radius: 14px;
  }

  body.lm-detail .map-box #map {
    min-height: 300px;
    border-radius: 14px;
  }

  body.lm-detail .poi-actions {
    flex-direction: column;
  }

  body.lm-detail :where(.claim-btn, .lm-vet-claim-btn, .lm-vet-promote-btn, .btn-primary, .btn-secondary) {
    width: 100%;
  }

  body.lm-commercial .hero-card {
    min-height: 0;
  }

  body.lm-commercial .hero-title {
    max-width: 16ch;
    font-size: clamp(2.2rem, 10vw, 3.2rem);
  }

  body.lm-system .pet-lost-action {
    min-height: 44px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.lm-system {
    scroll-behavior: auto !important;
  }

  body.lm-system :where(.pet-status-pulse, .map-loading-pulse) {
    animation: none !important;
  }

  body.lm-system :where(.lm-skip-link, .nav-drawer, .pet-map-sheet) {
    transition: none !important;
  }
}

