/* The Front Door — GovTech Barbados staff portal.
   Recreated from the design handoff (design_handoff_govtech_front_door):
   Figtree display + Public Sans body, indigo/cyan/magenta accent set,
   hero search, quick-start row, category card grids, sticky right rail,
   navy footer. Tokens follow the handoff README exactly. */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Public Sans', system-ui, sans-serif;
  color: #1f2a63;
  background: #f4f6fb;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
a { color: #2f3f9e; text-decoration: none; }
a:hover { color: #1fa2c6; }
input { font-family: inherit; }
::placeholder { color: #97a0b6; }
h1, h2, h3 { margin: 0; }
:focus-visible { outline: 2px solid #2f3f9e; outline-offset: 2px; border-radius: 4px; }

@keyframes fadeup { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) { .hero-inner { animation: none !important; } }

.i { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; display: block; }
.i-20 { width: 20px; height: 20px; }
.i-18 { width: 18px; height: 18px; }

.page { min-height: 100vh; display: flex; flex-direction: column; }

/* ---------- views (home / team) ---------- */
.view { display: none; }
.view.is-active { display: block; }
.topnav a[aria-current="page"] { color: #2f3f9e; }

.hero-team { background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%); border-bottom: 1px solid #eaeef6; }
.hero-inner-slim { padding: 34px 28px 30px; max-width: 1180px; margin: 0 auto; animation: fadeup .5s ease both; }
.hero-inner-slim h1 { font-family: 'Figtree', sans-serif; font-weight: 800; font-size: 32px; letter-spacing: -0.02em; margin: 14px 0 8px; color: #1f2a63; }

.content-narrow { max-width: 900px; margin: 0 auto; width: 100%; padding: 32px 28px 10px; }
.content-narrow .onboarding, .content-narrow .teams-module { margin-top: 0; }

/* ---------- accent bar + header ---------- */
.accentbar { height: 4px; background: linear-gradient(90deg, #2b3990 0%, #2f6fb5 45%, #1fa2c6 70%, #c0399a 100%); }

.siteheader { background: #ffffff; border-bottom: 1px solid #e5e9f2; }
.header-inner {
  max-width: 1180px; margin: 0 auto; padding: 14px 28px;
  display: flex; align-items: center; gap: 28px;
}
.lockup { display: flex; align-items: center; gap: 12px; }
.logo { height: 46px; width: auto; display: block; }
.lockup-divider { width: 1px; height: 34px; background: #e5e9f2; display: inline-block; }
.wordmark { font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 15px; color: #1f2a63; line-height: 1.15; letter-spacing: -0.01em; }
.wordmark-sub { font-family: 'Public Sans', sans-serif; font-weight: 500; font-size: 12px; color: #7b849b; }

.topnav { margin-left: auto; display: flex; align-items: center; gap: 26px; font-size: 14px; font-weight: 600; }
.topnav a { color: #40496a; }
.topnav a:hover { color: #1fa2c6; }

.identity { display: flex; align-items: center; gap: 11px; padding-left: 8px; border-left: 1px solid #eef1f7; }
.identity-text { text-align: right; line-height: 1.2; }
.identity-name { font-size: 13px; font-weight: 700; color: #1f2a63; }
.identity-role { font-size: 11px; color: #8a93a8; }
.avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: #eef1fb; color: #2f3f9e; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Figtree', sans-serif;
}

@media (max-width: 900px) {
  .topnav { display: none; }
  .identity-text { display: none; }
}

/* ---------- hero ---------- */
.hero { background: linear-gradient(180deg, #ffffff 0%, #f4f6fb 100%); border-bottom: 1px solid #eaeef6; }
.hero-inner { max-width: 1180px; margin: 0 auto; padding: 44px 28px 38px; animation: fadeup .5s ease both; }

.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: #eef1fb; color: #2f3f9e;
  font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: #1fa2c6; flex: none; }

.hero h1 {
  font-family: 'Figtree', sans-serif; font-weight: 800; font-size: 40px;
  line-height: 1.08; letter-spacing: -0.02em;
  margin: 18px 0 10px; color: #1f2a63; max-width: 640px; text-wrap: balance;
}
.hero-sub { font-size: 17px; color: #5b6478; margin: 0 0 26px; max-width: 560px; line-height: 1.5; }

.searchbox {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid #d9dfec; border-radius: 14px;
  padding: 6px 6px 6px 16px; max-width: 620px;
  box-shadow: 0 6px 24px rgba(31, 42, 99, .06);
}
.search-glyph { color: #97a0b6; font-size: 18px; line-height: 1; }
.searchbox input { flex: 1; border: 0; outline: none; font-size: 16px; color: #1f2a63; padding: 10px 0; background: transparent; }
.searchbox button {
  border: 0; cursor: pointer; background: #2f3f9e; color: #fff;
  font-weight: 700; font-size: 14px; padding: 11px 20px; border-radius: 10px;
  font-family: 'Public Sans', sans-serif;
}
.searchbox button:hover { background: #25327e; }

.chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; align-items: center; }
.chips-label { font-size: 13px; font-weight: 600; color: #7b849b; }
.chips a {
  display: inline-flex; align-items: center; gap: 7px;
  background: #fff; border: 1px solid #e1e6f1; border-radius: 999px;
  padding: 7px 14px; font-size: 13px; font-weight: 600; color: #40496a;
}
.chips a .dot { width: 6px; height: 6px; }
.chips a:hover { border-color: #1fa2c6; color: #1fa2c6; }

/* ---------- layout ---------- */
.layout {
  flex: 1; max-width: 1180px; margin: 0 auto; width: 100%;
  padding: 32px 28px 10px;
  display: grid; grid-template-columns: 1fr 300px; gap: 36px; align-items: start;
}
.colmain { min-width: 0; }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .rail { position: static !important; }
}

/* ---------- notices ---------- */
.notices { display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.notice {
  border-radius: 12px; padding: 14px 18px;
  display: flex; gap: 14px; align-items: flex-start;
  border: 1px solid #e5e9f2; border-left: 4px solid #2f3f9e; background: #fff;
}
.notice > .i-20 { flex: none; margin-top: 1px; color: #2f3f9e; }
.notice-urgent { border-color: #f6d5cf; border-left-color: #c0392b; background: #fdeeec; }
.notice-urgent > .i-20, .notice-urgent .notice-tag { color: #c0392b; }
.notice-body { flex: 1; }
.notice-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 2px; }
.notice-tag { font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #2f3f9e; }
.notice-date { font-size: 11px; font-weight: 700; color: #98a1b5; }
.notice-text { font-size: 14px; color: #3a4360; line-height: 1.45; }

/* ---------- section heads ---------- */
.sect-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.sect-head h2 { font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 20px; letter-spacing: -0.01em; color: #1f2a63; }
.sect-hint, .count { font-size: 13px; color: #9aa2b6; font-weight: 600; }
.rule { flex: 1; height: 1px; background: #eaeef6; }
.swatch { width: 10px; height: 10px; border-radius: 3px; background: var(--accent); flex: none; }
.star { color: #f2a900; }

.section-note { color: #6b7488; font-size: 13px; margin: -6px 0 14px; }

/* ---------- card grids ---------- */
.pinned { margin-bottom: 34px; }
.groups { display: flex; flex-direction: column; gap: 34px; }
.catalog-section { scroll-margin-top: 20px; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }

.entry { display: contents; } /* grid placement passes through to the card */
.entry[hidden], .catalog-section[hidden] { display: none; } /* display:contents would defeat the hidden attribute */

.tool-card {
  position: relative; display: flex; align-items: flex-start; gap: 14px;
  background: #fff; border: 1px solid #e5e9f2; border-radius: 14px; padding: 16px;
  transition: all .16s ease; color: inherit;
}
a.tool-card:hover { border-color: var(--accent, #2f3f9e); box-shadow: 0 8px 22px rgba(31, 42, 99, .08); transform: translateY(-2px); color: inherit; }
.tool-card.warm { background: #fffdf6; border-color: #f0e6c8; }
a.tool-card.warm:hover { border-color: #f2a900; }

.tile {
  flex: none; width: 44px; height: 44px; border-radius: 12px;
  background: var(--tint, #eef1fb); color: var(--accent, #2f3f9e);
  display: flex; align-items: center; justify-content: center;
}

.tool-body { flex: 1; min-width: 0; }
.tool-name-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tool-name, .tool-name-row h3 { font-family: 'Public Sans', sans-serif; font-size: 15px; font-weight: 700; color: #1f2a63; line-height: 1.2; }
.tool-desc, .blurb { display: block; font-size: 13px; color: #6b7488; margin: 4px 0 0; line-height: 1.4; }
.arrow { flex: none; color: #c3cad9; font-size: 16px; font-weight: 700; align-self: center; }

.badge {
  font-size: 10px; font-weight: 800; letter-spacing: .03em; text-transform: uppercase;
  padding: 2px 7px; border-radius: 999px; flex: none;
}
.badge-live { color: #0f9d76; background: #e2f4ee; }
.badge-tbc { color: #b26a00; background: #fdf0dd; }
.badge-alpha { color: #0e7c9e; background: #ddeef4; }

.phase { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: var(--accent, #c0392b); }

.todo { background: #fdf0dd; color: #b26a00; padding: 0 4px; border-radius: 4px; }

/* env pills on multi-environment cards */
.env-links { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.env-links a {
  font-size: 11px; font-weight: 700; color: #40496a;
  border: 1px solid #e1e6f1; border-radius: 999px; padding: 3px 10px;
  transition: all .16s ease;
}
.env-links a:first-child { color: var(--accent, #2f3f9e); border-color: var(--accent, #2f3f9e); }
.env-links a:hover { border-color: #1fa2c6; color: #1fa2c6; }

/* ---------- mission / onboarding / teams ---------- */
.mission-module {
  background: #fff; border: 1px solid #e5e9f2; border-radius: 14px;
  padding: 22px 24px; margin-bottom: 34px;
}
.mission-line {
  font-family: 'Figtree', sans-serif; font-weight: 600; font-style: italic;
  font-size: 18px; color: #2f3f9e; margin: 0 0 18px;
}
.mission-cite { font-size: 12px; color: #7b849b; margin: 14px 0 0; }

.value-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.teams-row { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 860px) { .value-row, .teams-row { grid-template-columns: 1fr; } }
.value h4 { font-family: 'Public Sans', sans-serif; font-size: 14px; font-weight: 700; color: #1f2a63; margin: 0 0 5px; }
.value p { margin: 0; color: #6b7488; font-size: 13px; line-height: 1.45; }

.onboarding, .teams-module { margin: 0 0 34px; }
.teams-module { margin-top: 34px; }
.onboard-row .value, .team-card {
  background: #fff; border: 1px solid #e5e9f2; border-radius: 14px; padding: 16px;
}
.checklist { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.checklist li { font-size: 13px; color: #3a4360; line-height: 1.45; padding-left: 20px; position: relative; }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 3px;
  width: 12px; height: 12px; border: 1.6px solid #0f9d76; border-radius: 4px;
}
.onboard-note { font-size: 12px; color: #7b849b; margin: 14px 0 0; }

/* org chart */
.org { background: #fff; border: 1px solid #e5e9f2; border-radius: 14px; padding: 20px 22px 24px; margin-top: 18px; }
.org-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.org-src { font-size: 12px; color: #7b849b; }

.org-level { display: flex; justify-content: center; }
.org-node {
  background: #f8f9fd; border: 1px solid #e1e6f1; border-radius: 10px;
  padding: 10px 16px; text-align: center; min-width: 150px;
}
.org-top { border-color: #2f3f9e; background: #eef1fb; }
.org-role { font-size: 13px; font-weight: 700; color: #1f2a63; }
.org-name { font-size: 11.5px; margin-top: 2px; }
.org-team { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #2f3f9e; margin-top: 6px; }

.org-stem { width: 1.5px; height: 18px; background: #d9dfec; margin: 0 auto; }

.org-leads { gap: 14px; flex-wrap: wrap; position: relative; padding-top: 18px; }
.org-leads::before {
  content: ""; position: absolute; top: 0; left: 12%; right: 12%;
  height: 1.5px; background: #d9dfec;
}
.org-leads .org-node { position: relative; flex: 1; min-width: 140px; max-width: 200px; }
.org-leads .org-node::before {
  content: ""; position: absolute; top: -18px; left: 50%;
  width: 1.5px; height: 18px; background: #d9dfec;
}
@media (max-width: 700px) {
  .org-leads::before, .org-leads .org-node::before, .org-stem { display: none; }
  .org-leads { padding-top: 0; }
  .org-leads .org-node { max-width: none; }
  .org-level { flex-direction: column; gap: 10px; }
}

/* team rosters */
.team-count { font-size: 11px; font-weight: 600; color: #9aa2b6; margin-left: 6px; }
.team-mdas { font-size: 11.5px; font-weight: 600; color: #2f3f9e; margin: 6px 0 0 !important; }
.team-members { margin: 8px 0 0 !important; display: flex; flex-wrap: wrap; gap: 4px; }
.member {
  font-size: 11.5px; font-weight: 600; color: #40496a;
  background: #f4f6fb; border: 1px solid #e1e6f1; border-radius: 999px;
  padding: 2px 9px; cursor: default;
}
.member:hover { border-color: #1fa2c6; color: #1fa2c6; }
.member-lead { border-color: #2f3f9e; color: #2f3f9e; font-weight: 700; }
.teams-row { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 860px) { .teams-row { grid-template-columns: 1fr; } }

/* rail: on-call + news */
.rail-card.oncall { background: #fdeeec; border-color: #f6d5cf; }
.rail-card.oncall .rail-title { color: #c0392b; }
.oncall-line { font-size: 12.5px; color: #3a4360; line-height: 1.5; margin: 6px 0 0; }

.news-item { padding: 10px 0; border-top: 1px solid #f0f2f8; }
.news-topic { text-transform: uppercase; letter-spacing: .08em; font-size: 10px; font-weight: 800; color: #c0399a; margin-bottom: 2px; }
.news-name { font-size: 13.5px; font-weight: 700; color: #1f2a63; line-height: 1.3; }
.news-copy { font-size: 12px; color: #6b7488; margin-top: 2px; line-height: 1.45; }

/* ---------- no results ---------- */
.no-results { text-align: center; padding: 56px 20px; background: #fff; border: 1px solid #e5e9f2; border-radius: 16px; }
.no-results-title { font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 19px; color: #1f2a63; }
.no-results-sub { font-size: 14px; margin: 8px 0 18px; color: #6b7488; }

.btn-primary {
  display: inline-block; font-size: 14px; font-weight: 700; color: #fff;
  background: #2f3f9e; padding: 11px 22px; border-radius: 10px;
}
.btn-primary:hover { background: #25327e; color: #fff; }
.btn-sm { font-size: 13px; padding: 9px 16px; border-radius: 8px; }

/* ---------- right rail ---------- */
.rail { position: sticky; top: 20px; display: flex; flex-direction: column; gap: 18px; }
.rail-card { background: #fff; border: 1px solid #e5e9f2; border-radius: 14px; padding: 18px 18px 12px; }
.rail-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.rail-title { font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 15px; color: #1f2a63; margin-bottom: 6px; }
.rail-head .rail-title { margin-bottom: 0; }
.rail-status-link { font-size: 11px; font-weight: 700; color: #0f9d76; }
.rail-foot { font-size: 12px; color: #7b849b; padding: 10px 0 4px; border-top: 1px solid #f0f2f8; margin-top: 4px; }

.event-row { display: flex; gap: 13px; padding: 11px 0; border-top: 1px solid #f0f2f8; }
.event-date { flex: none; width: 40px; text-align: center; }
.event-day { font-family: 'Figtree', sans-serif; font-size: 16px; font-weight: 800; color: #2f3f9e; line-height: 1; }
.event-mon { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: #98a1b5; margin-top: 2px; }
.event-name { font-size: 14px; font-weight: 700; color: #1f2a63; line-height: 1.25; }
.event-meta { font-size: 12px; color: #7b849b; margin-top: 2px; }

.status-row { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid #f0f2f8; }
.status-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--c, #0f9d76); }
.status-name { flex: 1; font-size: 13px; font-weight: 600; color: #40496a; }

.rail-card.ask { background: #eef1fb; border-color: #dfe4f6; padding: 16px; }
.ask-title { font-size: 14px; font-weight: 700; color: #2f3f9e; margin-bottom: 3px; }
.ask-body { font-size: 12px; color: #5b6478; line-height: 1.45; margin-bottom: 12px; }

/* ---------- footer ---------- */
.sitefooter { background: #1c2657; color: #c5cbe6; margin-top: 44px; }
.footer-inner {
  max-width: 1180px; margin: 0 auto; padding: 40px 28px 30px;
  display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between;
}
.footer-brand { max-width: 280px; }
.footer-logo-tile { display: inline-flex; background: #fff; border-radius: 12px; padding: 10px 12px; }
.footer-logo-tile img { height: 44px; width: auto; display: block; }
.footer-brand p { font-size: 13px; line-height: 1.55; color: #9aa2ca; margin: 16px 0 0; }

.footer-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.footer-col-title {
  font-family: 'Figtree', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: .05em; text-transform: uppercase; color: #fff; margin-bottom: 12px;
}
.footer-links { display: flex; flex-direction: column; gap: 9px; font-size: 14px; }
.footer-links a { color: #c5cbe6; }
.footer-links a:hover { color: #fff; }

.footer-legal { border-top: 1px solid #2c3670; }
.footer-legal-inner {
  max-width: 1180px; margin: 0 auto; padding: 16px 28px;
  font-size: 12px; color: #8189b5;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
}
.footer-legal a { color: #c5cbe6; }
.footer-legal a:hover { color: #fff; }
