/* Supplied Institute logos are used unchanged, on white for legibility. */
:root {
  --forest: #354b28;
  --deep: #23351b;
  --ink: #111b20;
  --muted: #66715c;
  --paper: #f7f8f3;
  --line: #e3e7d8;
  --sage: #eff4de;
  --brand-green: #c5dd70;
}

button:focus-visible, a:focus-visible, input:focus-visible,
select:focus-visible, summary:focus-visible {
  outline-color: #778f31;
}

.sidebar {
  width: 252px;
  padding: 31px 20px;
  background: #fff;
  color: var(--ink);
  border-right: 1px solid var(--line);
}

.brand {
  display: block;
  text-align: center;
  letter-spacing: normal;
}

.brand-logo {
  display: block;
  width: 100%;
  height: auto;
}

.brand-caption {
  display: block;
  margin-top: 17px;
  padding-top: 15px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.6px;
  text-transform: uppercase;
}

.nav-label {
  margin-top: 34px;
  color: var(--muted);
}

nav a { color: #58644b; }
nav a:hover { background: #f5f7ed; }
nav a[aria-current] {
  background: var(--sage);
  color: var(--deep);
  box-shadow: inset 3px 0 var(--brand-green);
  font-weight: 600;
}

.sidebar-bottom { border-color: var(--line); }
.sidebar-bottom .eyebrow, .signout { color: var(--muted); }
.account { color: var(--ink); }
.main { margin-left: 252px; }
.stats { border-top: 3px solid var(--brand-green); }
.badge { background: var(--sage); color: #495f2b; }
.badge.warning { background: #fbf0dd; color: var(--amber); }
.badge.neutral { background: #f0f1ee; color: #647067; }
.status-dot { background: #7d9740; }
.status-dot.amber { background: #b68e48; }

.public-main {
  background: radial-gradient(ellipse at 85% 10%, #eef3d8 0, transparent 55%), var(--paper);
}

.login-wrap { max-width: 940px; }
.login-card {
  display: grid;
  grid-template-columns: 0.92fr 1fr;
  padding: 0;
  border-top: 4px solid var(--brand-green);
  overflow: hidden;
  text-align: left;
  box-shadow: 0 16px 60px #23351b08;
}

.login-identity {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  background: #fff;
  border-right: 1px solid var(--line);
}

.login-logo {
  display: block;
  width: 100%;
  max-width: 340px;
  height: auto;
}

.login-content { padding: 55px 42px; }
.login-content h1 { font-size: 41px; }
.login-content > p {
  color: var(--muted);
  line-height: 1.75;
  margin-bottom: 28px;
}
.login-content .small { margin: 22px 0 0; }
.google-button {
  background: var(--brand-green);
  border-color: var(--brand-green);
  color: var(--ink);
}
.google-button:hover { background: #b7d35d; border-color: #b7d35d; }
.error-logo { display: block; width: 260px; max-width: 100%; height: auto; margin: 0 auto 30px; }

.program-filter {
  min-width: 0;
  margin: 0 0 22px;
  padding: 14px 18px 18px;
  border: 1px solid #ceddaa;
  border-radius: 7px;
  background: #f7faee;
}
.program-filter legend { padding: 0 7px; font-size: 15px; font-weight: 650; color: var(--deep); }
.program-filter p { margin: 0 0 13px; color: var(--muted); font-size: 11px; }
.program-filter-row { display: flex; flex-wrap: wrap; align-items: center; gap: 13px; }
.program-options { display: flex; flex: 1; flex-wrap: wrap; gap: 9px; }
.program-option {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 43px;
  padding: 10px 13px;
  border: 1px solid #d4dec0;
  border-radius: 5px;
  color: var(--ink);
  background: white;
  font-size: 12px;
  cursor: pointer;
}
.program-option:has(input:checked) { background: #e9f1cf; border-color: #91a655; }
.program-option input {
  appearance: auto;
  accent-color: var(--forest);
  width: 16px;
  height: 16px;
  min-height: 0;
  margin: 0;
  padding: 0;
  flex-shrink: 0;
  cursor: pointer;
}
.program-apply { min-height: 43px; }
.program-badge {
  display: inline-block;
  border: 1px solid #d6e1ba;
  border-radius: 5px;
  padding: 5px 9px;
  color: var(--deep);
  background: var(--sage);
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}
.program-note { margin: 15px 0 0; color: var(--muted); font-size: 11px; }

@media (max-width: 1100px) and (min-width: 801px) {
  .sidebar { width: 224px; padding: 29px 16px; }
  .main { margin-left: 224px; }
}

@media (max-width: 800px) {
  .sidebar { width: auto; padding: 22px 20px 16px; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand-logo { width: 228px; max-width: 100%; margin: 0 auto; }
  .brand-caption { margin-top: 12px; padding-top: 0; border-top: 0; font-size: 9px; }
  .main { margin-left: 0; }
  .login-content { padding: 38px 28px; }
  .login-content h1 { font-size: 35px; }
  .login-identity { padding: 16px; }
}

@media (max-width: 620px) {
  .public-main { padding: 24px 18px; }
  .login-wrap { max-width: 440px; }
  .login-card { grid-template-columns: 1fr; text-align: center; }
  .login-identity { padding: 12px 28px 0; border-right: 0; }
  .login-logo { max-width: 200px; }
  .login-content { padding: 6px 26px 30px; }
  .login-content h1 { font-size: 34px; }
  .login-content > p { font-size: 13px; margin-bottom: 22px; }
  .login-content .small { font-size: 10px; }
  .login-footer { font-size: 9px; }
  .program-filter { padding: 12px; }
  .program-options { display: grid; grid-template-columns: 1fr 1fr; flex-basis: 100%; }
  .program-option { padding: 10px; }
  .program-apply { width: 100%; }
}
