.site-header {
  border-bottom: 1px solid var(--color-border);
  background: #fff;
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  min-height: 82px;
}

.site-brand-lockup,
.brand,
.site-nav,
.site-nav__identity,
.site-nav__logout button {
  display: flex;
  align-items: center;
}

.brand {
  text-decoration: none;
}

.brand__logo {
  width: 255px;
  height: auto;
  object-fit: contain;
}

.site-brand-lockup {
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 1rem;
  max-width: 100%;
}

.institutional-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.institutional-brand__logo {
  width: auto;
  height: 48px;
  object-fit: contain;
}

.site-brand-lockup > .institutional-brand {
  padding-left: 1rem;
  border-left: 1px solid var(--color-border);
}

.site-nav {
  min-width: 0;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 1.15rem;
  margin-left: auto;
}

.site-nav[hidden],
.site-menu-toggle {
  display: none;
}

.site-menu-toggle {
  align-items: center;
  justify-content: center;
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  padding: 0;
  margin-left: auto;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: var(--color-soft);
  color: var(--color-blue-dark);
  cursor: pointer;
}

.site-menu-toggle:hover {
  background: #dff2fc;
}

.site-menu-toggle__icon,
.site-menu-toggle__icon::before,
.site-menu-toggle__icon::after {
  display: block;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.site-menu-toggle__icon {
  position: relative;
}

.site-menu-toggle__icon::before,
.site-menu-toggle__icon::after {
  position: absolute;
  left: 0;
  content: "";
}

.site-menu-toggle__icon::before { top: -6px; }
.site-menu-toggle__icon::after { top: 6px; }
.site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon { background: transparent; }
.site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon::before { top: 0; transform: rotate(45deg); }
.site-menu-toggle[aria-expanded="true"] .site-menu-toggle__icon::after { top: 0; transform: rotate(-45deg); }

.site-nav a {
  color: var(--color-muted);
  font-weight: 650;
  text-decoration: none;
}

.site-nav__web {
  padding: 8px 14px;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
}

.site-nav__divider {
  width: 1px;
  height: 32px;
  background: var(--color-border);
}

.site-nav__identity {
  gap: 10px;
  color: var(--color-ink) !important;
}

.site-nav__avatar {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #dceff2;
  color: var(--color-ink);
  font-weight: 800;
}

.site-nav a:hover {
  color: var(--color-blue);
}

.site-nav__logout {
  margin: 0;
}

.site-nav__logout button {
  gap: 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-weight: 650;
}

.site-nav__logout-icon {
  color: var(--color-blue-dark);
  font-size: 1.45rem;
  line-height: 1;
}

.site-nav__logout button:hover {
  color: var(--color-blue);
}

.citizen-mobile-nav {
  display: none;
}

.hero {
  background: var(--color-soft);
  padding: 5rem 0;
}

.hero__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 2rem;
  align-items: center;
}

.eyebrow {
  margin: 0 0 .75rem;
  color: var(--color-green);
  font-weight: 800;
  text-transform: uppercase;
}

.hero h1 {
  margin: 0;
  font-size: 5rem;
  line-height: .95;
}

.hero__lead {
  max-width: 58ch;
  color: var(--color-muted);
  font-size: 1.15rem;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .75rem;
  min-height: 48px;
  padding: .72rem 1.25rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  cursor: pointer;
  font-weight: 750;
  text-decoration: none;
  transition: background-color .18s ease, border-color .18s ease, transform .18s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button--primary {
  border-color: var(--color-blue);
  background: var(--color-blue);
  color: #fff;
}

.button--primary:hover {
  border-color: var(--color-blue-dark);
  background: var(--color-blue-dark);
}

.button--secondary {
  background: #fff;
  color: var(--color-blue);
}

.button--block {
  width: 100%;
}

.button__icon {
  font-size: 1.35em;
  line-height: 1;
}

.status-panel {
  border-left: 4px solid var(--color-green);
  padding: 1rem 0 1rem 1.25rem;
  background: #fff;
}

.status-panel h2,
.status-panel p {
  margin: 0;
}

.status-panel p {
  color: var(--color-muted);
}

.publication-status {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  min-height: 30px;
  padding: .3rem .7rem;
  border-radius: 999px;
  background: #eef2f6;
  color: #4e6176;
  font-size: .76rem;
  font-weight: 800;
}

.publication-status--pending_review {
  background: #e6f2fb;
  color: #17658e;
}

.publication-status--changes_requested {
  background: #fff3d8;
  color: #8b5c00;
}

.publication-status--approved {
  background: #e7f5e2;
  color: #2d6c21;
}

.publication-status--rejected,
.publication-status--withdrawn {
  background: #f7e9e7;
  color: #913b32;
}

.site-footer {
  border-top: 4px solid var(--color-green);
  background: #17222e;
  color: #d8e1e8;
}

.site-footer__grid {
  display: grid;
  grid-template-columns: minmax(250px, 1.45fr) repeat(2, minmax(150px, .8fr)) minmax(170px, 1fr);
  gap: 3rem;
  padding-top: 3.5rem;
  padding-bottom: 3rem;
}

.site-footer p,
.site-footer address {
  margin: 0;
}

.site-footer a {
  color: #d8e1e8;
  text-decoration: none;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer__brand {
  display: inline-block;
}

.site-footer__brand img {
  width: 210px;
  height: auto;
}

.site-footer__tagline {
  margin-top: 1rem !important;
  color: #fff;
}

.site-footer__contact {
  display: grid;
  gap: .55rem;
  margin-top: 1.15rem !important;
  color: #d8e1e8;
  font-style: normal;
}

.site-footer__contact span[aria-hidden="true"] {
  display: inline-block;
  width: 24px;
  color: #fff;
  text-align: center;
}

.site-footer__links,
.site-footer__social {
  display: grid;
  align-content: start;
  gap: .65rem;
}

.site-footer h2 {
  margin: 0 0 .35rem;
  color: #fff;
  font-size: .88rem;
  line-height: 1.3;
  text-transform: uppercase;
}

.site-footer__social {
  min-width: 0;
  padding-left: 2rem;
  border-left: 1px solid #40505e;
}

.site-footer__social-links {
  display: flex;
  flex-wrap: wrap;
  gap: .65rem;
}

.site-footer__social-links a {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #53616e;
  border-radius: 50%;
  color: #fff;
  font-weight: 850;
}

.site-footer__social-links a:hover {
  border-color: #fff;
  background: #fff;
  color: #17222e;
}

.site-footer__collaboration {
  margin-top: .75rem;
  padding-top: 1.25rem;
  border-top: 1px solid #40505e;
}

.site-footer__collaboration h3 {
  margin: 0 0 .85rem;
  color: #fff;
  font-size: .75rem;
  line-height: 1.4;
  text-align: center;
}

.site-footer__collaboration-logos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: .75rem;
  border-radius: 6px;
  background: #fff;
}

.site-footer__collaboration-logos .institutional-brand__logo {
  height: 72px;
}

.site-footer__collaboration-logos .institutional-brand + .institutional-brand {
  padding-left: 1rem;
  border-left: 1px solid var(--color-border);
}

.site-footer__cabildo {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #40505e;
  font-weight: 750;
}

.site-footer__cabildo img {
  width: 44px;
  height: 55px;
  object-fit: contain;
  filter: brightness(0) invert(1);
}

.site-footer__bottom {
  border-top: 1px solid #40505e;
}

.site-footer__bottom-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 66px;
  font-size: .82rem;
}

.site-footer__bottom nav {
  display: flex;
  gap: 1.5rem;
}

.state,
.message {
  padding: 1rem;
  border: 1px solid var(--color-border);
  border-radius: 6px;
  background: #fff;
}

.messages {
  display: grid;
  gap: .5rem;
  margin: 1rem auto;
}

.message--error {
  border-color: #f4b4ae;
  color: var(--color-danger);
}

.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;
}

@media (max-width: 1100px) {
  .site-footer__collaboration-logos {
    gap: .5rem;
    padding: .5rem;
  }

  .site-footer__collaboration-logos .institutional-brand__logo {
    height: 64px;
  }

  .site-footer__collaboration-logos .institutional-brand + .institutional-brand {
    padding-left: .5rem;
  }
}

@media (max-width: 900px) {
  .site-nav__web,
  .site-nav__divider {
    display: none;
  }

  .site-footer__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-footer__social {
    padding-left: 0;
    border-left: 0;
  }
}

@media (max-width: 768px) {
  .body--citizen-nav {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .citizen-mobile-nav {
    position: fixed;
    z-index: 90;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    min-height: calc(68px + env(safe-area-inset-bottom));
    padding: 6px 8px calc(5px + env(safe-area-inset-bottom));
    border-top: 1px solid #d7e0e4;
    background: rgba(255, 255, 255, .98);
    box-shadow: 0 -5px 18px rgba(20, 47, 60, .08);
  }

  .citizen-mobile-nav a {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 56px;
    align-content: center;
    justify-items: center;
    gap: 3px;
    padding: 3px 2px;
    color: #596872;
    font-size: .72rem;
    font-weight: 650;
    line-height: 1.1;
    text-decoration: none;
  }

  .citizen-mobile-nav a.is-active {
    color: #075d42;
    font-weight: 800;
  }

  .citizen-mobile-nav a.is-active::after {
    position: absolute;
    right: 18%;
    bottom: 0;
    left: 18%;
    height: 3px;
    border-radius: 3px;
    background: #087653;
    content: "";
  }

  .citizen-mobile-nav__icon {
    position: relative;
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    font-size: 1.65rem;
    line-height: 1;
  }

  .citizen-mobile-nav__icon--search::before {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 50%;
    content: "";
  }

  .citizen-mobile-nav__icon--search::after {
    position: absolute;
    right: 3px;
    bottom: 3px;
    width: 9px;
    border-top: 2px solid currentColor;
    content: "";
    transform: rotate(45deg);
  }

  .citizen-mobile-nav__icon--add {
    border: 2px solid currentColor;
    border-radius: 50%;
    font-size: 1.45rem;
  }

  .citizen-mobile-nav__icon--account::before {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: currentColor;
    content: "";
  }

  .citizen-mobile-nav__icon--account::after {
    width: 22px;
    height: 10px;
    margin-top: -3px;
    border-radius: 12px 12px 4px 4px;
    background: currentColor;
    content: "";
  }

  .hero__grid {
    display: block;
  }

  .site-header__inner {
    flex-wrap: wrap;
    gap: 12px;
    min-height: 70px;
    padding: 10px 0;
  }

  .site-nav {
    flex: 0 0 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin-left: 0;
    padding-top: 12px;
    border-top: 1px solid var(--color-border);
  }

  .site-menu-toggle:not([hidden]) {
    display: inline-flex;
  }

  .site-nav > a,
  .site-nav__logout button {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 12px;
    font-size: 1rem;
  }

  .site-nav__logout button {
    width: 100%;
  }

  .brand__logo {
    width: 185px;
  }

  .site-brand-lockup {
    gap: .65rem;
  }

  .site-brand-lockup > .institutional-brand {
    padding-left: .65rem;
  }

  .site-brand-lockup .institutional-brand__logo {
    height: 36px;
  }

  .site-nav__avatar {
    width: 36px;
    height: 36px;
  }

  .hero {
    padding: 3rem 0;
  }

  .hero h1 {
    font-size: 3.25rem;
  }

  .site-footer__grid {
    gap: 2.5rem 1.5rem;
    padding-top: 3rem;
    padding-bottom: 2.5rem;
  }

  .site-footer__bottom-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: .8rem;
    padding-top: 1.25rem;
    padding-bottom: 1.25rem;
  }
}

@media (max-width: 480px) {
  .site-header__inner,
  .site-nav {
    flex-wrap: wrap;
  }

  .brand__logo {
    width: 120px;
  }

  .site-brand-lockup {
    gap: .5rem;
  }

  .site-brand-lockup > .institutional-brand {
    padding-left: .5rem;
  }

  .site-brand-lockup .institutional-brand__logo {
    height: 28px;
  }

  .site-header__inner,
  .site-nav {
    gap: 8px;
  }

  .site-footer {
    font-size: .82rem;
  }

  .site-footer__grid {
    grid-template-columns: 1fr;
  }

  .site-footer__bottom nav {
    flex-wrap: wrap;
    gap: .6rem 1rem;
  }
}
