:root {
  color-scheme: light;
  --paper: #fbfbfa;
  --rail: #161a20;
  --rail-soft: #202630;
  --ink: #17191d;
  --muted: #5f6875;
  --subtle: #eef0f2;
  --line: #d9dde2;
  --line-dark: #3a424d;
  --accent: #0f6b6e;
  --accent-dark: #0a4f52;
  --green: #0b7a55;
  --amber: #9a5b12;
  --red: #b42318;
  --content: 940px;
  font-family: Aptos, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); }
body.is-gallery-lightbox-open { overflow: hidden; }
a { color: var(--accent); text-decoration: none; }
a:hover, a:focus-visible { color: var(--accent-dark); text-decoration: underline; outline: none; }
code { overflow-wrap: anywhere; font-family: "Cascadia Mono", "SFMono-Regular", Consolas, monospace; font-size: 0.92em; }

.site-frame { min-height: 100vh; display: grid; grid-template-columns: 276px minmax(0, 1fr); }
.site-rail { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 24px; padding: 28px 22px; color: #f4f6f8; background: var(--rail); border-right: 1px solid #0e1116; }
.brand-lockup { display: block; padding: 0 0 20px; border-bottom: 1px solid rgba(215,221,229,0.18); color: #fff; }
.brand-lockup:hover, .brand-lockup:focus-visible { text-decoration: none; color: #fff; }
.brand-lockup strong { display: block; color: #f7fafc; font-size: 24px; line-height: 1; }
.primary-menu { display: grid; gap: 2px; }
.primary-menu a { display: block; padding: 10px 12px; border-left: 3px solid transparent; color: #d7dde5; font-weight: 760; }
.primary-menu a:hover, .primary-menu a:focus-visible { border-left-color: #8bd1d3; color: #fff; background: var(--rail-soft); text-decoration: none; }
.rail-copyright { margin: auto 0 0; color: #7f8a98; font-size: 12px; line-height: 1.45; }

.site-main { min-width: 0; }
.content-shell { max-width: var(--content); padding: 44px 48px 30px; }
.content-shell-wide { max-width: 1180px; }

.page-head { margin-bottom: 34px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.kicker { margin: 0 0 12px; color: var(--accent); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; }
h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 820px; margin-bottom: 16px; font-size: 42px; line-height: 1.06; letter-spacing: 0; }
h2 { margin: 0 0 12px; font-size: 25px; line-height: 1.22; letter-spacing: 0; }
h3 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; letter-spacing: 0; }
p, li { line-height: 1.62; }
.lede { max-width: 760px; margin-bottom: 0; color: var(--muted); font-size: 18px; line-height: 1.58; }
.muted { color: var(--muted); }

.workflow-gallery { display: grid; gap: 12px; margin: 28px 0 0; }
.workflow-stage { position: relative; display: grid; border: 1px solid var(--line); background: #111827; }
.workflow-gallery.is-ready .workflow-shot:not(.is-active) { display: none; }
.workflow-shot { margin: 0; background: #111827; }
.workflow-shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: contain; background: #0e1116; cursor: zoom-in; }
.workflow-shot figcaption { display: grid; min-height: 32px; box-sizing: border-box; align-content: center; overflow: hidden; padding: 6px 48px; color: #d2d8e1; font-size: 13px; line-height: 1.2; }
.workflow-shot figcaption strong { color: #fff; font-size: 14px; }
.workflow-arrow { position: absolute; top: calc(50% - 34px); z-index: 2; display: grid; width: 38px; height: 54px; place-items: center; border: 1px solid rgba(255,255,255,0.35); color: #fff; background: rgba(14,17,22,0.76); cursor: pointer; font: inherit; font-size: 36px; line-height: 1; }
.workflow-arrow:hover, .workflow-arrow:focus-visible { background: rgba(10,79,82,0.9); outline: none; }
.workflow-arrow-prev { left: 10px; }
.workflow-arrow-next { right: 10px; }
.workflow-thumbnails { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(82px, 1fr); gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.workflow-thumb { display: block; padding: 0; border: 2px solid transparent; background: #111827; cursor: pointer; }
.workflow-thumb:hover, .workflow-thumb:focus-visible, .workflow-thumb.is-active { border-color: var(--accent); outline: none; }
.workflow-thumb img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; opacity: 0.72; }
.workflow-thumb.is-active img, .workflow-thumb:hover img, .workflow-thumb:focus-visible img { opacity: 1; }
.workflow-lightbox[hidden] { display: none; }
.workflow-lightbox { position: fixed; inset: 0; z-index: 1000; display: grid; grid-template-columns: 54px minmax(0, 1200px) 54px; gap: 14px; align-items: center; justify-content: center; padding: 24px; background: rgba(6, 9, 13, 0.86); }
.workflow-lightbox-figure { display: grid; min-width: 0; max-height: calc(100vh - 48px); margin: 0; border: 1px solid rgba(255,255,255,0.18); background: #111827; box-shadow: 0 24px 70px rgba(0,0,0,0.55); }
.workflow-lightbox-figure img { display: block; width: min(1200px, calc(100vw - 184px)); max-height: calc(100vh - 118px); object-fit: contain; background: #0e1116; }
.workflow-lightbox-figure figcaption { display: grid; min-height: 32px; align-content: center; padding: 6px 14px; color: #d2d8e1; background: #111827; font-size: 14px; line-height: 1.2; }
.workflow-lightbox-figure figcaption strong { color: #fff; }
.workflow-lightbox-arrow, .workflow-lightbox-close { display: grid; place-items: center; border: 1px solid rgba(255,255,255,0.28); color: #fff; background: rgba(17,24,39,0.9); cursor: pointer; font: inherit; line-height: 1; }
.workflow-lightbox-arrow { width: 54px; height: 70px; font-size: 42px; }
.workflow-lightbox-close { position: absolute; top: 18px; right: 18px; width: 42px; height: 42px; font-size: 30px; }
.workflow-lightbox-arrow:hover, .workflow-lightbox-arrow:focus-visible, .workflow-lightbox-close:hover, .workflow-lightbox-close:focus-visible { background: rgba(10,79,82,0.95); outline: none; }

.content-section { margin-top: 34px; }
.rule-section { padding-top: 26px; border-top: 1px solid var(--line); }
.release-notes { padding-top: 18px; border-top: 2px solid var(--ink); }
.release-notes h2 { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--line); }
.release-notes h2:first-child { margin-top: 0; padding-top: 0; border-top: 0; }
.release-notes h3 { margin-top: 18px; }
.release-notes ul { margin: 0 0 18px; padding-left: 22px; }
.section-heading { margin-bottom: 14px; }
.section-heading p { color: var(--muted); }
.split-text { display: grid; grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr); gap: 34px; align-items: start; }
.feature-list, .plain-list { margin: 0; padding: 0; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 170px 1fr; gap: 18px; padding: 14px 0; border-top: 1px solid var(--line); }
.feature-list li:first-child { border-top: 0; }
.feature-list strong { font-size: 15px; }
.feature-list span { color: var(--muted); }
.capability-groups { display: grid; gap: 30px; }
.capability-group { padding-top: 14px; border-top: 2px solid var(--ink); }
.capability-group h3 { margin-bottom: 4px; color: var(--accent-dark); font-size: 17px; text-transform: uppercase; }
.capability-list li { grid-template-columns: 210px 1fr; }
.definition-table { width: 100%; border-collapse: collapse; }
.definition-table th, .definition-table td { padding: 11px 0; border-top: 1px solid var(--line); text-align: left; vertical-align: top; }
.definition-table th { width: 190px; padding-right: 18px; font-size: 14px; }
.definition-table td { color: var(--muted); }

.callout { margin: 22px 0 0; padding: 16px 18px; border-left: 4px solid var(--accent); background: var(--subtle); }
.link-line { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; padding: 0; list-style: none; }
.link-line a, .text-action { display: inline-flex; align-items: center; min-height: 34px; padding: 0 10px; border: 1px solid var(--line); color: var(--accent); background: #fff; font-weight: 780; }
.link-line a:hover, .text-action:hover, .link-line a:focus-visible, .text-action:focus-visible { border-color: var(--accent); text-decoration: none; }
.theme-actions { align-items: center; }
.theme-actions span { color: var(--muted); font-weight: 760; }

.table-frame, .table-scroll { overflow-x: auto; border-top: 2px solid var(--ink); }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
.table-scroll table { min-width: 980px; }
th, td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { color: var(--muted); background: var(--subtle); font-size: 12px; text-transform: uppercase; }
td span { display: block; color: var(--muted); margin-top: 3px; }
.artifact-table td:last-child { width: 80px; text-align: right; }

.plan-table { border-top: 2px solid var(--ink); }
.plan-row { display: grid; grid-template-columns: 28px 1fr 140px 160px; gap: 14px; align-items: start; padding: 15px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.plan-row h3 { margin-bottom: 4px; }
.price { font-size: 22px; font-weight: 900; }
.price-note { color: var(--muted); font-weight: 760; }
.notice { display: flex; gap: 10px; margin-top: 18px; padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.actions { margin-top: 18px; }
.button, button.button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 14px; border: 1px solid var(--accent); color: #fff; background: var(--accent); cursor: pointer; font: inherit; font-weight: 820; }
.button:hover, .button:focus-visible, button.button:hover, button.button:focus-visible { color: #fff; background: var(--accent-dark); text-decoration: none; }

.tutorial { padding: 20px 0; border-top: 1px solid var(--line); }
.tutorial:first-child { border-top: 0; }
.tutorial ol { margin-bottom: 0; padding-left: 22px; }
.faq-list { border-top: 2px solid var(--ink); }
.faq-item { padding: 15px 0; border-bottom: 1px solid var(--line); }
.faq-item summary { cursor: pointer; font-weight: 850; }
.faq-item p { margin: 10px 0 0; color: var(--muted); }
.timeline { margin: 0; padding: 0; list-style: none; border-top: 2px solid var(--ink); }
.timeline li { padding: 17px 0; border-bottom: 1px solid var(--line); }
.timeline p { color: var(--muted); }

.matrix-copy { margin-bottom: 20px; color: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 10px 18px; padding: 0; margin: 0 0 18px; list-style: none; color: var(--muted); font-size: 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 99px; background: #aeb8c5; }
.dot.yes { background: var(--green); }
.dot.partial { background: var(--amber); }
.dot.no { background: var(--red); }
.dot.na { background: #aeb8c5; }
.provider code { display: block; margin-top: 4px; color: var(--muted); }
.section-block + .section-block { margin-top: 32px; }

@media (max-width: 920px) {
  .site-frame { grid-template-columns: 1fr; }
  .site-rail { position: static; height: auto; gap: 18px; }
  .primary-menu { display: flex; flex-wrap: wrap; }
  .primary-menu a { border-left: 0; border-bottom: 3px solid transparent; }
  .content-shell { padding-left: 24px; padding-right: 24px; }
  .split-text, .feature-list li, .plan-row { grid-template-columns: 1fr; }
  h1 { font-size: 34px; }
  .workflow-shot figcaption { min-height: 32px; padding-left: 18px; padding-right: 18px; }
  .workflow-lightbox { grid-template-columns: 38px minmax(0, 1fr) 38px; gap: 8px; padding: 12px; }
  .workflow-lightbox-figure img { width: calc(100vw - 104px); max-height: calc(100vh - 132px); }
  .workflow-lightbox-arrow { width: 38px; height: 58px; font-size: 34px; }
  .workflow-lightbox-close { top: 10px; right: 10px; }
}
