:root {
  --resilience-navy: #203864;
  --resilience-blue: #184785;
  --resilience-page: #c0cedb;
  --resilience-border: #dee2e6;
}

[hidden] {
  display: none !important;
}

/* Pelican appends a Font Awesome external-link glyph to new-window links.
   This project does not load the legacy icon font, so suppress that marker. */
a[target="_blank"]::after,
a[target="blank"]::after {
  display: none !important;
  content: none !important;
}

html {
  width: 100%;
  max-width: 100%;
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  width: 100%;
  max-width: 100%;
  background: var(--resilience-page);
  overflow-x: hidden;
}

.main {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

img {
  max-width: 100%;
}

a,
h1,
h2,
h3,
.editable-region,
.media-body,
.resource-copy,
.site-brand {
  min-width: 0;
  overflow-wrap: anywhere;
}

.skip-to-main {
  position: fixed;
  top: 0;
  left: -240px;
  z-index: 9999;
  padding: 0.75rem 1rem;
  color: #00284d;
  background: #fff;
  border-radius: 0 0 0.25rem 0;
}

.skip-to-main:focus {
  left: 0;
}

.official-banner .row {
  padding-left: 0;
  padding-right: 0;
}

.official-banner button {
  text-decoration: underline;
}

.navbar-search {
  display: block;
  color: #fff;
  background: var(--resilience-navy);
}

.site-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem 1.5rem 0.75rem;
}

.site-brand {
  flex: 1 1 auto;
}

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

.brand-logo {
  display: block;
  padding-top: 0.2rem;
  font-size: 1.55rem;
  font-weight: 600;
  line-height: 1.3;
}

.site-tagline {
  max-width: 850px;
  margin: 0.65rem 0 0;
  color: #fff;
}

.navbar-search hr.minor {
  width: 100%;
  margin: 0;
  border-color: #fff;
}

.navbar-search .navbar-nav {
  flex-direction: row;
  justify-content: flex-start;
}

.navbar-search .nav-item {
  width: 16.6667%;
}

.navbar-search .nav-link {
  display: block;
  padding: 0.8rem 1rem;
  color: #fff;
  text-decoration: none;
}

.navbar-search .nav-link:hover,
.navbar-search .nav-link:focus,
.navbar-search .active .nav-link {
  color: #fff;
  background: rgba(255, 255, 255, 0.16);
  text-decoration: underline;
  text-underline-offset: 0.25rem;
}

.navbar-toggler {
  display: none;
  margin-top: 0.25rem;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
}

.container-body {
  min-height: 30rem;
  padding: 2rem 2rem 2.5rem;
}

.home-content {
  overflow: hidden;
}

.introduction-section::after {
  display: table;
  clear: both;
  content: "";
}

.introduction-image {
  float: right;
  width: min(47%, 530px);
  max-height: 300px;
  margin: 0 0 1rem 1.75rem;
  object-fit: cover;
}

.editable-region li + li {
  margin-top: 0.5rem;
}

.tabs-section {
  clear: both;
  width: 95%;
  margin: 2rem auto 0;
}

.tab-list {
  display: flex;
  align-items: flex-end;
  border-bottom: 1px solid var(--resilience-border);
}

.tab-button {
  margin: 0 0 -1px;
  padding: 0.75rem 1rem;
  color: #185ae3;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 0.25rem 0.25rem 0 0;
  cursor: pointer;
}

.tab-button:hover,
.tab-button:focus {
  color: #113f9e;
  text-decoration: underline;
}

.tab-button.active {
  color: #495057;
  background: #fff;
  border-color: var(--resilience-border) var(--resilience-border) #fff;
}

.tab-panel {
  padding: 1.5rem 0.75rem 0;
}

.tab-panel:focus {
  outline: 2px solid transparent;
}

.tab-panel h2 {
  font-size: 1.15rem;
  font-weight: 700;
}

.tab-panel h3 {
  margin-top: 2rem;
  font-size: 1.15rem;
}

.tab-panel blockquote {
  padding-left: 2rem;
  font-style: italic;
}

.tab-image {
  display: block;
  max-width: 100%;
  max-height: 520px;
  margin: 1rem auto 1.5rem;
}

.tab-image-wide {
  max-height: none;
}

.section-divider {
  clear: both;
  margin: 2rem 0;
}

.feature-report {
  position: relative;
  display: flex;
  min-height: 335px;
  align-items: center;
  padding: 2.5rem;
  overflow: hidden;
  color: #fff;
  background-position: center;
  background-size: cover;
}

.feature-report .overlay {
  position: absolute;
  inset: 0;
  background: #000;
  opacity: 0.54;
}

.feature-report-content {
  position: relative;
  z-index: 1;
  max-width: 670px;
}

.feature-report-content h2 {
  color: #fff;
}

.feature-report .btn-white {
  color: #00284d;
  background: #fff;
  border-color: #fff;
}

.related-carousel {
  position: relative;
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  align-items: center;
  min-height: 355px;
  padding: 1.25rem 0;
  background: #d3d3d3;
}

.carousel-control {
  z-index: 2;
  width: 2.5rem;
  height: 3rem;
  margin: auto;
  color: #00284d;
  background: transparent;
  border: 0;
  font-size: 2rem;
  cursor: pointer;
}

.carousel-control:hover {
  background: transparent;
}

.carousel-control:focus-visible {
  background: transparent;
  outline: 2px solid #00284d;
  outline-offset: 2px;
}

.carousel-control .fa-solid {
  font-size: 1.65rem;
}

.resource-slide {
  display: grid;
  grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
  min-height: 300px;
  padding: 1rem;
}

.resource-image-wrap {
  text-align: center;
}

.resource-image-wrap img {
  max-width: 300px;
  max-height: 270px;
  object-fit: contain;
}

.resource-copy h2 {
  font-size: 1.75rem;
}

.footer-utility {
  padding: 0.4rem 0;
  color: #fff;
  background: var(--resilience-navy);
}

.footer-content {
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5rem;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  text-align: left;
}

.footer-content h2 {
  flex: 0 0 auto;
  margin: 0;
  color: #fff;
  font-size: 1.75rem;
  line-height: 1.2;
}

.footer-links {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: nowrap;
  gap: 1.75rem;
  align-items: center;
  justify-content: flex-start;
}

.footer-links a,
.footer-links a:hover,
.footer-links a:focus,
.footer-links a:active {
  color: #fff;
  text-decoration: none;
}

.social-link svg {
  display: block;
  width: 1.5rem;
  height: 1.5rem;
  fill: currentColor;
}

.social-link.youtube {
  color: #f33;
}

.inner-content h1 {
  margin-bottom: 1.5rem;
}

.content-card details {
  padding: 0.4rem 0;
}

.content-card summary {
  padding: 0.5rem;
  cursor: pointer;
}

.content-card summary:hover,
.content-card summary:focus {
  text-decoration: underline;
}

.detail-content {
  padding: 1rem 1.5rem 0.5rem;
}

.detail-meta {
  display: flex;
  gap: 0.5rem;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.detail-icon {
  color: var(--resilience-blue);
}

.table-responsive {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.table-responsive table {
  width: 100%;
  border-collapse: collapse;
}

.table-responsive th,
.table-responsive td {
  padding: 0.55rem 0.65rem;
  border: 1px solid #6c757d;
  text-align: left;
  vertical-align: top;
}

.table-responsive th {
  color: #fff;
  background: var(--resilience-navy);
}

@media (max-width: 767.98px) {
  .container {
    width: 100%;
    max-width: 100%;
  }

  .official-banner .container {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .official-banner .media-body {
    min-width: 0;
  }

  .official-banner p {
    white-space: normal;
  }

  .site-title-row {
    align-items: center;
    flex-wrap: wrap;
    padding: 1rem;
  }

  .site-brand {
    min-width: 0;
  }

  .brand-logo {
    font-size: 1.1rem;
  }

  .site-tagline {
    display: none;
  }

  .navbar-toggler {
    display: block;
    flex: 0 0 auto;
    margin-left: auto;
  }

  .navbar-collapse:not(.is-open) {
    display: none;
  }

  .navbar-search .navbar-nav {
    flex-direction: column;
  }

  .navbar-search .nav-item {
    width: 100%;
  }

  .container-body {
    width: calc(100% - 1rem);
    max-width: calc(100% - 1rem);
    margin-right: auto;
    margin-left: auto;
    padding: 1.25rem 1rem 2rem;
  }

  .introduction-image {
    float: none;
    width: 100%;
    margin: 0 0 1.25rem;
  }

  .tabs-section {
    width: 100%;
  }

  .tab-list {
    align-items: stretch;
    width: 100%;
  }

  .tab-button {
    min-width: 0;
    flex: 1 1 33%;
    padding: 0.65rem 0.35rem;
    overflow-wrap: anywhere;
  }

  .feature-report {
    width: 100%;
    min-height: 370px;
    padding: 1.5rem;
  }

  .feature-report-content,
  .feature-report .btn {
    max-width: 100%;
  }

  .feature-report .btn {
    white-space: normal;
  }

  .related-carousel {
    width: 100%;
    grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
  }

  .carousel-slides,
  .resource-slide,
  .resource-copy {
    min-width: 0;
    max-width: 100%;
  }

  .resource-slide {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: 520px;
  }

  .resource-image-wrap img {
    max-width: 100%;
    max-height: 240px;
  }

  .resource-copy h2 {
    font-size: 1.4rem;
  }

  .footer-content {
    width: 100%;
    max-width: 100%;
    flex-direction: column;
    flex-wrap: nowrap;
    gap: 0.65rem 1.25rem;
    padding: 0.5rem 0;
    text-align: center;
  }

  .footer-content h2 {
    width: 100%;
    font-size: 1.4rem;
  }

  .footer-links {
    width: 100%;
    max-width: 100%;
    flex: 1 1 100%;
    flex-wrap: wrap;
    gap: 0.75rem 1.25rem;
    justify-content: center;
  }

  .footer-links > * {
    max-width: 100%;
  }

  .content-card,
  .content-card .card-body,
  .content-card details,
  .detail-content {
    min-width: 0;
    max-width: 100%;
  }

  .detail-content {
    padding-right: 0.75rem;
    padding-left: 0.75rem;
  }

  .detail-meta {
    align-items: flex-start;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 575.98px) {
  .brand-logo {
    font-size: 1.05rem;
  }

  .logo-image {
    width: 46px;
    height: 46px;
  }

  .navbar-toggler {
    padding: 0.25rem 0.55rem;
    font-size: 1rem;
  }

  .home-content h1,
  .inner-content h1 {
    font-size: 1.85rem;
  }

  .tab-panel {
    padding-right: 0;
    padding-left: 0;
  }

  .feature-report {
    padding: 1.25rem;
  }

  .feature-report-content h2 {
    font-size: 1.55rem;
  }

  .related-carousel {
    grid-template-columns: 2.25rem minmax(0, 1fr) 2.25rem;
  }

  .carousel-control {
    width: 2.25rem;
  }

  .resource-slide {
    padding-right: 0.35rem;
    padding-left: 0.35rem;
  }

  .resource-copy h2 {
    font-size: 1.3rem;
  }

  .table-responsive {
    overflow: visible;
  }

  .table-responsive table,
  .table-responsive tbody,
  .table-responsive tr,
  .table-responsive td {
    display: block;
    width: 100%;
  }

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

  .table-responsive tr {
    margin-bottom: 1rem;
    border: 1px solid #6c757d;
    border-radius: 0.25rem;
  }

  .table-responsive td {
    display: grid;
    grid-template-columns: minmax(6.5rem, 38%) minmax(0, 1fr);
    gap: 0.5rem;
    border: 0;
    border-bottom: 1px solid #ced4da;
    overflow-wrap: anywhere;
  }

  .table-responsive td:last-child {
    border-bottom: 0;
  }

  .table-responsive td::before {
    color: #00284d;
    font-weight: 700;
  }

  .table-responsive td:nth-child(1)::before {
    content: "Officer";
  }

  .table-responsive td:nth-child(2)::before {
    content: "Agency";
  }

  .table-responsive td:nth-child(3)::before {
    content: "Contact";
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
