/* API Pages — Terminal Institutional */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-color: #ffffff;
  color: #000000;
  font-family: 'Courier New', monospace;
  font-size: 15px;
  line-height: 1.8;
  padding: 0;
}

/* === NAV === */
.topnav {
  border-bottom: 1px solid #000;
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 800px;
  margin: 0 auto;
}

.topnav-brand {
  font-size: 13px;
  font-weight: bold;
  letter-spacing: 0.05em;
}

.topnav-brand a {
  color: #000;
  text-decoration: none;
}

.topnav-brand a:hover {
  text-decoration: underline;
}

.topnav-links {
  display: flex;
  gap: 6px;
  font-size: 14px;
}

.topnav-links a {
  color: #000;
  text-decoration: none;
  padding: 2px 6px;
}

.topnav-links a:hover {
  background: #000;
  color: #fff;
}

.topnav-links a.active {
  font-weight: bold;
  text-decoration: underline;
}

.topnav-links .sep {
  color: #ccc;
}

/* === LAYOUT === */
.container {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px 60px;
}

/* === TYPOGRAPHY === */
h1 {
  font-family: 'Courier New', monospace;
  font-size: 24px;
  margin-bottom: 25px;
  font-weight: bold;
  line-height: 1.4;
}

h2 {
  font-family: 'Courier New', monospace;
  font-size: 20px;
  font-weight: bold;
  margin-top: 50px;
  margin-bottom: 20px;
  padding-bottom: 8px;
  border-bottom: 1px solid #000;
}

h3 {
  font-family: 'Courier New', monospace;
  font-size: 17px;
  font-weight: bold;
  margin-top: 30px;
  margin-bottom: 12px;
}

p {
  margin-bottom: 20px;
}

ul,
ol {
  margin: 0 0 20px 22px;
}

li {
  margin-bottom: 6px;
}

a {
  color: #000;
  text-decoration: underline;
}

a:hover {
  background: #000;
  color: #fff;
}

.lead {
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 25px;
}

.secondary {
  color: #666;
  font-size: 14px;
  margin-bottom: 30px;
}

/* === PRODUCT LISTING === */
.product-listing {
  font-size: 14px;
  margin: 20px 0 30px 0;
}

.product-listing .row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

.product-listing .row:last-child {
  border-bottom: 1px solid #000;
}

.product-listing .tag {
  color: #666;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-top: 2px;
}

.product-listing .name {
  font-weight: bold;
}

.product-listing .desc {
  color: #666;
  font-size: 13px;
}

/* === FACTS === */
.facts {
  margin: 25px 0 30px 0;
  font-size: 14px;
}

.facts .row {
  display: grid;
  grid-template-columns: 100px 1fr;
  gap: 12px;
  padding: 4px 0;
}

.facts .label {
  color: #999;
}

/* === CTA === */
.cta-row {
  margin: 30px 0;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.cta-row a {
  background: #000;
  color: #fff;
  padding: 4px 10px;
  text-decoration: none;
  font-size: 14px;
}

.cta-row a:hover {
  background: #fff;
  color: #000;
  outline: 2px solid #000;
}

/* === DIVIDER === */
.zone-divider {
  border: none;
  border-top: 1px solid #000;
  margin: 50px 0;
}

/* === TERMINAL BLOCKS === */
.terminal-block {
  background: #f0f0f0;
  padding: 16px;
  margin: 20px 0;
  font-size: 13px;
  line-height: 1.7;
  border-radius: 3px;
  overflow-x: auto;
}

.terminal-block .pc {
  color: #666;
}

.terminal-block .str {
  font-weight: bold;
}

.terminal-block .cmt {
  color: #999;
  font-style: italic;
}

/* === TABLES === */
.table-wrap {
  overflow-x: auto;
  margin: 20px 0;
  -webkit-overflow-scrolling: touch;
}

table {
  border-collapse: collapse;
  font-size: 13px;
  line-height: 1.5;
  width: 100%;
  min-width: 100%;
  white-space: nowrap;
}

th {
  text-align: left;
  font-weight: bold;
  padding: 8px 10px;
  border-bottom: 2px solid #000;
}

td {
  padding: 6px 10px;
  border-bottom: 1px solid #ddd;
}

tr:last-child td {
  border-bottom: 1px solid #000;
}

code {
  background: #f0f0f0;
  padding: 2px 4px;
  border-radius: 3px;
  font-family: 'Courier New', monospace;
  font-size: 13px;
}

/* === BUNDLE GRID === */
.bundle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.bundle {
  border: 1px solid #000;
  padding: 14px;
}

.bundle h3 {
  margin-top: 0;
  font-size: 15px;
}

.bundle p {
  font-size: 13px;
  color: #666;
  margin-bottom: 10px;
}

.bundle p:last-child {
  margin-bottom: 0;
}

/* === PRICING CARDS === */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0;
}

.pricing-card {
  border: 1px solid #000;
  padding: 16px;
}

.pricing-card .tier {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #666;
  margin-bottom: 6px;
}

.pricing-card h3 {
  margin-top: 0;
  margin-bottom: 8px;
}

.pricing-card .price {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
}

.pricing-card .price .unit {
  font-size: 13px;
  font-weight: normal;
  color: #666;
}

.pricing-card ul {
  margin: 0;
  padding-left: 18px;
  font-size: 13px;
  color: #666;
}

.pricing-card li {
  margin-bottom: 4px;
}

/* === CALLOUT === */
.callout {
  border: 1px solid #000;
  padding: 16px;
  margin: 20px 0;
}

.callout h3 {
  margin-top: 0;
}

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

/* === FOOTER === */
.footer {
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid #000;
  font-size: 12px;
  color: #999;
  display: flex;
  justify-content: space-between;
}

.footer a {
  color: #999;
}

.footer a:hover {
  color: #fff;
}

/* === DOCS LAYOUT (sidebar + content) === */
.docs-shell {
  max-width: 1100px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 0;
  min-height: calc(100vh - 52px);
}

.docs-shell .topnav {
  max-width: 1100px;
}

.docs-sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid #ddd;
  padding: 20px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.docs-sidebar .sidebar-title {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #999;
  margin-bottom: 12px;
}

.docs-sidebar .sidebar-section {
  margin-bottom: 18px;
}

.docs-sidebar .sidebar-section-title {
  font-weight: bold;
  font-size: 13px;
  margin-bottom: 6px;
  padding-bottom: 4px;
  border-bottom: 1px solid #ddd;
}

.docs-sidebar a {
  display: block;
  color: #000;
  text-decoration: none;
  padding: 3px 0;
  font-size: 12px;
  line-height: 1.4;
}

.docs-sidebar a:hover {
  background: #000;
  color: #fff;
  padding-left: 4px;
  padding-right: 4px;
  margin-left: -4px;
}

.docs-sidebar a.active {
  font-weight: bold;
}

.docs-content {
  padding: 40px 30px 60px;
  max-width: 820px;
}

.docs-content .container {
  max-width: none;
  padding: 0;
}

/* Endpoint entry */
.endpoint {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.endpoint:first-child {
  border-top: none;
  padding-top: 0;
}

.endpoint-header {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}

.endpoint-method {
  font-size: 12px;
  font-weight: bold;
  text-transform: uppercase;
  background: #000;
  color: #fff;
  padding: 2px 6px;
  letter-spacing: 0.05em;
  white-space: nowrap;
}

.endpoint-method.post {
  background: #333;
}

.endpoint-path {
  font-size: 15px;
  font-weight: bold;
}

.endpoint-desc {
  color: #666;
  font-size: 14px;
  margin-bottom: 12px;
}

.endpoint-details {
  font-size: 13px;
  margin-bottom: 12px;
}

.endpoint-details dt {
  color: #999;
  float: left;
  width: 90px;
  clear: left;
}

.endpoint-details dd {
  margin-left: 100px;
  margin-bottom: 4px;
}

/* === RESPONSIVE === */
@media (max-width: 900px) {
  .docs-shell {
    grid-template-columns: 1fr;
  }

  .docs-sidebar {
    position: static;
    height: auto;
    border-right: none;
    border-bottom: 1px solid #000;
    padding: 16px 20px;
  }

  .docs-content {
    padding: 30px 20px 60px;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 14px;
  }

  .topnav {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }

  h1 {
    font-size: 20px;
  }

  h2 {
    font-size: 17px;
  }

  h3 {
    font-size: 15px;
  }

  .product-listing .row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .facts .row {
    grid-template-columns: 1fr;
    gap: 2px;
  }

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

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

  table {
    font-size: 11px;
  }

  th, td {
    padding: 4px 6px;
  }
}
