/* ==========================================================================
   CuriosityBits Living Lab — Editorial & Scalable Study Directory Theme
   Modeled after https://about.fb.com/news/2026/10/introducing-muse-wonder-models/
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,opsz,wght@0,9..40,300;0,9..40,400;0,9..40,500;0,9..40,600;0,9..40,700;1,9..40,400&family=JetBrains+Mono:wght@400;500;600&display=swap');

:root {
  --paper: #f6f5ef;
  --ink: #162e2b;
  --muted: #5d6965;
  --line: #d4dcd4;
  --green: #28685c;
  --lime: #d8ee9c;
  --white: #fffefa;
  --bg: #f6f5ef;
  --surface-soft: #eceae0;
  --surface-card: #fffefa;
  --surface-dark: #162e2b;
  --text-primary: #162e2b;
  --text-body: #162e2b;
  --text-secondary: #5d6965;
  --text-muted: #5d6965;
  --accent-blue: #28685c;
  --accent-blue-light: #28685c;
  --accent-link: #28685c;
  --border-hairline: #d4dcd4;
  --border-subtle: #d4dcd4;
  --green-pill-bg: #e3efe9;
  --green-pill-fg: #28685c;
  --amber-pill-bg: #fef7e0;
  --amber-pill-fg: #b06000;
  --red-pill-bg: #fce8e6;
  --red-pill-fg: #c5221f;
  --radius-media: 24px;
  --radius-card: 20px;
  --radius-pill: 9999px;
  --font-display: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-text: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  overflow-x: hidden;
}

body {
  background-color: var(--bg);
  color: var(--text-primary);
  font-family: var(--font-text);
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  overflow-wrap: break-word;
}

a {
  color: var(--accent-link);
  text-decoration: none;
  transition: color 0.15s ease;
}

a:hover {
  text-decoration: underline;
}

.mono {
  font-family: var(--font-mono);
  font-size: 0.86em;
}

/* ==========================================================================
   1. Sticky Site Header (.site-header)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background: rgba(246, 245, 239, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border-hairline);
  height: 76px;
  display: flex;
  align-items: center;
}

.header-container {
  width: 100%;
  max-width: 1266px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-branding {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text-primary);
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none !important;
}

.site-branding-mark {
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.site-branding-sub {
  font-weight: 400;
  color: var(--text-secondary);
  font-size: 16px;
  margin-left: 2px;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.main-nav a {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 400;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--text-primary);
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, #0082fb 0%, #0064e0 100%) 0 0 1 0;
  text-decoration: none;
}

/* ==========================================================================
   2. Page Container & Post Header (.post-header)
   ========================================================================== */

.page-wrap {
  max-width: 1266px;
  margin: 0 auto;
  padding: 52px 40px 80px;
}

.post-header {
  max-width: 880px;
  margin-bottom: 32px;
}

.news-label {
  display: inline-block;
  padding-bottom: 3px;
  border-bottom: 2px solid;
  border-image: linear-gradient(to right, #0082fb 0%, #0064e0 100%) 0 0 1 0;
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 0.03em;
  color: #232323;
  margin-bottom: 12px;
}

.ui-display2,
.entry-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
  letter-spacing: 0.01em;
  color: var(--text-primary);
  margin-bottom: 12px;
}

.post-date {
  font-size: 15.5px;
  line-height: 22px;
  color: var(--text-secondary);
  font-weight: 300;
  margin-bottom: 20px;
}

.post-date span + span::before {
  content: " · ";
  margin: 0 6px;
}

.action-pill-bar {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  background: var(--surface-soft);
  border-radius: var(--radius-pill);
  padding: 7px 16px;
  font-size: 13.5px;
}

.action-pill-bar .bar-label {
  font-weight: 600;
  color: var(--text-primary);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-right: 4px;
}

.action-pill-bar a {
  color: var(--text-secondary);
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-pill);
  text-decoration: none;
}

.action-pill-bar a:hover {
  background: #ffffff;
  color: var(--text-primary);
}

/* ==========================================================================
   3. Asymmetric 2-Column Layout (.muse-grid: 3/4 Main + 1/4 Sidebar)
   ========================================================================== */

.muse-grid {
  display: grid;
  grid-template-columns: minmax(0, 3fr) minmax(250px, 1fr);
  gap: 60px;
  align-items: start;
}

.article-container {
  min-width: 0;
}

.featured-container {
  border-radius: var(--radius-media);
  overflow: hidden;
  margin-bottom: 36px;
  background: var(--surface-dark);
  color: #ffffff;
}

.featured-visual-inner {
  padding: 36px 40px;
  background: radial-gradient(circle at 85% 15%, rgba(0, 130, 251, 0.26), transparent 55%),
              linear-gradient(145deg, #0f1922 0%, #1c2b33 100%);
}

.featured-visual-inner .visual-kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8ab4f8;
  font-weight: 600;
  margin-bottom: 8px;
}

.featured-visual-inner h3 {
  font-size: clamp(21px, 2.4vw, 27px);
  font-weight: 500;
  line-height: 1.32;
  color: #ffffff;
  margin-bottom: 10px;
}

.featured-visual-inner p {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.82);
  max-width: 680px;
}

.featured-stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}

.featured-stat-item .stat-val {
  font-family: var(--font-display);
  font-size: 25px;
  font-weight: 600;
  color: #ffffff;
}

.featured-stat-item .stat-lbl {
  font-size: 12.5px;
  color: rgba(255, 255, 255, 0.72);
  margin-top: 3px;
}

/* ==========================================================================
   4. Takeaways Block (.highlights-container — Exact about.fb.com styling)
   ========================================================================== */

.highlights-container {
  padding: 0 2rem 0 0;
  margin-bottom: 36px;
}

.highlights-container > .the-highlights {
  padding-left: 20px;
  margin-left: 18px;
}

.highlights-title.ui-heading1 {
  color: #1c2b33;
  font-family: var(--font-display);
  font-size: 30px;
  font-weight: 500;
  line-height: 38px;
  padding-bottom: 3px;
  border-bottom: 1px solid #1c2b33;
  width: fit-content;
  margin-bottom: 4px;
}

.the-highlights ul {
  padding-left: 0;
  margin-left: 0;
  color: #1c2b33;
}

.the-highlights ul li {
  padding-top: 14px;
  padding-left: 4px;
  font-size: 17.5px;
  line-height: 26px;
  color: #1c2b33;
}

.the-highlights a {
  color: #768591;
  text-decoration: underline;
}

/* ==========================================================================
   5. Scalable Studies Directory & Feed (.studies-directory)
   ========================================================================== */

.studies-directory {
  margin-top: 24px;
  margin-bottom: 48px;
}

.directory-controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-hairline);
}

.filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-btn {
  background: var(--surface-soft);
  border: 1px solid transparent;
  color: var(--text-secondary);
  padding: 7px 16px;
  border-radius: var(--radius-pill);
  font-family: var(--font-text);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
}

.filter-btn:hover {
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.filter-btn.active {
  background: var(--text-primary);
  color: #ffffff;
}

.directory-search {
  padding: 8px 16px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-subtle);
  background: var(--surface-card);
  font-family: var(--font-text);
  font-size: 14px;
  color: var(--text-primary);
  min-width: 220px;
}

.directory-search:focus {
  outline: none;
  border-color: var(--accent-blue);
  background: #ffffff;
}

.study-feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 22px;
}

.study-card-item {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-media);
  padding: 26px 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.study-card-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(28, 43, 51, 0.06);
}

.study-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.study-num {
  font-family: var(--font-mono);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-blue);
}

.study-card-item h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 27px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 10px;
}

.study-card-item h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.study-card-item h3 a:hover {
  color: var(--accent-blue);
}

.study-card-item p {
  font-size: 15.5px;
  line-height: 23px;
  color: var(--text-secondary);
  margin-bottom: 18px;
}

.study-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 13.5px;
  color: var(--text-muted);
}

.study-card-footer a {
  font-weight: 500;
  color: var(--text-primary);
}

/* ==========================================================================
   6. Editorial Content Flow (.entry-content)
   ========================================================================== */

.entry-content {
  width: 94%;
}

.entry-content p {
  font-size: 18px;
  line-height: 27px;
  letter-spacing: 0.25px;
  color: var(--text-body);
  margin-bottom: 20px;
}

.entry-content p a {
  color: var(--accent-link);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content h2 {
  font-family: var(--font-display);
  font-size: 26px;
  line-height: 33px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 40px 0 14px;
}

.entry-content h3 {
  font-family: var(--font-display);
  font-size: 20px;
  line-height: 27px;
  font-weight: 500;
  color: var(--text-primary);
  margin: 26px 0 10px;
}

.entry-content ul,
.entry-content ol {
  margin: 0 0 22px 22px;
}

.entry-content li {
  font-size: 17.5px;
  line-height: 26px;
  color: var(--text-body);
  margin-bottom: 8px;
}

.inline-media-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-media);
  padding: 24px 28px;
  margin: 24px 0;
}

.inline-media-card h3 {
  margin-top: 0;
  font-size: 19px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.muse-pullquote {
  margin: 32px 0;
  padding: 18px 0 18px 24px;
  border-left: 3px solid var(--accent-blue);
  font-family: var(--font-display);
  font-size: 21px;
  line-height: 1.42;
  font-weight: 500;
  color: var(--text-primary);
}

.muse-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.muse-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14.5px;
}

.muse-table th,
.muse-table td {
  text-align: left;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: top;
}

.muse-table th {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
}

.muse-table tr:last-child td {
  border-bottom: none;
}

.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 600;
}
.pill-green { background: var(--green-pill-bg); color: var(--green-pill-fg); }
.pill-amber { background: var(--amber-pill-bg); color: var(--amber-pill-fg); }
.pill-red   { background: var(--red-pill-bg); color: var(--red-pill-fg); }
.pill-blue  { background: #e8f0fe; color: var(--accent-blue); }

.btn-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: #1c2b33;
  color: #ffffff !important;
  border-radius: var(--radius-pill);
  padding: 10px 22px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
}

.btn-pill:hover {
  background-color: var(--accent-blue);
}

.btn-pill-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: transparent;
  color: #1c2b33 !important;
  border: 1px solid #1c2b33;
  border-radius: var(--radius-pill);
  padding: 9px 20px;
  font-size: 14.5px;
  font-weight: 500;
  text-decoration: none !important;
}

.btn-pill-outline:hover {
  background-color: #1c2b33;
  color: #ffffff !important;
}

details.muse-drawer {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-card);
  padding: 16px 22px;
  margin-bottom: 14px;
}

details.muse-drawer summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 500;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  list-style: none;
}

details.muse-drawer summary::-webkit-details-marker {
  display: none;
}

details.muse-drawer .drawer-body {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
  font-size: 15px;
  line-height: 1.65;
  max-height: 620px;
  overflow-y: auto;
}

/* ==========================================================================
   Formatted Markdown Document Viewer (.md-rendered-view & .drawer-body)
   ========================================================================== */
.md-rendered-view,
details.muse-drawer .drawer-body {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif);
  color: #1c2b33;
  line-height: 1.68;
  font-size: 15px;
}

.md-rendered-view {
  background: #ffffff;
  border: 1px solid rgba(22, 22, 22, 0.12);
  border-radius: 14px;
  padding: 24px 28px;
  margin-top: 14px;
  max-height: 620px;
  overflow-y: auto;
}

.md-rendered-view h1,
details.muse-drawer .drawer-body h1 {
  font-size: 22px;
  line-height: 1.3;
  font-weight: 600;
  color: #1c2b33;
  margin: 0 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(22, 22, 22, 0.1);
}

.md-rendered-view h2,
details.muse-drawer .drawer-body h2 {
  font-size: 18px;
  line-height: 1.35;
  font-weight: 600;
  color: #1c2b33;
  margin: 22px 0 10px;
}

.md-rendered-view h3,
details.muse-drawer .drawer-body h3 {
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 600;
  color: #1c2b33;
  margin: 18px 0 8px;
}

.md-rendered-view p,
details.muse-drawer .drawer-body p {
  font-size: 14.5px;
  line-height: 1.65;
  color: #2b3a42;
  margin: 0 0 12px;
}

.md-rendered-view ul,
.md-rendered-view ol,
details.muse-drawer .drawer-body ul,
details.muse-drawer .drawer-body ol {
  margin: 0 0 14px 20px;
  padding: 0;
}

.md-rendered-view li,
details.muse-drawer .drawer-body li {
  font-size: 14.5px;
  line-height: 1.6;
  color: #2b3a42;
  margin-bottom: 6px;
}

.md-rendered-view blockquote,
details.muse-drawer .drawer-body blockquote {
  margin: 14px 0;
  padding: 10px 16px;
  border-left: 3px solid #0064e0;
  background: #f5f9ff;
  border-radius: 0 10px 10px 0;
  color: #1c2b33;
  font-size: 14px;
}

.md-rendered-view table,
details.muse-drawer .drawer-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  font-size: 13.5px;
  display: block;
  overflow-x: auto;
}

.md-rendered-view th,
.md-rendered-view td,
details.muse-drawer .drawer-body th,
details.muse-drawer .drawer-body td {
  padding: 9px 12px;
  border-bottom: 1px solid rgba(22, 22, 22, 0.1);
  text-align: left;
  vertical-align: top;
}

.md-rendered-view th,
details.muse-drawer .drawer-body th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #465a69;
}

.md-rendered-view code,
details.muse-drawer .drawer-body code {
  font-family: var(--font-mono, ui-monospace, SFMono-Regular, Menlo, monospace);
  font-size: 12.5px;
  background: #f1f5f9;
  padding: 2px 5px;
  border-radius: 5px;
  color: #0f172a;
}

.md-rendered-view pre,
details.muse-drawer .drawer-body pre {
  background: #1c2b33;
  color: #f8fafc;
  padding: 14px 16px;
  border-radius: 10px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.5;
  margin: 12px 0;
}

.md-rendered-view pre code,
details.muse-drawer .drawer-body pre code {
  background: transparent;
  color: inherit;
  padding: 0;
}

.md-rendered-view hr,
details.muse-drawer .drawer-body hr {
  border: none;
  border-top: 1px solid rgba(22, 22, 22, 0.1);
  margin: 20px 0;
}

.living-paper-banner {
  background: linear-gradient(135deg, #f0f7ff 0%, #f8fafc 100%);
  border: 1px solid rgba(0, 100, 224, 0.22);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 16px 0 22px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  font-size: 13.5px;
  color: #1c2b33;
}

.entry-taxonomy {
  margin-top: 40px;
  padding-top: 20px;
  border-top: 1px solid var(--border-hairline);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  font-size: 14px;
  color: var(--text-secondary);
}

/* ==========================================================================
   7. Right Sidebar Container (.sidebar-container)
   ========================================================================== */

.sidebar-container {
  position: sticky;
  top: 100px;
}

.sidebar-container .widget-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #677b8c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.sidebar-list {
  list-style: none;
}

.sidebar-list li {
  padding: 16px 0;
  border-bottom: 1px solid var(--border-hairline);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.sidebar-list li:first-child {
  padding-top: 2px;
}

.sidebar-list a.sidebar-link {
  font-size: 16px;
  line-height: 22px;
  color: var(--text-secondary);
  text-decoration: none;
  flex: 1;
}

.sidebar-list a.sidebar-link:hover {
  color: var(--text-primary);
}

.sidebar-list a.sidebar-link .sidebar-tag {
  display: block;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent-blue);
  margin-bottom: 3px;
}

.sidebar-arrow-circle {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 50%;
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-primary);
}

.sidebar-list li:hover .sidebar-arrow-circle {
  background-color: var(--text-primary);
  border-color: var(--text-primary);
  color: #ffffff;
}

/* ==========================================================================
   8. Bottom Related Grid & Footer
   ========================================================================== */

.related-posts-section {
  margin-top: 64px;
  padding-top: 40px;
  border-top: 1px solid var(--border-hairline);
}

.related-posts-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: #677b8c;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 24px;
}

.news-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  gap: 24px;
}

.news-card {
  background: var(--surface-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-media);
  padding: 24px 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.news-card h3 {
  font-family: var(--font-display);
  font-size: 19px;
  line-height: 26px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.news-card h3 a {
  color: var(--text-primary);
  text-decoration: none;
}

.news-card p {
  font-size: 15px;
  line-height: 22px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.news-card-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-footer {
  background: var(--surface-soft);
  border-top: 1px solid var(--border-hairline);
  padding: 40px 40px;
  margin-top: 56px;
  font-size: 14px;
  color: var(--text-secondary);
}

.footer-inner {
  max-width: 1266px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
}

.footer-links a {
  color: var(--text-secondary);
}

@media (max-width: 1024px) {
  .header-container {
    padding: 0 24px;
  }
  .page-wrap {
    padding: 40px 24px 64px;
  }
  .muse-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .entry-content {
    width: 100%;
  }
  .sidebar-container {
    position: static;
    border-top: 1px solid var(--border-hairline);
    padding-top: 28px;
  }
}

@media (max-width: 768px) {
  .site-header {
    height: auto;
    min-height: 60px;
    padding: 10px 0;
  }
  .header-container {
    padding: 0 16px;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .site-branding {
    font-size: 18.5px;
  }
  .site-branding-sub {
    font-size: 14.5px;
  }
  .main-nav {
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .main-nav::-webkit-scrollbar {
    display: none;
  }
  .main-nav a {
    font-size: 14px;
    padding: 4px 0;
    flex-shrink: 0;
  }

  .page-wrap {
    padding: 24px 16px 48px;
  }
  .post-header {
    margin-bottom: 24px;
  }
  .ui-display2,
  .entry-title {
    font-size: clamp(24px, 6.5vw, 32px);
    line-height: 1.22;
  }
  .post-date {
    font-size: 14px;
    line-height: 20px;
    margin-bottom: 16px;
  }
  .action-pill-bar {
    display: flex;
    width: 100%;
    border-radius: 16px;
    padding: 10px 12px;
    gap: 6px;
    font-size: 13px;
  }
  .action-pill-bar .bar-label {
    width: 100%;
    margin-bottom: 2px;
  }
  .action-pill-bar a {
    background: #ffffff;
    border: 1px solid var(--border-subtle);
    padding: 5px 11px;
    font-size: 12.5px;
  }

  .featured-container {
    border-radius: 18px;
    margin-bottom: 28px;
  }
  .featured-visual-inner {
    padding: 22px 18px;
  }
  .featured-visual-inner h3 {
    font-size: 19px;
    line-height: 1.35;
  }
  .featured-visual-inner p {
    font-size: 14.5px;
    line-height: 1.55;
  }
  .featured-stat-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
    margin-top: 18px;
    padding-top: 16px;
  }
  .featured-stat-item .stat-val {
    font-size: 20px;
  }
  .featured-stat-item .stat-lbl {
    font-size: 12px;
  }

  .highlights-container {
    padding: 0;
    margin-bottom: 28px;
  }
  .highlights-title.ui-heading1 {
    font-size: 24px;
    line-height: 32px;
  }
  .highlights-container > .the-highlights {
    padding-left: 16px;
    margin-left: 6px;
  }
  .the-highlights ul li {
    font-size: 15.5px;
    line-height: 23px;
    padding-top: 10px;
  }

  .directory-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .filter-pills {
    overflow-x: auto;
    flex-wrap: nowrap;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: 2px;
  }
  .filter-pills::-webkit-scrollbar {
    display: none;
  }
  .filter-btn {
    flex-shrink: 0;
    padding: 7px 14px;
    font-size: 13.5px;
  }
  .directory-search {
    width: 100%;
    min-width: 0;
  }

  .study-feed-grid,
  .news-cards-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .study-card-item,
  .news-card,
  .inline-media-card {
    padding: 20px 18px;
    border-radius: 18px;
  }
  .study-card-footer {
    flex-wrap: wrap;
    gap: 8px;
  }

  .entry-content p {
    font-size: 16px;
    line-height: 25px;
    margin-bottom: 16px;
  }
  .entry-content h2 {
    font-size: 22px;
    line-height: 29px;
    margin: 28px 0 12px;
  }
  .entry-content h3 {
    font-size: 18px;
    line-height: 24px;
  }
  .entry-content li {
    font-size: 15.5px;
    line-height: 24px;
  }
  .muse-pullquote {
    font-size: 18px;
    line-height: 1.45;
    padding: 12px 0 12px 16px;
    margin: 22px 0;
  }

  .muse-table-wrap {
    margin: 0 -4px;
    padding: 0 4px;
    -webkit-overflow-scrolling: touch;
  }
  .muse-table {
    font-size: 13px;
  }
  .muse-table th,
  .muse-table td {
    padding: 9px 8px;
  }

  details.muse-drawer {
    padding: 14px 16px;
    border-radius: 16px;
  }
  details.muse-drawer summary {
    font-size: 14.5px;
    line-height: 1.4;
    gap: 8px;
  }

  .site-footer {
    padding: 28px 16px 40px;
    margin-top: 40px;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
  .footer-links {
    gap: 14px;
  }
}

@media (max-width: 420px) {
  .featured-stat-strip {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}
