:root {
  --bg: #f2fbfa;
  --bg-strong: #dff4f2;
  --surface: #ffffff;
  --surface-muted: #eef9f8;
  --surface-tint: #e3f7f4;
  --border: #c7e5e1;
  --border-strong: #8dcfc7;
  --text: #102236;
  --text-soft: #5c707c;
  --primary: #0d9b8c;
  --primary-strong: #087e73;
  --primary-soft: #d8f5f1;
  --accent: #f2b51d;
  --accent-soft: #fff4c9;
  --ink: #123e55;
  --danger: #b42318;
  --shadow: 0 18px 45px rgba(18, 62, 85, 0.14);
  --shadow-soft: 0 12px 28px rgba(18, 62, 85, 0.08);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    linear-gradient(90deg, rgba(13, 155, 140, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, #f9fefe 0%, var(--bg) 54%, var(--bg-strong) 100%);
  background-size: 56px 56px, auto;
}

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

button,
input {
  font: inherit;
}

.container {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto;
}

.site-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(13, 155, 140, 0.98);
  border-bottom: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(16px);
}

.topbar {
  background: transparent;
}

.topbar__inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 1rem;
  padding: 0.85rem 0 0.65rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 800;
  color: #fff;
}

.brand__mark {
  width: 2.65rem;
  height: 2.65rem;
  border-radius: var(--radius);
  background: #fff;
  object-fit: contain;
  padding: 0.18rem;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.32), 0 10px 22px rgba(4, 78, 74, 0.24);
}

.brand__name {
  font-size: 1.18rem;
  letter-spacing: 0;
}

.nav-toggle {
  display: none;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  padding: 0.55rem;
  justify-self: end;
}

.nav-toggle span {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: #fff;
  margin: 0.22rem auto;
}

.nav-panel {
  justify-self: end;
}

.nav-links {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem;
  margin: 0;
  background: rgba(255, 255, 255, 0.13);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  min-height: 2.45rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.86);
  font-weight: 700;
  font-size: 0.95rem;
  transition: background-color 0.18s ease, color 0.18s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: #153141;
  background: var(--accent);
}

.searchbar {
  display: grid;
  grid-template-columns: 16rem minmax(0, 1fr);
  align-items: stretch;
  gap: 0.75rem;
  padding: 0.15rem 0 1rem;
}

.search-filter {
  position: relative;
}

.search-filter__button,
.search-input {
  width: 100%;
  min-height: 3.15rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background: var(--surface);
}

.search-filter__button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0 0.95rem;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
  background: #123e55;
  box-shadow: none;
}

.search-filter__button svg {
  width: 1rem;
  height: 1rem;
}

.search-filter__menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  left: 0;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 50;
}

.search-filter__menu button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.8rem 0.95rem;
  color: var(--text-soft);
}

.search-filter__menu button:hover {
  background: var(--primary-soft);
  color: var(--primary-strong);
}

.search-input-wrap {
  position: relative;
}

.search-input {
  padding: 0 1rem 0 3rem;
  color: var(--text);
  box-shadow: none;
  background:
    linear-gradient(90deg, transparent 0, transparent 2.85rem, var(--border) 2.85rem, var(--border) 2.9rem, transparent 2.9rem),
    var(--surface);
}

.search-input-wrap::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 0.85rem;
  height: 0.85rem;
  border: 2px solid var(--primary);
  border-radius: 50%;
  transform: translateY(-58%);
  z-index: 1;
}

.search-input-wrap::after {
  content: "";
  position: absolute;
  top: calc(50% + 0.35rem);
  left: 1.75rem;
  width: 0.5rem;
  height: 2px;
  background: var(--primary);
  transform: rotate(45deg);
  z-index: 1;
}

.search-input:focus {
  outline: 3px solid rgba(13, 155, 140, 0.2);
  border-color: var(--primary);
}

.search-results {
  position: absolute;
  top: calc(100% + 0.65rem);
  left: 0;
  right: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0.4rem;
  z-index: 45;
}

.search-result {
  display: block;
  padding: 0.9rem 1rem;
  border-radius: 6px;
  border-left: 3px solid transparent;
}

.search-result:hover {
  background: var(--surface-tint);
  border-left-color: var(--primary);
}

.search-result strong,
.simple-list__item strong,
.brand-item strong,
.prose-card h1,
.panel-card h1,
.feature-card h2,
.hero h1,
.panel-card h2 {
  display: block;
}

.search-result strong {
  margin-bottom: 0.25rem;
}

.search-result span,
.search-result small,
.simple-list__item span,
.simple-list__item small,
.brand-item span,
.brand-item p,
.brand-item small,
.feature-card p,
.hero p,
.prose-card p,
.footer__bottom,
.empty-state {
  color: var(--text-soft);
}

.search-result small {
  margin-top: 0.35rem;
}

.page-body {
  flex: 1;
}

.hero,
.section {
  padding: 1rem 0;
}

.section--compact {
  padding-top: 0.8rem;
}

.hero__grid,
.home-columns,
.feature-grid,
.footer__top,
.footer__bottom {
  display: grid;
  gap: 1rem;
}

.hero__grid {
  grid-template-columns: minmax(0, 1.45fr) minmax(360px, 0.9fr);
  align-items: stretch;
}

.hero__content,
.hero__panel,
.panel-card,
.feature-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: var(--shadow-soft);
}

.hero__content {
  position: relative;
  padding: 1.55rem 1.7rem;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(223, 248, 245, 0.96) 48%, rgba(18, 62, 85, 0.98) 49%, rgba(18, 62, 85, 0.98) 100%),
    linear-gradient(160deg, rgba(13, 155, 140, 0.18), transparent);
}

.hero__content::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.35rem;
  background: linear-gradient(180deg, var(--accent), var(--primary));
}

.eyebrow,
.feature-card__eyebrow {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  background: var(--primary-soft);
  color: var(--primary-strong);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero h1 {
  max-width: 17ch;
  margin: 0.85rem 0 0.75rem;
  font-size: clamp(1.85rem, 3vw, 3.15rem);
  line-height: 1.03;
}

.hero p {
  max-width: 68ch;
  font-size: 1rem;
  line-height: 1.65;
}

.hero__content .eyebrow,
.hero__content h1,
.hero__content p {
  max-width: min(30rem, 52%);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.15rem;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.85rem;
  padding: 0 1.05rem;
  border-radius: 10px;
  font-weight: 800;
  border: 1px solid transparent;
}

.button--primary {
  color: #fff;
  background: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 12px 22px rgba(13, 155, 140, 0.24);
}

.button--secondary {
  color: #153141;
  background: var(--accent);
  border-color: var(--accent);
}

.hero__panel {
  padding: 0.75rem;
  background: var(--surface);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  height: 100%;
}

.stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 7.6rem;
  padding: 0.95rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.88);
}

.stat-card::before {
  content: "";
  width: 2rem;
  height: 0.28rem;
  border-radius: 999px;
  background: var(--primary);
}

.stat-card__value {
  margin-top: 0.75rem;
  font-size: 1.85rem;
  font-weight: 900;
  color: var(--primary-strong);
}

.stat-card__label {
  color: var(--text-soft);
  font-weight: 700;
}

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

.feature-card,
.panel-card {
  padding: 1.1rem;
}

.feature-card {
  text-align: center;
}

.feature-card::before {
  content: "";
  display: block;
  width: 2.15rem;
  height: 2.15rem;
  margin: 0 auto 0.8rem;
  border-radius: 10px;
  background:
    linear-gradient(135deg, transparent 42%, #fff 43%, #fff 57%, transparent 58%),
    var(--primary);
}

.feature-card h2,
.panel-card h1,
.panel-card h2,
.prose-card h1 {
  margin-top: 0;
}

.feature-card h2 {
  margin-bottom: 0.6rem;
}

.panel-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
}

.panel-card__header--stack {
  align-items: flex-start;
}

.panel-card__header a {
  color: var(--primary-strong);
  font-weight: 800;
}

.simple-list,
.brand-list {
  display: grid;
  gap: 0.65rem;
}

.simple-list__item,
.brand-item {
  padding: 0.85rem 0.95rem;
  border-radius: 12px;
  background: var(--surface);
  transition: border-color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.simple-list--framed,
.brand-list--page {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.65rem;
  background: var(--surface-muted);
}

.simple-list__item--bordered,
.brand-item--card {
  border: 1px solid var(--border);
}

.simple-list__link:hover,
.brand-item--link:hover {
  background: var(--surface-tint);
  border-color: rgba(13, 155, 140, 0.55);
  transform: translateY(-1px);
}

.simple-list__item strong,
.brand-item strong {
  margin-bottom: 0.3rem;
}

.brand-meta,
.brand-item__headline small {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.brand-item__headline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.brand-item__headline small {
  text-align: right;
}

.letter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 1rem;
}

.letter-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.65rem;
  min-height: 2.65rem;
  padding: 0 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  text-transform: uppercase;
  font-weight: 800;
}

.letter-pill:hover,
.letter-pill.is-active {
  color: #153141;
  border-color: var(--accent);
  background: var(--accent);
}

.narrow {
  width: min(780px, calc(100% - 2rem));
}

.prose-card {
  line-height: 1.7;
}

.empty-state {
  padding: 1rem;
}

.site-footer {
  margin-top: 1.75rem;
  color: #fff;
  background: var(--primary);
}

.footer__top,
.footer__bottom {
  grid-template-columns: 1fr auto;
  align-items: center;
  padding: 1.15rem 0;
}

.footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.76);
}

.brand--footer .brand__name,
.footer-links a {
  color: #fff;
}

.brand__mark--footer {
  background: #fff;
  padding: 0.25rem;
  box-shadow: none;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
  padding: 0;
  margin: 0;
}

.footer-links a:hover {
  color: var(--accent);
}

.simple-list__link,
.brand-item--link {
  display: block;
  color: inherit;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.9fr);
  gap: 1rem;
}

.detail-card,
.side-card {
  padding: 1.25rem;
}

.detail-card__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.detail-inline {
  color: var(--text-soft);
  font-size: 0.95rem;
}

.detail-table {
  margin-top: 0.9rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.detail-table th,
.detail-table td {
  padding: 0.35rem 0.75rem 0.35rem 0;
  text-align: left;
  vertical-align: top;
}

.detail-table th {
  color: var(--text-soft);
  font-weight: 800;
}

.detail-sections {
  display: grid;
  gap: 0.75rem;
}

.gateway-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
}

.gateway-hero h1 {
  margin: 0.85rem 0 0.75rem;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1.05;
}

.gateway-hero p,
.gateway-content p,
.gateway-cta p {
  color: var(--text-soft);
}

.gateway-hero .button,
.gateway-cta .button {
  flex: 0 0 auto;
}

.gateway-content {
  display: grid;
  gap: 1.45rem;
}

.gateway-content section {
  display: grid;
  gap: 0.8rem;
}

.gateway-content h2,
.gateway-cta h2 {
  margin: 0;
  padding-left: 0.8rem;
  border-left: 4px solid var(--accent);
  color: var(--ink);
}

.gateway-list {
  display: grid;
  gap: 0.7rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.gateway-list li {
  position: relative;
  padding: 0.75rem 0.9rem 0.75rem 2.45rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.gateway-list li::before {
  content: "";
  position: absolute;
  top: 1.05rem;
  left: 1rem;
  width: 0.72rem;
  height: 0.72rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.gateway-steps {
  display: grid;
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.gateway-steps li {
  display: flex;
  align-items: flex-start;
  gap: 0.8rem;
}

.gateway-steps span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 2.1rem;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  color: #153141;
  background: var(--accent);
  font-weight: 900;
}

.gateway-steps p {
  margin: 0.25rem 0 0;
}

.gateway-cta {
  display: grid;
  gap: 0.85rem;
  padding: 1.35rem;
  background: var(--surface-muted);
}

.gateway-cta__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.detail-section {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--surface);
}

.detail-section h2 {
  margin: 0;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: var(--primary-soft);
  border-left: 4px solid var(--primary);
}

.detail-section__body {
  padding: 1rem;
  white-space: pre-wrap;
  color: var(--text-soft);
  line-height: 1.65;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  flex-wrap: wrap;
}

.pagination-bar__links {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.45rem;
  min-height: 2.45rem;
  padding: 0 0.8rem;
  border-radius: 10px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  font-weight: 800;
}

.pagination-link.is-active {
  color: #153141;
  background: var(--accent);
  border-color: var(--accent);
}

.pagination-link.is-disabled {
  color: var(--text-soft);
  opacity: 0.6;
}

@media (max-width: 900px) {
  .hero__grid,
  .feature-grid,
  .home-columns,
  .footer__top,
  .footer__bottom,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .searchbar {
    grid-template-columns: 1fr;
  }

  .footer__bottom {
    gap: 0.5rem;
  }
}

@media (max-width: 768px) {
  .topbar__inner {
    grid-template-columns: 1fr auto;
    padding-bottom: 0.75rem;
  }

  .nav-toggle {
    display: inline-block;
  }

  .nav-panel {
    display: none;
    width: 100%;
    grid-column: 1 / -1;
  }

  .nav-panel.is-open {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    align-items: stretch;
  }

  .nav-links a {
    border-radius: 6px;
  }

  .hero__content {
    padding: 1.45rem 1.25rem;
  }

  .hero h1 {
    max-width: 100%;
  }

  .hero__content {
    background:
      linear-gradient(160deg, rgba(255, 255, 255, 0.97) 0%, rgba(226, 249, 246, 0.97) 58%, rgba(18, 62, 85, 0.1) 100%),
      var(--surface);
  }

  .hero__content .eyebrow,
  .hero__content h1,
  .hero__content p {
    max-width: 100%;
  }

  .stat-grid {
    grid-template-columns: 1fr;
  }

  .detail-card__header,
  .brand-item__headline,
  .gateway-hero {
    flex-direction: column;
  }

  .gateway-hero .button,
  .gateway-cta .button {
    width: 100%;
  }

  .brand-item__headline small {
    text-align: left;
  }
}
