/* Shared identity across the marketplace, account area, guides and research. */
:root{--km-ink:#24221f;--km-accent:#a53d16;--km-paper:#fbf8f3;--km-muted:#615b53;--km-line:#ded7cc;--km-font:"Segoe UI",Arial,sans-serif;--ink:var(--km-ink);--accent:var(--km-accent);--rust:var(--km-accent);--paper:var(--km-paper);--muted:var(--km-muted);--line:var(--km-line);--sans:var(--km-font);--serif:var(--km-font)}
body{font-family:var(--km-font);color:var(--km-ink);background:var(--km-paper)}
.brand{display:inline-flex;align-items:center;gap:8px;font-family:var(--km-font);font-size:28px;font-weight:800;letter-spacing:-1.5px;line-height:1.1;text-decoration:none;white-space:nowrap}.brand b{color:var(--km-accent);font-weight:800}.brand small{display:none}
.header{width:min(1280px,92%);min-height:76px;padding:12px 0;gap:18px;border-bottom:1px solid var(--km-line);position:sticky;top:0;z-index:20;background:var(--km-paper)}
.editorial-search{display:flex;align-items:center;flex:1;max-width:420px;min-width:0;height:44px;padding:0 4px 0 14px;border:1px solid #cfc6b9;border-radius:999px;background:#fff}.editorial-search input{flex:1;min-width:0;border:0;background:transparent;color:inherit}.editorial-search button{height:36px;padding:0 14px;border:0;border-radius:999px;background:var(--km-accent);color:#fff;font-weight:650}
#navigation{gap:22px;font-size:14px}#navigation a{min-height:44px;display:inline-flex;align-items:center}.nav-cta,.button{border-radius:8px}.nav-cta{border-color:var(--km-accent);color:var(--km-accent)}
.page-heading h1,.article-heading h1,.prose h2,.article-body h2,.section-heading h2{font-weight:700;letter-spacing:-.04em}.page-heading h1{font-size:clamp(38px,5vw,64px)}
.page-heading{padding-block:40px 30px}.page-heading>p:not(.eyebrow){max-width:65ch}.prose{padding-bottom:48px}.prose a,.article-body a{color:var(--km-accent);text-decoration:underline;text-underline-offset:.2em}
.footer-main{border-top:1px solid var(--km-line);padding-block:32px}.footer-main .brand{font-size:28px}.footer-main a[href^="mailto:"],.foot a[href^="mailto:"]{overflow-wrap:anywhere}.footer-bottom{color:var(--km-muted)}
.brand-note{padding:18px 22px;border:1px solid var(--km-line);border-radius:12px;background:#fff;margin:20px 0;color:var(--km-muted);font-size:15px;line-height:1.6}
.brand-direction{display:grid;grid-template-columns:1fr 1fr;gap:32px;padding:36px 0;border-top:1px solid var(--km-line)}.brand-direction h2{font-size:clamp(28px,3vw,40px);max-width:20ch}.brand-direction p{color:var(--km-muted);max-width:66ch;line-height:1.65}.brand-direction .eyebrow{color:var(--km-accent);font-weight:700;font-size:13px;letter-spacing:.08em;margin-bottom:10px}
.foot{flex-wrap:wrap}.foot .brand-tagline{flex-basis:100%;font-size:14px;color:var(--km-muted);margin:0}.foot nav{gap:10px 16px}
.stage-copy .stage-sub{max-width:39ch}.stage h1{max-width:13ch;font-size:clamp(42px,5.3vw,72px);line-height:1.04;letter-spacing:-.045em}
.site-header{background:var(--km-paper)}.site-header .brand{color:var(--km-ink)}
@media(max-width:900px){#navigation{gap:14px}.header{gap:16px}.brand{font-size:25px}}
@media(max-width:760px){.header{min-height:64px;flex-wrap:wrap}.editorial-search{order:5;flex:1 0 100%;max-width:none}.header #navigation{background:var(--km-paper)}.brand-direction{grid-template-columns:minmax(0,1fr);gap:16px;padding:28px 0}.page-heading{padding-block:28px 22px}.brand-note{padding:16px}.stage h1{font-size:44px}.foot nav{font-size:14px}.header .brand{font-size:25px}}
@media(max-width:400px){.stage h1{font-size:39px}}

body:has(>.header){--green:var(--km-accent)}
body:has(>.header)>footer{background:var(--km-paper);color:var(--km-ink)}
body:has(>.header)>footer p,body:has(>.header)>footer .footer-bottom{color:var(--km-muted)}
body:has(>.header)>footer .footer-main a:not(.brand){color:var(--km-muted)}

/* Brand v1 wordmark (docs/brand/README.md). The link text stays for screen readers; the drawn wordmark replaces it on screen.
   Print and Windows high-contrast show the text instead. The data: image needs img-src data:, which public/customHttp.yml allows;
   the API-served business page (service/backend/source-profile-html.mjs) has a stricter policy and inlines the wordmark as <svg> instead (tests/brand-wordmark.test.mjs). */
.brand,.km-wordmark{font-size:0!important;letter-spacing:0!important;line-height:0!important;gap:0!important}.brand::before,.km-wordmark::before{content:"";display:block;height:32px;aspect-ratio:366/78;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 6 366 78'%3E%3Cg fill='none' stroke='%2324221f' stroke-width='9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 14V60M32 15L17 32Q13 37 17 42L33 59'/%3E%3Ccircle cx='60' cy='44' r='14'/%3E%3Cpath d='M74 28V60'/%3E%3Cpath d='M90 60V40A13 13 0 0 1 116 40V60'/%3E%3Ccircle cx='146' cy='44' r='14'/%3E%3Cpath d='M160 28V64A13 12 0 0 1 135 70'/%3E%3Ccircle cx='190' cy='44' r='14'/%3E%3Cpath d='M204 28V60'/%3E%3Cpath d='M222 60V15L241 44L260 15V60'/%3E%3Ccircle cx='290' cy='44' r='14'/%3E%3Cpath d='M304 28V60'/%3E%3Cpath d='M322 12V60'/%3E%3Cpath d='M338 12V60'/%3E%3C/g%3E%3Ccircle cx='358' cy='56' r='6.5' fill='%23a53d16'/%3E%3C/svg%3E") no-repeat left center/contain}@media(max-width:760px){.brand::before,.km-wordmark::before{height:26px}}@media print,(forced-colors:active){.brand,.km-wordmark{font-size:24px!important;line-height:1.1!important;gap:.3em!important;color:#24221f}.brand::before,.km-wordmark::before{display:none}}
