/* Header, hero and footer shared by every DogScanner page. */
.top { background: var(--card); border-bottom: 1px solid var(--line); }
.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none;
         font-weight: 700; font-size: 20px; letter-spacing: -0.02em; }
.brand img { width: 36px; height: 36px; border-radius: 9px; display: block; }
.top nav { display: flex; gap: 4px; }
.top nav a { color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 500; padding: 8px 10px; border-radius: 8px; white-space: nowrap; }
.top nav a:hover, .top nav a:focus-visible, .top nav a[aria-current="page"] { background: var(--chip, #e6f3ea); color: var(--chip-ink, #1f5c39); }
.hero { background: linear-gradient(160deg, #2f8a57 0%, #1b5434 100%); color: #fff; }
.hero .wrap { padding-top: 44px; padding-bottom: 40px; }
.hero h1 { margin: 0 0 8px; font-size: clamp(28px, 5vw, 44px); line-height: 1.1; letter-spacing: -0.03em; max-width: 16em; text-wrap: balance; }
.hero p.lead { margin: 0 0 24px; font-size: clamp(16px, 2.2vw, 19px); color: #dff1e5; max-width: 34em; }
.hero form { background: var(--card); border-radius: 16px; padding: 10px; box-shadow: 0 10px 30px rgba(8, 40, 22, .28); max-width: 760px; color: var(--ink); }
.hero .hint { margin: 12px 2px 0; font-size: 14px; color: #cfe8d7; }
.sitefoot { border-top: 1px solid var(--line); margin-top: 24px; color: var(--muted); font-size: 14px; }
.sitefoot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 22px; padding-bottom: 32px; }
.sitefoot a { color: inherit; text-decoration: none; margin-right: 16px; white-space: nowrap; }
.sitefoot a:hover, .sitefoot a:focus-visible { color: var(--accent); text-decoration: underline; }
@media (max-width: 480px) { .top nav a.opt { display: none; } .hero .wrap { padding-top: 28px; padding-bottom: 26px; } }
