:root {
  --orange: #FF8800;
  --ink: #272b32;
  --muted: #585e67;
  --line: #dedfe3;
  --paper: #f7f8fa;
  --survey-tint: #fff0e5;
  --survey-sidebar-width: 246px;
  --survey-header-height: 86px;
}

.survey-portal { font: 15px/1.5 Arial, Helvetica, sans-serif; }

.survey-header {
  position: sticky;
  top: 0;
  z-index: 5;
  background: white;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 2px 12px #212b3614;
}

.survey-header::before,
.survey-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  background: var(--orange);
  pointer-events: none;
}

.survey-header::before {
  left: 0;
  width: var(--survey-sidebar-width);
  height: 11px;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

.survey-header::after {
  right: 0;
  width: 64px;
  height: 27px;
  clip-path: polygon(100% 0, 100% 100%, 0 100%);
}

.survey-header-inner {
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: calc(var(--survey-header-height) - 1px);
  padding: 8px 46px 8px 26px;
}

.survey-brand {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 130px;
  height: 68px;
  overflow: hidden;
}

.survey-brand .default-logo {
  position: absolute;
  width: 176px;
  max-width: none;
  max-height: none;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.survey-brand.has-custom-logo .header-logo {
  max-width: 100%;
  max-height: 100%;
}

.survey-title {
  flex: 1;
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--line);
  line-height: 1.2;
}

.survey-title strong {
  display: block;
  color: var(--orange);
  font-size: clamp(21px, 2.6vw, 29px);
  letter-spacing: -.035em;
}

.survey-title span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-top: 3px;
}

.survey-tools {
  display: flex;
  align-items: center;
  gap: 9px;
}

.survey-tools form { margin: 0; }
.survey-tools button { padding: 7px 12px; }
.survey-header .survey-menu-toggle { display: none; }

.survey-account {
  max-width: 20ch;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.survey-sidebar {
  position: fixed;
  inset: var(--survey-header-height) auto 0 0;
  width: var(--survey-sidebar-width);
  padding: 13px 10px 20px;
  background: white;
  border-right: 1px solid var(--line);
  overflow: auto;
}

.survey-sidebar a {
  display: flex;
  align-items: center;
  min-height: 41px;
  padding: 8px 12px;
  border-radius: 6px;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.survey-sidebar a:hover,
.survey-sidebar [aria-current='page'] {
  color: var(--orange);
  background: var(--survey-tint);
}

.survey-sidebar a[aria-current='page'] { box-shadow: inset 3px 0 var(--orange); }

.survey-nav-group + .survey-nav-group {
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--line);
}

.survey-nav-group p {
  margin: 4px 12px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.survey-signed-in .survey-content { margin-left: var(--survey-sidebar-width); }

.survey-portal .shell {
  max-width: 1520px;
  min-height: calc(100vh - 160px);
  padding: 25px clamp(16px, 3vw, 38px) 35px;
}

.survey-portal #main { scroll-margin-top: calc(var(--survey-header-height) + 12px); }
.survey-portal #participation-progress { top: var(--survey-header-height); }
.survey-portal .skip { z-index: 10; }

.survey-intro {
  margin: 0 0 18px;
  padding: clamp(15px, 2.6vw, 26px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(115deg, white 64%, #fff1e6);
}

.survey-intro h1 { color: var(--orange); font-size: clamp(25px, 3vw, 37px); margin: 0; }
.survey-intro .eyebrow { display: block; color: var(--muted); letter-spacing: .08em; margin-bottom: 4px; }

.survey-portal .card,
.survey-portal .hero,
.survey-portal .welcome,
.survey-portal .stat {
  border-radius: 8px;
  border-color: var(--line);
}

.survey-portal .hero,
.survey-portal .welcome {
  background: linear-gradient(115deg, white 64%, #fff1e6);
  padding: clamp(18px, 3.5vw, 34px);
}

.survey-portal .welcome { border: 1px solid var(--line); }
.survey-portal .welcome-shape { color: var(--orange); }
.survey-portal .welcome p,
.survey-portal .hero p { color: var(--muted); }
.survey-portal .card { box-shadow: none; }
.survey-portal .card h2,
.survey-portal .hero h2 { color: var(--orange); }
.survey-portal .stat { border-top: 3px solid var(--orange); }

.survey-portal .button:not(.secondary),
.survey-portal button:not(.secondary):not(.link-button) {
  color: var(--ink);
  background: var(--orange);
}

.survey-portal .button:not(.secondary):hover,
.survey-portal button:not(.secondary):not(.link-button):hover {
  color: var(--ink);
  background: #e67800;
}

.program-update-notes { white-space: pre-wrap; overflow-wrap: anywhere; }

@media (max-width: 920px) {
  .survey-signed-in .survey-content { margin-left: 0; }
  .survey-header-inner { gap: 9px; padding-inline: 16px; }
  .survey-header::before, .survey-header::after { display: none; }
  .survey-title { padding-left: 10px; }
  .survey-account { display: none; }
  .survey-sidebar {
    position: static;
    width: 100%;
    max-height: 62vh;
    padding: 7px 12px 12px;
    border: 0;
    border-top: 1px solid var(--line);
  }
  .survey-header.has-menu .survey-sidebar { display: none; }
  .survey-header.has-menu .survey-menu-toggle { display: inline-flex; }
  .survey-header.has-menu.menu-open .survey-sidebar { display: block; }
}

@media (max-width: 560px) {
  .survey-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    min-height: 0;
    row-gap: 5px;
    padding: 8px 12px;
  }
  .survey-brand { width: 76px; height: 46px; }
  .survey-brand .default-logo { width: 105px; }
  .survey-title span { display: none; }
  .survey-tools { grid-column: 1 / -1; }
  .survey-tools form { margin-left: auto; }
  .survey-portal .shell { padding-top: 16px; }
  .survey-portal:not(.survey-signed-in) { --survey-header-height: 63px; }
}

@media print {
  .survey-header { display: none; }
  .survey-signed-in .survey-content { margin: 0; }
}
