@font-face {
  font-family: "DM Sans";
  src: url("assets/dm-sans.woff2") format("woff2");
  font-weight: 100 1000;
  font-display: swap;
}
:root {
  color-scheme: light;
  --ink: #183c32;
  --muted: #52675d;
  --paper: #f7f8f3;
  --line: #d8ded4;
  --lime: #e7eeaf;
  --round: 1.45rem;
  font-family: "DM Sans", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; font-size: 1rem; line-height: 1.45; }
[hidden], .symbols { display: none !important; }
svg { display: block; }
.icon { width: 1.25rem; height: 1.25rem; flex: 0 0 auto; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
button, input, output { font: inherit; }
button, summary, input[type="range"] { cursor: pointer; }
a { color: inherit; }
button { color: var(--ink); }
button:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible { outline: .1875rem solid #336da8; outline-offset: .2rem; }
.skip { position: fixed; left: 1rem; top: -6rem; z-index: 4; background: white; padding: .75rem 1rem; border-radius: .5rem; }
.skip:focus { top: .6rem; }
.site-head { border-bottom: 1px solid var(--line); background: #fcfdf9; }
.mast, main { max-width: 77rem; margin-inline: auto; padding-inline: clamp(1rem, 4vw, 3rem); }
.mast { min-height: 5.15rem; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1.5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; justify-self: start; text-decoration: none; white-space: nowrap; font-size: 1.26rem; font-weight: 725; letter-spacing: -.06em; }
.brand b { font-weight: 470; }
.brand svg { width: 2.15rem; height: 2.15rem; padding: .22rem; border-radius: .63rem; background: var(--ink); fill: none; stroke: var(--lime); stroke-width: 3.7; stroke-linecap: round; }
.mast nav { display: flex; align-self: stretch; gap: 1.75rem; }
.mast nav a { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .5rem; text-decoration: none; color: var(--muted); font-size: .96rem; font-weight: 550; }
.mast nav a:hover, .mast nav a[aria-current] { color: var(--ink); }
.mast nav a[aria-current] { font-weight: 745; }
.mast nav a[aria-current]::after { content: ""; position: absolute; height: .19rem; background: var(--ink); border-radius: .2rem .2rem 0 0; inset: auto .05rem 0; }
.mast nav .icon { width: 1.1rem; height: 1.1rem; }
.demo { justify-self: end; border: 1px dashed #a5afa2; padding: .26rem .64rem; color: #435b4c; border-radius: .38rem; font-size: .8rem; font-weight: 580; white-space: nowrap; }
main { padding-block: clamp(1.5rem, 3vw, 3rem) 4rem; }
.page-heading { display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; margin-bottom: clamp(1rem, 2.2vw, 1.8rem); }
h1, h2, h3, p, dl, dd { margin: 0; }
h1 { font-size: clamp(2.5rem, 4.6vw, 4.1rem); font-weight: 500; letter-spacing: -.075em; line-height: .99; }
h1:focus { outline: none; }
h2 { font-size: clamp(1.55rem, 2.15vw, 2rem); font-weight: 575; line-height: 1.15; letter-spacing: -.055em; }
h3 { font-size: 1.08rem; font-weight: 640; line-height: 1.2; letter-spacing: -.025em; }
#home-totals { margin-top: .5rem; color: var(--muted); font-size: .96rem; }
.alert-link { color: #80502c; display: inline-flex; align-items: center; gap: .5rem; padding: .5rem 0; font-size: .9rem; font-weight: 560; text-underline-offset: .22rem; text-decoration-color: #bc9f87; }
.alert-link .icon { width: 1.05rem; height: 1.05rem; }
.card { min-width: 0; border: 1px solid var(--line); border-radius: var(--round); background: #fff; overflow: hidden; }
.feature-symbol { flex: 0 0 auto; width: 3.1rem; height: 3.1rem; border-radius: 1rem; display: grid; place-items: center; background: #eef1eb; color: var(--ink); }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; border: 1px solid var(--ink); background: var(--ink); color: white; font-size: .94rem; line-height: 1.2; font-weight: 650; padding: .58rem 1rem; min-height: 2.8rem; border-radius: 10rem; }
.primary:hover { background: #305747; }
.primary .icon { width: 1.05rem; height: 1.05rem; }
.networks, .diagnostic, .scenario { padding: clamp(1.25rem, 2.5vw, 2rem); }
.scenario { background: #eaf0d4; max-width: 42rem; }
.feature-symbol { background: #d5e2b8; margin-bottom: 1.7rem; }
.scenario p, .diagnostic details p { max-width: 43ch; line-height: 1.55; color: #405b4e; }
.scenario > p { margin-top: .65rem; }
.scenario .primary { margin-top: 1.5rem; }
.scenario .feedback:not(:empty) { font-size: .92rem; margin-top: 1rem; }
.scenario .feedback:empty { margin: 0; }
.system-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.15rem; }
.network-list { margin-top: 1.4rem; }
.network-list > div { display: flex; justify-content: space-between; gap: .65rem; align-items: center; padding: .8rem 0; border-top: 1px solid var(--line); }
.network-list dt, .offline-state { display: inline-flex; align-items: center; gap: .5rem; }
.network-list dd { font-size: .88rem; color: #466638; white-space: nowrap; }
.offline-state { font-size: .88rem; font-weight: 600; color: #86512b; margin-bottom: .75rem; }
.offline-state .icon { width: 1rem; height: 1rem; }
.device-location { color: var(--muted); margin: .4rem 0 1rem; }
.diagnostic details { border-top: 1px solid var(--line); padding-top: .85rem; }
.diagnostic summary { padding-block: .45rem; font-weight: 620; }
.diagnostic details p { margin-top: .55rem; }
@media (max-width: 850px) {
  .mast { gap: 1rem; }
  .mast nav { gap: 1.1rem; }
}
@media (max-width: 680px) {
  .system-grid { grid-template-columns: minmax(0, 1fr); gap: .8rem; }
  .networks, .diagnostic, .scenario { padding: 1.15rem; }
  html { scroll-padding-bottom: calc(4.8rem + env(safe-area-inset-bottom)); }
  .mast { min-height: 3.6rem; grid-template-columns: 1fr auto; column-gap: 1rem; row-gap: 0; }
  .brand, .demo { margin-block: .68rem; }
  .brand { font-size: 1.12rem; }
  .brand svg { width: 1.88rem; height: 1.88rem; }
  .mast nav { position: fixed; inset: auto 0 0; z-index: 3; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; padding: 0 env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); border-top: 1px solid var(--line); background: #fcfdf9; }
  .mast nav a { flex-direction: column; gap: .22rem; min-height: 3.9rem; padding: .42rem .2rem; font-size: .85rem; }
  .mast nav a[aria-current]::after { inset: 0 25% auto; height: .15rem; }
  .demo { grid-column: 2; grid-row: 1; }
  main { padding-block: 1.9rem calc(5.5rem + env(safe-area-inset-bottom)); }
  .page-heading { margin-bottom: 1.2rem; gap: .25rem 1rem; }
  h1 { font-size: clamp(2.7rem, 9.8vw, 3.6rem); }
  .alert-link { font-size: .83rem; }
}
@media (max-width: 370px) {
  .page-heading { align-items: flex-start; flex-direction: column; }
  .alert-link { min-height: 2.75rem; }
  .mast nav a { gap: .3rem; }
}
