/* Shared RustWRT visual system from package-site/src/styles/global.css. */
/* manrope-cyrillic-ext-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(./assets/manrope/manrope-cyrillic-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0460-052F,U+1C80-1C8A,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F;
}

/* manrope-cyrillic-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(./assets/manrope/manrope-cyrillic-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116;
}

/* manrope-greek-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(./assets/manrope/manrope-greek-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF;
}

/* manrope-vietnamese-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(./assets/manrope/manrope-vietnamese-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB;
}

/* manrope-latin-ext-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(./assets/manrope/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}

/* manrope-latin-wght-normal */
@font-face {
  font-family: 'Manrope Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(./assets/manrope/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --ink: #172e45;
  --muted: #506478;
  --line: #d5dfe8;
  --accent: #006f65;
  --accent-hover: #00594f;
  --soft: #e7f3f0;
  --warn: #885018;
  --warn-bg: #fff4e1;
  --code: #eef2f6;
  font-family: "Manrope Variable", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-size: 16px;
  line-height: 1.65;
}
main {
  flex: 1;
  min-width: 0;
}
.shell {
  width: min(1180px, 100% - 48px);
  margin-inline: auto;
}
.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.header-inner,
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--ink);
  font-weight: 800;
  font-size: 20px;
  line-height: 1.2;
  flex-shrink: 0;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  margin-top: 3px;
}
nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
}
nav a,
.github-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 700;
}
nav a[aria-current="page"] {
  color: var(--accent);
  box-shadow: inset 0 -2px var(--accent);
}
.github-link {
  color: var(--ink);
}
a {
  color: var(--accent);
  text-underline-offset: 3px;
}
a:hover {
  color: var(--accent-hover);
}
:focus-visible {
  outline: 3px solid #007e72;
  outline-offset: 3px;
  border-radius: 3px;
}
::selection {
  background: #bce4dc;
  color: var(--ink);
}
.content {
  padding-block: 52px 72px;
}
.hero {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding-block: 64px;
}
.hero-inner {
  display: block;
}
h1,
h2,
h3 {
  font-weight: 800;
  line-height: 1.19;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(2rem, 4.8vw, 3.7rem);
  max-width: 18ch;
  margin: 0 0 20px;
}
h2 {
  font-size: clamp(1.35rem, 2.6vw, 1.8rem);
  margin: 0 0 14px;
}
h3 {
  font-size: 1.1rem;
  margin: 0 0 8px;
}
p {
  margin: 0 0 14px;
  max-width: 72ch;
}
.lead {
  color: var(--muted);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 58ch;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}
.actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 25px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 9px 16px;
  border: 1px solid var(--accent);
  border-radius: 8px;
  background: var(--accent);
  color: white;
  text-decoration: none;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.button:hover {
  background: var(--accent-hover);
  color: white;
}
.button.secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}
.button.secondary:hover {
  background: var(--soft);
}
.button:disabled {
  cursor: not-allowed;
  opacity: 0.65;
}
.section {
  margin-top: 44px;
}
.section:first-child {
  margin-top: 0;
}
.section-heading {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.section-heading h2 {
  margin: 0;
}
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  min-width: 0;
}
.panel-pad {
  padding: 23px;
}
.project-row,
.package-row,
.repo-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 19px 22px;
  border-bottom: 1px solid var(--line);
}
.project-row:last-child,
.package-row:last-child,
.repo-row:last-child {
  border-bottom: 0;
}
.project-row > div,
.package-row > div:first-child,
.repo-row > div:first-child {
  flex: 1;
  min-width: 0;
}
.project-row h3,
.package-row h3 {
  margin: 0 0 5px;
}
.project-row p,
.package-row p,
.repo-row p {
  margin: 0;
}
.project-row h3 a,
.package-row h3 a {
  text-decoration: none;
  color: var(--ink);
}
.project-row h3 a:hover,
.package-row h3 a:hover {
  text-decoration: underline;
  color: var(--accent);
}
.pill {
  display: inline-flex;
  align-items: center;
  font-size: 0.79rem;
  font-weight: 750;
  background: var(--code);
  color: var(--muted);
  border-radius: 6px;
  padding: 4px 9px;
  white-space: nowrap;
}
.pill.ready {
  background: var(--soft);
  color: var(--accent);
}
.pill.warn {
  background: var(--warn-bg);
  color: var(--warn);
}
.version {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  font-size: 13px;
  color: var(--muted);
}
.grid-two {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.notice {
  padding: 15px 19px;
  background: var(--warn-bg);
  color: var(--warn);
  border: 1px solid #e9d3b1;
  border-radius: 9px;
  margin: 15px 0;
}
.notice p {
  margin: 0;
}
.field-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-weight: 700;
  font-size: 14px;
  min-width: 0;
}
input,
select {
  background: var(--surface);
  color: var(--ink);
  border: 1px solid #aebfce;
  border-radius: 7px;
  min-height: 44px;
  padding: 9px 11px;
  width: 100%;
  font: inherit;
}
input::placeholder {
  color: var(--muted);
  opacity: 1;
}
.toolbar {
  display: flex;
  align-items: end;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 15px;
}
.toolbar .field:first-child {
  flex: 2 1 240px;
}
.toolbar .field {
  flex: 1 1 150px;
}
pre,
.code-output {
  background: var(--code);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  overflow-x: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 12px 0;
}
code {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 0.87em;
  overflow-wrap: anywhere;
}
ul,
ol {
  padding-left: 24px;
  margin: 10px 0 18px;
}
ul {
  list-style: disc;
}
ol {
  list-style: decimal;
}
li {
  padding-bottom: 4px;
}
.meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 20px;
}
.breadcrumb {
  margin-bottom: 18px;
  display: inline-block;
}
.prose {
  max-width: 800px;
}
.prose h2 {
  margin-top: 34px;
}
.table-wrap {
  overflow-x: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 14px;
}
th,
td {
  padding: 13px 17px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
th {
  background: var(--code);
  color: var(--muted);
  font-size: 13px;
}
td:first-child {
  overflow-wrap: anywhere;
  min-width: 200px;
}
tr:last-child td {
  border-bottom: 0;
}
.site-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 14px;
}
.footer-inner {
  align-items: flex-start;
  padding-block: 26px;
}
.footer-inner strong {
  color: var(--ink);
  font-size: 17px;
}
.footer-inner p {
  margin: 4px 0;
}
.footer-inner > div:last-child {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.skip-link {
  position: absolute;
  left: -9999px;
}
.skip-link:focus {
  left: 12px;
  top: 8px;
  z-index: 10;
  background: white;
  padding: 10px;
}
[hidden] {
  display: none !important;
}
@media (max-width: 760px) {
  .shell {
    width: calc(100% - 32px);
  }
  .header-inner {
    flex-wrap: wrap;
    gap: 8px 20px;
    padding-block: 13px;
  }
  nav {
    order: 3;
    width: 100%;
    gap: 6px 18px;
  }
  .hero {
    padding-block: 38px;
  }
  .grid-two,
  .field-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .content {
    padding-block: 32px 44px;
  }
  .project-row,
  .package-row,
  .repo-row {
    padding: 15px;
    flex-wrap: wrap;
    gap: 10px;
    align-items: flex-start;
  }
  .project-row > div,
  .package-row > div:first-child,
  .repo-row > div:first-child {
    flex: 1 1 100%;
  }
  .panel-pad {
    padding: 17px;
  }
  .footer-inner {
    flex-direction: column;
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}

.header-tools {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.language-switch {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 2px;
  gap: 2px;
}
.language-switch a {
  display: inline-flex;
  min-width: 35px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 800;
  border-radius: 5px;
}
.language-switch a[aria-current="true"] {
  color: var(--accent);
  background: var(--soft);
}
@media (max-width: 380px) {
  .header-inner {
    gap: 8px;
  }
  .header-tools {
    gap: 8px;
  }
  .brand {
    gap: 7px;
    font-size: 18px;
  }
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 18px 0 0;
  width: 100%;
}
.pagination .page-numbers {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.pagination button {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  border-radius: 6px;
  min-height: 40px;
  min-width: 40px;
  padding: 7px 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.pagination button[aria-current="page"] {
  background: var(--soft);
  color: var(--accent);
  border-color: var(--accent);
}
.pagination button:disabled {
  opacity: 0.45;
  cursor: default;
}
.pagination button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.pagination .page-info {
  flex-basis: 100%;
  text-align: center;
}

.asset-mobile-label {
  display: none;
}
@media (max-width: 760px) {
  #asset-table {
    overflow-x: visible;
  }
  #asset-table table,
  #asset-table tbody {
    display: block;
    width: 100%;
  }
  #asset-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
  #asset-table tr {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.2fr) minmax(0, 0.8fr);
    gap: 8px 12px;
    padding: 14px 16px;
    border-bottom: 1px solid var(--line);
  }
  #asset-table tr:last-child {
    border-bottom: 0;
  }
  #asset-table td {
    display: block;
    min-width: 0;
    border: 0;
    padding: 0;
    overflow-wrap: anywhere;
  }
  #asset-table td:first-child {
    grid-column: 1/-1;
    min-width: 0;
    font-weight: 600;
  }
  #asset-table td:not(:first-child) {
    font-size: 13px;
  }
  #asset-table .asset-mobile-label {
    display: block;
    font-size: 11px;
    color: var(--muted);
    margin-bottom: 2px;
  }
}
