/* EES — calm academic learning journal */
:root,
.dark {
  --background: #eef5f8;
  --foreground: #17364b;
  --card: #ffffff;
  --card-hover: #f7fbfc;
  --muted: #607580;
  --border: #c8dce4;
  --primary: #176b87;
  --primary-light: #3188a0;
  --primary-dark: #0f4f66;
  --primary-50: #e4f1f5;
  --primary-100: #d2e7ee;
  --accent: #d89427;
  --font-sans: "DM Sans", system-ui, sans-serif;
  --font-serif: "Newsreader", Georgia, serif;
}

body { background: var(--background); color: var(--foreground); }
.container { max-width: 1320px; }
.site-header,
.department-rail,
.hero {
  width: 100%;
  max-width: 100%;
}
.header-inner,
.department-rail-inner,
.hero-content {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
  box-sizing: border-box;
}
.hero-content { max-width: 1320px; }
.hero-grid,
.hero-left,
.hero-right,
.hero-card,
.hero-card-media {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

@media (min-width: 1024px) and (max-width: 1120px) {
  .header-inner { display: block !important; }
  .masthead-row { width: 100%; justify-content: space-between !important; }
  .desktop-nav { display: none !important; }
  .menu-button { display: inline-flex !important; }
}
.site-header,
.dark .site-header { background: #ffffff; color: #17364b; border: 0; box-shadow: 0 8px 26px rgba(23, 54, 75, .08); }
.header-inner { max-width: 1320px; gap: 28px; }
.masthead-row { height: 88px; }
.brand-logo,
.footer-brand .brand-logo { width: 224px; height: 68px; }
.desktop-nav { min-height: 88px; }
.desktop-nav a { height: 88px; border-radius: 0; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.desktop-nav a:hover,
.desktop-nav a[aria-current="page"] { color: var(--primary-dark); background: var(--primary-50); box-shadow: inset 0 -5px 0 var(--accent); }
.department-rail { background: #174a67; color: #fff; border-top: 1px solid #2d6680; border-bottom: 1px solid #2d6680; }
.department-label { color: #f1c56d; }
.department-links a { color: #eef8fb; }

.hero { background: #e7f2f6; border-bottom: 1px solid #c2d9e2; }
.hero-grid { grid-template-columns: minmax(0, 1.25fr) minmax(360px, .75fr); gap: 0; min-height: 650px; }
.hero-left { grid-column: 1; order: 0; align-self: stretch; }
.hero-right { grid-column: 2; order: 0; padding: 60px; background: #d8eaf0; align-self: stretch; justify-content: center; }
.hero-card { position: relative; height: 100%; min-height: 650px; border-radius: 0; box-shadow: none; }
.hero-card-media { position: absolute; inset: 0; width: 100%; height: 100%; min-height: 0; aspect-ratio: auto; }
.hero-card-media img { filter: saturate(.92) contrast(1.03); }
.hero-editorial-title { font-size: clamp(44px, 4.6vw, 72px); line-height: .98; color: #17364b; }
.hero-excerpt { color: #405f6f; }
.hero-meta { color: #617b88; }
.hero-cta { color: #fff; background: var(--primary); border-radius: 0; box-shadow: none; }
.hero-cta:hover { color: #17364b; background: #f1c56d; }

.section-pad { padding-top: 96px; padding-bottom: 96px; }
.section-alt,
.dark .section-alt { background: #dfeef3; }
.section-heading { border-bottom: 1px solid #9dbfc9; padding-bottom: 20px; }
.section-heading h2 { color: #17364b; font-size: clamp(38px, 4vw, 58px); }
.section-heading .eyebrow { color: #a96708; }
.editors-grid { grid-template-columns: minmax(0, 1.7fr) minmax(320px, .55fr); gap: 44px; }
.editors-main-card,
.article-card-inner,
.simple-card { border-radius: 0; border: 1px solid #bfd5de; background: #fff; }
.editors-main-body { background: #fff; }
.editors-main-title { font-size: clamp(26px, 3.2vw, 46px); }
.mini-card { border-color: #bfd5de; }
.mini-thumb { border-radius: 0; }
.card-body h3,
.simple-card-body h3,
.mini-body h3 { color: #17364b; }
.card-excerpt,
.mini-meta,
.card-meta { color: #607580; }
.article-card:hover .article-card-inner,
.simple-card:hover { border-color: var(--primary); box-shadow: 10px 10px 0 #b9d7e1; }

.category-banner { color: #fff; background: #174a67; border-bottom: 1px solid #2d6680; }
.category-editorial-copy h1 { color: #fff; }
.category-editorial-copy > p:last-child,
.category-banner .breadcrumbs { color: #d9edf3; }
.featured-card { border-radius: 0; background: #fff; border: 1px solid #bfd5de; }
.featured-body h2 { color: #17364b; }

.article-hero { color: #17364b; background: #dfeef3; border: 0; }
.article-hero-shell { max-width: 1320px; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); }
.article-hero-content h1 { color: #17364b; font-size: clamp(45px, 5.5vw, 76px); }
.article-lead { color: #405f6f; }
.article-meta,
.article-hero .breadcrumbs { color: #5b7582; }
.article-hero-media { border-radius: 0; box-shadow: 18px 18px 0 var(--primary); }
.article-body-wrap { max-width: none; padding: 78px 20px 88px; background: #ffffff; }
.article-reading { max-width: 790px; margin: 0 auto; color: #172033; }
.article-opening-rule { color: #9a610a; }
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose strong { color: #111827; }
.prose p,
.prose li { color: #283548; font-size: 18px; line-height: 1.88; }
.prose a { color: #176b87; }
.prose blockquote,
.editorial-note { color: #273f4c; background: #e8f2f5; }
.disclaimer { color: #374b56; background: #edf5f7; border-color: #bfd5de; }
.site-footer { color: #d7e8ee; background: #12384f; border-top: 6px solid #e1a43f; }
.footer-brand .brand-logo { padding: 8px 12px; background: #ffffff; }
.footer-title { color: #fff; }

@media (max-width: 1023px) {
  .site-header,
  .department-rail,
  .hero,
  .header-inner,
  .department-rail-inner,
  .hero-content {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  .header-inner { padding-right: clamp(16px, 4vw, 24px); padding-left: clamp(16px, 4vw, 24px); }
  .masthead-row { width: 100%; min-width: 0; justify-content: space-between; }
  .desktop-nav { display: none !important; }
  .menu-button { display: inline-flex !important; }
  .hero-grid { width: 100%; min-width: 0; max-width: 100%; grid-template-columns: minmax(0, 1fr) !important; }
  .hero-left,
  .hero-right,
  .hero-card,
  .hero-card-media {
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }
  .hero-left,
  .hero-right { grid-column: 1 !important; }
  .hero-editorial-title,
  .hero-excerpt { max-width: 100%; overflow-wrap: anywhere; }
  .department-links { min-width: 0; max-width: 100%; }
  .header-inner { display: block; }
  .masthead-row { height: 72px; }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; }
  .hero-left, .hero-right { grid-column: 1; }
  .hero-card { min-height: 0; }
  .hero-card { aspect-ratio: 16 / 9; }
  .hero-card-media { aspect-ratio: 16 / 9; }
  .hero-right { padding: 44px 28px 52px; }
  .editors-grid { grid-template-columns: 1fr; }
  .article-hero-shell { grid-template-columns: 1fr; }
}
@media (max-width: 639px) {
  .brand-logo { width: 184px; height: 56px; }
  .department-links { grid-template-columns: 1fr 1fr; }
  .hero-editorial-title { font-size: 39px; }
  .section-pad { padding-top: 60px; padding-bottom: 60px; }
  .article-hero-content h1 { font-size: 39px; overflow-wrap: anywhere; }
  .article-body-wrap { padding: 48px 18px 64px; }
  .prose p, .prose li { color: #253247; font-size: 16.5px; line-height: 1.82; overflow-wrap: anywhere; }
}
