body[data-page="home"] {
  --home-bg: #f5f7fb;
  --home-surface: #ffffff;
  --home-surface-alt: #f8fafc;
  --home-text: #16233b;
  --home-muted: #6a768d;
  --home-line: #e5ecf6;
  --home-primary: #3160f8;
  --home-primary-dark: #2447c8;
  --home-navy: #10182d;
  --home-navy-soft: #16213b;
  --home-shadow: 0 14px 34px rgba(16, 24, 45, 0.08);
  --home-shadow-strong: 0 22px 48px rgba(16, 24, 45, 0.12);
  margin: 0;
  background: var(--home-bg);
  color: var(--home-text);
  font-family: "Plus Jakarta Sans", "Segoe UI", "Trebuchet MS", sans-serif;
}

body[data-page="home"] .container {
  width: min(1260px, calc(100% - 48px));
  max-width: 1260px;
  margin: 0 auto;
  padding: 0 24px;
}

body[data-page="home"] .site-header {
  position: sticky;
  top: 0;
  z-index: 120;
  padding: 0;
  background: rgba(16, 24, 45, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 10px 24px rgba(6, 10, 20, 0.12);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}

body[data-page="home"] .header-inner.home-header-shell {
  min-height: 86px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 16px 24px;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

body[data-page="home"] .home-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: #ffffff;
}

body[data-page="home"] .home-brand .brand-logo {
  width: 44px;
  height: 44px;
}

body[data-page="home"] .home-brand-copy {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

body[data-page="home"] .home-brand .brand-text {
  font-size: 1.48rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #ffffff;
}

body[data-page="home"] .home-brand-tagline {
  color: rgba(229, 236, 246, 0.74);
  font-size: 0.77rem;
  font-weight: 600;
  line-height: 1.3;
}

.home-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.home-nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  color: rgba(229, 236, 246, 0.78);
  font-size: 0.94rem;
  font-weight: 700;
  border-radius: 12px;
  transition: color 0.2s ease, background 0.2s ease;
}

.home-nav-link:hover,
.home-nav-link:focus-visible {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.home-nav-link.is-active {
  color: #ffffff;
}

.home-nav-link.is-active::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 3px;
  border-radius: 999px;
  background: var(--home-primary);
}

.home-nav-link--caret::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-1px);
}

.home-header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  min-width: 0;
}

.home-header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 15px;
  background: var(--home-primary);
  color: #ffffff;
  font-size: 0.93rem;
  font-weight: 800;
  box-shadow: 0 16px 28px rgba(49, 96, 248, 0.28);
  transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.home-header-cta:hover,
.home-header-cta:focus-visible {
  background: #3f70ff;
  transform: translateY(-1px);
  box-shadow: 0 18px 30px rgba(49, 96, 248, 0.34);
}

.home-reference-page {
  padding: 8px 0 56px;
}

.home-main-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 284px;
  gap: 24px;
  align-items: start;
}

.home-main-column {
  display: grid;
  gap: 18px;
}

.home-section-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.home-section-heading--stacked {
  align-items: center;
}

.home-section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #2448ab;
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.home-section-kicker::before {
  content: "";
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: linear-gradient(180deg, #6690ff 0%, var(--home-primary) 100%);
  box-shadow: 0 0 0 5px rgba(49, 96, 248, 0.08);
}

.home-section-kicker--soft::before {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background: linear-gradient(180deg, #82a0ff 0%, #4772fa 100%);
}

.home-section-title {
  margin: 6px 0 0;
  color: #1a2641;
  font-size: 2.2rem;
  line-height: 1.04;
  letter-spacing: -0.05em;
}

.home-section-title--secondary {
  font-size: 1.7rem;
}

.home-section-description {
  margin: 8px 0 0;
  color: var(--home-muted);
  font-size: 1rem;
  line-height: 1.6;
}

.home-section-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 6px;
  color: var(--home-primary);
  font-size: 0.93rem;
  font-weight: 800;
  white-space: nowrap;
}

.home-section-link::after {
  content: "\2192";
  font-size: 1rem;
}

.home-featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.home-featured-section,
.home-latest-section {
  padding: 24px;
}

.home-featured-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 282px;
  border-radius: 24px;
  background: #11203a;
  color: #ffffff;
  box-shadow: var(--home-shadow-strong);
}

.home-featured-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 15, 28, 0.1) 0%, rgba(10, 15, 28, 0.12) 18%, rgba(10, 15, 28, 0.78) 100%),
    linear-gradient(0deg, rgba(9, 13, 24, 0.42) 0%, rgba(9, 13, 24, 0) 46%);
}

.home-featured-media,
.home-featured-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.home-featured-media,
.home-featured-copy,
.home-featured-topic,
.home-featured-title,
.home-featured-text {
  display: block;
  min-width: 0;
}

.home-featured-image {
  object-fit: cover;
  object-position: center;
  transform: scale(1.02);
}

.home-featured-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  padding: 16px 16px 14px;
}

.home-featured-badge {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  font-size: 0.67rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.home-featured-badge.is-highlight {
  background: #2e63ff;
}

.home-featured-badge.is-popular {
  background: #f59e0b;
}

.home-featured-badge.is-fresh {
  background: #22c55e;
}

.home-featured-copy {
  margin-top: auto;
}

.home-featured-topic {
  margin: 0 0 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-featured-title {
  margin: 0;
  color: #ffffff;
  font-size: 1.55rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.home-featured-text {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.93rem;
  line-height: 1.55;
}

.home-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 600;
}

.home-meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-meta-item::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 1.6px solid currentColor;
  border-radius: 999px;
  opacity: 0.82;
}

.home-latest-section {
  padding-top: 8px;
}

.home-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.home-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid #d9e2f1;
  border-radius: 999px;
  background: #ffffff;
  color: #44516a;
  font-size: 0.88rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.home-filter-button:hover,
.home-filter-button:focus-visible {
  transform: translateY(-1px);
  border-color: #bfd1ff;
  color: var(--home-primary);
}

.home-filter-button.is-active {
  background: rgba(49, 96, 248, 0.08);
  border-color: rgba(49, 96, 248, 0.18);
  color: var(--home-primary);
}

.home-latest-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-latest-card {
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 24px;
  box-shadow: var(--home-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.home-latest-card:hover,
.home-latest-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(49, 96, 248, 0.18);
  box-shadow: var(--home-shadow-strong);
}

.home-latest-media {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 18px;
  background: #eaf0f8;
}

.home-latest-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.home-latest-content {
  display: block;
  min-width: 0;
}

.home-latest-eyebrow,
.home-latest-title,
.home-latest-text {
  display: block;
  min-width: 0;
}

.home-latest-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--item-accent, #1f8d55);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.home-latest-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: currentColor;
}

.home-latest-title {
  margin: 0;
  color: #1c2841;
  font-size: 1.35rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}

.home-latest-text {
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.home-latest-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 12px;
  color: #64738d;
  font-size: 0.82rem;
  font-weight: 600;
}

.home-latest-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.home-latest-meta span::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(100, 115, 141, 0.22);
}

.home-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-sidebar-card {
  padding: 22px;
  background: var(--home-surface);
  border: 1px solid var(--home-line);
  border-radius: 22px;
  box-shadow: var(--home-shadow);
}

.home-sidebar-title {
  margin: 0;
  color: #21304d;
  font-size: 1.3rem;
  line-height: 1.2;
  letter-spacing: -0.03em;
}

.home-sidebar-text {
  margin: 10px 0 0;
  color: var(--home-muted);
  font-size: 0.92rem;
  line-height: 1.6;
}

.home-topic-list,
.home-category-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 18px;
}

.home-topic-item,
.home-category-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: inherit;
}

.home-topic-item + .home-topic-item,
.home-category-item + .home-category-item {
  border-top: 1px solid rgba(229, 236, 246, 0.82);
}

.home-topic-icon,
.home-category-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--icon-bg, rgba(49, 96, 248, 0.12));
  color: var(--icon-color, var(--home-primary));
  font-size: 0.74rem;
  font-weight: 800;
}

.home-topic-copy,
.home-category-copy {
  min-width: 0;
}

.home-topic-label,
.home-category-label {
  display: block;
  color: #22304c;
  font-size: 0.92rem;
  font-weight: 800;
  line-height: 1.3;
}

.home-topic-meta,
.home-category-meta {
  display: block;
  margin-top: 2px;
  color: #8290a8;
  font-size: 0.78rem;
  font-weight: 600;
}

.home-topic-count,
.home-category-count {
  color: #70809c;
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.home-sidebar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  margin-top: 18px;
  padding: 0 16px;
  border: 1px solid rgba(49, 96, 248, 0.14);
  border-radius: 14px;
  background: rgba(49, 96, 248, 0.08);
  color: var(--home-primary);
  font-size: 0.88rem;
  font-weight: 800;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.home-sidebar-button:hover,
.home-sidebar-button:focus-visible {
  transform: translateY(-1px);
  background: rgba(49, 96, 248, 0.12);
  border-color: rgba(49, 96, 248, 0.18);
}

.home-sidebar-button--light {
  background: #ffffff;
  color: #23304d;
  border-color: #dde5f2;
}

.home-empty-state {
  padding: 18px;
  background: #ffffff;
  border: 1px dashed #d6dfef;
  border-radius: 20px;
  color: var(--home-muted);
  font-size: 0.94rem;
  line-height: 1.6;
}

body[data-page="home"] .site-footer {
  margin-top: 0;
  padding: 30px 0 42px;
  background: var(--home-navy);
  color: rgba(229, 236, 246, 0.76);
}

body[data-page="home"] .footer-inner {
  gap: 18px;
}

body[data-page="home"] .footer-brand-link .brand-text,
body[data-page="home"] .footer-nav a {
  color: #ffffff;
}

body[data-page="home"] .footer-nav a {
  border-color: rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
}

body[data-page="home"] .footer-nav a:hover,
body[data-page="home"] .footer-nav a:focus-visible {
  background: rgba(255, 255, 255, 0.08);
}

body[data-page="home"] .footer-disclaimer,
body[data-page="home"] .footer-brand p {
  color: rgba(229, 236, 246, 0.68);
}

@media (max-width: 1220px) {
  body[data-page="home"] .header-inner.home-header-shell {
    grid-template-columns: auto 1fr;
  }

  .home-nav {
    order: 3;
    grid-column: 1 / -1;
    justify-content: flex-start;
    padding-top: 4px;
  }

  .home-header-actions {
    justify-content: flex-end;
  }
}

@media (max-width: 980px) {
  .home-featured-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-latest-card {
    grid-template-columns: 190px minmax(0, 1fr);
  }
}

@media (max-width: 820px) {
  body[data-page="home"] .container {
    width: min(100%, calc(100% - 24px));
    padding: 0 12px;
  }

  body[data-page="home"] .header-inner.home-header-shell {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 14px 12px 16px;
  }

  .home-brand {
    justify-self: start;
  }

  .home-nav {
    order: 2;
    grid-column: auto;
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px 6px;
    overflow-x: visible;
    padding-bottom: 0;
    padding-top: 2px;
  }

  .home-header-actions {
    order: 3;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .home-header-search,
  .home-header-cta {
    width: 100%;
  }

  .home-nav-link {
    min-height: 38px;
    padding: 0 10px;
    font-size: 0.9rem;
  }

  .home-reference-page {
    padding: 24px 0 40px;
  }

  .home-section-heading,
  .home-section-heading--stacked {
    flex-direction: column;
    align-items: flex-start;
  }

  .home-filter-tabs {
    justify-content: flex-start;
  }

  .home-sidebar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .home-brand-tagline {
    display: none;
  }

  .home-section-title {
    font-size: 1.8rem;
  }

  .home-section-title--secondary {
    font-size: 1.45rem;
  }

  .home-featured-grid {
    grid-template-columns: 1fr;
  }

  .home-featured-card {
    min-height: 300px;
  }

  .home-latest-card {
    grid-template-columns: 1fr;
  }

  .home-latest-media {
    aspect-ratio: 16 / 10;
  }
}

@media (max-width: 540px) {
  .home-section-title {
    font-size: 1.65rem;
  }

  .home-featured-title {
    font-size: 1.3rem;
  }

  .home-latest-title {
    font-size: 1.14rem;
  }

  .home-topic-item,
  .home-category-item {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .home-topic-count,
  .home-category-count {
    grid-column: 2;
  }

  body[data-page="home"] .footer-nav {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1180px) {
  .home-main-shell {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  .home-featured-grid {
    grid-template-columns: 1fr;
  }

  .home-sidebar {
    grid-template-columns: 1fr;
  }

  .home-latest-card {
    grid-template-columns: 1fr;
  }

  .home-featured-section,
  .home-latest-section,
  .home-sidebar-card,
  .home-sidebar-card {
    padding: 20px;
  }
}

body.site-contact-inspired[data-page="home"] .home-reference-page {
  padding: 24px 0 56px;
}

body.site-contact-inspired[data-page="home"] .home-main-shell {
  max-width: 1040px;
  margin: 0 auto;
  grid-template-columns: 1fr;
  gap: 22px;
}

body.site-contact-inspired[data-page="home"] .home-main-column {
  gap: 22px;
}

body.site-contact-inspired[data-page="home"] .home-section-heading,
body.site-contact-inspired[data-page="home"] .home-section-heading--stacked {
  flex-direction: column;
  align-items: flex-start;
}

body.site-contact-inspired[data-page="home"] .home-featured-section,
body.site-contact-inspired[data-page="home"] .home-latest-section {
  padding: 28px;
  border-radius: 28px;
}

body.site-contact-inspired[data-page="home"] .home-featured-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

body.site-contact-inspired[data-page="home"] .home-sidebar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

body.site-contact-inspired[data-page="home"] .home-sidebar-card {
  min-height: 100%;
}

@media (max-width: 920px) {
  body.site-contact-inspired[data-page="home"] .home-featured-section,
  body.site-contact-inspired[data-page="home"] .home-latest-section,
  body.site-contact-inspired[data-page="home"] .home-sidebar-card {
    padding: 22px;
  }

  body.site-contact-inspired[data-page="home"] .home-sidebar {
    grid-template-columns: 1fr;
  }
}
