/*
Theme Name: Markham Fitness Guide
Description: Lightweight, modern theme for the Markham Fitness Guide directory. Works with the mfg-directory plugin.
Version: 2.0.0
Author: Maxim Dorneval
Requires PHP: 8.0
Text Domain: mfg
*/

:root {
	--ink: #0c1512;
	--ink-2: #26332e;
	--muted: #5d6b65;
	--line: #e3e8e4;
	--line-2: #eef2ef;
	--bg: #fbfbf8;
	--card: #ffffff;
	--tint: #f2f5f0;
	--brand: #0f7a5a;
	--brand-d: #0a5a42;
	--brand-50: #e6f4ee;
	--night: #07130f;
	--night-2: #0d211a;
	--lime: #d4f75a;
	--lime-d: #b9e036;
	--radius: 20px;
	--radius-sm: 12px;
	--shadow-sm: 0 1px 2px rgba(12, 21, 18, .05);
	--shadow: 0 1px 2px rgba(12, 21, 18, .04), 0 8px 24px -6px rgba(12, 21, 18, .10);
	--shadow-lg: 0 2px 4px rgba(12, 21, 18, .04), 0 24px 48px -12px rgba(12, 21, 18, .22);
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--wrap: 1200px;
	--c: var(--brand); /* per-category colour, set by .cat-* */
}

/* Category colours */
.cat-gyms { --c: #2563eb; }
.cat-personal-trainers { --c: #0f7a5a; }
.cat-yoga-pilates { --c: #8b5cf6; }
.cat-martial-arts-boxing { --c: #e11d48; }
.cat-kids-programs { --c: #ea580c; }
.cat-physio-chiro-massage { --c: #db2777; }
.cat-nutrition { --c: #65a30d; }
.cat-pools-community { --c: #0891b2; }
.cat-running-outdoor { --c: #16a34a; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
img, svg, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--brand); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--brand-d); }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.025em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2rem, 4.4vw, 3rem); font-weight: 800; }
h2 { font-size: clamp(1.45rem, 2.8vw, 2rem); font-weight: 800; }
h3 { font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
::selection { background: var(--lime); color: var(--night); }
:focus-visible { outline: 3px solid var(--lime-d); outline-offset: 2px; border-radius: 6px; }

.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap--narrow { max-width: 800px; }
.muted { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); margin-bottom: .9rem; }
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }
.h-small { font-size: 1rem; font-weight: 700; margin: 1.5rem 0 .7rem; letter-spacing: -.005em; }
.icon { width: 1.15em; height: 1.15em; flex: none; vertical-align: -.2em; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .8em 1.3em; border-radius: 999px; border: 1px solid transparent; font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.1; text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 16px -6px rgba(12, 21, 18, .5); }
.btn-primary:hover { background: var(--brand-d); color: #fff; }
.btn-accent { background: var(--lime); color: var(--night); box-shadow: 0 6px 18px -6px rgba(185, 224, 54, .7); }
.btn-accent:hover { background: var(--lime-d); color: var(--night); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-sm { padding: .58em 1.05em; font-size: .87rem; }
.btn-lg { padding: 1em 1.7em; font-size: 1.05rem; }
.btn .icon { transition: transform .2s; }
.btn:hover .icon:last-child { transform: translateX(2px); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(251, 251, 248, .78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(227, 232, 228, .8); }
.site-header__in { display: flex; align-items: center; gap: 20px; min-height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 1.04rem; letter-spacing: -.02em; }
.brand b { font-weight: 800; }
.brand__mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: linear-gradient(140deg, var(--brand), var(--night)); color: var(--lime); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .2), 0 4px 10px -4px rgba(15, 122, 90, .7); }
.brand__mark .icon { width: 19px; height: 19px; }
.brand--light { color: #fff; }
.brand--light b { color: var(--lime); }
.site-nav { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.nav-list { list-style: none; display: flex; gap: 2px; margin: 0; padding: 4px; border-radius: 999px; }
.nav-list a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .93rem; transition: background .2s, color .2s; }
.nav-list a:hover, .nav-list .current-menu-item a { background: rgba(12, 21, 18, .06); color: var(--ink); }
.nav-toggle { display: none; margin-left: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 9px; color: var(--ink); cursor: pointer; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--night); color: #fff; padding: 76px 0 84px; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -2;
	background:
		radial-gradient(600px 380px at 12% 0%, rgba(15, 122, 90, .55), transparent 70%),
		radial-gradient(520px 360px at 92% 18%, rgba(212, 247, 90, .22), transparent 70%),
		radial-gradient(700px 420px at 70% 120%, rgba(8, 145, 178, .35), transparent 70%); }
.hero::after { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
	background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
	background-size: 44px 44px; -webkit-mask-image: radial-gradient(ellipse at 40% 30%, #000 30%, transparent 75%); mask-image: radial-gradient(ellipse at 40% 30%, #000 30%, transparent 75%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 48px; align-items: center; }
.hero .eyebrow { color: var(--lime); }
.hero__title { color: #fff; max-width: 14ch; font-size: clamp(2.3rem, 5.4vw, 4rem); line-height: 1.02; letter-spacing: -.035em; }
.hero__title em { font-style: normal; background: linear-gradient(100deg, var(--lime), #7ee0b5); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero__lead { font-size: 1.14rem; color: rgba(255, 255, 255, .78); max-width: 52ch; margin-bottom: 1.9rem; }
.hero .chips { margin-top: 18px; }
.hero .chip { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .16); color: rgba(255, 255, 255, .92); }
.hero .chip:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .3); color: #fff; }
.stats { display: flex; flex-wrap: wrap; gap: 10px 28px; list-style: none; margin: 30px 0 0; padding: 0; }
.stats li { display: flex; flex-direction: column; }
.stats b { font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; color: #fff; line-height: 1.1; }
.stats span { font-size: .82rem; color: rgba(255, 255, 255, .6); }

/* Floating preview cards in the hero */
.hero-stack { position: relative; min-height: 380px; }
.peek { position: absolute; width: min(330px, 92%); padding: 18px; border-radius: 18px; background: rgba(255, 255, 255, .96); color: var(--ink); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .55); text-decoration: none; transition: transform .35s cubic-bezier(.2, .8, .2, 1); }
.peek:hover { color: var(--ink); transform: translateY(-4px) rotate(0deg) !important; }
.peek:nth-child(1) { top: 0; right: 4%; transform: rotate(2.5deg); }
.peek:nth-child(2) { top: 128px; left: 0; transform: rotate(-3deg); z-index: 2; }
.peek:nth-child(3) { top: 258px; right: 0; transform: rotate(1.5deg); }
.peek__row { display: flex; align-items: center; gap: 12px; }
.peek__icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); flex: none; }
.peek__name { font-weight: 800; letter-spacing: -.01em; line-height: 1.2; }
.peek__meta { font-size: .82rem; color: var(--muted); }
.peek__tag { margin-left: auto; font-size: .7rem; font-weight: 800; color: var(--c); background: color-mix(in srgb, var(--c) 10%, white); padding: 4px 9px; border-radius: 999px; white-space: nowrap; }

/* Search */
.search { display: flex; gap: 6px; background: #fff; padding: 7px; border-radius: 20px; box-shadow: var(--shadow-lg); max-width: 860px; border: 1px solid var(--line); }
.search__q { flex: 1 1 260px; display: flex; align-items: center; gap: 10px; padding: 0 12px; color: var(--muted); min-width: 0; }
.search input, .search select { font: inherit; font-size: .97rem; color: var(--ink); border: 0; background: transparent; min-height: 50px; width: 100%; }
.search select { cursor: pointer; }
.search input:focus, .search select:focus { outline: none; }
.search__sel { flex: 0 1 190px; border-left: 1px solid var(--line); padding: 0 10px; min-width: 0; }
.search .btn { flex: none; border-radius: 14px; padding-inline: 1.5em; }
.search:focus-within { box-shadow: 0 0 0 4px rgba(212, 247, 90, .55), var(--shadow-lg); }

/* Chips */
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); text-decoration: none; font-size: .88rem; font-weight: 600; transition: border-color .2s, background .2s, color .2s; }
a.chip:hover { border-color: var(--ink); color: var(--ink); }
.chip--solid { background: var(--ink); border-color: var(--ink); color: #fff; }
a.chip--solid:hover { background: var(--brand-d); border-color: var(--brand-d); color: #fff; }
.chips--static .chip .icon { color: var(--brand); }

/* Sections */
.section { padding: 80px 0; }
.section--tight { padding: 40px 0 72px; }
.section--tint { background: var(--tint); }
.section__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 28px; flex-wrap: wrap; }
.section__head h2 { margin: 0; }
.section__head p { margin: 6px 0 0; color: var(--muted); }
.link-more { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; color: var(--ink); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); font-size: .9rem; transition: border-color .2s; }
.link-more:hover { border-color: var(--ink); color: var(--ink); }
.split { display: grid; grid-template-columns: 1.35fr 1fr; gap: 48px; align-items: start; }

/* Category tiles (bento) */
.tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px; min-height: 150px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); text-decoration: none; color: var(--ink); transition: border-color .25s, box-shadow .25s, transform .25s; overflow: hidden; height: 100%; }
.tile::after { content: ""; position: absolute; right: -40px; bottom: -40px; width: 120px; height: 120px; border-radius: 50%; background: var(--c); opacity: .07; transition: transform .35s, opacity .35s; }
.tile:hover { border-color: color-mix(in srgb, var(--c) 45%, white); box-shadow: var(--shadow); transform: translateY(-3px); color: var(--ink); }
.tile:hover::after { transform: scale(1.5); opacity: .12; }
.tile__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); margin-bottom: auto; }
.tile__icon .icon { width: 24px; height: 24px; }
.tile__name { font-weight: 800; line-height: 1.25; letter-spacing: -.01em; margin-top: 18px; }
.tile__count { font-size: .84rem; color: var(--muted); }
.tile__arrow { position: absolute; top: 20px; right: 20px; color: var(--muted); opacity: 0; transform: translateX(-4px); transition: opacity .25s, transform .25s; }
.tile:hover .tile__arrow { opacity: 1; transform: none; color: var(--c); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.cards--2 { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.card { position: relative; display: flex; flex-direction: column; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); transition: border-color .25s, box-shadow .25s, transform .25s; }
.card:hover { border-color: color-mix(in srgb, var(--c) 35%, white); box-shadow: var(--shadow); transform: translateY(-2px); }
.card__top { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.card__icon { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; background: color-mix(in srgb, var(--c) 12%, white); color: var(--c); flex: none; }
.card__title { font-size: 1.06rem; margin: 0 0 3px; letter-spacing: -.015em; }
.card__title a { color: var(--ink); text-decoration: none; }
.card__title a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; } /* whole card clickable */
.card__meta { margin: 0; font-size: .84rem; color: var(--muted); }
.card__meta .pill { color: var(--c); font-weight: 700; }
.card__top .badge { margin-left: auto; position: relative; z-index: 1; }
.card__text { color: var(--muted); font-size: .93rem; margin-bottom: 14px; }
.card__facts { list-style: none; margin: 0 0 16px; padding: 14px 0 0; border-top: 1px dashed var(--line); font-size: .89rem; display: grid; gap: 7px; }
.card__facts li { display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); }
.card__facts .icon { color: var(--muted); margin-top: 3px; }
.card__facts a { position: relative; z-index: 1; color: var(--ink-2); }
.card__more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; font-size: .9rem; color: var(--ink); }
.card:hover .card__more { color: var(--c); }
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 700; background: #f1f3f2; color: var(--muted); white-space: nowrap; border: 1px solid var(--line-2); }
.badge--ok { background: var(--brand-50); color: var(--brand-d); border-color: #cfe9dc; }

/* Sponsor */
.sponsor { position: relative; padding: 28px; border-radius: var(--radius); background: var(--night); color: #fff; box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; }
.sponsor::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px 220px at 100% 0%, rgba(212, 247, 90, .25), transparent 70%), radial-gradient(360px 260px at 0% 100%, rgba(15, 122, 90, .6), transparent 70%); }
.sponsor__tag { display: inline-flex; align-items: center; gap: 6px; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--night); background: var(--lime); padding: 5px 11px; border-radius: 999px; margin-bottom: 14px; }
.sponsor__name { color: #fff; margin: 0 0 2px; font-size: 1.6rem; }
.sponsor__role { color: rgba(255, 255, 255, .62); font-size: .88rem; margin-bottom: 14px; }
.sponsor__text { color: rgba(255, 255, 255, .86); }
.sponsor__list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 8px; }
.sponsor__list li { display: flex; gap: 10px; align-items: center; font-size: .95rem; }
.sponsor__list .icon { color: var(--lime); }
.sponsor--compact { padding: 22px; }
.sponsor--compact .sponsor__name { font-size: 1.25rem; }
.sponsor--compact .btn { width: 100%; }
.wrap--narrow .sponsor { margin-top: 44px; }

/* Guides */
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 16px; }
.guide { position: relative; display: flex; flex-direction: column; padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); transition: box-shadow .25s, transform .25s; }
.guide:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.guide::before { content: "Guide"; align-self: flex-start; font-size: .7rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); background: var(--brand-50); padding: 4px 10px; border-radius: 999px; margin-bottom: 14px; }
.guide h2, .guide h3 { font-size: 1.15rem; }
.guide h2 a, .guide h3 a { color: var(--ink); text-decoration: none; }
.guide h2 a::after, .guide h3 a::after { content: ""; position: absolute; inset: 0; }
.guide p { color: var(--muted); font-size: .94rem; }

/* CTA band */
.cta-band { padding: 0 0 80px; }
.cta-band__in { position: relative; overflow: hidden; isolation: isolate; display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 44px 48px; border-radius: 28px; background: var(--lime); color: var(--night); }
.cta-band__in::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 240px at 100% 100%, rgba(15, 122, 90, .35), transparent 70%), radial-gradient(300px 200px at 0% 0%, rgba(255, 255, 255, .6), transparent 70%); }
.cta-band h2 { margin: 0 0 6px; color: var(--night); }
.cta-band p { margin: 0; color: rgba(7, 19, 15, .75); }
.cta-band .btn-accent { background: var(--night); color: #fff; box-shadow: none; }
.cta-band .btn-accent:hover { background: var(--brand-d); color: #fff; }

/* Page heads */
.page-head { position: relative; overflow: hidden; isolation: isolate; background: var(--tint); border-bottom: 1px solid var(--line); padding: 30px 0 34px; }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(520px 260px at 95% -10%, color-mix(in srgb, var(--c) 16%, transparent), transparent 70%); }
.page-head h1 { margin: 0; }
.page-head__row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.page-head__row .badge { margin-left: auto; }
.page-head__icon { display: grid; place-items: center; width: 58px; height: 58px; border-radius: 17px; background: var(--c); color: #fff; flex: none; box-shadow: 0 10px 24px -10px var(--c); }
.page-head__icon .icon { width: 28px; height: 28px; }
.page-head__lead { color: var(--muted); max-width: 70ch; font-size: 1.06rem; }
.page-head__meta { margin: 6px 0 0; color: var(--muted); font-weight: 600; }
.page-head__meta a { color: var(--muted); }
.page-head .search { margin-top: 20px; box-shadow: var(--shadow); }
.page-head--simple { padding: 36px 0 40px; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; padding: 0; margin: 0 0 16px; font-size: .84rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; color: #b3beb8; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Directory layout */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 32px; align-items: start; }
.layout__side { display: grid; gap: 16px; position: sticky; top: 92px; }
.result-count { color: var(--muted); font-weight: 600; margin-bottom: 16px; font-size: .93rem; }
.side-box { padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); }
.side-box .h-small { margin-top: 0; }
.side-box--accent { background: var(--brand-50); border-color: #cfe9dc; }
.side-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: .92rem; transition: background .2s; }
.side-links a:hover { background: var(--tint); color: var(--ink); }
.side-links .icon { color: var(--c); }
.empty { padding: 40px; text-align: center; border: 2px dashed var(--line); border-radius: var(--radius); background: var(--card); }
.pager { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 28px; }
.pager .page-numbers { padding: 9px 15px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; font-weight: 600; color: var(--ink); background: var(--card); }
.pager .current { background: var(--ink); border-color: var(--ink); color: #fff; }

/* Listing page */
.facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 14px; }
.facts li { display: flex; gap: 11px; align-items: flex-start; word-break: break-word; }
.facts .icon { color: var(--c); margin-top: 3px; }
.fine { font-size: .79rem; color: var(--muted); margin: 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.map { margin: 28px 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 8; background: var(--tint); box-shadow: var(--shadow-sm); }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }
.claim { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); }
.claim .h-small { margin: 0 0 4px; }
.claim p { margin: 0; color: var(--muted); }
.claim__btns { display: flex; gap: 8px; flex-wrap: wrap; }

/* Prose */
.prose { font-size: 1.04rem; color: var(--ink-2); }
.prose h2 { margin-top: 1.7em; }
.prose h3 { margin-top: 1.5em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; }
.prose li::marker { color: var(--brand); }
.prose > :first-child { margin-top: 0; }
.prose blockquote { margin: 1.5em 0; padding: 16px 20px; border-left: 4px solid var(--lime-d); background: var(--tint); border-radius: 0 12px 12px 0; }
.prose table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: .95rem; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.prose th { background: var(--tint); font-weight: 700; }
.prose th, .prose td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose tr:last-child td { border-bottom: 0; }

/* Forms */
.mfg-form { display: grid; gap: 18px; }
.mfg-form fieldset { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px 8px; margin: 0; display: grid; gap: 14px; background: var(--card); }
.mfg-form legend { font-weight: 800; padding: 0 8px; letter-spacing: -.01em; }
.mfg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.mfg-field { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink-2); }
.mfg-field input, .mfg-field select, .mfg-field textarea { font: inherit; font-weight: 400; color: var(--ink); padding: 12px 14px; border: 1px solid #d3dcd6; border-radius: var(--radius-sm); background: #fff; width: 100%; transition: border-color .2s, box-shadow .2s; }
.mfg-field input:focus, .mfg-field select:focus, .mfg-field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 122, 90, .14); }
.mfg-hp { position: absolute !important; left: -9999px; }
.mfg-note { font-size: .84rem; color: var(--muted); margin: 0; }
.mfg-form .btn { justify-self: start; }
.mfg-msg { margin: 0; font-weight: 600; }
.mfg-msg.is-ok { padding: 18px; border-radius: var(--radius-sm); background: var(--brand-50); color: var(--brand-d); }
.mfg-msg.is-error { color: #b42318; }
.mfg-claim-intro { font-size: 1.05rem; }

/* Footer */
.site-footer { background: var(--night); color: rgba(255, 255, 255, .7); padding: 64px 0 28px; font-size: .92rem; }
.site-footer a { color: rgba(255, 255, 255, .82); text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 36px; }
.site-footer__about { margin-top: 16px; max-width: 34ch; }
.site-footer__h { color: #fff; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer__bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, .1); font-size: .8rem; color: rgba(255, 255, 255, .5); }
.site-footer__bottom p { margin: 0; }

/* Responsive */
@media (max-width: 1020px) {
	.hero__grid { grid-template-columns: 1fr; }
	.hero-stack { display: none; }
	.layout { grid-template-columns: 1fr; }
	.layout__side { position: static; }
	.split { grid-template-columns: 1fr; }
	.site-footer__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
	.nav-toggle { display: inline-flex; }
	.site-nav { display: none; position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line); padding: 12px 20px 18px; flex-direction: column; align-items: stretch; gap: 10px; box-shadow: var(--shadow); }
	.site-nav.is-open { display: flex; }
	.nav-list { flex-direction: column; }
	.nav-list a { padding: 12px 12px; border-radius: 10px; }
	.site-header__in { position: relative; }
}
@media (max-width: 720px) {
	.wrap { padding: 0 16px; }
	.hero { padding: 44px 0 48px; }
	.stats { gap: 8px 22px; }
	.stats b { font-size: 1.3rem; }
	.search { flex-direction: column; padding: 10px; border-radius: 18px; }
	.search__q, .search__sel { flex: 0 0 auto; }
	.search__sel { border-left: 0; border-top: 1px solid var(--line); padding: 0 12px; }
	.search .btn { width: 100%; }
	.section { padding: 52px 0; }
	.mfg-row { grid-template-columns: 1fr; }
	.cards, .cards--2, .guides { grid-template-columns: 1fr; }
	.tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
	.tile { min-height: 132px; padding: 16px; }
	.tile__name { overflow-wrap: anywhere; font-size: .95rem; }
	.tile__arrow { display: none; }
	.page-head__row .badge { margin-left: 0; }
	.map { aspect-ratio: 4 / 3; }
	.cta-band__in { padding: 30px 24px; border-radius: 22px; }
	.site-footer__grid { grid-template-columns: 1fr; }
	.actions .btn { flex: 1 1 auto; }
}
@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}
