:root {
  --hub-bg: #f4f2ee;
  --hub-surface: #fffdf9;
  --hub-border: rgba(31, 41, 55, 0.08);
  --hub-text: #172033;
  --hub-muted: #5b667a;
  --hub-primary: #285ea8;
  --hub-primary-soft: rgba(40, 94, 168, 0.1);
  --hub-accent: #1f7a6a;
  --hub-shadow: 0 18px 40px rgba(33, 45, 78, 0.08);
}

body {
  background:
    radial-gradient(circle at top right, rgba(40, 94, 168, 0.08), transparent 28%),
    linear-gradient(180deg, #fbfaf7 0%, var(--hub-bg) 100%);
  color: var(--hub-text);
}

body.is-3-column .column-main {
  width: 62%;
}

body.is-3-column .column-left,
body.is-3-column .column-right {
  width: 19%;
}

.navbar.navbar-main {
  background: rgba(255, 253, 249, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(31, 41, 55, 0.06);
}

.card,
.widget {
  border: 1px solid var(--hub-border);
  box-shadow: var(--hub-shadow);
}

.card-content,
.widget .card-content {
  background: var(--hub-surface);
}

.research-home,
.notes-hub-intro {
  color: var(--hub-text);
}

.home-hero {
  padding: 0.25rem 0 1rem;
}

.hero-eyebrow,
.section-eyebrow,
.notes-hub-intro__eyebrow {
  margin-bottom: 0.6rem;
  font-size: 0.8rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--hub-accent);
  font-weight: 700;
}

.home-hero h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.08;
  color: var(--hub-text);
}

.hero-lead {
  max-width: 52rem;
  font-size: 1.08rem;
  line-height: 1.85;
  color: var(--hub-muted);
}

.home-actions,
.notes-hub-intro .buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.home-section {
  margin-top: 2.8rem;
}

.section-heading {
  margin-bottom: 1rem;
}

.section-heading h2 {
  margin: 0;
  font-size: 1.6rem;
  color: var(--hub-text);
}

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

.hub-grid--three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.hub-card {
  display: block;
  height: 100%;
  padding: 1.2rem 1.15rem;
  border: 1px solid var(--hub-border);
  border-radius: 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 245, 239, 0.95)),
    var(--hub-surface);
  box-shadow: 0 14px 30px rgba(32, 45, 74, 0.06);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.hub-card h3 {
  margin-bottom: 0.55rem;
  color: var(--hub-text);
}

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

.hub-card--link:hover {
  transform: translateY(-2px);
  border-color: rgba(40, 94, 168, 0.25);
  box-shadow: 0 18px 34px rgba(32, 45, 74, 0.1);
}

.reading-path {
  margin: 0;
  padding-left: 1.25rem;
}

.reading-path li {
  margin-bottom: 0.75rem;
  line-height: 1.8;
  color: var(--hub-muted);
}

.resource-list {
  display: grid;
  gap: 1rem;
  margin: 1rem 0 1.5rem;
}

.hub-accordion,
.resource-accordion {
  margin: 1rem 0 1.5rem;
  border: 1px solid var(--hub-border);
  border-radius: 18px;
  background: #fff;
  overflow: hidden;
}

.hub-accordion summary,
.resource-accordion summary {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
  padding: 0.9rem 1.1rem;
  cursor: pointer;
  list-style: none;
  color: var(--hub-text);
}

.hub-accordion summary::-webkit-details-marker,
.resource-accordion summary::-webkit-details-marker {
  display: none;
}

.hub-accordion summary::before,
.resource-accordion summary::before {
  content: "▸";
  font-size: 0.95rem;
  color: var(--hub-primary);
  transform: rotate(0deg);
  transition: transform 140ms ease;
}

.hub-accordion[open] summary::before,
.resource-accordion[open] summary::before {
  transform: rotate(90deg);
}

.hub-accordion__meta,
.resource-accordion__meta {
  font-size: 0.85rem;
  color: var(--hub-muted);
}

.hub-accordion__body,
.resource-accordion__body {
  padding: 0.2rem 1.1rem 1rem;
  border-top: 1px solid rgba(31, 41, 55, 0.06);
}

.hub-accordion__body p {
  margin-bottom: 0.5rem;
  color: var(--hub-muted);
}

.hub-accordion__list,
.resource-accordion__list {
  margin: 0.75rem 0 0;
  padding-left: 1.2rem;
  color: var(--hub-muted);
}

.hub-accordion__list li,
.resource-accordion__list li {
  margin-bottom: 0.4rem;
}

.resource-item {
  padding: 1rem 1.1rem;
  border: 1px solid var(--hub-border);
  border-radius: 18px;
  background: #fff;
}

.resource-item h3 {
  margin-bottom: 0.5rem;
}

.resource-item p:last-child {
  margin-bottom: 0;
}

.chip {
  display: inline-block;
  margin-right: 0.4rem;
  margin-bottom: 0.3rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--hub-primary-soft);
  color: var(--hub-primary);
  font-size: 0.78rem;
  font-weight: 700;
}

.article .content h1,
.article .content h2,
.article .content h3,
.article .content h4 {
  color: var(--hub-text);
}

.article-meta .article-sticky {
  color: var(--hub-primary);
  font-weight: 700;
}

.article .content p,
.article .content li {
  color: var(--hub-muted);
  line-height: 1.85;
}

.article .content blockquote {
  border-left: 4px solid var(--hub-primary);
  background: rgba(40, 94, 168, 0.05);
  color: var(--hub-text);
}

.notes-hub-intro {
  margin-bottom: 1rem;
}

.notes-hub-intro .card-content {
  background:
    linear-gradient(135deg, rgba(40, 94, 168, 0.08), rgba(31, 122, 106, 0.04)),
    var(--hub-surface);
}

.widget .menu-label,
.widget .title,
.widget .heading {
  color: var(--hub-text);
}

.widget a,
.article a,
.content a {
  color: var(--hub-primary);
}

.button.is-primary {
  background: var(--hub-primary);
}

.button.is-light {
  background: rgba(40, 94, 168, 0.08);
  color: var(--hub-primary);
}

@media screen and (max-width: 1215px) {
  body.is-3-column .column-main,
  body.is-3-column .column-left,
  body.is-3-column .column-right {
    width: auto;
  }
}

@media screen and (max-width: 768px) {
  .home-hero h1 {
    font-size: 2.2rem;
  }

  .hub-grid,
  .hub-grid--three {
    grid-template-columns: 1fr;
  }

  .home-actions,
  .notes-hub-intro .buttons {
    flex-direction: column;
    align-items: stretch;
  }
}
