/* ── Delaware state banner (Lighthouse-compatible, standalone) ──
   Matches governor.delaware.gov #state-header / #official-web-statement.
   Requires Bootstrap 5.3 collapse utilities (loaded before this file). */

/* Match JobsFirst site content width (Bootstrap .container defaults differ). */
#state-header .container,
#official-web-statement .container {
  max-width: 1200px;
  padding-left: 32px;
  padding-right: 32px;
}

:root {
  --lh-primary: #00415b;
  --lh-primary-rgb: 0, 65, 91;
  --lh-white: #fff;
  --bs-primary: #00415b;
  --bs-primary-rgb: 0, 65, 91;
}

/* Lighthouse column-gap utility used in banner markup */
@media (min-width: 992px) {
  .column-gap-lg-8 { column-gap: 4rem !important; }
}

#state-header.bg-primary,
#state-header {
  color: #fff;
  font-size: 0.75rem;
  background-color: rgba(var(--lh-primary-rgb), 1) !important;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

@media (min-width: 768px) {
  #state-header {
    font-size: 1rem;
    padding-top: 1.125rem;
    padding-bottom: 1.125rem;
  }
}

#state-header #state-of-delaware-logo { display: block; }

#state-header #state-of-delaware-logo > img {
  max-width: 117px;
  height: auto;
}

#state-header p {
  font-size: 0.75rem;
  margin-top: 0;
  margin-bottom: 0;
  color: #fff;
}

@media (min-width: 768px) {
  #state-header p { font-size: 1rem; }
}

#state-header a { color: #fff; }

#state-header button {
  background: none;
  border: none;
  font-weight: bold;
  color: var(--lh-white);
  position: relative;
  cursor: pointer;
  font-family: inherit;
  font-size: inherit;
  padding: 0;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 7px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

#state-header button:visited { color: var(--lh-white); }
#state-header button:hover { text-decoration-thickness: 4px; }

#state-header button:focus-visible {
  color: var(--lh-white);
  text-decoration: none;
  border-radius: 2px;
  outline: 3px solid #109be0;
  outline-offset: 2px;
}

@media (min-width: 768px) {
  #state-header button:focus-visible { outline-offset: -3px; }
}

#state-header button:active { color: var(--lh-white); }

@media (max-width: 767.98px) {
  #state-header button { padding-left: 0; }
}

#state-header button svg {
  flex-shrink: 0;
  fill: currentColor;
  transition: transform 0.2s ease;
}

#state-header button:not(.collapsed) svg {
  margin-bottom: 5px;
  transform: rotate(180deg);
}

#state-header .d-flex.flex-column.flex-md-row {
  gap: 0.25rem;
}

@media (min-width: 768px) {
  #state-header .d-flex.flex-column.flex-md-row { gap: 0.5rem; }
}

#official-web-statement {
  background-color: #202020;
  color: #fff;
}

#official-web-statement h2 {
  color: #fff;
  font-size: 1.125rem;
  font-weight: 700;
}

#official-web-statement p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.875rem;
  line-height: 1.6;
}

.icon-24 {
  width: 24px;
  height: 24px;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  #state-header button svg { transition: none; }
}
