:root {
  --background: hsl(210, 20%, 98%);
  --foreground: hsl(222, 47%, 11%);
  --muted: hsl(210, 20%, 94%);
  --muted-foreground: hsl(215, 16%, 47%);
  --border: hsl(214, 32%, 91%);
  --primary: hsl(222, 47%, 25%);
  --primary-hover: hsl(222, 47%, 30%);
  --primary-dark: hsl(222, 47%, 20%);
  --primary-darker: hsl(222, 47%, 15%);
  --accent: hsl(160, 60%, 45%);
  --accent-hover: hsl(160, 60%, 40%);
  --white: hsl(0, 0%, 100%);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.06);
  --shadow-md: 0 10px 25px rgba(15, 23, 42, 0.12);
  --radius: 0.5rem;
  --container: 80rem;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--background);
  color: var(--foreground);
  -webkit-font-smoothing: antialiased;
}

@keyframes topBannerPulse {
  0%, 100% { background-color: #004f59; }
  50% { background-color: #066b78; }
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

img,
svg {
  display: block;
}

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

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

.top-banner-shell {
  background: var(--white);
  border-bottom: 1px solid hsl(220, 13%, 91%);
}

.top-banner-shell-inner {
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.top-banner-slot {
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.top-banner-wrap {
  width: 728px;
  height: 90px;
  max-width: 100%;
  display: inline-block;
  border-radius: 6px;
  overflow: hidden;
  animation: topBannerPulse 4s ease-in-out infinite;
}

.top-banner-link {
  display: block;
  width: 100%;
  height: 100%;
}

.top-banner-link:focus {
  outline: 3px solid rgba(0, 79, 89, 0.25);
  outline-offset: 2px;
}

.top-banner {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  color: var(--white);
}

.top-banner-logo {
  width: 66px;
  height: 66px;
  flex: 0 0 66px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.15);
}

.top-banner-logo svg {
  width: 44px;
  height: 44px;
}

.top-banner-text {
  min-width: 0;
  flex: 1 1 auto;
}

.top-banner-title {
  margin: 0;
  color: var(--white);
  font-size: 20px;
  line-height: 1;
  font-weight: 700;
  letter-spacing: 0.2px;
}

.top-banner-subtitle {
  margin-top: 6px;
  color: var(--white);
  font-size: 12px;
  line-height: 1.15;
  font-weight: 500;
}

.top-banner-cta {
  flex: 0 0 auto;
  margin-left: 12px;
  display: flex;
  align-items: center;
}

.top-banner-cta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 6px;
  background: var(--white);
  color: #004f59;
  font-size: 13px;
  font-weight: 700;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--primary-dark);
  color: var(--white);
  box-shadow: 0 10px 30px rgba(2, 8, 23, 0.15);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 4rem;
}

.brand,
.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--white);
  flex: 0 0 auto;
}

.brand-mark svg,
.stat-icon svg,
.hero-badge svg,
.newsletter-icon svg {
  width: 1.25rem;
  height: 1.25rem;
}

.brand-copy strong,
.footer-brand h3 {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.2;
}

.brand-copy span,
.footer-brand span {
  display: block;
  font-size: 0.75rem;
  color: hsl(215, 20%, 75%);
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.5rem;
  padding: 0.5rem 1rem;
  border-radius: 0.375rem;
  color: hsl(215, 20%, 88%);
  background: transparent;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--white);
}

.nav-link.is-active {
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.nav-cta {
  margin-left: 0.5rem;
  background: var(--accent);
  color: var(--white);
}

.nav-cta:hover {
  background: var(--accent-hover);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.5rem;
  border-radius: 0.5rem;
  background: transparent;
  color: var(--white);
  cursor: pointer;
}

.mobile-menu-toggle span:not(.sr-only) {
  display: block;
  width: 1.25rem;
  height: 2px;
  background: currentColor;
}

.mobile-menu {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: var(--primary-dark);
}

.mobile-menu-inner {
  display: grid;
  gap: 0.5rem;
  padding: 1rem 0 1.25rem;
}

.mobile-menu a,
.mobile-menu button {
  padding: 0.5rem 0;
  background: transparent;
  color: hsl(215, 20%, 88%);
  text-align: left;
  cursor: pointer;
}

.mobile-menu button:last-child {
  color: var(--accent);
}

.hero-section {
  position: relative;
  overflow: hidden;
  background: var(--primary-dark);
  color: var(--white);
  padding: 4rem 0;
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 3rem;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.5rem;
  background: rgba(34, 197, 154, 0.2);
  color: hsl(160, 60%, 60%);
  font-size: 0.875rem;
  font-weight: 500;
}

.hero-copy h1 {
  margin: 0 0 1.5rem;
  font-size: clamp(2.5rem, 4vw, 3.25rem);
  line-height: 1.1;
  font-weight: 800;
}

.hero-copy p {
  margin: 0 0 2rem;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.75;
  color: hsl(215, 20%, 75%);
}

.hero-search {
  display: flex;
  align-items: stretch;
  gap: 0.5rem;
  max-width: 40rem;
  padding: 0.375rem;
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-md);
}

.hero-search-input {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  padding: 0 1rem;
}

.hero-search-input svg {
  width: 1.25rem;
  height: 1.25rem;
  color: hsl(215, 16%, 65%);
}

.hero-search-input input {
  width: 100%;
  border: 0;
  padding: 0.9rem 0.75rem;
  color: hsl(222, 47%, 11%);
  background: transparent;
  outline: 0;
}

.primary-button,
.secondary-button,
.newsletter-button,
.pagination-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  border-radius: 0.375rem;
  padding: 0.75rem 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease, box-shadow 160ms ease;
}

.primary-button:hover,
.secondary-button:hover,
.newsletter-button:hover,
.pagination-button:hover {
  transform: translateY(-1px);
}

.hero-search-button,
.sidebar-button {
  background: var(--primary);
  color: var(--white);
}

.hero-search-button:hover,
.sidebar-button:hover {
  background: var(--primary-hover);
}

.secondary-button {
  background: hsl(217, 91%, 60%);
  color: var(--white);
}

.secondary-button:hover {
  background: hsl(217, 91%, 54%);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.stat-card {
  padding: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
}

.stat-icon,
.newsletter-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 0.5rem;
  background: var(--accent);
  color: var(--white);
}

.stat-value {
  margin-bottom: 0.25rem;
  font-size: 1.875rem;
  font-weight: 700;
}

.stat-label {
  color: hsl(215, 20%, 75%);
  font-size: 0.875rem;
}

.main-content {
  padding: 3rem 0;
}

.subpage-body {
  min-height: 100vh;
  background: hsl(210, 20%, 98%);
}

.subpage-main {
  padding: 4rem 0;
}

.subpage-container {
  width: min(calc(100% - 2rem), 64rem);
}

.subpage-card {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.subpage-card h1 {
  margin: 0 0 1.5rem;
  color: hsl(215, 25%, 27%);
  font-size: 2.25rem;
  font-weight: 700;
}

.subpage-card > p {
  margin: 0;
  color: hsl(215, 16%, 47%);
  line-height: 1.75;
}

.contact-panel {
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid hsl(214, 32%, 91%);
}

.contact-panel h2 {
  margin: 0 0 0.75rem;
  color: hsl(215, 25%, 27%);
  font-size: 1.5rem;
  font-weight: 700;
}

.contact-panel p {
  margin: 0 0 1rem;
  color: hsl(215, 16%, 47%);
  line-height: 1.7;
}

.contact-email {
  color: inherit;
  font-weight: inherit;
}

.contact-panel p a {
  color: hsl(217, 91%, 60%);
  text-decoration: underline;
  text-underline-offset: 0.12em;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(16rem, 18rem) minmax(0, 1fr);
  gap: 2rem;
}

.panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.filters-panel {
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.panel-title {
  display: flex;
  align-items: center;
  margin: 0 0 1rem;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 600;
}

.title-bar {
  width: 0.25rem;
  height: 1.25rem;
  margin-right: 0.75rem;
  border-radius: 999px;
  background: var(--accent);
}

.filter-group + .filter-group {
  margin-top: 1.5rem;
}

.filter-label {
  display: block;
  margin: 0 0 0.75rem;
  color: hsl(215, 16%, 47%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.checkbox-list {
  display: grid;
  gap: 0.5rem;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
}

.checkbox-row.checkbox-option {
  padding: 0.25rem 0;
}

.checkbox-row input[type="checkbox"] {
  width: 1rem;
  height: 1rem;
  margin: 0;
  accent-color: var(--primary);
}

.checkbox-copy {
  color: hsl(215, 16%, 47%);
  font-size: 0.875rem;
}

.checkbox-count {
  margin-left: auto;
  padding: 0.125rem 0.5rem;
  border-radius: 999px;
  background: hsl(210, 20%, 96%);
  color: hsl(215, 16%, 60%);
  font-size: 0.75rem;
}

.select-wrap {
  position: relative;
}

.select-wrap::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 0.9rem;
  width: 0.55rem;
  height: 0.55rem;
  border-right: 2px solid hsl(215, 16%, 47%);
  border-bottom: 2px solid hsl(215, 16%, 47%);
  transform: translateY(-65%) rotate(45deg);
  pointer-events: none;
}

.select-wrap select,
.form-field input,
.form-field textarea,
.newsletter-form input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 0.375rem;
  padding: 0.75rem 0.875rem;
  background: var(--white);
  color: var(--foreground);
  outline: 0;
}

.select-wrap select {
  appearance: none;
  padding-right: 2.5rem;
}

.compact select {
  min-width: 10rem;
}

.sidebar-button {
  width: 100%;
  margin-top: 1.5rem;
}

.directory-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.directory-header h2,
.centered-heading,
.submit-header h2 {
  margin: 0;
  color: var(--primary-dark);
  font-size: 1.5rem;
  font-weight: 700;
}

.directory-header p,
.submit-header p,
.footer-copy,
.newsletter-copy p,
.faq-answer {
  color: hsl(215, 16%, 47%);
}

.directory-header p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
}

.sort-control {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.sort-control span,
.footer-main h4 {
  color: hsl(215, 16%, 47%);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.resource-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 160ms ease, transform 160ms ease;
}

.resource-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.resource-card-inner {
  padding: 1.25rem;
}

.resource-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.625rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 500;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 0.25rem;
}

.category-icon svg {
  width: 0.9rem;
  height: 0.9rem;
}

.resource-rating {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: hsl(42, 96%, 57%);
  white-space: nowrap;
}

.resource-rating span {
  color: hsl(215, 16%, 47%);
  font-size: 0.875rem;
  font-weight: 500;
}

.resource-card h3 {
  margin: 0 0 0.5rem;
  color: var(--primary-dark);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.4;
}

.resource-description {
  display: -webkit-box;
  margin: 0 0 1rem;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  color: hsl(215, 16%, 47%);
  font-size: 0.875rem;
  line-height: 1.6;
}

.resource-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid hsl(210, 20%, 96%);
}

.resource-meta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.meta-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: hsl(210, 20%, 96%);
  color: hsl(215, 16%, 47%);
  font-size: 0.75rem;
}

.meta-badge svg,
.resource-action svg,
.resource-rating svg {
  width: 0.875rem;
  height: 0.875rem;
}

.meta-active {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: hsl(142, 71%, 45%);
  font-size: 0.75rem;
}

.meta-dot {
  width: 0.375rem;
  height: 0.375rem;
  border-radius: 999px;
  background: currentColor;
}

.resource-action {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-height: 2rem;
  padding: 0.4rem 0.75rem;
  border-radius: 0.375rem;
  background: var(--primary);
  color: var(--white);
  font-size: 0.75rem;
  font-weight: 500;
}

.resource-action:hover {
  background: var(--primary-hover);
}

.empty-state {
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  text-align: center;
  color: hsl(215, 16%, 47%);
}

.pagination-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.pagination-summary {
  color: hsl(215, 16%, 47%);
  font-size: 0.875rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pagination-button {
  min-width: 2.5rem;
  border: 1px solid var(--border);
  background: var(--white);
  color: hsl(215, 16%, 35%);
}

.pagination-button.is-active {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--white);
}

.pagination-button:disabled {
  opacity: 0.5;
  cursor: default;
  transform: none;
}

.faq-panel,
.submit-panel {
  padding: 2rem;
  margin-bottom: 3rem;
}

.centered-heading {
  margin-bottom: 2rem;
  text-align: center;
  color: hsl(215, 25%, 27%);
}

.faq-list {
  display: grid;
  gap: 1rem;
}

.faq-item {
  border: 1px solid hsl(214, 32%, 91%);
  border-radius: 0.5rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.5rem;
  background: var(--white);
  color: hsl(215, 25%, 27%);
  text-align: left;
  cursor: pointer;
}

.faq-question:hover,
.faq-question[aria-expanded="true"] {
  background: hsl(210, 20%, 98%);
}

.faq-question span {
  font-weight: 500;
}

.faq-chevron {
  width: 1rem;
  height: 1rem;
  border-right: 2px solid hsl(215, 16%, 47%);
  border-bottom: 2px solid hsl(215, 16%, 47%);
  transform: rotate(45deg);
  transition: transform 160ms ease;
}

.faq-question[aria-expanded="true"] .faq-chevron {
  transform: rotate(-135deg);
}

.faq-answer {
  padding: 0 1.5rem 1rem;
  line-height: 1.7;
}

.faq-answer[hidden] {
  display: none;
}

.faq-cta {
  margin-top: 2rem;
  text-align: center;
}

.submit-header p {
  margin: 0.5rem 0 0;
  line-height: 1.7;
}

.submit-form {
  margin-top: 1.5rem;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}

.form-field {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.form-field span {
  color: hsl(215, 25%, 27%);
  font-size: 0.875rem;
  font-weight: 500;
}

.form-field textarea {
  resize: vertical;
}

.checkbox-row-wide {
  margin-bottom: 1.5rem;
  align-items: flex-start;
}

.checkbox-row-wide span {
  color: hsl(215, 16%, 47%);
  font-size: 0.875rem;
}

.submit-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.static-note {
  color: hsl(215, 16%, 47%);
  font-size: 0.875rem;
}

.site-footer {
  background: var(--primary-darker);
  color: var(--white);
}

.footer-newsletter {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-newsletter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2.5rem 0 1rem;
}

.newsletter-copy {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.newsletter-copy h3 {
  margin: 0;
  font-size: 1.125rem;
  font-weight: 600;
}

.newsletter-copy p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: hsl(215, 20%, 75%);
}

.newsletter-form {
  display: flex;
  width: min(100%, 26rem);
}

.newsletter-form input {
  border-right: 0;
  border-radius: 0.5rem 0 0 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--white);
}

.newsletter-form input::placeholder {
  color: hsl(215, 16%, 65%);
}

.newsletter-button {
  border-radius: 0 0.5rem 0.5rem 0;
  background: var(--accent);
  color: var(--white);
}

.newsletter-button:hover {
  background: var(--accent-hover);
}

.footer-note {
  margin: 0;
  padding-bottom: 1.25rem;
}

.footer-main {
  padding: 3rem 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr 1fr;
  gap: 2rem;
}

.footer-copy {
  margin: 1rem 0 1.5rem;
  font-size: 0.875rem;
  line-height: 1.7;
  color: hsl(215, 20%, 75%);
}

.social-links {
  display: flex;
  gap: 0.75rem;
}

.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: hsl(215, 20%, 75%);
  font-size: 0.875rem;
  font-weight: 700;
}

.social-links a:hover,
.footer-grid a:hover,
.footer-grid button:hover {
  background: var(--accent);
  color: var(--white);
}

.footer-grid h4 {
  margin: 0 0 1rem;
  color: hsl(215, 20%, 82%);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.footer-grid a,
.footer-grid button {
  padding: 0;
  background: transparent;
  color: hsl(215, 20%, 75%);
  font-size: 0.875rem;
  text-align: left;
  cursor: pointer;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  padding: 1.5rem 0;
  color: hsl(215, 16%, 60%);
  font-size: 0.875rem;
  text-align: center;
}

@media (max-width: 1024px) {
  .hero-grid,
  .content-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 768px) {
  .desktop-nav {
    display: none;
  }

  .mobile-menu-toggle {
    display: inline-flex;
  }

  .hero-section {
    padding: 3rem 0;
  }

  .hero-search,
  .footer-newsletter-inner,
  .newsletter-form,
  .directory-header,
  .submit-actions {
    flex-direction: column;
  }

  .hero-search-button,
  .newsletter-button,
  .newsletter-form input {
    width: 100%;
    border-radius: 0.5rem;
  }

  .newsletter-form input {
    border-right: 1px solid var(--border);
  }

  .stats-grid,
  .resource-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .top-banner-slot {
    justify-content: flex-start;
    min-height: 0;
  }

  .top-banner-wrap {
    transform: scale(calc((100vw - 2rem) / 728));
    transform-origin: left top;
    margin-bottom: calc(90px * ((100vw - 2rem) / 728 - 1));
  }
}
