/* ==========================================================================
   Next Idea Hub — main stylesheet
   ========================================================================== */

/* Self-hosted variable fonts */
@font-face {
  font-family: 'Playfair Display';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-normal-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Playfair Display';
  font-style: italic;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/playfair-display-italic-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-normal-var.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: italic;
  font-weight: 400 800;
  font-display: swap;
  src: url('../fonts/plus-jakarta-sans-italic-var.woff2') format('woff2');
}

/* ==========================================================================
   Reset
   ========================================================================== */
:where(*, *::before, *::after) { box-sizing: border-box; }
:where(html) { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
:where(body, h1, h2, h3, h4, h5, h6, p, figure, blockquote, dl, dd, ul, ol) { margin: 0; }
:where(ul, ol) { padding: 0; list-style: none; }
:where(img, picture, svg) { display: block; max-width: 100%; }
:where(a) { color: inherit; text-decoration: none; }
:where(button, input, textarea, select) { font: inherit; color: inherit; }
:where(button) { cursor: pointer; background: none; border: 0; }

/* Several components below set their own `display` (flex, etc.), which beats
   the browser's default [hidden]{display:none} in the cascade. Restore it
   with !important so toggling the `hidden` property always works. */
[hidden] { display: none !important; }

html { font-size: 16px; }

body {
  font-family: var(--nih-font-body);
  background: var(--nih-bg);
  color: var(--nih-ink);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body::selection, body *::selection { background: var(--nih-accent); color: #fff; }

:where(h1, h2, h3, h4, h5, h6) {
  font-family: var(--nih-font-heading);
  letter-spacing: -0.01em;
  line-height: 1.1;
}

main { flex: 1 0 auto; }

.nih-container {
  width: 100%;
  max-width: var(--nih-container);
  margin-inline: auto;
  padding-inline: 1rem;
}
@media (min-width: 640px) { .nih-container { padding-inline: 1.5rem; } }
@media (min-width: 1280px) { .nih-container { padding-inline: 2rem; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--nih-accent); color: #fff; padding: 0.75rem 1.25rem;
  border-radius: 0 0 var(--nih-radius-sm) 0; font-weight: 700; font-size: 0.85rem;
}
.skip-link:focus { left: 0; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: var(--nih-ink); color: #fff;
  border-bottom: 1px solid var(--nih-dark-border);
  box-shadow: var(--nih-shadow-md);
}
.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  height: 5rem;
}
@media (min-width: 640px) { .site-header__inner { height: 5.5rem; } }

.site-logo {
  display: inline-flex; align-items: center; gap: 0.75rem;
  cursor: pointer; user-select: none;
}
.site-logo__mark {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; flex-shrink: 0;
  background: linear-gradient(135deg, #E2C582, var(--nih-accent), #A27F38);
  box-shadow: 0 1px 2px rgba(200,164,93,0.25);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.3);
  transition: transform 0.3s ease;
}
.site-logo:hover .site-logo__mark { transform: scale(1.05); }
.site-logo__mark svg { width: 1.5rem; height: 1.5rem; }
.site-logo__word {
  display: flex; align-items: baseline; gap: 0.35rem; line-height: 1;
  font-family: var(--nih-font-heading); font-weight: 800; letter-spacing: -0.01em;
}
.site-logo__word span.accent { font-style: italic; font-weight: 700; color: var(--nih-accent); font-size: 1.2em; }
.site-logo__word { color: #fff; font-size: 1.25rem; }
@media (min-width: 640px) { .site-logo__word { font-size: 1.4rem; } }

.primary-nav {
  display: none; align-items: center; gap: 1rem;
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  flex-wrap: nowrap; min-width: 0;
}
@media (min-width: 1024px) { .primary-nav { display: flex; } }
@media (min-width: 1150px) { .primary-nav { gap: 1.5rem; } }
@media (min-width: 1280px) { .primary-nav { gap: 2rem; } }
.primary-nav a {
  position: relative; padding: 0.5rem 0.15rem; color: rgba(255,255,255,0.9);
  transition: color 0.2s ease;
}
.primary-nav a:hover, .primary-nav a.is-active { color: var(--nih-accent); }
.primary-nav a::after {
  content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: var(--nih-accent); transition: width 0.2s ease;
}
.primary-nav a:hover::after, .primary-nav a.is-active::after { width: 100%; }

.header-utils { position: relative; display: flex; align-items: center; gap: 0.5rem; }
@media (min-width: 640px) { .header-utils { gap: 0.75rem; } }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.6rem; border-radius: var(--nih-radius-pill); color: rgba(255,255,255,0.9);
  transition: background 0.2s ease, color 0.2s ease;
}
.icon-btn:hover { color: var(--nih-accent); background: rgba(255,255,255,0.05); }
.icon-btn svg { width: 1rem; height: 1rem; }

.search-toggle { display: inline-flex; }
@media (min-width: 640px) { .search-toggle { display: none; } }

.search-form {
  display: none; align-items: center; gap: 0.5rem; background: var(--nih-dark-surface);
  border: 1px solid rgba(200,164,93,0.4); border-radius: var(--nih-radius-pill);
  padding: 0.35rem 0.75rem;
}
.search-form.is-open {
  display: flex; position: absolute; right: 1rem; top: 100%; margin-top: 0.5rem; z-index: 50;
  box-shadow: var(--nih-shadow-md);
}
@media (min-width: 640px) {
  .search-form { display: flex; position: static; margin-top: 0; box-shadow: none; }
}
.search-form input {
  background: transparent; border: 0; outline: 0; color: #fff; font-size: 0.75rem;
  width: 7rem;
}
@media (min-width: 1150px) { .search-form input { width: 8.5rem; } }
@media (min-width: 1280px) { .search-form input { width: 10rem; } }
.search-form input::placeholder { color: rgba(255,255,255,0.5); }
.search-form svg { width: 1rem; height: 1rem; color: var(--nih-accent); flex-shrink: 0; }

.menu-toggle { display: inline-flex; }
@media (min-width: 1024px) { .menu-toggle { display: none; } }
.menu-toggle svg { width: 1.5rem; height: 1.5rem; }

.mobile-nav {
  display: none; border-top: 1px solid var(--nih-dark-border); background: var(--nih-dark-panel);
  padding: 0.75rem 1rem 1.5rem;
}
.mobile-nav.is-open { display: block; }
@media (min-width: 1024px) { .mobile-nav { display: none !important; } }
.mobile-nav__label {
  font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--nih-accent); padding: 0.5rem 0.75rem 0.25rem;
}
.mobile-nav__label.is-muted { color: var(--nih-muted); }
.mobile-nav a {
  display: block; width: 100%; text-align: left; padding: 0.55rem 0.75rem;
  font-size: 0.85rem; font-weight: 600; color: rgba(255,255,255,0.9); border-radius: var(--nih-radius-sm);
}
.mobile-nav a:hover { color: var(--nih-accent); background: rgba(255,255,255,0.05); }
.mobile-nav__divider { border-top: 1px solid var(--nih-dark-border); margin: 0.5rem 0; }

/* ==========================================================================
   Footer
   ========================================================================== */
.site-footer {
  background: var(--nih-ink); color: #fff; padding: 3.5rem 0 2.5rem;
  border-top: 1px solid var(--nih-dark-border); margin-top: 4rem;
}
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: 2.5rem;
  padding-bottom: 3rem; border-bottom: 1px solid var(--nih-dark-border);
}
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(12, 1fr); gap: 3rem; } }
.footer-col-brand { display: flex; flex-direction: column; gap: 1.25rem; min-width: 0; }
@media (min-width: 768px) { .footer-col-brand { grid-column: span 4; } }
.footer-disclaimer { font-size: 0.85rem; color: rgba(255,255,255,0.9); line-height: 1.6; max-width: 26rem; }
.footer-socials { display: flex; align-items: center; gap: 0.75rem; padding-top: 0.5rem; }
.footer-socials a {
  width: 2.25rem; height: 2.25rem; border-radius: var(--nih-radius-pill);
  background: var(--nih-dark-surface); border: 1px solid var(--nih-dark-surface-alt);
  display: flex; align-items: center; justify-content: center; color: #fff;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.footer-socials a:hover { color: var(--nih-accent); border-color: var(--nih-accent); }
.footer-socials svg { width: 1rem; height: 1rem; }

.footer-col-links { min-width: 0; }
@media (min-width: 768px) { .footer-col-links { grid-column: span 4; } }
.footer-links-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; font-size: 0.85rem; color: #d1d1d1; }
.footer-links-grid h4 { font-family: var(--nih-font-heading); font-weight: 700; font-size: 1rem; color: #fff; margin-bottom: 0.9rem; }
.footer-links-grid ul { display: flex; flex-direction: column; gap: 0.65rem; }
.footer-links-grid a:hover { color: var(--nih-accent); }

.footer-col-extra { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
@media (min-width: 768px) { .footer-col-extra { grid-column: span 4; } }
.footer-col-extra h4 { font-family: var(--nih-font-heading); font-weight: 700; font-size: 1rem; color: #fff; }
.footer-col-extra p { font-size: 0.85rem; color: rgba(255,255,255,0.9); line-height: 1.6; max-width: 26rem; }

.newsletter-form { display: flex; align-items: center; border-radius: var(--nih-radius-sm); overflow: hidden; background: #fff; padding: 0.25rem; border: 1px solid var(--nih-dark-surface-alt); }
.newsletter-form input { flex: 1; min-width: 0; padding: 0.55rem 0.75rem; font-size: 0.75rem; color: var(--nih-ink); background: transparent; outline: 0; }
.newsletter-form button {
  background: var(--nih-accent); color: #fff; padding: 0.55rem 1rem; border-radius: 8px;
  font-size: 0.75rem; font-weight: 600; display: inline-flex; align-items: center; gap: 0.3rem; white-space: nowrap;
  transition: background 0.2s ease;
}
.newsletter-form button:hover { background: var(--nih-accent-hover); }
.newsletter-success {
  background: var(--nih-dark-surface); border: 1px solid rgba(200,164,93,0.4); color: var(--nih-accent);
  padding: 0.75rem; border-radius: var(--nih-radius-sm); font-size: 0.8rem;
}

.trustpilot-badge { display: flex; align-items: center; gap: 0.5rem; padding-top: 0.5rem; }
.trustpilot-badge .tp-name { font-size: 0.9rem; font-weight: 700; color: #fff; display: flex; align-items: center; gap: 0.3rem; }
.trustpilot-badge .tp-name svg { width: 1rem; height: 1rem; color: #00b67a; fill: #00b67a; }
.trustpilot-badge .tp-stars { display: flex; align-items: center; gap: 0.15rem; }
.trustpilot-badge .tp-star { width: 1rem; height: 1rem; background: #00b67a; border-radius: 2px; display: flex; align-items: center; justify-content: center; }
.trustpilot-badge .tp-star svg { width: 0.7rem; height: 0.7rem; color: #fff; fill: #fff; }

.footer-bottom {
  padding-top: 2rem; display: flex; flex-direction: column; align-items: center; justify-content: space-between;
  gap: 0.75rem; font-size: 0.75rem; color: rgba(255,255,255,0.8);
}
@media (min-width: 640px) { .footer-bottom { flex-direction: row; } }

/* ==========================================================================
   Buttons / badges
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  border-radius: var(--nih-radius-pill); font-weight: 700; font-size: 0.85rem;
  padding: 0.85rem 1.75rem; background: var(--nih-ink); color: #fff;
  transition: background 0.2s ease, transform 0.15s ease;
}
.btn:hover { background: var(--nih-accent); }
.badge {
  display: inline-flex; align-items: center; font-size: 0.68rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; padding: 0.3rem 0.75rem;
  border-radius: var(--nih-radius-pill); background: var(--nih-accent); color: #fff;
}
.badge--tint { background: rgba(200,164,93,0.15); color: var(--nih-accent); }

/* ==========================================================================
   Breadcrumb
   ========================================================================== */
.breadcrumb {
  display: flex; align-items: center; flex-wrap: wrap; gap: 0.5rem; font-size: 0.75rem;
  font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em;
}
.breadcrumb a { display: inline-flex; align-items: center; gap: 0.35rem; }
.breadcrumb a:hover { color: var(--nih-accent); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--nih-accent); }

/* ==========================================================================
   Category hero
   ========================================================================== */
.category-hero {
  position: relative; background: var(--nih-ink); color: #fff; overflow: hidden;
  border-bottom: 1px solid var(--nih-dark-border);
}
.category-hero__bg { position: absolute; inset: 0; z-index: 0; opacity: 0.25; }
.category-hero__bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px); transform: scale(1.05); }
.category-hero__scrim { position: absolute; inset: 0; background: linear-gradient(to top, var(--nih-ink), rgba(23,23,23,0.8), transparent); }
.category-hero__inner { position: relative; z-index: 1; padding: 2.5rem 0; }
@media (min-width: 640px) { .category-hero__inner { padding: 4rem 0; } }
.category-hero .breadcrumb { color: #9ca3af; margin-bottom: 1.5rem; }
.category-hero .breadcrumb .current { color: var(--nih-accent); }
.category-hero h1 { font-size: 2rem; font-weight: 700; color: #fff; max-width: 48rem; }
@media (min-width: 640px) { .category-hero h1 { font-size: 2.5rem; } }
@media (min-width: 1024px) { .category-hero h1 { font-size: 3rem; } }
.category-hero p { margin-top: 1rem; font-size: 0.95rem; color: #d1d5db; line-height: 1.7; max-width: 42rem; }

/* ==========================================================================
   Content grid (category / archive)
   ========================================================================== */
.content-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; padding-block: 2.5rem 4rem; }
@media (min-width: 1024px) { .content-layout { grid-template-columns: 2fr 1fr; gap: 3rem; } }
.content-main { display: flex; flex-direction: column; gap: 2.5rem; min-width: 0; }
.content-sidebar { display: flex; flex-direction: column; gap: 2rem; }
@media (min-width: 1024px) { .content-sidebar { position: sticky; top: 6rem; align-self: start; } }

/* Featured lead card */
.featured-card {
  display: flex; flex-direction: column; background: var(--nih-surface); border: 1px solid var(--nih-border);
  border-radius: var(--nih-radius-lg); overflow: hidden; box-shadow: var(--nih-shadow-xs);
  transition: box-shadow 0.25s ease;
}
.featured-card:hover { box-shadow: var(--nih-shadow-md); }
@media (min-width: 768px) { .featured-card { flex-direction: row; } }
.featured-card__media { position: relative; flex-shrink: 0; height: 16rem; background: #f1f1ef; overflow: hidden; }
@media (min-width: 768px) { .featured-card__media { width: 50%; height: auto; } }
.featured-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.featured-card:hover .featured-card__media img { transform: scale(1.05); }
.featured-card__badge { position: absolute; top: 1rem; left: 1rem; }
.featured-card__body { padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 1rem; }
@media (min-width: 640px) { .featured-card__body { padding: 2rem; } }
.featured-card__body h2 { font-size: 1.25rem; font-weight: 700; line-height: 1.3; }
@media (min-width: 640px) { .featured-card__body h2 { font-size: 1.5rem; } }
.featured-card__body h2 a:hover { color: var(--nih-accent); }
.featured-card__excerpt { font-size: 0.85rem; color: #57534e; line-height: 1.6; margin-top: 0.75rem; }
.featured-card__meta {
  display: flex; align-items: center; justify-content: space-between; padding-top: 1rem;
  border-top: 1px solid var(--nih-border-soft);
}
.author-chip { display: flex; align-items: center; gap: 0.6rem; }
.author-chip img, .author-chip .letter {
  width: 1.75rem; height: 1.75rem !important; border-radius: 50% !important; object-fit: cover; flex-shrink: 0;
}
.author-chip .letter { background: var(--nih-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.7rem; }
.author-chip span { font-size: 0.75rem; font-weight: 700; }
.read-link { display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.75rem; font-weight: 700; color: var(--nih-accent); }
.read-link:hover { text-decoration: underline; }

/* Post card grid */
.post-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .post-grid { grid-template-columns: 1fr 1fr; gap: 2rem; } }
.post-card {
  display: flex; flex-direction: column; background: var(--nih-surface); border: 1px solid var(--nih-border);
  border-radius: var(--nih-radius-md); overflow: hidden; box-shadow: var(--nih-shadow-xs);
  transition: box-shadow 0.25s ease;
}
.post-card:hover { box-shadow: var(--nih-shadow-md); }
.post-card__media { position: relative; height: 12rem; overflow: hidden; background: #f1f1ef; }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.post-card:hover .post-card__media img { transform: scale(1.05); }
.post-card__body { padding: 1.25rem; display: flex; flex-direction: column; justify-content: space-between; flex: 1; gap: 0.65rem; }
.post-card__cat { font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nih-accent); }
.post-card__body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; margin-top: 10px; margin-bottom: 20px; }
.post-card__body h3 a:hover { color: var(--nih-accent); }
.post-card__excerpt { font-size: 0.78rem; color: #57534e; line-height: 1.55; }
.post-card__meta {
  display: flex; align-items: center; justify-content: space-between; padding-top: 0.75rem;
  border-top: 1px solid var(--nih-border-soft); font-size: 0.72rem; color: #78716c;
}
.post-card__meta .read-link { color: var(--nih-ink); }
.post-card:hover .post-card__meta .read-link { color: var(--nih-accent); }

/* Sidebar widgets */
.widget {
  background: var(--nih-surface); border: 1px solid var(--nih-border); border-radius: var(--nih-radius-lg);
  padding: 1.5rem; box-shadow: var(--nih-shadow-xs); display: flex; flex-direction: column; gap: 1rem;
}
.widget__title {
  font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em;
  display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.65rem; border-bottom: 1px solid var(--nih-border);
}
.widget__title svg { width: 0.9rem; height: 0.9rem; color: var(--nih-accent); }
.widget-catlist { display: flex; flex-direction: column; gap: 0.4rem; }
.widget-catlist a {
  display: flex; align-items: center; justify-content: space-between; padding: 0.6rem;
  border-radius: var(--nih-radius-sm); transition: background 0.2s ease;
}
.widget-catlist a:hover { background: var(--nih-bg); }
.widget-catlist a .dotname { display: flex; align-items: center; gap: 0.65rem; }
.widget-catlist a .dot { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--nih-accent); flex-shrink: 0; }
.widget-catlist a span.name { font-size: 0.75rem; font-weight: 700; }
.widget-catlist a:hover span.name { color: var(--nih-accent); }
.widget-catlist a svg { width: 0.9rem; height: 0.9rem; color: #a8a29e; }
.widget-catlist a:hover svg { color: var(--nih-accent); }

.widget-mini-list { display: flex; flex-direction: column; gap: 0.9rem; }
.widget-mini-item { display: flex; gap: 0.75rem; }
.widget-mini-item img { width: 3.5rem; height: 3.5rem !important; border-radius: var(--nih-radius-sm) !important; object-fit: cover; flex-shrink: 0; }
.widget-mini-item .cat { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; color: var(--nih-accent); }
.widget-mini-item h4 { font-size: 0.78rem; font-weight: 700; line-height: 1.35; margin-top: 0.15rem; }
.widget-mini-item h4 a:hover { color: var(--nih-accent); }

.pill-list { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.pill-list a {
  padding: 0.35rem 0.75rem; border-radius: var(--nih-radius-pill); font-size: 0.72rem; font-weight: 600;
  background: var(--nih-bg); border: 1px solid var(--nih-border); color: #44403c;
  transition: background 0.2s ease, color 0.2s ease;
}
.pill-list a:hover { background: var(--nih-accent); color: #fff; border-color: var(--nih-accent); }

/* ==========================================================================
   Single post
   ========================================================================== */
.single-topbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--nih-border); margin-bottom: 2rem; }
.single-layout { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .single-layout { grid-template-columns: 2fr 1fr; gap: 3rem; } }

.single-article { display: flex; flex-direction: column; gap: 2rem; min-width: 0; }
.single-header { display: flex; flex-direction: column; gap: 1rem; }
.single-header h1 { font-size: 1.65rem; font-weight: 900; line-height: 1.25; }
@media (min-width: 640px) { .single-header h1 { font-size: 2rem; } }
@media (min-width: 1024px) { .single-header h1 { font-size: 2.5rem; } }
.single-author-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 0; border-top: 1px solid var(--nih-border); border-bottom: 1px solid var(--nih-border);
}
.single-author-bar .author-chip img, .single-author-bar .author-chip .letter { width: 2.75rem; height: 2.75rem; border: 2px solid var(--nih-bg); font-size: 0.85rem; }
.single-author-bar .author-chip h3 { font-size: 0.78rem; font-weight: 700; }

.single-featured-media { aspect-ratio: 16 / 10; border-radius: var(--nih-radius-lg); overflow: hidden; border: 1px solid var(--nih-border); box-shadow: var(--nih-shadow-xs); background: #f1f1ef; }
.single-featured-media img { width: 100%; height: 100%; object-fit: cover; }

.single-body {
  background: var(--nih-surface); border: 1px solid var(--nih-border); border-radius: var(--nih-radius-lg);
  padding: 1.5rem; box-shadow: var(--nih-shadow-xs); font-size: 1rem; line-height: 1.8; color: var(--nih-ink);
  display: flex; flex-direction: column; gap: 1.25rem;
}
@media (min-width: 640px) { .single-body { padding: 2.5rem; font-size: 1.05rem; } }
.single-body p { margin: 0; }
.single-body .lead {
  font-family: var(--nih-font-heading); font-style: italic; font-size: 1.15rem; line-height: 1.5;
  border-left: 4px solid var(--nih-accent); padding-left: 1rem;
}
@media (min-width: 640px) { .single-body .lead { font-size: 1.3rem; } }
.single-body h2 { font-size: 1.3rem; font-weight: 900; padding-top: 0.5rem; }
@media (min-width: 640px) { .single-body h2 { font-size: 1.55rem; } }
.single-body figure { margin: 0.5rem 0 1rem; }
.single-body figure img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--nih-radius-md); border: 1px solid var(--nih-border); box-shadow: var(--nih-shadow-xs); }
.single-body figcaption { font-size: 0.75rem; color: var(--nih-muted); margin-top: 0.5rem; text-align: center; }
.single-body blockquote {
  background: var(--nih-bg); padding: 1.5rem; border-radius: var(--nih-radius-md); border-left: 4px solid var(--nih-accent);
  margin: 0.5rem 0; display: flex; flex-direction: column; gap: 0.25rem;
}
.single-body blockquote p:first-child { font-family: var(--nih-font-heading); font-weight: 700; font-size: 1.05rem; }
.single-body blockquote cite { font-size: 0.72rem; font-weight: 700; color: var(--nih-accent); font-style: normal; }

.author-box {
  background: var(--nih-surface); border: 1px solid var(--nih-border); border-radius: var(--nih-radius-lg);
  padding: 1.5rem; box-shadow: var(--nih-shadow-xs); display: flex; flex-direction: column; align-items: center;
  text-align: center; gap: 1.25rem;
}
@media (min-width: 640px) { .author-box { flex-direction: row; align-items: flex-start; text-align: left; padding: 2rem; } }
.author-box img, .author-box .letter { width: 3.5rem; height: 3.5rem; border-radius: var(--nih-radius-sm); object-fit: cover; flex-shrink: 0; font-size: 1.1rem; }
.author-box h3 { font-size: 1rem; font-weight: 700; }
.author-box p { font-size: 0.85rem; color: #555; line-height: 1.6; margin-top: 0.4rem; }

.related-section { padding-top: 0.5rem; }
.related-header { display: flex; align-items: center; justify-content: space-between; padding-bottom: 0.5rem; border-bottom: 1px solid var(--nih-border); margin-bottom: 1rem; }
.related-header h3 { font-size: 1.15rem; font-weight: 900; }
.related-header a { font-size: 0.75rem; font-weight: 700; color: var(--nih-accent); }
.related-header a:hover { text-decoration: underline; }
.related-grid { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 640px) { .related-grid { grid-template-columns: repeat(3, 1fr); } }
.related-card { display: flex; flex-direction: column; background: var(--nih-surface); border: 1px solid var(--nih-border); border-radius: var(--nih-radius-md); overflow: hidden; box-shadow: var(--nih-shadow-xs); transition: box-shadow 0.2s ease; }
.related-card:hover { box-shadow: var(--nih-shadow-md); }
.related-card__media { height: 8rem; overflow: hidden; background: #f1f1ef; }
.related-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.related-card:hover .related-card__media img { transform: scale(1.05); }
.related-card__body { padding: 0.9rem; display: flex; flex-direction: column; gap: 0.4rem; flex: 1; justify-content: space-between; }
.related-card__body h4 { font-size: 0.75rem; font-weight: 700; line-height: 1.35; }
.related-card__body h4 a:hover { color: var(--nih-accent); }
.related-card__foot { display: flex; align-items: center; justify-content: flex-end; font-size: 0.62rem; padding-top: 0.5rem; border-top: 1px solid var(--nih-border-soft); }
.related-card__foot span { font-weight: 700; color: var(--nih-accent); }

/* ==========================================================================
   Contact page
   ========================================================================== */
.page-header { text-align: center; max-width: 42rem; margin: 0 auto; padding: 2.5rem 0 0; display: flex; flex-direction: column; gap: 1rem; }
.page-header h1 { font-size: 2rem; font-weight: 700; }
@media (min-width: 640px) { .page-header h1 { font-size: 3rem; } }
.page-header p { font-size: 1rem; color: #57534e; line-height: 1.7; }
@media (min-width: 640px) { .page-header p { font-size: 1.1rem; } }
.page-header h1 span { font-style: italic; color: var(--nih-accent); }

.contact-layout { display: grid; grid-template-columns: 1fr; gap: 2.5rem; align-items: stretch; padding: 2.5rem 0 5rem; }
@media (min-width: 1024px) { .contact-layout { grid-template-columns: 5fr 7fr; gap: 3rem; } }
.contact-media {
  background: var(--nih-surface); border: 1px solid var(--nih-border); border-radius: var(--nih-radius-lg);
  padding: 1rem; box-shadow: var(--nih-shadow-xs); display: flex; flex-direction: column; justify-content: center;
}
.contact-media__frame { min-height: 22rem; border-radius: var(--nih-radius-md); overflow: hidden; border: 1px solid var(--nih-border); box-shadow: var(--nih-shadow-xs); }
.contact-media__frame img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 640px) { .contact-media__frame { min-height: 30rem; } }

.contact-panel {
  background: var(--nih-surface); border: 1px solid var(--nih-border); border-radius: var(--nih-radius-lg);
  padding: 2rem; box-shadow: var(--nih-shadow-xs); display: flex; flex-direction: column; justify-content: center;
}
@media (min-width: 640px) { .contact-panel { padding: 3rem; } }

.contact-form { display: flex; flex-direction: column; gap: 1.5rem; }
.form-field label { display: block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.5rem; }
.form-field label .req { color: var(--nih-accent); }
.form-field input, .form-field textarea {
  width: 100%; padding: 0.9rem 1rem; border-radius: var(--nih-radius-md); border: 1px solid var(--nih-border);
  font-size: 0.9rem; color: var(--nih-ink); background: rgba(250,248,243,0.6); outline: none;
  transition: box-shadow 0.15s ease;
}
.form-field input::placeholder, .form-field textarea::placeholder { color: #a8a29e; }
.form-field input:focus, .form-field textarea:focus { box-shadow: 0 0 0 2px var(--nih-accent); }
.form-field textarea { resize: vertical; line-height: 1.6; }
.contact-submit {
  align-self: flex-start; padding: 1rem 2.25rem; border-radius: var(--nih-radius-pill); background: var(--nih-ink);
  color: #fff; font-size: 0.85rem; font-weight: 700; display: inline-flex; align-items: center; gap: 0.5rem;
  transition: background 0.2s ease;
}
.contact-submit:hover { background: var(--nih-accent); }

.form-success {
  background: #ecfdf5; border: 1px solid #a7f3d0; border-radius: var(--nih-radius-lg); padding: 2rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
}
.form-success svg { width: 3rem; height: 3rem; color: #059669; }
.form-success h3 { font-size: 1.25rem; font-weight: 700; }
.form-success p { font-size: 0.85rem; color: #57534e; max-width: 26rem; line-height: 1.6; }
.form-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: var(--nih-radius-md); padding: 1rem; font-size: 0.85rem; }

/* ==========================================================================
   Legal pages
   ========================================================================== */
.legal-wrap { max-width: 56rem; margin: 0 auto; padding: 2.5rem 1rem 5rem; display: flex; flex-direction: column; gap: 2.5rem; }
.legal-topbar { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-bottom: 1.5rem; border-bottom: 1px solid var(--nih-border); }
.legal-topbar a { display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; font-weight: 700; }
.legal-topbar a:hover { color: var(--nih-accent); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.legal-tabs a {
  padding: 0.5rem 1.1rem; border-radius: var(--nih-radius-pill); font-size: 0.75rem; font-weight: 700;
  border: 1px solid var(--nih-border); color: #44403c; transition: all 0.2s ease;
}
.legal-tabs a:hover { border-color: var(--nih-accent); color: var(--nih-accent); }
.legal-tabs a.is-active { background: var(--nih-ink); color: #fff; border-color: var(--nih-ink); }
.legal-header h1 { font-size: 1.85rem; font-weight: 700; }
@media (min-width: 640px) { .legal-header h1 { font-size: 2.25rem; } }
.legal-header p { font-size: 0.85rem; color: var(--nih-muted); max-width: 42rem; line-height: 1.6; margin-top: 0.5rem; }
.legal-content {
  background: var(--nih-surface); border: 1px solid var(--nih-border); border-radius: var(--nih-radius-lg);
  padding: 1.75rem; box-shadow: var(--nih-shadow-xs); display: flex; flex-direction: column; gap: 1.75rem;
}
@media (min-width: 640px) { .legal-content { padding: 3rem; } }
.legal-section { padding-bottom: 1.5rem; border-bottom: 1px solid rgba(229,226,220,0.7); display: flex; flex-direction: column; gap: 0.6rem; }
.legal-section:last-child { border-bottom: 0; padding-bottom: 0; }
.legal-section h2 { font-size: 1.05rem; font-weight: 700; display: flex; align-items: center; gap: 0.6rem; }
@media (min-width: 640px) { .legal-section h2 { font-size: 1.2rem; } }
.legal-section h2::before { content: ''; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--nih-accent); flex-shrink: 0; }
.legal-section p { font-size: 0.9rem; color: #44403c; line-height: 1.7; padding-left: 1.15rem; }

/* ==========================================================================
   About Story (Elementor widget)
   ========================================================================== */
.about-story { display: flex; flex-direction: column; gap: 3.5rem; max-width: 64rem; margin: 0 auto; padding: 2.5rem 1rem 5rem; }
.about-hero { text-align: center; max-width: 42rem; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; }
.about-hero h1 { font-size: 2rem; font-weight: 700; }
@media (min-width: 640px) { .about-hero h1 { font-size: 3rem; } }
.about-hero p { font-size: 1rem; color: #57534e; line-height: 1.7; }
@media (min-width: 640px) { .about-hero p { font-size: 1.1rem; } }

.about-image-card {
  background: var(--nih-surface); border: 1px solid var(--nih-border); border-radius: var(--nih-radius-lg);
  padding: 0.75rem; box-shadow: var(--nih-shadow-xs);
}
.about-image-card__frame { position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; border-radius: var(--nih-radius-md); }
@media (min-width: 640px) { .about-image-card__frame { aspect-ratio: 21 / 9; } }
.about-image-card__frame img { width: 100%; height: 100% !important; object-fit: cover; object-position: center; }

.about-narrative {
  background: var(--nih-surface); border: 1px solid var(--nih-border); border-radius: var(--nih-radius-lg);
  padding: 2rem; box-shadow: var(--nih-shadow-xs); display: flex; flex-direction: column; gap: 2rem;
}
@media (min-width: 640px) { .about-narrative { padding: 3.5rem; } }
.about-narrative__section { display: flex; flex-direction: column; gap: 0.75rem; }
.about-narrative__section:not(:first-child) { padding-top: 2rem; border-top: 1px solid rgba(229,226,220,0.7); }
.about-narrative__eyebrow { display: inline-block; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nih-accent); }
.about-narrative__section p { font-size: 1rem; color: #44403c; line-height: 1.75; }
@media (min-width: 640px) { .about-narrative__section p { font-size: 1.05rem; } }

/* ==========================================================================
   Homepage widgets — shared bits
   ========================================================================== */
.nih-section-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-bottom: 1rem; border-bottom: 1px solid var(--nih-border); margin-bottom: 2rem;
}
.nih-section-header h2 { font-size: 1.5rem; font-weight: 700; }
@media (min-width: 640px) { .nih-section-header h2 { font-size: 2rem; } }
@media (min-width: 1024px) { .nih-section-header h2 { font-size: 2.25rem; } }
.nih-section-header--dark { border-bottom-color: var(--nih-dark-border); }
.nih-section-header--dark h2 { color: #fff; }

.nih-pill-btn {
  display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 1.1rem;
  border-radius: var(--nih-radius-pill); border: 1px solid var(--nih-border); background: #fff;
  font-size: 0.75rem; font-weight: 700; color: var(--nih-ink); box-shadow: var(--nih-shadow-xs);
  transition: color 0.2s ease, border-color 0.2s ease; white-space: nowrap;
}
.nih-pill-btn:hover { color: var(--nih-accent); border-color: var(--nih-accent); }
.nih-pill-btn--ghost { background: transparent; border-color: rgba(200,164,93,0.4); color: #fff; }
.nih-pill-btn--ghost:hover { background: var(--nih-accent); color: var(--nih-ink); border-color: var(--nih-accent); }

.badge--light { background: #fff; color: var(--nih-ink); }
.badge--sm { padding: 0.2rem 0.6rem; font-size: 0.6rem; }

/* ==========================================================================
   Hero Banner
   ========================================================================== */
.nih-hero-banner { position: relative; width: 100%; overflow: hidden; }
.nih-hero-banner__viewport { position: relative; min-height: 30rem; }
@media (min-width: 640px) { .nih-hero-banner__viewport { min-height: 34rem; } }
@media (min-width: 1024px) { .nih-hero-banner__viewport { min-height: 37.5rem; } }
.nih-hero-banner__slide {
  position: absolute; inset: 0; display: none; align-items: center; justify-content: center;
}
.nih-hero-banner__slide.is-active { display: flex; }
.nih-hero-banner__bg { position: absolute; inset: 0; z-index: 0; }
.nih-hero-banner__bg img { width: 100%; height: 100% !important; object-fit: cover; filter: brightness(0.75) contrast(1.1); }
.nih-hero-banner__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.8), rgba(0,0,0,0.5) 60%, rgba(0,0,0,0.3)); }
.nih-hero-banner__content {
  position: relative; z-index: 1; max-width: 56rem; margin: 0 auto; padding: 4rem 1.5rem;
  text-align: center; display: flex; flex-direction: column; align-items: center;
}
@media (min-width: 640px) { .nih-hero-banner__content { padding: 6rem 3rem; } }
.nih-hero-banner__content h1 { font-size: 1.5rem; font-weight: 700; color: #fff; line-height: 1.2; max-width: 48rem; text-shadow: 0 2px 8px rgba(0,0,0,0.3); }
@media (min-width: 640px) { .nih-hero-banner__content h1 { font-size: 2.25rem; } }
@media (min-width: 1024px) { .nih-hero-banner__content h1 { font-size: 3rem; } }
.nih-hero-banner__content p { margin-top: 1rem; font-size: 0.9rem; color: #fff; line-height: 1.7; max-width: 40rem; }
@media (min-width: 640px) { .nih-hero-banner__content p { margin-top: 1.5rem; font-size: 1.05rem; } }
.nih-hero-banner__cta {
  margin-top: 1.5rem; display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.85rem 1.75rem; border-radius: var(--nih-radius-pill); font-size: 0.85rem; font-weight: 700;
  background: var(--nih-accent); color: #fff; box-shadow: var(--nih-shadow-md); transition: transform 0.2s ease, background 0.2s ease;
}
@media (min-width: 640px) { .nih-hero-banner__cta { margin-top: 2rem; } }
.nih-hero-banner__cta:hover { background: var(--nih-accent-hover); transform: scale(1.05); }
.nih-hero-banner__nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 2.5rem; height: 2.5rem; border-radius: 50%; background: rgba(255,255,255,0.9);
  color: var(--nih-ink); box-shadow: var(--nih-shadow-md); display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease;
}
@media (min-width: 640px) { .nih-hero-banner__nav { width: 3rem; height: 3rem; } }
.nih-hero-banner__nav:hover { background: #fff; }
.nih-hero-banner__nav--prev { left: 1rem; }
.nih-hero-banner__nav--next { right: 1rem; }
@media (min-width: 640px) { .nih-hero-banner__nav--prev { left: 2rem; } .nih-hero-banner__nav--next { right: 2rem; } }

/* ==========================================================================
   Curated Teaser Strip
   ========================================================================== */
.nih-teaser-strip { max-width: var(--nih-container); margin: 0 auto; padding: 2rem 1rem 0; position: relative; z-index: 20; }
@media (min-width: 640px) { .nih-teaser-strip { padding: 2.5rem 1.5rem 0; } }
@media (min-width: 1024px) { .nih-teaser-strip { padding: 3rem 2rem 0; } }
.nih-teaser-strip__grid { display: grid; grid-template-columns: 1fr; gap: 1.25rem; }
@media (min-width: 640px) { .nih-teaser-strip__grid { grid-template-columns: 1fr 1fr; gap: 1.5rem; } }
@media (min-width: 1024px) { .nih-teaser-strip__grid { grid-template-columns: repeat(4, 1fr); } }
.nih-teaser-card {
  position: relative; border-radius: var(--nih-radius-md); overflow: hidden; box-shadow: var(--nih-shadow-md);
  min-height: 14rem; display: flex; flex-direction: column; justify-content: flex-end; padding: 1.25rem;
  transition: box-shadow 0.25s ease;
}
.nih-teaser-card:hover { box-shadow: 0 12px 32px rgba(23,23,23,0.18); }
.nih-teaser-card img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.5s ease; }
.nih-teaser-card:hover img { transform: scale(1.05); }
.nih-teaser-card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4) 55%, transparent); }
.nih-teaser-card__body { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 0.35rem; }
.nih-teaser-card__cat { font-size: 0.62rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nih-accent); }
.nih-teaser-card__body h4 { font-size: 0.9rem; font-weight: 700; color: #fff; line-height: 1.35; }
.nih-teaser-card:hover .nih-teaser-card__body h4 { color: var(--nih-accent); }
.nih-teaser-card__read { display: flex; align-items: center; gap: 0.25rem; font-size: 0.72rem; font-weight: 600; color: rgba(255,255,255,0.9); }
.nih-teaser-card:hover .nih-teaser-card__read { color: var(--nih-accent); }

/* ==========================================================================
   Category Bento (featured + list)
   ========================================================================== */
.nih-category-bento { max-width: var(--nih-container); margin: 0 auto; padding: 2rem 1rem; }
@media (min-width: 640px) { .nih-category-bento { padding: 2.5rem 1.5rem; } }
@media (min-width: 1024px) { .nih-category-bento { padding: 3rem 2rem; } }
.nih-category-bento__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: stretch; }
@media (min-width: 1024px) { .nih-category-bento__grid { grid-template-columns: 7fr 5fr; } }

.nih-bento-featured {
  display: flex; flex-direction: column; background: var(--nih-surface); border: 1px solid var(--nih-border);
  border-radius: var(--nih-radius-lg); overflow: hidden; box-shadow: var(--nih-shadow-xs); transition: box-shadow 0.25s ease;
}
.nih-bento-featured:hover { box-shadow: var(--nih-shadow-md); }
.nih-bento-featured__media { position: relative; aspect-ratio: 16/10; overflow: hidden; background: #f1f1ef; }
.nih-bento-featured__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.5s ease; }
.nih-bento-featured:hover .nih-bento-featured__media img { transform: scale(1.03); }
.nih-bento-featured__media .badge { position: absolute; top: 1rem; left: 1rem; }
.nih-bento-featured__body { padding: 1.75rem; display: flex; flex-direction: column; justify-content: space-between; gap: 1.5rem; flex: 1; }
@media (min-width: 640px) { .nih-bento-featured__body { padding: 2.25rem; } }
.nih-bento-featured__body h3 { font-size: 1.4rem; font-weight: 700; line-height: 1.3; }
@media (min-width: 1024px) { .nih-bento-featured__body h3 { font-size: 1.7rem; } }
.nih-bento-featured:hover .nih-bento-featured__body h3 { color: var(--nih-accent); }
.nih-bento-featured__body p { margin-top: 1rem; font-size: 0.9rem; color: #57534e; line-height: 1.6; }
.nih-bento-featured__meta { display: flex; align-items: center; justify-content: space-between; padding-top: 1rem; border-top: 1px solid rgba(229,226,220,0.8); }

.nih-bento-list { display: flex; flex-direction: column; gap: 1.5rem; }
.nih-bento-list__card {
  display: flex; flex-direction: column; background: var(--nih-surface); border: 1px solid var(--nih-border);
  border-radius: var(--nih-radius-lg); overflow: hidden; box-shadow: var(--nih-shadow-xs); transition: box-shadow 0.25s ease;
}
.nih-bento-list__card:hover { box-shadow: var(--nih-shadow-md); }
.nih-bento-list__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #f1f1ef; }
.nih-bento-list__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.5s ease; }
.nih-bento-list__card:hover .nih-bento-list__media img { transform: scale(1.03); }
.nih-bento-list__media .badge { position: absolute; top: 0.85rem; left: 0.85rem; padding: 0.15rem 0.7rem; }
.nih-bento-list__body { padding: 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.nih-bento-list__body h3 { font-size: 1rem; font-weight: 700; line-height: 1.35; }
@media (min-width: 640px) { .nih-bento-list__body h3 { font-size: 1.1rem; } }
.nih-bento-list__card:hover .nih-bento-list__body h3 { color: var(--nih-accent); }
.nih-bento-list__body p { font-size: 0.75rem; color: #57534e; line-height: 1.5; }
.nih-bento-list__author { display: flex; align-items: center; gap: 0.5rem; padding-top: 0.35rem; font-size: 0.75rem; font-weight: 600; color: var(--nih-ink); }
.nih-bento-list__author img, .nih-bento-list__author .letter { width: 1.25rem; height: 1.25rem !important; border-radius: 50% !important; object-fit: cover; flex-shrink: 0; }
.nih-bento-list__author .letter { background: var(--nih-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.6rem; }

/* ==========================================================================
   Brand / Partner Logo Slider
   ========================================================================== */
.nih-brand-slider { padding: 1.5rem 0; border-top: 1px solid var(--nih-border); border-bottom: 1px solid var(--nih-border); background: var(--nih-bg); margin: 1.5rem 0; overflow: hidden; }
.nih-brand-slider__viewport { max-width: var(--nih-container); margin: 0 auto; padding: 0 1rem; display: flex; align-items: center; gap: 0.75rem; }
@media (min-width: 640px) { .nih-brand-slider__viewport { padding: 0 1.5rem; } }
.nih-brand-slider__nav {
  flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; background: #fff; border: 1px solid var(--nih-border);
  box-shadow: var(--nih-shadow-xs); display: flex; align-items: center; justify-content: center; color: var(--nih-ink);
  transition: color 0.2s ease, border-color 0.2s ease;
}
.nih-brand-slider__nav:hover { color: var(--nih-accent); border-color: var(--nih-accent); }
.nih-brand-slider__track { display: flex; align-items: center; gap: 2.5rem; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; padding: 0.5rem 0; }
.nih-brand-slider__track::-webkit-scrollbar { display: none; }
.nih-brand-slider__item { flex-shrink: 0; color: rgba(23,23,23,0.75); opacity: 0.8; transition: opacity 0.3s ease, color 0.3s ease; }
.nih-brand-slider__item:hover { opacity: 1; color: var(--nih-ink); }
.nih-brand-slider__item img { height: 1.75rem !important; width: auto; object-fit: contain; }
.nih-brand-slider__item span { font-family: var(--nih-font-heading); font-weight: 700; font-size: 1.1rem; letter-spacing: 0.02em; white-space: nowrap; }

/* ==========================================================================
   Article List + Sidebar (Beauty Corner)
   ========================================================================== */
.nih-article-sidebar-section { max-width: var(--nih-container); margin: 0 auto; padding: 2rem 1rem; }
@media (min-width: 640px) { .nih-article-sidebar-section { padding: 2.5rem 1.5rem; } }
@media (min-width: 1024px) { .nih-article-sidebar-section { padding: 3rem 2rem; } }
.nih-article-sidebar-section__grid { display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: start; }
@media (min-width: 1024px) { .nih-article-sidebar-section__grid { grid-template-columns: 8fr 4fr; gap: 2.5rem; } }

.nih-article-list { display: flex; flex-direction: column; gap: 2rem; }
.nih-article-card {
  display: block; background: var(--nih-surface); border: 1px solid var(--nih-border); border-radius: var(--nih-radius-lg);
  overflow: hidden; box-shadow: var(--nih-shadow-xs); transition: box-shadow 0.25s ease;
}
.nih-article-card:hover { box-shadow: var(--nih-shadow-md); }
.nih-article-card__media { position: relative; aspect-ratio: 16/9; overflow: hidden; background: #f1f1ef; }
.nih-article-card__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.5s ease; }
.nih-article-card:hover .nih-article-card__media img { transform: scale(1.03); }
.nih-article-card__media .badge { position: absolute; top: 1rem; left: 1rem; }
.nih-article-card__arrow {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
}
.nih-article-card__arrow svg { width: 3rem; height: 3rem; padding: 0.85rem; border-radius: 50%; background: rgba(255,255,255,0.95); color: var(--nih-ink); box-shadow: var(--nih-shadow-md); transition: transform 0.2s ease; }
.nih-article-card:hover .nih-article-card__arrow svg { transform: scale(1.1); }
.nih-article-card__body { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.75rem; }
@media (min-width: 640px) { .nih-article-card__body { padding: 2rem; } }
.nih-article-card__body h3 { font-size: 1.15rem; font-weight: 700; line-height: 1.35; }
@media (min-width: 640px) { .nih-article-card__body h3 { font-size: 1.35rem; } }
.nih-article-card:hover .nih-article-card__body h3 { color: var(--nih-accent); }
.nih-article-card__body p { font-size: 0.8rem; color: #57534e; line-height: 1.6; }
@media (min-width: 640px) { .nih-article-card__body p { font-size: 0.85rem; } }
.nih-article-card__author { display: flex; align-items: center; gap: 0.5rem; padding-top: 0.5rem; font-size: 0.75rem; font-weight: 600; color: var(--nih-ink); }
.nih-article-card__author img, .nih-article-card__author .letter { width: 1.5rem; height: 1.5rem !important; border-radius: 50% !important; object-fit: cover; flex-shrink: 0; }
.nih-article-card__author .letter { background: var(--nih-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.68rem; }

.nih-article-sidebar { display: flex; flex-direction: column; gap: 2rem; position: sticky; top: 6rem; }
.nih-widget-title { font-family: var(--nih-font-heading); font-size: 1.05rem; font-weight: 700; padding-bottom: 0.75rem; border-bottom: 1px solid var(--nih-border); margin-bottom: 1rem; }
.nih-cat-mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.nih-cat-mosaic__item { position: relative; aspect-ratio: 4/3; border-radius: var(--nih-radius-sm); overflow: hidden; box-shadow: var(--nih-shadow-xs); display: block; }
.nih-cat-mosaic__item img { width: 100%; height: 100% !important; object-fit: cover; filter: brightness(0.85); transition: transform 0.5s ease; }
.nih-cat-mosaic__item:hover img { transform: scale(1.08); }
.nih-cat-mosaic__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.7), rgba(0,0,0,0.2) 60%, transparent); }
.nih-cat-mosaic__item p { position: absolute; left: 0.65rem; right: 0.65rem; bottom: 0.65rem; color: #fff; font-family: var(--nih-font-heading); font-weight: 700; font-size: 0.75rem; line-height: 1.2; }

/* ==========================================================================
   Dark Panoramic + Grid (Travel Journal)
   ========================================================================== */
.nih-dark-panoramic { background: var(--nih-ink); color: #fff; padding: 3.5rem 0 4rem; }
.nih-dark-panoramic__inner { max-width: var(--nih-container); margin: 0 auto; padding: 0 1rem; display: flex; flex-direction: column; gap: 2.5rem; }
@media (min-width: 640px) { .nih-dark-panoramic__inner { padding: 0 1.5rem; } }
@media (min-width: 1024px) { .nih-dark-panoramic__inner { padding: 0 2rem; } }

.nih-panoramic-card { position: relative; display: block; border-radius: var(--nih-radius-lg); overflow: hidden; min-height: 20rem; box-shadow: var(--nih-shadow-md); }
@media (min-width: 640px) { .nih-panoramic-card { min-height: 25rem; } }
.nih-panoramic-card img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; filter: brightness(0.85); transition: transform 0.5s ease; }
.nih-panoramic-card:hover img { transform: scale(1.03); }
.nih-panoramic-card__scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,0.85), rgba(0,0,0,0.4) 55%, transparent); }
.nih-panoramic-card__body {
  position: absolute; inset: 0; z-index: 1; padding: 1.5rem; display: flex; flex-direction: column;
  justify-content: flex-end; gap: 1rem;
}
@media (min-width: 640px) { .nih-panoramic-card__body { padding: 2.5rem; flex-direction: row; align-items: flex-end; justify-content: space-between; } }
.nih-panoramic-card__body h3 { margin-top: 0.75rem; font-size: 1.25rem; font-weight: 700; line-height: 1.3; max-width: 42rem; }
@media (min-width: 640px) { .nih-panoramic-card__body h3 { font-size: 1.75rem; } }
.nih-panoramic-card:hover .nih-panoramic-card__body h3 { color: var(--nih-accent); }
.nih-panoramic-card__arrow {
  flex-shrink: 0; width: 3rem; height: 3rem; border-radius: 50%; background: #fff; color: var(--nih-ink);
  display: flex; align-items: center; justify-content: center; box-shadow: var(--nih-shadow-md); transition: transform 0.2s ease;
}
.nih-panoramic-card:hover .nih-panoramic-card__arrow { transform: scale(1.1); }

.nih-dark-grid { display: grid; grid-template-columns: 1fr; gap: 1.5rem; }
@media (min-width: 640px) { .nih-dark-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1024px) { .nih-dark-grid { grid-template-columns: repeat(4, 1fr); } }
.nih-dark-card {
  display: flex; flex-direction: column; justify-content: space-between; background: var(--nih-dark-surface);
  border: 1px solid var(--nih-dark-surface-alt); border-radius: var(--nih-radius-md); overflow: hidden;
  box-shadow: var(--nih-shadow-xs); transition: box-shadow 0.25s ease;
}
.nih-dark-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.nih-dark-card__media { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.nih-dark-card__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.5s ease; }
.nih-dark-card:hover .nih-dark-card__media img { transform: scale(1.05); }
.nih-dark-card__media .badge { position: absolute; top: 0.75rem; left: 0.75rem; }
.nih-dark-card__body { padding: 1rem; flex: 1; display: flex; flex-direction: column; justify-content: space-between; gap: 0.75rem; }
.nih-dark-card__body h4 { font-size: 0.85rem; font-weight: 700; color: #fff; line-height: 1.35; }
.nih-dark-card:hover .nih-dark-card__body h4 { color: var(--nih-accent); }
.nih-dark-card__body p { font-size: 0.72rem; color: rgba(255,255,255,0.9); line-height: 1.55; margin-top: 0.4rem; }
.nih-dark-card__author { display: flex; align-items: center; gap: 0.5rem; padding-top: 0.75rem; border-top: 1px solid var(--nih-dark-surface-alt); font-size: 0.72rem; color: #fff; }
.nih-dark-card__author img, .nih-dark-card__author .letter { width: 1.25rem; height: 1.25rem !important; border-radius: 50% !important; object-fit: cover; flex-shrink: 0; }
.nih-dark-card__author .letter { background: var(--nih-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.6rem; }

.nih-dark-panoramic__cta { text-align: center; padding-top: 0.5rem; }

/* ==========================================================================
   Overlapping Bento Feature (Tech Trends)
   ========================================================================== */
.nih-bento-feature-section { max-width: var(--nih-container); margin: 0 auto; padding: 2rem 1rem; }
@media (min-width: 640px) { .nih-bento-feature-section { padding: 2.5rem 1.5rem; } }
@media (min-width: 1024px) { .nih-bento-feature-section { padding: 3rem 2rem; } }
.nih-bento-feature {
  display: grid; grid-template-columns: 1fr; gap: 2rem; align-items: center; background: var(--nih-ink);
  border: 1px solid var(--nih-dark-border); border-radius: var(--nih-radius-lg); padding: 1.5rem; box-shadow: var(--nih-shadow-md);
  position: relative;
}
@media (min-width: 640px) { .nih-bento-feature { padding: 2.5rem; } }
@media (min-width: 1024px) { .nih-bento-feature { grid-template-columns: 6fr 6fr; } }
.nih-bento-feature__media {
  border-radius: var(--nih-radius-md); overflow: hidden; box-shadow: 0 20px 40px rgba(0,0,0,0.4);
  border: 4px solid #fff; aspect-ratio: 16/10;
}
@media (min-width: 1024px) { .nih-bento-feature__media { margin-top: -3rem; } }
.nih-bento-feature__media img { width: 100%; height: 100% !important; object-fit: cover; transition: transform 0.5s ease; }
.nih-bento-feature:hover .nih-bento-feature__media img { transform: scale(1.05); }
.nih-bento-feature__body { color: #fff; display: flex; flex-direction: column; align-items: flex-start; gap: 1rem; }
.nih-bento-feature__body h3 { font-size: 1.35rem; font-weight: 700; line-height: 1.3; }
@media (min-width: 640px) { .nih-bento-feature__body h3 { font-size: 1.75rem; } }
.nih-bento-feature:hover .nih-bento-feature__body h3 { color: var(--nih-accent); }
.nih-bento-feature__body p { font-size: 0.8rem; color: rgba(255,255,255,0.95); line-height: 1.6; max-width: 34rem; }
@media (min-width: 640px) { .nih-bento-feature__body p { font-size: 0.9rem; } }
.nih-bento-feature__author { display: flex; align-items: center; gap: 0.6rem; font-size: 0.75rem; color: #fff; font-weight: 600; }
.nih-bento-feature__author img, .nih-bento-feature__author .letter { width: 1.5rem; height: 1.5rem !important; border-radius: 50% !important; object-fit: cover; flex-shrink: 0; }
.nih-bento-feature__author .letter { background: var(--nih-accent); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.68rem; }

/* ==========================================================================
   404 / fallback listing
   ========================================================================== */
.page-content-basic { max-width: 48rem; margin: 0 auto; padding: 3rem 1rem 5rem; line-height: 1.8; }
.page-content-basic h1 { font-size: 2rem; margin-bottom: 1.5rem; }
.page-content-basic p { margin-bottom: 1.2rem; color: #44403c; }

/* ==========================================================================
   404 page
   ========================================================================== */
.nih-404 {
  max-width: 34rem; margin: 0 auto; padding: 4rem 1rem 6rem; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 0.75rem;
}
.nih-404__code {
  font-family: var(--nih-font-heading); font-style: italic; font-weight: 800; color: var(--nih-accent);
  font-size: 5rem; line-height: 1; letter-spacing: -0.02em;
}
@media (min-width: 640px) { .nih-404__code { font-size: 7rem; } }
.nih-404 h1 { font-size: 1.75rem; font-weight: 700; margin-top: 0.5rem; }
@media (min-width: 640px) { .nih-404 h1 { font-size: 2.25rem; } }
.nih-404 p { font-size: 0.95rem; color: #57534e; line-height: 1.7; max-width: 28rem; }

.nih-404__search {
  display: flex; align-items: center; gap: 0.5rem; width: 100%; max-width: 24rem;
  background: #fff; border: 1px solid var(--nih-border); border-radius: var(--nih-radius-pill);
  padding: 0.4rem 0.4rem 0.4rem 1rem; margin-top: 1rem; color: #a8a29e;
}
.nih-404__search input {
  flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 0.85rem; color: var(--nih-ink);
}
.nih-404__search button {
  background: var(--nih-ink); color: #fff; border-radius: var(--nih-radius-pill); padding: 0.6rem 1.25rem;
  font-size: 0.8rem; font-weight: 700; transition: background 0.2s ease;
}
.nih-404__search button:hover { background: var(--nih-accent); }

.nih-404 .btn { margin-top: 0.5rem; }

.nih-404__categories { margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--nih-border); width: 100%; display: flex; flex-direction: column; align-items: center; gap: 0.85rem; }
.nih-404__categories p { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--nih-muted); }
.nih-404__categories .pill-list { justify-content: center; }
