@font-face {
  font-family: Roboto;
  src: url("../lib/idevapi-1.3.25/css/fonts/roboto/Roboto-Regular.ttf");
  font-display: swap;
}

@font-face {
  font-family: Roboto;
  src: url("../lib/idevapi-1.3.25/css/fonts/roboto/Roboto-Bold.ttf");
  font-weight: 700;
  font-display: swap;
}

html {
  scroll-behavior: smooth;
}

body.page-body {
  margin: 0;
  background: #f9f9f9;
}

.page,
.header-image,
.documentation-section,
.test-layout,
.form-column,
.map-column,
.map,
.response-section,
.query-panel,
.response-panel,
#query-form,
#query-form fieldset,
#query-form legend,
#query-form button,
.example-json,
.code-panel {
  box-sizing: border-box;
}

.documentation-section a {
  color: #003e6f;
  font-weight: 700;
}

.documentation-section a:hover {
  color: #002b4e;
}

.skip-link:focus-visible,
#query-form :focus-visible,
.response-panel :focus-visible {
  outline: 3px solid #e07900;
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: .5rem;
  left: .5rem;
  z-index: 10000;
  padding: .7rem 1rem;
  background: #003e6f;
  color: #fff;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.page {
  width: min(1300px, calc(100% - 2rem));
  margin: 0 auto;
  background: #fff;
  min-height: 100vh;
  padding: 0 20px 28px;
}

.header-image {
  display: block;
  width: calc(100% + 40px);
  max-width: none;
  height: 85px;
  margin-left: -20px;
  object-fit: none;
  object-position: left top;
  overflow: hidden;
}

.page-main {
  padding-top: .4rem;
}

.intro-section,
.document-section {
  margin-top: 1.5rem;
}

.intro-section,
.documentation-section,
.query-panel,
.response-panel {
  --blue: #003e6f;
  --green: #a8c51f;
  --border: #ccc;
  --text: #252525;
  --muted: #56616a;
  --error: #a12622;
  --success: #176b3a;
  color: var(--text);
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

.documentation-section > h2,
.test-section > h2,
.map-column > h3,
.query-panel > h3,
.response-heading > h3 {
  color: #003e6f;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  line-height: 1.2;
}

.documentation-section > h2,
.test-section > h2 {
  margin: 0 0 .75rem;
  font-size: 1.50rem;
}

.map-column > h3,
.query-panel > h3,
.response-heading > h3 {
  margin: 0 0 .5rem;
  font-size: 1.1rem;
}

/* Secondary headings inside the query panel: edit this rule to tune them. */
.query-panel #query-form > fieldset > legend {
  color: #006b83;
  font-size: 1.05rem;
  font-weight: 600;
}

.service-summary {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  font-weight: 400;
}

.service-url {
  display: block;
  overflow-wrap: anywhere;
}

.document-section {
  border-top: 1px solid #ccc;
  padding-top: 1.2rem;
}

.parameters,
.examples {
  margin: .5rem 0;
  padding-left: 1.35rem;
}

.parameters li,
.examples li {
  margin-bottom: .5rem;
}

.parameters li ul {
  margin-top: .4rem;
}

.parameter-name {
  font-style: italic;
  font-weight: 700;
}

.examples a {
  display: block;
  overflow-wrap: anywhere;
}

code {
  font-size:15px;
  color: blue;
}

.example-json code,
.code-panel code {
  color: inherit;
}

.example-json,
.code-panel {
  margin: .75rem 0 0;
  padding: 1rem;
  max-width: 100%;
  border: 0;
  border-radius: 6px;
  background: #122530;
  color: #d9e8ef;
  font: .9rem/1.45 Consolas, "Courier New", monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  overflow: hidden auto;
}

.code-panel {
  min-height: 220px;
  max-height: 520px;
}

.test-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .8fr);
  border: 1px solid #ccc;
  border-radius: 6px;
  overflow: hidden;
}

.form-column,
.map-column,
.response-section {
  padding: 1.2rem;
}

.form-column {
  background: #fff;
}

.map-column {
  border-right: 1px solid #ccc;
  background: #fafafa;
}

.response-section {
  width: 100%;
  border: 1px solid #ccc;
  border-top: 0;
  border-radius: 0 0 6px 6px;
}

.capture-help {
  margin-bottom: 1rem;
  padding: .75rem 1rem;
  border-left: 4px solid #a8c51f;
  background: #f3f7dd;
  color: #252525;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  line-height: 1.5;
}

.draw-tools {
  display: flex;
  margin-bottom: .5rem;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
}

.draw-tools button {
  padding: .58rem .8rem;
  border: 1px solid #64747e;
  border-radius: 4px;
  background: #fff;
  color: #21313a;
  font: inherit;
  cursor: pointer;
}

.draw-tools button:hover,
.draw-tools button[aria-pressed="true"] {
  border-color: #003e6f;
  background: #e7eff4;
}

.map {
  width: 100%;
  height: 440px;
  min-height: 340px;
  border: 1px solid #87959e;
  border-radius: 4px;
  background: #e6ebee;
  overflow: hidden;
  color: #333;
  font-family: Roboto, "Segoe UI", Arial, sans-serif;
  font-size: 16px;
  font-weight: 400;
  line-height: normal;
}

.map.is-drawing,
.map.is-drawing * {
  cursor: crosshair !important;
}

/* The map is a library-owned DOM boundary: do not inherit page typography into it. */
#reverseGeocoderMap #divPropietario,
#reverseGeocoderMap #divPropietario a,
#reverseGeocoderMap #divPropietario span {
  font-weight: 400;
}

#query-form small {
  display: block;
  margin-top: .35rem;
  color: #56616a;
  font-size: .84rem;
}

#query-form fieldset {
  margin: 0 0 1.1rem;
  padding: 0;
  border: 0;
}

#query-form legend {
  width: 100%;
  margin-bottom: .55rem;
  padding-bottom: .3rem;
  border-bottom: 1px solid #ccc;
  color: #003e6f;
  font-weight: 700;
}

#query-form label {
  display: block;
  margin: .65rem 0 .25rem;
  font-weight: 700;
}

#query-form input,
#query-form select,
#query-form button {
  box-sizing: border-box;
  font: inherit;
}

#query-form input,
#query-form select {
  width: 100%;
  padding: .62rem .7rem;
  border: 1px solid #7b8992;
  border-radius: 4px;
  background: #fff;
}

.query-panel .topic-options {
  display: grid;
  gap: .2rem;
  margin-top: .35rem;
}

.query-panel #query-form .topic-option {
  display: flex;
  align-items: center;
  gap: .65rem;
  min-height: 30px;
  margin: 0;
  padding: .35rem .5rem;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 400;
}

.query-panel #query-form .topic-option:hover {
  background: #f3f7dd;
}

.query-panel #query-form .topic-option-input {
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 0;
  border: 0;
  accent-color: #003e6f;
}

.query-panel #query-form .topic-option > span {
  flex: 1 1 auto;
  min-width: 0;
}

.query-panel #query-form .topic-option-input:focus-visible {
  outline: 3px solid #e07900;
  outline-offset: 3px;
}

.coordinate-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .7rem;
}

#submit-query {
  width: 100%;
  padding: .72rem 1rem;
  border: 0;
  border-radius: 4px;
  background: var(--blue);
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

#submit-query:hover:not(:disabled) {
  background: #002b4e;
}

#submit-query:disabled {
  opacity: .62;
  cursor: wait;
}

#query-status {
  min-height: 2.7rem;
  margin-top: 1rem;
  padding: .6rem .7rem;
  border-radius: 4px;
  background: #edf1f3;
  color: var(--muted);
}

#query-status[data-state="error"] {
  background: #fbeceb;
  color: var(--error);
}

#query-status[data-state="success"] {
  background: #e9f6ef;
  color: var(--success);
}

.response-heading {
  display: flex;
  gap: 1rem;
  align-items: end;
  justify-content: space-between;
}

.request-url {
  max-width: 65%;
  color: var(--muted);
  font: .78rem Consolas, "Courier New", monospace;
  overflow-wrap: anywhere;
  text-align: right;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 760px) {
  .page {
    width: 100%;
    padding: 0 12px 20px;
  }

  .test-layout {
    grid-template-columns: 1fr;
  }

  .map-column {
    border-right: 0;
  }

  .form-column {
    border-top: 1px solid var(--border);
  }

  .map {
    height: 390px;
  }

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

  .response-heading {
    display: block;
  }

  .request-url {
    display: block;
    max-width: 100%;
    margin-top: .5rem;
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
