/* ============================================================
   DFIR Dominican — shared content-page styles
   Used by index, resources, about, blog, submit, admin.
   ============================================================ */

/* ── Section scaffolding ─────────────────────────────────── */
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }
.section-head { margin-bottom: 36px; }
.section-head h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; margin-top: 12px; }
.section-head p { color: var(--text-2); font-size: 16px; max-width: 620px; margin-top: 12px; line-height: 1.6; }
.section-head.center { text-align: center; }
.section-head.center p { margin-left: auto; margin-right: auto; }
.section-head.center .mono-label { justify-content: center; }

/* ── Hero ────────────────────────────────────────────────── */
.hero { padding: 64px 0 40px; position: relative; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; line-height: 1.04; letter-spacing: -0.03em; }
.hero h1 .accent { color: var(--cyan); }
.hero .hero-lede { color: var(--text-2); font-size: 18px; line-height: 1.6; margin-top: 22px; max-width: 540px; }
.hero-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero-trust { display: flex; gap: 26px; margin-top: 36px; flex-wrap: wrap; }
.hero-trust .ht { display: flex; flex-direction: column; }
.hero-trust .ht b { font-family: var(--font-mono); font-size: 22px; color: var(--text); font-weight: 700; }
.hero-trust .ht span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-top: 4px; }

@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 36px; } }

/* ── Hero mini stats dashboard ───────────────────────────── */
.hero-dash {
  display: block;
  background: linear-gradient(180deg, #0a121c, #070d15);
  border: 1px solid var(--line-3); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,180,230,0.08), 0 0 60px rgba(0,180,230,0.06);
  padding: 28px 30px 24px;
}
.hd-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 22px; }
.hd-kpi { border: 1px solid var(--line-2); border-radius: var(--r-md); padding: 16px 18px; background: rgba(255,255,255,0.015); }
.hd-kpi b { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: var(--text); display: block; }
.hd-kpi b.cyan { color: var(--cyan); }
.hd-kpi span { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-2); display: block; margin-top: 6px; }
.hd-block { margin-top: 26px; }
.hd-lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-2); margin-bottom: 12px; }
/* salary column chart */
.hd-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; align-items: end; }
.hd-col { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.hd-col-track { height: 74px; width: 100%; display: flex; align-items: flex-end; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.hd-col-fill { width: 100%; background: linear-gradient(180deg, var(--cyan), var(--blue)); border-radius: 5px 5px 0 0; }
.hd-col-v { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--text); }
.hd-col-l { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-2); white-space: nowrap; }
/* mode split bar */
.hd-split { display: flex; height: 14px; border-radius: 999px; overflow: hidden; gap: 3px; }
.hd-seg { min-width: 6px; }
.hd-seg.s0, .hd-legend i.s0 { background: var(--teal-bright); }
.hd-seg.s1, .hd-legend i.s1 { background: #f5c518; }
.hd-seg.s2, .hd-legend i.s2 { background: #f0506e; }
.hd-legend { display: flex; gap: 16px; margin-top: 11px; flex-wrap: wrap; }
.hd-legend span { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); }
.hd-legend i { width: 9px; height: 9px; border-radius: 3px; display: inline-block; }
/* score tier rows */
.hd-row { display: grid; grid-template-columns: 64px 1fr 22px; gap: 10px; align-items: center; margin-top: 7px; }
.hd-row-l { font-family: var(--font-mono); font-size: 11px; }
.hd-row-track { height: 8px; background: var(--bg-elevated); border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.hd-row-fill { height: 100%; border-radius: 999px; }
.hd-row-v { font-family: var(--font-mono); font-size: 11.5px; color: var(--text-2); text-align: right; }

/* ── Hero spotlight card (top-scored role) ───────────────── */
.hero-spot {
  display: block;
  background: linear-gradient(180deg, #0a121c, #070d15);
  border: 1px solid var(--line-3); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,180,230,0.08), 0 0 60px rgba(0,180,230,0.06);
  padding: 24px 26px 22px;
  transition: border-color 0.16s var(--ease), transform 0.16s var(--ease), box-shadow 0.2s var(--ease);
}
.hero-spot:hover { border-color: rgba(0,180,230,0.45); transform: translateY(-3px);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,180,230,0.2), 0 0 70px rgba(0,180,230,0.1); }
.hs-head { display: flex; justify-content: space-between; align-items: center; }
.hs-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-mono); font-size: 11px; color: var(--ok); }
.hs-live .d { width: 6px; height: 6px; border-radius: 999px; background: var(--ok); box-shadow: 0 0 7px var(--ok); }
.hs-job { display: flex; gap: 16px; align-items: center; margin-top: 18px; }
.hs-meta { min-width: 0; }
.hs-meta h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.hs-co { color: var(--text-2); font-size: 13.5px; margin-top: 4px; }
.hs-tags { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.hs-salary { display: flex; align-items: center; gap: 5px; font-family: var(--font-mono); font-weight: 700; font-size: 19px; color: var(--text);
  margin-top: 16px; padding: 12px 15px; border: 1px solid var(--line-2); border-radius: var(--r-md);
  background: linear-gradient(135deg, rgba(0,180,230,0.06), transparent); }
.hs-salary i { width: 17px; height: 17px; color: var(--cyan); }
.hs-salary span { font-size: 12px; color: var(--text-3); font-weight: 400; }
.hs-bars { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }
.hs-row-head { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-2); margin-bottom: 4px; }
.hs-row-head .mono { font-family: var(--font-mono); color: var(--text); font-size: 11.5px; }
.hs-row-head em { color: var(--text-4); font-style: normal; font-size: 10.5px; }
.hs-track { height: 6px; background: var(--bg-elevated); border-radius: 999px; overflow: hidden; border: 1px solid var(--line); }
.hs-fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--cyan)); border-radius: 999px; }
.hs-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.hs-foot .mono { font-family: var(--font-mono); font-size: 11px; color: var(--text-4); }

/* ── Terminal window motif ───────────────────────────────── */
.terminal {
  background: linear-gradient(180deg, #0a121c, #070d15);
  border: 1px solid var(--line-3); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 0 0 1px rgba(0,180,230,0.08), 0 0 60px rgba(0,180,230,0.06);
  overflow: hidden; font-family: var(--font-mono);
}
.terminal-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--line-2); background: rgba(255,255,255,0.015); }
.terminal-bar .dots { display: flex; gap: 6px; }
.terminal-bar .dots i { width: 11px; height: 11px; border-radius: 999px; display: block; }
.terminal-bar .dots i:nth-child(1) { background: #f0506e; }
.terminal-bar .dots i:nth-child(2) { background: #f5a524; }
.terminal-bar .dots i:nth-child(3) { background: #2dd4bf; }
.terminal-bar .title { font-size: 12px; color: var(--text-3); margin-left: 6px; }
.terminal-body { padding: 18px 18px 20px; font-size: 13px; line-height: 1.85; }
.terminal-body .ln { display: block; white-space: pre-wrap; color: var(--text-2); }
.terminal-body .c-prompt { color: var(--cyan); }
.terminal-body .c-flag { color: var(--blue-bright); }
.terminal-body .c-ok { color: var(--ok); }
.terminal-body .c-warn { color: var(--warn); }
.terminal-body .c-dim { color: var(--text-4); }
.terminal-body .c-str { color: var(--teal-bright); }

/* ── Feature grid ────────────────────────────────────────── */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
  background: var(--bg-surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  padding: 26px 24px; transition: border-color 0.16s var(--ease), transform 0.16s var(--ease);
}
.feature:hover { border-color: var(--line-3); transform: translateY(-3px); }
.feature-ico {
  width: 44px; height: 44px; border-radius: var(--r-md); display: flex; align-items: center; justify-content: center;
  background: rgba(0,180,230,0.08); border: 1px solid rgba(0,180,230,0.2); color: var(--cyan); margin-bottom: 18px;
}
.feature-ico i { width: 21px; height: 21px; }
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { color: var(--text-2); font-size: 14px; margin-top: 9px; line-height: 1.6; }
@media (max-width: 820px) { .feature-grid { grid-template-columns: 1fr; } }

/* ── Post cards (blog / jobs updates) ────────────────────── */
.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.post-card {
  background: var(--bg-surface); border: 1px solid var(--line-2); border-radius: var(--r-lg);
  overflow: hidden; transition: border-color 0.16s var(--ease), transform 0.16s var(--ease); display: flex; flex-direction: column;
}
.post-card:hover { border-color: var(--line-3); transform: translateY(-3px); }
.post-thumb {
  aspect-ratio: 16/9; background: linear-gradient(135deg, #0c1a28, #0a1420);
  display: flex; align-items: center; justify-content: center; position: relative; border-bottom: 1px solid var(--line-2);
  overflow: hidden;
}
.post-thumb .thumb-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.post-thumb .glyph { font-family: var(--font-mono); font-size: 13px; color: var(--cyan); opacity: 0.85; text-align: center; }
/* branded blog covers */
.cover { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; text-align: center; padding: 12px 18px; }
.cover-icon { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; background: rgba(0,180,230,0.1); border: 1px solid rgba(0,180,230,0.3); color: var(--cyan); box-shadow: 0 0 24px rgba(0,180,230,0.15); flex-shrink: 0; }
.cover-icon i { width: 18px; height: 18px; }
.cover-series { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--cyan); opacity: 0.9; }
.cover-title { font-family: var(--font-display); font-size: 17px; font-weight: 800; letter-spacing: -0.01em; color: var(--text); line-height: 1.15; text-wrap: balance; }
.cover-logo { width: 40px; height: 40px; border-radius: 9px; overflow: hidden; border: 1px solid var(--line-3); background: #fff; }
.cover-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.post-thumb.has-cover::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 160px at 50% 110%, rgba(0,180,230,0.16), transparent 70%); }
.post-thumb.has-cover::after { display: none; }
.post-thumb .roundup-cover { position: absolute; inset: 0; width: 100%; height: 100%; }
.post-thumb::after { content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(0,180,230,0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(0,180,230,0.06) 1px, transparent 1px);
  background-size: 22px 22px; }
.post-body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.post-cat { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--cyan); }
.post-card h3 { font-size: 17px; font-weight: 700; margin-top: 10px; line-height: 1.25; }
.post-card p { color: var(--text-2); font-size: 13.5px; margin-top: 9px; line-height: 1.55; flex: 1; }
.post-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.post-tags .tag { font-family: var(--font-mono); font-size: 12.5px; color: var(--text-2); padding: 4px 12px; border-radius: var(--r-pill); border: 1px solid var(--line-2); background: rgba(255,255,255,0.015); }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 16px; font-family: var(--font-mono); font-size: 12px; color: var(--text-2); min-width: 0; }
.post-meta .av { width: 22px; height: 22px; border-radius: 999px; background: linear-gradient(135deg, var(--cyan), var(--blue)); display: inline-block; }
.post-read { margin-left: auto; font-family: var(--font-mono); font-size: 12px; font-weight: 600; color: var(--cyan); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; transition: gap 0.15s var(--ease); }
.post-card:hover .post-read { gap: 9px; }
@media (max-width: 820px) { .post-grid { grid-template-columns: 1fr; } }

/* ── CTA band ────────────────────────────────────────────── */
.cta-band {
  border: 1px solid var(--line-3); border-radius: var(--r-xl); padding: 48px;
  background: radial-gradient(700px 300px at 50% -40%, rgba(0,180,230,0.14), transparent 70%), var(--bg-surface);
  text-align: center; position: relative; overflow: hidden;
}
.cta-band h2 { font-size: clamp(26px, 3.5vw, 38px); font-weight: 800; }
.cta-band p { color: var(--text-2); font-size: 16px; margin-top: 12px; max-width: 520px; margin-left: auto; margin-right: auto; }
.cta-band .hero-cta { justify-content: center; margin-top: 28px; }

/* ── Prose (blog post / about) ───────────────────────────── */
.prose { max-width: 720px; }
.prose p { color: var(--text-2); font-size: 16px; line-height: 1.75; margin: 18px 0; }
.prose h2 { font-size: 26px; margin: 36px 0 14px; }
.prose h3 { font-size: 20px; margin: 28px 0 10px; }
.prose ul { margin: 16px 0; padding-left: 0; display: flex; flex-direction: column; gap: 10px; }
.prose ul ul { margin: 6px 0 0; gap: 6px; }
.prose ul li { color: var(--text-2); font-size: 15.5px; line-height: 1.6; padding-left: 18px; position: relative; }
.prose ul li::before { content: "▸"; position: absolute; left: 2px; top: 0; color: var(--cyan); font-size: 13px; line-height: inherit; }
.prose a { color: var(--cyan); text-decoration: underline; text-underline-offset: 3px; }
.prose blockquote { border-left: 3px solid var(--cyan); padding: 6px 0 6px 22px; margin: 24px 0; color: var(--text); font-style: italic; font-size: 17px; }
.prose code { background: var(--bg-elevated); padding: 2px 6px; border-radius: 4px; font-size: 0.88em; color: var(--teal-bright); border: 1px solid var(--line-2); }

/* ── Link arrow ──────────────────────────────────────────── */
.link-arrow { display: inline-flex; align-items: center; gap: 7px; font-family: var(--font-mono); font-size: 13px; color: var(--cyan); transition: gap 0.15s var(--ease); }
.link-arrow:hover { gap: 11px; }
.link-arrow i { width: 15px; height: 15px; }

.section-foot { text-align: center; margin-top: 34px; }

/* ── Pagination (shared with jobs board styling) ─────────── */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 34px 0 48px; flex-wrap: wrap; }
.pager-num, .pager-arrow {
  min-width: 38px; height: 38px; padding: 0 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  border: 1px solid var(--line-2); border-radius: var(--r-md);
  color: var(--text-2); background: var(--bg-surface);
  transition: all 0.14s var(--ease);
}
.pager-num:hover, .pager-arrow:hover:not([disabled]) { border-color: var(--line-3); color: var(--text); background: var(--bg-surface-2); }
.pager-num.on { color: var(--cyan); border-color: rgba(0,180,230,0.45); background: rgba(0,180,230,0.08); }
.pager-arrow i { width: 16px; height: 16px; }
.pager-arrow[disabled] { opacity: 0.35; cursor: not-allowed; }
.pager-info { font-family: var(--font-mono); font-size: 13px; color: var(--text-2); margin-left: 10px; }
.pager-info b { color: var(--cyan); }

/* ── Back to Home link (top of main pages) ───────────────── */
