html {
  scroll-padding-top: 110px;
}

body {
  min-width: 320px;
}

img,
svg {
  max-width: 100%;
}

.skip-link {
  position: fixed;
  z-index: 9999;
  top: 8px;
  left: 8px;
  padding: 10px 16px;
  border-radius: 10px;
  color: #fff;
  background: #071d25;
  transform: translateY(-160%);
  transition: transform .2s ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 70;
  transition: box-shadow .2s ease;
}

.site-header.is-scrolled {
  box-shadow: 0 14px 38px rgba(8, 31, 39, .13);
}

.topbar a {
  color: #fff;
}

.hero h1,
.subhero h1,
.article-body h1,
.article-body h2,
.article-body h3,
.rich-content h2,
.rich-content h3 {
  text-wrap: balance;
}

main {
  display: block;
}

.filter-bar a {
  min-height: 38px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.filter-bar a.active,
.filter-bar a:hover {
  color: #fff;
  background: linear-gradient(135deg, #174e54, #0a2a33);
}

.inline-search {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 360px;
}

.inline-search input {
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(15,45,50,.14);
  border-radius: 10px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

.inline-search button {
  min-height: 44px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  color: #13282e;
  background: linear-gradient(135deg, #75a852, #b3d587);
  font-size: 12px;
  font-weight: 700;
}

.side-contact .button {
  width: 100%;
  margin-top: 18px;
  font-size: 12px;
}

.list-layout,
.list-layout > *,
.list-layout aside,
.list-layout > div {
  min-width: 0;
}

.list-layout .search-box,
.list-layout .filter-bar {
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.list-layout .search-box input {
  min-width: 0;
}

.rich-content {
  color: #455a60;
  font-size: 14px;
  line-height: 2.05;
}

.rich-content > :first-child {
  margin-top: 0;
}

.rich-content > :last-child {
  margin-bottom: 0;
}

.rich-content h2,
.rich-content h3 {
  position: relative;
  padding-left: 17px;
  color: var(--ink);
  scroll-margin-top: 120px;
}

.rich-content h2 {
  margin: 40px 0 15px;
  font-size: 28px;
}

.rich-content h3 {
  margin: 28px 0 12px;
  font-size: 21px;
}

.rich-content h2::before,
.rich-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: .28em;
  bottom: .28em;
  width: 4px;
  border-radius: 99px;
  background: linear-gradient(180deg, var(--orange), var(--plum));
}

.rich-content p {
  margin: 0 0 16px;
}

.rich-content ul,
.rich-content ol {
  margin: 14px 0 20px;
  padding-left: 22px;
}

.rich-content li {
  margin: 7px 0;
}

.rich-content li::marker {
  color: var(--orange-dark);
}

.rich-content a {
  color: var(--orange-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rich-content .content-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border-radius: 14px;
}

.rich-content .content-table th {
  padding: 13px 15px;
  color: #fff;
  background: var(--navy-2);
  text-align: left;
}

.rich-content .content-table td {
  padding: 13px 15px;
  border-bottom: 1px solid var(--line);
  background: #faf9f5;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
}

.article-body .rich-content {
  margin-top: 27px;
}

.article-body .rich-content p {
  font-size: 15px;
  line-height: 2.15;
}

.related-links {
  display: grid;
  border-top: 1px solid var(--line);
}

.related-links a {
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  font-size: 13px;
}

.related-links b {
  color: var(--orange-dark);
}

.faq-block {
  scroll-margin-top: 120px;
}

.article-source p {
  margin: 6px 0;
}

.form-card form {
  margin-top: 24px;
}

.form-card .form-field label {
  display: block;
}

.form-card .form-field input,
.form-card .form-field textarea {
  min-height: 48px;
}

.form-card .form-field textarea {
  min-height: 116px;
}

.form-card .form-grid {
  margin-bottom: 0;
}

.form-consent a,
.footer-bottom a {
  color: #c9e5b1;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.contact-rich {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.about-content {
  max-width: none;
}

.about-content h2 {
  margin-top: 0;
  padding-left: 0;
  font-size: 46px;
  line-height: 1.35;
  letter-spacing: -1px;
}

.about-content h2::before {
  display: none;
}

.about-content p {
  max-width: 650px;
}

.about-content .button {
  margin-top: 16px;
}

.search-keywords a {
  margin: 0 6px;
}

.list-summary a,
.article-source a {
  color: var(--orange-dark);
}

.breadcrumb a:last-child {
  color: rgba(255,255,255,.9);
}

.back-to-top {
  position: fixed;
  z-index: 65;
  right: 24px;
  bottom: 28px;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #0b3038, #14545a);
  box-shadow: 0 12px 28px rgba(7,29,37,.18);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .2s ease, transform .2s ease, visibility .2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.js [data-reveal],
.js [data-reveal].is-visible {
  opacity: 1;
  transform: none;
}

.error-page {
  position: relative;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(circle at 78% 12%, rgba(111,166,79,.2), transparent 30%),
    linear-gradient(130deg, #061920, #0b353b);
}

.error-page::before {
  content: "404";
  position: absolute;
  inset: 50% auto auto 50%;
  color: rgba(255,255,255,.035);
  font: 700 34vw/1 Georgia, serif;
  transform: translate(-50%, -50%);
}

.error-box {
  position: relative;
  z-index: 1;
  width: min(680px, calc(100% - 40px));
  padding: 60px 30px;
  text-align: center;
}

.error-box h1 {
  margin: 20px 0 14px;
  font-size: clamp(34px, 6vw, 58px);
}

.error-box p {
  color: rgba(255,255,255,.55);
  line-height: 1.9;
}

.error-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  html {
    scroll-padding-top: 82px;
  }

  .inline-search {
    width: 100%;
    min-width: 0;
    margin-top: 20px;
  }

  .about-content h2 {
    font-size: 32px;
  }

  .rich-content h2 {
    font-size: 24px;
  }

  .rich-content h3 {
    font-size: 19px;
  }

  .back-to-top {
    right: 14px;
    bottom: 16px;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }

  .js [data-reveal] {
    opacity: 1;
    transform: none;
  }
}
