/* DOMOVINA.ai MCP docs — shared styles. Vidi reference_domovina_brand_pattern. */

:root {
  --navy: #002F6C;
  --navy-hover: #001D4A;
  --red: #FF0000;
  --muted: #5A6570;
  --border: #E1E5EA;
  --surface: #F5F7F9;
  --bg: #FFFFFF;
  --success: #2E8540;
  font-family: system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--navy); }
body { min-height: 100vh; display: flex; flex-direction: column; line-height: 1.55; }

.tricolor { display: flex; height: 6px; }
.tricolor span { flex: 1; }
.tricolor .red { background: var(--red); }
.tricolor .white { background: var(--bg); }
.tricolor .navy { background: var(--navy); }

header {
  padding: 1.1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex; justify-content: space-between; align-items: center;
  gap: 1.5rem;
  max-width: 64rem; margin: 0 auto; width: 100%;
}
.brand { display: flex; align-items: center; gap: .65rem; min-width: 0; }
.brand .word {
  font-weight: 800; font-size: 1.2rem; letter-spacing: .04em; color: var(--navy);
  white-space: nowrap;
}
.brand .word .accent { color: var(--red); }
.brand a { text-decoration: none; display: flex; align-items: center; gap: .65rem; color: inherit; }

nav.docnav { display: flex; gap: 1.4rem; align-items: center; flex-wrap: wrap; }
nav.docnav a {
  color: var(--muted); text-decoration: none; font-weight: 600;
  font-size: .95rem; padding: .25rem 0;
  border-bottom: 2px solid transparent;
}
nav.docnav a:hover { color: var(--red); }
nav.docnav a.active {
  color: var(--navy);
  border-bottom-color: var(--red);
}

main { flex: 1; padding: 2.5rem 1.25rem 3rem; max-width: 48rem; margin: 0 auto; width: 100%; }

.hero { margin-bottom: 1.75rem; }
h1 { font-size: 1.85rem; line-height: 1.2; margin: 0 0 .5rem; font-weight: 800; }
.lede { color: var(--muted); margin: 0 0 1rem; font-size: 1.05rem; }

.status {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #E0F1E5; color: var(--success);
  padding: .3rem .7rem; border-radius: 999px;
  font-size: .85rem; font-weight: 600;
}
.status::before {
  content: ""; width: .55rem; height: .55rem; border-radius: 50%;
  background: var(--success);
}

section { margin-bottom: 2rem; }
h2 {
  font-size: 1.15rem; font-weight: 700; color: var(--navy);
  margin: 0 0 .85rem;
}
h3 {
  font-size: .95rem; font-weight: 700; color: var(--navy);
  margin: 1.25rem 0 .5rem;
}

p { margin: 0 0 .85rem; color: var(--navy); }
p:last-child { margin-bottom: 0; }

a { color: var(--navy); text-decoration: underline; text-underline-offset: 3px; font-weight: 600; }
a:hover { color: var(--red); }

code {
  background: var(--surface); border: 1px solid var(--border);
  padding: .1rem .4rem; border-radius: 4px;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9em; color: var(--navy);
  font-weight: 500;
}
pre {
  background: var(--surface); border: 1px solid var(--border);
  padding: 1rem 1.1rem; border-radius: .5rem;
  overflow-x: auto;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .88rem; line-height: 1.55; color: var(--navy);
  margin: .5rem 0 1rem;
}
pre code { background: transparent; border: 0; padding: 0; font-size: 1em; }

ol { padding-left: 1.4rem; margin: 0 0 .85rem; }
ol li { margin-bottom: .35rem; }
ul.bullets { padding-left: 1.4rem; margin: 0 0 .85rem; list-style: disc; }
ul.bullets li { margin-bottom: .35rem; }

blockquote {
  margin: 0 0 1rem; padding: .85rem 1.1rem;
  background: #FDF1E0; border: 1px solid #E8B96E; color: #6B3F05;
  border-radius: .5rem;
}
blockquote strong { color: #3F2603; }
blockquote p:last-child { margin-bottom: 0; }

table.doc-table {
  width: 100%; border-collapse: collapse; margin: 0 0 1rem;
  border: 1px solid var(--border); border-radius: .5rem;
  overflow: hidden;
  font-size: .92rem;
}
table.doc-table th, table.doc-table td {
  text-align: left; padding: .7rem .85rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}
table.doc-table th {
  background: var(--surface); color: var(--muted);
  font-weight: 700; text-transform: uppercase; font-size: .78rem;
  letter-spacing: .05em;
}
table.doc-table tbody tr:last-child td { border-bottom: 0; }
table.doc-table td code {
  background: transparent; border: 0; padding: 0; color: var(--red);
  font-weight: 600;
}
table.doc-table td .param-list {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: .85rem; line-height: 1.55; color: var(--navy);
}
table.doc-table td .param-list strong { color: var(--red); font-weight: 700; }

.page-nav {
  display: flex; justify-content: space-between; gap: 1rem;
  margin-top: 2.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: .92rem;
}
.page-nav a { color: var(--navy); text-decoration: none; font-weight: 600; }
.page-nav a:hover { color: var(--red); }
.page-nav .prev::before { content: "← "; }
.page-nav .next::after { content: " →"; }
.page-nav .spacer { flex: 1; }

footer {
  padding: 1.25rem; border-top: 1px solid var(--border);
  color: var(--muted); font-size: .85rem; text-align: center;
}
footer a { color: var(--navy); font-weight: 600; text-decoration: none; }
footer a:hover { text-decoration: underline; color: var(--red); }

@media (max-width: 640px) {
  header { padding: .8rem 1rem; gap: .85rem; flex-wrap: wrap; }
  .brand .word { font-size: 1.05rem; }
  nav.docnav { gap: 1rem; font-size: .9rem; }
  main { padding: 1.5rem 1rem 2rem; }
  h1 { font-size: 1.5rem; }
  .lede { font-size: .95rem; }
  pre { font-size: .82rem; padding: .8rem .9rem; }
  table.doc-table { font-size: .85rem; }
  table.doc-table th, table.doc-table td { padding: .55rem .65rem; }
}
