
:root {
  --ink: #0e1116;
  --ink-2: #1b1f26;
  --ink-3: #262d35;
  --paper: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #f8f8f7;
  --line: #dfe2e5;
  --line-dark: #343a42;
  --muted: #626d77;
  --muted-light: #aab1b8;
  /* --accent: #ff5a00; */
  --accent-dark: #b92331;
  --accent-soft: #fff0e8;
  --accent : #c92735;
  --max: 1460px;
  --brand-autlas: #0e7490;
  --brand-avtokratija: #b91c1c;

  /* svetlije verzije za tamne pozadine */
  --brand-autlas-on-dark: #22d3ee;
  --brand-avtokratija-on-dark: #f87171
}

* { box-sizing: border-box; }

html { background: var(--ink); scroll-behavior: smooth; }

#odgovor,
#oblast-pitanja { scroll-margin-top: 2rem; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  font-size: 17px;
  line-height: 1.62;
  margin: 0;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }

button:focus-visible, a:focus-visible, input:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 4px;
}

.sitebar {
    --sb-bg: #0f1115;
    --sb-text: #9ca3af;
    --sb-muted: #6b7280;
    --sb-hover: rgba(255, 255, 255, .08);
    --sb-active: rgba(255, 255, 255, .13);

    background: var(--sb-bg);
    color: var(--sb-text);
    font-size: .78rem;
    line-height: 1;
}

.sitebar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    min-height: 38px;
    padding: 0 1.5rem;            
}

.sitebar__label {
    letter-spacing: .02em;
    color: var(--sb-muted);
}

.sitebar__tabs {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 3px;
    background: rgba(255, 255, 255, .05);
    border-radius: 999px;
}

.sitebar__tab {
  /*brand-autlas-on-dark   - bice plavo*/
    --accent: var(--brand-avtokratija-on-dark); 
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .38rem .8rem;
    border-radius: 999px;
    color: var(--sb-text);
    font-weight: 500;
    letter-spacing: .03em;
    text-decoration: none;
    transition: color .2s, background .2s;
}

.sitebar__tab--avtokratija {
  /*brand-autlas-on-dark   - bice plavo*/

  --accent: var(--brand-avtokratija-on-dark); 
}

/* tačka: prazan prsten kod neaktivnog */
.sitebar__dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    border: 1.5px solid var(--accent);
    box-sizing: border-box;
    transition: background .2s, box-shadow .2s;
}

.sitebar__arrow {
    margin-left: -.1rem;
    font-size: .72rem;
    opacity: 0;
    transform: translate(-3px, 3px);
    transition: opacity .2s, transform .2s;
}

/* hover na neaktivnom */
.sitebar__tab:not(.is-active):hover {
    color: #fff;
    background: var(--sb-hover);
}
.sitebar__tab:not(.is-active):hover .sitebar__arrow {
    opacity: 1;
    transform: none;
}

/* aktivno: pun pill, svetleća tačka */
.sitebar__tab.is-active {
    color: #fff;
    background: var(--sb-active);
    cursor: default;
}
.sitebar__tab.is-active .sitebar__dot {
    background: var(--accent);
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 25%, transparent),
                0 0 10px var(--accent);
}

.sitebar__tab:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

@media (max-width: 700px) {
    .sitebar__inner { justify-content: center; padding: 0 1rem; }
    .sitebar__label { display: none; }
}

@media (prefers-reduced-motion: reduce) {
    .sitebar__tab, .sitebar__dot, .sitebar__arrow { transition: none; }
}

.masthead {
  align-items: center;
  background: rgba(250, 249, 246, .98);
  border-bottom: 1px solid #d8d9d8;
  color: var(--ink);
  display: grid;
  grid-template-columns: minmax(500px, 1fr) auto 92px;
  min-height: 94px;
  padding: 10px max(28px, calc((100vw - var(--max)) / 2));
  position: sticky;
  top: 0;
  z-index: 30;
}

.brand-lockup {
  align-items: stretch;
  color: var(--ink);
  display: inline-flex;
  max-width: 590px;
  text-decoration: none;
  width: fit-content;
}
.brand-project, .brand-case { display: flex; flex-direction: column; justify-content: center; }
.brand-project strong, .brand-case strong {
  font-size: 27px;
  font-style: normal;
  font-weight: 880;
  letter-spacing: -.06em;
  line-height: .94;
  white-space: nowrap;
}
.brand-case strong { font-size: 25px; }
.brand-project small, .brand-case small {
  color: #69727a;
  font-size: 7px;
  font-weight: 650;
  letter-spacing: .105em;
  line-height: 1.25;
  margin-top: 7px;
  text-transform: uppercase;
  white-space: nowrap;
}
.brand-a { font-style: normal; position: relative; z-index: 1; }
.brand-a::after {
  background: var(--accent);
  bottom: -1px;
  content: "";
  height: 24px;
  left: 3px;
  position: absolute;
  transform: skew(-17deg);
  width: 6px;
  z-index: -1;
}
.brand-divider { background: #bbbdbd; margin: 0 23px; width: 1px; }
.brand-lockup--footer { color: var(--surface); }
.brand-lockup--footer .brand-project small, .brand-lockup--footer .brand-case small { color: #8e979f; }
.brand-lockup--footer .brand-divider { background: #424850; }

.masthead nav { display: flex; gap: 27px; }
.masthead nav a { color: #56616a; font-size: 11px; font-weight: 680; padding: 8px 0; position: relative; text-decoration: none; }
.masthead nav a:hover, .masthead nav a.active { color: var(--ink); }
.masthead nav a.active::after {
  background: var(--accent);
  bottom: -26px;
  content: "";
  height: 2px;
  left: 0;
  position: absolute;
  width: 100%;
}
.language {
  background: transparent;
  border: 1px solid #c4c7c9;
  border-radius: 7px;
  color: #8a9298;
  cursor: pointer;
  font-size: 10px;
  justify-self: end;
  letter-spacing: .06em;
  padding: 7px 9px;
}
.language i { font-style: normal; margin: 0 4px; }
.language span.active { color: var(--ink); font-weight: 800; }

.launch-hero { color: var(--surface); min-height: 650px; overflow: hidden; position: relative; }
.hero-image, .hero-shade { inset: 0; position: absolute; }
.hero-image { background: var(--ink) url("/autlas-hero.png") center / cover no-repeat; transform: scale(1.01); }
.hero-shade {
  background:
    linear-gradient(90deg, rgba(7,10,14,.96) 0%, rgba(7,10,14,.8) 38%, rgba(7,10,14,.16) 76%),
    linear-gradient(0deg, rgba(7,10,14,.88) 0%, rgba(7,10,14,0) 52%);
}
.launch-inner {
  display: flex;
  flex-direction: column;
  margin: 0 auto;
  min-height: 650px;
  padding: 42px 30px 26px;
  position: relative;
  width: min(100%, var(--max));
  z-index: 2;
}
.hero-kicker { color: #aab2b8; display: flex; font-size: 9px; font-weight: 720; justify-content: space-between; letter-spacing: .12em; text-transform: uppercase; }
.hero-kicker span:first-child { color: #f0f2f3; }
.hero-kicker span:first-child::before { color: var(--accent); content: "●"; font-size: 7px; margin-right: 9px; vertical-align: 1px; }
.hero-copy { margin: auto 0 58px; max-width: 820px; }
.hero-copy h1 { font-size: clamp(48px, 6.2vw, 82px); font-weight: 760; letter-spacing: -.055em; line-height: 1.02; margin: 0; max-width: 780px; }
.hero-copy h1::after { background: var(--accent); content: ""; display: block; height: 4px; margin-top: 25px; width: 74px; }
.hero-copy > p { color: #d1d5d8; font-size: clamp(18px, 2vw, 24px); line-height: 1.42; margin: 25px 0 30px; max-width: 650px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-actions a { align-items: center; border-radius: 999px; display: inline-flex; font-size: 13px; font-weight: 720; gap: 22px; padding: 13px 21px; text-decoration: none; color:white;}
.hero-actions span { font-size: 18px; font-weight: 400; line-height: 1; }
.hero-primary { background: var(--accent); color: #160b04; }
.hero-primary:hover { background: #c92735; }
.hero-secondary { backdrop-filter: blur(10px); background: rgba(13,17,22,.4); border: 1px solid #737b83; color: var(--surface); }
.hero-secondary:hover { border-color: var(--surface); }
.hero-evidence { align-items: stretch; border-top: 1px solid rgba(255,255,255,.22); display: grid; grid-template-columns: 145px 170px 280px 1fr; margin-top: auto; min-height: 70px; }
.hero-evidence > div { display: flex; flex-direction: column; justify-content: center; padding: 12px 22px 0 0; }
.hero-evidence > div + div { border-left: 1px solid rgba(255,255,255,.16); padding-left: 22px; }
.hero-evidence strong { font-size: 17px; font-weight: 690; }
.hero-evidence span { color: #9ca5ad; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.hero-evidence p { align-self: center; color: #aeb5bb; font-size: 10px; justify-self: end; line-height: 1.45; margin: 12px 0 0; max-width: 355px; text-align: right; }

.serbia-banner {
  background: var(--ink-2);
  border: 1px solid #313842;
  border-radius: 20px;
  color: var(--surface);
  height: 235px;
  margin: 18px auto 0;
  max-width: var(--max);
  overflow: hidden;
  position: relative;
  scroll-margin-top: 90px;
  width: calc(100% - 36px);
}
.serbia-banner-image, .serbia-banner-shade { inset: 0; position: absolute; }
.serbia-banner-image { background: url("/autlas-serbia.png") center / cover no-repeat; }
.serbia-banner-shade { background: linear-gradient(90deg, rgba(8,12,17,.97) 0%, rgba(8,12,17,.76) 39%, rgba(8,12,17,.05) 78%); }
.serbia-banner-copy { left: clamp(28px, 5vw, 68px); position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.serbia-banner-copy p { font-size: clamp(38px, 5vw, 62px); font-weight: 720; letter-spacing: -.05em; line-height: 1; margin: 0; }
.serbia-banner-copy p > span { color: var(--accent); font-weight: 880; margin-right: 2px; }
.serbia-banner-copy p > b { color: var(--surface); font-weight: 800; }
.serbia-banner-copy small { color: #aeb6bc; display: block; font-size: 12px; letter-spacing: .03em; margin-top: 13px; }
.serbia-banner > a { font-size: 38px; position: absolute; right: 38px; text-decoration: none; top: calc(50% - 28px); z-index: 2; }
.serbia-banner > a:hover { color: var(--accent); }

.area-map {
  background: var(--ink-2);
  color: var(--surface);
  margin-top: 18px;
  padding: 105px max(28px, calc((100vw - 1240px) / 2)) 115px;
  scroll-margin-top: 78px;
}
.area-map-header { align-items: end; display: grid; gap: 70px; grid-template-columns: 1.1fr .9fr; }
.area-map-header > div:first-child > p { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .14em; margin: 0 0 15px; text-transform: uppercase; }
.area-map-header h2 { font-size: clamp(40px, 5vw, 66px); font-weight: 670; letter-spacing: -.05em; line-height: 1.06; margin: 0; max-width: 740px; }
.area-map-header > div:last-child > p { color: #b9c0c6; font-size: 15px; line-height: 1.58; margin: 0; max-width: 550px; }
.area-map-header small { border-top: 1px solid #3d444d; color: #8f99a2; display: block; font-size: 9px; letter-spacing: .08em; margin-top: 20px; padding-top: 15px; text-transform: uppercase; }
.system-map { display: grid; gap: 18px 16px; grid-template-columns: repeat(5, minmax(0, 1fr)); margin-top: 72px; position: relative; }
.area-node {
  background: #222932;
  border: 1px solid #39414a;
  border-radius: 12px;
  color: var(--surface);
  cursor: pointer;
  display: grid;
  gap: 10px;
  min-height: 154px;
  padding: 19px 18px 17px;
  position: relative;
  text-align: left;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.area-node:not(:nth-child(5n))::after { color: #68727b; content: "→"; font-size: 16px; position: absolute; right: -17px; top: calc(50% - 12px); z-index: 2; }
.area-node:nth-child(5n):not(:last-child)::after { bottom: -20px; color: #68727b; content: "↓"; font-size: 16px; left: calc(50% - 5px); position: absolute; z-index: 2; }
.area-node:hover { background: #29313a; border-color: #69737d; transform: translateY(-2px); }
.area-node > span { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .1em; }
.area-node > strong { font-size: 13px; font-weight: 630; letter-spacing: -.01em; line-height: 1.4; }
.area-node > small { align-self: end; color: #929ba4; font-size: 8px; letter-spacing: .09em; margin-top: auto; text-transform: uppercase; }
.area-node.active { background: var(--surface); border-color: var(--accent); box-shadow: inset 0 4px 0 var(--accent); color: var(--ink); }
.area-node.active > small { color: var(--muted); }
.area-focus {
  background: var(--surface);
  border-radius: 18px;
  color: var(--ink);
  display: grid;
  gap: 55px;
  grid-template-columns: .85fr 1.15fr;
  margin-top: 55px;
  padding: 45px 48px;
  scroll-margin-top: 105px;
}
.area-focus-copy > span { color: var(--accent-dark); font-size: 10px; font-weight: 820; letter-spacing: .1em; }
.area-focus-copy > p, .area-question-list > p { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .12em; margin: 25px 0 10px; text-transform: uppercase; }
.area-focus-copy h3 { font-size: clamp(28px, 3.4vw, 44px); font-weight: 670; letter-spacing: -.04em; line-height: 1.08; margin: 0; }
.area-focus-copy > div { color: #4e5961; font-size: 15px; line-height: 1.65; margin-top: 23px; }
.area-question-list { border-top: 1px solid var(--ink); }
.area-question-list > p { margin-top: 14px; }
.area-question-list > a { align-items: center; background: transparent; border-bottom: 1px solid var(--line); color: var(--ink); display: grid; gap: 14px; grid-template-columns: 38px minmax(0, 1fr) 22px; min-height: 76px; padding: 18px 0; text-align: left; width: 100%; }
.area-question-list > a:hover strong { color: var(--accent-dark); }
.area-question-list > a > span { color: var(--accent-dark); font-size: 10px; font-weight: 800; }
.area-question-list > a > strong { font-size: 15px; font-weight: 640; line-height: 1.45; transition: color .15s ease; }
.area-question-list > a > i { color: var(--accent-dark); font-size: 17px; font-style: normal; justify-self: end; }

.question-field { background: var(--paper); color: var(--ink); padding: 110px max(28px, calc((100vw - 1240px) / 2)) 100px; scroll-margin-top: 78px; }
.field-topline { align-items: end; display: grid; gap: 60px; grid-template-columns: 1fr 330px; }
.field-topline p, .section-code { color: var(--accent-dark); font-size: 10px; font-weight: 780; letter-spacing: .14em; margin: 0 0 12px; text-transform: uppercase; }
.field-topline h2 { font-size: clamp(38px, 4.7vw, 60px); font-weight: 680; letter-spacing: -.05em; line-height: 1.08; margin: 0; max-width: 780px; }
.field-topline > div:first-child > span { color: var(--muted); display: block; font-size: 15px; margin-top: 18px; max-width: 620px; }
.data-provenance { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: grid; padding: 21px 23px; }
.data-provenance span { color: var(--muted); font-size: 9px; letter-spacing: .11em; text-transform: uppercase; }
.data-provenance strong { font-size: 16px; margin-top: 5px; }
.data-provenance small { color: #7f8992; font-size: 10px; line-height: 1.45; margin-top: 5px; }
.field-controls { align-items: end; border-top: 1px solid #cfd3d7; display: grid; gap: 45px; grid-template-columns: 1fr 340px; margin-top: 60px; padding: 26px 0 28px; }
.area-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.area-filter button { background: transparent; border: 1px solid #cfd3d7; border-radius: 999px; color: #5f6871; cursor: pointer; font-size: 11px; font-weight: 650; padding: 7px 12px; }
.area-filter button:hover { border-color: #8b949c; color: var(--ink); }
.area-filter button.active { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.area-filter button.active::before { background: var(--accent); border-radius: 50%; content: ""; display: inline-block; height: 6px; margin-right: 7px; vertical-align: 1px; width: 6px; }
.search-box { background: var(--surface); border: 1px solid #cfd3d7; border-radius: 12px; display: grid; grid-template-columns: 1fr 24px; padding: 8px 13px 7px; }
.search-box span { color: var(--muted); font-size: 8px; grid-column: 1 / -1; letter-spacing: .1em; text-transform: uppercase; }
.search-box input { background: transparent; border: 0; color: var(--ink); font-size: 13px; min-width: 0; outline: 0; padding: 3px 0 1px; }
.search-box input::placeholder { color: #9ba3aa; }
.search-box i { color: var(--accent-dark); font-size: 18px; font-style: normal; }

.question-cloud { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.question-cloud--pilot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.question-cloud--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 55px; }
.question-item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; color: var(--ink); cursor: pointer; display: grid; gap: 11px; min-height: 185px; padding: 22px; text-align: left; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.question-item:hover, .question-item:focus-visible { border-color: #a9b0b6; box-shadow: 0 12px 30px rgba(24,31,38,.07); transform: translateY(-2px); }
.question-item.active { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.question-item.related { border-color: #a9b0b6; }
.question-item.subdued { opacity: .52; }
.question-number { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .09em; }
.question-item.loaded .question-number::after { background: var(--accent); border-radius: 50%; content: ""; display: inline-block; height: 6px; margin-left: 7px; width: 6px; }
.question-title { font-size: 16px; font-weight: 650; letter-spacing: -.015em; line-height: 1.38; }
.question-area { align-self: end; color: var(--muted); font-size: 9px; letter-spacing: .1em; margin-top: auto; text-transform: uppercase; }
.field-legend { align-items: center; border-top: 1px solid #cfd3d7; color: var(--muted); display: flex; font-size: 9px; gap: 22px; margin-top: 22px; padding-top: 18px; }
.field-legend span { align-items: center; display: flex; gap: 7px; }
.field-legend i { border: 1px solid #929aa1; border-radius: 50%; display: inline-block; height: 7px; width: 7px; }
.field-legend i.loaded-dot { background: var(--accent); border-color: var(--accent); }
.field-legend p { margin: 0 0 0 auto; max-width: 470px; text-align: right; }
.translation-notice { align-items: baseline; background: #fff8f1; border-bottom: 1px solid #e2c7b2; border-top: 1px solid #e2c7b2; color: #663e27; display: flex; gap: 24px; padding: 15px max(28px, calc((100vw - 1240px) / 2)); }
.translation-notice strong { font-size: 9px; letter-spacing: .1em; text-transform: uppercase; }
.translation-notice p { font-size: 11px; line-height: 1.5; margin: 0; }
.no-results { align-items: start; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; display: flex; flex-direction: column; gap: 18px; grid-column: 1 / -1; min-height: 220px; padding: 34px; }
.no-results button, .empty-copy button { background: transparent; border: 0; border-bottom: 1px solid var(--accent); color: inherit; cursor: pointer; padding: 5px 0; width: fit-content; }

.reader { background: #e9ecef; display: grid; gap: 0 28px; grid-template-columns: 170px minmax(0, 1040px); justify-content: center; padding: 90px max(28px, calc((100vw - 1280px) / 2)) 110px; scroll-margin-top: 94px; }
.reader > *:not(.reader-rail) { grid-column: 2; }
.reader-rail { align-self: start; grid-column: 1; grid-row: 1 / 20; padding-top: 9px; position: sticky; top: 124px; }
.reader-rail > a { color: var(--accent-dark); font-size: 9px; font-weight: 760; letter-spacing: .05em; text-decoration: none; text-transform: uppercase; }
.reader-rail > span { display: block; font-size: 46px; font-weight: 680; letter-spacing: -.06em; line-height: 1; margin-top: 40px; }
.reader-rail > p { color: var(--muted); font-size: 10px; line-height: 1.45; max-width: 145px; }
.reader-rail nav { border-top: 1px solid #c7ccd0; display: grid; gap: 8px; margin-top: 28px; padding-top: 16px; }
.reader-rail nav a { color: var(--muted); font-size: 9px; letter-spacing: .06em; text-decoration: none; text-transform: uppercase; }
.reader-rail nav a:hover { color: var(--accent-dark); }
.reader-header, .reader-section { background: var(--surface); border: 1px solid #d9dde0; border-radius: 18px; }
.reader-header { overflow: hidden; padding: 28px 36px 0; }
.reader-breadcrumb { color: var(--muted); display: flex; flex-wrap: wrap; font-size: 9px; gap: 8px; letter-spacing: .04em; margin-bottom: 24px; text-transform: uppercase; }
.reader-breadcrumb a { font-weight: 720; text-decoration: none; }
.reader-breadcrumb a:hover { color: var(--accent-dark); }
.reader-breadcrumb span:last-child { color: var(--accent-dark); }
.reader-title-row { display: grid; gap: 18px; grid-template-columns: 50px minmax(0, 1fr); }
.reader-question-number { align-items: center; background: var(--accent); border-radius: 50%; color: #1b0d05; display: flex; font-size: 12px; font-weight: 800; height: 46px; justify-content: center; width: 46px; }
.reader-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.reader-meta span { color: var(--muted); font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.reader-meta span:first-child { color: var(--accent-dark); }
.reader-header h1 { font-size: clamp(36px, 4.6vw, 56px); font-weight: 740; letter-spacing: -.045em; line-height: 1.06; margin: 11px 0 28px; max-width: 880px; }
.key-insight { align-items: start; background: var(--accent-soft); border-left: 4px solid var(--accent); border-radius: 9px; display: grid; gap: 16px; grid-template-columns: 18px 1fr; margin: 0 0 22px; padding: 19px 22px 20px; }
.key-insight > span { color: var(--accent); font-size: 15px; padding-top: 2px; }
.key-insight small { font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.key-insight p { font-size: 18px; font-weight: 620; line-height: 1.42; margin: 3px 0 0; }
.reader-tabs { border: 1px solid var(--line); border-radius: 9px; display: grid; grid-template-columns: 1.15fr 1.2fr 1fr .75fr; overflow: hidden; }
.reader-tabs a { color: #4f5962; font-size: 10px; font-weight: 690; padding: 12px 15px; position: relative; text-align: center; text-decoration: none; }
.reader-tabs a + a { border-left: 1px solid var(--line); }
.reader-tabs a:hover { background: #fafafa; color: var(--ink); }
.reader-tabs a.active { color: var(--ink); }
.reader-tabs a.active::after { background: var(--accent); bottom: 0; content: ""; height: 3px; left: 10px; position: absolute; right: 10px; }
.claim-status { background: var(--surface-2); border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, 1fr); margin: 20px -36px 0; padding: 0 36px; }
.claim-status--four { grid-template-columns: 1.35fr .65fr .65fr 1fr; }
.claim-status div { display: grid; gap: 3px; padding: 14px 18px 15px 0; }
.claim-status div + div { border-left: 1px solid var(--line); padding-left: 18px; }
.claim-status span { color: var(--muted); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.claim-status strong { font-size: 11px; font-weight: 680; }

.reader-section { display: grid; gap: 34px; grid-template-columns: 150px minmax(0, 1fr); margin-top: 14px; padding: 46px 42px; scroll-margin-top: 95px; }
.reader-section-label { color: var(--muted); font-size: 9px; font-weight: 800; letter-spacing: .12em; line-height: 1.5; text-transform: uppercase; }
.reader-section-body { min-width: 0; }
.section-intro { color: var(--muted); font-size: 11px; line-height: 1.58; margin: 0 0 26px; max-width: 720px; }
.matrix-answer {
  font-size: clamp(19px, 2.1vw, 25px);
  font-weight: 440;
  letter-spacing: -.018em;
  line-height: 1.62;
  margin: 0;
  max-width: 790px;
}
.mechanism-note { color: var(--muted); font-size: 11px; margin: 0 0 28px; }
.causal-sequence { border-top: 1px solid var(--ink); }
.causal-step { display: grid; gap: 20px; grid-template-columns: 48px 1fr; min-height: 150px; padding: 26px 0 29px; }
.causal-step + .causal-step { border-top: 1px solid var(--line); }
.causal-index { position: relative; }
.causal-index span { color: var(--accent-dark); font-size: 10px; font-weight: 800; letter-spacing: .08em; }
.causal-index i { background: var(--accent); border: 4px solid var(--surface); border-radius: 50%; height: 13px; left: 28px; position: absolute; top: 3px; width: 13px; z-index: 2; }
.causal-index::after { background: var(--line); content: ""; height: calc(100% + 27px); left: 34px; position: absolute; top: 15px; width: 1px; }
.causal-step:last-child .causal-index::after { display: none; }
.causal-step p { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .11em; margin: 0 0 8px; text-transform: uppercase; }
.causal-step h3 { font-size: 19px; font-weight: 520; letter-spacing: -.015em; line-height: 1.52; margin: 0; }
.aha-section { background: var(--ink-2); border-color: var(--ink-2); color: var(--surface); }
.aha-section .reader-section-label { color: var(--accent); }
.aha-section blockquote { font-size: clamp(25px, 3vw, 38px); font-weight: 520; letter-spacing: -.035em; line-height: 1.25; margin: 0; }
.serbia-heading { align-items: end; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; margin-bottom: 25px; padding-bottom: 18px; }
.serbia-heading > div { display: grid; gap: 4px; }
.serbia-heading span, .serbia-heading small { color: var(--muted); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.serbia-heading strong { font-size: 13px; font-weight: 700; }
.serbia-example { border-left: 3px solid var(--accent); font-size: 20px; line-height: 1.58; margin: 0; padding-left: 24px; }
.evidence-path-title { font-size: 11px; font-weight: 760; letter-spacing: .08em; margin: 42px 0 14px; text-transform: uppercase; }
.evidence-path { border-top: 1px solid var(--ink); }
.evidence-path article { display: grid; gap: 8px 16px; grid-template-columns: 38px 150px 1fr; padding: 24px 0 26px; }
.evidence-path article + article { border-top: 1px solid var(--line); }
.evidence-path article > span { color: var(--accent-dark); font-size: 9px; font-weight: 800; letter-spacing: .08em; }
.evidence-path article > small { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; line-height: 1.5; text-transform: uppercase; }
.evidence-path article > p { font-size: 15px; line-height: 1.62; margin: 0; }
.evidence-path-caveat { background: #f3f4f4; margin: 0 -18px; padding-left: 18px !important; padding-right: 18px !important; }
.serbia-finding { border-left: 3px solid var(--accent); padding: 1px 0 1px 24px; }
.serbia-finding p { color: var(--accent-dark); font-size: 8px; font-weight: 800; letter-spacing: .11em; margin: 0 0 8px; text-transform: uppercase; }
.serbia-finding h3 { font-size: 21px; font-weight: 540; line-height: 1.48; margin: 0; }
.scope-note { background: #f1f3f4; border-radius: 8px; color: #4e5961; font-size: 12px; margin: 27px 0 0; padding: 16px 18px; }
.notice-section .reader-section-body > p { font-size: 21px; line-height: 1.5; margin: 0; }
.important-section .reader-section-body > small { color: var(--accent-dark); display: block; font-size: 8px; font-weight: 800; letter-spacing: .09em; margin-bottom: 10px; text-transform: uppercase; }
.important-section .reader-section-body > p { color: #465159; font-size: 17px; line-height: 1.62; margin: 0; }
.evidence-intro { background: #f1f3f4; border-radius: 9px; display: grid; gap: 28px; grid-template-columns: 1fr 1fr; padding: 20px; }
.evidence-intro div { display: grid; }
.evidence-intro span { color: var(--muted); font-size: 8px; letter-spacing: .09em; text-transform: uppercase; }
.evidence-intro strong { font-size: 13px; margin-top: 3px; }
.evidence-intro p { color: var(--muted); font-size: 10px; line-height: 1.55; margin: 0; }
.source-ledger { border-top: 1px solid var(--ink); margin-top: 30px; }
.source-entry { align-items: start; border-bottom: 1px solid var(--line); display: grid; gap: 18px; grid-template-columns: 42px minmax(0, 1fr) 95px; padding: 22px 0 25px; }
.source-index { color: var(--accent-dark); font-size: 9px; font-weight: 800; letter-spacing: .09em; }
.source-entry > div > p { color: var(--muted); font-size: 8px; font-weight: 800; letter-spacing: .09em; margin: 0 0 6px; text-transform: uppercase; }
.source-entry h3 { font-size: 14px; font-weight: 640; line-height: 1.46; margin: 0; }
.source-entry dl { display: grid; gap: 2px; grid-template-columns: 130px 1fr; margin: 16px 0 0; }
.source-entry dt { color: var(--muted); font-size: 8px; letter-spacing: .07em; text-transform: uppercase; }
.source-entry dd { color: #4e5961; font-size: 11px; line-height: 1.55; margin: 0; }
.serbia-source-entry dl { row-gap: 12px; }
.serbia-source-entry dt { padding-top: 2px; }
.source-entry > a, .no-link { color: var(--accent-dark); font-size: 9px; justify-self: end; text-decoration: none; }
.no-link { color: var(--muted); }
.related-list { border-top: 1px solid var(--ink); }
.related-list button { align-items: center; background: transparent; border: 0; border-bottom: 1px solid var(--line); color: var(--ink); cursor: pointer; display: grid; gap: 11px; grid-template-columns: 105px 1fr 60px; padding: 19px 0; text-align: left; width: 100%; }
.related-list button:hover strong { color: var(--accent-dark); }
.related-list span { color: var(--muted); font-size: 8px; letter-spacing: .08em; text-transform: uppercase; }
.related-list strong { font-size: 14px; font-weight: 640; line-height: 1.42; transition: color .15s ease; }
.related-list i { color: var(--accent-dark); font-size: 9px; font-style: normal; justify-self: end; }
.reader-empty { min-height: 680px; }
.empty-copy { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; max-width: 850px; padding: 55px; }
.empty-copy h2 { font-size: clamp(36px, 4.5vw, 58px); font-weight: 680; letter-spacing: -.045em; line-height: 1.08; margin: 14px 0 30px; }
.empty-copy > p:not(.section-code) { color: #4d5860; max-width: 670px; }
.empty-copy button { color: var(--accent-dark); margin-top: 18px; }

.project-about { background: var(--paper); color: var(--ink); scroll-margin-top: 78px; }
.project-about-hero {
  align-items: end;
  background: var(--ink-2);
  color: var(--paper);
  display: grid;
  gap: clamp(46px, 7vw, 105px);
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, .72fr);
  padding: 105px max(28px, calc((100vw - 1200px) / 2)) 95px;
}
.project-about-hero > div > p { color: var(--accent); font-size: 10px; font-weight: 800; letter-spacing: .14em; margin: 0 0 17px; text-transform: uppercase; }
.project-about-hero h2 { font-size: clamp(43px, 5.2vw, 68px); font-weight: 660; letter-spacing: -.052em; line-height: 1.05; margin: 0; max-width: 800px; }
.project-about-hero > p { border-top: 1px solid #4a5159; color: #c3c8cc; font-size: 17px; line-height: 1.7; margin: 0; padding-top: 25px; }
.project-about-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 auto;
  max-width: 1256px;
  padding: 0 28px 105px;
  scroll-margin-top: 92px;
}
.project-about-section { border-bottom: 1px solid #cfd3d6; min-height: 350px; padding: 52px 54px 55px 0; }
.project-about-section:nth-child(even) { border-left: 1px solid #cfd3d6; padding-left: 54px; padding-right: 0; }
.project-about-section > span { color: var(--accent-dark); display: block; font-size: 10px; font-weight: 820; letter-spacing: .1em; margin-bottom: 31px; }
.project-about-section h3 { font-size: clamp(24px, 2.5vw, 31px); font-weight: 650; letter-spacing: -.035em; line-height: 1.14; margin: 0 0 24px; max-width: 470px; }
.project-about-section p { color: #4d5860; font-size: 15px; line-height: 1.75; margin: 0; max-width: 520px; }
.project-about-section p + p { margin-top: 16px; }

.about-contribute {
  color: var(--surface);
  background: #11161c;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 42px;
  max-width: 1200px;
  margin: 0 auto 90px;
  padding: 42px 46px;
  display: grid;
}
.about-contribute span {
  color: var(--accent);
  letter-spacing: .12em;
  font-size: 9px;
  font-weight: 800;
}
.about-contribute h3 {
  letter-spacing: -.035em;
  margin: 9px 0 12px;
  font-size: clamp(25px,3vw,38px);
  line-height: 1.18;
}
.about-contribute p {
  color: #b5bdc3;
  max-width: 760px;
  margin: 0;
  font-size: 14px;
}

footer { background: #090c10; color: var(--paper); display: grid; gap: 52px; grid-template-columns: 1.2fr 1fr .7fr; padding: 76px max(28px, calc((100vw - var(--max)) / 2)) 27px; scroll-margin-top: 78px; }
.footer-lockup > p { color: #929aa1; font-size: 12px; max-width: 540px; }
.footer-trust { border-left: 1px solid var(--line-dark); padding-left: 30px; }
.footer-trust span { color: var(--accent); font-size: 8px; letter-spacing: .11em; text-transform: uppercase; }
.footer-trust strong { display: block; font-size: 15px; font-weight: 640; margin-top: 9px; }
.footer-trust p { color: #929aa1; font-size: 11px; line-height: 1.6; }
.footer-links { align-content: start; display: grid; gap: 8px; }
.footer-links a { color: #a1a9af; font-size: 10px; text-decoration: none; }
.footer-links a:hover { color: var(--paper); }
.copyright { border-top: 1px solid var(--line-dark); color: #69737a; font-size: 8px; grid-column: 1 / -1; letter-spacing: .08em; margin: 18px 0 0; padding-top: 19px; text-transform: uppercase; }

@media (max-width: 1100px) {
  .masthead { grid-template-columns: 1fr auto; }
  .masthead nav { display: none; }
  .hero-evidence { grid-template-columns: 135px 155px 250px 1fr; }
  .system-map { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .area-node::after { display: none; }
  .area-focus { gap: 35px; grid-template-columns: .9fr 1.1fr; }
  .question-cloud--featured { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .reader { gap: 22px; grid-template-columns: 140px minmax(0, 1fr); }
  .reader-section { gap: 28px; grid-template-columns: 130px minmax(0, 1fr); }
  .project-about-hero { grid-template-columns: 1fr 350px; }
  footer { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-column: 1 / -1; grid-template-columns: repeat(5, 1fr); }
}

@media (max-width: 780px) {
  body { font-size: 16px; }
  .masthead { min-height: 72px; padding: 9px 14px; }
  .brand-project strong { font-size: 19px; }
  .brand-case strong { font-size: 17px; }
  .brand-project small, .brand-case small { display: none; }
  .brand-divider { margin: 0 10px; }
  .brand-a::after { height: 17px; left: 2px; width: 5px; }
  .language { font-size: 9px; padding: 6px 7px; }
  .launch-hero, .launch-inner { min-height: 610px; }
  .launch-inner { padding: 28px 18px 20px; }
  .hero-image { background-position: 62% center; }
  .hero-kicker span:last-child { display: none; }
  .hero-copy { margin-bottom: 35px; }
  .hero-copy h1 { font-size: clamp(43px, 13vw, 62px); }
  .hero-copy > p { font-size: 17px; }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .hero-actions a { justify-content: space-between; width: 100%; }
  .hero-evidence { grid-template-columns: repeat(3, 1fr); }
  .hero-evidence > div { padding-right: 10px; }
  .hero-evidence > div + div { padding-left: 10px; }
  .hero-evidence strong { font-size: 13px; }
  .hero-evidence span { font-size: 7px; line-height: 1.3; }
  .hero-evidence p { display: none; }
  .serbia-banner { border-radius: 13px; height: 190px; margin-top: 10px; width: calc(100% - 20px); }
  .serbia-banner-image { background-position: 58% center; }
  .serbia-banner-copy { left: 24px; }
  .serbia-banner-copy small { font-size: 10px; max-width: 230px; }
  .serbia-banner > a { right: 22px; }
  .area-map { padding: 75px 18px 80px; }
  .area-map-header { align-items: start; gap: 28px; grid-template-columns: 1fr; }
  .area-map-header h2 { font-size: clamp(38px, 11vw, 52px); }
  .system-map { gap: 10px; grid-template-columns: 1fr 1fr; margin-top: 45px; }
  .area-node { min-height: 142px; padding: 16px; }
  .area-node > strong { font-size: 12px; }
  .area-focus { display: block; margin-top: 35px; padding: 30px 22px; }
  .area-question-list { margin-top: 38px; }
  .question-field { padding: 75px 18px 65px; }
  .field-topline, .field-controls { gap: 24px; grid-template-columns: 1fr; }
  .field-controls { margin-top: 40px; }
  .area-filter { flex-wrap: nowrap; margin-right: -18px; overflow-x: auto; padding-right: 18px; }
  .area-filter button { flex: 0 0 auto; }
  .question-cloud { grid-template-columns: 1fr; }
  .question-cloud--featured { margin-top: 38px; }
  .question-item { min-height: 155px; }
  .field-legend { align-items: flex-start; flex-wrap: wrap; }
  .field-legend p { margin-left: 0; text-align: left; }
  .translation-notice { align-items: flex-start; flex-direction: column; gap: 5px; padding: 14px 18px; }
  .reader { display: block; padding: 58px 12px 65px; }
  .reader-rail { align-items: center; display: grid; gap: 10px; grid-template-columns: 1fr auto; margin: 0 6px 20px; padding: 0 0 13px; position: static; }
  .reader-rail > span { font-size: 34px; grid-column: 2; grid-row: 1 / 3; margin: 0; }
  .reader-rail > p { margin: 0; }
  .reader-rail nav { display: none; }
  .reader-header { border-radius: 14px; padding: 20px 18px 0; }
  .reader-breadcrumb { margin-bottom: 18px; }
  .reader-title-row { gap: 12px; grid-template-columns: 40px 1fr; }
  .reader-question-number { font-size: 10px; height: 38px; width: 38px; }
  .reader-header h1 { font-size: clamp(32px, 9vw, 43px); }
  .key-insight { grid-template-columns: 15px 1fr; padding: 16px; }
  .key-insight p { font-size: 16px; }
  .reader-tabs { grid-template-columns: 1fr 1fr; }
  .reader-tabs a:nth-child(3) { border-left: 0; border-top: 1px solid var(--line); }
  .reader-tabs a:nth-child(4) { border-top: 1px solid var(--line); }
  .claim-status { grid-template-columns: 1fr; margin: 18px -18px 0; padding: 0 18px; }
  .claim-status div { border-bottom: 1px solid var(--line); }
  .claim-status div + div { border-left: 0; padding-left: 0; }
  .claim-status div:last-child { border-bottom: 0; }
  .reader-section { border-radius: 14px; display: block; padding: 33px 22px; }
  .reader-section-label { margin-bottom: 22px; }
  .matrix-answer { font-size: 19px; }
  .serbia-heading { align-items: start; flex-direction: column; gap: 8px; }
  .serbia-example { font-size: 18px; padding-left: 18px; }
  .evidence-path article { gap: 7px 11px; grid-template-columns: 32px 1fr; }
  .evidence-path article > p { grid-column: 2; }
  .causal-step { grid-template-columns: 42px 1fr; min-height: 145px; }
  .causal-index i { left: 24px; }
  .causal-index::after { left: 30px; }
  .evidence-intro { grid-template-columns: 1fr; }
  .source-entry { grid-template-columns: 34px 1fr; }
  .source-entry > a, .source-entry > .no-link { grid-column: 2; justify-self: start; }
  .source-entry dl { grid-template-columns: 1fr; }
  .related-list button { align-items: start; grid-template-columns: 1fr 50px; }
  .related-list span { grid-column: 1 / -1; }
  .empty-copy { padding: 34px 22px; }
  .project-about-hero { align-items: start; display: block; padding: 72px 18px 65px; }
  .project-about-hero h2 { font-size: clamp(40px, 11vw, 54px); }
  .project-about-hero > p { font-size: 16px; margin-top: 42px; padding-top: 22px; }
  .project-about-grid { display: block; padding: 0 18px 72px; }
  .project-about-section { min-height: 0; padding: 42px 0 45px; }
  .project-about-section:nth-child(even) { border-left: 0; padding: 42px 0 45px; }
  .project-about-section > span { margin-bottom: 22px; }
  .project-about-section h3 { font-size: 27px; }
  .project-about-section p { font-size: 15px; }
  footer { display: block; padding: 58px 18px 25px; }
  .footer-trust { border-left: 0; border-top: 1px solid var(--line-dark); margin-top: 40px; padding: 28px 0 0; }
  .footer-links { grid-template-columns: 1fr 1fr; margin-top: 35px; }
  .copyright { margin-top: 45px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}

/* Final R1 identity, connected modes, contribution form */
.brand-logo { align-items: center; display: flex; justify-content: center; }
.brand-logo img { display: block; height: 36px; max-width: 210px; width: auto; }
.brand-logo small { color: #69727a; display: block; font-size: 9px; font-weight: 600; letter-spacing: .01em; line-height: 1.28; margin-top: 7px; max-width: 235px; text-transform: none; white-space: normal; }
.brand-logo--footer img { height: 42px; max-width: 245px; }
.brand-logo--footer small { color: #8e979f; }
.brand-switcher-item > a { align-items: center; }
.masthead .brand-switcher { min-height: 52px; }

main[data-mode="avtokratija"] .hero-image { background-image: url("/autlas-serbia.png"); background-position: center 62%; }
.mode-banner { display: block; text-decoration: none; }
.mode-banner-copy { max-width: min(620px, calc(100% - 150px)); }
.mode-banner-copy .brand-logo { justify-content: flex-start; margin-bottom: 18px; width: fit-content; }
.mode-banner-copy .brand-logo img { height: 42px; }
.mode-banner-copy > strong { display: block; font-size: clamp(23px, 3vw, 34px); line-height: 1.15; }
.mode-banner-copy > small { font-size: 14px; line-height: 1.5; max-width: 560px; }
.mode-banner > span { font-size: 38px; position: absolute; right: 38px; top: calc(50% - 30px); z-index: 2; }
.mode-banner:hover { border-color: #68717a; }
.mode-banner:hover > span { color: var(--accent); }

.area-node, .question-item, .area-question-list a, .related-list a, .library-linked a { text-decoration: none; }
.library-linked a { background: #f2f3f4; border: 1px solid #dce0e3; border-radius: 999px; color: #4d5860; font-size: 9px; max-width: 340px; overflow: hidden; padding: 7px 11px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.library-linked a:hover { border-color: var(--accent); color: var(--ink); }
.library-linked a b { color: var(--accent-dark); margin-right: 7px; }
.related-list a { align-items: center; border-top: 1px solid var(--line); display: grid; gap: 12px 22px; grid-template-columns: 1fr auto; padding: 22px 0; }
.related-list a > span { color: var(--muted); font-size: 9px; grid-column: 1 / -1; letter-spacing: .06em; text-transform: uppercase; }
.related-list a > strong { font-size: 17px; line-height: 1.42; }
.related-list a > i { color: var(--accent-dark); font-size: 10px; font-style: normal; white-space: nowrap; }
.library-hero > a { color: #c8cdd1; font-size: 10px; text-decoration: none; }

.project-about-section a, .copyright a, .feedback-contact a { text-decoration-color: var(--accent); text-underline-offset: 3px; }
.about-contribute { align-items: center; background: #11161c; color: var(--surface); display: grid; gap: 42px; grid-template-columns: 1fr auto; margin: 0 auto 90px; max-width: 1200px; padding: 42px 46px; }
.about-contribute span { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .12em; }
.about-contribute h3 { font-size: clamp(25px, 3vw, 38px); letter-spacing: -.035em; line-height: 1.18; margin: 9px 0 12px; }
.about-contribute p { color: #b5bdc3; font-size: 14px; margin: 0; max-width: 760px; }
.about-contribute > a, .text-action { color: var(--accent); font-size: 12px; font-weight: 750; text-decoration: none; }
.feedback-section, .library-contribute { background: var(--accent-soft); border-color: #ffd5bd; }
.library-contribute { align-items: center; display: flex; justify-content: space-between; margin: 28px auto 0; max-width: 1200px; padding: 25px 30px; }
.library-contribute p { margin: 0; }

.footer-lockup > p { margin-top: 36px; }
.copyright a { color: inherit; }

.feedback-page { background: var(--paper); min-height: 100vh; padding-bottom: 90px; }
.feedback-header { align-items: center; display: flex; justify-content: space-between; margin: 0 auto; max-width: 1180px; padding: 34px 28px; }
.feedback-header > a { color: var(--muted); font-size: 11px; text-decoration: none; }
.feedback-header img { height: 58px; max-width: 290px; }
.feedback-intro { background: var(--ink-2); color: var(--surface); padding: 70px max(28px, calc((100vw - 1124px) / 2)) 78px; }
.feedback-intro > p { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .13em; margin: 0 0 14px; }
.feedback-intro h1 { font-size: clamp(40px, 6vw, 70px); letter-spacing: -.05em; line-height: 1.06; margin: 0; max-width: 980px; }
.feedback-intro > div { border-top: 1px solid #454c54; color: #bdc4ca; margin-top: 30px; max-width: 760px; padding-top: 22px; }
.feedback-form { display: grid; gap: 24px; grid-template-columns: 1fr 1fr; margin: 0 auto; max-width: 1124px; padding: 52px 28px 20px; }
.feedback-form label { display: grid; gap: 8px; }
.feedback-form label > span { color: var(--muted); font-size: 9px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.feedback-form input, .feedback-form select, .feedback-form textarea { background: var(--surface); border: 1px solid #cbd0d4; border-radius: 9px; color: var(--ink); padding: 12px 14px; width: 100%; }
.feedback-form textarea { line-height: 1.55; resize: vertical; }
.feedback-wide { grid-column: 1 / -1; }
.feedback-submit { align-items: center; display: flex; gap: 24px; }
.feedback-submit button { background: var(--accent); border: 0; border-radius: 999px; cursor: pointer; font-weight: 760; padding: 13px 24px; }
.feedback-success { color: #176a3a; font-weight: 650; margin: 28px auto 0; max-width: 1068px; padding: 0 28px; }
.feedback-contact { color: var(--muted); font-size: 12px; margin: 24px auto 0; max-width: 1068px; }

@media (max-width: 780px) {
  .brand-logo img { height: 25px; max-width: 132px; }
  .brand-logo small { display: block; font-size: 7px; line-height: 1.25; margin-top: 5px; max-width: 132px; }
  .brand-logo--footer img { height: 33px; max-width: 190px; }
  .mode-banner-copy { max-width: calc(100% - 75px); }
  .mode-banner-copy .brand-logo img { height: 30px; }
  .mode-banner-copy > strong { font-size: 21px; }
  .mode-banner-copy > small { font-size: 10px; line-height: 1.4; }
  .mode-banner > span { right: 20px; }
  .about-contribute { display: block; margin: 0 12px 55px; padding: 30px 24px; }
  .about-contribute > a { display: inline-block; margin-top: 23px; }
  .library-contribute { align-items: flex-start; display: grid; gap: 14px; margin: 24px 12px 0; }
  .library-linked a { max-width: none; width: 100%; }
  .feedback-header { padding: 22px 18px; }
  .feedback-header img { height: 42px; max-width: 210px; }
  .feedback-intro { padding: 54px 18px 58px; }
  .feedback-form { grid-template-columns: 1fr; padding: 36px 18px 15px; }
  .feedback-wide { grid-column: auto; }
  .feedback-submit { align-items: flex-start; flex-direction: column; }
  .feedback-contact { margin: 20px 18px 0; }
  .area-question-list > a { gap: 10px; grid-template-columns: 32px minmax(0, 1fr) 18px; min-height: 72px; padding: 17px 0; }
  .area-question-list > a > strong { font-size: 15px; line-height: 1.48; }
}

/* Two connected public modes */
.brand-switcher { align-items: stretch; display: flex; min-width: 0; }
.brand-switcher-item { align-items: stretch; display: flex; }
.brand-switcher-item > a { display: flex; text-decoration: none; }
.brand-switcher-divider { background: #bbbdbd; display: block; margin: 0 22px; width: 1px; }
.brand-logo { align-items: flex-start; display: flex; flex-direction: column; justify-content: center; white-space: normal; }
.brand-logo strong { font-size: 27px; font-weight: 880; letter-spacing: -.06em; line-height: .94; }
.brand-logo small { color: #69727a; font-size: 9px; font-weight: 600; letter-spacing: .01em; line-height: 1.28; margin-top: 7px; max-width: 235px; text-transform: none; white-space: normal; }
.brand-logo--autlas strong i { font-style: normal; position: relative; z-index: 1; }
.brand-logo--autlas strong i::after { background: var(--accent); bottom: -1px; content: ""; height: 24px; left: 3px; position: absolute; transform: skew(-17deg); width: 6px; z-index: -1; }
.brand-logo--av strong { font-size: 25px; }
.brand-logo--av strong i { color: var(--accent); font-style: normal; font-weight: 900; margin-right: 1px; }
.brand-logo--av strong b { font-weight: 880; }
.brand-logo--footer { color: var(--surface); }
.brand-logo--footer small { color: #8e979f; }
.brand-switcher--footer .brand-switcher-divider { background: #424850; }

.masthead { grid-template-columns: minmax(440px, 1fr) auto 92px; }
.masthead nav { gap: 22px; }
.hero-evidence { grid-template-columns: repeat(4, minmax(120px, 170px)); }
.hero-evidence > div:last-child { border-left: 1px solid rgba(255,255,255,.16); }

.mode-banner { background: var(--ink-2); border: 1px solid #313842; border-radius: 20px; color: var(--surface); height: 235px; margin: 18px auto 0; max-width: var(--max); overflow: hidden; position: relative; width: calc(100% - 36px); }
.mode-banner-image, .mode-banner-shade { inset: 0; position: absolute; }
.mode-banner--avtokratija .mode-banner-image { background: url("/autlas-serbia.png") center / cover no-repeat; }
.mode-banner--autlas .mode-banner-image { background: url("/autlas-hero.png") center 45% / cover no-repeat; }
.mode-banner-shade { background: linear-gradient(90deg, rgba(8,12,17,.98) 0%, rgba(8,12,17,.78) 43%, rgba(8,12,17,.12) 82%); }
.mode-banner-copy { left: clamp(28px, 5vw, 68px); position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; }
.mode-banner-copy small { color: #b6bec4; display: block; font-size: 12px; margin-top: 15px; }
.mode-banner > a { font-size: 38px; position: absolute; right: 38px; text-decoration: none; top: calc(50% - 28px); z-index: 2; }
.mode-banner > a:hover { color: var(--accent); }

.answer-paragraphs { max-width: 810px; }
.answer-paragraphs > div + div, .answer-paragraphs > p + p { margin-top: 27px; }
.answer-paragraphs h3 { font-size: 20px; font-weight: 690; letter-spacing: -.02em; line-height: 1.35; margin: 0 0 8px; }
.answer-paragraphs p { font-size: clamp(18px, 1.8vw, 23px); font-weight: 430; letter-spacing: -.014em; line-height: 1.66; margin: 0; }
.original-language-label { background: #fff3e9; border-radius: 999px; color: var(--accent-dark); display: inline-block; font-size: 8px; font-weight: 800; letter-spacing: .1em; margin-bottom: 18px; padding: 6px 10px; text-transform: uppercase; }
.citation-translation { color: var(--muted); font-size: 11px !important; font-style: italic; font-weight: 450 !important; letter-spacing: 0 !important; line-height: 1.5; margin: 7px 0 0 !important; text-transform: none !important; }
.claim-status--autlas { grid-template-columns: 1.5fr .5fr; }

/* Complete source libraries */
.library-page { background: var(--paper); min-height: 72vh; padding-bottom: 100px; }
.library-hero { background: var(--ink-2); color: var(--surface); padding: 80px max(28px, calc((100vw - 1200px) / 2)) 78px; }
.library-hero > button { background: transparent; border: 0; color: #c8cdd1; cursor: pointer; font-size: 10px; padding: 0; }
.library-hero > p { color: var(--accent); font-size: 9px; font-weight: 800; letter-spacing: .14em; margin: 52px 0 13px; text-transform: uppercase; }
.library-hero h1 { font-size: clamp(44px, 6vw, 72px); font-weight: 680; letter-spacing: -.05em; line-height: 1.04; margin: 0; max-width: 900px; }
.library-hero > div { border-top: 1px solid #444b53; color: #bdc4c9; font-size: 16px; margin-top: 32px; max-width: 760px; padding-top: 22px; }
.library-controls { align-items: end; display: grid; gap: 14px; grid-template-columns: minmax(300px, 1.6fr) 1fr 1fr auto; margin: 0 auto; max-width: 1256px; padding: 38px 28px 22px; }
.library-controls label { display: grid; gap: 6px; }
.library-controls label > span { color: var(--muted); font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.library-controls input, .library-controls select { background: var(--surface); border: 1px solid #cdd2d6; border-radius: 10px; color: var(--ink); min-height: 45px; padding: 9px 12px; width: 100%; }
.library-controls button { background: transparent; border: 0; border-bottom: 1px solid var(--accent); color: var(--accent-dark); cursor: pointer; font-size: 10px; margin-bottom: 9px; padding: 3px 0; }
.library-result-count { border-top: 1px solid #cfd3d6; color: var(--muted); font-size: 10px; margin: 0 auto; max-width: 1200px; padding: 18px 0 5px; }
.library-result-count strong { color: var(--ink); font-size: 16px; margin-right: 5px; }
.library-list { display: grid; gap: 14px; margin: 0 auto; max-width: 1256px; padding: 14px 28px 0; }
.library-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 27px 30px 29px; }
.library-card-top { align-items: center; display: flex; justify-content: space-between; margin-bottom: 12px; }
.library-card-top span { color: var(--accent-dark); font-size: 8px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.library-card-top b { color: var(--muted); font-size: 9px; font-weight: 650; }
.library-card > h3 { font-size: 18px; font-weight: 660; line-height: 1.48; margin: 0; max-width: 980px; }
.library-card > dl { display: grid; gap: 10px 24px; grid-template-columns: 190px 1fr; margin: 23px 0; }
.library-card dt { color: var(--muted); font-size: 8px; font-weight: 760; letter-spacing: .08em; padding-top: 3px; text-transform: uppercase; }
.library-card dd { color: #4d5860; font-size: 13px; line-height: 1.62; margin: 0; }
.library-card > a { color: var(--accent-dark); display: inline-block; font-size: 10px; margin-top: 21px; text-decoration: none; }
.library-linked { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 18px; }
.library-linked > span { color: var(--muted); display: block; font-size: 8px; font-weight: 780; letter-spacing: .08em; margin-bottom: 10px; text-transform: uppercase; }
.library-linked > div { display: flex; flex-wrap: wrap; gap: 7px; }
.library-linked button { background: #f2f3f4; border: 1px solid #dce0e3; border-radius: 999px; color: #4d5860; cursor: pointer; font-size: 9px; max-width: 340px; overflow: hidden; padding: 7px 11px; text-align: left; text-overflow: ellipsis; white-space: nowrap; }
.library-linked button:hover { border-color: var(--accent); color: var(--ink); }
.library-linked button b { color: var(--accent-dark); margin-right: 7px; }
.no-library-results { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; margin: 20px auto; max-width: 1200px; padding: 42px; }
.no-library-results button { background: transparent; border: 0; border-bottom: 1px solid var(--accent); color: var(--accent-dark); cursor: pointer; }

.footer-lockup > p { margin-top: 30px; }
.footer-links button { background: transparent; border: 0; color: #a1a9af; cursor: pointer; font-size: 10px; padding: 0; text-align: left; }
.footer-links button:hover { color: var(--paper); }

@media (max-width: 1100px) {
  .masthead { grid-template-columns: 1fr auto; }
  .library-controls { grid-template-columns: 1fr 1fr; }
  .library-controls button { justify-self: start; }
}

@media (max-width: 780px) {
  .brand-logo strong { font-size: 19px; }
  .brand-logo--av strong { font-size: 17px; }
  .brand-logo small { display: block; font-size: 9px; line-height: 1.25; margin-top: 5px; max-width: 132px; }
  .brand-logo--autlas strong i::after { height: 17px; left: 2px; width: 5px; }
  .brand-switcher-divider { margin: 0 9px; }
  .mode-banner { border-radius: 13px; height: 190px; margin-top: 10px; width: calc(100% - 20px); }
  .mode-banner-copy { left: 24px; }
  .mode-banner-copy small { font-size: 10px; max-width: 230px; }
  .mode-banner > a { right: 22px; }
  .hero-evidence { grid-template-columns: repeat(2, 1fr); }
  .hero-evidence > div:nth-child(3) { border-top: 1px solid rgba(255,255,255,.16); border-left: 0; }
  .hero-evidence > div:nth-child(4) { border-top: 1px solid rgba(255,255,255,.16); }
  .answer-paragraphs p { font-size: 18px; }
  .answer-paragraphs > div + div { margin-top: 22px; }
  .library-hero { padding: 58px 18px 55px; }
  .library-hero > p { margin-top: 40px; }
  .library-controls { display: grid; grid-template-columns: 1fr; padding: 28px 18px 18px; }
  .library-result-count { margin: 0 18px; }
  .library-list { padding: 12px 12px 0; }
  .library-card { padding: 22px 18px 24px; }
  .library-card > dl { grid-template-columns: 1fr; }
  .library-linked > div { display: grid; }
  .library-linked button { max-width: none; width: 100%; }
  .brand-switcher--footer { flex-wrap: wrap; gap: 18px; }
  .brand-switcher--footer .brand-switcher-divider { display: none; }
}

/* Gentle entrance for page sections as they enter the viewport. */
.scroll-reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .65s ease var(--reveal-delay, 0ms), transform .65s cubic-bezier(.2, .7, .2, 1) var(--reveal-delay, 0ms);
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .scroll-reveal,
  .scroll-reveal.is-visible {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
