/* Academic Review: editorial, archival and scholarly. */
html[data-theme="academic"] {
  --page: #e8e0d1;
  --surface: #f6f1e7;
  --surface-alt: #eee5d6;
  --ink: #1d2528;
  --muted: #4d5555;
  --accent: #781f31;
  --accent-strong: #5f1425;
  --accent-soft: #ead5d7;
  --on-accent: #fffaf1;
  --rule: #9f8d78;
  --focus-inner: #fffaf1;
  --focus-outer: #173f55;
  --footer-bg: #173f55;
  --footer-text: #fffaf1;
  --footer-muted: #d8e5e9;
  --footer-link: #ffe08a;
  --footer-link-hover: #ffffff;
  --font-display: Georgia, "Times New Roman", serif;
  --font-reading: Georgia, "Times New Roman", serif;
  --measure: 68ch;
  --radius-sm: 0.12rem;
  --radius-card: 0.25rem;
  --radius-pill: 0.2rem;
  --rule-width: 1px;
  --shadow-card: 0 9px 24px -22px rgba(29, 37, 40, 0.65);
  --shadow-lift: 0 16px 34px -26px rgba(29, 37, 40, 0.72);
  --section-space: clamp(4rem, 8vw, 7.25rem);
}

html[data-theme="academic"] body {
  background:
    repeating-linear-gradient(0deg, rgba(120, 31, 49, 0.025) 0 1px, transparent 1px 28px),
    var(--page);
}

html[data-theme="academic"] body::before {
  opacity: 0;
}

html[data-theme="academic"] .site-header {
  border-top: 4px solid var(--accent);
  background: color-mix(in srgb, var(--surface) 97%, transparent);
  box-shadow: none;
}

html[data-theme="academic"] .site-style-bar {
  border-bottom-style: double;
  border-bottom-width: 3px;
}

html[data-theme="academic"] .site-header__brand span,
html[data-theme="academic"] .site-title {
  font-family: var(--font-display);
  font-weight: 700;
}

html[data-theme="academic"] .site-header__nav-list {
  padding-inline: 0;
  background: transparent;
  box-shadow: none;
}

html[data-theme="academic"] .site-header__nav-link {
  border-bottom: 2px solid transparent;
}

html[data-theme="academic"] .site-header__nav-link:hover,
html[data-theme="academic"] .site-header__nav-link:focus-visible,
html[data-theme="academic"] .site-header__nav-link[aria-current="page"] {
  background: transparent;
  border-bottom-color: var(--accent);
  box-shadow: none;
}

html[data-theme="academic"] .site-header__nav-link--cta,
html[data-theme="academic"] .site-header__nav .site-header__nav-link--cta {
  border: 1px solid var(--accent);
  border-bottom-width: 3px;
  background: var(--surface);
  color: var(--accent-strong);
}

html[data-theme="academic"] .hero {
  background:
    linear-gradient(90deg, var(--ink) 0 70%, #173f55 70% 100%);
  border-bottom: 5px double var(--surface-alt);
}

html[data-theme="academic"] .hero::before {
  background:
    repeating-linear-gradient(90deg, transparent 0 23px, rgba(255, 255, 255, 0.035) 23px 24px),
    linear-gradient(120deg, transparent 0 62%, rgba(246, 241, 231, 0.08) 62% 64%, transparent 64%);
}

html[data-theme="academic"] .hero__content {
  border-left: 5px solid var(--accent);
  background: rgba(29, 37, 40, 0.82);
  box-shadow: none;
}

html[data-theme="academic"] .hero__tag,
html[data-theme="academic"] .hero__badge,
html[data-theme="academic"] .genai-chip {
  border: 0;
  border-bottom: 2px solid currentColor;
  background: transparent;
  padding-inline: 0;
}

html[data-theme="academic"] .section-block:nth-of-type(even) {
  background: var(--surface-alt);
}

html[data-theme="academic"] .section-block__title {
  max-width: 23ch;
}

html[data-theme="academic"] .section-block__title::after {
  width: 7rem;
  height: 5px;
  border-radius: 0;
  background: linear-gradient(90deg, var(--accent) 0 72%, #173f55 72%);
}

html[data-theme="academic"] :where(.service-card, .blog-card, .publication-card, .timeline-card, .quote-callout, .tweet-card, .content-card, .widget) {
  border-width: 0 0 0 4px;
  box-shadow: none;
}

html[data-theme="academic"] :where(.service-card, .blog-card, .publication-card, .timeline-card, .content-card):hover {
  transform: translateX(3px);
}

html[data-theme="academic"] body.page-blog :where(.ast-article-post, .ast-article-single) {
  border-width: 1px 1px 1px 5px;
  box-shadow: none;
}

html[data-theme="academic"] body.page-blog .entry-content > p:first-of-type::first-letter {
  float: left;
  margin: 0.05em 0.12em 0 0;
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 3.35em;
  font-weight: 700;
  line-height: 0.82;
}

html[data-theme="academic"] .site-footer {
  border-top: 5px double var(--surface-alt);
  background: var(--footer-bg);
}

@media (min-width: 1024px) {
  html[data-theme="academic"] .section-block:nth-of-type(odd) .section-block__header {
    margin-left: clamp(1rem, 6vw, 6rem);
  }

  html[data-theme="academic"] .section-block:nth-of-type(even) .section-block__header {
    margin-right: clamp(1rem, 6vw, 6rem);
  }
}

@media print {
  html[data-theme="academic"] body.page-blog .entry-content > p:first-of-type::first-letter {
    float: none;
    margin: 0;
    color: #000000;
    font-size: inherit;
  }
}
