:root {
  --purple: #77317e;
  --purple-dark: #65256f;
  --teal: #006c7a;
  --blue: #1f5f93;
  --ink: #28323a;
  --muted: #5f6670;
  --light: #f5f5f5;
  --line: #c8c8c8;
  --white: #ffffff;
  --max-width: 1728px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background: #ffffff;
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

main {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hhs-bar {
  min-height: 45px;
  background: var(--purple);
  color: var(--white);
}

.hhs-bar__inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 82px;
  width: min(100%, var(--max-width));
  min-height: 45px;
  margin: 0 auto;
  padding: 0 32px;
}

.hhs-bar__agency {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  font-size: 16px;
  line-height: 1;
  white-space: nowrap;
}

.hhs-mark {
  position: relative;
  display: inline-block;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
}

.hhs-mark__wing {
  position: absolute;
  left: 8px;
  width: 12px;
  height: 1px;
  background: #ffffff;
  transform-origin: left center;
}

.hhs-mark__wing--one {
  top: 9px;
  transform: rotate(-34deg);
}

.hhs-mark__wing--two {
  top: 13px;
  transform: rotate(-18deg);
}

.hhs-mark__wing--three {
  top: 17px;
  transform: rotate(20deg);
}

.nih-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 10px 0 8px;
  color: var(--purple);
  background: #ffffff;
  border-radius: 2px 0 0 2px;
  font-weight: 700;
  line-height: 1;
}

.nih-tab::after {
  content: "";
  position: absolute;
  top: 0;
  right: -12px;
  width: 12px;
  height: 24px;
  background: #ffffff;
  clip-path: polygon(0 0, 50% 0, 100% 50%, 50% 100%, 0 100%, 48% 50%);
}

.primary-header {
  min-height: 124px;
  background: var(--light);
}

.primary-header__inner {
  display: flex;
  align-items: center;
  width: min(100%, var(--max-width));
  min-height: 124px;
  margin: 0 auto;
  padding: 20px clamp(40px, 4.7vw, 88px);
}

.ncats-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.nih-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 64px;
  min-width: 102px;
  padding-left: 10px;
  background: #5f6366;
  border-radius: 5px 0 0 5px;
}

.nih-logo__text {
  display: block;
  color: #ffffff;
  font-size: 38px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
}

.nih-logo__chevron {
  position: absolute;
  top: 0;
  right: -28px;
  width: 34px;
  height: 64px;
  background: var(--blue);
  clip-path: polygon(0 0, 38% 0, 100% 50%, 38% 100%, 0 100%, 54% 50%);
}

.nih-logo__chevron::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff;
  clip-path: polygon(0 0, 15% 0, 76% 50%, 15% 100%, 0 100%, 62% 50%);
}

.ncats-brand__name {
  display: block;
  margin-left: 14px;
  color: #606469;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.12;
}

.ncats-brand:focus-visible,
.hhs-bar__agency:focus-visible {
  outline: 3px solid #f7d13d;
  outline-offset: 4px;
}

.maintenance-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  flex: 1 1 auto;
  min-height: 0;
  padding: clamp(48px, 6vh, 64px) 32px clamp(24px, 3vh, 32px);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(0, 108, 122, 0.08), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f5f8f8 100%);
}

.maintenance-panel__inner {
  width: min(100%, 960px);
  max-width: calc(100vw - 64px);
  margin: 0 auto;
  padding: 0;
  text-align: center;
}

.eyebrow {
  margin: 0 0 24px;
  color: var(--teal);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  max-width: 760px;
  margin: 0;
  color: #1f2933;
  font-size: clamp(40px, 5vw, 68px);
  font-weight: 700;
  line-height: 1.03;
  letter-spacing: 0;
}

.maintenance-copy {
  max-width: 820px;
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.45;
}

.maintenance-dates {
  color: var(--teal);
  font-weight: 700;
  white-space: nowrap;
}

.maintenance-details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  max-width: 760px;
  margin-top: 44px;
  border-top: 1px solid #d6dddd;
  border-bottom: 1px solid #d6dddd;
}

.maintenance-details > div {
  min-height: 98px;
  padding: 22px 30px 22px 0;
}

.maintenance-details > div + div {
  padding-left: 30px;
  border-left: 1px solid #d6dddd;
}

.maintenance-details__label {
  display: block;
  margin-bottom: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.maintenance-details strong {
  color: #29333d;
  font-size: 18px;
  line-height: 1.35;
}

.site-footer {
  color: #ffffff;
  background: #55565b;
}

.site-footer__inner {
  width: min(100%, 1290px);
  margin: 0 auto;
  padding: 28px 0;
}

.site-footer a {
  color: inherit;
}

.site-footer a:focus-visible {
  outline: 3px solid #f7d13d;
  outline-offset: 4px;
}

.site-footer__contact {
  display: grid;
  grid-template-columns: 260px 250px 210px minmax(230px, 1fr) auto;
  align-items: center;
  gap: 24px;
}

.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 16px;
}

.footer-nih-logo {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 51px;
  min-width: 76px;
  padding-left: 7px;
  background: #ffffff;
  border-radius: 5px 0 0 5px;
}

.footer-nih-logo__text {
  color: #55565b;
  font-size: 31px;
  font-weight: 700;
  line-height: 1;
}

.footer-nih-logo__chevron {
  position: absolute;
  top: 0;
  right: -24px;
  width: 29px;
  height: 51px;
  background: var(--blue);
  clip-path: polygon(0 0, 38% 0, 100% 50%, 38% 100%, 0 100%, 54% 50%);
}

.footer-brand__name {
  display: block;
  margin-left: 8px;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.18;
}

.footer-address {
  margin: 0;
  font-style: normal;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.48;
}

.footer-address a,
.footer-language a,
.footer-vulnerability a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-address svg,
.footer-language svg,
.footer-vulnerability svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.footer-social {
  margin: 0;
}

.footer-social p {
  margin: 0 0 15px;
  font-size: 14px;
  font-weight: 700;
}

.footer-social ul {
  display: flex;
  align-items: center;
  gap: 26px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  color: #55565b;
  background: #ffffff;
  border-radius: 999px;
  font-size: 23px;
  font-weight: 700;
  line-height: 1;
}

.footer-social li:nth-child(2) a {
  border-radius: 2px;
  font-size: 20px;
  font-family: Georgia, "Times New Roman", serif;
}

.footer-social li:nth-child(3) a {
  color: #ffffff;
  background: transparent;
  border-radius: 0;
  font-size: 27px;
  font-weight: 400;
}

.footer-social svg {
  width: 24px;
  height: 24px;
  fill: #ffffff;
}

.footer-social svg path + path {
  fill: #55565b;
}

.footer-social li:nth-child(5) a {
  gap: 4px;
  border-radius: 4px;
}

.footer-social li:nth-child(5) span {
  width: 6px;
  height: 6px;
  background: #55565b;
  border-radius: 999px;
}

.footer-language {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.footer-vulnerability {
  margin: 0;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 1180px) {
  .primary-header__inner {
    padding: 24px 40px;
  }

  .site-footer__inner {
    padding-right: 40px;
    padding-left: 40px;
  }

  .site-footer__contact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 40px;
  }
}

@media (max-width: 740px) {
  .hhs-bar {
    min-height: 0;
  }

  .hhs-bar__inner {
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 5px 18px;
    min-height: 0;
    overflow: visible;
    padding: 6px 18px 7px;
  }

  .hhs-bar__agency {
    min-height: 24px;
    font-size: 12px;
    white-space: normal;
  }

  .hhs-mark {
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
  }

  .hhs-mark__wing {
    left: 7px;
    width: 10px;
  }

  .hhs-mark__wing--one {
    top: 8px;
  }

  .hhs-mark__wing--two {
    top: 11px;
  }

  .hhs-mark__wing--three {
    top: 14px;
  }

  .nih-tab {
    flex: 0 0 auto;
    height: 22px;
  }

  .nih-tab::after {
    height: 22px;
  }

  .primary-header {
    min-height: 0;
  }

  .primary-header__inner {
    align-items: flex-start;
    min-height: 0;
    padding: 18px;
  }

  .ncats-brand {
    align-items: center;
  }

  .nih-logo {
    height: 52px;
    min-width: 84px;
  }

  .nih-logo__text {
    font-size: 31px;
  }

  .nih-logo__chevron {
    right: -23px;
    width: 28px;
    height: 52px;
  }

  .ncats-brand__name {
    font-size: 15px;
  }

  .maintenance-panel {
    min-height: auto;
    padding: 36px 22px 24px;
  }

  .maintenance-panel__inner {
    max-width: calc(100vw - 44px);
  }

  .eyebrow {
    margin-bottom: 18px;
    font-size: 16px;
    line-height: 1.3;
    letter-spacing: 0.05em;
  }

  h1 {
    font-size: 34px;
    line-height: 1.08;
  }

  .maintenance-copy {
    max-width: 320px;
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.4;
  }

  .maintenance-details {
    grid-template-columns: 1fr;
  }

  .maintenance-details > div {
    min-height: 0;
    padding: 20px 0;
  }

  .maintenance-details > div + div {
    padding-left: 0;
    border-top: 1px solid #d6dddd;
    border-left: 0;
  }

  .site-footer__inner {
    min-height: 0;
    padding: 18px 22px;
  }

  .site-footer__contact {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
  }

  .footer-address {
    margin-top: 14px;
    font-size: 14px;
    line-height: 1.42;
  }

  .footer-social {
    margin-top: 14px;
  }

  .footer-social p {
    margin-bottom: 10px;
  }

  .footer-social ul {
    gap: 22px;
  }

  .footer-language {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.35;
  }

  .footer-vulnerability {
    margin-top: 8px;
    font-size: 12px;
    line-height: 1.35;
  }

}
