:root {
  color-scheme: light;
  --page: #f7f6f3;
  --white: #fff;
  --ink: #241b20;
  --muted: #665960;
  --line: #e8e0e0;
  --red: #a91e38;
  --red-dark: #801329;
  --red-soft: #f9ebee;
  --focus: #95142d;
  --radius: 18px;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
  font-synthesis: none;
  color: var(--ink);
  background: var(--page);
  scroll-behavior: smooth;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; line-height: 1.5; }
button, input, select { font: inherit; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.shell { width: min(1200px, calc(100% - 80px)); margin-inline: auto; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.skip-link {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  padding: 12px 18px;
  border-radius: 8px;
  background: var(--white);
  transform: translateY(-150%);
}
.skip-link:focus { transform: translateY(0); }

.site-header { background: var(--white); border-bottom: 1px solid var(--line); }
.header-inner, .footer-inner {
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 10px;
  border-radius: 11px;
  background: var(--red);
}
.brand-mark i { width: 4px; border-radius: 1px; background: #fff; }
.brand-mark i:nth-child(1) { height: 8px; }
.brand-mark i:nth-child(2) { height: 13px; }
.brand-mark i:nth-child(3) { height: 20px; }
.brand-type { display: grid; gap: 1px; }
.brand-type strong { font-size: 18px; line-height: 1.05; letter-spacing: -.025em; }
.brand-type span { color: var(--muted); font-size: 12px; }
.header-link, .site-footer a { font-size: 14px; font-weight: 650; }
.header-link span, .site-footer a span { margin-inline-start: 4px; color: var(--red); }
.header-link:hover, .site-footer a:hover { color: var(--red); }
.lock-button {
  min-height: 42px;
  padding: 7px 13px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--white);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 700;
}
.lock-button:hover { border-color: var(--red); background: var(--red-soft); }

.access-screen {
  display: grid;
  align-items: center;
  min-height: calc(100svh - 169px);
  padding-block: 34px;
}
.access-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  width: min(100%, 950px);
  margin-inline: auto;
  overflow: hidden;
  border: 1px solid #eedadd;
  border-radius: 24px;
  background: var(--white);
  box-shadow: 0 16px 44px #5d233010;
}
.access-brand {
  position: relative;
  isolation: isolate;
  min-height: 405px;
  padding: 42px clamp(25px, 3.5vw, 49px);
  overflow: hidden;
  background: linear-gradient(146deg, #b62a43, #79162b);
  color: var(--white);
}
.access-brand .eyebrow { margin-bottom: 17px; color: #ffedef; }
.access-brand .eyebrow span { background: #ffd0d6; }
.access-brand-name {
  margin: 0;
  font-size: clamp(39px, 5vw, 61px);
  font-weight: 780;
  letter-spacing: -.06em;
  line-height: .99;
}
.access-brand .art-grid, .access-brand .orbit, .access-brand .art-columns { z-index: -1; }
.access-brand .orbit { inset: 22% -28% auto auto; }
.access-brand .art-columns { inset: 55% 16% 11% 12%; }
.access-card {
  align-self: center;
  padding: 38px clamp(25px, 4vw, 53px);
}
.access-card h1 {
  font-size: clamp(27px, 3.6vw, 40px);
  letter-spacing: -.045em;
  line-height: 1.1;
}
.access-description { margin: 10px 0 24px; color: var(--muted); }
.access-card label { display: block; margin-bottom: 6px; font-size: 14px; font-weight: 700; }
.access-field + .access-field { margin-top: 13px; }
.access-input { position: relative; }
.access-input input {
  width: 100%;
  min-height: 48px;
  padding: 9px 13px;
  border: 1px solid #dcd2d3;
  border-radius: 9px;
  background: var(--white);
  color: var(--ink);
}
.access-password input { padding-right: 68px; }
.access-input input[aria-invalid="true"] { border-color: var(--red); }
.access-input button {
  position: absolute;
  inset: 5px 5px 5px auto;
  min-width: 54px;
  border: 0;
  border-radius: 6px;
  background: var(--red-soft);
  color: var(--red-dark);
  font-size: 13px;
  font-weight: 700;
}
.access-error { margin: 7px 0 0; color: var(--red-dark); font-size: 13px; }
.access-error:empty { margin: 0; }
.unlock-button {
  width: 100%;
  justify-content: center;
  margin-top: 17px;
  border: 0;
}
.unlock-button:disabled, .access-input button:disabled { opacity: .65; cursor: default; }

.hero { padding-top: 32px; }
.hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.27fr) minmax(0, 1fr);
  min-height: 365px;
  overflow: hidden;
  border: 1px solid #eedadd;
  border-radius: 24px;
  background: #fff1f1;
}
.hero-copy { padding: 44px clamp(30px, 4vw, 64px); align-self: center; }
.eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 18px;
  color: var(--red-dark);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .09em;
  text-transform: uppercase;
}
.eyebrow span { flex: 0 0 7px; height: 7px; border-radius: 50%; background: var(--red); }
h1, h2, h3 { margin: 0; }
h1 {
  font-size: clamp(42px, 5.2vw, 78px);
  font-weight: 780;
  line-height: .98;
  letter-spacing: -.065em;
}
h1 span { color: var(--red); }
.hero-description { max-width: 38ch; margin: 20px 0 24px; color: var(--muted); font-size: 16px; }
.primary-link {
  display: inline-flex;
  align-items: center;
  gap: 13px;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 9px;
  background: var(--red);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
}
.primary-link:hover { background: var(--red-dark); }
.primary-link span { font-size: 18px; line-height: 1; }

.hero-art {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 76% 27%, #d8465e 0, transparent 67%),
    linear-gradient(140deg, #b2223c, #76162b);
  color: #fff2ef;
}
.art-grid {
  position: absolute;
  inset: 0;
  opacity: .34;
  background-image: radial-gradient(#f9cbcf 1px, transparent 1px);
  background-size: 17px 17px;
  mask-image: linear-gradient(145deg, transparent 3%, #000 48%, transparent 99%);
}
.orbit { position: absolute; width: 88%; aspect-ratio: 1; border: 1px solid #f8bfc965; border-radius: 50%; }
.orbit-outer { top: -30%; right: -14%; box-shadow: 0 0 0 26px #ffdfe50b, 0 0 0 54px #ffdfe50a; }
.orbit-inner { right: -2%; top: -14%; width: 64%; }
.art-columns {
  position: absolute;
  inset: 21% 18% 24% 18%;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
  column-gap: 7%;
  padding: 0 5% 0;
  border-bottom: 1px solid #ffdbe7b3;
  border-left: 1px solid #ffdbe769;
  background: repeating-linear-gradient(0deg, transparent 0 calc(25% - 1px), #ffdbe74d calc(25% - 1px) 25%);
}
.art-columns i {
  height: var(--bar-height);
  border: 1px solid #ffe1e6bf;
  border-bottom: 0;
  border-radius: 5px 5px 0 0;
  background: linear-gradient(180deg, #ffc9ce69, #ffb9c014);
}
.art-columns i:nth-child(1) { --bar-height: 27%; }
.art-columns i:nth-child(2) { --bar-height: 45%; }
.art-columns i:nth-child(3) { --bar-height: 36%; }
.art-columns i:nth-child(4) { --bar-height: 65%; }
.art-columns i:nth-child(5) { --bar-height: 87%; background: linear-gradient(#ffd8d9, #ed7788); }
.art-cross { position: absolute; font-size: 23px; font-weight: 300; line-height: 1; }
.art-cross-top { inset: 12% 11% auto auto; }
.art-cross-bottom { inset: auto auto 13% 10%; color: #f292a3; }
.art-ring { position: absolute; top: 15%; left: 21%; width: 8px; height: 8px; border: 1px solid; border-radius: 50%; }
.art-caption { position: absolute; bottom: 14%; right: 18%; display: flex; gap: 5px; }
.art-caption span { width: 14px; height: 3px; border-radius: 5px; background: #ffc8d185; }
.art-caption span:last-child { background: #ffe3e8; }

.directory { padding-block: 43px 56px; scroll-margin-top: 21px; }
.directory-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; }
.directory-heading h2 { font-size: clamp(29px, 3.3vw, 43px); line-height: 1.08; letter-spacing: -.047em; }
.directory-heading p { margin: 8px 0 0; font-size: 15px; color: var(--muted); }
.search-box { position: relative; width: min(100%, 322px); }
.search-box input {
  width: 100%;
  min-height: 46px;
  padding: 9px 12px 9px 40px;
  border: 1px solid #dcd2d3;
  border-radius: 10px;
  background: var(--white);
  color: var(--ink);
}
.search-box input::placeholder { color: var(--muted); }
.search-icon {
  position: absolute;
  top: 15px;
  left: 15px;
  width: 13px;
  height: 13px;
  border: 1.7px solid var(--muted);
  border-radius: 50%;
  pointer-events: none;
}
.search-icon::after {
  content: "";
  position: absolute;
  top: 9px;
  left: 9px;
  width: 6px;
  height: 1.7px;
  transform: rotate(45deg);
  transform-origin: left;
  background: var(--muted);
}

.filter-bar { display: flex; flex-wrap: wrap; gap: 8px; margin: 25px 0 0; }
.filter {
  min-height: 39px;
  padding: 6px 14px;
  border: 1px solid #ded4d5;
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 650;
}
.filter:hover { border-color: var(--red); color: var(--red-dark); }
.filter[aria-pressed="true"] { border-color: var(--red); background: var(--red); color: var(--white); }
.result-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  margin: 13px 0 9px;
}
.result-bar p, .sort { margin: 0; color: var(--muted); font-size: 13px; }
.sort { display: flex; align-items: center; gap: 7px; }
.sort select {
  width: auto;
  min-height: 34px;
  padding: 3px 5px;
  border: 1px solid transparent;
  border-radius: 6px;
  background: transparent;
  color: var(--ink);
  font-weight: 650;
  cursor: pointer;
}
.sort select:hover { border-color: #ded4d5; }

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.dashboard-card { display: flex; min-width: 0; }
.dashboard-card[data-category="operations"] { --topic-color: #335971; --topic-bg: #eaf2f6; }
.dashboard-card[data-category="health"] { --topic-color: #586623; --topic-bg: #f0f3e7; }
.dashboard-card[data-category="partners"] { --topic-color: #624d78; --topic-bg: #f2edf7; }
.dashboard-card[data-category="surveys"] { --topic-color: #70501b; --topic-bg: #f8f0e2; }
.dashboard-link {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 174px;
  padding: 17px 19px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--white);
  transition: border-color .16s, box-shadow .16s;
}
.dashboard-link:hover {
  border-color: #cc8793;
  box-shadow: 0 6px 18px #5d233014;
}
.card-top { display: flex; align-items: center; justify-content: space-between; }
.card-icon, .card-arrow { display: grid; width: 36px; height: 36px; place-items: center; }
.card-icon { border-radius: 9px; background: var(--topic-bg, var(--red-soft)); color: var(--topic-color, var(--red-dark)); font-size: 21px; line-height: 1; }
.card-arrow { border: 1px solid var(--line); border-radius: 50%; color: var(--red); font-size: 18px; line-height: 1; }
.dashboard-link:hover .card-arrow { background: var(--red); border-color: var(--red); color: var(--white); }
.card-category {
  margin: 12px 0 5px;
  color: var(--topic-color, var(--red-dark));
  font-size: 10px;
  font-weight: 750;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.dashboard-card h3 {
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 720;
  line-height: 1.24;
  letter-spacing: -.018em;
  overflow-wrap: anywhere;
}
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 5px 8px; margin-top: auto; color: var(--muted); font-size: 12px; }
.dept, .status { padding: 2px 6px; border-radius: 5px; font-size: 10px; font-weight: 700; }
.dept { background: #f1eeed; color: #5b4c51; }
.status.draft { background: #f6eedc; color: #694b19; }
.status.internal { background: #f9e7eb; color: #831b31; }
.empty-state { margin: 0; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.empty-state button { border: 0; padding: 5px; background: transparent; color: var(--red); font-weight: 700; text-decoration: underline; }

.missing-links { margin-top: 26px; border-top: 1px solid var(--line); padding-top: 16px; color: var(--muted); font-size: 14px; }
.missing-links summary { width: fit-content; cursor: pointer; font-weight: 650; }
.missing-links ul { padding-left: 21px; margin: 10px 0 0; }
.site-footer { border-top: 1px solid var(--line); background: var(--white); font-size: 14px; }
.footer-inner { min-height: 92px; }
.site-footer p { margin: 3px 0 0; color: var(--muted); font-size: 12px; }

@media (max-width: 960px) {
  .shell { width: calc(100% - 48px); }
  .hero-panel { min-height: 325px; }
  .dashboard-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 650px) {
  .shell { width: calc(100% - 32px); }
  .header-inner { min-height: 64px; }
  .header-link { display: none; }
  .access-screen { min-height: calc(100svh - 157px); padding-block: 18px; }
  .access-panel { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .access-brand { min-height: 0; padding: 24px; }
  .access-brand .eyebrow { margin-bottom: 9px; }
  .access-brand-name { font-size: 38px; }
  .access-brand .art-columns { display: none; }
  .access-card { padding: 25px 24px 28px; }
  .hero { padding-top: 16px; }
  .hero-panel { grid-template-columns: minmax(0, 1fr); border-radius: 18px; }
  .hero-copy { padding: 28px 22px; }
  .eyebrow { margin-bottom: 14px; font-size: 10px; }
  .hero-description { margin: 16px 0 20px; }
  .hero-art { min-height: 136px; }
  .art-columns { inset: 14% 21% 19%; }
  .art-caption { display: none; }
  .directory { padding-block: 32px 40px; }
  .directory-heading { display: grid; gap: 14px; }
  .search-box { width: 100%; }
  .filter-bar { margin-top: 15px; gap: 7px; }
  .filter { min-height: 36px; padding-inline: 11px; font-size: 12px; }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); gap: 11px; }
  .dashboard-link { min-height: 150px; padding: 14px 16px; }
}
@media (max-width: 370px) {
  h1 { font-size: 36px; }
  .footer-inner { flex-wrap: wrap; align-content: center; gap: 7px; padding-block: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  :root { scroll-behavior: auto; }
  .dashboard-link { transition: none; }
}
