/* Uputstvo za ugradnju mape (pozari-ugradnja.html). Boje, gornja traka,
   dugmad i polja su iz pozari.css; ovde je samo raspored teksta. */

body.doc {
  height: auto;
  min-height: 100%;
}

body.doc .topbar {
  position: sticky;
  top: 0;
  z-index: 10;
}

.doc-back {
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.doc-back:hover {
  text-decoration: underline;
}

.doc-main {
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 16px 64px;
}

.doc-main p,
.doc-main li {
  font-size: 14.5px;
  line-height: 1.6;
}

.doc-main a {
  color: var(--accent);
}

.doc-main code {
  font-family: ui-monospace, "Cascadia Mono", Consolas, monospace;
  font-size: 0.9em;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 0 4px;
  overflow-wrap: anywhere;
}

.lead {
  margin: 0 0 16px;
  font-size: 16px !important;
}

.doc-note {
  padding: 10px 14px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  border: 1px solid var(--line);
  font-size: 13.5px;
}

.doc-sec {
  margin-top: 32px;
}

.doc-sec h2 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: -0.01em;
}

.doc-sec ul {
  margin: 0;
  padding-left: 20px;
}

.doc-sec li + li {
  margin-top: 8px;
}

.hint {
  color: var(--muted);
  font-size: 13px !important;
}

.gen {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.gen-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gen-form label:not(.check) {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
}

.gen-form select,
.gen-form input[type="number"] {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  font-weight: 400;
}

.gen-code {
  min-width: 0;
}

.gen-code pre {
  margin: 0 0 10px;
  padding: 12px;
  overflow-x: auto;
  background: #0f1724;
  color: #e7ecf4;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.5;
}

.gen-code pre code {
  background: none;
  border: 0;
  padding: 0;
  overflow-wrap: normal;
}

.gen-copied {
  margin-left: 10px;
  color: var(--ok);
  font-size: 13px;
}

.preview {
  display: grid;
  place-items: center;
  min-height: 120px;
  border: 1px dashed var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.preview iframe {
  display: block;
  width: 100%;
  border: 0;
  border-radius: var(--radius);
}

.doc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

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

.doc-table th {
  color: var(--muted);
  font-weight: 600;
}

@media (max-width: 640px) {
  .gen {
    grid-template-columns: 1fr;
  }

  .doc-table td:nth-child(2) {
    min-width: 110px;
  }
}
