/* EstateIQ user guide: static pages, no application code or login (docs/<market>/<language>/*.html). */

:root {
  --doc-bg: #ffffff;
  --doc-surface: #f5f7fb;
  --doc-border: #dfe5ef;
  --doc-text: #1a202c;
  --doc-muted: #5a6478;
  --doc-primary: #1c1c9c;
  --doc-primary-soft: #f2f2ff;
  --doc-primary-line: #dbdbff;
  --doc-tip: #e8f6ee;
  --doc-tip-line: #2f9e5b;
  --doc-warn: #fff6e5;
  --doc-warn-line: #d98a00;
  --doc-code: #eef1f6;
  --doc-shadow: 0 1px 3px rgba(166, 175, 195, .4);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --doc-bg: #0d121f;
    --doc-surface: #151c2c;
    --doc-border: #273148;
    --doc-text: #e6e9f0;
    --doc-muted: #9aa4b8;
    --doc-primary: #a9a9ff;
    --doc-primary-soft: #1b1f3d;
    --doc-primary-line: #33397a;
    --doc-tip: #12291d;
    --doc-tip-line: #4cc27f;
    --doc-warn: #2e2410;
    --doc-warn-line: #f0b33c;
    --doc-code: #1d2538;
    --doc-shadow: none;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--doc-bg);
  color: var(--doc-text);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

a {
  color: var(--doc-primary);
}

/* ------------------------------------------------------------------ header */

.doc-top {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: var(--doc-bg);
  border-bottom: 1px solid var(--doc-border);
}

.doc-top__brand {
  font-weight: 700;
  font-size: 18px;
  color: var(--doc-text);
  text-decoration: none;
}

.doc-top__brand span {
  color: var(--doc-primary);
}

.doc-top__title {
  color: var(--doc-muted);
  font-size: 14px;
}

.doc-top__locale {
  margin-left: auto;
  font-size: 13px;
  color: var(--doc-muted);
  border: 1px solid var(--doc-border);
  border-radius: 999px;
  padding: 2px 12px;
  text-decoration: none;
  white-space: nowrap;
}

/* ------------------------------------------------------------------ search */

.doc-search {
  position: relative;
  margin-left: auto;
  width: min(340px, 40vw);
}

.doc-search + .doc-top__locale {
  margin-left: 0;
}

.doc-search input {
  width: 100%;
  padding: 7px 36px 7px 14px;
  font: inherit;
  font-size: 14px;
  color: var(--doc-text);
  background: var(--doc-surface);
  border: 1px solid var(--doc-border);
  border-radius: 999px;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}

.doc-search input:focus {
  border-color: var(--doc-primary);
  background: var(--doc-bg);
  box-shadow: 0 0 0 3px var(--doc-primary-soft);
}

.doc-search kbd {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 20px;
  padding: 0 5px;
  font-family: inherit;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
  color: var(--doc-muted);
  border: 1px solid var(--doc-border);
  border-radius: 5px;
  pointer-events: none;
}

.doc-search input:focus ~ kbd,
.doc-search input:not(:placeholder-shown) ~ kbd {
  display: none;
}

.doc-search__results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: min(70vh, 560px);
  overflow-y: auto;
  padding: 6px;
  background: var(--doc-bg);
  border: 1px solid var(--doc-border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(26, 32, 44, .18);
}

.doc-search__results[hidden] {
  display: none;
}

.doc-search__result {
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--doc-text);
  text-decoration: none;
  font-size: 14px;
  line-height: 1.45;
}

.doc-search__result.is-active,
.doc-search__result:hover {
  background: var(--doc-primary-soft);
}

.doc-search__result b {
  display: block;
  color: var(--doc-primary);
  font-size: 15px;
}

.doc-search__result span {
  display: block;
  color: var(--doc-muted);
}

.doc-search__result .doc-search__section {
  font-size: 12px;
}

.doc-search__result mark {
  background: none;
  color: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-decoration-color: var(--doc-primary);
  text-underline-offset: 2px;
}

.doc-search__empty {
  margin: 0;
  padding: 10px 12px;
  color: var(--doc-muted);
  font-size: 14px;
}

/* ------------------------------------------------------------------ layout */

.doc-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  max-width: 1180px;
  margin: 0 auto;
}

.doc-nav {
  position: sticky;
  top: 57px;
  align-self: start;
  max-height: calc(100vh - 57px);
  overflow-y: auto;
  padding: 24px 16px 24px 24px;
  font-size: 14px;
}

.doc-nav ol {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: chapter;
}

.doc-nav li {
  counter-increment: chapter;
}

.doc-nav a {
  display: block;
  padding: 6px 10px;
  border-radius: 8px;
  color: var(--doc-text);
  text-decoration: none;
}

.doc-nav a::before {
  content: counter(chapter) ". ";
  color: var(--doc-muted);
}

.doc-nav li.doc-nav__home {
  counter-increment: none;
}

.doc-nav li.doc-nav__home a::before {
  content: none;
}

.doc-nav a:hover {
  background: var(--doc-surface);
}

.doc-nav a[aria-current="page"] {
  background: var(--doc-primary-soft);
  color: var(--doc-primary);
  font-weight: 600;
}

.doc-nav__label {
  margin: 0 10px 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--doc-muted);
}

.doc-nav__label--fields {
  margin-top: 24px;
}

/* the field pages are a reference, not chapters */
.doc-nav ol.doc-nav__fields a::before {
  content: none;
}

.doc-main {
  min-width: 0;
  padding: 32px 40px 64px;
  max-width: 820px;
}

/* ------------------------------------------------------------------ content */

.doc-main h1 {
  margin: 0 0 8px;
  font-size: 32px;
  line-height: 1.25;
}

.doc-lead {
  margin: 0 0 32px;
  font-size: 18px;
  color: var(--doc-muted);
}

.doc-main h2 {
  margin: 48px 0 12px;
  padding-top: 8px;
  font-size: 23px;
  line-height: 1.3;
  scroll-margin-top: 72px;
}

.doc-main h3 {
  margin: 28px 0 8px;
  font-size: 18px;
  scroll-margin-top: 72px;
}

.doc-main p,
.doc-main ul,
.doc-main ol {
  margin: 0 0 14px;
}

.doc-main li {
  margin-bottom: 4px;
}

.doc-toc {
  margin: 0 0 32px;
  padding: 16px 20px;
  background: var(--doc-surface);
  border-radius: 12px;
  font-size: 15px;
}

.doc-toc strong {
  display: block;
  margin-bottom: 6px;
}

.doc-toc ul {
  margin: 0;
  padding-left: 18px;
}

/* menu path and screen elements as the application shows them */
.doc-path {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
  padding: 1px 8px;
  border-radius: 6px;
  background: var(--doc-code);
  font-size: 14px;
  font-weight: 600;
  white-space: normal;
}

.doc-path i {
  font-style: normal;
  color: var(--doc-muted);
  font-weight: 400;
}

.doc-ui {
  padding: 0 6px;
  border: 1px solid var(--doc-border);
  border-radius: 6px;
  background: var(--doc-bg);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
}

/* technical names and examples (integration chapters) */
.doc-main code {
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--doc-code);
  font: 0.88em/1.4 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  overflow-wrap: anywhere;
}

.doc-main pre {
  margin: 0 0 18px;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--doc-border);
  border-radius: 8px;
  background: var(--doc-code);
}

.doc-main pre code {
  padding: 0;
  background: none;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: normal;
  white-space: pre;
}

.doc-main h4 {
  margin: 22px 0 6px;
  font-size: 16px;
  scroll-margin-top: 72px;
}

/* numbered steps */
.doc-steps {
  list-style: none;
  padding: 0;
  counter-reset: step;
}

.doc-steps > li {
  position: relative;
  counter-increment: step;
  padding: 0 0 12px 44px;
  min-height: 32px;
}

.doc-steps > li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--doc-primary-soft);
  border: 1px solid var(--doc-primary-line);
  color: var(--doc-primary);
  font-weight: 700;
  font-size: 14px;
  line-height: 28px;
  text-align: center;
}

.doc-note {
  margin: 0 0 16px;
  padding: 12px 16px;
  border-left: 4px solid var(--doc-primary);
  border-radius: 0 10px 10px 0;
  background: var(--doc-primary-soft);
}

.doc-note--tip {
  border-left-color: var(--doc-tip-line);
  background: var(--doc-tip);
}

.doc-note--warn {
  border-left-color: var(--doc-warn-line);
  background: var(--doc-warn);
}

.doc-note > :last-child {
  margin-bottom: 0;
}

.doc-note strong:first-child {
  display: block;
  margin-bottom: 2px;
}

/* the sections of a 2026 design form, in their order */
.doc-form-map {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  border: 1px solid var(--doc-border);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--doc-shadow);
}

.doc-form-map > li {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 12px;
  margin: 0;
  padding: 10px 16px;
  border-top: 1px solid var(--doc-border);
}

.doc-form-map > li:first-child {
  border-top: 0;
}

.doc-form-map b {
  display: flex;
  align-items: center;
  gap: 8px;
}

.doc-form-map b::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--doc-primary);
}

.doc-form-map span {
  color: var(--doc-muted);
  font-size: 15px;
}

.doc-table {
  width: 100%;
  margin: 0 0 20px;
  border-collapse: collapse;
  font-size: 15px;
}

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

.doc-table th {
  background: var(--doc-surface);
  font-weight: 600;
}

.doc-table-wrap {
  overflow-x: auto;
}

/* chapter cards on the start page */
.doc-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.doc-cards li {
  margin: 0;
}

.doc-cards a {
  display: block;
  height: 100%;
  padding: 16px;
  border: 1px solid var(--doc-border);
  border-radius: 12px;
  color: var(--doc-text);
  text-decoration: none;
  box-shadow: var(--doc-shadow);
}

.doc-cards a:hover {
  border-color: var(--doc-primary);
}

.doc-cards b {
  display: block;
  margin-bottom: 4px;
  color: var(--doc-primary);
}

.doc-cards span {
  font-size: 14px;
  color: var(--doc-muted);
}

.doc-pager {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-top: 56px;
  padding-top: 20px;
  border-top: 1px solid var(--doc-border);
  font-size: 15px;
}

.doc-pager a {
  text-decoration: none;
}

.doc-pager a[rel="next"] {
  margin-left: auto;
  text-align: right;
}

.doc-footer {
  margin-top: 32px;
  font-size: 13px;
  color: var(--doc-muted);
}

/* ------------------------------------------------------------------ narrow screens */

/* ------------------------------------------------------------------ field reference (polja-*.html) */

/* one entry per form field, its id the field's property: the forms' field help buttons open it by that anchor */
.doc-fields {
  margin: 0 0 8px;
  border-top: 1px solid var(--doc-border);
}

.doc-fields dt {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin: 0;
  padding: 14px 12px 4px;
  font-weight: 600;
  scroll-margin-top: 72px;
}

.doc-fields dd {
  margin: 0;
  padding: 0 12px 14px;
  border-bottom: 1px solid var(--doc-border);
}

.doc-fields dd p {
  margin: 0;
}

.doc-fields dt:target,
.doc-fields dt:target + dd {
  background: var(--doc-primary-soft);
}

.doc-fields dt:target {
  box-shadow: inset 3px 0 0 var(--doc-primary);
  border-radius: 8px 8px 0 0;
}

.doc-fields dt:target + dd {
  box-shadow: inset 3px 0 0 var(--doc-primary);
}

.doc-field__meta {
  font-size: 13px;
  font-weight: 400;
  color: var(--doc-muted);
}

.doc-tag {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  line-height: 18px;
  white-space: nowrap;
  background: var(--doc-warn);
  color: var(--doc-text);
  box-shadow: inset 0 0 0 1px var(--doc-warn-line);
}

.doc-tag--auto {
  background: var(--doc-tip);
  box-shadow: inset 0 0 0 1px var(--doc-tip-line);
}

@media (max-width: 860px) {
  .doc-layout {
    display: block;
  }

  .doc-nav {
    position: static;
    max-height: none;
    padding: 12px 16px 0;
    border-bottom: 1px solid var(--doc-border);
  }

  .doc-nav ol {
    display: flex;
    gap: 4px;
    overflow-x: auto;
    padding-bottom: 12px;
  }

  .doc-nav a {
    white-space: nowrap;
  }

  .doc-nav__label {
    display: none;
  }

  .doc-main {
    padding: 24px 16px 48px;
  }

  .doc-top {
    padding: 10px 16px;
  }

  .doc-top__title {
    display: none;
  }

  .doc-search {
    flex: 1;
    width: auto;
  }

  .doc-search kbd {
    display: none;
  }

  .doc-search__results {
    position: fixed;
    top: 56px;
    left: 16px;
    right: 16px;
    width: auto;
  }

  .doc-main h1 {
    font-size: 26px;
  }

  .doc-form-map > li {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

@media (max-width: 520px) {
  .doc-top__locale {
    display: none;
  }
}

@media print {
  .doc-top,
  .doc-nav,
  .doc-pager {
    display: none;
  }

  .doc-layout {
    display: block;
  }
}
