:root {
  --md-primary-fg-color: #2853c7;
  --md-primary-fg-color--light: #4f73dd;
  --md-accent-fg-color: #7256ff;
  --atomic-bg: #eff3fb;
  --atomic-panel: #ffffff;
  --atomic-border: rgba(36, 56, 110, 0.12);
  --atomic-text: #182233;
  --atomic-muted: #4f607f;
  --atomic-hero-start: rgba(40, 83, 199, 0.97);
  --atomic-hero-end: rgba(104, 88, 214, 0.94);
  --atomic-icon-bg: rgba(68, 96, 198, 0.1);
  --atomic-icon-fg: #3159d1;
}

[data-md-color-scheme="default"] {
  --md-default-bg-color: var(--atomic-bg);
  --md-default-fg-color: var(--atomic-text);
}

.md-header {
  background: rgba(32, 61, 150, 0.9);
  backdrop-filter: blur(12px);
}

.md-header__button.md-logo img,
.md-header__button.md-logo svg {
  height: 1.6rem;
  width: 1.6rem;
}

.md-main__inner {
  margin-top: 1rem;
}

body:has(.home-page) .md-nav--secondary[aria-label="Table of contents"],
body:has(.home-page) .md-sidebar--secondary,
body:has(.home-page) .md-nav--primary .md-nav--secondary[aria-label="Table of contents"],
body:has(.home-page) #__toc,
body:has(.home-page) label[for="__toc"] {
  display: none !important;
}

.md-content__inner {
  padding-bottom: 4rem;
}

.hero-panel {
  display: grid;
  gap: 2rem;
  grid-template-columns: minmax(0, 1fr) 176px;
  padding: 2.5rem;
  border: 1px solid var(--atomic-border);
  border-radius: 1.5rem;
  background: linear-gradient(145deg, var(--atomic-hero-start), var(--atomic-hero-end));
  color: #fff;
  box-shadow: 0 20px 50px rgba(24, 41, 61, 0.16);
}

.eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  opacity: 0.82;
}

.hero-panel h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2.25rem, 5vw, 3.8rem);
  line-height: 1.04;
}

.hero-lead {
  max-width: 42rem;
  margin: 1rem 0 0;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.92);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 1.5rem;
}

.hero-actions .md-button {
  margin: 0;
  border-color: rgba(255, 255, 255, 0.4);
  color: #fff;
}

.hero-action-button {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.hero-action-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1rem;
  height: 1rem;
  flex: 0 0 auto;
}

.hero-action-icon svg {
  width: 100%;
  height: 100%;
}

.hero-actions .md-button--primary {
  background: #fff;
  color: #2444a7;
}

.hero-card {
  display: grid;
  gap: 0.15rem;
  align-self: start;
  width: 168px;
  justify-self: end;
  padding: 0.65rem 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.hero-card-body {
  min-width: 0;
}

.hero-card-title {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 700;
}

.hero-card-copy {
  margin: 0.15rem 0 0;
  font-size: 0.69rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.25;
}

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

.focus-card {
  padding: 1.35rem;
  border: 1px solid var(--atomic-border);
  border-radius: 1rem;
  background: var(--atomic-panel);
  box-shadow: 0 8px 24px rgba(29, 39, 51, 0.06);
}

.focus-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  margin-bottom: 0.85rem;
  border-radius: 0.85rem;
  background: linear-gradient(145deg, rgba(114, 86, 255, 0.1), rgba(49, 89, 209, 0.12));
  color: var(--atomic-icon-fg);
}

.focus-icon svg {
  width: 1.2rem;
  height: 1.2rem;
}

.focus-card h3 {
  margin-top: 0;
  margin-bottom: 0.5rem;
  color: #1d3277;
}

.post-banner {
  width: 100%;
  border-radius: 1rem;
  margin-bottom: 1rem;
}

.md-typeset blockquote {
  border-left-color: var(--md-accent-fg-color);
}

@media screen and (max-width: 960px) {
  .hero-panel {
    grid-template-columns: 1fr;
    padding: 1.5rem;
  }

  .hero-card {
    width: min(200px, 100%);
    justify-self: start;
  }

  .hero-card-copy {
    margin-top: 0.2rem;
  }

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