/* Fundamental Data SEO pages — matches template_1 styling */
/* Sits on top of Bootstrap 4.6 + Azia (FirstRate Data theme) */

/* Page-level wrapper */
.fd-doc {
  font-size: 14px;
  color: #1c2237;
}

/* Breadcrumb + page title */
.fd-breadcrumb {
  margin: 0 0 14px 0;
  font-size: 9pt;
  color: #5a6271;
}

.fd-breadcrumb a {
  color: #6772E5;
  text-decoration: none;
}

.fd-breadcrumb a:hover {
  text-decoration: underline;
}

h1.fd-page-title {
  font-size: 23pt;
  color: #1c2237;
  margin: 25px 0 12px 0;
  font-weight: 700;
}

/* Pricing box — floated top-right of the doc */
.fd-pricing-box {
  float: right;
  width: 220px;
  margin: 0 0 18px 28px;
  padding: 16px 18px;
  border: 1px solid #6772E5;
  border-radius: 6px;
  background: #f7f8fe;
  box-sizing: border-box;
}

.fd-pricing-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #6772E5;
  margin-bottom: 10px;
}

.fd-pricing-row {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.fd-pricing-row + .fd-pricing-row {
  margin-top: 6px;
}

.fd-pricing-amount {
  font-size: 19pt;
  font-weight: 700;
  color: #1c2237;
  line-height: 1.1;
}

.fd-pricing-unit {
  font-size: 12px;
  color: #5a6271;
}

@media (max-width: 575px) {
  .fd-pricing-box {
    float: none;
    width: 100%;
    margin: 0 0 18px 0;
  }
}

h2.fd-section,
h5.fd-cat-header {
  font-size: 17pt;
  font-weight: 700;
  margin: 30px 0 14px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid #6772E5;
  color: #1c2237;
}

h6.fd-field-h {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #5a6271;
  margin: 16px 0 8px 0;
}

/* Intro paragraphs (SEO copy) */
.fd-intro {
  font-size: 14px;
  line-height: 1.7;
  color: #1c2237;
  margin-bottom: 14px;
}

/* Intro block — Base URL / Auth / Formats */
.fd-intro-block {
  background: #f8f9fb;
  border-left: 3px solid #6772E5;
  padding: 14px 18px;
  margin: 18px 0 24px 0;
  font-size: 13px;
  color: #1c2237;
  line-height: 1.6;
}

.fd-intro-block code {
  background: #eef0f5;
  padding: 1px 5px;
  border-radius: 2px;
  font-size: 12px;
  color: #1c2237;
  font-family: 'Menlo', 'Consolas', monospace;
}

/* Endpoint card */
.fd-endpoint {
  background: #fff;
  border: 1px solid #cdd4e0;
  border-radius: 4px;
  padding: 18px 20px;
  margin-bottom: 18px;
}

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

.fd-method {
  background: #6772E5;
  color: #fff;
  font-weight: 700;
  font-size: 11px;
  padding: 3px 9px;
  border-radius: 3px;
  letter-spacing: 0.5px;
}

.fd-path {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 13px;
  color: #1c2237;
  word-break: break-all;
}

.fd-endpoint-desc {
  color: #5a6271;
  margin-bottom: 14px;
  line-height: 1.55;
  font-size: 13px;
}

/* Params row — Execute button is a grid cell */
.fd-params-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
  align-items: end;
}

.fd-params-row label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #1c2237;
  margin-bottom: 4px;
}

.fd-req {
  color: #d9534f;
  font-weight: 700;
  font-size: 10px;
  margin-left: 4px;
  text-transform: lowercase;
}

.fd-opt {
  color: #8a93a6;
  font-weight: 500;
  font-size: 10px;
  margin-left: 4px;
  text-transform: lowercase;
}

.fd-params-row input,
.fd-params-row select {
  width: 100%;
  padding: 7px 9px;
  border: 1px solid #cdd4e0;
  border-radius: 3px;
  font-size: 13px;
  background: #fff;
  color: #1c2237;
  font-family: inherit;
  height: 34px;
  box-sizing: border-box;
}

.fd-params-row input:disabled {
  background: #f4f5f7;
  color: #5a6271;
  cursor: not-allowed;
}

.fd-params-row input:focus,
.fd-params-row select:focus {
  outline: none;
  border-color: #6772E5;
}

/* Execute button cell */
.fd-action-cell {
  display: flex;
  align-items: flex-end;
}

.fd-btn-exec {
  background: #6772E5;
  border: none;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  padding: 8px 22px;
  border-radius: 3px;
  cursor: pointer;
  font-family: inherit;
  height: 34px;
  white-space: nowrap;
  width: 185px;
}

.fd-btn-exec:hover:not(:disabled) {
  background: #525bd0;
}

.fd-btn-exec:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* URL preview — hidden until populated */
.fd-url-preview {
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  background: #f4f5f7;
  border: 1px solid #cdd4e0;
  border-radius: 3px;
  padding: 8px 10px;
  margin: 10px 0;
  color: #1c2237;
  word-break: break-all;
  display: none;
  line-height: 1.5;
}

.fd-url-preview.fd-visible {
  display: none;
}

/* Response area — dark */
.fd-response {
  background: #1c2237;
  color: #c8d3e0;
  border-radius: 3px;
  padding: 12px;
  margin-top: 10px;
  max-height: 380px;
  overflow: auto;
  font-family: 'Menlo', 'Consolas', monospace;
  font-size: 12px;
  line-height: 1.5;
  white-space: pre-wrap;
}

.fd-response pre {
  color: #c8d3e0;
  margin: 0;
  white-space: pre-wrap;
  font-family: inherit;
  font-size: inherit;
}

.fd-response.fd-placeholder {
  color: #8a93a6;
  font-style: italic;
  font-family: inherit;
  font-size: 13px;
  white-space: normal;
}

.fd-response.fd-error {
  color: #ff6b6b;
}

.fd-response-meta {
  display: block;
  font-size: 11px;
  color: #8a93a6;
  margin-bottom: 6px;
  font-family: inherit;
}

.fd-response-meta .fd-status {
  font-weight: 700;
  color: #82e0aa;
  margin-right: 8px;
}

.fd-response-meta .fd-status.fd-error {
  color: #ff6b6b;
}

/* JSON syntax tokens */
.fd-json-key { color: #82c8ff; }
.fd-json-str { color: #b8e6a8; }
.fd-json-num { color: #d8b8ff; }
.fd-json-bool { color: #ffd479; }
.fd-json-null { color: #8a93a6; }

/* Field tables */
.fd-fields-tbl {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-bottom: 4px;
}

.fd-fields-tbl thead th {
  background: #f4f5f7;
  text-align: left;
  padding: 8px 10px;
  font-weight: 600;
  color: #1c2237;
  border-bottom: 1px solid #cdd4e0;
  font-size: 12px;
}

.fd-fields-tbl tbody td {
  padding: 7px 10px;
  border-bottom: 1px solid #ebeef3;
  color: #5a6271;
  vertical-align: top;
}

.fd-fields-tbl td.fd-fld {
  font-family: 'Menlo', 'Consolas', monospace;
  color: #6772E5;
  font-size: 12px;
  white-space: nowrap;
}

.fd-fields-tbl td.fd-loc {
  font-size: 11px;
  color: #8a93a6;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* Category group row within a field table */
.fd-fields-tbl tr.fd-fld-group td {
  background: #eef0f6;
  color: #1c2237;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 6px 10px;
}

/* Scrollable wrapper for long field listings */
.fd-fields-scroll {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid #cdd4e0;
  border-radius: 4px;
}

.fd-fields-scroll .fd-fields-tbl {
  margin-bottom: 0;
}

.fd-fields-scroll .fd-fields-tbl thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

/* Use cases list */
.fd-uses {
  font-size: 13px;
  line-height: 1.8;
  color: #1c2237;
  padding-left: 22px;
  margin: 8px 0 0 0;
}

.fd-uses li {
  margin-bottom: 4px;
}

.fd-uses strong {
  color: #1c2237;
}

/* CTA strip */
.fd-cta {
  background: #6772E5;
  color: #fff;
  padding: 22px 26px;
  border-radius: 4px;
  margin: 32px 0 12px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.fd-cta-text {
  flex: 1;
  min-width: 240px;
}

.fd-cta h3 {
  margin: 0 0 4px 0;
  color: #fff;
  font-size: 16pt;
  font-weight: 700;
}

.fd-cta p {
  margin: 0;
  color: #d8dbf5;
  font-size: 13px;
}

.fd-cta-btn {
  background: #fff;
  color: #6772E5;
  font-weight: 600;
  font-size: 13px;
  padding: 9px 22px;
  border-radius: 3px;
  border: none;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
}

.fd-cta-btn:hover {
  background: #eef0f5;
  color: #525bd0;
  text-decoration: none;
}

/* Hub page — topic cards */
.fd-topic-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin: 14px 0 30px 0;
}

.fd-topic-card {
  background: #fff;
  border: 1px solid #cdd4e0;
  border-radius: 4px;
  padding: 18px 20px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.fd-topic-card:hover {
  border-color: #6772E5;
  box-shadow: 0 2px 8px rgba(103, 114, 229, 0.12);
  text-decoration: none;
  color: inherit;
}

.fd-topic-icon {
  font-size: 20pt;
  margin-bottom: 8px;
  display: block;
}

.fd-topic-card h3 {
  font-size: 14pt;
  color: #1c2237;
  margin: 0 0 6px 0;
  font-weight: 700;
}

.fd-topic-card p {
  font-size: 13px;
  color: #5a6271;
  margin: 0 0 10px 0;
  line-height: 1.55;
}

.fd-topic-link {
  font-size: 12px;
  color: #6772E5;
  font-weight: 600;
}

/* Jump nav (hub or in-page) */
.fd-jump-nav {
  background: #f4f5f7;
  border: 1px solid #cdd4e0;
  border-radius: 4px;
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.fd-jump-nav a {
  color: #6772E5;
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  padding: 4px 10px;
  border-radius: 4px;
  transition: background 0.15s ease, color 0.15s ease;
}

.fd-jump-nav a:hover {
  background: #e6e8fb;
  color: #4c56c8;
}

.fd-jump-nav a.active {
  background: #6772E5;
  color: #ffffff;
}

.fd-jump-nav a.active:hover {
  background: #5560d8;
  color: #ffffff;
}

/* FAQ */
.fd-faq {
  margin: 14px 0 24px 0;
}

.fd-faq-item {
  border-bottom: 1px solid #ebeef3;
  padding: 12px 0;
}

.fd-faq-item:last-child {
  border-bottom: none;
}

.fd-faq-q {
  font-size: 14px;
  font-weight: 700;
  color: #1c2237;
  margin: 0 0 6px 0;
}

.fd-faq-a {
  font-size: 13px;
  color: #5a6271;
  margin: 0;
  line-height: 1.65;
}

.fd-faq-a a {
  color: #6772E5;
  text-decoration: none;
}

.fd-faq-a a:hover {
  text-decoration: underline;
}
