/* Sitewide structure & quality for Gashan public pages */
:root {
  --gashan-ink: #16333a;
  --gashan-muted: #5f6f72;
  --gashan-sand: #f3efe6;
  --gashan-paper: #fffdf8;
  --gashan-line: rgba(22, 51, 58, 0.12);
  --gashan-accent: #c9821f;
  --gashan-teal: #1a6b72;
}

.entry-content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.entry-content > *:first-child {
  margin-top: 0;
}

/* Resource shells: reports, podcast host, community */
.entry-content .shell,
.entry-content .gcom-app,
.entry-content .gashan-podcast-host,
.entry-content .podcast-host {
  margin-top: 8px !important;
  margin-bottom: 28px !important;
}

.entry-content .shell h1,
.entry-content .shell h2,
.entry-content .shell h3,
.entry-content .gcom-app h1,
.entry-content .gcom-app h2,
.entry-content .gcom-app h3,
.entry-content .gashan-podcast-host h1,
.entry-content .gashan-podcast-host h2,
.entry-content .gashan-podcast-host h3 {
  font-family: Syne, "DM Sans", sans-serif !important;
  text-align: left !important;
  text-transform: none !important;
}

/* Soften oversized global hero type inside content tools */
.entry-content .shell .panel-header h2,
.entry-content .gcom-app .gcom-head h1 {
  font-size: clamp(22px, 2.6vw, 30px) !important;
  line-height: 1.2 !important;
}

/* Footer / page rhythm */
.site-main,
#main,
.ct-container,
.entry-content {
  scroll-margin-top: 88px;
}

/* Contact / simple pages: clearer form rhythm if present */
.entry-content form .field,
.entry-content .gashan-contact .field {
  margin-bottom: 14px;
}

/* Templates / blog cards: avoid giant empty media boxes */
.entry-content .wp-block-post-featured-image img,
.entry-content .ct-media-container img {
  max-height: 280px;
  width: 100%;
  object-fit: cover;
}

/* Podcast host: keep composition inside content width */
.entry-content .gashan-podcast-host,
.entry-content #gashan-podcast-root,
.entry-content .podcast-shell {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

/* Experts banner only. The photo reaches the window edges. The rest of the page stays in. */
body.page-id-2430 .experts-hero {
  width: calc(100vw + 16px) !important;
  max-width: none !important;
  margin-left: calc(50% - 50vw) !important;
  margin-right: 0 !important;
  box-sizing: border-box !important;
}

/* Community / reports shared rounded frame rhythm */
.entry-content .shell,
.entry-content .gcom-app {
  isolation: isolate;
}

/* Dark-mode friendly resource panels stay readable */
[data-color-mode="dark"] .entry-content .shell .ar-body h3,
[data-color-mode="dark"] .entry-content .shell .panel-header h2 {
  color: #16333a !important;
  -webkit-text-fill-color: #16333a !important;
}
