/* HappyPupper theme styles, ported from the 2026 concept mocks (home, blog, city walks).
   Class names follow the mocks; selectors are adapted to WordPress block markup
   (figure-wrapped images, button links, navigation block, flow layout). */

:root {
	--navy: #061229; --navy-2: #0a1935; --ink: #12213a; --muted: #65728a;
	--blue: #087ff5; --blue-bright: #2c9cff; --green: #56d87b; --cream: #f7f6f2; --mist: #eaf4ff;
	--line: rgba(18,33,58,.11); --shadow: 0 28px 80px rgba(6,18,41,.18); --radius: 28px;
	--display: var(--wp--preset--font-family--display); --body: var(--wp--preset--font-family--body);
}

/* ---------- base ---------- */
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
p { line-height: 1.7; }
h1, h2, h3, h4 { margin: 0; font-family: var(--display); letter-spacing: -0.035em; }
h1 { font-size: clamp(3.8rem, 8vw, 7.8rem); line-height: .88; }
h2 { font-size: clamp(2.8rem, 5vw, 5.5rem); line-height: .94; }
h3 { font-size: 1.5rem; line-height: 1.05; }
h1 mark, h2 mark { display: block; background: none !important; }

/* Sections stack flush: no block gap between header, sections and footer. */
.wp-site-blocks > *, .hp-sections > *, .hp-sections > * + * { margin-block: 0; }
.wp-block-image { margin: 0; }
.shell { width: min(1180px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(820px, 100% - 48px); margin-inline: auto; }
.screen-reader-text:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.eyebrow { display: inline-flex; align-items: center; gap: 9px; margin: 0 0 18px; color: var(--blue); font-size: .77rem; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; line-height: 1.4; }
.eyebrow::before { content: ""; width: 21px; height: 2px; background: currentColor; border-radius: 2px; }
.eyebrow a { color: inherit; }
.eyebrow-green, .dark-feature .eyebrow, .featured-copy .eyebrow, .city-hero .eyebrow { color: var(--green); }
.text-link, .text-link a { color: var(--blue); font-weight: 800; }
.text-link a:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- buttons (core/buttons) ---------- */
.wp-block-buttons { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.wp-block-button__link { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 56px; padding: 0 24px; border-radius: 15px; font-weight: 800; font-size: 1rem; transition: transform .2s, box-shadow .2s, background .2s; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.button-green .wp-block-button__link { background: var(--green); color: var(--navy); box-shadow: 0 16px 34px rgba(86,216,123,.24); }
.button-green .wp-block-button__link:hover { background: #6ee48d; box-shadow: 0 18px 38px rgba(86,216,123,.32); }
.button-light .wp-block-button__link { background: #fff; color: var(--navy); box-shadow: 0 14px 40px rgba(0,0,0,.18); }
.button-dark .wp-block-button__link { background: var(--navy); color: #fff; box-shadow: 0 16px 34px rgba(6,18,41,.15); }
.btn-apple .wp-block-button__link::before, .btn-android .wp-block-button__link::before { content: ""; width: 20px; height: 20px; background: currentColor; -webkit-mask: var(--icon) center / contain no-repeat; mask: var(--icon) center / contain no-repeat; }
.btn-apple { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.05 12.54c-.02-2.35 1.92-3.49 2.01-3.55a4.32 4.32 0 0 0-3.4-1.84c-1.43-.15-2.82.86-3.55.86-.75 0-1.89-.85-3.11-.82a4.56 4.56 0 0 0-3.84 2.35c-1.65 2.86-.42 7.06 1.16 9.37.79 1.13 1.71 2.4 2.93 2.35 1.19-.05 1.63-.75 3.06-.75 1.42 0 1.83.75 3.07.72 1.28-.02 2.09-1.14 2.85-2.28a9.38 9.38 0 0 0 1.31-2.67 4.08 4.08 0 0 1-2.49-3.74ZM14.72 5.63a4.17 4.17 0 0 0 .96-3 4.25 4.25 0 0 0-2.74 1.43 3.96 3.96 0 0 0-.99 2.88 3.51 3.51 0 0 0 2.77-1.31Z'/%3E%3C/svg%3E"); }
.btn-android { --icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.6 9.48 19.44 6.3a.72.72 0 0 0-1.25-.72l-1.87 3.24A11.2 11.2 0 0 0 12 7.96c-1.55 0-3.02.31-4.32.86L5.81 5.58a.72.72 0 1 0-1.25.72L6.4 9.48A8.08 8.08 0 0 0 3 15.96h18a8.08 8.08 0 0 0-3.4-6.48ZM8 13.1a1 1 0 1 1 0-2 1 1 0 0 1 0 2Zm8 0a1 1 0 1 1 0-2 1 1 0 0 1 0 2ZM3 17.4V21a1 1 0 0 0 1 1h1v1.5a1.5 1.5 0 0 0 3 0V22h8v1.5a1.5 1.5 0 0 0 3 0V22h1a1 1 0 0 0 1-1v-3.6H3Z'/%3E%3C/svg%3E"); }

/* ---------- header (parts/header*.html) ---------- */
.site-nav { position: relative; z-index: 20; color: #fff; background: var(--navy); }
.site-nav.is-overlay { position: absolute; inset: 0 0 auto; background: transparent; }
.nav-inner { min-height: 92px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand .wp-block-site-logo img { width: 44px; height: 44px; border-radius: 14px; box-shadow: 0 8px 28px rgba(0,0,0,.25); }
.brand .wp-block-site-title { margin: 0; font-family: var(--display); font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; }
.site-nav .wp-block-navigation { gap: 32px; font-size: .9rem; font-weight: 700; }
.site-nav .wp-block-navigation__container { gap: 32px; align-items: center; }
.site-nav .wp-block-navigation-item:not(.nav-cta) > a { color: rgba(255,255,255,.74); transition: color .2s; }
.site-nav .wp-block-navigation-item:not(.nav-cta) > a:hover,
.site-nav .wp-block-navigation-item.current-menu-item > a { color: #fff; }
.site-nav .wp-block-navigation .nav-cta > a.wp-block-navigation-item__content { padding: 13px 20px; border-radius: 999px; background: #fff; color: var(--navy); }
.site-nav .wp-block-navigation__responsive-container-open { color: #fff; }
.site-nav .wp-block-navigation__responsive-container-open svg { width: 30px; height: 30px; }
.site-nav .wp-block-navigation__responsive-container.is-menu-open { padding: 24px; color: var(--ink); background: #fff; }
.site-nav .is-menu-open .wp-block-navigation__container { gap: 18px; align-items: stretch; font-size: 1.1rem; }
.site-nav .is-menu-open .wp-block-navigation-item:not(.nav-cta) > a { color: var(--ink); }
.site-nav .wp-block-navigation .is-menu-open .nav-cta > a.wp-block-navigation-item__content { color: #fff; background: var(--blue); }

/* ---------- footer ---------- */
.site-footer { padding: 40px 0; color: rgba(255,255,255,.62); background: #030b1d; }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 30px; font-size: .8rem; }
.footer-inner p { margin: 0; line-height: 1.6; }
.footer-brand { color: #fff; font-family: var(--display); font-size: 1.05rem; }
.footer-links a { margin-right: 22px; }
.footer-links a:last-child { margin-right: 0; }
.footer-links a:hover { color: #fff; }

/* ---------- home: hero ---------- */
.hero { position: relative; min-height: 850px; color: #fff; overflow: hidden; background: var(--navy); isolation: isolate; }
.hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--hero-map) right center / auto 80% no-repeat; }
.hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(3,12,29,.95) 0%, rgba(3,12,29,.78) 34%, rgba(3,12,29,.2) 60%, rgba(3,12,29,0) 78%), linear-gradient(0deg, rgba(6,18,41,.84) 0%, transparent 25%); }
.hero-content { position: relative; z-index: 2; min-height: 850px; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; padding-top: 86px; }
.hero h1 { max-width: 760px; }
.hero h1 mark { color: var(--blue-bright) !important; }
.route-readout { position: absolute; z-index: 3; right: 6.5%; bottom: 13%; display: flex; align-items: center; gap: 10px; margin: 0; padding: 11px 15px; color: #fff; background: rgba(6,18,41,.68); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; backdrop-filter: blur(14px); box-shadow: 0 12px 34px rgba(0,0,0,.22); font-size: .78rem; font-weight: 800; letter-spacing: .02em; line-height: 1.3; }
.route-readout::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 12px rgba(86,216,123,.8); }
.hero-copy { max-width: 630px; margin: 26px 0 30px; color: rgba(255,255,255,.72); font-size: clamp(1.06rem, 1.8vw, 1.26rem); }
.hero-note { display: flex; flex-wrap: wrap; gap: 17px; margin: 23px 0 0; padding: 0; list-style: none; color: rgba(255,255,255,.56); font-size: .82rem; }
.hero-note li { display: inline-flex; align-items: center; gap: 6px; }
.hero-note li::before { content: "✓"; color: var(--green); font-weight: 900; }

/* ---------- home: proof bar ---------- */
.proof { background: var(--navy); color: #fff; border-top: 1px solid rgba(255,255,255,.1); }
.proof-inner { min-height: 120px; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; }
.proof-item { margin: 0; padding: 0 28px; border-left: 1px solid rgba(255,255,255,.11); }
.proof-item:first-child { border-left: 0; padding-left: 0; }
.proof-item p { margin: 0; }
.proof-title { margin-bottom: 6px !important; font-family: var(--display); font-size: 1.15rem; font-weight: 800; line-height: 1.2; }
.proof-text { color: rgba(255,255,255,.56); font-size: .82rem; line-height: 1.5; }

/* ---------- home: intro + features ---------- */
.story-intro { padding: 150px 0 110px; text-align: center; }
.story-intro h2 { max-width: 900px; margin: auto; }
.story-intro h2 em { color: var(--blue); font-style: normal; }
.story-intro .shell > p:not(.eyebrow) { max-width: 690px; margin: 28px auto 0; color: var(--muted); font-size: 1.08rem; }

.feature { padding: 90px 0 130px; overflow: hidden; }
.feature-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(360px, .85fr); align-items: center; gap: 90px; }
.feature.reverse .feature-copy { order: 2; }
.feature.reverse .feature-visual { order: 1; }
.feature-copy h2 { max-width: 650px; }
.feature-copy > p:not(.eyebrow) { max-width: 560px; color: var(--muted); font-size: 1.07rem; margin: 24px 0 32px; }
.feature-list { display: grid; gap: 15px; margin: 30px 0 0; padding: 0; list-style: none; }
.feature-list li { display: flex; align-items: center; gap: 13px; font-weight: 700; }
.feature-list li::before { content: "✓"; width: 28px; height: 28px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; color: var(--blue); background: rgba(8,127,245,.1); font-size: .82rem; }

.visual-stage { position: relative; display: grid; place-items: center; min-height: 680px; }
.visual-stage::before { content: ""; position: absolute; width: 580px; height: 580px; border-radius: 50%; background: rgba(8,127,245,.09); filter: blur(2px); }
.app-shot { position: relative; z-index: 2; width: min(440px, 90%); transform: rotate(2.2deg); }
.app-shot img { width: 100%; border-radius: 34px; box-shadow: var(--shadow); }
.reverse .app-shot { transform: rotate(-2.2deg); }
.float-card { position: absolute; z-index: 3; display: flex; align-items: center; gap: 13px; padding: 16px 18px; background: rgba(255,255,255,.93); border: 1px solid rgba(255,255,255,.9); border-radius: 18px; box-shadow: 0 18px 50px rgba(6,18,41,.15); backdrop-filter: blur(15px); font-size: .83rem; color: var(--ink); }
.float-card p { margin: 0; line-height: 1.35; }
.float-card .float-title { font-weight: 700; font-size: .92rem; }
.float-card .float-text { color: var(--muted); }
.float-card.top { top: 112px; right: -5px; }
.float-card.bottom { bottom: 92px; left: -4px; }
.avatar { width: 40px; height: 40px; flex: 0 0 auto; margin: 0; border-radius: 50%; background: linear-gradient(145deg, #ffd08e, #dc8e40); display: grid; place-items: center; font-size: 1.1rem; line-height: 1; }
.avatar-blue { background: linear-gradient(145deg, #a8e3ff, #308cf8); }
.avatar-lilac { background: linear-gradient(145deg, #cfd6ff, #7a8ff2); }

.dark-feature { padding: 150px 0; color: #fff; background: var(--navy); overflow: hidden; }
.dark-feature .feature-copy > p:not(.eyebrow) { color: rgba(255,255,255,.62); }
.dark-feature .feature-list li::before { color: var(--green); background: rgba(86,216,123,.12); }
.pack-pair { position: relative; min-height: 690px; }
.pack-pair .wp-block-image { position: absolute; width: 340px; }
.pack-pair img { border-radius: 28px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.pack-pair .wp-block-image:first-child { left: 0; top: 10px; transform: rotate(-4deg); }
.pack-pair .wp-block-image:last-child { right: 0; bottom: 0; transform: rotate(4deg); }
.privacy-chip { display: inline-flex; gap: 9px; align-items: center; padding: 10px 14px; margin: 24px 0 0; border: 1px solid rgba(255,255,255,.15); border-radius: 999px; color: rgba(255,255,255,.75); font-size: .82rem; line-height: 1.3; }

/* ---------- home: screenshots strip ---------- */
.memory-strip { padding: 140px 0; background: #fff; }
.memory-header { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 64px; }
.memory-header h2 { max-width: 680px; }
.memory-header > p { max-width: 390px; color: var(--muted); margin: 0 0 6px; }
.shot-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shot-row .wp-block-image { overflow: hidden; border-radius: 26px; background: var(--navy); box-shadow: 0 22px 60px rgba(6,18,41,.13); }
.shot-row img { width: 100%; transition: transform .45s; }
.shot-row .wp-block-image:hover img { transform: scale(1.025); }

/* ---------- home: city walks teaser + city cards (also used on /dog-walks/) ---------- */
.city-walks { padding: 150px 0; background: #eaf4ff; }
.city-head { display: grid; grid-template-columns: 1fr .62fr; align-items: end; gap: 60px; margin-bottom: 62px; }
.city-head > p { color: var(--muted); margin: 0 0 8px; }
.city-grid { display: grid; grid-template-columns: 1.25fr .75fr .75fr; gap: 20px; }
.city-grid.is-query .wp-block-post-template { display: contents; }
.city-card { position: relative; height: 100%; min-height: 420px; padding: 28px; overflow: hidden; border-radius: 28px; color: #fff; background: var(--navy); box-shadow: 0 22px 60px rgba(6,18,41,.13); isolation: isolate; }
.city-card::before { content: ""; position: absolute; z-index: -2; inset: 0; opacity: .9; background: radial-gradient(circle at 72% 27%, rgba(44,156,255,.8) 0 3px, transparent 4px), linear-gradient(125deg, transparent 0 36%, rgba(44,156,255,.9) 37% 38.2%, transparent 39% 100%), repeating-linear-gradient(35deg, rgba(255,255,255,.08) 0 1px, transparent 1px 52px), repeating-linear-gradient(125deg, rgba(255,255,255,.06) 0 1px, transparent 1px 64px), linear-gradient(145deg, #0d3f5e, var(--navy) 72%); }
.city-card::after { content: ""; position: absolute; z-index: -1; inset: 35% 0 0; background: linear-gradient(transparent, rgba(2,9,24,.92)); }
.city-grid li:nth-child(3n+2) .city-card::before { background: linear-gradient(125deg, transparent 0 43%, rgba(86,216,123,.85) 44% 45.4%, transparent 46% 100%), repeating-linear-gradient(35deg, rgba(255,255,255,.07) 0 1px, transparent 1px 44px), linear-gradient(145deg, #204b44, var(--navy) 78%); }
.city-grid li:nth-child(3n) .city-card::before { background: linear-gradient(125deg, transparent 0 50%, rgba(255,191,93,.85) 51% 52.4%, transparent 53% 100%), repeating-linear-gradient(125deg, rgba(255,255,255,.07) 0 1px, transparent 1px 48px), linear-gradient(145deg, #4d3c36, var(--navy) 78%); }
.city-teaser.teaser-green::before { background: linear-gradient(125deg, transparent 0 43%, rgba(86,216,123,.85) 44% 45.4%, transparent 46% 100%), repeating-linear-gradient(35deg, rgba(255,255,255,.07) 0 1px, transparent 1px 44px), linear-gradient(145deg, #204b44, var(--navy) 78%); }
.city-teaser.teaser-amber::before { background: linear-gradient(125deg, transparent 0 50%, rgba(255,191,93,.85) 51% 52.4%, transparent 53% 100%), repeating-linear-gradient(125deg, rgba(255,255,255,.07) 0 1px, transparent 1px 48px), linear-gradient(145deg, #4d3c36, var(--navy) 78%); }
/* Teasers fill the row while there are fewer than 3 guides. */
.city-grid:has(li:nth-child(2)) .teaser-green, .city-grid:has(li:nth-child(3)) .teaser-amber { display: none; }
.city-grid > .city-teaser, .city-grid .wp-block-post-template > li { margin: 0; }
/* Guides with a featured image (their city map) show it instead of the placeholder stripes. */
.city-card > .city-card-image { position: absolute; inset: 0; z-index: -2; margin: 0; }
.city-card-image img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.city-card:has(> .city-card-image)::before { display: none; }
.city-label { display: inline-flex; margin: 0; padding: 8px 11px; border-radius: 999px; background: rgba(255,255,255,.12); backdrop-filter: blur(10px); font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; line-height: 1.3; }
.city-card { display: flex; flex-direction: column; justify-content: space-between; align-items: flex-start; }
.city-card-content { margin: 0; }   /* static, so the title link's ::before/::after resolve against the whole card */
.city-card h3 { font-size: 2rem; margin-bottom: 9px; }
.city-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.city-card h3 a::before { content: "↗"; position: absolute; top: 26px; right: 26px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid rgba(255,255,255,.2); font-size: 1rem; }
.city-card-content > p, .city-card-content .wp-block-post-excerpt__excerpt { margin: 0; color: rgba(255,255,255,.65); font-size: .88rem; }
.city-grid li:first-child .city-card h3 { font-size: 2.8rem; }
.city-card .wp-block-post-excerpt { margin: 0; }
.city-grid li { list-style: none; }
.city-grid .wp-block-post-template { margin: 0; padding: 0; }
.city-note { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-top: 34px; color: var(--muted); font-size: .87rem; }
.city-note p { margin: 0; }

/* ---------- download CTA blocks ---------- */
.final-cta { position: relative; padding: 150px 0; text-align: center; color: #fff; background: var(--navy); overflow: hidden; }
.final-cta::before { content: ""; position: absolute; width: 700px; height: 700px; left: 50%; top: 50%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(circle, rgba(8,127,245,.24), transparent 70%); }
.final-cta .shell { position: relative; }
.final-cta h2 { max-width: 850px; margin: auto; }
.final-cta .shell > p:not(.eyebrow) { max-width: 600px; margin: 24px auto 32px; color: rgba(255,255,255,.61); }
.final-cta .wp-block-buttons { justify-content: center; }

.track-cta, .newsletter { position: relative; overflow: hidden; padding: 115px 0; color: #fff; background: var(--navy); }
.newsletter::after { content: ""; position: absolute; width: 520px; height: 520px; right: -150px; top: -220px; border-radius: 50%; background: rgba(8,127,245,.18); }
.track-cta-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 50px; }
.track-cta h2 { max-width: 760px; }
.track-cta-inner p:not(.eyebrow) { max-width: 600px; color: rgba(255,255,255,.61); }

/* ---------- blog index (templates/home.html) ---------- */
.blog-hero, .post-hero { position: relative; min-height: 625px; display: grid; align-items: center; overflow: hidden; background: var(--mist); isolation: isolate; }
.blog-hero::before, .post-hero::before { content: ""; position: absolute; z-index: -2; width: 760px; height: 760px; right: -120px; top: -190px; border-radius: 50%; background: radial-gradient(circle, rgba(44,156,255,.18), rgba(44,156,255,.02) 60%, transparent 61%); }
.blog-hero::after, .post-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .7; background: radial-gradient(circle at 83% 29%, var(--green) 0 6px, transparent 7px), linear-gradient(115deg, transparent 0 67%, rgba(8,127,245,.15) 67.2% 67.7%, transparent 68% 100%), linear-gradient(28deg, transparent 0 72%, rgba(8,127,245,.11) 72.2% 72.7%, transparent 73% 100%); }
.blog-hero-copy { padding: 110px 0 120px; }
.blog-hero h1 { font-size: clamp(4.1rem, 9vw, 8rem); max-width: 870px; }
.blog-hero h1 mark { color: var(--blue) !important; }
.blog-hero-copy > p:last-child { max-width: 610px; margin: 30px 0 0; color: var(--muted); font-size: 1.16rem; }

.stories { padding: 120px 0 150px; }
.story-grid .wp-block-post-template { display: grid; grid-template-columns: repeat(2, 1fr); gap: 25px; margin: 0; padding: 0; list-style: none; }
.story-card { position: relative; height: 100%; min-height: 500px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: 0 18px 55px rgba(6,18,41,.07); transition: transform .25s, box-shadow .25s; }
.story-card:hover { transform: translateY(-5px); box-shadow: 0 24px 70px rgba(6,18,41,.12); }
.story-image { height: 280px; margin: 0; overflow: hidden; background: linear-gradient(145deg, #143866, var(--navy) 76%); }
.story-image img { width: 100%; height: 100% !important; object-fit: cover; object-position: center 18%; }
.story-body { flex: 1 1 0%; padding: 32px 34px 36px; }
.story-meta { display: flex; gap: 12px; align-items: center; margin-bottom: 17px; color: var(--blue); font-size: .74rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.story-meta > * { margin: 0 !important; }
.story-meta > * + *::before { content: "·"; margin-right: 12px; color: var(--muted); }
.story-card h3 { font-size: clamp(1.65rem, 3vw, 2.25rem); line-height: 1.05; }
.story-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }   /* whole card clickable */
.story-card .wp-block-post-excerpt { margin: 15px 0 0; color: var(--muted); }
.story-card .wp-block-post-excerpt p { margin: 0; }
/* First post on page 1 = featured story (mock's dark featured card) */
body:not(.paged) .story-grid li:first-child { grid-column: 1 / -1; }
body:not(.paged) .story-grid li:first-child .story-card { display: grid; grid-template-columns: 1.04fr .96fr; min-height: 610px; border: 0; border-radius: 34px; color: #fff; background: var(--navy); box-shadow: var(--shadow); }
body:not(.paged) .story-grid li:first-child .story-image { height: auto; min-height: 520px; }
body:not(.paged) .story-grid li:first-child .story-body { align-self: center; padding: 70px clamp(40px, 6vw, 82px); }
body:not(.paged) .story-grid li:first-child .story-meta { color: var(--green); }
body:not(.paged) .story-grid li:first-child h3 { font-size: clamp(2.8rem, 4.7vw, 5rem); line-height: .94; }
body:not(.paged) .story-grid li:first-child .wp-block-post-excerpt { color: rgba(255,255,255,.64); font-size: 1.04rem; margin-top: 24px; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 40px; margin-bottom: 58px; }
.section-head h2 { font-size: clamp(2.7rem, 4.7vw, 4.7rem); }
.section-head > p { max-width: 430px; margin: 0 0 7px; color: var(--muted); }
.wp-block-query-pagination { margin-top: 50px; gap: 18px; font-weight: 800; justify-content: center; }
.wp-block-query-pagination a:hover { color: var(--blue); }

/* ---------- single post / page ---------- */
.post-hero { min-height: 0; }
.post-hero-copy { padding: 110px 0 90px; }
.post-hero h1 { font-size: clamp(2.8rem, 6vw, 5.2rem); line-height: .95; max-width: 960px; }
.post-hero .post-meta { margin: 26px 0 0; color: var(--muted); font-size: .9rem; font-weight: 700; }
.post-hero .post-meta > * { display: inline; margin: 0; }
.post-cover { width: min(1180px, 100% - 48px); margin: -40px auto 0; position: relative; }
.post-cover img { width: 100%; max-height: 620px; object-fit: cover; border-radius: 30px; box-shadow: var(--shadow); }
.prose { padding: 80px 0 120px; font-size: 1.08rem; }
.prose > * { max-width: 760px; margin-inline: auto !important; }
.prose > .alignwide { max-width: 1180px; }
.prose > .alignfull { max-width: none; }
.prose > * + * { margin-block-start: 1.25em; }
.prose h2 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.02; margin-block-start: 1.8em; }
.prose h3 { font-size: clamp(1.5rem, 3vw, 2rem); margin-block-start: 1.6em; }
.prose a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.prose img { border-radius: 20px; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li + li { margin-top: .4em; }
.prose blockquote { padding-left: 24px; border-left: 4px solid var(--green); font-size: 1.2rem; }

/* ---------- city walk guide (city_walk posts) ---------- */
.city-hero { position: relative; min-height: 760px; display: grid; align-items: center; overflow: hidden; color: #fff; background: var(--navy); isolation: isolate; }
.city-hero::before { content: ""; position: absolute; z-index: -2; inset: 0; background: var(--hero-map) right center / auto 92% no-repeat; opacity: .66; }
.city-hero::after { content: ""; position: absolute; z-index: -1; inset: 0; background: linear-gradient(90deg, rgba(3,12,29,.98) 0%, rgba(3,12,29,.88) 42%, rgba(3,12,29,.24) 75%, rgba(3,12,29,.1)); }
.city-hero-copy { padding: 115px 0 125px; }
.city-hero h1 { font-size: clamp(4.1rem, 9vw, 8rem); max-width: 820px; }
.city-hero h1 mark { color: var(--blue-bright) !important; }
.breadcrumbs { margin: 0 0 35px; color: rgba(255,255,255,.5); font-size: .78rem; font-weight: 700; word-spacing: 4px; }
.breadcrumbs a:hover { color: #fff; }
.city-deck { max-width: 670px; margin: 28px 0 31px; color: rgba(255,255,255,.7); font-size: clamp(1.08rem, 2vw, 1.28rem); }
.city-meta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.city-meta li { padding: 10px 14px; border: 1px solid rgba(255,255,255,.14); border-radius: 999px; color: rgba(255,255,255,.72); background: rgba(255,255,255,.06); backdrop-filter: blur(12px); font-size: .78rem; font-weight: 750; line-height: 1.3; }

.guide-intro { padding: 115px 0 95px; }
.guide-intro-grid { display: grid; grid-template-columns: 1fr .7fr; gap: 90px; align-items: start; }
.guide-intro h2 { font-size: clamp(2.7rem, 5vw, 5rem); }
.guide-intro-copy > p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.guide-note { padding: 30px; border-radius: 24px; color: #fff; background: var(--navy); box-shadow: var(--shadow); }
.guide-note > * { margin: 0; }
.guide-note .guide-note-title { margin-bottom: 10px; color: var(--green); font-family: var(--display); font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.guide-note > p:not(.guide-note-title) { color: rgba(255,255,255,.64); font-size: .9rem; }

.quick-picks { padding: 0 0 120px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 25px; background: #fff; overflow: hidden; }
.quick-pick { padding: 28px; border-left: 1px solid var(--line); }
.quick-pick:first-child { border-left: 0; }
.quick-pick p { margin: 0; }
.quick-pick .quick-label { margin-bottom: 9px; color: var(--blue); font-size: .72rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; line-height: 1.3; }
.quick-pick .quick-name { font-family: var(--display); font-size: 1.2rem; font-weight: 800; line-height: 1.2; }

.route-list { padding: 130px 0; background: #fff; }
.route-list-head { margin-bottom: 70px; }
.route-list-head > p:last-child { max-width: 560px; color: var(--muted); }
.route-card { display: grid; grid-template-columns: .8fr 1.2fr; min-height: 500px; margin: 0 0 34px; overflow: hidden; border: 1px solid var(--line); border-radius: 30px; background: var(--cream); }
.route-card:nth-of-type(2n) { grid-template-columns: 1.2fr .8fr; }
.route-card:nth-of-type(2n) .route-map { order: 2; }
.route-map { position: relative; min-height: 400px; overflow: hidden; color: #fff; background: var(--navy); }
.route-map::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(2,9,24,.7), transparent 55%); }
.route-map .wp-block-image { position: absolute; inset: 0; }
.route-map img { width: 100%; height: 100%; object-fit: cover; }
.route-label { position: absolute; z-index: 2; left: 29px; bottom: 26px; }
.route-label p { margin: 0; line-height: 1.2; }
.route-label .route-area { margin-bottom: 4px; color: rgba(255,255,255,.56); font-size: .7rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.route-label .route-kind { font: 800 2.2rem var(--display); }
.route-copy { align-self: center; padding: clamp(38px, 6vw, 78px); }
.route-number { display: inline-grid; place-items: center; width: 40px; height: 40px; margin: 0 0 24px; border-radius: 50%; color: var(--blue); background: rgba(8,127,245,.1); font: 850 1rem var(--display); }
.route-copy h3 { font-size: clamp(2rem, 3.7vw, 3.55rem); }
.route-summary { margin: 18px 0 22px; color: var(--muted); }
.route-tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 26px; padding: 0; list-style: none; }
.route-tags li { padding: 8px 11px; border-radius: 999px; color: #34506f; background: #e8f1fa; font-size: .72rem; font-weight: 800; line-height: 1.3; }
.route-tip { margin: 0; padding-top: 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; line-height: 1.55; }
.route-tip::before { content: "✦"; margin-right: 11px; }
.route-tip strong { color: var(--ink); }

/* Our-data block: real walker numbers for the area (only shown where enough walkers) */
.walk-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 46px; border-radius: 24px; color: #fff; background: var(--navy); overflow: hidden; }
.walk-stat { margin: 0; padding: 26px 28px; border-left: 1px solid rgba(255,255,255,.1); }
.walk-stat:first-child { border-left: 0; }
.walk-stats p { margin: 0; }
.walk-stats .stat-value { font: 800 2.4rem/1 var(--display); color: var(--green); }
.walk-stats .stat-label { margin-top: 8px; color: rgba(255,255,255,.6); font-size: .8rem; }

.sources { padding: 110px 0 130px; }
.sources h2 { font-size: clamp(2.4rem, 4vw, 4rem); }
.sources .shell > p:not(.eyebrow) { max-width: 730px; color: var(--muted); }
.source-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin: 38px 0 0; padding: 0; list-style: none; }
.source-list li { margin: 0; }
.source-list a { display: flex; justify-content: space-between; gap: 20px; padding: 19px 21px; border: 1px solid var(--line); border-radius: 16px; background: #fff; font-size: .87rem; font-weight: 750; }
.source-list a::after { content: "↗"; color: var(--blue); }
.source-list a:hover { border-color: rgba(8,127,245,.4); color: var(--blue); }

/* ---------- 404 ---------- */
.not-found { padding: 140px 0; text-align: center; }
.not-found p { color: var(--muted); }
.not-found .wp-block-buttons { justify-content: center; }

/* ---------- tablet ---------- */
@media (max-width: 980px) {
	.shell, .narrow { width: min(100% - 36px, 760px); }
	.hero, .hero-content { min-height: 760px; }
	.hero::before { background-position: 72% center; background-size: auto 86%; }
	.hero::after { background: linear-gradient(90deg, rgba(3,12,29,.94), rgba(3,12,29,.56) 58%, rgba(3,12,29,.08)), linear-gradient(0deg, rgba(6,18,41,.86), transparent 42%); }
	.hero h1 { font-size: clamp(3.5rem, 13vw, 6.2rem); max-width: 650px; }
	.proof-inner { grid-template-columns: repeat(2, 1fr); padding: 22px 0; }
	.proof-item { padding: 20px; }
	.proof-item:nth-child(2n+1) { border-left: 0; }
	.feature-grid, .city-head, .guide-intro-grid, .track-cta-inner { grid-template-columns: 1fr; gap: 50px; }
	.feature.reverse .feature-copy, .feature.reverse .feature-visual { order: initial; }
	.visual-stage { min-height: 620px; }
	.feature-copy { text-align: center; }
	.feature-copy > p:not(.eyebrow) { margin-inline: auto; }
	.feature-list { width: fit-content; margin-inline: auto; text-align: left; }
	.pack-pair { width: min(620px, 100%); margin: auto; }
	.memory-header, .section-head { display: block; }
	.memory-header > p, .section-head > p { margin-top: 24px; }
	.shot-row { grid-template-columns: repeat(3, minmax(250px, 1fr)); overflow-x: auto; padding: 0 18px 32px; margin-inline: -18px; scroll-snap-type: x mandatory; }
	.shot-row .wp-block-image { scroll-snap-align: center; }
	.city-grid { grid-template-columns: 1fr 1fr; }
	.city-grid li:first-child { grid-column: 1 / -1; }
	body:not(.paged) .story-grid li:first-child .story-card { grid-template-columns: 1fr; }
	.quick-grid { grid-template-columns: repeat(2, 1fr); }
	.quick-pick:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
	.quick-pick:nth-child(4) { border-top: 1px solid var(--line); }
	.route-card, .route-card:nth-of-type(2n) { grid-template-columns: 1fr; }
	.route-card:nth-of-type(2n) .route-map { order: initial; }
}

/* ---------- phone ---------- */
@media (max-width: 620px) {
	.shell, .narrow { width: min(100% - 32px, 520px); }
	.post-cover { width: calc(100% - 32px); }
	h1 { font-size: clamp(3.45rem, 17vw, 5rem); }
	h2 { font-size: clamp(2.7rem, 13vw, 4rem); }
	.nav-inner { min-height: 76px; }
	.brand .wp-block-site-title { font-size: 1.25rem; }
	.brand .wp-block-site-logo img { width: 38px; height: 38px; border-radius: 12px; }
	.hero, .hero-content { min-height: 740px; }
	.hero::before { background-position: 76% 12%; background-size: auto 76%; opacity: .5; }
	.hero::after { background: linear-gradient(90deg, rgba(3,12,29,.96), rgba(3,12,29,.72)), linear-gradient(0deg, rgba(6,18,41,.88), transparent 42%); }
	.route-readout { right: 18px; bottom: 25px; }
	.hero-content { justify-content: flex-end; padding: 120px 0 68px; }
	.hero-copy { font-size: 1rem; margin: 20px 0 25px; }
	.hero .wp-block-buttons, .hero .wp-block-button { width: 100%; }
	.hero .wp-block-button__link { width: 100%; }
	.hero-note { display: grid; gap: 7px; }
	.proof-item { min-height: 96px; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-start; }
	.proof-item:nth-child(2n+1) { padding-left: 0; }
	.proof-item:nth-child(2n) { border-left: 1px solid rgba(255,255,255,.11); }
	.story-intro { padding: 105px 0 72px; }
	.feature, .dark-feature, .memory-strip, .city-walks, .final-cta, .stories, .route-list { padding: 95px 0; }
	.visual-stage { min-height: 515px; }
	.visual-stage::before { width: 430px; height: 430px; }
	.app-shot { width: min(350px, 88%); }
	.app-shot img { border-radius: 25px; }
	.float-card.top { top: 40px; right: 0; }
	.float-card.bottom { bottom: 44px; left: 0; }
	.pack-pair { min-height: 530px; }
	.pack-pair .wp-block-image { width: 62%; }
	.memory-header { margin-bottom: 40px; }
	.shot-row { grid-template-columns: repeat(3, 76vw); }
	.city-grid { grid-template-columns: 1fr; }
	.city-grid li:first-child { grid-column: auto; }
	.city-card { min-height: 360px; }
	.city-grid li:first-child .city-card h3 { font-size: 2.2rem; }
	.city-note { align-items: flex-start; flex-direction: column; }
	.footer-inner { align-items: flex-start; flex-direction: column; }
	.blog-hero { min-height: 540px; }
	.blog-hero-copy { padding: 85px 0 95px; }
	.blog-hero h1, .city-hero h1 { font-size: clamp(3.6rem, 19vw, 5.3rem); }
	.story-grid .wp-block-post-template { grid-template-columns: 1fr; }
	.story-card { min-height: 0; }
	body:not(.paged) .story-grid li:first-child .story-card { border-radius: 25px; min-height: 0; }
	body:not(.paged) .story-grid li:first-child .story-image { min-height: 430px; }
	body:not(.paged) .story-grid li:first-child .story-body { padding: 42px 29px 48px; }
	.city-hero { min-height: 700px; }
	.city-hero::before { background-position: 67% center; background-size: auto 82%; opacity: .34; }
	.city-hero::after { background: rgba(3,12,29,.72); }
	.city-hero-copy { padding: 80px 0 95px; }
	.guide-intro { padding: 85px 0 70px; }
	.quick-picks { padding-bottom: 85px; }
	.quick-grid { grid-template-columns: 1fr; }
	.quick-pick, .quick-pick:nth-child(3), .quick-pick:nth-child(4) { border-left: 0; border-top: 1px solid var(--line); }
	.quick-pick:first-child { border-top: 0; }
	.route-list-head { margin-bottom: 45px; }
	.route-card { margin-bottom: 23px; border-radius: 24px; }
	.route-map { min-height: 330px; }
	.route-copy { padding: 36px 28px 42px; }
	.route-label .route-kind { font-size: 1.8rem; }
	.walk-stats { grid-template-columns: 1fr; }
	.walk-stat { border-left: 0 !important; border-top: 1px solid rgba(255,255,255,.1); }
	.walk-stat:first-child { border-top: 0; }
	.source-list { grid-template-columns: 1fr; }
	.prose { padding: 56px 16px 90px; }
}

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

/* ---------- route maps (assets/js/route-map.js) ---------- */
.route-map-open { position: absolute; z-index: 3; top: 22px; right: 22px; padding: 10px 16px; border: 1px solid rgba(255,255,255,.25); border-radius: 999px; color: #fff; background: rgba(6,18,41,.6); backdrop-filter: blur(8px); font: 700 .82rem var(--body, inherit); cursor: pointer; }
.route-map-open:hover { background: var(--blue); border-color: var(--blue); }
.route-map > .route-map-live.maplibregl-map { position: absolute; inset: 0; z-index: 4; }   /* beats maplibre-gl.css position:relative */
.route-map.is-live::after, .route-map.is-live .route-label { display: none; }
.maplibregl-ctrl.maplibregl-ctrl-attrib { background: rgba(6,18,41,.72); color: rgba(255,255,255,.6); font-size: 11px; }
.maplibregl-ctrl-attrib a { color: inherit !important; text-decoration: none !important; }

/* ---------- city hero: real map + walk stats (hp_city_hero 'map' / 'stats') ---------- */
.city-hero:has(.city-hero-map)::before { display: none; }
.city-hero > .city-hero-map { position: absolute; inset: 0; z-index: -2; margin: 0; }
.city-hero-map img { width: 100%; height: 100%; object-fit: cover; object-position: right center; }
.city-hero .walk-stats { max-width: 660px; margin-top: 34px; border: 1px solid rgba(255,255,255,.13); background: rgba(6,18,41,.55); backdrop-filter: blur(12px); }
.city-hero .walk-stat { padding: 20px 24px; }
.city-hero .walk-stats .stat-value { font-size: 2rem; }
.walk-stats-note { margin: 12px 0 0; color: rgba(255,255,255,.45); font-size: .75rem; }
@media (max-width: 620px) {
	.city-hero .walk-stats { grid-template-columns: repeat(3, 1fr); }
	.city-hero .walk-stat { padding: 14px 12px; border-top: 0; border-left: 1px solid rgba(255,255,255,.1) !important; }
	.city-hero .walk-stat:first-child { border-left: 0 !important; }
	.city-hero .walk-stats .stat-value { font-size: 1.35rem; }
	.city-hero .walk-stats .stat-label { font-size: .7rem; }
}

/* ---------- city guide hero: copy left, app shot + store buttons right (hp_city_hero) ---------- */
.city-hero.is-guide { min-height: 0; display: block; }
.city-hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: start; padding: 44px 0 72px; }
.city-hero.is-guide .city-hero-copy { padding: 0; }
.city-hero.is-guide .breadcrumbs { margin-bottom: 22px; }
.city-hero.is-guide h1 { font-size: clamp(2.8rem, 5.2vw, 4.6rem); line-height: .95; }
.city-hero.is-guide .city-deck { margin: 22px 0 24px; font-size: 1.1rem; }
.city-hero-app { display: flex; flex-direction: column; align-items: center; text-align: center; }
.city-hero-app .app-shot { width: min(230px, 70%); margin: 0 0 22px; }
.city-hero-app-note { margin: 0 0 14px; color: rgba(255,255,255,.7); font-size: .9rem; font-weight: 600; }
.city-hero-app .wp-block-buttons { justify-content: center; flex-wrap: nowrap; gap: 10px; }
.city-hero-app .wp-block-button__link { padding: 12px 16px; font-size: .86rem; white-space: nowrap; }
@media (max-width: 980px) {
	.city-hero-grid { grid-template-columns: 1fr; gap: 40px; }
	.city-hero-app .wp-block-buttons { flex-wrap: wrap; }
	.city-hero-app .app-shot { width: min(240px, 70%); }
}
@media (max-width: 620px) {
	.city-hero-grid { padding: 28px 0 56px; }
	.city-hero.is-guide h1 { font-size: clamp(2.4rem, 11vw, 3.1rem); }
	.city-hero.is-guide .city-hero-copy { padding: 0; }
	.city-hero-app .app-shot { display: none; }   /* phones: just the buttons */
	.city-hero-app .wp-block-buttons, .city-hero-app .wp-block-button { width: 100%; }
	.city-hero-app .wp-block-button__link { width: 100%; }
}
