
:root {
  --bg: #f5f7fb;
  --surface: #ffffff;
  --text: #1a2332;
  --muted: #5b6778;
  --accent: #1d4ed8;
  --line: #e6ebf2;
  --max: 1120px;
  --measure: 65ch;
  --space-1: .35rem;
  --space-2: .75rem;
  --space-3: 1rem;
  --space-4: 1.25rem;
  --space-5: 2rem;
  --radius: 16px;
  --shadow: 0 8px 24px rgba(15, 23, 42, .04);
  --font: "Segoe UI", system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 1.05rem; line-height: 1.65; }
.layout-article > p, .layout-article .lede, .layout-article li, .layout-article dd, .site-footer p, main p, main li, main dd { max-width: var(--measure); }
.start-grid, .start-grid li, .industry-tiles, .industry-tiles li, .family-cards, .family-card, .article-list, .article-list li, .try-row, .group-links, .search-results, .search-results li, .home-lower, .cards, .chip-row, .family-links, .filters, .notice, .crumbs { max-width: none; }
a { color: var(--accent); }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 1rem; top: -4rem; background: #fff; color: #111; padding: .5rem .8rem; z-index: 3; }
.skip:focus { top: .5rem; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
[id] { scroll-margin-top: 1.25rem; }
.site-header { background: #fff; border-bottom: 1px solid var(--line); }
.header-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); padding: var(--space-3) 0; }
.brand { display: flex; align-items: center; gap: .65rem; color: var(--text); text-decoration: none; }
.brand-mark { width: 34px; height: 34px; flex: none; }
.brand-name { display: grid; line-height: 1.05; }
.brand-name b { font-size: .68rem; letter-spacing: .12em; font-weight: 700; }
.brand-name span { font-size: 1.02rem; font-weight: 750; }
.nav-desktop { display: none; }
.guide-menu summary { cursor: pointer; font-weight: 650; min-height: 44px; display: inline-flex; align-items: center; }
.guide-menu-links { display: grid; gap: .15rem; padding: var(--space-1) 0 var(--space-2); }
.guide-menu-links a { color: var(--text); text-decoration: none; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.guide-menu-links a.is-section { color: var(--accent); box-shadow: inset 0 -2px 0 var(--accent); }
.get-started { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; background: var(--accent); color: #fff; text-decoration: none; border-radius: 10px; padding: .65rem 1rem; font-weight: 700; white-space: nowrap; margin-left: auto; }
.header-find { margin-left: auto; }
.header-find + .get-started { margin-left: 0; }
.header-find { flex: 1 1 220px; min-width: 0; max-width: 280px; }
.header-find .find-row { box-shadow: none; padding: .1rem .1rem .1rem .7rem; }
.header-find .find-submit { padding: .45rem .75rem; }
.notice { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-1) var(--space-2); margin: var(--space-3) 0 var(--space-2); color: var(--muted); font-size: .95rem; line-height: 1.45; max-width: none; }
.notice span { background: #e8f0ff; color: #1e3a8a; border-radius: 999px; padding: .15rem .6rem; font-weight: 700; font-size: .85rem; }
.crumbs { color: var(--muted); margin: .4rem 0 1rem; }
.crumbs a { text-decoration: none; }
main { padding-bottom: 3rem; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: clamp(1.85rem, 4vw, 2.75rem); line-height: 1.15; letter-spacing: -.03em; margin: var(--space-1) 0 var(--space-2); }
.layout-article h1 { font-size: clamp(1.65rem, 2.6vw, 2.15rem); }
h2 { margin: var(--space-5) 0 var(--space-2); line-height: 1.25; font-size: 1.35rem; }
h3 { line-height: 1.3; font-size: 1.1rem; }
.lede { color: var(--muted); font-size: 1.12rem; line-height: 1.6; margin-top: 0; max-width: var(--measure); }
.hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 2rem; align-items: center; margin: .6rem 0 1.4rem; }
.guide-find { margin: 1rem 0 .7rem; }
.find-row { display: flex; align-items: center; gap: .35rem; background: #fff; border: 1px solid #dbe3ee; border-radius: 14px; padding: .35rem .35rem .35rem .85rem; box-shadow: 0 10px 30px rgba(15, 23, 42, .06); }
.find-icon { width: 20px; height: 20px; color: #64748b; flex: none; }
.find-row:focus-within { outline: 3px solid var(--accent); outline-offset: 3px; }
.find-row input { flex: 1; min-width: 0; border: 0; background: transparent; padding: .7rem .3rem; font: inherit; color: var(--text); }
.find-row input:focus { outline: none; }
.find-submit, .find-clear { min-height: 44px; }
.find-submit { background: var(--accent); color: #fff; border: 0; border-radius: 10px; padding: .65rem 1rem; font-weight: 700; }
.find-submit:hover, .get-started:hover { background: #1e40af; }
.find-clear { border: 0; background: transparent; color: var(--muted); padding: .35rem .55rem; }
.try-label { color: var(--muted); margin: .35rem 0 .25rem; }
.try-row { display: flex; flex-wrap: wrap; gap: .45rem; max-width: none; }
.try-row a { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .2rem .7rem; text-decoration: none; color: var(--text); }
.hero-shots { position: relative; min-height: 460px; margin: 0; }
.hero-shots a { position: absolute; display: block; background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 18px 40px rgba(15, 23, 42, .12); }
.hero-shots a:nth-of-type(1) { left: 0; top: 8px; width: 58%; z-index: 1; }
.hero-shots a:nth-of-type(2) { right: 0; top: 0; width: 48%; z-index: 2; }
.hero-shots a:nth-of-type(3) { right: 8%; bottom: 58px; width: 30%; z-index: 3; }
.hero-shots img { width: 100%; max-width: 100%; height: auto; display: block; background: #fff; }
.hero-shots figcaption { position: absolute; left: 0; right: 0; bottom: 0; color: var(--muted); font-size: .9rem; }
.start-grid { list-style: none; padding: 0; margin: .4rem 0 1.2rem; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.start-card { display: flex; flex-direction: column; gap: var(--space-1); min-height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); text-decoration: none; color: inherit; box-shadow: var(--shadow); }
.start-card:hover, .start-card:focus-visible, .family-card:hover { border-color: #c5d4ea; }
.start-card strong { color: var(--text); font-size: 1.05rem; }
.start-card .start-copy { color: var(--muted); }
.icon { width: 2.4rem; height: 2.4rem; display: grid; place-items: center; border-radius: 12px; }
.icon .mark { width: 1.25rem; height: 1.25rem; }
.icon-blue { background: #e8f0ff; color: #1d4ed8; }
.icon-teal { background: #e7f8f4; color: #0f766e; }
.icon-violet { background: #f3e8ff; color: #7c3aed; }
.icon-amber { background: #fff4e5; color: #c2410c; }
.icon-rose { background: #fde8ef; color: #9d174d; }
.icon-slate { background: #eef2f7; color: #334155; }
.industry-group h2 { display: flex; align-items: center; gap: .65rem; }
.home-lower { display: grid; grid-template-columns: 1.05fr 1.15fr .85fr; gap: 1rem; align-items: start; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-4); box-shadow: var(--shadow); }
.panel h2, .panel h3, .card h2, .feature h2, .scenario h2 { margin-top: 0; font-size: 1.15rem; }
.panel p + p, .panel p + h2 { margin-top: var(--space-2); }
.invite .get-started { margin: var(--space-2) 0 0; }
.panel-head { display: flex; justify-content: space-between; gap: 1rem; align-items: baseline; }
.panel-head a, .text-link { font-weight: 650; text-decoration: none; }
.article-list, .industry-tiles { list-style: none; padding: 0; margin: 0; max-width: none; }
.article-list li { border-top: 1px solid var(--line); }
.article-list a { display: flex; justify-content: space-between; gap: .75rem; padding: .75rem 0; text-decoration: none; color: var(--text); font-weight: 650; }
.article-list a::after { content: "›"; color: #94a3b8; }
.industry-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .7rem; }
.industry-tiles a { display: grid; gap: .35rem; color: var(--text); text-decoration: none; font-weight: 650; font-size: .95rem; }
.industry-tiles img, .family-card img, .family-hero img { width: 100%; height: auto; display: block; background: #fff; aspect-ratio: 3 / 2; object-fit: cover; }
.industry-tiles img { border-radius: 12px; }
.tile-copy, .scene-note { color: var(--muted); font-weight: 500; font-size: .85rem; }
.family-intro { margin: .4rem 0 1.4rem; }
.family-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: .8rem 0; }
.family-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.family-copy { display: flex; flex-direction: column; flex: 1; gap: var(--space-1); padding: var(--space-3) var(--space-4) var(--space-4); }
.family-copy h3 { margin: 0; font-size: 1.08rem; }
.family-copy h3 a, .family-links a, .family-picture { text-decoration: none; }
.family-copy p, .panel p, .start-copy, .tile-copy, .search-results p { max-width: none; margin: 0; }
.chip-row { display: flex; flex-wrap: wrap; gap: .35rem; }
.chip { background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: .12rem .55rem; color: var(--muted); font-size: .82rem; }
.family-links { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-3); margin-top: auto; padding-top: var(--space-2); }
.family-hero { max-width: 42rem; margin: var(--space-1) 0 var(--space-4); }
.family-hero img { border-radius: var(--radius); }
.tile { height: 74px; border-radius: 12px; display: grid; place-items: center; }
.tile .mark { width: 1.7rem; height: 1.7rem; }
.tile-rose { background: #fde8ef; color: #9d174d; }
.tile-teal { background: #e7f8f4; color: #0f766e; }
.tile-blue { background: #e8f0ff; color: #1d4ed8; }
.tile-amber { background: #fff4e5; color: #c2410c; }
.tile-violet { background: #f3e8ff; color: #6d28d9; }
.tile-slate { background: #eef2f7; color: #334155; }
.invite p { color: var(--muted); }
.feature, .card, article { overflow-wrap: anywhere; }
.card, .scenario, .feature { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 1rem 1.05rem; margin: .9rem 0; }
.family-index, .routes, .starts { list-style: none; padding: 0; }
.family-index li, .routes li { margin: 0 0 1rem; }
.family-index a { font-weight: 700; text-decoration: none; }
.family-index span, .status, .condition { display: block; color: var(--muted); margin-top: .2rem; }
.toc, .steps { padding-left: 1.3rem; }
.toc li, .steps li { margin: .45rem 0; }
.facts { display: grid; gap: .7rem; }
dt { font-weight: 700; }
dd { margin: .15rem 0 0; }
.flag { color: var(--muted); }
.filters { display: grid; gap: .75rem; margin: 1rem 0 1.3rem; }
.filters label { color: var(--text); font-weight: 650; }
.filters input, .filters select, button { font: inherit; }
.filters input, .filters select { width: 100%; background: #fff; color: var(--text); border: 1px solid #dbe3ee; border-radius: 10px; padding: .55rem .7rem; }
.group-links { display: flex; flex-wrap: wrap; gap: .45rem .9rem; }
.group-links a { text-decoration: none; font-weight: 650; }
details.secondary { margin: 1rem 0; }
summary { cursor: pointer; font-weight: 700; }
.setup-figure { margin: 1rem 0 1.3rem; }
.setup-figure img { width: 100%; height: auto; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.setup-figure figcaption { color: var(--muted); margin-top: .4rem; }
.setup-table { width: 100%; border-collapse: collapse; margin: .8rem 0 1.2rem; }
.setup-table th, .setup-table td { border-top: 1px solid var(--line); text-align: left; vertical-align: top; padding: .55rem .35rem; }
pre { max-width: 100%; overflow-x: auto; background: #fff; border-radius: 12px; padding: .8rem; }
.search-results { list-style: none; padding: 0; max-width: 72ch; }
.search-results li { display: grid; gap: var(--space-1); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin: 0 0 var(--space-2); box-shadow: var(--shadow); }
.search-results a { font-weight: 750; font-size: 1.05rem; text-decoration: none; }
.search-meta, .search-status { color: var(--muted); font-size: .92rem; font-weight: 650; }
.site-footer { color: var(--muted); padding: 1.4rem 0 2.4rem; }
@media (min-width: 900px) {
  .guide-menu { display: none; }
  .nav-desktop { display: flex; flex: none; align-items: center; width: max-content; gap: .2rem 1.15rem; padding: 0; }
  .nav-desktop a { white-space: nowrap; }
  .filters { grid-template-columns: 1.4fr .8fr .9fr auto; align-items: end; }
}
@media (max-width: 899px) {
  .nav-desktop { display: none; }
  .guide-menu:not([open]) > .guide-menu-links { display: none; }
  .guide-menu[open] > .guide-menu-links { display: grid; }
  .hero, .home-lower { grid-template-columns: minmax(0, 1fr); }
  .hero > *, .guide-find, .find-row, .hero-shots, .hero-shots a { min-width: 0; max-width: 100%; }
  .find-submit { flex: none; }
  .start-grid { grid-template-columns: 1fr 1fr; }
  .hero-shots { min-height: 0; display: grid; gap: .75rem; }
  .hero-shots a, .hero-shots a:nth-of-type(1), .hero-shots a:nth-of-type(2), .hero-shots a:nth-of-type(3) { position: static; width: auto; }
  .hero-shots a:nth-of-type(3) { width: min(220px, 68%); margin-inline: auto; }
  .hero-shots img { height: auto; max-height: none; }
  .hero-shots figcaption { position: static; }
  .header-find { flex-basis: 100%; max-width: none; }
  .get-started { padding: .55rem .75rem; }
}
@media (max-width: 640px) {
  h1 { font-size: clamp(1.7rem, 8vw, 2.15rem); }
  .layout-article h1 { font-size: clamp(1.55rem, 7.2vw, 1.9rem); }
  .setup-table { display: block; overflow-x: auto; }
  .setup-table th, .setup-table td { overflow-wrap: anywhere; }
  .industry-tiles { grid-template-columns: 1fr 1fr; }
  .family-cards, .start-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
