/* GovBid AI · Editorial GovCon Design System */
/* Bloomberg Businessweek × GAO report × instrument panel */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;0,9..144,800;0,9..144,900;1,9..144,400;1,9..144,500;1,9..144,600;1,9..144,700;1,9..144,800&family=Inter:wght@300;400;500;600;700&family=JetBrains+Mono:wght@400;500;600&family=Instrument+Serif:ital@0;1&family=Newsreader:ital,opsz,wght@0,6..72,400;0,6..72,500;0,6..72,600;0,6..72,700;1,6..72,400;1,6..72,500;1,6..72,600&display=swap');

:root {
  /* Paper & ink */
  --cream: #fafaf7;
  --cream-2: #f1efe8;
  --cream-3: #e6e3d8;
  --paper: #ffffff;
  --navy: #14233d;
  --navy-2: #1c2f4d;
  --navy-3: #2c3e5e;
  --navy-soft: #4a5a78;
  --ink: #14233d;
  --ink-soft: #3a4860;
  --ink-mute: #6b7689;
  --rule: #d8d4c8;
  --rule-soft: #e6e3d8;
  --amber: #e8a317;
  --amber-deep: #c98a0a;
  --amber-tint: #f4d488;
  --oxblood: #8a2a2a;
  --moss: #4a6741;

  /* Functional palette · for product UI use too */
  --status-compliant: #4a6741;
  --status-warn: #c98a0a;
  --status-miss: #8a2a2a;
  --status-draft: #4a5a78;

  /* Working type ramp · long-form reading metrics */
  --doc-paper: #fdfbf5;
  --doc-text-size: 16px;
  --doc-line-height: 1.65;
  --doc-measure: 68ch;

  /* Type stack */
  --serif: 'Fraunces', 'Newsreader', Georgia, serif;
  --serif-italic: 'Fraunces', 'Instrument Serif', Georgia, serif;
  --sans: 'Inter', -apple-system, system-ui, sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', Menlo, monospace;

  /* Scale */
  --container: 1280px;
  --container-wide: 1440px;
  --container-narrow: 920px;
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Subtle paper grain */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.4;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(20, 35, 61, 0.015) 0%, transparent 40%),
    radial-gradient(circle at 80% 70%, rgba(20, 35, 61, 0.015) 0%, transparent 40%);
  mix-blend-mode: multiply;
}

a { color: inherit; text-decoration: none; }

/* ================== TYPE ================== */

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.eyebrow-amber {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-deep);
}

.smallcaps {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.mono { font-family: var(--mono); }

.serif-display {
  font-family: var(--serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 0.96;
  font-variation-settings: "opsz" 144;
}

.italic-amber {
  font-style: italic;
  color: var(--amber-deep);
  font-variation-settings: "opsz" 144;
}

/* ================== LAYOUT ================== */

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.container-wide {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 32px;
  position: relative;
  z-index: 2;
}

.rule {
  border: 0;
  border-top: 1px solid var(--rule);
  margin: 0;
}

.rule-thin {
  border: 0;
  border-top: 1px solid var(--rule-soft);
  margin: 0;
}

.rule-double {
  border: 0;
  border-top: 3px double var(--rule);
  margin: 0;
}

/* ================== NAV ================== */

.gb-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}

.gb-nav-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  gap: 40px;
}

.gb-mark {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.gb-mark-dot {
  width: 8px;
  height: 8px;
  background: var(--amber);
  border-radius: 50%;
  display: inline-block;
  align-self: center;
}

.gb-mark em {
  font-style: italic;
  color: var(--amber-deep);
  font-variation-settings: "opsz" 144;
}

.gb-nav-links {
  display: flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}

.gb-nav-links a {
  position: relative;
  padding: 6px 0;
  transition: color 0.15s;
}

.gb-nav-links a:hover { color: var(--navy); }

.gb-nav-links a.active {
  color: var(--navy);
}

.gb-nav-links a.active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--amber);
}

.gb-nav-spacer { flex: 1; }

.gb-nav-cta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 14px;
}

/* ================== BUTTONS ================== */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.01em;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--cream);
  cursor: pointer;
  transition: all 0.15s;
  border-radius: 0;
  white-space: nowrap;
}

.btn:hover { background: var(--navy-2); }

.btn-amber {
  background: var(--amber);
  border-color: var(--amber);
  color: var(--navy);
  font-weight: 600;
}

.btn-amber:hover {
  background: var(--amber-deep);
  border-color: var(--amber-deep);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
}

.btn-ghost:hover {
  background: var(--navy);
  color: var(--cream);
}

.btn-link {
  background: transparent;
  border: 0;
  color: var(--navy);
  padding: 0;
  font-weight: 500;
  border-bottom: 1px solid var(--navy);
  border-radius: 0;
}

.btn-link:hover {
  color: var(--amber-deep);
  border-bottom-color: var(--amber-deep);
}

.btn-arrow::after {
  content: '→';
  font-family: var(--serif);
  transition: transform 0.15s;
}

.btn-arrow:hover::after { transform: translateX(3px); }

/* ================== INSTITUTIONAL CHIP ================== */

.inst-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px;
  border: 1px solid var(--rule);
  background: var(--paper);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
}

.inst-chip-label {
  color: var(--ink-mute);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.inst-chip strong {
  color: var(--navy);
  font-weight: 600;
}

/* ================== TRUST BAR ================== */

.trust-bar {
  background: var(--paper);
  border-bottom: 1px solid var(--rule);
}

.trust-bar-inner {
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 12px 32px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: nowrap;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  white-space: nowrap;
}

.trust-item {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.trust-item-label {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.trust-item-value {
  color: var(--navy);
  font-weight: 600;
}

.trust-divider {
  width: 1px;
  height: 12px;
  background: var(--rule);
}

/* ================== FOOTER ================== */

.gb-footer {
  background: var(--navy);
  color: var(--cream-2);
  padding: 80px 0 40px;
  margin-top: 120px;
  position: relative;
  z-index: 2;
}

.gb-footer .container-wide {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 48px;
}

.gb-footer h4 {
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 20px;
}

.gb-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}

.gb-footer ul a {
  color: var(--cream-2);
  opacity: 0.8;
  transition: opacity 0.15s;
}

.gb-footer ul a:hover { opacity: 1; color: var(--amber-tint); }

.gb-footer-mark {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 600;
  color: var(--cream);
  margin-bottom: 16px;
}

.gb-footer-mark em {
  font-style: italic;
  color: var(--amber);
  font-variation-settings: "opsz" 144;
}

.gb-footer-blurb {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  line-height: 1.5;
  color: var(--cream-2);
  opacity: 0.85;
  max-width: 320px;
  margin-bottom: 24px;
}

.gb-footer-meta {
  font-family: var(--mono);
  font-size: 11px;
  line-height: 1.8;
  color: var(--cream-2);
  opacity: 0.7;
}

.gb-footer-meta strong {
  color: var(--amber-tint);
  font-weight: 500;
}

.gb-footer-bottom {
  max-width: var(--container-wide);
  margin: 64px auto 0;
  padding: 24px 32px 0;
  border-top: 1px solid rgba(243, 236, 217, 0.15);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--cream-2);
  opacity: 0.6;
  letter-spacing: 0.04em;
}

.itc-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.itc-mark-dot {
  width: 16px;
  height: 16px;
  border: 1px solid currentColor;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 8px;
  font-weight: 700;
}

/* ================== SECTION HEADERS ================== */

.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--rule);
  margin-bottom: 56px;
}

.section-head-num {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.section-head-title {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
  font-style: italic;
  color: var(--navy);
  font-variation-settings: "opsz" 144;
}

/* ================== UTILITIES ================== */

.section { padding: 96px 0; position: relative; z-index: 2; }
.section-sm { padding: 64px 0; position: relative; z-index: 2; }
.section-lg { padding: 128px 0; position: relative; z-index: 2; }

.dotted-rule {
  border: 0;
  border-top: 1px dotted var(--rule);
  margin: 0;
}

.bg-paper { background: var(--paper); }
.bg-cream2 { background: var(--cream-2); }
.bg-navy { background: var(--navy); color: var(--cream); }

.text-mute { color: var(--ink-mute); }
.text-amber { color: var(--amber-deep); }
.text-navy { color: var(--navy); }

/* Tweaks panel positioning override */
.tweaks-panel-host {
  font-family: var(--sans) !important;
}

/* No-fancy serif for big numerals */
.tabular { font-variant-numeric: tabular-nums; }

/* ================== EDITORIAL PHOTOGRAPHY ================== */
/* Duotone treatment · navy shadows, amber highlights · applied to all photos
   for a unified editorial feel. Approximates Bloomberg / FT photo treatment. */

.photo-duotone {
  position: relative;
  display: block;
  overflow: hidden;
  background: var(--navy);
}
.photo-duotone img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: grayscale(1) contrast(1.05) brightness(0.95);
  mix-blend-mode: luminosity;
  opacity: 0.92;
}
.photo-duotone::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20,35,61,0.55) 0%, rgba(20,35,61,0.85) 100%);
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
.photo-duotone::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(232,163,23,0.18) 0%, rgba(232,163,23,0) 60%);
  mix-blend-mode: screen;
  pointer-events: none;
  z-index: 2;
}

.photo-frame {
  position: relative;
  border: 1px solid var(--rule);
  background: var(--navy);
}
.photo-caption {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
  margin-top: 10px;
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.photo-caption-num {
  color: var(--amber-deep);
  font-weight: 600;
  letter-spacing: 0.16em;
}

/* Frame markers (corner ticks) */
.photo-ticks {
  position: absolute;
  inset: 8px;
  pointer-events: none;
  z-index: 3;
}
.photo-ticks::before,
.photo-ticks::after {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  border: 1px solid var(--amber);
  opacity: 0.85;
}
.photo-ticks::before {
  top: 0; left: 0;
  border-right: 0;
  border-bottom: 0;
}
.photo-ticks::after {
  bottom: 0; right: 0;
  border-left: 0;
  border-top: 0;
}

/* Marker / pen-feel SVG style */
.ink-stroke {
  stroke: var(--navy);
  fill: none;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ink-stroke-amber {
  stroke: var(--amber-deep);
  fill: none;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ink-fill { fill: var(--navy); }
.ink-fill-amber { fill: var(--amber-deep); }

/* Annotation arrows / labels */
.annot-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--ink-soft);
}

.annot-label-amber {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  fill: var(--amber-deep);
  font-weight: 600;
}

/* Tweaks panel · match editorial design */
.tweaks-panel-host * {
  font-family: var(--sans);
}
