/* Dogimogi: the approved Soft design system, shared by server-rendered pages.
   Keep the established application CSS for functional components. */
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/dm-sans-latin.woff2") format("woff2");
}
@font-face {
  font-family: "DM Sans";
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url("fonts/dm-sans-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+A720-A7FF;
}
:root {
  --dm-brand: #1c674d;
  --dm-paper: #fff;
  --dm-mint: #f0f6f1;
  --dm-ink: #192c23;
  --dm-muted: #647169;
  --dm-line: #e5eae6;
  --green-900: #153b2b;
  --green-800: #175a42;
  --green-700: var(--dm-brand);
  --green-600: var(--dm-brand);
  --green-100: var(--dm-mint);
  --ink-900: var(--dm-ink);
  --ink-700: #43564b;
  --ink-500: var(--dm-muted);
  --stroke: var(--dm-line);
  --radius-xl: 12px;
  --radius-lg: 12px;
  --radius-md: 10px;
  --radius-sm: 8px;
  --shadow-1: 0 1px 3px #18322605;
  --shadow-2: 0 8px 24px #1832260a;
  color-scheme: light;
}
body {
  font-family: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--dm-paper);
  color: var(--dm-ink);
}
button, input, select, textarea { font: inherit; }
h1, h2, h3, .hero-metric-value, .home-steps-title, .home-step-title,
.city-help-title, .success-stories-head h2 {
  font-family: "DM Sans", system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.2;
}
h1 { font-size: clamp(32px, 4vw, 44px); }
h2 { font-size: clamp(22px, 3vw, 28px); }
h3 { font-size: 20px; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid #1c674d80; outline-offset: 3px; }
.btn:focus-visible, .tile-action:focus-visible { outline: 3px solid #1c674d80; outline-offset: 3px; }
[hidden] { display: none !important; }
.container { width: min(1120px, calc(100% - 48px)); padding-inline: 0; }
.page > header { background: var(--dm-paper); backdrop-filter: none; border-bottom: 1px solid var(--dm-line); }
.page > header .nav { position: relative; display: flex; flex-flow: row nowrap; justify-content: space-between; gap: 20px; padding-block: 16px; min-height: 88px; }
.dogimogi-brand { display: block; flex: 0 0 auto; width: 158px; line-height: 1; }
.dogimogi-brand img { width: 100%; height: auto; }
.nav-links { gap: 12px; margin: 0; }
.nav-links a, .nav-links .btn, .nav-links button.btn {
  border-radius: 8px; min-height: 44px; padding: 10px 16px;
  font-size: 14px; font-weight: 500; line-height: 1.4;
}
.nav-links a.btn-primary { background: var(--dm-brand); color: #fff; box-shadow: none; border: 1px solid var(--dm-brand); }
.nav-links a.btn-primary:hover { background: #175a42; color: #fff; transform: none; }
.nav-links .cta-full { display: inline; }
.nav-links .cta-short { display: none; }
.nav-logout-form { margin: 0; }
.nav-toggle { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; flex: 0 0 auto; padding: 0; border: 1px solid var(--dm-line); border-radius: 10px; color: var(--dm-ink); background: #fff; cursor: pointer; }
.nav-toggle:hover { background: var(--dm-mint); }
main { padding: 36px 0 56px; }
.btn { border-radius: 8px; min-height: 48px; line-height: 1.3; padding: 12px 18px; font-weight: 500; box-shadow: none; }
.btn-primary { background: var(--dm-brand); color: #fff; box-shadow: none; }
.btn-primary:hover { background: #175a42; transform: none; box-shadow: none; }
.btn-ghost { background: #fff; color: var(--dm-brand); border-color: #c9d8cf; }
.card, .listing-grid > .listing-cell, .success-story-card { box-shadow: none; }
.card.hover-lift:hover, .listing-grid > .listing-cell.hover-lift:hover { transform: none; box-shadow: none; border-color: #b8ccbf; }
input:not([type="checkbox"]):not([type="radio"]), select, textarea { font-size: 16px; border-radius: 8px; }
input[type="text"], input[type="email"], input[type="password"], select { min-height: 48px; }
.listing-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.listing-grid > .card { grid-column: 1 / -1; }
.listing-grid > .listing-cell { border-radius: 10px; }
.listing-grid .listing-card { border-radius: 0; }
.listing-media { background: var(--dm-mint); }
.listing-tile-body { padding: 12px; gap: 8px; }
.listing-tile-type { border-radius: 4px; padding: 3px 7px; font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; }
.listing-tile-type--lost { background: #fff2cb; color: #795a16; }
.listing-tile-type--found { background: #e5f4eb; color: #206347; }
.listing-tile-title { font-size: 15px; font-weight: 500; line-height: 1.4; -webkit-line-clamp: 3; }
.listing-tile-meta { font-size: 13px; line-height: 1.5; white-space: normal; overflow-wrap: anywhere; }
.listing-actions { padding: 8px 10px; gap: 4px; }
.tile-action { min-height: 44px; min-width: 44px; padding: 8px; border: 0; border-radius: 6px; }
.tile-action-label { display: inline; font-size: 12px; }
.listing-actions .tile-action svg { width: 16px; height: 16px; }
.fade-up { animation: none; }
.dogimogi-home main { padding-top: 24px; }
.dogimogi-home .hero {
  display: grid; grid-template-columns: 1fr 1fr; column-gap: 48px; row-gap: 24px;
  background: var(--dm-mint); color: var(--dm-ink); border: 1px solid var(--dm-line);
  border-radius: 12px; padding: 40px; overflow: visible;
}
.dogimogi-home .hero::after { content: none; }
.dogimogi-home .hero-head { grid-column: 1; padding: 0; gap: 16px; align-content: start; }
.dogimogi-home .hero-eyebrow { display: flex; align-items: center; gap: 8px; font-size: 12px; line-height: 18px; font-weight: 500; color: var(--dm-muted); }
.dogimogi-home .hero-eyebrow > span:first-child { font-size: 15px; }
.dogimogi-home .hero h1 { color: var(--dm-brand); font-size: clamp(36px, 4.5vw, 52px); font-weight: 600; line-height: 1.1; letter-spacing: -.045em; max-width: 460px; }
.dogimogi-home .hero .hero-sub { color: var(--dm-muted); font-size: 16px; line-height: 1.6; }
.dogimogi-home .hero-scenarios { grid-column: 1; display: grid; grid-template-columns: 1fr; gap: 12px; align-content: start; }
.dogimogi-home .hero-scenario { background: var(--dm-brand); border: 1px solid var(--dm-brand); border-radius: 8px; min-height: 64px; padding: 10px 42px 10px 16px; align-items: center; justify-content: center; text-align: center; gap: 3px; position: relative; transform: none; }
.dogimogi-home .hero-scenario::after { content: "↗"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%); font-size: 20px; color: #e0ece5; }
.dogimogi-home .hero-scenario:hover { background: #175a42; transform: none; }
.dogimogi-home .scenario-label { color: #fff; font-size: 16px; font-weight: 500; line-height: 1.35; }
.dogimogi-home .scenario-sub { font-size: 12px; line-height: 1.4; color: #e0ece5; }
.dogimogi-home .hero-scenario:nth-child(2) { background: transparent; border-color: #80b497; }
.dogimogi-home .hero-scenario:nth-child(2):hover { background: #e4efe7; }
.dogimogi-home .hero-scenario:nth-child(2) .scenario-label,
.dogimogi-home .hero-scenario:nth-child(2)::after { color: var(--dm-brand); }
.dogimogi-home .hero-scenario:nth-child(2) .scenario-sub { color: #506c5c; }
.dogimogi-home #city-section { grid-column: 2; grid-row: 1 / span 2; margin: 0; align-self: center; scroll-margin-top: 110px; }
.dogimogi-home .hero-pets-art { grid-column: 2; grid-row: 1 / span 2; display: grid; place-items: center; position: relative; align-self: end; }
.dogimogi-home .hero-pets-art::before { content: ""; position: absolute; width: 85%; aspect-ratio: 1; border-radius: 50%; background: #dcece0; z-index: -1; }
.dogimogi-home .hero-pets-art img { width: min(100%, 430px); height: auto; object-fit: contain; }
.dogimogi-home .hero #city-section { grid-column: 1 / -1; grid-row: 3; width: 100%; }
.dogimogi-home .city-search-card { padding: 20px; gap: 12px; border-radius: 12px; background: #fff; }
.dogimogi-home .city-section-label { color: var(--dm-ink); font-size: 15px; font-weight: 500; }
.dogimogi-home .city-browse-link { display: flex; justify-content: center; align-items: center; gap: 12px; border-radius: 8px; min-height: 48px; padding: 12px; background: var(--dm-brand); color: #fff; font-size: 16px; font-weight: 500; }
.dogimogi-home .city-browse-link:hover { background: #175a42; }
.dogimogi-home .city-search-note { color: var(--dm-muted); font-size: 12px; line-height: 1.5; text-align: center; }
.dogimogi-home #city-empty:empty { display: none; }
.dogimogi-home #city-suggestions .suggestion-item { min-height: 44px; font-size: 14px; }
.dogimogi-home .section { margin-top: 32px; }
.dogimogi-home .page-header { gap: 12px; margin-bottom: 20px; }
.dogimogi-home .page-header h2 { margin-bottom: 8px; }
.dogimogi-home .page-meta { font-size: 14px; line-height: 1.5; }
.dogimogi-home .hero-metrics { margin: 32px 0 0; gap: 0; border-block: 1px solid var(--dm-line); }
.dogimogi-home .hero-metric { border: 0; border-radius: 0; box-shadow: none; padding: 20px 16px; text-align: center; gap: 8px; }
.dogimogi-home .hero-metric + .hero-metric { border-left: 1px solid var(--dm-line); }
.dogimogi-home .hero-metric-value { font-size: 28px; }
.dogimogi-home .hero-metric-label { font-size: 13px; letter-spacing: 0; line-height: 1.4; }
.dogimogi-home .success-stories { margin-top: 32px; }
.dogimogi-home .success-stories-head h2 { font-size: 24px; }
.dogimogi-home .success-story-title { font-size: 15px; font-weight: 500; line-height: 1.4; }
.dogimogi-home .success-story-meta { font-size: 13px; }
.dogimogi-home .success-story-badge { border-radius: 4px; font-weight: 500; letter-spacing: 0; box-shadow: none; }
.dogimogi-home #map-section > .card { background: #fff; border-radius: 12px; }
.dogimogi-home #city-activity-ymap { border-radius: 10px !important; }
.dogimogi-home .home-steps,
.dogimogi-home .city-help-hub { margin: 32px 0 0; padding: 28px 0; border: 0; border-top: 1px solid var(--dm-line); border-radius: 0; background: #fff; box-shadow: none; }
.dogimogi-home .home-steps-head,
.dogimogi-home .city-help-head { margin-bottom: 20px; }
.dogimogi-home .home-steps-eyebrow,
.dogimogi-home .city-help-eyebrow { background: transparent; border: 0; padding: 0; margin-bottom: 8px; border-radius: 0; color: var(--dm-muted); font-size: 12px; font-weight: 500; letter-spacing: .03em; }
.dogimogi-home .home-steps-title,
.dogimogi-home .city-help-title { font-size: 24px; }
.dogimogi-home .home-steps-subtitle,
.dogimogi-home .city-help-subtitle { color: var(--dm-muted); font-size: 14px; line-height: 1.6; }
.dogimogi-home .home-step-card { background: #fff; box-shadow: none; border: 0; border-radius: 0; padding: 16px 0; min-height: 0; gap: 10px; transform: none; }
.dogimogi-home .home-step-card:hover { box-shadow: none; transform: none; border-color: var(--dm-line); }
.dogimogi-home .home-step-icon { width: 32px; height: 32px; font-size: 20px; background: transparent; border: 0; box-shadow: none; border-radius: 0; }
.dogimogi-home .home-step-icon img, .dogimogi-home .city-guide-icon img { width: 20px; height: 20px; opacity: .65; }
.dogimogi-home .home-step-title { font-size: 18px; }
.dogimogi-home .home-step-text { color: var(--dm-muted); font-size: 14px; line-height: 1.6; }
.dogimogi-home .city-guide-card { border: 0; border-top: 1px solid var(--dm-line); border-radius: 0; box-shadow: none; background: #fff; padding: 18px 0; transform: none; }
.dogimogi-home .city-guide-card:hover { transform: none; box-shadow: none; background: var(--dm-mint); }
.dogimogi-home .city-guide-icon { width: 36px; height: 36px; font-size: 20px; background: transparent; border-radius: 0; }
.dogimogi-home .city-guide-card-title { font-size: 15px; font-weight: 500; }
.dogimogi-home .city-guide-card-desc { font-size: 13px; }
.dogimogi-home .home-recent-pages__item { border-radius: 8px; min-height: 44px; min-width: 44px; }
.page > footer { background: #fff; border-top: 1px solid var(--dm-line); padding-block: 28px; }
.footer-seo a, .footer-legal a { display: inline-block; padding-block: 6px; }
@media (max-width: 900px) {
  .listing-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dogimogi-home .hero { padding: 28px; gap: 24px; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 48px); }
  .page > header .nav { min-height: 88px; padding-block: 16px; flex-wrap: nowrap; }
  .nav-links { flex-wrap: wrap; width: 100%; justify-content: flex-start; }
  .nav[data-menu-ready] .nav-links { position: absolute; top: 100%; left: -24px; right: -24px; width: auto; padding: 16px 24px; background: #fff; border-bottom: 1px solid var(--dm-line); box-shadow: 0 8px 16px #18322608; }
  .nav[data-menu-ready] .nav-links .btn { flex: 1 1 auto; min-height: 48px; font-size: 15px; }
  .nav-links .cta-full { display: inline; }
  .nav-links .cta-short { display: none; }
  .nav:not([data-menu-ready]) { flex-wrap: wrap; }
  main { padding: 24px 0 40px; }
  .dogimogi-home main { padding-top: 0; }
  .dogimogi-home .hero { display: grid; grid-template-columns: minmax(0, 1fr) 128px; margin-inline: -24px; padding: 30px 24px 26px; gap: 14px 12px; border: 0; border-bottom: 1px solid var(--dm-line); border-radius: 0; }
  .dogimogi-home .hero-head { display: contents; }
  .dogimogi-home .hero-eyebrow { grid-column: 1 / -1; grid-row: 1; }
  .dogimogi-home .hero h1 { grid-column: 1; grid-row: 2; max-width: 100%; font-size: clamp(30px, 8.7vw, 36px); line-height: 1.12; }
  .dogimogi-home .hero-pets-art { grid-column: 2; grid-row: 2; width: 164px; margin-left: -18px; align-self: center; }
  .dogimogi-home .hero .hero-sub-mobile { grid-column: 1 / -1; grid-row: 3; }
  .dogimogi-home .hero .hero-sub { font-size: 16px; line-height: 1.6; }
  .dogimogi-home .hero-scenarios { grid-column: 1 / -1; grid-row: 4; width: 100%; gap: 12px; margin-top: 10px; }
  .dogimogi-home .hero #city-section { grid-column: 1 / -1; grid-row: 5; width: 100%; margin-top: 10px; }
  .dogimogi-home .city-search-card { padding: 16px; }
  .listing-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .listing-tile-body { padding: 12px; }
  .listing-tile-title { font-size: 15px; }
  .listing-tile-meta { font-size: 13px; }
  .dogimogi-home .page-header { flex-direction: row; align-items: flex-start; }
  .dogimogi-home .page-header h2 { font-size: 21px; }
  .dogimogi-home .page-header > .btn { flex: 0 0 auto; padding: 10px 12px; font-size: 13px; }
  .dogimogi-home .hero-metric { padding: 16px 6px; }
  .dogimogi-home .hero-metric-label { font-size: 12px; }
  .dogimogi-home .success-stories-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dogimogi-home .success-story-card { min-width: 0; }
  .dogimogi-home .success-story-body { padding: 12px; }
  .dogimogi-home .success-stories-head h2 { font-size: 21px; }
  .dogimogi-home #map-section > .card { padding: 18px 16px !important; }
  .dogimogi-home #city-activity-ymap { height: 300px !important; }
  .dogimogi-home .home-steps-grid { grid-template-columns: 1fr; gap: 0; }
  .dogimogi-home .home-step-card { border-top: 1px solid var(--dm-line); }
  .dogimogi-home .city-guide-grid { grid-template-columns: 1fr; gap: 0; }
  .dogimogi-home .city-guide-card { grid-template-columns: 36px minmax(0, 1fr) 18px; }
}
@media (max-width: 370px) {
  .container { width: calc(100% - 40px); }
  .dogimogi-home .hero { margin-inline: -20px; padding-inline: 20px; }
  .dogimogi-home .hero { grid-template-columns: minmax(0, 1fr) 106px; }
  .dogimogi-home .hero-pets-art { width: 140px; margin-left: -16px; }
  .nav[data-menu-ready] .nav-links { left: -20px; right: -20px; padding-inline: 20px; }
  .dogimogi-home .page-header { flex-wrap: wrap; }
  .listing-tile-body, .dogimogi-home .success-story-body { padding: 10px; }
  .tile-action-label { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
