:root {
  color-scheme: light;
  --bg: #f7f8fb;
  --panel: #ffffff;
  --ink: #17202a;
  --muted: #5c6675;
  --line: #d8dde6;
  --teal: #227c7a;
  --teal-dark: #145b5b;
  --coral: #c7523d;
  --code-bg: #eef3f4;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.65;
  letter-spacing: 0;
}

a {
  color: var(--teal-dark);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover,
a:focus-visible {
  color: var(--coral);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 64px;
  padding: 12px 28px;
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.brand img {
  flex: 0 0 auto;
  padding: 4px;
  background: var(--teal);
  border-radius: 6px;
}

.top-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 6px 16px;
}

.top-nav a,
.side-nav a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.top-nav a:hover,
.top-nav a:focus-visible,
.side-nav a:hover,
.side-nav a:focus-visible {
  color: var(--teal-dark);
}

.page-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 40px;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 36px 0 56px;
}

.side-nav {
  position: sticky;
  top: 92px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: fit-content;
  padding: 18px 0;
  border-right: 1px solid var(--line);
}

.content {
  min-width: 0;
  max-width: 880px;
}

.content > :first-child {
  margin-top: 0;
}

.language-switch {
  text-align: right;
}

h1,
h2,
h3,
h4 {
  line-height: 1.25;
}

h1 {
  margin: 0 0 20px;
  font-size: 38px;
}

h2 {
  margin-top: 42px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  font-size: 26px;
}

h3 {
  margin-top: 28px;
  font-size: 20px;
}

p,
li {
  color: #27313f;
}

.lead {
  max-width: 800px;
  color: var(--muted);
  font-size: 19px;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid var(--teal);
  border-radius: 7px;
  color: #ffffff;
  background: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.button.secondary {
  color: var(--teal-dark);
  background: transparent;
}

.button:hover,
.button:focus-visible {
  border-color: var(--coral);
  color: #ffffff;
  background: var(--coral);
}

.button.secondary:hover,
.button.secondary:focus-visible {
  color: #ffffff;
}

.doc-grid,
.release-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin: 22px 0;
}

.doc-card,
.release-card {
  display: block;
  min-height: 126px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-decoration: none;
}

.doc-card strong,
.release-card strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 17px;
}

.doc-card span,
.release-card span {
  color: var(--muted);
}

.doc-card:hover,
.doc-card:focus-visible,
.release-card:hover,
.release-card:focus-visible {
  border-color: rgba(34, 124, 122, 0.42);
  box-shadow: 0 10px 28px rgba(23, 32, 42, 0.08);
}

.content img {
  max-width: 100%;
  height: auto;
}

.screenshot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 22px 0 18px;
}

.screenshot-card {
  display: flex;
  flex-direction: column;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 8px 24px rgba(23, 32, 42, 0.06);
}

.screenshot-card img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: left top;
  background: #121820;
  border-bottom: 1px solid var(--line);
}

.screenshot-card.compact img {
  height: auto;
  padding: 18px;
  object-fit: contain;
  object-position: center;
  background: #1a222c;
}

.screenshot-card figcaption {
  flex: 1;
  padding: 12px 14px 14px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
}

.screenshot-card figcaption strong {
  display: block !important;
  margin-bottom: 4px;
  color: var(--ink);
  font-size: 15px;
}

.media-credit {
  color: var(--muted);
  font-size: 15px;
}

code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--code-bg);
  overflow-wrap: anywhere;
}

pre {
  overflow-x: auto;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #101820;
}

pre code {
  padding: 0;
  color: #f5f7fa;
  background: transparent;
}

table {
  display: block;
  width: 100%;
  overflow-x: auto;
  border-collapse: collapse;
}

table img {
  display: block;
  max-width: min(100%, 460px);
  height: auto;
}

th,
td {
  padding: 9px 12px;
  border: 1px solid var(--line);
}

th {
  background: #edf1f4;
  text-align: left;
}

.site-footer {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 22px 0 34px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 820px) {
  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
  }

  .top-nav {
    justify-content: flex-start;
  }

  .page-shell {
    display: block;
    width: min(100% - 28px, 860px);
    padding-top: 26px;
  }

  .side-nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 26px;
    padding: 0 0 16px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  h1 {
    font-size: 31px;
  }

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