.hero-feature {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  border-radius: var(--radius-xl);
}

.page-intro {
  margin-bottom: 20px;
}

.search-page-form {
  margin-bottom: 24px;
}

.search-result-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.search-result-card {
  padding: 10px;
  margin-bottom: 14px;
}

.search-result-card .card-image-wrap {
  aspect-ratio: 16 / 10;
  min-height: 0;
  padding: 12px;
}

.search-result-card .card-image {
  height: 100%;
}

.search-result-card .card-content {
  padding: 14px;
  min-height: 0;
}

.search-result-card .card-title {
  font-size: 1rem;
  margin-bottom: 8px;
}

.search-result-card .card-description {
  font-size: 0.9rem;
  line-height: 1.5;
}

.search-result-card .card-reading-time {
  font-size: 0.85rem;
  margin-top: 8px;
}

.related-links a {
  color: var(--text);
  font-weight: 700;
}

.ad-box {
  text-align: center;
}

.info-card-grid {
  display: grid;
  gap: 16px;
}

.info-card {
  background: white;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 20px;
}

.info-card-title {
  margin: 0 0 10px;
  font-size: 1.08rem;
  line-height: 1.4;
  color: var(--text);
}

.info-card-text {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
  font-size: 1rem;
}

.info-card-meta {
  margin: 12px 0 0;
  color: var(--text);
  line-height: 1.6;
}

.compact-list {
  margin-top: 14px;
}

.compact-list li:last-child {
  margin-bottom: 0;
}

@media (max-width: 700px) {
  .hero-feature {
    padding: 20px;
  }

  .info-card {
    padding: 16px;
  }

  .info-card-text {
    font-size: 15.5px;
  }

  .search-result-card {
    padding: 8px;
    margin-bottom: 12px;
  }

  .search-result-card .card-image-wrap {
    aspect-ratio: 4 / 3;
    padding: 10px;
  }

  .search-result-card .card-image {
    height: 100%;
  }

  .search-result-card .card-content {
    padding: 12px;
    min-height: 0;
  }

  .search-result-card .card-title {
    font-size: 0.95rem;
  }

  .search-result-card .card-description {
    font-size: 0.85rem;
  }
}

/* =========================
   SEARCH PAGE
========================= */

.search-page {
  padding-top: 24px;
}

.search-shell {
  display: grid;
  gap: 18px;
}

.search-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: stretch;
}

.search-hero-copy,
.search-results-shell,
.search-empty-state {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(17, 36, 71, 0.055);
}

.search-hero-copy {
  padding: 24px 26px;
  max-width: 920px;
  margin: 0 auto;
  width: 100%;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.search-hero-copy h1 {
  margin: 0 0 12px;
  max-width: none;
  font-size: clamp(2rem, 3.8vw, 2.8rem);
  line-height: 1.04;
  letter-spacing: -0.04em;
  color: var(--text);
}

.search-hero-text {
  margin: 0;
  max-width: 52ch;
  font-size: 0.98rem;
  line-height: 1.68;
  color: #55627a;
}

.search-page-form {
  margin: 18px 0 0;
}

.search-results-shell {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(249, 251, 255, 0.96) 100%);
}

.section-head--search {
  align-items: center;
  margin-bottom: 18px;
}

.search-main-content {
  display: grid;
}

.search-main-content .search-results {
  gap: 18px;
}

.search-page .search-result-card {
  margin-bottom: 0;
  padding: 10px;
  border-radius: 22px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.search-page .search-result-card .card-image-wrap {
  aspect-ratio: 16 / 10;
  min-height: 0;
  padding: 12px;
}

.search-page .search-result-card .card-image {
  height: 100%;
}

.search-page .search-result-card .card-content {
  padding: 12px;
  min-height: 0;
}

.search-empty-state {
  grid-column: 1 / -1;
  padding: 24px;
}

.search-empty-title {
  margin: 0 0 12px;
  font-size: clamp(1.55rem, 3vw, 2rem);
  line-height: 1.12;
  letter-spacing: -0.03em;
  color: var(--text);
}

.search-empty-text {
  margin: 0;
  max-width: 56ch;
  color: var(--muted);
  line-height: 1.78;
}

.search-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.search-empty-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.search-empty-links a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 999px;
  background: rgba(49, 94, 251, 0.08);
  border: 1px solid rgba(49, 94, 251, 0.12);
  color: var(--primary);
  font-weight: 700;
}

@media (max-width: 1080px) {
  .search-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1024px) and (min-width: 701px) {
  .search-page .search-results {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .search-page {
    padding-top: 24px;
  }

  .search-shell {
    gap: 20px;
  }

  .search-hero-copy,
  .search-results-shell,
  .search-empty-state {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .search-hero-copy h1 {
    max-width: none;
    font-size: clamp(1.8rem, 9vw, 2.35rem);
  }

  .search-hero-text,
  .search-empty-text {
    font-size: 0.95rem;
    line-height: 1.68;
  }

  .search-empty-actions {
    flex-direction: column;
  }

  .search-empty-actions .button-primary,
  .search-empty-actions .button-secondary {
    width: 100%;
  }

  .search-empty-links {
    flex-direction: column;
  }

  .search-empty-links a {
    justify-content: center;
  }

  .section-head--search {
    align-items: flex-start;
    margin-bottom: 14px;
  }

  .search-page .search-result-card {
    padding: 10px;
  }

  .search-page .search-result-card .card-image-wrap {
    aspect-ratio: 4 / 3;
    padding: 10px;
  }

  .search-page .search-result-card .card-image {
    height: 100%;
  }

  .search-page .search-result-card .card-content {
    padding: 10px;
  }
}

/* =========================
   STATIC / LEGAL PAGES
========================= */

.static-page {
  padding-top: 28px;
}

.static-shell {
  display: grid;
  gap: 22px;
}

.static-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  gap: 18px;
  align-items: stretch;
}

.static-hero-copy,
.static-hero-panel,
.static-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 24px;
  box-shadow: 0 14px 34px rgba(17, 36, 71, 0.055);
}

.static-hero-copy {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(49, 94, 251, 0.14) 0%, transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.static-hero-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.static-hero-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(17, 36, 71, 0.04);
  border: 1px solid rgba(17, 36, 71, 0.08);
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 700;
}

.static-hero-copy h1 {
  margin: 0 0 14px;
  max-width: 11ch;
  font-size: clamp(2.15rem, 4.2vw, 3.3rem);
  line-height: 1;
  letter-spacing: -0.05em;
  color: var(--text);
}

.static-hero-text {
  margin: 0;
  max-width: 58ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}

.static-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.static-hero-aside {
  display: grid;
  gap: 16px;
}

.static-hero-panel {
  padding: 24px;
  color: #ffffff;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.18) 0%, rgba(255, 255, 255, 0) 34%),
    linear-gradient(160deg, #163cbe 0%, #2449c8 44%, #132660 100%);
}

.static-panel-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.76);
}

.static-hero-panel h2 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.6vw, 1.9rem);
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.static-panel-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.72;
}

.static-panel-list {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.static-panel-list article {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.static-panel-list strong {
  font-size: 1rem;
}

.static-panel-list span {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.55;
}

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

.static-card {
  padding: 20px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 251, 255, 0.96) 100%);
}

.static-card-wide {
  grid-column: 1 / -1;
}

.static-card-accent {
  background: linear-gradient(180deg, #fffdf1 0%, #fff9df 100%);
  border-color: rgba(234, 179, 8, 0.28);
}

.static-card-kicker {
  margin: 0 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.static-card h2 {
  margin: 0 0 12px;
  font-size: 1.2rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

.static-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.static-card p + p {
  margin-top: 10px;
}

.static-list {
  margin: 14px 0 0;
  padding-left: 20px;
}

.static-list li {
  margin-bottom: 10px;
  line-height: 1.64;
  color: var(--text);
}

.static-list li::marker {
  color: var(--primary);
}

.static-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.static-links a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(49, 94, 251, 0.08);
  border: 1px solid rgba(49, 94, 251, 0.12);
  color: var(--primary);
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.static-links a:hover,
.static-links a:focus-visible {
  transform: translateY(-1px);
  background: rgba(49, 94, 251, 0.14);
  border-color: rgba(49, 94, 251, 0.18);
}

@media (max-width: 1080px) {
  .static-hero {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .static-page {
    padding-top: 24px;
  }

  .static-shell {
    gap: 20px;
  }

  .static-hero-copy,
  .static-hero-panel,
  .static-card {
    padding: 22px 18px;
    border-radius: 22px;
  }

  .static-hero-topline {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .static-hero-copy h1 {
    max-width: none;
    font-size: clamp(2.1rem, 10vw, 3rem);
  }

  .static-hero-text,
  .static-panel-text,
  .static-card p,
  .static-list li {
    font-size: 0.97rem;
    line-height: 1.72;
  }

  .static-hero-actions {
    flex-direction: column;
  }

  .static-hero-actions .button-primary,
  .static-hero-actions .button-secondary {
    width: 100%;
  }

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

  .static-links {
    flex-direction: column;
  }

  .static-links a {
    justify-content: center;
  }
}

.contact-page {
  padding-top: 30px;
}

.contact-shell {
  display: grid;
  gap: 20px;
}

.contact-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.contact-hero-copy,
.contact-highlight,
.contact-card,
.contact-note-card {
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  border-radius: 20px;
  box-shadow: 0 10px 24px rgba(17, 36, 71, 0.055);
}

.contact-hero-copy {
  padding: 28px;
  background:
    radial-gradient(circle at top left, rgba(49, 94, 251, 0.12), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
}

.contact-title {
  margin: 0 0 18px;
  font-size: clamp(2rem, 3.6vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.035em;
  color: var(--text);
}

.contact-lead {
  margin: 0;
  max-width: 52ch;
  font-size: 1rem;
  line-height: 1.72;
  color: var(--muted);
}

.contact-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.contact-highlight {
  padding: 22px;
  background: linear-gradient(180deg, #16346f 0%, #244aa0 100%);
  color: #ffffff;
}

.contact-highlight-label {
  margin: 0 0 14px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.74);
}

.contact-highlight-email {
  margin: 0 0 14px;
  font-size: clamp(1.08rem, 2.2vw, 1.55rem);
  font-weight: 800;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: normal;
}

.contact-highlight-email a {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.12em;
  max-width: 100%;
  color: #ffffff;
}

.contact-highlight-text {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.68;
}

.contact-grid,
.contact-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.contact-card {
  padding: 22px;
}

.contact-card-kicker {
  margin: 0 0 10px;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--primary);
}

.contact-card-title,
.contact-note-title {
  margin: 0 0 12px;
  font-size: 1.28rem;
  line-height: 1.25;
  color: var(--text);
}

.contact-card-text,
.contact-note-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.68;
}

.contact-card-link {
  display: inline-block;
  max-width: 100%;
  margin-top: 18px;
  color: var(--primary);
  font-weight: 800;
  font-size: 0.96rem;
  overflow-wrap: anywhere;
}

.contact-note-card {
  padding: 22px;
}

.contact-note-card-accent {
  background: linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
}

@media (max-width: 900px) {
  .contact-hero,
  .contact-grid,
  .contact-notes {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 700px) {
  .contact-page {
    padding-top: 28px;
  }

  .contact-hero-copy,
  .contact-highlight,
  .contact-card,
  .contact-note-card {
    padding: 22px;
    border-radius: 20px;
  }

  .contact-title {
    font-size: clamp(1.9rem, 8vw, 2.5rem);
  }

  .contact-lead,
  .contact-highlight-text,
  .contact-card-text,
  .contact-note-card p {
    font-size: 15.5px;
  }

  .contact-hero-actions {
    flex-direction: column;
  }

  .contact-hero-actions .button-primary,
  .contact-hero-actions .button-secondary {
    width: 100%;
  }
}

/* =========================
   ERROR PAGES
========================= */

.error-page {
  position: relative;
  overflow: hidden;
  padding-top: 38px;
  padding-bottom: 58px;
}

.error-page::before,
.error-page::after {
  content: '';
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(12px);
}

.error-page::before {
  width: 280px;
  height: 280px;
  top: 20px;
  left: max(18px, calc(50% - 610px));
}

.error-page::after {
  width: 320px;
  height: 320px;
  right: max(18px, calc(50% - 650px));
  bottom: 10px;
}

.error-page-not-found::before {
  background: radial-gradient(circle, rgba(245, 177, 43, 0.16) 0%, rgba(245, 177, 43, 0) 72%);
}

.error-page-not-found::after {
  background: radial-gradient(circle, rgba(49, 94, 251, 0.12) 0%, rgba(49, 94, 251, 0) 72%);
}

.error-page-server::before {
  background: radial-gradient(circle, rgba(35, 166, 194, 0.16) 0%, rgba(35, 166, 194, 0) 72%);
}

.error-page-server::after {
  background: radial-gradient(circle, rgba(49, 94, 251, 0.1) 0%, rgba(49, 94, 251, 0) 72%);
}

.error-shell {
  position: relative;
  z-index: 1;
  width: min(980px, calc(100% - 40px));
  display: grid;
  gap: 16px;
}

.error-stage {
  display: grid;
  grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  padding: 34px 34px 32px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.98) 100%);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 28px;
  box-shadow: 0 22px 48px rgba(17, 36, 71, 0.08);
}

.error-page-not-found .error-stage {
  background:
    radial-gradient(circle at top left, rgba(255, 215, 129, 0.2), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 250, 242, 0.98) 100%);
}

.error-page-server .error-stage {
  background:
    radial-gradient(circle at top left, rgba(150, 232, 243, 0.22), transparent 26%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(243, 251, 253, 0.98) 100%);
}

.error-stage-code {
  font-size: clamp(4.6rem, 11vw, 7rem);
  line-height: 0.88;
  font-weight: 800;
  letter-spacing: -0.08em;
  text-align: center;
}

.error-page-not-found .error-stage-code {
  color: #ca8a04;
}

.error-page-server .error-stage-code {
  color: #0f7686;
}

.error-stage-copy {
  min-width: 0;
}

.error-topline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.error-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 13px;
  border-radius: 999px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.error-page-not-found .error-pill {
  background: rgba(245, 177, 43, 0.14);
  border: 1px solid rgba(245, 177, 43, 0.24);
  color: #8d5703;
}

.error-page-server .error-pill {
  background: rgba(35, 166, 194, 0.14);
  border: 1px solid rgba(35, 166, 194, 0.24);
  color: #0f6273;
}

.error-title {
  margin: 0 0 16px;
  max-width: 13ch;
  font-size: clamp(2.2rem, 4.6vw, 3.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  color: var(--text);
}

.error-lead {
  max-width: 60ch;
  margin: 0;
  font-size: 1.03rem;
  line-height: 1.78;
  color: #55627a;
}

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

.error-actions .button-primary,
.error-actions .button-secondary {
  min-width: 186px;
  justify-content: center;
}

.error-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.error-note-card {
  padding: 20px 20px 18px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 22px;
  box-shadow: 0 14px 28px rgba(17, 36, 71, 0.05);
}

.error-note-kicker {
  margin: 0 0 10px;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.error-page-not-found .error-note-kicker {
  color: #9a5b05;
}

.error-page-server .error-note-kicker {
  color: #0f6879;
}

.error-note-card h2 {
  margin: 0 0 10px;
  font-size: 1.14rem;
  line-height: 1.18;
  letter-spacing: -0.03em;
  color: var(--text);
}

.error-note-card p {
  margin: 0;
  line-height: 1.68;
  color: var(--muted);
}

@media (max-width: 960px) {
  .error-stage {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .error-stage-code {
    text-align: left;
  }

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

@media (max-width: 700px) {
  .error-page {
    padding-top: 24px;
    padding-bottom: 42px;
  }

  .error-shell {
    width: min(100%, calc(100% - 24px));
  }

  .error-stage {
    gap: 16px;
    padding: 24px 18px 22px;
    border-radius: 24px;
  }

  .error-topline {
    margin-bottom: 14px;
  }

  .error-title {
    font-size: clamp(2rem, 11vw, 3rem);
  }

  .error-lead,
  .error-note-card p {
    font-size: 0.97rem;
    line-height: 1.72;
  }

  .error-actions {
    flex-direction: column;
  }

  .error-actions .button-primary,
  .error-actions .button-secondary {
    width: 100%;
  }

  .error-notes {
    grid-template-columns: 1fr;
  }

  .error-note-card {
    padding: 20px 18px 18px;
  }
}
