:root {
  --ox-paper: #faf8f4;
  --ox-card: #ffffff;
  --ox-tint: #f2ede3;
  --ox-slate: #141923;
  --ox-slate-2: #1f2737;
  --ox-ink: #1a202c;
  --ox-muted: #4a5568;
  --ox-line: #dfd8cc;
  --ox-crimson: #b51d24;
  --ox-crimson-hover: #8f141a;
  --ox-amber: #b45309;
  --ox-amber-bg: #fef3c7;
  --ox-teal: #0f766e;
  --ox-teal-bg: #e6f4f1;
  --ox-radius: 12px;
  --ox-shadow: 0 2px 10px rgba(20, 25, 35, 0.06);
  --ox-max: 1120px;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.66;
  color: var(--ox-ink);
  background: var(--ox-paper);
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: var(--ox-crimson);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--ox-crimson-hover);
}

a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid #d97706;
  outline-offset: 2px;
}

.ox-skip {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--ox-slate);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  font-weight: 600;
  text-decoration: none;
}

.ox-skip:focus {
  left: 12px;
  top: 12px;
  border-radius: 6px;
}

.ox-wrap {
  width: min(100% - 32px, var(--ox-max));
  margin-inline: auto;
}

.ox-top {
  background: var(--ox-slate);
  color: #f8fafc;
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--ox-crimson);
}

.ox-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 64px;
  padding-block: 8px;
}

.ox-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
  letter-spacing: -0.01em;
  flex-shrink: 0;
}

.ox-brand img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: #0b0d13;
}

.ox-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.ox-brand-sub {
  font-size: 11px;
  font-weight: 600;
  color: #fbbf24;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.ox-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.ox-nav a {
  color: #e2e8f0;
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  padding: 8px 11px;
  border-radius: 7px;
  white-space: nowrap;
}

.ox-nav a:hover, .ox-nav a[aria-current="page"] {
  background: var(--ox-slate-2);
  color: #fff;
}

.ox-nav a[aria-current="page"] {
  box-shadow: inset 0 -2px 0 #fbbf24;
}

.ox-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.ox-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 18px;
  border-radius: 8px;
  background: var(--ox-crimson);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border: 1px solid rgba(255,255,255,0.12);
  transition: background 0.15s ease;
  white-space: nowrap;
}

.ox-btn:hover {
  background: var(--ox-crimson-hover);
  color: #fff;
}

.ox-btn-alt {
  background: var(--ox-card);
  color: var(--ox-ink);
  border: 1px solid var(--ox-line);
}

.ox-btn-alt:hover {
  background: var(--ox-tint);
  color: var(--ox-ink);
}

.ox-drawer-btn {
  display: none;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid #475569;
  background: var(--ox-slate-2);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
}

.ox-strip {
  background: #fdf6e9;
  border-bottom: 1px solid var(--ox-line);
  font-size: 13.5px;
  color: var(--ox-ink);
}

.ox-strip-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 16px;
  padding-block: 8px;
}

.ox-strip strong {
  color: var(--ox-crimson);
}

.ox-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 30px;
  padding-block: 26px 46px;
  align-items: start;
}

.ox-main {
  min-width: 0;
}

.ox-crumb {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 13px;
  color: var(--ox-muted);
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}

.ox-crumb li + li::before {
  content: "/";
  margin-right: 6px;
  color: #94a3b8;
}

.ox-hero {
  background: var(--ox-card);
  border: 1px solid var(--ox-line);
  border-radius: var(--ox-radius);
  padding: 24px;
  box-shadow: var(--ox-shadow);
  margin-bottom: 24px;
}

.ox-kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ox-amber);
  background: var(--ox-amber-bg);
  padding: 3px 10px;
  border-radius: 99px;
  margin-bottom: 10px;
}

.ox-kicker-teal {
  color: var(--ox-teal);
  background: var(--ox-teal-bg);
}

h1 {
  margin: 0 0 12px;
  font-size: clamp(1.65rem, 2.5vw + 0.85rem, 2.25rem);
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--ox-slate);
}

h2 {
  margin: 28px 0 10px;
  font-size: clamp(1.25rem, 1.3vw + 0.75rem, 1.55rem);
  line-height: 1.28;
  color: var(--ox-slate);
  border-bottom: 2px solid var(--ox-tint);
  padding-bottom: 6px;
}

h3 {
  margin: 20px 0 8px;
  font-size: 1.1rem;
  color: var(--ox-slate);
}

.ox-lead {
  font-size: 1.07rem;
  color: #2d3748;
  margin: 0 0 16px;
}

.ox-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 14px;
}

.ox-meta {
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ox-muted);
}

.ox-fig {
  margin: 18px 0;
  background: var(--ox-card);
  border: 1px solid var(--ox-line);
  border-radius: var(--ox-radius);
  overflow: hidden;
  box-shadow: var(--ox-shadow);
}

.ox-fig img {
  width: 100%;
  height: auto;
}

.ox-fig figcaption {
  padding: 10px 14px;
  font-size: 13px;
  color: var(--ox-muted);
  background: var(--ox-tint);
  border-top: 1px solid var(--ox-line);
}

.ox-panel {
  background: var(--ox-card);
  border: 1px solid var(--ox-line);
  border-radius: var(--ox-radius);
  padding: 20px 22px;
  margin-bottom: 20px;
  box-shadow: var(--ox-shadow);
}

.ox-call {
  background: #fffbeb;
  border-left: 4px solid #d97706;
  border-radius: 0 10px 10px 0;
  padding: 14px 16px;
  margin: 18px 0;
  font-size: 15px;
}

.ox-call strong {
  color: #92400e;
}

.ox-call-teal {
  background: #f0fdfa;
  border-left-color: var(--ox-teal);
}

.ox-call-teal strong {
  color: var(--ox-teal);
}

.ox-steps {
  margin: 14px 0;
  padding-left: 20px;
}

.ox-steps li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.ox-scroll {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--ox-line);
  border-radius: 10px;
  background: var(--ox-card);
  margin: 14px 0 20px;
}

.ox-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
  font-size: 14.5px;
}

.ox-table th, .ox-table td {
  padding: 11px 14px;
  text-align: left;
  border-bottom: 1px solid var(--ox-line);
  vertical-align: top;
}

.ox-table th {
  background: var(--ox-tint);
  font-weight: 700;
  color: var(--ox-slate);
}

.ox-table tr:last-child td {
  border-bottom: 0;
}

.ox-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 14px;
  margin: 14px 0 20px;
}

.ox-card {
  background: var(--ox-card);
  border: 1px solid var(--ox-line);
  border-radius: 10px;
  padding: 16px;
  box-shadow: var(--ox-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
}

.ox-card h3 {
  margin: 0;
  font-size: 1rem;
}

.ox-card p {
  margin: 0;
  font-size: 14px;
  color: var(--ox-muted);
}

.ox-qa {
  background: var(--ox-card);
  border: 1px solid var(--ox-line);
  border-radius: 10px;
  margin-bottom: 10px;
  overflow: hidden;
}

.ox-qa summary {
  padding: 14px 18px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  color: var(--ox-slate);
}

.ox-qa summary::-webkit-details-marker {
  display: none;
}

.ox-qa summary::after {
  content: "+";
  font-size: 18px;
  color: var(--ox-crimson);
  font-weight: 700;
  flex-shrink: 0;
}

.ox-qa[open] summary::after {
  content: "−";
}

.ox-qa-body {
  padding: 0 18px 15px;
  font-size: 15px;
  color: #2d3748;
  border-top: 1px solid var(--ox-tint);
}

.ox-rail {
  position: sticky;
  top: 84px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.ox-rail-box {
  background: var(--ox-card);
  border: 1px solid var(--ox-line);
  border-radius: var(--ox-radius);
  padding: 18px;
  box-shadow: var(--ox-shadow);
}

.ox-rail-box h2 {
  font-size: 1.02rem;
  margin: 0 0 10px;
  border-bottom: 1px solid var(--ox-line);
  padding-bottom: 8px;
}

.ox-kv {
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 14px;
}

.ox-kv li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px dashed var(--ox-line);
}

.ox-kv li:last-child {
  border-bottom: 0;
}

.ox-kv span {
  color: var(--ox-muted);
}

.ox-kv strong {
  text-align: right;
  color: var(--ox-slate);
}

.ox-linklist {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.ox-linklist a {
  display: block;
  padding: 6px 8px;
  border-radius: 6px;
  text-decoration: none;
  background: var(--ox-tint);
  color: var(--ox-ink);
  font-weight: 600;
}

.ox-linklist a:hover {
  background: #e7dfd1;
}

.ox-foot {
  background: var(--ox-slate);
  color: #cbd5e1;
  padding: 34px 0 28px;
  margin-top: 24px;
  font-size: 13.5px;
}

.ox-foot a {
  color: #f8fafc;
}

.ox-foot-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 22px;
  margin-bottom: 22px;
}

.ox-foot h3 {
  color: #fbbf24;
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 10px;
}

.ox-foot ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.ox-foot-note {
  border-top: 1px solid #2d3748;
  padding-top: 16px;
  font-size: 12.5px;
  color: #94a3b8;
}

@media (max-width: 900px) {
  .ox-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 22px;
  }
  .ox-rail {
    position: static;
  }
  .ox-drawer-btn {
    display: inline-flex;
  }
  .ox-nav {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    background: var(--ox-slate);
    border-bottom: 2px solid var(--ox-crimson);
    flex-direction: column;
    align-items: stretch;
    padding: 10px 16px 16px;
    gap: 4px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
  }
  .ox-nav.is-open {
    display: flex;
  }
  .ox-nav a {
    padding: 11px 12px;
  }
}

@media (max-width: 520px) {
  .ox-hero, .ox-panel {
    padding: 16px;
  }
  .ox-actions .ox-btn {
    padding: 8px 12px;
    font-size: 13px;
  }
}
