/* ===== OSFUSA | Diplomatic Security Service — design tokens ===== */
:root{
  --ink: #0B1E3D;
  --ink-soft: #1C2F52;
  --cloud: #F6F3EA;
  --cloud-dim: #EAE3D2;
  --gold: #C9A24B;
  --gold-dark: #A8822E;
  --gold-light: #E4C878;
  --steel: #5A6A85;
  --white: #FFFFFF;
  --line: rgba(11,30,61,0.14);

  --font-display: "Playfair Display", Georgia, serif;
  --font-body: "Inter", -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --radius: 6px;
  --max-width: 1180px;
}

*{ box-sizing: border-box; }
html{ scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior: auto; }
  *{ animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

body{
  margin: 0;
  background: var(--cloud);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3{
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 0.4em 0;
  letter-spacing: -0.005em;
}

p{ margin: 0 0 1em 0; color: var(--ink-soft); }
a{ color: inherit; }

.eyebrow{
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold-dark);
  display: inline-block;
  margin-bottom: 0.9em;
}

.wrap{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

/* ===== Disclaimer bar ===== */
.disclaimer-bar{
  background: var(--gold);
  color: var(--ink);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.05em;
  padding: 8px 16px;
  font-weight: 600;
}
.disclaimer-bar strong{ text-transform: uppercase; }

/* ===== Nav ===== */
.site-header{
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--ink);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.nav{
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 16px 32px;
}
.brand{
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.15rem;
  color: var(--white);
  text-decoration: none;
}
.brand-mark{ width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; object-fit: cover; }
.brand-text{ display: flex; flex-direction: column; line-height: 1.15; }
.brand-text .brand-sub{
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--gold-light);
  letter-spacing: 0.1em;
  font-weight: 500;
}
.nav-links{
  display: flex;
  align-items: center;
  gap: 30px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a{
  color: rgba(255,255,255,0.72);
  text-decoration: none;
  font-size: 0.94rem;
  font-weight: 500;
  padding: 6px 2px;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
.nav-links a:hover, .nav-links a:focus-visible{
  color: var(--white);
  border-bottom-color: var(--gold);
}
.nav-links a[aria-current="page"]{
  color: var(--white);
  border-bottom-color: var(--gold);
}
.login-btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--gold);
  color: var(--ink) !important;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 9px 16px;
  border-radius: var(--radius);
  text-decoration: none !important;
  border-bottom: none !important;
  transition: background 0.15s ease, transform 0.15s ease;
}
.login-btn:hover{ background: var(--gold-light); }
.login-btn:active{ transform: translateY(1px); }
.login-btn svg{ width: 14px; height: 14px; }

.nav-toggle{
  display: none;
  background: none;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: var(--radius);
  color: var(--white);
  padding: 8px 10px;
  font-size: 1rem;
  cursor: pointer;
}

a:focus-visible, button:focus-visible, input:focus-visible{
  outline: 2px solid var(--gold-dark);
  outline-offset: 2px;
}

/* ===== Route-line motif (now a gold seal-ring divider) ===== */
.route-line{
  position: relative;
  height: 64px;
  margin: 0 auto;
  max-width: var(--max-width);
}
.route-line svg{ width: 100%; height: 100%; display: block; }
.route-line path{
  stroke: var(--steel);
  stroke-width: 2;
  stroke-dasharray: 7 9;
  fill: none;
  opacity: 0.35;
}
.route-line circle{ fill: var(--gold); }

/* ===== Hero ===== */
.hero{
  padding: 88px 0 68px;
  position: relative;
  overflow: hidden;
}
.hero-inner{
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}
.hero h1{
  font-size: clamp(2.3rem, 4.2vw, 3.4rem);
  line-height: 1.08;
  max-width: 14ch;
}
.hero .lede{
  font-size: 1.12rem;
  max-width: 48ch;
  color: var(--ink-soft);
}
.hero-actions{ display: flex; gap: 14px; margin-top: 28px; flex-wrap: wrap; }

.btn{
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: var(--radius);
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-primary{ background: var(--ink); color: var(--white); }
.btn-primary:hover{ background: var(--ink-soft); }
.btn-ghost{ background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover{ border-color: var(--ink); }
.btn:active{ transform: translateY(1px); }

/* Seal/credential panel in hero */
.dispatch-panel{
  background: var(--ink);
  border-radius: 10px;
  padding: 22px;
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.82rem;
  box-shadow: 0 24px 60px -20px rgba(11,30,61,0.5);
  border: 1px solid rgba(201,162,75,0.35);
}
.dispatch-row{
  display: flex;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.dispatch-row:last-child{ border-bottom: none; }
.dispatch-status{ color: var(--gold-light); font-weight: 600; }
.dispatch-status.pending{ color: rgba(255,255,255,0.5); }

/* ===== Sections ===== */
section{ padding: 64px 0; }
.section-head{ max-width: 640px; margin-bottom: 44px; }

.grid-3{ display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.grid-2{ display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }

.card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
}
.card h3{ font-size: 1.15rem; }
.card .tag{
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.band{ background: var(--ink); color: var(--white); }
.band h2, .band p{ color: var(--white); }
.band .section-head p{ color: rgba(255,255,255,0.72); }

.stat{
  font-family: var(--font-display);
  font-size: 2.6rem;
  color: var(--gold-light);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-label{
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: rgba(255,255,255,0.6);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ===== Leadership ===== */
.person-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
}
.person-photo{
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--white);
  position: relative;
}
.person-photo::after{
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 50%;
}
.person-body{ padding: 22px 24px 26px; }
.person-body h3{ font-size: 1.05rem; margin-bottom: 2px; }
.person-role{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--gold-dark);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 12px;
  display: block;
}
.person-body p{ font-size: 0.92rem; margin-bottom: 0; }

/* ===== Recruitment steps ===== */
.steps{ display: flex; flex-direction: column; gap: 0; }
.step{
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 24px;
  padding: 34px 0;
  border-top: 1px solid var(--line);
  position: relative;
}
.step:last-child{ border-bottom: 1px solid var(--line); }
.step-num{ font-family: var(--font-mono); font-size: 0.85rem; color: var(--gold-dark); padding-top: 4px; }
.step-num span{
  display: block;
  font-family: var(--font-display);
  font-size: 1.9rem;
  color: var(--ink);
  line-height: 1;
}
.step-content h3{ font-size: 1.2rem; margin-bottom: 6px; }
.step-meta{
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--steel);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 10px;
  display: inline-block;
}

.requirements{ background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 32px; }
.requirements ul{ margin: 0; padding-left: 20px; }
.requirements li{ margin-bottom: 10px; color: var(--ink-soft); }

/* ===== Login page ===== */
.login-page{
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
}
.login-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 40px 38px;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 30px 70px -30px rgba(11,30,61,0.3);
}
.login-mark{
  width: 44px; height: 44px;
  margin-bottom: 20px;
  border-radius: 50%;
  object-fit: cover;
}
.login-card h1{ font-size: 1.5rem; margin-bottom: 6px; }
.login-card .sub{ font-size: 0.9rem; margin-bottom: 28px; }
.field{ margin-bottom: 18px; }
.field label{ display: block; font-size: 0.82rem; font-weight: 600; margin-bottom: 6px; color: var(--ink-soft); }
.field input{
  width: 100%;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  background: var(--cloud);
}
.field input:focus{ outline: 2px solid var(--gold-dark); outline-offset: 1px; background: var(--white); }
.login-submit{ width: 100%; justify-content: center; margin-top: 6px; }
.login-note{ margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--steel); }

/* ===== Footer ===== */
.site-footer{ background: var(--ink); color: rgba(255,255,255,0.6); padding: 40px 0; font-size: 0.85rem; }
.site-footer .wrap{ display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.site-footer a{ color: rgba(255,255,255,0.75); text-decoration: none; }
.site-footer a:hover{ color: var(--white); }
.footer-links{ display: flex; gap: 22px; list-style: none; padding: 0; margin: 0; }
.footer-disclaimer{ font-size: 0.72rem; color: rgba(255,255,255,0.4); margin-top: 14px; }

/* ===== Boards (Operational / Compliance manuals) ===== */
.board-toolbar{
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 24px;
}
.board-lists{
  display: flex;
  gap: 18px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 18px;
}
.board-list{
  background: var(--cloud-dim);
  border-radius: 8px;
  padding: 14px;
  width: 260px;
  flex: 0 0 260px;
  border-top: 3px solid var(--gold);
  box-shadow: 0 6px 18px -12px rgba(11,30,61,0.35);
}
.board-status{
  font-family: var(--font-mono);
  font-size: 0.76rem;
  letter-spacing: 0.03em;
  margin: 0 0 18px;
}

/* Header cards: full-bleed image with white text overlay */
.board-header-card{
  position: relative;
  border-radius: 6px;
  overflow: hidden;
  min-height: 90px;
  background: linear-gradient(135deg, var(--ink) 0%, var(--ink-soft) 100%);
  background-size: cover;
  background-position: center;
  cursor: pointer;
  display: flex;
  align-items: flex-end;
}
.board-header-card-overlay{
  width: 100%;
  padding: 14px 14px 12px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  color: #fff;
  text-shadow: 0 2px 6px rgba(0,0,0,0.65);
  background: linear-gradient(180deg, rgba(11,30,61,0) 0%, rgba(11,30,61,0.75) 100%);
}

/* Rich-text description headings */
.board-card-desc .board-h1{ display:block; font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-top: 2px; }
.board-card-desc .board-h2{ display:block; font-family: var(--font-display); font-size: 0.96rem; font-weight: 700; color: var(--ink); }
.board-card-desc .board-h3{ display:block; font-family: var(--font-mono); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-dark); }
.board-card-desc{ max-height: 4.6em; overflow: hidden; }

.board-preview{
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  background: var(--cloud);
  font-size: 0.88rem;
  min-height: 40px;
  margin-top: 8px;
}
.board-preview .board-h1{ display:block; font-family: var(--font-display); font-size: 1.15rem; font-weight: 700; }
.board-preview .board-h2{ display:block; font-family: var(--font-display); font-size: 1.02rem; font-weight: 700; }
.board-preview .board-h3{ display:block; font-family: var(--font-mono); font-size: 0.8rem; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--gold-dark); }
.board-hint{ font-size: 0.74rem; color: var(--steel); margin-top: 6px; }

.board-format-toolbar{ display: flex; gap: 6px; margin-bottom: 8px; }
.board-format-toolbar button{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 4px;
  width: 30px;
  height: 28px;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
  cursor: pointer;
}
.board-format-toolbar button:hover{ border-color: var(--gold-dark); color: var(--gold-dark); }

.compliance-page .board-list{ border-top-color: var(--teal); }
.compliance-page .eyebrow{ color: var(--teal); }
.board-list-title{
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
.board-list-title input{
  border: none;
  background: transparent;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  width: 100%;
  padding: 2px 0;
}
.board-list-title input:focus{ outline: 1px solid var(--gold-dark); border-radius: 3px; }
.board-cards{
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 10px;
}
.board-card{
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  cursor: grab;
  position: relative;
  text-align: left;
}
.board-card.dragging{ opacity: 0.4; }
.board-card img{
  width: 100%;
  border-radius: 4px;
  margin-bottom: 8px;
  display: block;
  max-height: 120px;
  object-fit: cover;
}
.board-card-title{ font-size: 0.92rem; font-weight: 600; margin-bottom: 2px; padding-right: 22px; }
.board-card-desc{ font-size: 0.8rem; color: var(--steel); }
.board-card-badge{
  position: absolute;
  top: 8px; right: 8px;
  width: 22px; height: 22px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.75rem;
  color: white;
  line-height: 1;
}
.board-add-card, .board-add-list{
  background: none;
  border: 1px dashed var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  width: 100%;
  text-align: left;
  font-size: 0.85rem;
  color: var(--steel);
  cursor: pointer;
  margin-top: 10px;
  font-family: var(--font-body);
}
.board-add-card:hover, .board-add-list:hover{ border-color: var(--gold-dark); color: var(--gold-dark); }
.board-add-list-wrap{ min-width: 220px; flex: 0 0 220px; }

.board-modal-overlay{
  position: fixed; inset: 0;
  background: rgba(11,30,61,0.55);
  display: flex; align-items: center; justify-content: center;
  z-index: 200;
  padding: 20px;
}
.board-modal{
  background: var(--white);
  border-radius: 10px;
  padding: 30px;
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
}
.board-modal h3{ margin-bottom: 4px; }
.board-modal label{
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 14px 0 6px;
  color: var(--ink-soft);
}
.board-modal input[type="text"],
.board-modal input[type="url"],
.board-modal textarea{
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  background: var(--cloud);
}
.board-modal textarea{ min-height: 80px; resize: vertical; }
.board-badge-row{ display: flex; gap: 10px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.board-badge-row input[type="text"]{ width: 56px; text-align: center; }
.board-swatch{
  width: 24px; height: 24px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  padding: 0;
}
.board-swatch.selected{ border-color: var(--ink); }
.board-modal-actions{
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 24px;
  gap: 10px;
}
.board-card-delete, .board-list-delete{
  background: none;
  border: none;
  color: var(--steel);
  font-size: 0.78rem;
  cursor: pointer;
  padding: 2px 4px;
}
.board-card-delete:hover, .board-list-delete:hover{ color: #B3432F; }

/* ===== Responsive ===== */
@media (max-width: 860px){
  .hero-inner{ grid-template-columns: 1fr; }
  .grid-3{ grid-template-columns: 1fr; }
  .grid-2{ grid-template-columns: 1fr; }
  .nav-links{
    position: absolute;
    top: 100%; left: 0; right: 0;
    background: var(--ink);
    flex-direction: column;
    align-items: flex-start;
    padding: 10px 32px 24px;
    gap: 4px;
    display: none;
  }
  .nav-links.open{ display: flex; }
  .nav-links a{ width: 100%; padding: 10px 0; border-bottom: none; }
  .nav-toggle{ display: inline-block; }
  .login-btn{ order: 2; }
  .step{ grid-template-columns: 1fr; gap: 8px; }
}
