/* ============================================================
   DFIR Dominican — Dark "Technical / Terminal" Theme
   Rebuilt off WordPress. Cyan #00b4e6 + electric blue on
   near-black navy. Mono accents, grid lines, hacker-adjacent.
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Sora:wght@400;500;600;700;800&family=DM+Sans:opsz,wght@9..40,300;9..40,400;9..40,500;9..40,600;9..40,700&family=JetBrains+Mono:wght@400;500;600;700&display=swap');

:root {
  /* ── Fonts ─────────────────────────────────────────────── */
  --font-display: 'Sora', system-ui, sans-serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, monospace;

  /* ── Brand accents ─────────────────────────────────────── */
  --cyan:        #00b4e6;   /* brand primary */
  --cyan-bright: #2ad4ff;
  --cyan-dim:    #0a7ea4;
  --blue:        #3b82f6;   /* electric blue secondary */
  --blue-bright: #60a5fa;
  --teal:        #14b8a6;   /* teal accent */
  --teal-bright: #2dd4bf;

  /* ── Dark surfaces (near-black navy → elevated) ────────── */
  --bg-void:     #060a0f;   /* deepest, page backdrop */
  --bg-page:     #080d14;   /* page base */
  --bg-surface:  #0c131d;   /* cards */
  --bg-surface-2:#101a27;   /* elevated card / hover */
  --bg-elevated: #142030;   /* inputs, raised chips */
  --bg-nav:      rgba(8, 13, 20, 0.85);

  /* ── Borders / lines ───────────────────────────────────── */
  --line:        #18242f;   /* hairline grid */
  --line-2:      #20303f;   /* default border */
  --line-3:      #2c4254;   /* strong / hover border */
  --line-glow:   rgba(0, 180, 230, 0.45);

  /* ── Text ──────────────────────────────────────────────── */
  --text:        #e8f1f8;   /* primary */
  --text-2:      #9fb4c6;   /* secondary */
  --text-3:      #64798c;   /* muted */
  --text-4:      #3f5366;   /* faint / placeholder */

  /* ── Quality score scale (5 tiers) ─────────────────────── */
  --score-excellent: #2dd4bf;  /* 9.0–10.0  green  */
  --score-good:      #00b4e6;  /* 8.0–8.9   blue   */
  --score-orange:    #f97316;  /* 7.0–7.9   orange */
  --score-yellow:    #f5c518;  /* 6.0–6.9   yellow */
  --score-poor:      #f0506e;  /* 5.0–5.9 Low · red (below 5.0 is never published) */
  --score-low:       #f0506e;  /* alias */
  --score-average:   #f5c518;  /* legacy alias → yellow */

  /* ── Status ────────────────────────────────────────────── */
  --ok:    #2dd4bf;
  --warn:  #f5a524;
  --err:   #f0506e;
  --info:  #60a5fa;

  /* ── Radius ────────────────────────────────────────────── */
  --r-sm: 4px;
  --r-md: 6px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-pill: 999px;

  /* ── Layout ────────────────────────────────────────────── */
  --maxw: 1240px;
  --nav-h: 64px;

  /* ── Shadows / glows ───────────────────────────────────── */
  --shadow: 0 10px 30px rgba(0,0,0,0.5), 0 2px 8px rgba(0,0,0,0.4);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.6);
  --glow-cyan: 0 0 0 1px rgba(0,180,230,0.5), 0 0 24px rgba(0,180,230,0.18);

  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; scroll-behavior: smooth; }

body {
  background-color: var(--bg-void);
  /* faint technical grid */
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px, 64px 64px;
  background-position: -1px -1px;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.6;
  min-height: 100vh;
  position: relative;
}
/* radial vignette + cyan aura over the grid */
body::before {
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 600px at 80% -10%, rgba(0,180,230,0.10), transparent 60%),
    radial-gradient(700px 500px at 0% 100%, rgba(59,130,246,0.08), transparent 60%),
    linear-gradient(180deg, rgba(6,10,15,0.4), rgba(6,10,15,0.92));
}

img, svg, video { display: block; max-width: 100%; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input, select, textarea { font-family: inherit; font-size: inherit; color: inherit; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.02em;
  color: var(--text);
}

::selection { background: rgba(0,180,230,0.32); color: #fff; }

::-webkit-scrollbar { width: 11px; height: 11px; }
::-webkit-scrollbar-track { background: var(--bg-void); }
::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 999px; border: 3px solid var(--bg-void); }
::-webkit-scrollbar-thumb:hover { background: var(--line-3); }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; border-radius: var(--r-sm); }

/* ── Shared layout helpers ───────────────────────────────── */
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* mono eyebrow label e.g. // jobs_board */
.mono-label {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--cyan);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.mono-label::before { content: "//"; color: var(--text-4); }
.mono-label.bracket::before { content: "["; }
.mono-label.bracket::after { content: "]"; color: var(--text-4); }

.kbd {
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 2px 7px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: var(--r-sm);
  background: var(--bg-elevated);
  color: var(--text-2);
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-mono);
  font-size: 13px; font-weight: 600; letter-spacing: 0.02em;
  padding: 11px 18px;
  border-radius: var(--r-md);
  transition: all 0.16s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}
.btn svg { width: 16px; height: 16px; }
.btn-primary {
  background: var(--cyan); color: #02151c; font-weight: 700;
  box-shadow: 0 0 0 1px rgba(0,180,230,0.3), 0 8px 22px rgba(0,180,230,0.22);
}
.btn-primary:hover { background: var(--cyan-bright); transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(42,212,255,0.5), 0 12px 28px rgba(0,180,230,0.3); }
.btn-ghost {
  background: rgba(255,255,255,0.02); color: var(--text); border-color: var(--line-2);
}
.btn-ghost:hover { border-color: var(--line-3); background: rgba(255,255,255,0.05); transform: translateY(-1px); }
.btn-quiet { background: transparent; color: var(--text-2); padding: 8px 12px; }
.btn-quiet:hover { color: var(--text); background: rgba(255,255,255,0.04); }

/* ── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--line-2);
  border-radius: var(--r-lg);
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.2s var(--ease);
}
.card:hover { border-color: var(--line-3); }

/* ── Badges / pills ──────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono);
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  height: 34px;
  padding: 0 13px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-2);
  color: var(--text-2);
  background: rgba(255,255,255,0.02);
  text-transform: uppercase;
  line-height: 1;
  white-space: nowrap;
}
.badge .dot { width: 6px; height: 6px; border-radius: 999px; background: currentColor; }
.badge-remote { color: var(--teal-bright); border-color: rgba(45,212,191,0.3); background: rgba(45,212,191,0.08); }
.badge-hybrid { color: #f5c518; border-color: rgba(245,197,24,0.32); background: rgba(245,197,24,0.08); }
.badge-onsite { color: #f0506e; border-color: rgba(240,80,110,0.32); background: rgba(240,80,110,0.08); }

/* level pill */
.pill {
  display: inline-flex; align-items: center;
  font-family: var(--font-mono);
  font-size: 11px; font-weight: 600;
  padding: 3px 10px; border-radius: var(--r-pill);
  border: 1px solid var(--line-2); color: var(--text-2);
}

/* ── Inputs ──────────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 7px; }
.field label {
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.04em;
  color: var(--text-2); text-transform: uppercase;
}
.field .req { color: var(--cyan); }
.input, .select, .textarea {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 11px 13px;
  color: var(--text);
  font-size: 14px;
  transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.input::placeholder, .textarea::placeholder { color: var(--text-4); }
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--cyan);
  box-shadow: 0 0 0 3px rgba(0,180,230,0.16);
}
.select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2364798c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; padding-right: 38px;
}
.textarea { resize: vertical; min-height: 110px; line-height: 1.6; }

/* ── Score chip ──────────────────────────────────────────── */
.score {
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-weight: 700;
  border-radius: var(--r-md);
  border: 1px solid currentColor;
  background: rgba(255,255,255,0.02);
  line-height: 1;
}
.score .num { font-size: 18px; }
.score .max { font-size: 9px; opacity: 0.6; margin-top: 2px; letter-spacing: 0; }

/* utility */
.divider { height: 1px; background: var(--line); border: 0; }
.muted { color: var(--text-3); }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }

/* entrance — content is always visible (no opacity-based reveal) */
.fade-up { opacity: 1; }

@keyframes blink { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.caret { display: inline-block; width: 9px; height: 1.05em; background: var(--cyan); vertical-align: -2px; margin-left: 3px; animation: blink 1.1s steps(1) infinite; }

/* Job descriptions — one standard look for every job (job page, side panel, previews) */
.jd{color:var(--text-2);font-size:14.5px;line-height:1.7;overflow-wrap:anywhere}
.jd > :first-child{margin-top:0}
.jd p{margin:0 0 12px;color:var(--text-2)}
.jd h4{margin:20px 0 8px;font-size:15px;font-weight:700;color:var(--text);line-height:1.4}
.jd h4 + h4{margin-top:4px;font-size:14px;font-weight:600}
.jd b,.jd strong{color:var(--text);font-weight:600}
.jd em,.jd i{color:inherit}
.jd a{color:var(--cyan)}
.jd ul,.jd ol{margin:0 0 14px;padding-left:0;list-style:none;display:flex;flex-direction:column;gap:7px}
.jd ol{counter-reset:jd}
.jd li{position:relative;padding-left:18px;color:var(--text-2)}
.jd ul > li::before{content:"▸";position:absolute;left:2px;top:0;color:var(--cyan);font-size:13px;line-height:inherit}
.jd ol > li{counter-increment:jd}.jd ol > li::before{content:counter(jd) ".";position:absolute;left:0;color:var(--cyan);font-family:var(--font-mono);font-size:12px}
.jd li > ul,.jd li > ol{margin:7px 0 4px}
.jd li > b:first-child,.jd li > strong:first-child{color:var(--text)}
.jd table{border-collapse:collapse;margin:0 0 14px;font-size:13.5px}.jd td,.jd th{border:1px solid var(--line-2);padding:6px 10px;color:var(--text-2)}
.jd dl{margin:0 0 14px}.jd dt{color:var(--text);font-weight:600;margin-top:8px}.jd dd{margin:2px 0 0}

.job-id-badge{font-family:var(--font-mono);letter-spacing:.02em;color:var(--text-2)}

/* ── Back buttons (site-wide) ───────────────────────────── */
a.back-home, a.back, a.back-btn, a[data-dash-back] {
  display: inline-flex; align-items: center; gap: 10px; width: max-content; max-width: 100%;
  padding: 4px 16px 4px 4px; border: 1px solid var(--line-2); border-radius: 999px;
  background: rgba(255,255,255,0.025); color: var(--text); text-decoration: none;
  font-family: var(--font-body, "DM Sans", sans-serif); font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.2;
  transition: border-color .16s var(--ease), background .16s var(--ease), color .16s var(--ease), box-shadow .16s var(--ease);
}
a.back-home, .post-hero a.back, .ru-hero a.back, .job-hero a.back, .ru-head a.back-btn { display: flex; width: max-content; margin-bottom: 22px; }
a.back-home svg, a.back svg, a.back-btn svg, a[data-dash-back] svg {
  width: 28px; height: 28px; flex-shrink: 0; padding: 6px; box-sizing: border-box; border-radius: 50%;
  background: rgba(0,180,230,0.12); color: var(--cyan); stroke-width: 2.25;
  transition: transform .18s var(--ease), background .16s var(--ease), color .16s var(--ease);
}
a.back-home:hover, a.back:hover, a.back-btn:hover, a[data-dash-back]:hover {
  border-color: rgba(0,180,230,0.5); background: rgba(0,180,230,0.07); color: var(--text); box-shadow: 0 0 0 3px rgba(0,180,230,0.08);
}
a.back-home:hover svg, a.back:hover svg, a.back-btn:hover svg, a[data-dash-back]:hover svg { transform: translateX(-3px); background: var(--cyan); color: #02151c; }
a.back-home:focus-visible, a.back:focus-visible, a.back-btn:focus-visible, a[data-dash-back]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.ed-top a.back { padding-top: 3px; padding-bottom: 3px; font-size: 12.5px; }
.ed-top a.back svg { width: 26px; height: 26px; }
@media (prefers-reduced-motion: reduce) { a.back-home svg, a.back svg, a.back-btn svg, a[data-dash-back] svg { transition: none; } }
