/* Bravexis design system — shared by every Bravexis app.
   Type: Archivo (variable width + weight) and JetBrains Mono for data.
   8px spacing grid, 1.25 type scale, light + dark themes. */

@font-face { font-family: 'Archivo'; src: url('/assets/fonts/archivo.woff2') format('woff2'); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: 'JB Mono'; src: url('/assets/fonts/jbmono.woff2') format('woff2'); font-weight: 400; font-display: swap; }

:root {
  --ink: #0B0B0C; --paper: #F5F4EF; --surface: #FFFFFF; --surface-2: #EFEDE6;
  --line: #E1DED5; --muted: #5E5D59; --text: #141415;
  --accent: #FF4D00; --accent-ink: #0B0B0C; --accent-soft: #FFE4D6;
  --ok: #0F7B3F; --ok-soft: #DDF3E5; --warn: #9A5B00; --warn-soft: #FFF0D2; --bad: #B4231A; --bad-soft: #FBE1DE;
  --r-sm: 8px; --r: 14px; --r-lg: 22px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 48px; --s6: 64px; --s7: 96px;
  --f-xs: .8rem; --f-sm: .9rem; --f-base: 1rem; --f-md: 1.25rem; --f-lg: 1.563rem; --f-xl: 1.953rem; --f-2xl: 2.441rem; --f-3xl: clamp(2.4rem, 6vw, 4.6rem);
  --shadow: 0 1px 0 rgba(11,11,12,.04), 0 8px 28px -12px rgba(11,11,12,.18);
  --max: 1180px;
  color-scheme: light;
}
[data-theme='dark'] {
  --paper: #0B0B0C; --surface: #141416; --surface-2: #1C1C1F; --line: #2A2A2E; --muted: #A3A19B; --text: #EDEBE6; --ink: #F5F4EF;
  --accent-soft: #3A1A0B; --ok: #4ADE80; --ok-soft: #0F2A1A; --warn: #F5B544; --warn-soft: #2E2210; --bad: #FF7A6E; --bad-soft: #3A1512;
  --shadow: 0 1px 0 rgba(0,0,0,.4), 0 10px 30px -14px rgba(0,0,0,.7);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--text); font: 400 var(--f-base)/1.6 'Archivo', system-ui, sans-serif; font-stretch: 100%; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--accent); color: #0B0B0C; }
h1, h2, h3, h4 { line-height: 1.12; margin: 0 0 var(--s2); font-weight: 750; letter-spacing: -.015em; }
h1 { font-size: var(--f-3xl); font-stretch: 112%; letter-spacing: -.03em; }
h2 { font-size: var(--f-2xl); font-stretch: 108%; }
h3 { font-size: var(--f-md); }
p { margin: 0 0 var(--s2); max-width: 68ch; }
.mono { font-family: 'JB Mono', ui-monospace, monospace; font-size: .92em; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: var(--f-sm); }
.xs { font-size: var(--f-xs); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 var(--s3); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Header */
.hdr { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--paper) 86%, transparent); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); }
.hdr .wrap { display: flex; align-items: center; gap: var(--s3); height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand img { height: 22px; width: auto; }
.brand .sub { font: 500 .72rem 'JB Mono', monospace; text-transform: uppercase; letter-spacing: .12em; padding: 4px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--muted); }
.logo-dark { display: none; }
[data-theme='dark'] .logo-light { display: none; }
[data-theme='dark'] .logo-dark { display: block; }
.nav { display: flex; gap: var(--s3); margin-left: auto; align-items: center; }
.nav a { text-decoration: none; font-size: var(--f-sm); font-weight: 550; color: var(--muted); }
.nav a:hover, .nav a[aria-current='page'] { color: var(--text); }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); cursor: pointer; }
.icon-btn svg { width: 18px; height: 18px; }
.menu-btn { display: none; }
@media (max-width: 860px) {
  .menu-btn { display: grid; margin-left: auto; }
  .nav { display: none; position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0; background: var(--paper); border-bottom: 1px solid var(--line); padding: var(--s1) var(--s3) var(--s3); }
  .nav.open { display: flex; }
  .nav a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: var(--f-base); }
  .nav .btn { margin-top: var(--s2); }
}

/* Buttons + forms */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 12px; border: 1px solid var(--ink); background: var(--ink); color: var(--paper); font: 650 var(--f-sm)/1 'Archivo', sans-serif; text-decoration: none; cursor: pointer; transition: transform .18s ease, background .18s ease; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn.accent { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn.sm { min-height: 36px; padding: 0 14px; border-radius: 10px; font-size: var(--f-xs); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; transform: none; }
.field { display: grid; gap: 6px; margin-bottom: var(--s2); }
.field label { font-weight: 600; font-size: var(--f-sm); }
.field .hint { font-size: var(--f-xs); color: var(--muted); }
input, select, textarea { width: 100%; min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: inherit; }
textarea { min-height: 130px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 35%, transparent); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: var(--f-sm); }
.check input { width: 18px; min-height: 18px; height: 18px; margin-top: 3px; accent-color: var(--accent); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; background: var(--surface-2); font-size: var(--f-xs); font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.chip.on, .chip:hover { border-color: var(--ink); }
label.chip { cursor: pointer; }
label.chip input { width: auto; min-height: 0; height: auto; accent-color: var(--accent); }
.badge { display: inline-block; padding: 3px 9px; border-radius: 999px; font: 600 .72rem 'JB Mono', monospace; text-transform: uppercase; letter-spacing: .06em; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.neutral { background: var(--surface-2); color: var(--muted); }
.notice { padding: var(--s2); border-radius: var(--r); background: var(--surface-2); border: 1px solid var(--line); margin-bottom: var(--s3); }
.notice.ok { background: var(--ok-soft); border-color: transparent; }
.notice.bad { background: var(--bad-soft); border-color: transparent; }

/* Layout */
.section { padding: var(--s7) 0; }
.section.tight { padding: var(--s5) 0; }
.section.band { background: var(--surface); border-block: 1px solid var(--line); }
.eyebrow { font: 500 .75rem 'JB Mono', monospace; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); margin-bottom: var(--s2); display: flex; align-items: center; gap: 10px; }
.eyebrow::before { content: ''; width: 18px; height: 2px; background: var(--accent); }
.grid { display: grid; gap: var(--s3); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } .section { padding: var(--s6) 0; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4); box-shadow: var(--shadow); }
.card.flat { box-shadow: none; }
.card h3 { margin-bottom: var(--s1); }
.split { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s5); align-items: center; }
.sidebar-layout { display: grid; grid-template-columns: 280px 1fr; gap: var(--s4); align-items: start; }
@media (max-width: 960px) { .split, .sidebar-layout { grid-template-columns: 1fr; } }
.stack > * + * { margin-top: var(--s2); }
.row { display: flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.between { justify-content: space-between; }
.num { font-weight: 800; font-size: var(--f-2xl); font-stretch: 115%; letter-spacing: -.03em; line-height: 1; }

/* Data list (tenders, talent, jobs) */
.list { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; }
.item { display: grid; grid-template-columns: 1fr auto; gap: var(--s2); padding: 18px var(--s3); border-bottom: 1px solid var(--line); text-decoration: none; transition: background .15s ease; }
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--surface-2); }
.item h3 { font-size: 1.05rem; font-weight: 650; margin: 0 0 4px; line-height: 1.35; }
.item .meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: var(--f-xs); color: var(--muted); }
.item .side { text-align: right; min-width: 118px; }
@media (max-width: 640px) { .item { grid-template-columns: 1fr; } .item .side { text-align: left; } }
.days { font: 700 1.25rem 'Archivo', sans-serif; font-stretch: 115%; }
.days.urgent { color: var(--bad); }

table.t { width: 100%; border-collapse: collapse; font-size: var(--f-sm); }
table.t th, table.t td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
table.t th { font: 500 .72rem 'JB Mono', monospace; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }

.prose { max-width: 72ch; }
.prose h2 { font-size: var(--f-xl); margin-top: var(--s5); }
.prose h3 { margin-top: var(--s4); }
.prose ul, .prose ol { padding-left: 1.2em; } .prose li { margin-bottom: 6px; }
.crumbs { font-size: var(--f-xs); color: var(--muted); margin-bottom: var(--s3); display: flex; flex-wrap: wrap; gap: 6px; }
.crumbs a { text-decoration: none; } .crumbs a:hover { text-decoration: underline; }

details.faq { border-bottom: 1px solid var(--line); padding: var(--s2) 0; }
details.faq summary { cursor: pointer; font-weight: 650; list-style: none; display: flex; justify-content: space-between; gap: var(--s2); }
details.faq summary::after { content: '+'; font: 500 1.3rem 'JB Mono', monospace; color: var(--muted); }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin: var(--s1) 0 0; color: var(--muted); }

.pager { display: flex; gap: var(--s1); justify-content: center; margin-top: var(--s4); }

/* Footer */
.ftr { border-top: 1px solid var(--line); padding: var(--s6) 0 var(--s4); margin-top: var(--s6); font-size: var(--f-sm); }
.ftr .cols { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--s4); }
.ftr h4 { font: 500 .72rem 'JB Mono', monospace; text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.ftr ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ftr a { text-decoration: none; color: var(--muted); } .ftr a:hover { color: var(--text); }
.ftr .base { display: flex; justify-content: space-between; gap: var(--s2); flex-wrap: wrap; margin-top: var(--s5); padding-top: var(--s3); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--f-xs); }
@media (max-width: 760px) { .ftr .cols { grid-template-columns: 1fr 1fr; } }

/* Motion (short, never hides content without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); display: inline-block; animation: pulse 1.8s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .js .reveal { opacity: 1; transform: none; } }
@media print { .hdr, .ftr, .no-print { display: none !important; } body { background: #fff; color: #000; } }

/* Languages, currency note, language banner */
.langs{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;margin:28px 0 0;padding-top:20px;border-top:1px solid var(--line)}
.langs a{font-size:.85rem;color:var(--muted);text-decoration:none}
.langs a[aria-current]{color:var(--text);font-weight:600}
.fx-note{margin:12px 0 0}
.lang-banner{position:fixed;left:50%;bottom:16px;transform:translateX(-50%);z-index:60;display:flex;gap:12px;align-items:center;background:var(--ink);color:var(--paper);padding:10px 12px 10px 18px;border-radius:999px;box-shadow:0 10px 30px rgba(0,0,0,.25);font-size:.9rem;max-width:calc(100% - 24px)}
.lang-banner .icon-btn{color:var(--paper)}
.lang-banner[hidden]{display:none}
