/* Shared public shell. Existing route, form and publication behavior stays in its owner. */
:root {
  --ui-bg: #f4f6fa;
  --ui-surface: #fff;
  --ui-surface-alt: #eef2f8;
  --ui-text: #18283e;
  --ui-muted: #52647b;
  --ui-border: #d9e1ec;
  --ui-border-strong: #b8c7db;
  --ui-accent: #225bce;
  --ui-accent-hover: #1848a7;
  --ui-accent-soft: #eaf0ff;
  --ui-header: rgba(250,251,254,.96);
  --ui-shadow: 0 8px 28px rgba(27,47,78,.06), 0 1px 2px rgba(27,47,78,.04);
  --ui-focus: #3e78e4;
  --ui-success-bg: #eaf5ee;
  --ui-success-text: #24613a;
  --ui-error-bg: #fff0ee;
  --ui-error-text: #ad332c;
  --warm-50: var(--ui-bg); --surface: var(--ui-surface); --ink: var(--ui-text);
  --muted: var(--ui-muted); --line: var(--ui-border); --line-strong: var(--ui-border-strong);
  --blue-700: var(--ui-accent); --emerald-700: var(--ui-accent); --emerald-600: var(--ui-accent);
  --sky-50: var(--ui-accent-soft); --mint-50: var(--ui-accent-soft); --sky-100: var(--ui-accent-soft);
  --shadow-sm: var(--ui-shadow); --shadow-md: 0 16px 40px rgba(27,47,78,.09);
  --container: min(1280px,calc(100vw - 64px));
}
html[data-color-theme="dark"] {
  color-scheme: dark;
  --ui-bg: #101722; --ui-surface: #192332; --ui-surface-alt: #202d40;
  --ui-text: #e9eff8; --ui-muted: #a8b8ce; --ui-border: #344358; --ui-border-strong: #526984;
  --ui-accent: #93b7ff; --ui-accent-hover: #bed2ff; --ui-accent-soft: #233755;
  --ui-header: rgba(19,28,41,.97); --ui-shadow: 0 8px 28px rgba(0,0,0,.14),0 1px 2px rgba(0,0,0,.15);
  --ui-focus: #93b7ff; --ui-success-bg: #193b2b; --ui-success-text: #a5dfb6;
  --ui-error-bg: #422624; --ui-error-text: #ffb6ae;
  --shadow-md: 0 16px 40px rgba(0,0,0,.24);
}
html { scroll-padding-top: 110px; }
body { background: var(--ui-bg); color: var(--ui-text); line-height: 1.7; }
body p { color: var(--ui-muted); }
body h1, body h2, body h3 { color: var(--ui-text); letter-spacing: -.035em; }
body a { color: var(--ui-accent); }
body a:hover { color: var(--ui-accent-hover); }
body :focus-visible { outline: 3px solid var(--ui-focus); outline-offset: 3px; }
body [hidden] { display: none !important; }
.skip-link { position: fixed; top: 12px; left: 18px; z-index: 100; padding: 10px 18px; border-radius: 10px; background: var(--ui-surface); color: var(--ui-text); box-shadow: var(--ui-shadow); transform: translateY(-150%); }
.skip-link:focus { transform: none; }
body .site-main { padding-top: 28px; padding-bottom: 72px; }
body .site-header { grid-template-columns: auto minmax(160px,240px) 1fr auto auto; gap: 16px; min-height: 80px; padding: 12px max(32px,calc((100vw - 1280px)/2)); border-color: var(--ui-border); background: var(--ui-header); }
body .site-header.is-scrolled { min-height: 72px; background: var(--ui-header); box-shadow: var(--ui-shadow); }
body .brand, body .brand:hover { color: var(--ui-text); }
body .brand-copy small { color: var(--ui-muted); letter-spacing: .025em; }
body .main-nav { gap: 16px; }
body .main-nav a { padding: 7px 0; color: var(--ui-muted); font-size: .84rem; }
body .main-nav a[aria-current="page"] { color: var(--ui-accent); }
body .main-nav a[aria-current="page"]::after { right: 0; background: var(--ui-accent); bottom: 0; }
body .header-search input { border: 1px solid var(--ui-border); border-radius: 10px 0 0 10px; background: var(--ui-surface); color: var(--ui-text); }
body .header-search input:focus { background: var(--ui-surface); border-color: var(--ui-focus); }
body .header-search button { border-radius: 0 10px 10px 0; min-width: 64px; }
body .theme-toggle { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 44px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--ui-border); border-radius: 11px; color: var(--ui-muted); background: var(--ui-surface); font-size: .76rem; white-space: nowrap; }
body .theme-toggle:hover { color: var(--ui-accent); border-color: var(--ui-border-strong); background: var(--ui-surface-alt); }
.theme-icon { width: 18px; height: 18px; }
.theme-icon-sun { display: none; }
[data-color-theme="dark"] .theme-icon-sun { display: block; }
[data-color-theme="dark"] .theme-icon-moon { display: none; }
body .button, body .header-action, body .hero-search button, body .header-search button,
body .lead-panel button, body .supplier-apply-layout button, body .event-calendar-filters button,
body .directory-search-form button, body .directory-filter-bar button { color: #fff; background: #225bce; border-color: #225bce; border-radius: 11px; box-shadow: none; min-height: 44px; transition: background .18s ease,border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
body .button:hover, body .header-action:hover { color: #fff; background: #1848a7; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(34,91,206,.16); }
body .button-outline, body .button-secondary { background: var(--ui-surface); color: var(--ui-accent); border-color: var(--ui-border-strong); }
body .button-light { background: #fff; color: #225bce; border-color: #fff; }
body button:disabled { cursor: wait; opacity: .62; }
body input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]), body select, body textarea { color: var(--ui-text); background: var(--ui-surface); border-color: var(--ui-border-strong); border-radius: 10px; min-height: 44px; }
body input::placeholder, body textarea::placeholder { color: var(--ui-muted); opacity: .9; }
body input[type="checkbox"], body input[type="radio"] { accent-color: #225bce; }
body label { color: var(--ui-text); }
body textarea { resize: vertical; }
body .site-main select, body .site-main textarea { color: var(--ui-text); background: var(--ui-surface); border-color: var(--ui-border-strong); }
body .header-search input { border-radius: 10px 0 0 10px; }
body .header-search button { border-radius: 0 10px 10px 0; }
body .breadcrumbs { margin-bottom: 18px; flex-wrap: wrap; font-size: .82rem; }
body .page-intro { padding-top: 24px; padding-bottom: 28px; }
body .page-intro h1 { font-size: clamp(2rem,3.8vw,3.2rem); line-height: 1.2; }
body .page-intro > p { font-size: 1rem; line-height: 1.8; }
body .content-section { margin-top: 48px; padding-top: 34px; }
body .directory-heading h2, body .band-heading h2 { font-size: clamp(1.45rem,2.3vw,1.9rem); }
body .section-kicker, body .hero-eyebrow, body .city-kicker { color: var(--ui-accent) !important; letter-spacing: .07em; font-size: .78rem; }
body .home-hero { min-height: 580px; margin-top: -28px; background: var(--ui-surface-alt); grid-template-columns: minmax(0,1.12fr) minmax(0,.88fr); }
body .hero-copy { padding: 54px 36px 54px max(32px,calc((100vw - 1280px)/2)); }
body .home-hero h1 { max-width: 630px; font-size: clamp(2.4rem,4.15vw,4.1rem); line-height: 1.2; letter-spacing: -.06em; }
body .hero-lead { font-size: 1rem; line-height: 1.85; color: var(--ui-muted); margin-top: 20px; }
body .hero-media { min-height: 580px; }
body .hero-media::after { background: linear-gradient(90deg,var(--ui-surface-alt),transparent 20%); }
body .hero-search { background: var(--ui-surface); border-color: var(--ui-border); border-radius: 14px; box-shadow: var(--ui-shadow); }
body .hero-search input { background: transparent; }
body .directory-proof { border-color: var(--ui-border); padding: 16px 0; }
body .directory-proof strong { font-variant-numeric: tabular-nums; font-size: 1.3rem; color: var(--ui-text); }
body .directory-proof span { font-size: .78rem; }
body .entry-card { background: var(--ui-surface); color: var(--ui-text); border-color: var(--ui-border); box-shadow: none; }
body .entry-card-primary { background: #225bce; color: #fff; border-color: #225bce; }
body .entry-card-primary span { color: #e3ecff; }
body .entry-card:hover { background: var(--ui-surface); color: var(--ui-text); }
body .entry-card-primary:hover { background: #1848a7; color: #fff; }
body .city-directory-band, body .event-scenario-band { background: var(--ui-surface); border-color: var(--ui-border); }
body .event-scenario-band .band-heading h2 { color: var(--ui-text); }
body .event-scenario-band .band-heading p { color: var(--ui-muted); }
body .event-scenario-band .band-heading > a { color: var(--ui-accent); }
body .city-directory-band { padding-top: 44px; padding-bottom: 44px; }
body .resource-step, body .resource-hub-links a { color: var(--ui-accent); }
body .resource-step { font-size: .78rem; }
body .resource-main .content-section, body .resource-aside, body .resource-steps .resource-step { color: var(--ui-text); background: var(--ui-surface); border-color: var(--ui-border); }
body .resource-tags li { color: var(--ui-accent); background: var(--ui-accent-soft); }
body .flow-steps li, body .legal-page, body .event-calendar-scenes { background: var(--ui-surface); color: var(--ui-text); border-color: var(--ui-border); }
body .event-calendar-scenes > p { color: var(--ui-muted); font-size: .78rem; }
body .entry-card span, body .about-principles span, body .event-scenario-card small,
body .city-item small, body .supplier-overview-update, body .source-list time,
body .event-calendar-stats, body .event-calendar-copy small, body .unverified-card span,
body .supplier-profile-status, body .directory-row-head span { font-size: .78rem; }
body .city-live-count { color: var(--ui-accent); }
body .procurement-steps li { background: var(--ui-surface); border-color: var(--ui-border); color: var(--ui-text); }
body .city-item, body .all-supplier-row, body .directory-city-row, body .unverified-card,
body .service-visual, body .evidence-card, body .supplier-business-header, body .supplier-detail-card,
body .profile-trust-panel, body .event-calendar-card, body .event-calendar-empty,
body .event-calendar-filters, body .directory-filter-bar, body .about-definition,
body .brief-panel, body .resource-profile, body .resource-case, body .resource-source,
body .supplier-apply-layout form, body .public-correction-form,
body .resource-hub-grid > a, body .about-principles article { background: var(--ui-surface); color: var(--ui-text); border-color: var(--ui-border); border-radius: 16px; box-shadow: var(--ui-shadow); }
body .city-item { background: var(--ui-surface-alt); box-shadow: none; }
body .city-item span, body .city-item small, body .all-supplier-cities,
body .supplier-business-description, body .supplier-editorial-sections p,
body .supplier-editorial-fit p, body .supplier-section-heading p,
body .supplier-profile-eyebrow, body .supplier-legal-name, body .supplier-overview-update,
body .supplier-card-meta, body .supplier-card-type, body .supplier-inquiry-help summary,
body .supplier-source-details summary, body .event-calendar-copy p,
body .resource-hub-grid p, body .resource-source-list, body .source-list { color: var(--ui-muted); }
body .supplier-overview-card, body .supplier-editorial-fit, body .supplier-owner-strip,
body .supplier-managed-media-placeholder, body .supplier-authorized-media,
body .brief-checks label, body .brief-staff-row, body .city-service-matrix,
body .city-service-card, body .city-service-compare-card, body .procurement-guide,
body .scope-guide, body .event-calendar-note, body .brief-intro,
body .event-calendar-teaser, body .event-calendar-disclosure { color: var(--ui-text); background: var(--ui-surface-alt); border-color: var(--ui-border); }
body .event-calendar-intro { background: var(--ui-accent-soft); border-color: var(--ui-border); }
body .event-calendar-intro > p:not(.section-kicker), body .event-calendar-stats { color: var(--ui-muted); }
body .event-calendar-stats strong { color: var(--ui-text); }
body .event-calendar-actions a, body .event-calendar-actions a:last-child,
body .event-calendar-pages a { color: var(--ui-accent); background: var(--ui-surface); border-color: var(--ui-border-strong); min-height: 40px; }
body .event-calendar-pages a[aria-current="page"] { color: #fff; background: #225bce; border-color: #225bce; }
body .event-calendar-tags .event-calendar-source-tag { color: var(--ui-muted); background: var(--ui-surface-alt); }
body .supplier-overview-card dd, body .supplier-overview-card h2,
body .supplier-business-identity h1, body .supplier-section-heading h2,
body .supplier-editorial-sections h3, body .supplier-editorial-fit h3,
body .supplier-company-intro-title, body .supplier-capability-facts dd,
body .city-service-compare-facts dd, body .resource-hub-grid strong { color: var(--ui-text); }
body .supplier-overview-card dt, body .supplier-capability-facts dt { color: var(--ui-muted); }
body .supplier-detail-card { padding: 28px; }
body .supplier-editorial-sections article, body .supplier-owner-strip,
body .supplier-profile-status { border-color: var(--ui-border); }
body .supplier-profile-status { color: var(--ui-muted); background: var(--ui-surface-alt); }
body .supplier-inline-tags span, body .supplier-highlight-tags span,
body .supplier-city-chooser a, body .supplier-capability-tag,
body .event-calendar-tags span, body .resource-tags span, body .event-calendar-date,
body .all-supplier-type, body .trust-badge { color: var(--ui-accent); background: var(--ui-accent-soft); border-color: var(--ui-border); }
body .supplier-card-link { color: var(--ui-accent); border-color: var(--ui-border-strong); background: var(--ui-surface); }
body .supplier-card-link:hover { background: #225bce; color: #fff; }
body .directory-table, body .directory-row-head { background: var(--ui-surface); color: var(--ui-muted); border-color: var(--ui-border); }
body .supplier-card { padding: 20px 16px; }
body .supplier-card:hover, body .all-supplier-row:hover, body .unverified-card:hover { background: var(--ui-accent-soft); color: var(--ui-text); }
body .coverage-index-list a, body .service-link-grid a { color: var(--ui-text); }
body details { border-color: var(--ui-border); color: var(--ui-text); background: var(--ui-surface); }
body summary { cursor: pointer; min-height: 36px; }
body details[open] > summary { color: var(--ui-accent); margin-bottom: 10px; }
body .lead-panel { grid-template-columns: minmax(240px,.65fr) minmax(0,1.35fr); gap: 32px; padding: 30px; background: var(--ui-surface); border-color: var(--ui-border); box-shadow: var(--ui-shadow); }
body .lead-panel textarea { width: 100%; border: 1px solid var(--ui-border-strong); padding: 12px; }
body .lead-panel label, body .supplier-apply-layout label, body .event-calendar-filters label { color: var(--ui-text); }
body .lead-panel label:has(textarea), body .lead-panel .consent-field, body .lead-panel [data-lead-status] { grid-column: 1/-1; }
body .form-status { background: var(--ui-accent-soft); border-color: var(--ui-border); color: var(--ui-text); border-radius: 10px; }
body .form-status-success { color: var(--ui-success-text); background: var(--ui-success-bg); }
body .form-status-error { color: var(--ui-error-text); background: var(--ui-error-bg); }
body .form-status:empty { display: none; }
body .site-footer { gap: 38px; color: var(--ui-muted); padding-top: 40px; }
body .site-footer strong { color: var(--ui-text); }
body .site-footer a:hover { color: var(--ui-accent); }
body .site-footer p { line-height: 1.7; }
body [data-reveal] { transform: none; }
@keyframes surface-enter { from { opacity: .65; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  body [data-reveal].is-visible { animation: surface-enter .45s cubic-bezier(.2,.8,.2,1) both; }
  body .main-nav.is-open { animation: surface-enter .18s ease both; }
  body .entry-card:hover, body .city-item:hover, body .directory-city-row:hover { transform: translateY(-2px); }
}
@media (max-width: 1180px) {
  body .site-header { grid-template-columns: auto minmax(180px,1fr) auto auto auto; gap: 12px; }
  body .nav-toggle { display: block; grid-column: 5; grid-row: 1; color: var(--ui-text); background: var(--ui-surface); border-color: var(--ui-border); }
  body .theme-toggle { grid-column: 4; grid-row: 1; }
  body .header-action { grid-column: 3; grid-row: 1; }
  body .main-nav { display: none; position: static; grid-column: 1/-1; width: 100%; padding: 12px; gap: 8px; border: 1px solid var(--ui-border); border-radius: 13px; background: var(--ui-surface); box-shadow: var(--ui-shadow); }
  body .main-nav.is-open { display: flex; flex-wrap: wrap; justify-content: flex-start; }
  body .main-nav a { padding: 10px 12px; min-height: 44px; border-radius: 8px; }
  body .main-nav a[aria-current="page"] { background: var(--ui-accent-soft); }
  body .main-nav a::after { display: none; }
}
@media (max-width: 900px) {
  :root { --container: calc(100vw - 40px); }
  body .home-hero { grid-template-columns: 1fr; min-height: 0; }
  body .hero-copy { padding: 36px 20px; }
  body .home-hero h1 { max-width: 700px; font-size: clamp(2rem,5vw,3.4rem); }
  body .hero-media { min-height: 0; height: 250px; }
  body .hero-media::after { background: linear-gradient(180deg,var(--ui-surface-alt),transparent 22%); }
  body .lead-panel { grid-template-columns: 1fr; gap: 18px; }
  body .site-footer { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  :root { --container: calc(100vw - 32px); }
  html { scroll-padding-top: 152px; }
  body .site-header { grid-template-columns: minmax(0,1fr) auto auto; min-height: 76px; padding: 10px 16px; gap: 8px; }
  body .brand { grid-column: 1; grid-row: 1; gap: 8px; }
  body .brand-copy strong { font-size: 1.05rem; }
  body .brand-copy small { font-size: .63rem; }
  body .theme-toggle { grid-column: 2; grid-row: 1; padding: 9px; }
  body .theme-toggle span { display: none; }
  body .nav-toggle { grid-column: 3; grid-row: 1; }
  body .header-action { display: none; }
  body .header-search { display: flex; grid-column: 1/-1; grid-row: 2; width: 100%; }
  body .main-nav { grid-column: 1/-1; grid-row: 3; flex-direction: column; align-items: stretch; padding: 6px; }
  body .main-nav a { width: 100%; }
  body .site-main { padding-top: 20px; padding-bottom: 46px; }
  body .home-hero { margin-top: -20px; }
  body .hero-copy { padding: 30px 16px; }
  body .home-hero h1 { width: 100%; max-width: none; font-size: 2rem; text-wrap: initial; }
  body .hero-media { height: 190px; }
  body .hero-lead { font-size: .95rem; }
  body .hero-search { margin-top: 22px; }
  body .hero-search input { font-size: .9rem; padding: 0 8px; }
  body .hero-search button { padding: 0 14px; white-space: nowrap; }
  body .audience-paths { grid-template-columns: 1fr; gap: 8px; }
  body .entry-card { padding: 12px 14px; }
  body .entry-card strong { font-size: .9rem; }
  body .entry-card span { font-size: .78rem; }
  body .directory-proof { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); }
  body .directory-proof li { grid-template-columns: 1fr; align-content: start; gap: 4px; padding: 0 10px; border-top: 0; border-bottom: 0; border-left: 1px solid var(--ui-border); }
  body .directory-proof li:first-child { border-left: 0; padding-left: 0; }
  body .directory-proof strong { font-size: 1.18rem; }
  body .directory-proof span { font-size: .75rem; }
  body .page-intro { padding-top: 18px; }
  body .page-intro h1 { font-size: 2rem; }
  body .directory-heading, body .band-heading, body .section-heading { align-items: flex-start; flex-direction: column; gap: 12px; }
  body .content-section { margin-top: 36px; padding-top: 26px; }
  body .city-directory-band { padding: 30px 16px; }
  body .supplier-detail-card { padding: 20px; }
  body .supplier-card { padding: 16px 8px; }
  body .lead-panel { padding: 22px 18px; }
  body .lead-panel form { grid-template-columns: 1fr; }
  body .lead-panel button { grid-column: 1; }
  body .site-footer { grid-template-columns: 1fr; gap: 24px; }
  body .all-supplier-action, body .city-service-summary { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  body [data-reveal], body .button:hover, body .header-action:hover, body .entry-card:hover,
  body .city-item:hover, body .directory-city-row:hover, body .hero-search:focus-within { transform: none; }
}
@media print {
  body { color: #18283e; background: #fff; }
  .site-header, .site-footer, .theme-toggle, .skip-link { display: none !important; }
  body .site-main { width: 100%; }
}

body .capability-distribution,body .capability-distribution dl>div{background:var(--ui-surface);border-color:var(--ui-border)}
body .hero-media figcaption{font-size:.75rem}
