@layer base, layout, components, responsive;

@layer base {
  :root {
    color-scheme: light;
    --ink: #15234b;
    --blue: #2548ed;
    --muted: #52617e;
    --paper: #f5f8ff;
    --line: #dce4f4;
    --pale: #e7efff;
    --green: #226655;
    font-family:
      'Avenir Next',
      Avenir,
      -apple-system,
      BlinkMacSystemFont,
      'Segoe UI',
      sans-serif;
    color: var(--ink);
    background: var(--paper);
  }
  * {
    box-sizing: border-box;
  }
  html {
    scroll-behavior: smooth;
    scroll-padding-top: 110px;
  }
  body {
    margin: 0;
    font-size: 17px;
    line-height: 1.65;
  }
  a {
    color: inherit;
    text-underline-offset: 4px;
  }
  a:hover {
    color: var(--blue);
  }
  button,
  input {
    font: inherit;
  }
  :focus-visible {
    outline: 3px solid var(--blue);
    outline-offset: 5px;
  }
  h1,
  h2,
  h3,
  p {
    margin-top: 0;
  }
  h1,
  h2,
  h3 {
    line-height: 1.12;
    font-weight: 600;
    letter-spacing: -0.045em;
  }
  h1 {
    font-size: clamp(3rem, 5.2vw, 5.5rem);
  }
  h2 {
    font-size: clamp(2rem, 3.5vw, 3.5rem);
  }
  h3 {
    font-size: 1.45rem;
    letter-spacing: -0.025em;
  }
  p {
    max-width: 68ch;
  }
  img {
    max-width: 100%;
    height: auto;
    display: block;
  }
  figure {
    margin: 0;
  }
  figcaption {
    margin-top: 14px;
    color: var(--muted);
    font-size: 0.9rem;
  }
  code {
    font-family: 'SFMono-Regular', Consolas, monospace;
    font-size: 0.85em;
    overflow-wrap: anywhere;
  }
  p code,
  li code,
  td code {
    background: var(--pale);
    padding: 2px 5px;
    border-radius: 4px;
  }
  pre {
    overflow: auto;
    background: #15234b;
    color: #f3f6ff;
    padding: 25px 30px;
    border-radius: 14px;
    font-size: 1rem;
    line-height: 1.9;
    tab-size: 2;
  }
  pre code {
    overflow-wrap: normal;
  }
  ::selection {
    background: #cddaff;
    color: #15234b;
  }
  .skip-link {
    position: fixed;
    z-index: 10;
    top: -100px;
    left: 20px;
    padding: 12px 24px;
    background: white;
  }
  .skip-link:focus {
    top: 15px;
  }
}

@layer layout {
  .wrap {
    width: min(1256px, calc(100% - 96px));
    margin-inline: auto;
  }
  .site-header {
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }
  .header-inner {
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
  }
  .logo {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-size: 2rem;
    line-height: 1;
    font-weight: 750;
    letter-spacing: -0.08em;
  }
  .logo img {
    width: 34px;
    height: 34px;
  }
  .nav {
    display: flex;
    gap: 30px;
    align-items: center;
  }
  .nav a {
    text-decoration: none;
    font-size: 0.95rem;
  }
  .nav a[aria-current='page'] {
    color: var(--blue);
    text-decoration: underline;
    text-decoration-thickness: 2px;
  }
  .header-note {
    font-size: 0.8rem;
    color: var(--muted);
    padding-left: 24px;
    border-left: 1px solid var(--line);
  }
  .hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 54px;
    align-items: center;
    padding-block: 75px 70px;
    min-height: 720px;
  }
  .hero h1 {
    margin-bottom: 30px;
    color: var(--blue);
  }
  .hero .intro {
    font-size: 1.125rem;
    color: var(--muted);
    max-width: 440px;
  }
  .hero-promise {
    max-width: 440px;
    font-size: 0.95rem;
  }
  .section {
    padding-block: 95px;
  }
  .section-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 50px;
    margin-bottom: 46px;
  }
  .section-head h2 {
    max-width: 640px;
    margin-bottom: 0;
  }
  .section-head > p {
    max-width: 340px;
    color: var(--muted);
    padding-top: 8px;
  }
  .white-section {
    background: white;
  }
  .split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 90px;
    align-items: start;
  }
  .footer {
    padding-block: 40px;
    border-top: 1px solid var(--line);
    font-size: 0.9rem;
  }
  .footer-inner {
    display: flex;
    justify-content: space-between;
    gap: 30px;
    align-items: center;
  }
  .footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
  }
  .page-title {
    padding-block: 65px 50px;
    max-width: 920px;
  }
  .page-title h1 {
    font-size: clamp(3rem, 5vw, 4.7rem);
    margin-bottom: 25px;
    color: var(--blue);
  }
  .page-title > p {
    color: var(--muted);
    font-size: 1.15rem;
  }
  .doc-layout {
    display: grid;
    grid-template-columns: 205px minmax(0, 1fr);
    gap: 65px;
    padding-bottom: 90px;
  }
  .toc {
    position: sticky;
    top: 35px;
    align-self: start;
    border-left: 2px solid var(--line);
  }
  .toc a {
    display: block;
    text-decoration: none;
    padding: 8px 0 8px 20px;
    font-size: 0.92rem;
    color: var(--muted);
  }
  .toc a:hover {
    color: var(--blue);
  }
  .article {
    min-width: 0;
  }
  .article section {
    margin-bottom: 70px;
  }
  .article h2 {
    font-size: 2.35rem;
    margin-top: 12px;
  }
  .article h3 {
    margin-top: 35px;
  }
  .article p,
  .article li {
    max-width: 76ch;
  }
  .article figure {
    margin-block: 28px;
  }
  .article ul,
  .article ol {
    padding-left: 24px;
  }
  .article li {
    padding-left: 6px;
    margin-bottom: 12px;
  }
}

@layer components {
  .pill {
    display: inline-flex;
    align-items: center;
    border: 1px solid #c1cfeb;
    border-radius: 100px;
    padding: 5px 12px;
    font-size: 0.8rem;
    line-height: 1.5;
    margin-bottom: 24px;
    color: #43547a;
    gap: 8px;
  }
  .pill::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--blue);
  }
  .actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    margin-top: 32px;
  }
  .button {
    display: inline-block;
    border-radius: 9px;
    padding: 13px 23px;
    background: var(--blue);
    color: white;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
  }
  .button:hover {
    color: white;
    background: #1736d0;
  }
  .button.light {
    background: white;
    color: var(--blue);
  }
  .text-link {
    font-size: 0.95rem;
    font-weight: 500;
  }
  .hero-foot {
    font-size: 0.8rem;
    color: var(--muted);
    margin-top: 25px;
  }
  .setup-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 80px;
    align-items: center;
  }
  .setup-steps {
    list-style: none;
    counter-reset: setup;
    padding: 0;
    margin: 0;
  }
  .setup-steps li {
    counter-increment: setup;
    position: relative;
    padding: 7px 0 22px 64px;
  }
  .setup-steps li::before {
    content: counter(setup);
    position: absolute;
    left: 0;
    top: 0;
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    border: 1px solid #b9c9fa;
    border-radius: 50%;
    color: var(--blue);
    font-weight: 600;
  }
  .setup-steps p,
  .setup-foot p,
  .offer-grid p {
    color: var(--muted);
    font-size: 0.95rem;
  }
  .laptop-preview {
    border: 1px solid #c9d7ef;
    border-radius: 14px;
    background: var(--pale);
    padding-bottom: 18px;
    overflow: hidden;
  }
  .mac-menubar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 9px 22px;
    border-bottom: 1px solid #c9d7ef;
    background: var(--paper);
    font-size: 0.8rem;
  }
  .menu-drop {
    display: inline-flex;
    gap: 7px;
    align-items: center;
    font-weight: 600;
  }
  .menu-preview {
    margin: 10px 12px 0 40px;
    padding: 20px 22px;
    border: 1px solid #c9d7ef;
    border-radius: 11px;
    background: white;
    box-shadow: 0 10px 24px #15234b0c;
  }
  .menu-preview h3 {
    font-size: 1.15rem;
  }
  .menu-preview .panel-top {
    padding-bottom: 12px;
    margin-bottom: 17px;
  }
  .agent-list {
    list-style: none;
    padding: 0;
    margin: 0;
  }
  .agent-list li {
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 15px;
    border-bottom: 1px solid var(--line);
    padding: 12px 0;
    font-size: 0.9rem;
  }
  .agent-list small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    margin-top: 3px;
  }
  .preview-action {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--blue);
    margin-block: 17px 10px;
  }
  .preview-note {
    font-size: 0.75rem;
    color: var(--muted);
    margin: 0;
  }
  .laptop-preview figcaption {
    margin: 16px 25px 0;
    font-size: 0.75rem;
  }
  .setup-foot {
    margin-top: 35px;
    max-width: 74ch;
  }
  .offer-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 45px;
    margin-bottom: 18px;
  }
  .offer-grid > div {
    border-top: 2px solid var(--line);
    padding-top: 22px;
  }
  .offer-label {
    display: block;
    color: var(--blue);
    font-size: 0.85rem;
    margin-bottom: 20px;
  }
  .exchange {
    position: relative;
    isolation: isolate;
    min-width: 0;
    padding-top: 15px;
  }
  .route-art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 470px;
    z-index: -1;
    overflow: visible;
  }
  .route-art path {
    fill: none;
    stroke: #c9d7fb;
    stroke-width: 2;
  }
  .endpoint {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    font-size: 0.9rem;
    padding-inline: 20px;
    margin-bottom: 27px;
  }
  .person {
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .avatar {
    width: 37px;
    height: 37px;
    background: #dee7ff;
    color: #2548ed;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 0.85rem;
    font-weight: 600;
  }
  .avatar.julie {
    color: #795438;
    background: #f3e8db;
  }
  .person small {
    display: block;
    color: var(--muted);
    font-size: 0.75rem;
    line-height: 1.3;
  }
  .demo-controls {
    margin: 0;
    padding: 0;
    border: 0;
    min-width: 0;
  }
  .demo-controls legend {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    overflow: hidden;
    clip-path: inset(50%);
  }
  .stage-input {
    position: absolute;
    opacity: 0;
    width: 1px;
    height: 1px;
  }
  .stage-views {
    background: white;
    border: 1px solid #d6e1f8;
    border-radius: 21px;
    box-shadow:
      0 24px 70px #1734730d,
      0 4px 8px #17347305;
    min-height: 370px;
    margin: 0 15px;
    overflow: hidden;
  }
  .demo-panel {
    display: none;
    padding: 29px 31px 25px;
  }
  #stage-question:checked ~ .stage-views .panel-question,
  #stage-consent:checked ~ .stage-views .panel-consent,
  #stage-review:checked ~ .stage-views .panel-review,
  #stage-result:checked ~ .stage-views .panel-result {
    display: block;
  }
  .panel-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    font-size: 0.8rem;
    color: var(--muted);
    padding-bottom: 19px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
  }
  .mini-logo {
    color: var(--blue);
    font-weight: 700;
    font-size: 1.25rem;
    letter-spacing: -0.06em;
  }
  .demo-panel h3 {
    font-size: 1.2rem;
    line-height: 1.35;
    margin-bottom: 17px;
    letter-spacing: -0.02em;
  }
  .question {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.65rem;
    line-height: 1.35;
    letter-spacing: -0.03em;
  }
  .demo-detail {
    font-size: 0.875rem;
    color: var(--muted);
    margin-bottom: 15px;
  }
  .demo-fact {
    display: grid;
    grid-template-columns: 18px 1fr;
    gap: 10px;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-block: 10px;
  }
  .demo-fact .check {
    color: var(--green);
    font-weight: bold;
  }
  .status-band {
    font-size: 0.82rem;
    font-weight: 500;
    background: var(--pale);
    border-radius: 7px;
    padding: 10px 13px;
    margin-top: 20px;
    color: var(--blue);
  }
  .status-band.success {
    background: #e7f4ee;
    color: var(--green);
  }
  .step-tabs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
    margin-top: 27px;
  }
  .step-tabs label {
    cursor: pointer;
    padding: 9px 0;
    border-top: 2px solid #c9d7ef;
    font-size: 0.8rem;
    color: var(--muted);
    text-align: center;
  }
  .step-tabs label span {
    display: inline-block;
    margin-right: 4px;
  }
  #stage-question:checked ~ .step-tabs label[for='stage-question'],
  #stage-consent:checked ~ .step-tabs label[for='stage-consent'],
  #stage-review:checked ~ .step-tabs label[for='stage-review'],
  #stage-result:checked ~ .step-tabs label[for='stage-result'] {
    color: var(--blue);
    border-color: var(--blue);
    font-weight: 650;
  }
  #stage-question:focus-visible ~ .step-tabs label[for='stage-question'],
  #stage-consent:focus-visible ~ .step-tabs label[for='stage-consent'],
  #stage-review:focus-visible ~ .step-tabs label[for='stage-review'],
  #stage-result:focus-visible ~ .step-tabs label[for='stage-result'] {
    outline: 3px solid var(--blue);
    outline-offset: 3px;
    border-radius: 4px;
  }
  .demo-caption {
    text-align: center;
    color: var(--muted);
    font-size: 0.75rem;
    margin-top: 14px;
  }
  .principle-strip {
    border-block: 1px solid var(--line);
    padding-block: 23px;
  }
  .strip-inner {
    display: flex;
    gap: 30px;
    justify-content: space-between;
    align-items: center;
    font-size: 0.95rem;
  }
  .strip-inner p {
    margin: 0;
  }
  .strip-inner strong {
    font-weight: 600;
  }
  .strip-inner .muted {
    color: var(--muted);
  }
  .sequence {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 45px;
  }
  .sequence-item {
    padding-top: 22px;
    border-top: 2px solid var(--line);
  }
  .step-number {
    color: var(--blue);
    display: block;
    margin-bottom: 28px;
    font-size: 0.9rem;
  }
  .sequence p {
    color: var(--muted);
    font-size: 0.98rem;
  }
  .capability-row {
    display: grid;
    grid-template-columns: 60px 1fr 1fr;
    gap: 28px;
    align-items: start;
    padding: 33px 0;
    border-top: 1px solid var(--line);
  }
  .capability-row:last-child {
    border-bottom: 1px solid var(--line);
  }
  .capability-symbol {
    width: 49px;
    height: 49px;
    display: grid;
    place-items: center;
    color: var(--blue);
    background: var(--pale);
    border-radius: 14px;
    font-size: 1.6rem;
    font-family: Georgia, serif;
  }
  .capability-row h3 {
    margin-block: 4px 9px;
  }
  .capability-row p {
    font-size: 0.95rem;
    margin-bottom: 0;
    color: var(--muted);
  }
  .capability-row code {
    color: var(--muted);
    font-size: 0.8rem;
  }
  .privacy {
    background: var(--ink);
    color: white;
  }
  .privacy h2 {
    max-width: 600px;
  }
  .privacy p {
    color: #ccd6ee;
  }
  .privacy a {
    color: white;
  }
  .privacy :focus-visible {
    outline-color: white;
  }
  .privacy-points {
    border-left: 1px solid #586686;
    padding-left: 36px;
  }
  .privacy-points h3 {
    font-size: 1.2rem;
    letter-spacing: -0.015em;
    margin-bottom: 9px;
  }
  .privacy-points p {
    font-size: 0.95rem;
    margin-bottom: 27px;
  }
  .progress-callout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 70px;
    align-items: center;
  }
  .milestone-list {
    list-style: none;
    margin: 0;
    padding: 0;
  }
  .milestone-list li {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom: 1px solid var(--line);
    padding: 16px 0;
    font-size: 0.95rem;
  }
  .tag {
    font-size: 0.8rem;
    color: #445678;
    white-space: nowrap;
  }
  .tag.yes {
    color: var(--green);
  }
  .note {
    padding: 22px 26px;
    background: var(--pale);
    border-left: 3px solid var(--blue);
    border-radius: 0 10px 10px 0;
    margin-block: 25px;
  }
  .note p:last-child {
    margin-bottom: 0;
  }
  .note strong {
    color: var(--blue);
  }
  .date {
    color: var(--muted);
    font-size: 0.9rem;
  }
  .table-wrap {
    overflow-x: auto;
    margin-block: 25px;
  }
  table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
    font-size: 0.95rem;
  }
  th {
    font-weight: 600;
    background: var(--pale);
  }
  td,
  th {
    padding: 16px 18px;
    border-bottom: 1px solid var(--line);
    vertical-align: top;
  }
  .metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    margin-block: 10px 45px;
    border-block: 1px solid var(--line);
  }
  .metric {
    padding: 25px 20px;
    border-right: 1px solid var(--line);
  }
  .metric:first-child {
    padding-left: 0;
  }
  .metric:last-child {
    border: 0;
  }
  .metric strong {
    display: block;
    font-size: 2.8rem;
    line-height: 1.2;
    color: var(--blue);
    font-weight: 600;
    letter-spacing: -0.06em;
  }
  .metric span {
    font-size: 0.88rem;
    color: var(--muted);
  }
  details {
    border-block-end: 1px solid var(--line);
    padding-block: 20px;
  }
  summary {
    cursor: pointer;
    font-weight: 600;
    padding-right: 10px;
  }
  details p {
    margin-top: 18px;
    margin-bottom: 0;
    color: var(--muted);
  }
  .source-link {
    display: inline-block;
    font-size: 0.88rem;
    margin-top: 10px;
  }
  .download-row {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    padding-top: 18px;
    font-size: 0.92rem;
  }
  /* T2.6: the real demo in three screens, and the install cards (beta or open). */
  .capture-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 28px;
    margin: 0;
  }
  .capture-row figure {
    margin: 0;
  }
  .capture-row img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    object-position: top;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
  }
  .capture-row figcaption {
    margin-top: 14px;
    font-size: 0.92rem;
    color: var(--muted);
  }
  .capture-row figcaption strong {
    color: var(--ink);
  }
  .install-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
  }
  .install-card {
    padding: 34px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .install-card h3 {
    margin-top: 0;
  }
  .install-card .button {
    margin: 6px 12px 6px 0;
  }
}

@layer responsive {
  @media (min-width: 1500px) {
    .hero {
      gap: 90px;
    }
  }
  @media (max-width: 1000px) {
    .wrap {
      width: calc(100% - 56px);
    }
    .hero {
      gap: 28px;
      padding-block: 55px;
    }
    .header-note {
      display: none;
    }
    .demo-panel {
      padding: 24px;
    }
    .stage-views {
      margin-inline: 0;
    }
    .question {
      font-size: 1.4rem;
    }
    .split,
    .progress-callout,
    .setup-layout {
      gap: 40px;
    }
    .doc-layout {
      grid-template-columns: 160px minmax(0, 1fr);
      gap: 30px;
    }
  }
  @media (max-width: 760px) {
    .wrap {
      width: calc(100% - 40px);
    }
    .capture-row,
    .install-grid {
      grid-template-columns: 1fr;
    }
    .install-card {
      padding: 24px;
    }
    .header-inner {
      min-height: 80px;
      gap: 15px;
    }
    .logo {
      font-size: 1.8rem;
    }
    .logo img {
      width: 28px;
      height: 28px;
    }
    .nav {
      gap: 15px;
    }
    .nav a {
      font-size: 0.8rem;
    }
    .nav .desktop-link {
      display: none;
    }
    .hero {
      grid-template-columns: 1fr;
      gap: 30px;
      min-height: 0;
      padding-block: 42px;
    }
    .hero h1 {
      font-size: clamp(2.8rem, 10vw, 4.5rem);
      max-width: 600px;
    }
    .hero .intro {
      max-width: 530px;
    }
    .hero-foot {
      margin-bottom: 0;
    }
    .exchange {
      max-width: 520px;
      width: 100%;
      margin: 20px auto 0;
    }
    .stage-views {
      min-height: 370px;
    }
    .strip-inner {
      flex-wrap: wrap;
      gap: 6px;
    }
    .section {
      padding-block: 60px;
    }
    .section-head {
      display: block;
      margin-bottom: 32px;
    }
    .section-head > p {
      max-width: 100%;
      padding-top: 25px;
    }
    .sequence {
      grid-template-columns: 1fr;
      gap: 24px;
    }
    .setup-layout,
    .offer-grid {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    .laptop-preview {
      max-width: 520px;
      width: 100%;
      margin-inline: auto;
    }
    .menu-preview {
      margin-left: 20px;
    }
    .setup-steps li {
      padding-left: 58px;
    }
    .step-number {
      margin-bottom: 14px;
    }
    .sequence-item {
      padding-top: 17px;
    }
    .sequence-item p {
      margin-bottom: 0;
    }
    .capability-row {
      grid-template-columns: 45px 1fr;
      gap: 18px;
    }
    .capability-row > p {
      grid-column: 2;
    }
    .capability-symbol {
      width: 40px;
      height: 40px;
      font-size: 1.3rem;
    }
    .split,
    .progress-callout {
      grid-template-columns: 1fr;
      gap: 30px;
    }
    .privacy-points {
      padding-left: 22px;
    }
    .footer-inner {
      align-items: flex-start;
      flex-direction: column;
      gap: 20px;
    }
    .footer-links {
      gap: 18px;
    }
    .page-title {
      padding-block: 45px 25px;
    }
    .page-title h1 {
      font-size: 3rem;
    }
    .doc-layout {
      grid-template-columns: 1fr;
      gap: 35px;
    }
    .toc {
      position: static;
      display: flex;
      flex-wrap: wrap;
      border: 0;
      border-bottom: 1px solid var(--line);
      padding-bottom: 12px;
      column-gap: 18px;
    }
    .toc a {
      padding: 4px 0;
    }
    .article h2 {
      font-size: 2rem;
    }
    .article figure {
      margin-inline: -8px;
    }
    .metrics {
      grid-template-columns: 1fr;
    }
    .metric,
    .metric:first-child {
      padding: 15px 0;
      border-right: 0;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: center;
      gap: 20px;
    }
    .metric strong {
      min-width: 98px;
    }
    td,
    th {
      padding: 12px 10px;
      min-width: 100px;
    }
    pre {
      padding: 20px;
    }
  }
  @media (max-width: 360px) {
    .nav {
      gap: 10px;
    }
    .nav a {
      font-size: 0.75rem;
    }
    .wrap {
      width: calc(100% - 30px);
    }
    .step-tabs label {
      font-size: 0.72rem;
    }
  }
  @media (prefers-reduced-motion: reduce) {
    html {
      scroll-behavior: auto;
    }
  }
  @media print {
    .site-header,
    .footer,
    .toc,
    .actions,
    .skip-link {
      display: none;
    }
    body {
      background: white;
      color: black;
      font-size: 11pt;
    }
    .wrap {
      width: 100%;
    }
    .doc-layout {
      display: block;
    }
    .page-title {
      padding-block: 20px;
    }
    .article section {
      margin-bottom: 30px;
    }
    .note,
    pre,
    figure,
    tr {
      break-inside: avoid;
    }
  }
}
