:root {
  color-scheme: light;
  --navy-950: #08263f;
  --navy-900: #0d3454;
  --navy-800: #123f67;
  --blue-600: #2382bd;
  --blue-500: #45a8df;
  --blue-100: #dff3fc;
  --green-600: #3f9e43;
  --green-500: #70d36b;
  --green-100: #e5f8e3;
  --amber-100: #fff5d6;
  --amber-700: #8a5b00;
  --red-100: #fde9e7;
  --red-700: #a12b20;
  --ink: #17222c;
  --muted: #5d6b77;
  --line: #d8e1e8;
  --surface: #ffffff;
  --surface-alt: #f4f7fa;
  --shadow: 0 12px 32px rgba(8, 38, 63, 0.09);
  --radius: 16px;
  --sidebar-width: 270px;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--surface-alt);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: auto;
  color: var(--ink);
  background:
    radial-gradient(circle at 92% 3%, rgba(69, 168, 223, 0.15), transparent 28rem),
    var(--surface-alt);
  font-family: "Segoe UI", Arial, sans-serif;
  line-height: 1.58;
}

a {
  color: #075f9c;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

a:hover {
  color: var(--navy-950);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid rgba(35, 130, 189, 0.35);
  outline-offset: 3px;
}

code,
pre,
.path-value {
  font-family: "Cascadia Mono", Consolas, monospace;
}

code {
  overflow-wrap: anywhere;
}

.site-header {
  position: relative;
  z-index: 20;
  display: flex;
  align-items: center;
  min-height: 82px;
  padding: 10px 22px;
  color: #ffffff;
  background: linear-gradient(125deg, var(--navy-950), var(--navy-800));
  box-shadow: 0 2px 14px rgba(8, 38, 63, 0.24);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #ffffff;
  text-decoration: none;
}

.brand img {
  width: 56px;
  height: 56px;
}

.brand strong,
.brand span {
  display: block;
}

.brand strong {
  font-size: 1.15rem;
  letter-spacing: 0.01em;
}

.brand span {
  color: #cbe9f8;
  font-size: 0.82rem;
}

.header-status {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-left: auto;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 29px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  color: #f6fbff;
  background: rgba(255, 255, 255, 0.09);
  font-size: 0.8rem;
}

.status-pill::before {
  width: 8px;
  height: 8px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--green-500);
  content: "";
}

.menu-button {
  display: none;
  width: 44px;
  height: 44px;
  margin-right: 10px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.09);
  cursor: pointer;
  font-size: 1.25rem;
}

.app-shell {
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  align-items: start;
  min-height: calc(100vh - 82px);
}

.site-sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  min-height: calc(100vh - 82px);
  padding: 18px 12px;
  border-right: 1px solid #cbd8e1;
  background: #eaf1f6;
}

.sidebar-toggle {
  width: 100%;
  margin-bottom: 12px;
  padding: 8px 10px;
  border: 1px solid #b9cbd7;
  border-radius: 10px;
  color: var(--navy-900);
  background: #ffffff;
  cursor: pointer;
  text-align: left;
}

.site-nav {
  display: grid;
  gap: 4px;
}

.site-nav a {
  display: flex;
  align-items: center;
  min-height: 42px;
  padding: 8px 10px;
  border-radius: 10px;
  color: #294454;
  text-decoration: none;
}

.site-nav a::before {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  margin-right: 9px;
  border-radius: 50%;
  background: #7fa8bf;
  content: "";
}

.site-nav a:hover {
  background: #ffffff;
}

.site-nav a[aria-current="page"] {
  color: #ffffff;
  background: var(--navy-800);
  box-shadow: 0 5px 14px rgba(18, 63, 103, 0.18);
}

.site-nav a[aria-current="page"]::before {
  background: var(--green-500);
}

body.sidebar-collapsed {
  --sidebar-width: 76px;
}

body.sidebar-collapsed .nav-label,
body.sidebar-collapsed .sidebar-toggle-label,
body.sidebar-collapsed .sidebar-note {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

body.sidebar-collapsed .site-nav a {
  justify-content: center;
}

body.sidebar-collapsed .site-nav a::before {
  width: 13px;
  height: 13px;
  margin: 0;
}

body.sidebar-collapsed .sidebar-toggle {
  text-align: center;
}

.sidebar-note {
  margin: 20px 8px 0;
  padding-top: 14px;
  border-top: 1px solid #c8d5de;
  color: var(--muted);
  font-size: 0.78rem;
}

.page-main {
  width: min(1180px, calc(100vw - var(--sidebar-width)));
  max-width: 100%;
  padding: 34px 38px 70px;
}

.page-main.wide-page {
  width: max-content;
  min-width: min(1180px, calc(100vw - var(--sidebar-width)));
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--blue-600);
  font-size: 0.79rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  color: var(--navy-950);
  line-height: 1.2;
}

h1 {
  max-width: 900px;
  margin: 0;
  font-size: clamp(2rem, 4.3vw, 3.6rem);
  letter-spacing: -0.035em;
}

h2 {
  margin: 46px 0 15px;
  font-size: clamp(1.4rem, 2.2vw, 2rem);
}

h3 {
  margin: 0 0 8px;
  font-size: 1.08rem;
}

.lead {
  max-width: 880px;
  margin: 18px 0 0;
  color: #3e5261;
  font-size: 1.12rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 34px;
  border: 1px solid #c9dce8;
  border-radius: 24px;
  background: linear-gradient(135deg, #ffffff 30%, #e4f4fc);
  box-shadow: var(--shadow);
}

.hero::after {
  position: absolute;
  right: -82px;
  bottom: -115px;
  width: 290px;
  height: 290px;
  border: 40px solid rgba(112, 211, 107, 0.17);
  border-radius: 50%;
  content: "";
}

.hero > * {
  position: relative;
  z-index: 1;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.button,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 15px;
  border: 1px solid var(--blue-600);
  border-radius: 10px;
  color: #ffffff;
  background: var(--blue-600);
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
}

.button:hover {
  color: #ffffff;
  background: var(--navy-800);
}

.button.secondary {
  color: var(--navy-800);
  background: #ffffff;
}

.button.small {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 0.86rem;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
}

.card {
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 7px 22px rgba(8, 38, 63, 0.05);
}

.card p:last-child,
.callout p:last-child {
  margin-bottom: 0;
}

.metric {
  display: block;
  margin-bottom: 5px;
  color: var(--navy-900);
  font-size: 1.75rem;
  font-weight: 750;
}

.callout {
  margin: 20px 0;
  padding: 16px 18px;
  border-left: 5px solid var(--blue-600);
  border-radius: 8px 14px 14px 8px;
  background: var(--blue-100);
}

.callout.success {
  border-left-color: var(--green-600);
  background: var(--green-100);
}

.callout.warning {
  border-left-color: #e6a900;
  color: #593d00;
  background: var(--amber-100);
}

.callout.danger {
  border-left-color: #d45548;
  color: #6f1f17;
  background: var(--red-100);
}

.path-flow {
  display: grid;
  grid-template-columns: repeat(4, minmax(175px, 1fr));
  gap: 28px;
  margin-top: 18px;
}

.path-node {
  position: relative;
  min-height: 150px;
  padding: 17px;
  border: 1px solid #c9d9e3;
  border-radius: 14px;
  background: #ffffff;
}

.path-node:not(:last-child)::after {
  position: absolute;
  top: 50%;
  right: -23px;
  color: var(--green-600);
  content: "→";
  font-size: 1.5rem;
  font-weight: 800;
  transform: translateY(-50%);
}

.path-label {
  display: block;
  margin-bottom: 8px;
  color: var(--blue-600);
  font-size: 0.72rem;
  font-weight: 750;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.path-value {
  display: block;
  color: var(--navy-950);
  overflow-wrap: anywhere;
  font-size: 0.88rem;
}

.steps {
  display: grid;
  gap: 12px;
  padding: 0;
  counter-reset: step;
  list-style: none;
}

.steps > li {
  position: relative;
  min-height: 72px;
  padding: 16px 18px 16px 70px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
  counter-increment: step;
}

.steps > li::before {
  position: absolute;
  top: 15px;
  left: 16px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: var(--navy-800);
  content: counter(step);
  font-weight: 750;
}

.command-card {
  position: relative;
  margin: 12px 0;
  padding: 14px 112px 14px 15px;
  border: 1px solid #b8cad5;
  border-radius: 11px;
  background: #102d43;
}

.command-card code {
  display: block;
  color: #eaf7ff;
  white-space: pre-wrap;
  word-break: break-word;
}

.copy-button {
  position: absolute;
  top: 9px;
  right: 9px;
  padding: 6px 9px;
  border: 1px solid #7898ac;
  border-radius: 7px;
  color: #ffffff;
  background: #224b67;
  cursor: pointer;
}

.definition-grid {
  display: grid;
  grid-template-columns: minmax(180px, 270px) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #ffffff;
}

.definition-grid dt,
.definition-grid dd {
  margin: 0;
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
}

.definition-grid dt {
  color: var(--navy-900);
  background: #edf4f8;
  font-weight: 700;
}

.definition-grid > :nth-last-child(-n + 2) {
  border-bottom: 0;
}

.calculator {
  display: grid;
  grid-template-columns: minmax(210px, 0.75fr) minmax(320px, 1.5fr);
  gap: 14px;
  padding: 19px;
  border: 1px solid #bcd1de;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.field {
  display: grid;
  gap: 5px;
}

.field.full {
  grid-column: 1 / -1;
}

.field label {
  color: var(--navy-900);
  font-weight: 700;
}

.field input,
.field select {
  width: 100%;
  min-height: 42px;
  padding: 8px 10px;
  border: 1px solid #aebfca;
  border-radius: 8px;
  color: var(--ink);
  background: #ffffff;
  font: inherit;
}

.translation-result {
  min-height: 76px;
  padding: 12px;
  border: 1px dashed #87a9bd;
  border-radius: 9px;
  background: #f5fbfe;
  overflow-wrap: anywhere;
}

.table-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin: 15px 0 9px;
}

.column-picker {
  position: relative;
}

.column-picker summary {
  min-height: 35px;
  padding: 6px 10px;
  border: 1px solid #9eb5c4;
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  list-style: none;
}

.column-picker-panel {
  position: absolute;
  z-index: 8;
  top: 42px;
  left: 0;
  display: grid;
  min-width: 240px;
  gap: 7px;
  padding: 12px;
  border: 1px solid #aebfca;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: var(--shadow);
}

.profile-table {
  width: max-content;
  min-width: 100%;
  border-collapse: collapse;
  border: 1px solid #9fb3c1;
  background: #ffffff;
}

.profile-table th,
.profile-table td {
  max-width: 480px;
  padding: 2px;
  border: 1px solid #b9c7d0;
  vertical-align: top;
  text-align: left;
  overflow-wrap: anywhere;
}

.profile-table th {
  position: relative;
  color: #ffffff;
  background: var(--navy-800);
}

.profile-table th.numeric,
.profile-table td.numeric {
  text-align: right;
}

.sort-button {
  width: calc(100% - 10px);
  min-height: 34px;
  padding: 4px;
  border: 0;
  color: inherit;
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-align: inherit;
}

.resize-handle {
  position: absolute;
  top: 0;
  right: -3px;
  z-index: 3;
  width: 8px;
  height: 100%;
  cursor: col-resize;
}

.profile-table tr:nth-child(even) td {
  background: #f3f7fa;
}

.profile-table code {
  white-space: normal;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #ffffff;
}

.faq-list summary {
  color: var(--navy-900);
  cursor: pointer;
  font-weight: 700;
}

.version-list {
  display: grid;
  gap: 12px;
}

.version-entry {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #ffffff;
}

.site-footer {
  padding: 20px 38px 26px calc(var(--sidebar-width) + 38px);
  border-top: 1px solid #cad6de;
  color: #526571;
  background: #e9f0f4;
  font-size: 0.84rem;
}

.site-footer p {
  max-width: 1000px;
  margin: 4px 0;
}

.noscript {
  margin: 12px;
  padding: 12px;
  border: 2px solid #c34f43;
  background: #ffffff;
}

@media (max-width: 1000px) {
  .path-flow {
    grid-template-columns: repeat(2, minmax(210px, 1fr));
  }

  .path-node::after {
    display: none;
  }
}

@media (max-width: 840px) {
  .header-status {
    display: none;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .app-shell,
  body.sidebar-collapsed .app-shell {
    display: block;
  }

  .site-sidebar {
    position: fixed;
    z-index: 30;
    top: 0;
    left: 0;
    width: 290px;
    min-height: 100vh;
    transform: translateX(-105%);
    transition: transform 160ms ease;
    box-shadow: 14px 0 35px rgba(8, 38, 63, 0.25);
  }

  body.mobile-nav-open .site-sidebar {
    transform: translateX(0);
  }

  .sidebar-toggle {
    display: none;
  }

  .page-main,
  .page-main.wide-page {
    width: 100%;
    min-width: 0;
    padding: 25px 18px 56px;
  }

  .site-footer {
    padding: 18px;
  }

  .hero {
    padding: 24px 20px;
  }

  .calculator,
  .definition-grid {
    grid-template-columns: 1fr;
  }

  .definition-grid dt,
  .definition-grid dd {
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 580px) {
  .site-header {
    padding: 8px 12px;
  }

  .brand img {
    width: 46px;
    height: 46px;
  }

  .brand span {
    display: none;
  }

  .path-flow {
    grid-template-columns: 1fr;
  }

  .command-card {
    padding-right: 15px;
    padding-top: 50px;
  }

  .steps > li {
    padding-left: 60px;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

@media print {
  .site-header,
  .site-sidebar,
  .copy-button,
  .table-toolbar,
  .site-footer {
    display: none !important;
  }

  .app-shell {
    display: block;
  }

  .page-main {
    width: 100%;
    padding: 0;
  }
}
