@import "tailwindcss";

@theme {
  --color-slate-50: #fbf8ed;
  --color-slate-100: #f3f0e6;
  --color-slate-200: #e5e0d4;
  --color-slate-300: #d2cbbd;
  --color-slate-400: #a49a8d;
  --color-slate-500: #756b61;
  --color-slate-600: #665b50;
  --color-slate-700: #55493e;
  --color-slate-800: #473c33;
  --color-slate-900: #392f27;
}

:root {
  color-scheme: light;
  --saic-sage: #8d9f5e;
  --saic-sage-dark: #65783d;
  --saic-sage-soft: #e8eddc;
  --saic-yellow: #fec868;
  --saic-brown: #473c33;
  --saic-ink: #473c33;
  --saic-ink-muted: #756b61;
  --saic-surface: #ffffff;
  --saic-surface-muted: #fbf8ed;
  --saic-surface-subtle: #f3f0e6;
  --saic-border: rgba(71, 60, 51, 0.1);
  --saic-border-strong: rgba(71, 60, 51, 0.18);
  --saic-accent: var(--saic-sage);
  --saic-accent-ink: #fff;
  --saic-shadow: 0 1px 2px rgba(71, 60, 51, 0.04);
}

* { box-sizing: border-box; }

body {
  min-height: 100vh;
  background: var(--saic-surface-muted);
  color: var(--saic-ink);
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}

:focus-visible { outline: 3px solid rgba(141, 159, 94, .55); outline-offset: 2px; }
::selection { background: rgba(254, 200, 104, .55); color: var(--saic-brown); }

.landing-nav-link { min-height: 44px; display: inline-flex; align-items: center; color: #665b50; font-size: .82rem; font-weight: 550; transition: color .18s ease; }
.landing-nav-link:hover { color: #65783d; }
.landing-signin { min-height: 44px; display: inline-flex; align-items: center; gap: .35rem; padding: 0 .6rem; color: #55493e; font-size: .72rem; font-weight: 650; white-space: nowrap; }
.landing-signin:hover { color: #65783d; }
.landing-apply { min-height: 44px; align-items: center; justify-content: center; gap: .5rem; border-radius: 999px; background: #65783d; padding: 0 1.15rem; color: white; font-size: .75rem; font-weight: 650; transition: background .18s ease; }
.landing-apply:hover { background: #526331; }
.landing-menu { position: relative; }
.landing-menu summary { display: grid; min-width: 44px; min-height: 44px; cursor: pointer; place-items: center; border: 1px solid rgba(71,60,51,.15); border-radius: .8rem; list-style: none; color: #473c33; }
.landing-menu summary::-webkit-details-marker { display: none; }
.landing-menu[open] summary { background: #f3f0e6; }
.landing-menu-panel { position: absolute; right: 0; top: calc(100% + .75rem); display: flex; width: min(18rem, calc(100vw - 2rem)); flex-direction: column; gap: .2rem; border: 1px solid rgba(71,60,51,.12); border-radius: 1.1rem; background: #fffdf7; padding: .75rem; box-shadow: 0 18px 45px rgba(71,60,51,.16); }
.landing-mobile-link { display: flex; min-height: 46px; align-items: center; border-radius: .7rem; padding: 0 .8rem; color: #55493e; font-size: .9rem; font-weight: 550; }
.landing-mobile-link:hover { background: #f3f0e6; color: #65783d; }
.landing-mobile-cta { display: flex; min-height: 46px; align-items: center; justify-content: center; gap: .5rem; border-radius: .75rem; background: #65783d; color: white; font-size: .85rem; font-weight: 650; }
.landing-mobile-apply { background: #fec868; color: #473c33; }
.landing-eyebrow { color: #65783d; font-size: .68rem; font-weight: 750; letter-spacing: .19em; }
.landing-section-title { color: #473c33; font-size: clamp(2.05rem, 5vw, 3.6rem); font-weight: 600; letter-spacing: -.055em; line-height: 1.06; }
.landing-primary-cta, .landing-secondary-cta { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: .65rem; border-radius: 999px; padding: 0 1.25rem; font-size: .83rem; font-weight: 650; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.landing-primary-cta { background: #65783d; color: white; }
.landing-primary-cta:hover { background: #526331; }
.landing-secondary-cta { border: 1px solid rgba(71,60,51,.2); color: #55493e; }
.landing-secondary-cta:hover { border-color: #65783d; color: #65783d; }

button, a, input, select, textarea { transition: color .16s ease, background-color .16s ease, border-color .16s ease, box-shadow .16s ease, transform .16s ease; }
button:not(:disabled) { cursor: pointer; }

/* Reusable surfaces keep the data screens calm while adding the new identity. */
:is(div, section, article)[class~="rounded-xl"][class~="border"][class~="bg-white"],
:is(div, section, article)[class~="rounded-xl"][class~="border"][class~="bg-[var(--saic-surface)]"],
:is(div, section, article)[class~="rounded-2xl"][class~="border"][class~="bg-white"],
:is(div, section, article)[class~="rounded-2xl"][class~="border"][class~="bg-[var(--saic-surface)]"] {
  box-shadow: var(--saic-shadow);
}

button[class~="bg-slate-900"], a[class~="bg-slate-900"] {
  background-color: var(--saic-sage-dark);
}
button[class~="bg-slate-900"]:hover, a[class~="bg-slate-900"]:hover {
  background-color: #566833;
}

table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  color: var(--saic-ink);
  font-variant-numeric: tabular-nums;
}
thead { background: var(--saic-surface-subtle); }
th {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--saic-border);
  color: var(--saic-ink-muted);
  font-size: .7rem;
  font-weight: 650;
  letter-spacing: .035em;
  text-align: left;
  white-space: nowrap;
}
td {
  padding: .8rem 1rem;
  border-bottom: 1px solid var(--saic-border);
  font-size: .8rem;
  line-height: 1.45;
  vertical-align: middle;
}
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background-color: rgba(232, 237, 220, .38); }

input, select, textarea {
  border-color: var(--saic-border-strong);
  border-radius: .7rem;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--saic-sage) !important;
  box-shadow: 0 0 0 3px rgba(141, 159, 94, .14);
  outline: none;
}

/* Data views scroll on narrow screens without forcing the whole page wider. */
main { min-width: 0; }
main table { min-width: 38rem; }
main :has(> table) { max-width: 100%; overflow-x: auto; }

@media (max-width: 640px) {
  main table { min-width: 34rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

@media (max-width: 640px) {
  th, td { padding: .7rem .65rem; }
  th { font-size: .65rem; }
  td { font-size: .75rem; }
}
