:root {
  color-scheme: light;
  font: 100%/1.55 "Segoe UI", system-ui, sans-serif;
  color: #162b3d;
  background: #eef2f5;
  --ink: #162b3d;
  --muted: #4f6172;
  --line: #d6dfe7;
  --paper: #fff;
  --accent: #08685f;
  --accent-dark: #064e48;
  --navy: #13263a;
  --field-line: #a8b8c5;
  --subtle: #f5f8fa;
  --table-head: #e9eff3;
  --selection: #e4f4f1;
  --secondary-hover: #edf7f5;
  --notice: #e4f1ee;
  --error-bg: #f9e7e2;
  --error-text: #802816;
  --primary-ink: #fff;
  --primary-hover: #064e48;
  --focus: #138b81;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  color: #ecf0f2;
  background: #111315;
  --ink: #ecf0f2;
  --muted: #bac4ca;
  --line: #3a4349;
  --paper: #191d20;
  --accent: #8cd8c9;
  --accent-dark: #a6e6d7;
  --navy: #090c0e;
  --field-line: #64717a;
  --subtle: #22282c;
  --table-head: #282f34;
  --selection: #18382f;
  --secondary-hover: #24332f;
  --notice: #19382e;
  --error-bg: #422821;
  --error-text: #f8c2b5;
  --primary-ink: #102820;
  --primary-hover: #b2ecdf;
  --focus: #8cd8c9;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 0; }
a { color: var(--accent-dark); text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; }
button, summary { cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button, input, select, textarea { min-width: 0; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
main:focus { outline: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.19; letter-spacing: -.025em; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 5vw, 3rem); }
h2 { font-size: clamp(1.3rem, 3vw, 1.65rem); }
h3 { font-size: 1.1rem; }
.wrap { width: min(1120px, calc(100% - 3rem)); margin-inline: auto; }
.skip { position: absolute; top: -5rem; z-index: 5; background: var(--paper); padding: .75rem; }
.skip:focus { top: .5rem; }
.top { background: var(--navy); color: #fff; }
.top .wrap, .foot .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.top .wrap { min-height: 4.25rem; flex-wrap: wrap; padding-block: .55rem; }
.top a { color: #e9f1f7; text-decoration: none; }
.top a:hover, .top a[aria-current="page"] { text-decoration: underline; }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.12rem; font-weight: 700; white-space: nowrap; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 5px); gap: 3px; padding: 5px; border: 1px solid #7badae; border-radius: 4px; }
.brand-mark i { width: 5px; height: 5px; background: #a9e1da; }
.brand-mark i:last-child { background: transparent; border: 1px solid #a9e1da; }
.top nav, .actions, .crumbs, .chips { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1rem; }
.top nav { font-size: .9rem; }
.nav-end { margin-left: auto; }
.top button { color: #fff; background: transparent; border: 1px solid #607789; border-radius: .35rem; padding: .3rem .55rem; font-size: .875rem; }
.account-name { overflow-wrap: anywhere; max-width: 12rem; }
main { min-height: calc(100vh - 10rem); padding-block: 2.35rem 3.5rem; }
.stack { display: grid; gap: 1.5rem; }
.tight { display: grid; gap: .8rem; }
.hero { background: var(--navy); color: white; border: 1px solid transparent; border-radius: .75rem; padding: clamp(1.35rem, 5vw, 3.15rem); display: grid; gap: 1rem; }
:root[data-theme="dark"] .hero { border-color: var(--line); }
.hero h1 { font-size: clamp(2.7rem, 7vw, 4.5rem); }
.hero p { max-width: 46rem; color: #d8e6ef; font-size: 1.1rem; }
.hero .eyebrow { color: #a9e1da; }
.home-hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); align-items: center; gap: clamp(1rem, 4vw, 2.5rem); }
.intro-video { margin: 0; min-width: 0; }
.intro-video figcaption { margin-bottom: .5rem; color: #d8e6ef; font-size: .9rem; }
.intro-video-player { position: relative; }
.intro-video video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0c1724; border: 1px solid #476478; border-radius: .45rem; }
.intro-video-play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); padding: .55em 1em;
  border: 1px solid #a4e7d9; border-radius: .45rem; color: #fff; background: #142739; font-size: .95rem; white-space: nowrap; }
.intro-video-play:hover { background: #234458; }
.hero .intro-video-fallback { margin-top: .35rem; font-size: .9rem; }
.intro-video-fallback a { color: #a4e7d9; }
.eyebrow { font-size: .875rem; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-dark); }
.search-bar { display: flex; gap: .65rem; max-width: 44rem; }
.search-bar input { flex: 1; }
.panel { background: var(--paper); border: 1px solid var(--line); border-radius: .65rem; padding: clamp(1rem, 3vw, 1.6rem); min-width: 0; }
.contribute { display: grid; gap: 1rem; }
.contribute-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem 2rem; margin: 0; padding: 0;
  list-style: none; counter-reset: step; }
.contribute-steps li { counter-increment: step; display: grid; grid-template-columns: 2rem 1fr; column-gap: .75rem; align-items: start; align-content: start; }
.contribute-steps li::before { content: counter(step); grid-row: span 2; display: grid; place-items: center; width: 2rem; height: 2rem;
  border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; }
.contribute-steps h3, .contribute-steps p { margin: 0; }
.intro { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 1rem 2.5rem; }
.intro h2, .intro .actions { grid-column: 1 / -1; }
.intro p, .guide p { max-width: 78ch; }
.listing-layout { display: grid; gap: .85rem; }
.example-gallery { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 19rem), 1fr)); gap: 1rem; }
.home-examples .example-gallery { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14.5rem), 1fr)); }
.example-card { overflow: hidden; padding: 0; }
.example-card:hover { border-color: var(--accent); }
.example-card-image { display: block; background: var(--subtle); }
.example-card-image:focus-visible { outline-offset: -4px; }
.example-card-image img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.example-card-body { display: grid; align-content: start; gap: .5rem; padding: 1rem 1.1rem 1.25rem; }
.example-card-body h3 { font-size: 1.2rem; }
.example-card-body h3 a { color: var(--ink); }
.example-card-body p { color: var(--muted); }
.example-domain { width: fit-content; font-size: .85rem; }
.muted, .crumbs, .empty p { color: var(--muted); }
.crumbs { font-size: .9rem; gap: .35rem .6rem; }
.page-top { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; }
.page-top p { max-width: 72ch; }
.button, button.primary, button.secondary {
  display: inline-flex; justify-content: center; align-items: center; gap: .25rem; min-height: 2.6rem; border-radius: .4rem;
  border: 1px solid var(--accent); background: var(--accent); color: var(--primary-ink); padding: .43rem .85rem;
  text-decoration: none; font-size: .925rem; font-weight: 600; text-align: center;
}
.button:hover, button.primary:hover { background: var(--primary-hover); }
.button.secondary, button.secondary { color: var(--accent-dark); background: var(--paper); border-color: var(--line); }
.button.secondary:hover, button.secondary:hover { background: var(--secondary-hover); border-color: var(--accent); }
button.danger { color: var(--error-text); border-color: #a53c29; }
button.danger:hover, button.danger[data-armed] { background: var(--error-bg); border-color: #a53c29; }
.compact-list button.danger { padding: .15em .6em; font-size: .85rem; margin-left: .4rem; }
.hero button.primary { background: #adede0; color: #103d38; border-color: #adede0; }
.hero button.primary:hover { background: #cff9f0; }
input:not([type=checkbox]), select, textarea {
  width: 100%; padding: .55rem .65rem; border: 1px solid var(--field-line); border-radius: .35rem; color: var(--ink); background: var(--paper);
}
select { appearance: none; padding-right: 2rem; background: linear-gradient(45deg,transparent 50%,var(--muted) 50%) right 15px center / 5px 5px no-repeat, linear-gradient(135deg,var(--muted) 50%,transparent 50%) right 10px center / 5px 5px no-repeat, var(--paper); }
input[type=checkbox] { accent-color: var(--accent); width: 1rem; height: 1rem; margin: 0; flex: 0 0 auto; }
textarea { resize: vertical; min-height: 5rem; }
label { display: grid; align-content: start; gap: .3rem; font-size: .9rem; font-weight: 600; }
label.check { display: flex; align-items: center; gap: .55rem; font-weight: 400; }
fieldset { min-inline-size: 0; margin: 0; border: 1px solid var(--line); border-radius: .5rem; padding: .85rem; }
legend { font-weight: 650; padding-inline: .35rem; }
.subtle { background: var(--subtle); }
.chips { gap: .45rem; }
.chip { display: inline-block; font-size: .875rem; line-height: 1.4; padding: .3rem .55rem; border: 1px solid var(--line); border-radius: .35rem; background: var(--paper); color: var(--muted); text-decoration: none; }
a.chip:hover, a.chip[aria-current="true"] { background: var(--selection); color: var(--accent-dark); border-color: #91bab4; }
.catalog-layout { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: .85rem; align-items: start; }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: .7rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
th { background: var(--table-head); }
tr:last-child td, tbody tr:last-child th { border-bottom: 0; }
.catalog-name a { font-weight: 650; }
.catalog-table td:last-child { min-width: 6.5rem; }
.comparison-table td, .comparison-table th { min-width: 9rem; }
.mobile-label { display: none; }
.empty { border-style: dashed; }
.grid-2, .editor-options { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .85rem; }
.editor-options { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wide { grid-column: 1 / -1; }
.compact-list { padding-left: 1.2rem; margin: 0; display: grid; gap: .45rem; overflow-wrap: anywhere; }
.research { border-top: 1px solid var(--line); padding: .8rem .15rem 0; }
.research summary { width: fit-content; color: var(--accent-dark); font-size: .925rem; font-weight: 600; }
.research summary:hover { text-decoration: underline; text-underline-offset: .2em; }
.research-items, .research-links { list-style: none; padding: 0; margin: 0; }
.research-items { margin-top: .85rem; border: 1px solid var(--line); border-radius: .5rem; background: var(--paper); }
.research-items > li { padding: 1rem; gap: .45rem; }
.research-items > li + li { border-top: 1px solid var(--line); }
.research-links { display: flex; flex-wrap: wrap; gap: .35rem 1rem; font-size: .9rem; }
.guide-chart { margin: 0; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: .45rem; background: var(--subtle); }
.guide-measure > div { display: flex; justify-content: space-between; gap: .75rem; font-size: .9rem; }
.guide-measure strong { white-space: nowrap; }
.guide-measure meter { display: block; width: 100%; height: .9rem; accent-color: var(--accent); }
.guide-measure meter::-webkit-meter-bar { background: var(--paper); border: 1px solid var(--line); }
.guide-measure meter::-webkit-meter-optimum-value { background: var(--accent); }
.guide-steps { display: grid; gap: .9rem; margin: 0; padding-inline-start: 1.8rem; }
.guide-steps li { display: list-item; padding: 0 0 .85rem .3rem; border-bottom: 1px solid var(--line); }
.guide-steps li:last-child { padding-bottom: 0; border-bottom: 0; }
.guide-steps li::marker { font-weight: 700; color: var(--accent-dark); }
.guide-steps li p { margin-top: .35rem; max-width: 85ch; }
.guide-reference { margin-top: .85rem; }
.test-registry-table { min-width: 31rem; }
.test-registry-table tbody th { text-align: start; width: 32%; }
.house-project-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .65rem; margin: 0; }
.house-project-grid > div { padding: .75rem .85rem; border: 1px solid var(--line); border-radius: .4rem; }
.house-project-grid dt { font-weight: 680; }
.house-project-grid dd { margin: .25rem 0 0; display: grid; gap: .35rem; }
.house-project-grid dd .muted { font-size: .9rem; }
.house-project-flow li { flex: 1 1 11rem; }
.example-intro { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.example-image, .passport-photo { margin: 0; min-width: 0; }
.example-image img, .passport-photo img { width: 100%; display: block; border-radius: .4rem; border: 1px solid var(--line); }
.passport-photo img { max-height: 28rem; object-fit: contain; background: var(--paper); }
.example-image figcaption, .passport-photo figcaption { color: var(--muted); font-size: .875rem; margin-top: .35rem; }
.research > .example-image { margin-top: .75rem; max-width: 42rem; }
.example-chain { display: flex; gap: .45rem; flex-wrap: wrap; list-style: none; margin: 0; padding: 0; }
.example-chain li { padding: .35rem .7rem; background: var(--paper); border: 1px solid var(--line); border-radius: .4rem; }
.example-chain li + li::before { content: '↳'; margin-inline-end: .35rem; color: var(--muted); }
.example-results { min-width: 24rem; }
.architecture-field p { margin-top: .35rem; font-size: .875rem; }
.data { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; }
.data dt { color: var(--muted); font-size: .875rem; }
.data dd { margin: .15rem 0 0; }
.preline { white-space: pre-wrap; overflow-wrap: anywhere; }
.mono { font: .875rem/1.55 ui-monospace, monospace; overflow-wrap: anywhere; }
.auth { max-width: 35rem; margin-inline: auto; }
.technical-nav { align-items: flex-start; }
.notice { border-left: 3px solid var(--accent); background: var(--notice); padding: .75rem; border-radius: .25rem; overflow-wrap: anywhere; }
.notice.error { border-color: #a53c29; background: var(--error-bg); color: var(--error-text); }
.form-status:empty { display: none; }
.comment { border-top: 1px solid var(--line); padding-top: .75rem; }
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .9rem; }
.foot .wrap { flex-wrap: wrap; padding-block: 1.1rem; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
[hidden] { display: none !important; }
@media (max-width: 790px) {
  .home-hero { grid-template-columns: 1fr; }
  .catalog-layout { grid-template-columns: 1fr; }
  .example-intro { grid-template-columns: 1fr; }
  .filters { grid-template-columns: 1fr 1fr; }
  .filters h3, .filters .actions { grid-column: 1 / -1; }
}
@media (max-width: 660px) {
  .catalog-table, .catalog-table tbody { display: block; }
  .catalog-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .catalog-table tr {
    position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: .65rem; padding: .85rem; border-bottom: 1px solid var(--line);
  }
  .catalog-table tr:last-child { border-bottom: 0; }
  .catalog-table td { display: block; border: 0; padding: 0; }
  .catalog-table td:last-child { min-width: 0; }
  .catalog-table .catalog-check { position: absolute; top: .7rem; right: .7rem; }
  .catalog-check label { padding: .3rem; }
  .catalog-table .catalog-name { grid-column: 1 / -1; padding-right: 2rem; }
  .mobile-label { display: block; color: var(--muted); font-weight: 600; }
}
@media (max-width: 560px) {
  .house-project-grid { grid-template-columns: 1fr; }
  .wrap { width: calc(100% - 1.5rem); }
  .home-examples .example-card-image img { max-width: 15rem; margin-inline: auto; }
  .top .wrap { gap: .55rem; }
  .top .primary-nav { order: 3; width: 100%; border-top: 1px solid #456071; padding-top: .45rem; }
  .top nav { gap: .4rem .75rem; }
  .nav-end { margin-left: 0; }
  .account-name { display: none; }
  main { padding-block: 1.2rem 2rem; }
  .intro, .grid-2, .editor-options, .data { grid-template-columns: 1fr; }
  .search-bar { flex-wrap: wrap; }
  .search-bar input { flex-basis: 70%; }
}
