/* ─── Penn MEDIATED Blog · Stylesheet ─── */
/* Matches infodem.upenn.edu aesthetic */

:root {
  --navy:       #011F5B;
  --navy-mid:   #1a3a7a;
  --blue-card:  #eef2fb;
  --blue-card-border: #d0daf2;
  --gold:       #f2c100;
  --gold-light: #fef9e0;
  --white:      #ffffff;
  --body-bg:    #ffffff;
  --text:       #1a1a1a;
  --muted:      #666666;
  --label:      #888888;
  --border:     #e0e0e0;
  --light-bg:   #f7f7f7;
  --link-blue:  #0055A4;
  --max-width:  1140px;
  --font-serif: 'Merriweather', Georgia, 'Times New Roman', serif;
  --font-sans:  'Source Sans 3', 'Helvetica Neue', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-serif);
  color: var(--text);
  background: var(--body-bg);
  line-height: 1.7;
}
a { color: var(--navy); text-decoration: underline; }
a:hover { color: var(--gold); }
img { max-width: 100%; display: block; }

/* ─── Header / Nav ─── */
.site-header {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 100;
}
.header-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.logo-shield {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}
.logo-text { line-height: 1.15; }
.logo-text .penn {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 1.15rem;
  color: #ffffff;
  letter-spacing: 0.01em;
}
.logo-text .sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.68rem;
  color: rgba(255,255,255,0.75);
  letter-spacing: 0.01em;
  line-height: 1.3;
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 0;
}
.site-nav a {
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255,255,255,0.88);
  text-decoration: none;
  padding: 0 14px;
  line-height: 80px;
  display: block;
  border-bottom: 3px solid transparent;
  transition: color 0.15s, border-color 0.15s;
}
.site-nav a:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}
.site-nav a.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* ─── Page Hero ─── */
.blog-hero {
  background: #ffffff;
  border-bottom: 3px solid var(--gold);
  padding: 52px 24px 44px;
}
.blog-hero-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}
.blog-hero .eyebrow {
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 12px;
}
.blog-hero h1 {
  font-family: var(--font-serif);
  font-size: 2.6rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  margin-bottom: 14px;
  max-width: 600px;
}
.blog-hero p {
  font-family: var(--font-sans);
  font-size: 1.175rem;
  color: #444;
  max-width: 560px;
  line-height: 1.7;
}

/* ─── Main Layout ─── */
.page-body {
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

/* ─── Post List / Cards ─── */
.post-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.post-item {
  background: var(--blue-card);
  border: 1px solid var(--blue-card-border);
  padding: 28px 30px;
  transition: box-shadow 0.15s;
}
.post-item:hover {
  box-shadow: 0 4px 18px rgba(26,39,68,0.10);
}

/* Post meta line */
.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
}
.post-category {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--label);
  text-decoration: none;
}
.post-category:hover { color: var(--navy); text-decoration: none; }
.post-meta-sep {
  color: var(--border);
  font-size: 0.8rem;
}
.post-date {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
}

/* Post title */
.post-item h2 {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 12px;
}
.post-item h2 a {
  color: inherit;
  text-decoration: none;
}
.post-item h2 a:hover {
  color: var(--gold);
  text-decoration: none;
}

/* Post excerpt */
.post-excerpt {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  color: #333;
  line-height: 1.75;
  margin-bottom: 16px;
}

/* Post footer */
.post-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.post-author {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  color: var(--muted);
}
.read-more {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.read-more:hover { color: var(--gold); text-decoration: none; }

/* Coming soon badge */
.badge-coming-soon {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: var(--gold-light);
  color: #7a5a10;
  padding: 3px 10px;
  border-radius: 3px;
  margin-left: 6px;
  vertical-align: middle;
}

/* ─── Sidebar ─── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 36px;
  position: sticky;
  top: 24px;
}

.sidebar-section {
  background: var(--blue-card);
  border: 1px solid var(--blue-card-border);
  padding: 20px 22px;
}

.sidebar-section h3 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 16px;
}

.sidebar-section p,
.sidebar-section .blurb {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #444;
  line-height: 1.65;
}

.sidebar-section ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.sidebar-section li {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.sidebar-section li:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.sidebar-section li a {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
  line-height: 1.4;
  display: block;
}
.sidebar-section li a:hover {
  color: var(--navy);
  text-decoration: underline;
}
.sidebar-section li .meta {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
  margin-top: 2px;
}

/* ─── Individual Post Page ─── */
.post-page-body {
  max-width: var(--max-width);
  margin: 48px auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 56px;
  align-items: start;
}

.back-link {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 28px;
}
.back-link:hover { color: var(--navy); text-decoration: none; }

.post-header {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border);
}
.post-header h1 {
  font-family: var(--font-serif);
  font-size: 2.1rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin-bottom: 16px;
}
.post-byline {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--muted);
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Post body prose */
.post-body {
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2a2a2a;
}
.post-body p { margin-bottom: 22px; }
.post-body h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  margin: 36px 0 14px;
}
.post-body h3 {
  font-family: var(--font-serif);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 10px;
}
.post-body ul, .post-body ol {
  margin: 0 0 22px 22px;
}
.post-body li { margin-bottom: 8px; }
.post-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  margin: 28px 0;
  font-style: italic;
  color: #555;
}
.post-body a { color: var(--link-blue); }
.post-body a:hover { color: var(--navy); }

/* Stats row */
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 28px 0;
}
.stat-box {
  background: var(--blue-card);
  border: 1px solid var(--blue-card-border);
  border-top: 3px solid var(--navy-mid);
  padding: 20px 16px;
  text-align: center;
}
.stat-box .num {
  font-family: var(--font-serif);
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-box .label {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
}

/* Grant list */
.grant-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}
.grant-list li {
  padding: 18px 0;
  border-bottom: 1px solid var(--border);
}
.grant-list li:last-child { border-bottom: none; }
.grant-list li strong {
  display: block;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
  font-size: 0.95rem;
}
.grant-list li p {
  font-size: 1rem;
  color: #444;
  margin-bottom: 6px;
  line-height: 1.55;
}
.grant-list li .pis {
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
}

/* Section label (like "KEY TAKEAWAY" on the site) */
.section-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 6px;
}

/* Coming soon block */
.coming-soon-block {
  border: 1px solid var(--border);
  border-top: 3px solid var(--gold);
  padding: 40px 32px;
  text-align: center;
}
.coming-soon-block h2 {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  color: var(--navy);
  margin-bottom: 12px;
}
.coming-soon-block p {
  font-family: var(--font-sans);
  font-size: 0.95rem;
  color: var(--muted);
  max-width: 400px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Faculty grid */
.faculty-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
  margin: 24px 0;
}
.faculty-card {
  border: 1px solid var(--border);
  padding: 16px;
}
.faculty-card .name {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
  margin-bottom: 4px;
}
.faculty-card .title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

/* Director cards */
.director-byline {
  display: flex;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.director-card {
  border: 1px solid var(--border);
  padding: 14px 18px;
  flex: 1;
  min-width: 180px;
}
.director-card .name {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.9rem;
}
.director-card .role {
  font-family: var(--font-sans);
  font-size: 0.78rem;
  color: var(--muted);
}

/* Newsletter CTA button */
.newsletter-cta-btn {
  display: inline-block;
  margin-top: 14px;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  padding: 10px 20px;
  text-decoration: none;
  transition: background 0.15s;
}
.newsletter-cta-btn:hover {
  background: var(--navy-mid);
  color: #fff;
  text-decoration: none;
}

/* Newsletter note */
.newsletter-note {
  background: #fdf9f0;
  border-left: 3px solid var(--gold);
  padding: 12px 16px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: #6b5500;
  margin-bottom: 28px;
}

/* Button */
.btn {
  display: inline-block;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  background: var(--navy);
  color: #fff;
  padding: 10px 22px;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: #253660; color: #fff; text-decoration: none; }
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff;
  padding: 8px 22px;
}
.btn-outline:hover { border-color: #fff; background: transparent; }

/* ─── Footer ─── */
.site-footer {
  background: var(--navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 24px 32px;
  margin-top: 80px;
}
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.12);
}
.footer-brand p {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  line-height: 1.65;
  max-width: 320px;
  margin-top: 14px;
}
.footer-col h4 {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fff;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-col li a {
  font-family: var(--font-sans);
  font-size: 0.875rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
}
.footer-col li a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom {
  max-width: var(--max-width);
  margin: 24px auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.footer-bottom p {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: rgba(255,255,255,0.5);
}
.footer-bottom a { color: rgba(255,255,255,0.5); text-decoration: none; }
.footer-bottom a:hover { color: var(--gold); }

/* Penn shield SVG placeholder */
.penn-shield {
  width: 52px;
  height: 52px;
}

/* ─── Expandable Post Cards ─── */
.post-card {
  padding: 28px 30px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.post-card:hover {
  background: var(--blue-card);
}
.post-item {
  padding: 0;
}
.expand-btn {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  transition: color 0.15s;
}
.expand-btn:hover { color: var(--gold); }
.expand-btn[aria-expanded="true"] { color: var(--gold); }
.expand-icon { font-size: 0.8rem; transition: transform 0.2s; }

.post-full-content {
  display: none; /* content source for modal — not rendered inline */
}
.post-full-content-inner {
  padding: 28px 30px 36px;
  border-top: 1px solid var(--blue-card-border);
  background: #fff;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2a2a2a;
}
.post-full-content-inner p { margin-bottom: 20px; }
.post-full-content-inner h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
}
.post-full-content-inner ul,
.post-full-content-inner ol {
  margin: 0 0 20px 22px;
}
.post-full-content-inner li { margin-bottom: 8px; }
.post-full-content-inner blockquote {
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  margin: 24px 0;
  font-style: italic;
  color: #555;
}
.post-full-content-inner a { color: var(--link-blue); }
.post-full-content-inner a:hover { color: var(--navy); }

/* ─── Pull Quotes ─── */
.pull-quote {
  border-left: 3px solid var(--gold);
  padding: 18px 24px;
  margin: 24px 0;
  background: #fdfaf4;
}
.pull-quote p {
  font-family: var(--font-sans);
  font-size: 1.1rem;
  font-weight: 700;
  font-style: italic;
  color: #2a2a2a;
  margin-bottom: 10px !important;
  line-height: 1.7;
}
.pull-quote .attribution {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}

/* ─── Bio Section ─── */
.bio-section {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 2px solid var(--border);
}
.bio-label {
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 16px;
}
.bio-inner {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 20px;
  align-items: start;
}
.bio-photo {
  width: 110px;
  height: 138px;
  object-fit: cover;
  border-radius: 4px;
  flex-shrink: 0;
}
.bio-name {
  font-family: var(--font-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}
.bio-title {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 12px;
  line-height: 1.5;
}
.bio-text {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
}
.bio-text p { margin-bottom: 10px; }

/* ─── RFP Toggle (inside grant post) ─── */
.rfp-toggle-wrap {
  margin-top: 36px;
  border-top: 1px solid var(--border);
  padding-top: 20px;
}
.rfp-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--blue-card);
  border: 1px solid var(--blue-card-border);
  padding: 14px 20px;
  width: 100%;
  text-align: left;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  transition: background 0.15s;
}
.rfp-toggle:hover { background: #e4ecf9; }
.rfp-toggle[aria-expanded="true"] { background: var(--navy); color: #fff; }
.rfp-toggle[aria-expanded="true"] .rfp-toggle-chevron { transform: rotate(180deg); }
.rfp-toggle-icon { color: var(--gold); flex-shrink: 0; }
.rfp-toggle-label { flex: 1; }
.rfp-toggle-chevron { flex-shrink: 0; transition: transform 0.2s; }
.rfp-content {
  border: 1px solid var(--blue-card-border);
  border-top: none;
  padding: 24px 28px;
  background: #fff;
}
.rfp-content h2 {
  font-family: var(--font-serif);
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 20px 0 8px;
}
.rfp-content h2:first-child { margin-top: 0; }
.rfp-content p, .rfp-content li {
  font-family: var(--font-sans);
  font-size: 1rem;
  color: #444;
  line-height: 1.7;
  margin-bottom: 6px;
}
.rfp-content ol, .rfp-content ul { margin: 8px 0 14px 20px; }
.rfp-dates {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  margin: 10px 0 18px;
}
.rfp-dates tr { border-bottom: 1px solid var(--border); }
.rfp-dates td { padding: 7px 10px; color: #444; }
.rfp-dates td:first-child { font-weight: 600; color: var(--navy); width: 200px; }

/* ─── Featured / Hero Post ─── */
.post-item.post-featured {
  border: 1px solid var(--navy-mid);
  box-shadow: 0 2px 12px rgba(0, 25, 77, 0.10);
}
.post-item.post-featured .post-card {
  padding: 32px 36px;
}
.post-item.post-featured h2 {
  font-size: 2rem;
  line-height: 1.2;
  margin-bottom: 14px;
}
.post-item.post-featured .post-excerpt {
  font-size: 1.08rem;
  color: #2a2a2a;
  line-height: 1.8;
}

/* Featured badge */
.featured-badge {
  font-family: var(--font-sans);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  background: var(--gold);
  color: var(--navy);
  padding: 3px 10px;
  border-radius: 3px;
}

/* Read time */
.post-read-time {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ─── Post Feature Image (GIF/photo inside expanded content) ─── */
.post-feature-img {
  width: 100%;
  max-width: 700px;
  height: auto;
  display: block;
  margin: 0 0 24px;
  border: 1px solid var(--border);
}

/* ─── Responsive ─── */

/* ── Tablet (≤ 900px) ── */
@media (max-width: 900px) {
  /* Collapse two-column layout to single column */
  .page-body,
  .post-page-body {
    grid-template-columns: 1fr;
    gap: 40px;
    margin: 28px auto;
  }

  /* Sidebar loses sticky behaviour and becomes a footer widget */
  .sidebar {
    position: static;
    gap: 24px;
  }

  /* Hero */
  .blog-hero { padding: 40px 20px 32px; }
  .blog-hero h1 { font-size: 2rem; }
  .blog-hero p  { font-size: 1rem; }

  /* Post cards */
  .post-card,
  .post-item.post-featured .post-card { padding: 22px 24px; }

  /* Featured post title */
  .post-item.post-featured h2 { font-size: 1.75rem; }

  /* Expanded content inner */
  .post-full-content-inner { padding: 22px 24px 28px; }

  /* Stats */
  .stat-row { grid-template-columns: 1fr 1fr; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .site-nav { display: none; }
}

/* ── Mobile (≤ 600px) ── */
@media (max-width: 600px) {
  /* Global padding */
  .page-body,
  .post-page-body { padding: 0 16px; margin: 20px auto; gap: 28px; }

  /* Hero */
  .blog-hero { padding: 28px 16px 24px; }
  .blog-hero h1 { font-size: 1.6rem; margin-bottom: 10px; }
  .blog-hero p  { font-size: 0.95rem; }

  /* Post cards */
  .post-card,
  .post-item.post-featured .post-card { padding: 18px 18px; }

  /* Post titles */
  .post-item h2 { font-size: 1.35rem; }
  .post-item.post-featured h2 { font-size: 1.5rem; }

  /* Excerpt */
  .post-excerpt { font-size: 0.95rem; }

  /* Post footer — stack author + button vertically */
  .post-item-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Expanded content inner */
  .post-full-content-inner { padding: 18px 18px 24px; font-size: 0.95rem; }

  /* Stats: single column */
  .stat-row { grid-template-columns: 1fr; }

  /* Bio: stack photo above text */
  .bio-inner {
    grid-template-columns: 1fr;
  }
  .bio-photo { width: 88px; height: 110px; }

  /* Director cards: stack */
  .director-byline { flex-direction: column; gap: 10px; }

  /* RFP table: allow first column to shrink */
  .rfp-dates td:first-child { width: auto; }

  /* Newsletter button: full width */
  .newsletter-cta-btn { display: block; text-align: center; }

  /* Sidebar sections */
  .sidebar-section { padding: 16px 18px; }

  /* Grant list */
  .grant-list li { padding: 14px 0; }

  /* Pull quote */
  .pull-quote { padding: 14px 16px; }
  .pull-quote p { font-size: 1rem; }

  /* Coming-soon block */
  .coming-soon-block { padding: 28px 20px; }

  /* Post meta wrap tighter */
  .post-meta { gap: 6px; }
}

/* ─── Modal Overlay ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(1, 31, 91, 0.65);
  z-index: 9999;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 5vh 20px 60px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.modal-overlay[hidden] { display: none; }

.modal-box {
  background: #fff;
  width: 100%;
  max-width: 800px;
  position: relative;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.32);
  margin: 0 auto;
}

.modal-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  padding: 14px 20px 0;
  background: var(--blue-card);
}

.modal-copy-btn {
  background: var(--gold);
  border: none;
  border-radius: 6px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--navy);
  cursor: pointer;
  transition: opacity 0.15s;
  letter-spacing: 0.01em;
}
.modal-copy-btn:hover {
  opacity: 0.85;
}

.modal-close {
  position: static;
  background: var(--navy);
  color: #fff;
  border: none;
  font-size: 1rem;
  width: 36px;
  height: 36px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  font-family: var(--font-sans);
  font-weight: 700;
}
.modal-close:hover { background: var(--navy-mid); }

.modal-header {
  background: var(--blue-card);
  border-bottom: 3px solid var(--gold);
  padding: 16px 32px 24px;
}
.modal-header .post-meta {
  margin-bottom: 10px;
}
.modal-header h2 {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.25;
  color: var(--navy);
  margin: 0;
}

.modal-body {
  padding: 28px 32px 40px;
  font-family: var(--font-sans);
  font-size: 1.125rem;
  line-height: 1.8;
  color: #2a2a2a;
}
.modal-body p { margin-bottom: 20px; }
.modal-body h2 {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
  margin: 32px 0 12px;
}
.modal-body ul,
.modal-body ol { margin: 0 0 20px 22px; }
.modal-body li { margin-bottom: 8px; }
.modal-body blockquote {
  border-left: 3px solid var(--gold);
  padding: 14px 20px;
  margin: 24px 0;
  font-style: italic;
  color: #555;
}
.modal-body a { color: var(--link-blue); }
.modal-body a:hover { color: var(--navy); }
.modal-body img { max-width: 100%; height: auto; }

@media (max-width: 600px) {
  .modal-overlay { padding: 0; }
  .modal-box { max-width: 100%; min-height: 100dvh; }
  .modal-header { padding: 12px 20px 18px; }
  .modal-header h2 { font-size: 1.3rem; }
  .modal-body { padding: 20px 20px 32px; font-size: 1rem; }
}
