/* Template schema documentation styles
   Used by scripts/generate_template_schema_docs.py
   Scoped to .template-schema-docs for CSS specificity */

/* Override font to match site (Inter instead of Overpass) */
.template-schema-docs {
  font-family: Inter, sans-serif;
  margin-top: 0.5rem;
  margin-bottom: 2rem;
}

/* Button container alignment - float to avoid taking up vertical space */
.template-schema-docs .text-right {
  float: right;
}

/* Remove body padding from embedded HTML (schema_doc.css sets padding: 40px) */
.template-schema-docs body,
body .template-schema-docs {
  padding: 0;
}

/* Card styling (Bootstrap CSS was removed to prevent global style pollution) */
.template-schema-docs .card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  word-wrap: break-word;
  background-color: #fff;
  background-clip: border-box;
  border: 1px solid rgba(0, 0, 0, 0.125);
  border-radius: 0.25rem;
}

.template-schema-docs .card-header {
  padding: 0.75rem 1.25rem;
  margin-bottom: 0;
  background-color: rgba(0, 0, 0, 0.03);
  border-bottom: 1px solid rgba(0, 0, 0, 0.125);
}

.template-schema-docs .card-header:first-child {
  border-radius: calc(0.25rem - 1px) calc(0.25rem - 1px) 0 0;
}

.template-schema-docs .breadcrumb {
  background-color: white;
  padding: 0px;
}

.template-schema-docs .accordion > .card .card-header {
  margin-bottom: -1px;
  background-color: #f7f7f7;
}

.template-schema-docs .card-body {
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  padding: 1.25rem
}

.template-schema-docs .pl-5,
.template-schema-docs .px-5 {
  padding-left: 3rem !important
}

.template-schema-docs .badge {
  display: inline-block;
  padding: .4em .4em .3em .4em;
  font-size: 100%;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
  vertical-align: baseline;
  border-radius: .25rem;
  margin-bottom: 0.5rem;
  margin-top: 0.5rem;
  transition: color .15s ease-in-out, background-color .15s ease-in-out, border-color .15s ease-in-out, box-shadow .15s ease-in-out
}

.template-schema-docs .badge.value-type {
  font-size: 120%;
  margin-right: 5px;
  margin-bottom: 10px;
}

.template-schema-docs .badge-warning {
  color: #ffffff;
  background-color: #de257e;
}

.template-schema-docs .badge-info {
  color: #ffffff;
  background-color: #de257e;
}

.template-schema-docs .badge.badge-dark {
  color: #ffffff;
  background-color: #083E44;
}

.template-schema-docs .btn.btn-link {
  font-size: 18px;
  user-select: text;
  text-decoration: none;
  color: #de257e;
}

.template-schema-docs .btn.btn-link:hover {
  color: #083E44;
}

.template-schema-docs .btn.btn-primary {
  display: inline-block;
  padding: 0.375rem 0.75rem;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1.5;
  background-color: #de257e;
  border: 1px solid #de257e;
  border-radius: 0.25rem;
  color: #ffffff;
  cursor: pointer;
  margin: 0.25rem;
}

.template-schema-docs .btn.btn-primary:hover {
  background-color: #083E44;
  border-color: #083E44;
}

.template-schema-docs a {
  color: #de257e;
  text-decoration: none;
}

.template-schema-docs a:hover {
  color: #DE257E;
  text-decoration: underline 2px solid #083E44;
}

/* Hide the json-schema-for-humans generated footer */
.template-schema-docs footer,
.template-schema-docs .generated-by-footer {
  display: none;
}
