.ggc-block {
  margin: 3rem 0;
  color: #172033;
  font-family: inherit;
}

.ggc-kicker {
  margin-bottom: .45rem;
  color: #4e6f96;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
}

.ggc-title {
  margin: 0 0 .6rem 0;
  color: #111827;
  font-size: clamp(1.55rem, 2.4vw, 2.25rem);
  line-height: 1.15;
}

.ggc-intro {
  max-width: 780px;
  margin: 0 0 1.4rem 0;
  color: #46546a;
  font-size: 1.02rem;
  line-height: 1.65;
}

.ggc-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.ggc-card,
.ggc-event,
.ggc-list-row,
.ggc-box {
  border: 1px solid #e4e9f1;
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .06);
}

.ggc-card {
  padding: 1.2rem 1.25rem;
}

.ggc-card h3,
.ggc-list-row h3,
.ggc-event h3 {
  margin: 0 0 .45rem 0;
  color: #111827;
  font-size: 1.05rem;
  line-height: 1.35;
}

.ggc-card a,
.ggc-list-row a,
.ggc-event a {
  color: #163c66;
  text-decoration: none;
}

.ggc-card a:hover,
.ggc-list-row a:hover,
.ggc-event a:hover {
  text-decoration: underline;
}

.ggc-card-meta,
.ggc-event-meta,
.ggc-muted {
  color: #69778b;
  font-size: .88rem;
  line-height: 1.45;
}

.ggc-score {
  margin: .65rem 0 .4rem 0;
  color: #22314a;
  font-weight: 650;
}

.ggc-list {
  display: grid;
  gap: .75rem;
}

.ggc-list-row {
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 1.1rem;
}

.ggc-row-score {
  min-width: 72px;
  text-align: right;
  color: #111827;
  font-weight: 700;
}

.ggc-event-list {
  display: grid;
  gap: 1rem;
}

.ggc-event {
  padding: 1.2rem 1.25rem;
}

.ggc-event-summary {
  margin: .65rem 0 .95rem 0;
  color: #344156;
  line-height: 1.65;
}

.ggc-note {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: .9rem;
  margin-top: .75rem;
  padding-top: .75rem;
  border-top: 1px solid #edf1f6;
  color: #344156;
  line-height: 1.58;
}

.ggc-note strong {
  color: #22314a;
  font-size: .88rem;
}

.ggc-note-quiet {
  color: #5f6e82;
  font-size: .92rem;
}

.ggc-error {
  padding: 1rem;
  border-color: #f2c4c4;
  background: #fff6f6;
  color: #8a1f1f;
}

@media (max-width: 760px) {
  .ggc-card-grid {
    grid-template-columns: 1fr;
  }

  .ggc-list-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .ggc-row-score {
    text-align: left;
  }

  .ggc-note {
    grid-template-columns: 1fr;
    gap: .25rem;
  }
}

/* v0.1.2 typography refinements */
.ggc-card h3,
.ggc-list-row h3,
.ggc-event h3 {
  font-size: clamp(1.08rem, 1.55vw, 1.45rem);
  line-height: 1.28;
}

.ggc-note-quiet {
  font-size: inherit;
}

.ggc-note-quiet span {
  font-size: inherit;
  line-height: 1.58;
}

/* v0.1.4 carousel timing + sidebar compact mode */
.ggc-card h3,
.ggc-list-row h3,
.ggc-event h3 {
  font-size: clamp(1.05rem, 1.35vw, 1.28rem);
  line-height: 1.22;
}

.ggc-carousel-slide {
  transition:
    opacity var(--ggc-push-time, 700ms) ease,
    transform var(--ggc-push-time, 700ms) ease;
}

/* Compact rendering for sidebar widgets */
.ggc-sidebar-compact .ggc-block {
  margin: 1.1rem 0;
}

.ggc-sidebar-compact .ggc-kicker,
.ggc-sidebar-compact .ggc-intro {
  display: none;
}

.ggc-sidebar-compact .ggc-title {
  font-size: 1.12rem;
  line-height: 1.25;
  margin-bottom: .8rem;
}

.ggc-sidebar-compact .ggc-list {
  gap: .55rem;
}

.ggc-sidebar-compact .ggc-list-row {
  padding: .7rem .75rem;
  border-radius: 12px;
  box-shadow: none;
}

.ggc-sidebar-compact .ggc-card h3,
.ggc-sidebar-compact .ggc-list-row h3,
.ggc-sidebar-compact .ggc-event h3 {
  font-size: .98rem;
  line-height: 1.32;
  font-weight: 650;
}

.ggc-sidebar-compact .ggc-muted,
.ggc-sidebar-compact .ggc-card-meta,
.ggc-sidebar-compact .ggc-event-meta {
  font-size: .78rem;
}

/* v0.1.5 unified Gridizer sidebar panels */
.ggc-sidebar-panel {
  margin: 0 0 1.65rem 0;
}

.ggc-sidebar-heading {
  margin: 0 0 .85rem 0;
  color: #111827;
  font-size: clamp(1.26rem, 1.75vw, 1.55rem);
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.ggc-sidebar-list {
  display: grid;
  gap: .72rem;
}

.ggc-sidebar-item {
  padding: .82rem .9rem;
  border: 1px solid #e4e9f1;
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .045);
}

.ggc-sidebar-item h3 {
  margin: 0 0 .34rem 0;
  color: #13223a;
  font-size: .98rem;
  line-height: 1.34;
  font-weight: 540;
  letter-spacing: -0.005em;
}

.ggc-sidebar-item h3 a {
  color: #13223a;
  text-decoration: none;
}

.ggc-sidebar-item h3 a:hover {
  color: #1e73be;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}

.ggc-sidebar-meta {
  color: #65758b;
  font-size: .78rem;
  line-height: 1.35;
}

/* Keep old sidebar compact blocks from looking inconsistent if still present */
.ggc-sidebar-compact .ggc-title {
  font-size: clamp(1.26rem, 1.75vw, 1.55rem);
  font-weight: 600;
}

.ggc-sidebar-compact .ggc-list-row h3 {
  font-weight: 540;
}

/* v0.1.6 softer sidebar typography */
.ggc-sidebar-heading {
  font-weight: 500 !important;
  color: #26354a !important;
  letter-spacing: -0.01em !important;
}

.ggc-sidebar-item h3 {
  font-weight: 460 !important;
  color: #1f2937 !important;
}

.ggc-sidebar-item h3 a {
  font-weight: 460 !important;
  color: #1f2937 !important;
}

.ggc-sidebar-meta {
  color: #718096 !important;
}

/* v0.1.6 softer sidebar typography */
.ggc-sidebar-heading {
  font-weight: 500 !important;
  color: #26354a !important;
  letter-spacing: -0.01em !important;
}

.ggc-sidebar-item h3 {
  font-weight: 460 !important;
  color: #1f2937 !important;
}

.ggc-sidebar-item h3 a {
  font-weight: 460 !important;
  color: #1f2937 !important;
}

.ggc-sidebar-meta {
  color: #718096 !important;
}

/* v0.1.6 robust carousel state */
.ggc-carousel {
  position: relative;
  overflow: hidden;
}

.ggc-carousel-track {
  position: relative;
}

.ggc-carousel-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateX(52px);
  transition:
    opacity var(--ggc-push-time, 700ms) ease,
    transform var(--ggc-push-time, 700ms) ease;
  pointer-events: none;
  z-index: 1;
}

.ggc-carousel-slide.is-active {
  opacity: 1;
  transform: translateX(0);
  pointer-events: auto;
  z-index: 3;
}

.ggc-carousel-slide.is-prev {
  opacity: 0;
  transform: translateX(-52px);
  pointer-events: none;
  z-index: 2;
}

/* v0.1.8 robust carousel height fix */
.ggc-carousel-block {
  margin-bottom: 3rem;
}

.ggc-carousel {
  position: relative !important;
  overflow: hidden !important;
  min-height: 620px !important;
  height: 620px !important;
}

.ggc-carousel-track {
  position: relative !important;
  min-height: 620px !important;
  height: 620px !important;
}

.ggc-carousel-slide {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  opacity: 0;
  transform: translateX(52px);
  transition:
    opacity var(--ggc-push-time, 700ms) ease,
    transform var(--ggc-push-time, 700ms) ease;
  pointer-events: none;
  z-index: 1;
}

.ggc-carousel-slide.is-active {
  opacity: 1 !important;
  transform: translateX(0) !important;
  pointer-events: auto !important;
  z-index: 3 !important;
}

.ggc-carousel-slide.is-prev {
  opacity: 0 !important;
  transform: translateX(-52px) !important;
  pointer-events: none !important;
  z-index: 2 !important;
}

@media (max-width: 760px) {
  .ggc-carousel,
  .ggc-carousel-track {
    min-height: 820px !important;
    height: 820px !important;
  }
}

/* v0.1.9 carousel compact card refinement */
.ggc-carousel-card .ggc-event-meta {
  margin-bottom: .82rem;
}

.ggc-carousel-card h3 {
  margin-top: 0 !important;
}

/* v0.1.10 dynamic carousel height */
.ggc-carousel,
.ggc-carousel-track {
  min-height: var(--ggc-carousel-height, 360px) !important;
  height: var(--ggc-carousel-height, 360px) !important;
  transition:
    height 420ms ease,
    min-height 420ms ease;
}

.ggc-carousel-block {
  margin-bottom: 1.6rem !important;
}

/* v0.1.11 carousel card bottom breathing room */
.ggc-carousel-card {
  padding-bottom: 1.75rem !important;
}

/* v0.1.12 Grideval view selector */
.ggc-view-selector {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: .65rem;
  margin: 1rem 0 1.15rem 0;
}

.ggc-view-selector label {
  color: #536173;
  font-size: .88rem;
  font-weight: 500;
}

.ggc-view-selector select {
  min-width: 230px;
  padding: .55rem .75rem;
  border: 1px solid #d8e1ec;
  border-radius: 12px;
  background: #ffffff;
  color: #182235;
  font-size: .92rem;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.ggc-view-selector select:focus {
  outline: none;
  border-color: #9db9d8;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, .12);
}

@media (max-width: 760px) {
  .ggc-view-selector {
    align-items: stretch;
    flex-direction: column;
    gap: .35rem;
  }

  .ggc-view-selector select {
    width: 100%;
    min-width: 0;
  }
}

/* v0.1.13 view selector below carousel intro */
.ggc-view-selector {
  display: grid;
  grid-template-columns: auto minmax(220px, 320px);
  align-items: center;
  justify-content: start;
  column-gap: .7rem;
  row-gap: .35rem;
  margin: 1rem 0 1.2rem 0;
}

.ggc-view-selector label {
  color: #536173;
  font-size: .88rem;
  font-weight: 500;
}

.ggc-view-selector select {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid #d8e1ec;
  border-radius: 12px;
  background: #ffffff;
  color: #182235;
  font-size: .92rem;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.ggc-view-selector select:focus {
  outline: none;
  border-color: #9db9d8;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, .12);
}

.ggc-view-note {
  grid-column: 2;
  margin: 0;
  color: #66758a;
  font-size: .82rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .ggc-view-selector {
    grid-template-columns: 1fr;
  }

  .ggc-view-note {
    grid-column: 1;
  }
}

/* v0.1.14 standalone view selector */
.ggc-view-selector {
  display: grid;
  grid-template-columns: auto minmax(220px, 320px);
  align-items: center;
  justify-content: start;
  column-gap: .7rem;
  row-gap: .35rem;
  margin: 1rem 0 1.2rem 0;
}

.ggc-view-selector label {
  color: #536173;
  font-size: .88rem;
  font-weight: 500;
}

.ggc-view-selector select {
  width: 100%;
  padding: .55rem .75rem;
  border: 1px solid #d8e1ec;
  border-radius: 12px;
  background: #ffffff;
  color: #182235;
  font-size: .92rem;
  line-height: 1.25;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .045);
}

.ggc-view-selector select:focus {
  outline: none;
  border-color: #9db9d8;
  box-shadow: 0 0 0 3px rgba(30, 115, 190, .12);
}

.ggc-view-note {
  grid-column: 2;
  margin: 0;
  color: #66758a;
  font-size: .82rem;
  line-height: 1.35;
}

@media (max-width: 760px) {
  .ggc-view-selector {
    grid-template-columns: 1fr;
  }

  .ggc-view-note {
    grid-column: 1;
  }
}

/* Bucket detail cards */
.ggc-bucket-detail {
  margin: 42px 0 24px;
}

.ggc-bucket-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.ggc-bucket-detail-head h2 {
  margin: 0 0 8px;
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.ggc-bucket-detail-head p {
  max-width: 760px;
  margin: 0;
  color: #365071;
  font-size: 16px;
  line-height: 1.55;
}

.ggc-kicker {
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 800;
  color: #1d5b9f;
}

.ggc-back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(20, 54, 96, 0.18);
  border-radius: 999px;
  padding: 9px 14px;
  text-decoration: none;
  color: #0b2344;
  background: #fff;
  white-space: nowrap;
}

.ggc-back-link:hover {
  border-color: rgba(20, 54, 96, 0.38);
}

.ggc-view-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 24px;
}

.ggc-view-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(20, 54, 96, 0.16);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1;
  text-decoration: none;
  color: #18395f;
  background: rgba(255, 255, 255, 0.78);
}

.ggc-view-pill.is-active {
  color: #fff;
  background: #0b3a70;
  border-color: #0b3a70;
}

.ggc-event-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.ggc-event-card {
  border: 1px solid rgba(20, 54, 96, 0.14);
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 14px 36px rgba(9, 31, 64, 0.05);
}

.ggc-event-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 10px;
  color: #496485;
  font-size: 13px;
}

.ggc-event-card h3 {
  margin: 0 0 10px;
  font-size: 21px;
  line-height: 1.22;
  letter-spacing: -0.02em;
}

.ggc-event-card h3 a {
  color: #08264a;
  text-decoration: none;
}

.ggc-event-card h3 a:hover {
  text-decoration: underline;
}

.ggc-event-summary {
  margin: 0 0 14px;
  color: #365071;
  line-height: 1.5;
}

.ggc-score-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 14px 0 10px;
}

.ggc-score-row span {
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(14, 67, 128, 0.07);
  color: #0b2f59;
  font-size: 13px;
}

.ggc-view-reason {
  margin-top: 10px;
  color: #0b2f59;
  font-size: 14px;
  font-weight: 700;
}

.ggc-event-matches {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}

.ggc-match-group {
  border-radius: 999px;
  padding: 6px 9px;
  background: rgba(17, 91, 162, 0.08);
  color: #315274;
  font-size: 12px;
}

.ggc-empty-state {
  border: 1px solid rgba(20, 54, 96, 0.14);
  border-radius: 18px;
  padding: 18px;
  background: #fff;
  color: #365071;
}

@media (max-width: 760px) {
  .ggc-bucket-detail-head {
    display: block;
  }

  .ggc-back-link {
    margin-top: 16px;
  }

  .ggc-event-card-grid {
    grid-template-columns: 1fr;
  }
}


/* Sidebar: Top Entities */
.ggc-sidebar-top-entities {
  margin: 0 0 28px;
  padding: 0;
}

.ggc-sidebar-top-entities .ggc-sidebar-heading {
  margin: 0 0 14px;
}

.ggc-sidebar-entity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.ggc-sidebar-entity-item {
  margin: 0;
  padding: 12px 0;
  border-bottom: 1px solid rgba(20, 54, 96, 0.12);
}

.ggc-sidebar-entity-item:first-child {
  padding-top: 0;
}

.ggc-sidebar-entity-name {
  display: block;
  color: #08264a;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 500;
  text-decoration: none;
}

.ggc-sidebar-entity-name:hover {
  text-decoration: underline;
}

.ggc-sidebar-entity-type {
  display: inline-block;
  margin-top: 4px;
  color: #5b6f88;
  font-size: 12px;
  line-height: 1.2;
}

.ggc-sidebar-entity-meta {
  margin-top: 6px;
  color: #62758e;
  font-size: 12px;
  line-height: 1.4;
}

.ggc-sidebar-muted {
  margin: 0;
  color: #62758e;
  font-size: 13px;
  line-height: 1.45;
}

/* Align Top Entities list with sidebar text above */
.ggc-sidebar-top-entities .ggc-sidebar-entity-list {
  padding-left: 16px;
}


/* Slightly more space below Top Entities heading */
.ggc-sidebar-top-entities .ggc-sidebar-heading {
  margin-bottom: 20px;
}



/* v0.1.32 carousel controls in fixed top toolbar */
.ggc-carousel-toolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  flex-wrap: wrap !important;
  margin: 0 0 14px !important;
}

.ggc-carousel-toolbar-select {
  flex: 1 1 auto !important;
  min-width: 220px !important;
}

.ggc-carousel-toolbar .ggc-view-selector {
  margin: 0 !important;
}

.ggc-carousel-controls {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex: 0 0 auto !important;
}

.ggc-carousel-control {
  width: 34px !important;
  height: 34px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(15, 23, 42, 0.22) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: #0f172a !important;
  cursor: pointer !important;
  font-size: 22px !important;
  line-height: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
}

.ggc-carousel-control:hover,
.ggc-carousel-control:focus {
  border-color: rgba(15, 23, 42, 0.42) !important;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.10) !important;
  outline: none !important;
}

@media (max-width: 640px) {
  .ggc-carousel-toolbar {
    align-items: flex-start !important;
  }

  .ggc-carousel-controls {
    width: 100% !important;
    justify-content: flex-end !important;
  }
}


/* v0.1.34 reverse carousel direction */
.ggc-carousel.is-reverse .ggc-carousel-slide {
  transform: translateX(-30px) !important;
}

.ggc-carousel.is-reverse .ggc-carousel-slide.is-active {
  transform: translateX(0) !important;
}

.ggc-carousel.is-reverse .ggc-carousel-slide.is-prev {
  transform: translateX(30px) !important;
}

/* v0.1.34 bracket-style carousel controls */
.ggc-carousel-control {
  width: auto !important;
  height: auto !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 2px !important;
  min-width: 0 !important;
  color: #0f172a !important;
  font-size: 18px !important;
  line-height: 1.2 !important;
  font-weight: 600 !important;
}

.ggc-carousel-control::before {
  content: "[" !important;
  margin-right: 2px !important;
}

.ggc-carousel-control::after {
  content: "]" !important;
  margin-left: 2px !important;
}

.ggc-carousel-control:hover,
.ggc-carousel-control:focus {
  border: none !important;
  box-shadow: none !important;
  background: transparent !important;
  transform: none !important;
  opacity: 0.72 !important;
  outline: none !important;
}


/* v0.1.35 carousel arrow test: bold blue, no brackets */
.ggc-carousel-control {
  color: #2563eb !important;
  font-size: 28px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 4px !important;
  min-width: 28px !important;
  width: auto !important;
  height: auto !important;
}

.ggc-carousel-control::before,
.ggc-carousel-control::after {
  content: none !important;
  display: none !important;
}

.ggc-carousel-control:hover,
.ggc-carousel-control:focus {
  color: #1d4ed8 !important;
  opacity: 1 !important;
  transform: none !important;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  outline: none !important;
}

/* CR019 System status sidebar */
.ggc-system-panel {
  margin: 0 0 1.25rem;
}

.ggc-system-list {
  display: grid;
  gap: 0.75rem;
}

.ggc-system-card {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  background: #ffffff;
  padding: 0.85rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ggc-system-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.ggc-system-card-head strong {
  font-size: 0.95rem;
  line-height: 1.2;
  color: #0f172a;
}

.ggc-system-card-head span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.6rem;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  font-size: 0.72rem;
  font-weight: 700;
  background: rgba(100, 116, 139, 0.12);
  color: #475569;
}

.ggc-system-card.is-ok .ggc-system-card-head span {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}

.ggc-system-card.is-warn .ggc-system-card-head span {
  background: rgba(245, 158, 11, 0.16);
  color: #b45309;
}

.ggc-system-card.is-muted .ggc-system-card-head span {
  background: rgba(100, 116, 139, 0.12);
  color: #64748b;
}

.ggc-system-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.ggc-system-metric {
  min-width: 0;
}

.ggc-system-metric span {
  display: block;
  color: #64748b;
  font-size: 0.72rem;
  line-height: 1.25;
}

.ggc-system-metric strong {
  display: block;
  color: #0f172a;
  font-size: 0.84rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ggc-system-panel.is-compact .ggc-system-card {
  padding: 0.75rem;
}

.ggc-system-panel.is-compact .ggc-system-metrics {
  gap: 0.45rem;
}

@media (max-width: 480px) {
  .ggc-system-metrics {
    grid-template-columns: 1fr;
  }
}

/* CR019-C System status: adaptive layout for sidebar and footer */
.ggc-system-panel {
  width: 100%;
}

.ggc-system-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 0.75rem;
  align-items: stretch;
}

.ggc-system-card {
  min-width: 0;
  height: 100%;
}

.ggc-system-panel.is-compact .ggc-system-list {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}

@media (max-width: 520px) {
  .ggc-system-list,
  .ggc-system-panel.is-compact .ggc-system-list {
    grid-template-columns: 1fr;
  }
}

/* CR019-D System status optional responsive min-width */
.ggc-system-panel.has-min-width {
  min-width: var(--ggc-system-min-width, min(550px, calc(100vw - 32px)));
  max-width: 100%;
}

.ggc-system-panel.has-min-width .ggc-system-list {
  grid-template-columns: repeat(auto-fit, minmax(165px, 1fr));
}

@media (max-width: 620px) {
  .ggc-system-panel.has-min-width {
    min-width: 0;
    width: 100%;
  }
}

/* CR020 Sidebar WordPress search styling */
.widget_block .wp-block-search,
.ggc-sidebar-panel .wp-block-search {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.widget_block .wp-block-search__label,
.ggc-sidebar-panel .wp-block-search__label {
  display: block;
  margin: 0 0 0.55rem;
  color: #0f172a;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}

.widget_block .wp-block-search__inside-wrapper,
.ggc-sidebar-panel .wp-block-search__inside-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.widget_block .wp-block-search__input,
.ggc-sidebar-panel .wp-block-search__input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 0.62rem 0.7rem;
  color: #0f172a;
  background: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.25;
  outline: none;
}

.widget_block .wp-block-search__input:focus,
.ggc-sidebar-panel .wp-block-search__input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.widget_block .wp-block-search__button,
.ggc-sidebar-panel .wp-block-search__button {
  border: 0;
  border-radius: 12px;
  padding: 0.62rem 0.85rem;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
}

.widget_block .wp-block-search__button:hover,
.ggc-sidebar-panel .wp-block-search__button:hover {
  background: #1d4ed8;
}

@media (max-width: 520px) {
  .widget_block .wp-block-search__inside-wrapper,
  .ggc-sidebar-panel .wp-block-search__inside-wrapper {
    flex-direction: column;
  }

  .widget_block .wp-block-search__button,
  .ggc-sidebar-panel .wp-block-search__button {
    width: 100%;
  }
}

/* CR020 Search UX */
.ggc-signal-search,
.widget_block .wp-block-search {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ggc-signal-search-form,
.widget_block .wp-block-search {
  width: 100%;
}

.ggc-signal-search-row,
.widget_block .wp-block-search__inside-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.ggc-signal-search-input,
.widget_block .wp-block-search__input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 0.62rem 0.7rem;
  color: #0f172a;
  background: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.25;
  outline: none;
}

.ggc-signal-search-input:focus,
.widget_block .wp-block-search__input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ggc-signal-search-button,
.widget_block .wp-block-search__button {
  border: 0;
  border-radius: 12px;
  padding: 0.62rem 0.85rem;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
}

.ggc-signal-search-button:hover,
.widget_block .wp-block-search__button:hover {
  background: #1d4ed8;
}

.ggc-signal-search-note {
  margin: 0.55rem 0 0;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.35;
}

.ggc-signal-results-panel {
  margin: 0 0 2rem;
}

.ggc-signal-results-panel h1 {
  margin: 0 0 1rem;
}

.ggc-signal-results-summary,
.ggc-signal-results-empty {
  color: #475569;
  font-size: 0.95rem;
}

.ggc-signal-results-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.ggc-signal-result {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ggc-signal-result-type {
  display: inline-flex;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.ggc-signal-result h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
}

.ggc-signal-result h3 a {
  color: #0f172a;
  text-decoration: none;
}

.ggc-signal-result h3 a:hover {
  color: #2563eb;
}

.ggc-signal-result-meta {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ggc-signal-result p {
  margin: 0.55rem 0 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .ggc-signal-search-row,
  .widget_block .wp-block-search__inside-wrapper {
    flex-direction: column;
  }

  .ggc-signal-search-button,
  .widget_block .wp-block-search__button {
    width: 100%;
  }
}

/* CR020 Search UX */
.ggc-signal-search,
.widget_block .wp-block-search {
  margin: 0 0 1.25rem;
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ggc-signal-search-form,
.widget_block .wp-block-search {
  width: 100%;
}

.ggc-signal-search-row,
.widget_block .wp-block-search__inside-wrapper {
  display: flex;
  gap: 0.5rem;
  align-items: stretch;
}

.ggc-signal-search-input,
.widget_block .wp-block-search__input {
  min-width: 0;
  width: 100%;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 12px;
  padding: 0.62rem 0.7rem;
  color: #0f172a;
  background: #f8fafc;
  font-size: 0.9rem;
  line-height: 1.25;
  outline: none;
}

.ggc-signal-search-input:focus,
.widget_block .wp-block-search__input:focus {
  border-color: #2563eb;
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.ggc-signal-search-button,
.widget_block .wp-block-search__button {
  border: 0;
  border-radius: 12px;
  padding: 0.62rem 0.85rem;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.25;
  cursor: pointer;
  white-space: nowrap;
}

.ggc-signal-search-button:hover,
.widget_block .wp-block-search__button:hover {
  background: #1d4ed8;
}

.ggc-signal-search-note {
  margin: 0.55rem 0 0;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.35;
}

.ggc-signal-results-panel {
  margin: 0 0 2rem;
}

.ggc-signal-results-panel h1 {
  margin: 0 0 1rem;
}

.ggc-signal-results-summary,
.ggc-signal-results-empty {
  color: #475569;
  font-size: 0.95rem;
}

.ggc-signal-results-list {
  display: grid;
  gap: 0.8rem;
  margin-top: 1rem;
}

.ggc-signal-result {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.ggc-signal-result-type {
  display: inline-flex;
  margin-bottom: 0.45rem;
  border-radius: 999px;
  padding: 0.18rem 0.5rem;
  background: rgba(37, 99, 235, 0.10);
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
}

.ggc-signal-result h3 {
  margin: 0 0 0.35rem;
  font-size: 1rem;
  line-height: 1.3;
}

.ggc-signal-result h3 a {
  color: #0f172a;
  text-decoration: none;
}

.ggc-signal-result h3 a:hover {
  color: #2563eb;
}

.ggc-signal-result-meta {
  color: #64748b;
  font-size: 0.78rem;
  line-height: 1.35;
}

.ggc-signal-result p {
  margin: 0.55rem 0 0;
  color: #334155;
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 520px) {
  .ggc-signal-search-row,
  .widget_block .wp-block-search__inside-wrapper {
    flex-direction: column;
  }

  .ggc-signal-search-button,
  .widget_block .wp-block-search__button {
    width: 100%;
  }
}

/* CR022-C Detail pages */
.ggc-detail-panel {
  margin: 0 0 2rem;
  padding: 1.25rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 22px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
}

.ggc-detail-kicker {
  margin-bottom: 0.45rem;
  color: #2563eb;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ggc-detail-panel h1 {
  margin: 0 0 0.55rem;
  color: #0f172a;
  font-size: clamp(1.55rem, 3vw, 2.25rem);
  line-height: 1.12;
}

.ggc-detail-meta {
  margin: 0.25rem 0 0.9rem;
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.4;
}

.ggc-detail-summary {
  margin: 0.9rem 0 1rem;
  color: #334155;
  font-size: 1rem;
  line-height: 1.62;
}

.ggc-detail-section {
  margin-top: 1.2rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.ggc-detail-section h3 {
  margin: 0 0 0.65rem;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.25;
}

.ggc-detail-pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.ggc-detail-pill {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: 0.34rem 0.65rem;
  background: rgba(37, 99, 235, 0.10);
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
  text-decoration: none;
}

.ggc-detail-pill:hover {
  background: rgba(37, 99, 235, 0.16);
  color: #1e40af;
}

.ggc-detail-list {
  display: grid;
  gap: 0.65rem;
}

.ggc-detail-list-item {
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ggc-detail-list-item:last-child {
  border-bottom: 0;
}

.ggc-detail-list-item a {
  color: #0f172a;
  font-weight: 750;
  line-height: 1.35;
  text-decoration: none;
}

.ggc-detail-list-item a:hover {
  color: #2563eb;
}

.ggc-detail-source-link,
.ggc-detail-lock-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  padding: 0.62rem 0.9rem;
  background: #2563eb;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
}

.ggc-detail-source-link:hover,
.ggc-detail-lock-button:hover {
  background: #1d4ed8;
  color: #ffffff;
}

.ggc-detail-lock {
  margin-top: 1.15rem;
  padding: 1rem;
  border: 1px solid rgba(37, 99, 235, 0.18);
  border-radius: 18px;
  background: rgba(37, 99, 235, 0.06);
}

.ggc-detail-lock strong {
  display: block;
  margin-bottom: 0.35rem;
  color: #0f172a;
  font-size: 0.98rem;
}

.ggc-detail-lock p {
  margin: 0 0 0.85rem;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.5;
}

.ggc-detail-empty {
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 16px;
  background: #ffffff;
  color: #64748b;
}

/* CR023-A Landing teaser lists */
.ggc-landing-teasers {
  margin: 2rem 0;
}

.ggc-landing-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.ggc-landing-teaser-col {
  min-width: 0;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 20px;
  background: #ffffff;
  padding: 1rem;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.05);
}

.ggc-landing-teaser-col h3 {
  margin: 0 0 0.75rem;
  color: #0f172a;
  font-size: 1rem;
  line-height: 1.25;
}

.ggc-landing-teaser-list {
  display: grid;
  gap: 0.65rem;
}

.ggc-landing-teaser-item {
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.ggc-landing-teaser-item:last-child {
  border-bottom: 0;
}

.ggc-landing-teaser-item a,
.ggc-landing-teaser-item span {
  display: block;
  color: #0f172a;
  font-size: 0.92rem;
  font-weight: 760;
  line-height: 1.35;
  text-decoration: none;
}

.ggc-landing-teaser-item a:hover {
  color: #2563eb;
}

.ggc-landing-teaser-meta {
  margin-top: 0.22rem;
  color: #64748b;
  font-size: 0.76rem;
  line-height: 1.35;
}

.ggc-landing-teaser-more {
  display: inline-flex;
  margin-top: 0.85rem;
  color: #2563eb;
  font-size: 0.84rem;
  font-weight: 800;
  text-decoration: none;
}

.ggc-landing-teaser-more:hover {
  color: #1d4ed8;
}

.ggc-landing-teaser-empty {
  color: #64748b;
  font-size: 0.88rem;
}

@media (max-width: 900px) {
  .ggc-landing-teaser-grid {
    grid-template-columns: 1fr;
  }
}

/* CR023-D Carousel height stabilization */
.ggc-carousel-card {
  min-height: 220px;
  max-height: 255px;
  overflow: hidden;
}

.ggc-carousel-card h3 {
  min-width: 0;
  max-width: 100%;
  margin-bottom: 0.55rem;
}

.ggc-carousel-card h3 a,
.ggc-carousel-card h3 span {
  display: block;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Keep carousel summary readable but height-stable */
.ggc-carousel-card .ggc-event-summary {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Hide deeper reasoning in carousel; keep it for list/detail views */
.ggc-carousel-card .ggc-note {
  display: none;
}

/* CR023-E Landing gateway blocks */
.ggc-landing-gateways {
  margin: 2rem 0;
}

.ggc-section-heading-soft {
  margin: 0 0 0.45rem;
  color: #0f172a;
  font-size: 1.05rem;
  font-weight: 680;
  line-height: 1.25;
}

.ggc-section-intro-soft {
  max-width: 760px;
  margin: 0 0 1rem;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.55;
}

.ggc-gateway-stack {
  display: grid;
  gap: 1rem;
}

.ggc-gateway-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 32%) 1fr;
  min-height: 176px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 24px;
  background: #ffffff;
  color: inherit;
  text-decoration: none;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.ggc-gateway-block:hover {
  transform: translateY(-1px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 18px 38px rgba(15, 23, 42, 0.08);
}

.ggc-gateway-visual {
  position: relative;
  min-height: 176px;
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.38), transparent 28%),
    linear-gradient(135deg, rgba(37,99,235,0.95), rgba(15,23,42,0.96));
}

.ggc-gateway-block.is-entities .ggc-gateway-visual {
  background:
    radial-gradient(circle at 24% 26%, rgba(255,255,255,0.36), transparent 28%),
    linear-gradient(135deg, rgba(14,116,144,0.95), rgba(15,23,42,0.96));
}

.ggc-gateway-block.is-buckets .ggc-gateway-visual {
  background:
    radial-gradient(circle at 22% 22%, rgba(255,255,255,0.34), transparent 28%),
    linear-gradient(135deg, rgba(124,58,237,0.94), rgba(15,23,42,0.96));
}

.ggc-gateway-block.has-image .ggc-gateway-visual {
  background-image:
    linear-gradient(90deg, rgba(15,23,42,0.40), rgba(15,23,42,0.20)),
    var(--ggc-gateway-image);
  background-size: cover;
  background-position: center;
}

.ggc-gateway-visual::before {
  content: "";
  position: absolute;
  inset: 22px;
  border: 1px solid rgba(255,255,255,0.28);
  border-radius: 22px;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.14) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,0.11) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.7;
}

.ggc-gateway-visual::after {
  content: "";
  position: absolute;
  right: -1px;
  bottom: -1px;
  width: 102%;
  height: 34px;
  background:
    linear-gradient(135deg, transparent 12px, #ffffff 0) 0 0 / 24px 24px repeat-x;
  opacity: 1;
}

.ggc-gateway-content {
  display: flex;
  min-width: 0;
  flex-direction: column;
  justify-content: center;
  padding: 1.15rem 1.25rem;
}

.ggc-gateway-kicker {
  margin-bottom: 0.35rem;
  color: #2563eb;
  font-size: 0.72rem;
  font-weight: 780;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.ggc-gateway-title {
  color: #0f172a;
  font-size: 1.12rem;
  font-weight: 680;
  line-height: 1.25;
}

.ggc-gateway-text {
  max-width: 680px;
  margin-top: 0.45rem;
  color: #475569;
  font-size: 0.92rem;
  line-height: 1.55;
}

.ggc-gateway-action {
  margin-top: 0.8rem;
  color: #2563eb;
  font-size: 0.84rem;
  font-weight: 800;
}

@media (max-width: 760px) {
  .ggc-gateway-block {
    grid-template-columns: 1fr;
  }

  .ggc-gateway-visual {
    min-height: 118px;
  }

  .ggc-gateway-content {
    padding: 1rem;
  }
}

/* CR023-H Sticky navigation */
body:not(.admin-bar) .main-navigation,
body:not(.admin-bar) #site-navigation {
  position: sticky;
  top: 0;
  z-index: 9999;
}

body.admin-bar .main-navigation,
body.admin-bar #site-navigation {
  position: sticky;
  top: 32px;
  z-index: 9999;
}

.main-navigation,
#site-navigation {
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

/* CR023-H Full width hero */
.ggc-hero-wide {
  position: relative;
  width: 100vw;
  min-height: var(--ggc-hero-height, 220px);
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(15,23,42,0.82), rgba(15,23,42,0.44), rgba(15,23,42,0.72)),
    var(--ggc-hero-image);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.ggc-hero-overlay {
  min-height: var(--ggc-hero-height, 220px);
  display: flex;
  align-items: center;
}

.ggc-hero-inner {
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.3rem 0;
  color: #ffffff;
}

.ggc-hero-inner h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(1.65rem, 3.4vw, 3rem);
  font-weight: 760;
  line-height: 1.05;
  letter-spacing: -0.035em;
}

.ggc-hero-inner p {
  max-width: 720px;
  margin: 0.65rem 0 0;
  color: rgba(255,255,255,0.88);
  font-size: clamp(0.95rem, 1.5vw, 1.18rem);
  line-height: 1.5;
}

@media (max-width: 782px) {
  body.admin-bar .main-navigation,
  body.admin-bar #site-navigation {
    top: 46px;
  }

  .ggc-hero-wide {
    min-height: 190px;
  }
}

/* CR023-I GeneratePress sticky header + hero placement */
html body #masthead.site-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 10000 !important;
  background: #ffffff;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
}

html body.admin-bar #masthead.site-header {
  top: 32px !important;
}

@media (max-width: 782px) {
  html body.admin-bar #masthead.site-header {
    top: 46px !important;
  }
}

/* Hide default page title on Grideval landing page */
body.page-id-132 .entry-header,
body.page-id-132 h1.entry-title {
  display: none !important;
}

/* Hero sits directly below header, above content/sidebar */
body.page-id-132.ggc-has-hooked-hero .ggc-hero-wide {
  margin-top: 0 !important;
  margin-bottom: 1.5rem;
}

/* Remove extra top spacing on the landing page content */
body.page-id-132.ggc-has-hooked-hero .site-content,
body.page-id-132.ggc-has-hooked-hero #content {
  padding-top: 0 !important;
}

/* CR023-J Hero position and multilingual hero-page cleanup */
.ggc-hero-wide {
  background-position: var(--ggc-hero-position, center center) !important;
}

/* Hide default WordPress page title on all hooked hero pages */
body.ggc-has-hooked-hero .entry-header,
body.ggc-has-hooked-hero h1.entry-title {
  display: none !important;
}

/* Keep hooked hero directly under header */
body.ggc-has-hooked-hero .ggc-hero-wide {
  margin-top: 0 !important;
}

/* CR023-L Responsive hero image position and height */
.ggc-hero-wide {
  background-position: var(--ggc-hero-position, center center) !important;
  min-height: var(--ggc-hero-height, 220px);
}

.ggc-hero-overlay {
  min-height: var(--ggc-hero-height, 220px);
}

@media (max-width: 1024px) {
  .ggc-hero-wide {
    background-position: var(--ggc-hero-position-tablet, var(--ggc-hero-position, center center)) !important;
    min-height: var(--ggc-hero-height-tablet, var(--ggc-hero-height, 220px));
  }

  .ggc-hero-overlay {
    min-height: var(--ggc-hero-height-tablet, var(--ggc-hero-height, 220px));
  }
}

@media (max-width: 640px) {
  .ggc-hero-wide {
    background-position: var(--ggc-hero-position-mobile, var(--ggc-hero-position-tablet, var(--ggc-hero-position, center center))) !important;
    min-height: var(--ggc-hero-height-mobile, var(--ggc-hero-height-tablet, var(--ggc-hero-height, 190px)));
  }

  .ggc-hero-overlay {
    min-height: var(--ggc-hero-height-mobile, var(--ggc-hero-height-tablet, var(--ggc-hero-height, 190px)));
  }
}

/* CR024-I Source Signal Metadata Box */
.ggc-source-signal-box {
  border: 1px solid rgba(15, 23, 42, 0.10);
  border-radius: 18px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.06);
}

.ggc-source-signal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 12px 0;
}

.ggc-source-signal-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.9);
}

.ggc-source-signal-label {
  display: block;
  font-size: 0.76rem;
  color: #64748b;
  margin-bottom: 4px;
}

.ggc-source-signal-card strong {
  font-size: 1.05rem;
  color: #0f172a;
}

.ggc-source-signal-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.ggc-source-signal-topics span {
  font-size: 0.78rem;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #334155;
}

.ggc-source-signal-note {
  margin: 12px 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

@media (max-width: 760px) {
  .ggc-source-signal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* CR023-M Landing gateway teaser images */
.ggc-gateway-block.has-image .ggc-gateway-visual {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,0.38), transparent 28%),
    linear-gradient(135deg, rgba(37,99,235,0.72), rgba(15,23,42,0.58)),
    var(--ggc-gateway-image) !important;
  background-size: auto, auto, cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

/* CR023-N Clean landing gateway teaser images */
.ggc-gateway-block.has-image .ggc-gateway-visual {
  background-image: var(--ggc-gateway-image) !important;
  background-size: cover !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
}

.ggc-gateway-block.has-image .ggc-gateway-visual::before,
.ggc-gateway-block.has-image .ggc-gateway-visual::after {
  display: none !important;
  content: none !important;
}

/* CR028-B: expanded event UX for /events/?gv_view=...&open=ID */
.ggc-events-page-list .ggc-event-row {
  transition: border-color .18s ease, box-shadow .18s ease, background-color .18s ease;
}

.ggc-events-page-list .ggc-event-row.is-open {
  border-color: rgba(15, 23, 42, .18);
  box-shadow: 0 14px 38px rgba(15, 23, 42, .10);
  background: #ffffff;
}

.ggc-events-page-list .ggc-event-row.is-compact {
  opacity: .92;
}

.ggc-events-page-list .ggc-event-expanded {
  margin-top: 12px;
}

.ggc-events-page-list .ggc-event-summary {
  margin: 10px 0 0;
  max-width: 74ch;
}

.ggc-events-page-list .ggc-event-source-action {
  margin: 12px 0 0;
}

.ggc-events-page-list .ggc-event-source-action a {
  font-weight: 700;
  text-decoration: none;
}

.ggc-events-page-list .ggc-event-source-action a:hover {
  text-decoration: underline;
}

/* CR028-C: instant accordion visibility for event list */
.ggc-events-page-list .ggc-event-row.is-compact .ggc-event-expanded {
  display: none;
}

.ggc-events-page-list .ggc-event-row.is-open .ggc-event-expanded {
  display: block;
}

.ggc-events-page-list .ggc-event-toggle {
  cursor: pointer;
}

.ggc-events-page-list .ggc-event-row.is-open .ggc-event-toggle {
  text-decoration-thickness: 2px;
}

/* CR028-D: keep the view selector visible after view changes */
#ggc-view-select {
  scroll-margin-top: 110px;
}

@media (max-width: 640px) {
  .ggc-hooked-hero,
  .ggc-hero {
    background-image: var(--ggc-hero-image-mobile, var(--ggc-hero-image));
  }
}

@media (max-width: 640px) {
  .ggc-hero-wide[style*="--ggc-hero-image-mobile"] {
    background-image: var(--ggc-hero-image-mobile, var(--ggc-hero-image)) !important;
  }
}

/* CR097: Carousel view/language context */
.ggc-carousel-toolbar-select {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ggc-carousel-toolbar-select .ggc-view-selector {
  margin: 0;
}

.ggc-carousel-context {
  font-size: 0.92rem;
  color: #52637a;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ggc-carousel-toolbar-select {
    align-items: flex-start;
    gap: 8px;
  }

  .ggc-carousel-context {
    white-space: normal;
    font-size: 0.86rem;
  }
}

/* CR097: Carousel selector/context layout */
.ggc-carousel-toolbar-select {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.ggc-carousel-toolbar-select .ggc-view-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.ggc-carousel-toolbar-select .ggc-view-selector label {
  display: none;
}

.ggc-carousel-context {
  display: inline-flex;
  align-items: center;
  font-size: 0.92rem;
  color: #52637a;
  white-space: nowrap;
}

@media (max-width: 640px) {
  .ggc-carousel-toolbar-select {
    gap: 8px;
  }

  .ggc-carousel-context {
    white-space: normal;
    font-size: 0.86rem;
  }
}
