:root {
  color-scheme: light;
  --navy: #10294f;
  --muted: #53647d;
  --blue: #164d9c;
  --line: #e1e7f1;
  --surface: #f5f7fb;
  --sidebar: 264px;
  --bar: 61px;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  color: var(--navy);
  background: var(--surface);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 4px; }

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 5;
  padding: 12px 16px;
  transform: translateY(-150%);
  border-radius: 8px;
  background: #fff;
  color: var(--blue);
}

.skip-link:focus { transform: translateY(0); }

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  width: var(--sidebar);
  min-height: 0;
  background: #fff;
  border-right: 1px solid var(--line);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 83px;
  padding: 17px 16px;
  text-decoration: none;
}

.brand img { width: 44px; height: 36px; flex: none; object-fit: contain; }
.brand strong { display: block; font-size: 1rem; letter-spacing: -.025em; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: .75rem; }

.directory {
  overflow-y: auto;
  padding: 15px 12px 20px;
  border-top: 1px solid var(--line);
}

.directory-label {
  margin: 0 12px 11px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 650;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.nav-list { list-style: none; margin: 0; padding: 0; }
.nav-list > li + li { margin-top: 3px; }

.nav-row {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 8px 11px;
  border-radius: 8px;
  color: #394c67;
  font-size: .875rem;
  font-weight: 560;
  line-height: 1.3;
  text-decoration: none;
}

.nav-row:hover { background: #f2f5fa; color: var(--navy); }
.nav-row[aria-current="page"] { background: #e8f0fd; color: #12438c; font-weight: 700; }
.nav-row[aria-current="page"]::before {
  content: "";
  position: absolute;
  inset: 9px auto 9px 0;
  width: 3px;
  border-radius: 3px;
  background: #2363bd;
}

.icon { width: 18px; height: 18px; flex: none; }
summary.nav-row { list-style: none; cursor: pointer; }
summary.nav-row::-webkit-details-marker { display: none; }
summary .chevron { width: 14px; height: 14px; margin-left: auto; }
details[open] .chevron { transform: rotate(180deg); }

.subnav {
  display: grid;
  gap: 2px;
  margin: 2px 0 5px 19px;
  padding: 0 0 0 10px;
  border-left: 1px solid #dce4f1;
}

.subnav .nav-row { min-height: 37px; padding-left: 10px; }
.subnav .icon { width: 15px; height: 15px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: var(--bar);
  margin-left: var(--sidebar);
  padding: 0 clamp(16px, 3vw, 42px);
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.topbar-title { color: var(--navy); font-size: .91rem; font-weight: 650; }
.full-view {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  color: var(--blue);
  text-decoration: none;
  font-size: .84rem;
  font-weight: 650;
}

.full-view:hover { text-decoration: underline; }
.full-view .icon { width: 15px; height: 15px; }
.menu-button, .sidebar-dismiss, .menu-backdrop { display: none; }
.main { min-width: 0; margin-left: var(--sidebar); }

.home, .unavailable {
  max-width: 1260px;
  margin-inline: auto;
  padding: 28px clamp(16px, 3vw, 40px) 34px;
}

.home-card {
  overflow: clip;
  padding: clamp(18px, 2.7vw, 36px);
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 4px 16px #15345b08;
}

.home h1, .unavailable h1 {
  max-width: 760px;
  margin: 0 0 15px;
  font-size: clamp(1.45rem, 2.55vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -.035em;
  line-height: 1.14;
  text-wrap: balance;
}

.home h1::before {
  content: "";
  display: block;
  width: 32px;
  height: 3px;
  margin-bottom: 12px;
  border-radius: 3px;
  background: #eab63c;
}

.intro { max-width: 94ch; font-size: .97rem; line-height: 1.55; color: #354660; }
.intro p { margin: 0 0 8px; }
.intro .motto { margin: 11px 0 0; color: var(--navy); font-weight: 700; }
.officer-image { margin: 22px 0 0; }

.officer-image img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 9px;
  background: #0c2758;
}

.frame-page { display: flex; flex-direction: column; height: 100dvh; overflow: hidden; }
.frame-page .topbar { position: relative; flex: 0 0 var(--bar); }
.frame-page .main { flex: 1; min-height: 0; display: flex; }
.dashboard { width: 100%; height: 100%; border: 0; background: var(--surface); }
.unavailable .home-card p { margin: 0; line-height: 1.55; color: var(--muted); }

@media (max-width: 820px) {
  .topbar, .main { margin-left: 0; }
  .topbar { padding-inline: 12px 16px; }
  .topbar-title { font-size: .85rem; }
  .sidebar {
    width: min(var(--sidebar), calc(100vw - 40px));
    transform: translateX(-100%);
    visibility: hidden;
  }

  .menu-open { overflow: hidden; }
  .menu-open .sidebar { transform: none; visibility: visible; }
  .menu-open .menu-backdrop {
    position: fixed;
    z-index: 2;
    inset: 0;
    display: block;
    border: 0;
    background: #13253f7a;
  }

  .menu-button, .sidebar-dismiss {
    display: grid;
    place-items: center;
    flex: none;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 8px;
    color: var(--navy);
    background: #fff;
  }

  .brand { padding-right: 48px; }
  .sidebar-dismiss { position: absolute; top: 22px; right: 10px; width: 32px; height: 32px; }
  .home, .unavailable { padding-top: 16px; }
  .officer-image { margin-top: 17px; }
}

@media (max-width: 560px) {
  .full-view { flex: none; }
  .full-view span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}
