@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  color-scheme: light;
  --ink: #102f52;
  --ink-strong: #082744;
  --muted: #5b6d7f;
  --line: #dbe5ec;
  --paper: #ffffff;
  --wash: #f5f9fb;
  --wash-strong: #eaf4f6;
  --teal: #2498a6;
  --teal-dark: #147985;
  --code-bg: #0b1e31;
  --code-ink: #dcecf3;
  --max-width: 1180px;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI',
    sans-serif;
  background: var(--paper);
  color: var(--ink-strong);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 88% 3%, rgba(36, 152, 166, 0.09), transparent 24rem),
    var(--paper);
  color: var(--ink-strong);
}

a {
  color: inherit;
}

.shell {
  width: min(calc(100% - 3rem), var(--max-width));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid rgba(219, 229, 236, 0.88);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(14px);
}

.header-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand-logo {
  display: block;
  width: 185px;
  height: auto;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 1.55rem;
  font-size: 0.94rem;
  font-weight: 600;
}

.primary-nav a {
  text-decoration: none;
  color: #40556a;
}

.primary-nav a:hover {
  color: var(--ink);
}

.github-link {
  padding-left: 1.55rem;
  border-left: 1px solid var(--line);
}

.hero {
  padding: 7.25rem 0 6.5rem;
  border-bottom: 1px solid var(--line);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(390px, 0.92fr);
  align-items: center;
  gap: clamp(3rem, 8vw, 7.25rem);
}

.eyebrow {
  margin: 0 0 1rem;
  color: var(--teal-dark);
  font-size: 0.77rem;
  font-weight: 700;
  letter-spacing: 0.105em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 1.7rem;
  font-size: clamp(3.25rem, 6.7vw, 6.2rem);
  line-height: 0.98;
  letter-spacing: -0.055em;
  font-weight: 700;
  color: var(--ink-strong);
}

.hero-lede {
  max-width: 690px;
  margin-bottom: 1.65rem;
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  line-height: 1.7;
  color: var(--muted);
}

.maturity {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 2.15rem;
}

.maturity span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.48rem 0.72rem;
  background: var(--wash);
  color: #486074;
  font-size: 0.79rem;
  font-weight: 600;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
}

.button,
.text-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border-radius: 9px;
  padding: 0 1rem;
  font-weight: 700;
  text-decoration: none;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.primary:hover {
  background: #174b78;
}

.button.secondary {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.button.secondary:hover {
  border-color: #a7bac9;
  background: var(--wash);
}

.text-action {
  color: var(--teal-dark);
}

.code-panel {
  overflow: hidden;
  border: 1px solid #153754;
  border-radius: 18px;
  background: var(--code-bg);
  color: var(--code-ink);
  box-shadow: 0 28px 65px rgba(13, 45, 73, 0.16);
}

.code-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #1e3f59;
  padding: 1rem 1.2rem;
  color: #a9c2d3;
  font-size: 0.78rem;
  font-weight: 600;
}

.code-source {
  color: #6ea8ad;
}

pre {
  margin: 0;
  overflow-x: auto;
  padding: 1.55rem 1.7rem 1.25rem;
}

pre code {
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas,
    monospace;
  font-size: 0.88rem;
  line-height: 1.75;
}

.syntax-name {
  color: #79c7d0;
}

.syntax-value {
  color: #f2be7a;
}

.syntax-call {
  color: #9bb7ff;
}

.syntax-string {
  color: #9ed7a8;
}

.code-caption {
  margin: 0;
  border-top: 1px solid #1e3f59;
  padding: 1rem 1.2rem 1.2rem;
  color: #9fb7c9;
  font-size: 0.82rem;
  line-height: 1.6;
}

.code-caption code {
  color: #dbe9ef;
}


/* WEB012: visible, version-independent first-run instructions */
.quickstart {
  padding: 4.5rem 0;
  background: var(--wash);
  scroll-margin-top: 90px;
}
.quickstart-heading { max-width: 750px; margin-bottom: 2rem; }
.quickstart-heading h2 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  letter-spacing: -0.04em;
}
.quickstart-heading p, .quickstart-card p, .quickstart-next {
  color: var(--muted);
  line-height: 1.65;
}
.quickstart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
}
.quickstart-card {
  min-width: 0;
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--paper);
}
.quickstart-card h3 { margin-bottom: 1rem; }
.quickstart-links {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.quickstart-links a, .quickstart-next a {
  color: var(--teal-dark);
  font-weight: 700;
}
.quickstart-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.7rem;
  background: #19374e;
  color: white;
  border-radius: 9px 9px 0 0;
}
.quickstart-toolbar button {
  cursor: pointer;
  background: #d9f2f3;
  color: #123348;
  border: 0;
  border-radius: 5px;
  padding: 0.5rem 0.8rem;
  font-weight: 700;
}
.quickstart-toolbar [data-copy-status] { margin-left: 0.5rem; }
.quickstart button:focus-visible, .quickstart a:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 3px;
}
.quickstart-terminal {
  max-width: 100%;
  overflow-x: auto;
  white-space: pre;
  padding: 1rem;
  border-radius: 0 0 9px 9px;
  background: var(--code-bg);
  color: var(--code-ink);
}
.quickstart-terminal code {
  font-size: 0.74rem;
  line-height: 1.7;
  user-select: text;
}
@media (max-width: 940px) {
  .quickstart-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .quickstart { padding: 3rem 0; }
  .quickstart-card { padding: 1rem; }
  .quickstart-terminal code { font-size: 0.7rem; }
}

.thesis {
  padding: 6.5rem 0;
  background: var(--wash);
}

.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  column-gap: 3rem;
  align-items: end;
  margin-bottom: 3.2rem;
}

.section-heading .eyebrow {
  grid-column: 1 / -1;
}

.section-heading h2,
.model h2,
.next h2 {
  margin-bottom: 0;
  font-size: clamp(2.15rem, 4vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.045em;
}

.section-heading > p:last-child {
  margin-bottom: 0.25rem;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.75;
}

.principle-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid #cfdce4;
}

.principle {
  min-height: 220px;
  padding: 1.75rem 1.55rem 1.5rem 0;
  border-right: 1px solid #cfdce4;
}

.principle:not(:first-child) {
  padding-left: 1.55rem;
}

.principle:last-child {
  border-right: 0;
}

.principle h3 {
  margin-bottom: 0.8rem;
  font-size: 1.04rem;
  line-height: 1.4;
}

.principle p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.model {
  padding: 6.5rem 0;
}

.model-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(3rem, 8vw, 8rem);
  align-items: start;
}

.model-copy {
  padding-top: 1.75rem;
}

.model-copy p {
  margin-bottom: 1.4rem;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.8;
}

.model-copy a {
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.latest-news {
  padding: 6.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--paper);
}

.news-heading {
  margin-bottom: 2.4rem;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.news-card {
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.45rem;
  background: var(--wash);
}

.news-date {
  margin-bottom: 0.8rem;
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}

.news-card h3 {
  margin-bottom: 0.8rem;
  font-size: 1.12rem;
  line-height: 1.4;
}

.news-card h3 a {
  text-decoration: none;
}

.news-card h3 a:hover {
  color: var(--teal-dark);
}

.news-card > p:last-child {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.68;
}

.news-archive-link {
  display: inline-flex;
  margin-top: 1.4rem;
  color: var(--teal-dark);
  font-weight: 700;
  text-decoration: none;
}

.next {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--wash-strong);
}

.next-inner {
  min-height: 290px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}

.next-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.next-actions a {
  min-width: 120px;
  border: 1px solid #c9dce1;
  border-radius: 9px;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.66);
  color: var(--ink);
  font-weight: 700;
  text-align: center;
  text-decoration: none;
}

.next-actions a:hover {
  background: white;
}

footer {
  background: #071d30;
  color: #a9bdcb;
}

.footer-inner {
  min-height: 150px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
}

.footer-inner p {
  max-width: 650px;
  margin: 0;
  font-size: 0.87rem;
  line-height: 1.7;
}

.footer-inner a {
  color: white;
  font-weight: 700;
  text-decoration: none;
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
}

.footer-social-links a:hover {
  text-decoration: underline;
}

.footer-social-links a:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

@media (max-width: 940px) {
  .primary-nav {
    gap: 1rem;
  }

  .github-link {
    padding-left: 1rem;
  }

  .hero {
    padding-top: 5rem;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .code-panel {
    max-width: 680px;
  }

  .principle-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .principle:nth-child(2) {
    border-right: 0;
  }

  .principle:nth-child(3),
  .principle:nth-child(4) {
    border-top: 1px solid #cfdce4;
  }
}

@media (max-width: 760px) {
  .shell {
    width: min(calc(100% - 2rem), var(--max-width));
  }

  .header-inner {
    min-height: 68px;
  }

  .brand-logo {
    width: 150px;
  }

  .github-link {
    border-left: 0;
    padding-left: 0;
  }

  .hero {
    padding: 4.6rem 0 4.4rem;
  }

  .hero-grid {
    gap: 3rem;
  }

  h1 {
    font-size: clamp(3rem, 15vw, 4.6rem);
  }

  .section-heading,
  .model-grid {
    grid-template-columns: 1fr;
  }

  .section-heading {
    gap: 1.2rem;
  }

  .principle-grid {
    grid-template-columns: 1fr;
  }

  .principle,
  .principle:not(:first-child) {
    min-height: auto;
    border-right: 0;
    border-top: 1px solid #cfdce4;
    padding: 1.5rem 0;
  }

  .principle:first-child {
    border-top: 0;
  }

  .thesis,
  .model {
    padding: 4.5rem 0;
  }

  .latest-news {
    padding: 4.5rem 0;
  }

  .next-inner {
    min-height: 320px;
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
    gap: 2.3rem;
  }

  .next-actions {
    width: 100%;
  }

  .next-actions a {
    flex: 1 1 100%;
  }

  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
    justify-content: center;
  }
}

.release-notes {
  margin: 1.25rem 0 0;
  padding-left: 1.1rem;
  max-width: 38rem;
  font-size: 0.9rem;
  line-height: 1.5;
  opacity: 0.85;
}

.release-notes li + li {
  margin-top: 0.35rem;
}


/* WEB011-C3 dynamic project activity */
.project-activity {
  padding: 6.5rem 0;
  border-top: 1px solid var(--line);
  background: var(--wash);
}

.project-activity-heading {
  margin-bottom: 2.4rem;
}

.project-activity-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.2rem;
}

.project-signal {
  min-width: 0;
  padding: 1.6rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.project-signal h3 {
  margin-bottom: 0.9rem;
  font-size: 1.16rem;
}

.project-signal-state {
  min-height: 2rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.project-signal-list {
  display: grid;
  gap: 0.85rem;
  margin: 0 0 1.3rem;
  padding: 0;
  list-style: none;
}

.project-signal-list[hidden] {
  display: none;
}

.project-signal-list li {
  display: grid;
  gap: 0.3rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--line);
}

.project-signal-list a {
  overflow-wrap: anywhere;
  font-weight: 600;
  line-height: 1.5;
  text-decoration: none;
}

.project-signal-list a:hover {
  color: var(--teal-dark);
}

.project-signal-detail {
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}

.project-signal-more {
  display: inline-block;
  color: var(--teal-dark);
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 760px) {
  .project-activity {
    padding: 4.5rem 0;
  }

  .project-activity-grid {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------------------
   Native website additions: accessibility helpers, mobile navigation,
   theme selection, documentation layout and server-rendered catalog.
   ------------------------------------------------------------------------ */

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0.5rem;
  z-index: 50;
  padding: 0.5rem 0.9rem;
  background: var(--paper);
  border: 1px solid var(--line);
}

.skip-link:focus {
  left: 0.5rem;
}

.menu-toggle,
.theme-toggle {
  border: 1px solid var(--line);
  border-radius: 6px;
  background: transparent;
  color: inherit;
  padding: 0.35rem 0.5rem;
  cursor: pointer;
  font: inherit;
}

.menu-toggle,
.theme-toggle:not([data-theme-ready]) {
  display: none;
}

@media (max-width: 760px) {
  .site-header:not([data-menu-ready]) {
    position: static;
  }

  .site-header:not([data-menu-ready]) .header-inner {
    flex-wrap: wrap;
    gap: 0.75rem;
    padding-block: 0.75rem;
  }

  .site-header:not([data-menu-ready]) .primary-nav {
    width: 100%;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
  }

  .site-header[data-menu-ready] .menu-toggle {
    display: inline-flex;
  }

  .site-header[data-menu-ready] .primary-nav {
    display: none;
  }

  .site-header[data-menu-ready][data-menu-open] .primary-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    padding: 1rem 1.5rem;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
  }

}

:root[data-theme='dark'] {
  color-scheme: dark;
  --ink: #d6e4ef;
  --ink-strong: #eef5fa;
  --muted: #9fb2c2;
  --line: #24384a;
  --paper: #0d1a27;
  --wash: #112232;
  --wash-strong: #15293b;
}

:root[data-theme='dark'] body,
:root[data-theme='dark'] .site-header {
  background: var(--paper);
  color: var(--ink-strong);
}

.doc-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 220px;
  gap: 2.5rem;
  padding: 2.5rem 0 4rem;
  align-items: start;
}

.doc-sidebar,
.doc-toc {
  position: sticky;
  top: 96px;
  font-size: 0.92rem;
}

.sidebar-group h2,
.toc h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 1.2rem 0 0.4rem;
}

.sidebar-group ul,
.toc ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar-group a,
.toc a {
  display: block;
  padding: 0.28rem 0;
  text-decoration: none;
  color: var(--ink);
}

.sidebar-group a[aria-current='page'] {
  color: var(--teal-dark);
  font-weight: 600;
}

.toc-level-3 {
  padding-left: 0.9rem;
}

.doc-article {
  min-width: 0;
  color: var(--ink);
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.doc-article h1 {
  font-size: clamp(2rem, 4vw, 2.8rem);
  line-height: 1.15;
  color: var(--ink-strong);
}

.markdown :is(h2, h3, h4, h5, h6) {
  color: var(--ink-strong);
  line-height: 1.35;
  margin: 1.6em 0 0.65em;
}

.markdown blockquote,
.notice {
  margin: 1.25em 0;
  padding: 0.2em 1.2em;
  border-left: 4px solid var(--teal-dark);
  background: var(--wash);
}

.notice-caution {
  border-left-color: #c98a12;
}

.table-scroll {
  max-width: 100%;
  overflow-x: auto;
}

.markdown table,
.doc-article table {
  border-collapse: collapse;
  margin: 1.25em 0;
}

.markdown :is(th, td),
.doc-article :is(th, td) {
  border: 1px solid var(--line);
  padding: 8px 12px;
  min-width: 90px;
}

.markdown th {
  background: var(--wash-strong);
}

.code-block,
.inert-html {
  max-width: 100%;
  overflow-x: auto;
  padding: 1.1rem 1.25rem;
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 8px;
  font: 13px/1.6 'JetBrains Mono', ui-monospace, monospace;
}

.code-block code {
  white-space: pre;
  background: transparent;
  color: inherit;
}

.markdown :not(pre) > code {
  padding: 2px 5px;
  border-radius: 4px;
  background: var(--wash-strong);
  overflow-wrap: anywhere;
}

.task-list-item {
  list-style: none;
}

.image-alt {
  font-style: italic;
  color: var(--muted);
}

.breadcrumbs ol {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  padding: 0;
  font-size: 0.88rem;
  color: var(--muted);
}

.breadcrumbs li + li::before {
  content: '/';
  margin-right: 0.4rem;
}

.provenance {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  gap: 0.2rem 1rem;
  font-size: 0.85rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--wash);
}

.provenance dt {
  font-weight: 600;
}

.provenance dd {
  margin: 0;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  overflow-wrap: anywhere;
}

[data-doc-identity] {
  font: 12px 'JetBrains Mono', ui-monospace, monospace;
  overflow-wrap: anywhere;
  color: var(--muted);
}

.doc-filter {
  display: grid;
  grid-template-columns: auto 1fr auto 1fr auto;
  gap: 0.6rem;
  align-items: center;
  margin: 1.2rem 0;
}

.doc-filter select,
.doc-filter input,
.doc-filter button {
  padding: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  font: inherit;
}

.doc-list {
  list-style: none;
  padding: 0;
  border-top: 1px solid var(--line);
}

.doc-list li {
  border-bottom: 1px solid var(--line);
}

.doc-list a {
  display: block;
  padding: 0.55rem 0.2rem;
  text-decoration: none;
}

.doc-entry-family {
  color: var(--muted);
}

.news-list .news-card {
  margin-bottom: 1rem;
}

footer {
  border-top: 1px solid var(--line);
}

@media (max-width: 1100px) {
  .doc-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .doc-toc {
    display: none;
  }
}

@media (max-width: 760px) {
  .doc-layout {
    grid-template-columns: 1fr;
  }

  .doc-sidebar {
    position: static;
  }

  .doc-filter {
    grid-template-columns: 1fr;
  }
}
