/* ==========================================================================
   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: #f6f5ef;
  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;
  }

  details.tech-drawer {
    padding: 13px 15px;
    border-radius: 14px;
  }
  details.tech-drawer > summary {
    font-size: 14px;
    line-height: 1.4;
  }

  .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;
  }
}

/* ==========================================================================
   Progressive Disclosure & Calm Editorial Reading Layer
   ========================================================================== */

.tech-toggle-btn {
  cursor: pointer;
  background: #162e2b;
  color: #ffffff !important;
  border: 1px solid #162e2b;
  border-radius: 999px;
  padding: 5px 13px;
  font-family: var(--font-text);
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.15s ease;
  margin-left: 4px;
}

.tech-toggle-btn:hover {
  background: #28685c;
  border-color: #28685c;
  text-decoration: none !important;
}

.tech-toggle-btn.expanded {
  background: #28685c;
  border-color: #28685c;
}

.disclosure-compact {
  margin-top: 10px;
  margin-bottom: 14px;
  background: #f6f5ef;
  border: 1px solid var(--border-subtle);
  border-left: 3px solid var(--green);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-primary);
}

.disclosure-compact summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.disclosure-compact summary::-webkit-details-marker {
  display: none;
}

.disclosure-compact .disclosure-expand-pill {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
  background: #e3efe9;
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

.disclosure-compact[open] .disclosure-expand-pill::after {
  content: " (Click to collapse)";
}

.disclosure-compact .disclosure-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--border-subtle);
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.55;
}

details.tech-drawer {
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-left: 4px solid var(--green);
  border-radius: 16px;
  padding: 14px 18px;
  margin: 18px 0 24px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

details.tech-drawer:hover {
  border-color: #cbd5e1;
  border-left-color: var(--green);
}

details.tech-drawer[open] {
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

details.tech-drawer > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
}

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

.tech-drawer-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--green);
  background: var(--green-pill-bg);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

details.tech-drawer > .tech-drawer-body {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-primary);
}

.card-tech-drawer {
  margin-top: 10px;
  margin-bottom: 12px;
  background: var(--bg);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 8px 12px;
  font-size: 12.5px;
}

.card-tech-drawer > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--green);
}

.card-tech-drawer > summary::-webkit-details-marker {
  display: none;
}

.card-tech-drawer > .card-tech-body {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed var(--border-subtle);
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ==========================================================================
   Dual Reading Editions: "General Public" vs. "Curious & Inquisitive Minds"
   ========================================================================== */
.edition-switcher-banner {
  max-width: 820px;
  margin: 0 auto 22px;
  padding: 12px 16px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
}

.edition-segmented {
  display: inline-flex;
  background: #eceae0;
  padding: 4px;
  border-radius: 999px;
  gap: 4px;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.edition-tab-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #5d6965;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 7px 15px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.16s ease;
  white-space: nowrap;
}

.edition-tab-btn:hover {
  color: #162e2b;
  background: rgba(255, 255, 255, 0.75);
}

.edition-tab-btn.active {
  background: #28685c;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(0, 113, 227, 0.25);
}

.edition-status-note {
  font-size: 12.5px;
  line-height: 1.45;
  color: #5d6965;
  flex: 1;
  min-width: 220px;
}

.edition-status-note strong {
  color: #162e2b;
}

/* Compact Switcher inside Top Navigation Bar */
.nav-edition-switcher {
  display: inline-flex;
  background: #eceae0;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-left: 8px;
  gap: 2px;
}

.nav-edition-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: #5d6965;
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.nav-edition-btn:hover {
  color: #162e2b;
}

.nav-edition-btn.active {
  background: #28685c;
  color: #ffffff;
}

/* End-of-Article Callout Card shown in General Public Mode */
.public-edition-upsell {
  margin: 34px 0 18px;
  padding: 22px 24px;
  background: #ffffff;
  border: 1px solid var(--border-subtle);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.05);
}

.public-edition-upsell h3 {
  margin: 0;
  font-size: 18px;
  line-height: 1.35;
  color: #162e2b;
}

.public-edition-upsell p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: #5d6965;
}

.public-edition-upsell-btn {
  align-self: flex-start;
  appearance: none;
  border: none;
  background: #28685c;
  color: #ffffff;
  font-family: var(--font-sans);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: background 0.15s ease, transform 0.12s ease;
}

.public-edition-upsell-btn:hover {
  background: #1e5248;
  transform: translateY(-1px);
}

/* Visibility Rules for General Public Edition (Default) */
body[data-reading-mode="public"] details.tech-drawer:not(.app-tech-drawer):not(.cli-audit-drawer),
body[data-reading-mode="public"] details.card-tech-drawer:not(.app-tech-drawer):not(.cli-audit-drawer),
body[data-reading-mode="public"] .inquisitive-only,
body[data-reading-mode="public"] .tech-toggle-btn {
  display: none !important;
}

/* Visibility Rules for Curious & Inquisitive Minds Edition */
body[data-reading-mode="inquisitive"] .public-edition-upsell {
  display: none !important;
}

@media (max-width: 760px) {
  .nav-edition-switcher {
    display: none;
  }
  .edition-switcher-banner {
    padding: 10px 12px;
  }
  .edition-tab-btn {
    font-size: 12px;
    padding: 6px 11px;
  }
}

/* ==========================================================================
   Apple App Store Aesthetic — Storefront & Study App Headers
   ========================================================================== */

:root {
  --apple-bg: #f6f5ef;
  --apple-card: #fffefa;
  --apple-ink: #162e2b;
  --apple-muted: #5d6965;
  --apple-line: #d4dcd4;
  --apple-blue: #28685c;
  --apple-blue-hover: #1e5248;
  --apple-blue-soft: #e3efe9;
  --apple-shadow: 0 8px 28px rgba(22, 46, 43, 0.06), 0 1px 3px rgba(22, 46, 43, 0.04);
  --apple-shadow-hover: 0 14px 36px rgba(22, 46, 43, 0.10), 0 2px 6px rgba(22, 46, 43, 0.05);
}

body.appstore-body {
  background-color: var(--apple-bg);
  color: var(--apple-ink);
}

.site-header {
  background: rgba(246, 245, 239, 0.96);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid #d4dcd4;
  height: 68px;
}

.appstore-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 28px 28px 72px;
}

.appstore-top-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--apple-line);
}

.appstore-kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--apple-muted);
  margin-bottom: 4px;
}

.appstore-title {
  font-size: clamp(28px, 3.6vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.1;
  color: var(--apple-ink);
  margin: 0;
}

.appstore-subtitle {
  font-size: 15.5px;
  color: var(--apple-muted);
  margin: 6px 0 0;
  max-width: 64ch;
}

.appstore-trust-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.appstore-trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid var(--apple-line);
  border-radius: 999px;
  padding: 6px 13px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--apple-ink);
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.appstore-trust-pill:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.07);
}

/* Today Featured Bento Row */
.appstore-today-grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 20px;
  margin-bottom: 34px;
}

.today-card {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: var(--apple-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.today-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--apple-shadow-hover);
}

.today-card-featured {
  background: linear-gradient(145deg, #0d2624 0%, #134e4a 55%, #0f172a 100%);
  color: #ffffff;
  padding: 26px 28px 22px;
}

.today-card-light {
  background: #ffffff;
  border: 1px solid var(--apple-line);
  color: var(--apple-ink);
  padding: 26px 26px 22px;
}

.today-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}

.today-card-featured .today-badge {
  color: #5eead4;
}

.today-card-light .today-badge {
  color: var(--apple-blue);
}

.today-card h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.today-card p {
  font-size: 14.5px;
  line-height: 1.5;
  margin: 0 0 14px;
}

.today-card-featured p {
  color: rgba(255, 255, 255, 0.84);
}

.today-card-light p {
  color: var(--apple-muted);
}

.today-dock {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  margin-top: auto;
}

.today-card-light .today-dock {
  border-top-color: var(--apple-line);
}

/* App Squircle Icons */
.app-squircle {
  width: 60px;
  height: 60px;
  border-radius: 15px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.25);
  overflow: hidden;
}

.app-squircle-sm {
  width: 46px;
  height: 46px;
  border-radius: 11px;
}

.app-squircle-lg {
  width: 76px;
  height: 76px;
  border-radius: 19px;
}

/* Apple App Store Blue Pill Button */
.app-get-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--apple-blue);
  color: #ffffff !important;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 7px 20px;
  border-radius: 999px;
  text-decoration: none !important;
  border: none;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease;
  white-space: nowrap;
}

.app-get-btn:hover {
  background: var(--apple-blue-hover);
  transform: scale(1.02);
}

.app-get-btn-light {
  background: rgba(255, 255, 255, 0.95);
  color: #0f172a !important;
}

.app-get-btn-light:hover {
  background: #ffffff;
}

.app-get-btn-soft {
  background: var(--apple-blue-soft);
  color: var(--apple-blue) !important;
}

.app-get-btn-soft:hover {
  background: #d4e7df;
}

.app-inapp-note {
  display: block;
  font-size: 10.5px;
  color: var(--apple-muted);
  text-align: center;
  margin-top: 3px;
  font-weight: 500;
}

/* App Store Shelf Header & Filter Bar */
.appstore-shelf-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.appstore-shelf-title {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--apple-ink);
  margin: 0;
}

/* 2-Column App Store Cards Grid */
.appstore-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.app-card {
  background: var(--apple-card);
  border: 1px solid var(--apple-line);
  border-radius: 24px;
  padding: 22px 22px 18px;
  box-shadow: var(--apple-shadow);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.app-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--apple-shadow-hover);
}

.app-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.app-card-identity {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  min-width: 0;
  flex: 1;
}

.app-card-titles {
  min-width: 0;
  flex: 1;
}

.app-card-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--apple-muted);
  margin-bottom: 2px;
}

.app-card-name {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -0.015em;
  color: var(--apple-ink);
  margin: 0 0 3px;
}

.app-card-name a {
  color: inherit;
  text-decoration: none;
}

.app-card-name a:hover {
  color: var(--apple-blue);
}

.app-card-tagline {
  font-size: 13px;
  color: var(--apple-muted);
  line-height: 1.38;
  margin: 0;
}

.app-card-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
}

/* 4-Column Apple App Store Metadata Strip */
.app-spec-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--apple-line);
  border-bottom: 1px solid var(--apple-line);
  padding: 9px 0;
  margin-bottom: 14px;
  text-align: center;
}

.app-spec-cell {
  padding: 0 6px;
  border-right: 1px solid var(--apple-line);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.app-spec-cell:last-child {
  border-right: none;
}

.app-spec-lbl {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--apple-muted);
  margin-bottom: 2px;
}

.app-spec-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--apple-ink);
  font-family: var(--font-mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.app-spec-sub {
  font-size: 10.5px;
  color: var(--apple-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* App Screenshot / Visual Preview Window */
.app-preview-box {
  background: #f6f5ef;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  padding: 12px 14px;
  margin-bottom: 12px;
}

.app-preview-svg-wrap {
  width: 100%;
  height: 108px;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 10px;
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.05);
  display: flex;
  align-items: center;
  justify-content: center;
}

.app-preview-hook {
  font-size: 13.8px;
  line-height: 1.5;
  color: var(--apple-ink);
  margin: 0;
}

/* App Footer & What's New Drawer */
.app-tech-drawer {
  background: #f6f5ef;
  border: 1px solid rgba(0, 0, 0, 0.07);
  border-radius: 14px;
  padding: 8px 13px;
  margin: 0 0 12px;
}

.app-tech-drawer summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--apple-ink);
}

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

.app-tech-drawer-body {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 12.8px;
  line-height: 1.55;
  color: #334155;
}

.app-card-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(0, 0, 0, 0.05);
  font-size: 12px;
}

/* Individual Study Page — Apple App Store Product Header */
.study-app-header-card {
  background: #ffffff;
  border: 1px solid var(--apple-line);
  border-radius: 26px;
  padding: 26px 28px 22px;
  box-shadow: var(--apple-shadow);
  margin-bottom: 24px;
}

.study-app-top {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 16px;
  margin-bottom: 18px;
}

.study-app-id {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  width: 100%;
}

.study-app-id > div:last-child {
  flex: 1;
  min-width: 0;
}

.study-app-id p {
  max-width: none !important;
}

.study-app-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.study-app-meta-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--apple-line);
  border-bottom: 1px solid var(--apple-line);
  padding: 12px 0;
  margin-bottom: 16px;
  text-align: center;
}

.study-app-subcards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.study-app-subcard {
  background: #f6f5ef;
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 13px;
  line-height: 1.5;
}

.study-app-subcard h4 {
  font-size: 13.5px;
  font-weight: 700;
  margin: 0 0 6px;
  color: var(--apple-ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

@media (max-width: 920px) {
  .appstore-today-grid,
  .appstore-grid,
  .study-app-subcards {
    grid-template-columns: 1fr;
  }
  .study-app-top {
    flex-direction: column;
  }
  .study-app-meta-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px 0;
  }
}

@media (max-width: 600px) {
  .appstore-wrap {
    padding: 18px 14px 52px;
  }
  .app-spec-strip {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px 0;
  }
  .app-spec-cell:nth-child(2) {
    border-right: none;
  }
}
