/* ==========================================================
   POWER & CORRIDORS — FORESIGHT DESK
   Separate brand system from P&C Intelligence.

   Primary: deep indigo
   Accent: signal cyan
   Secondary accent: soft violet
   ========================================================== */

.pc-foresight-page {
  --pf-bg: #101a35;
  --pf-bg-deep: #0b1328;
  --pf-panel: #162442;
  --pf-panel-2: #1b3151;
  --pf-blue: #2f5f9e;
  --pf-cyan: #63c7d8;
  --pf-cyan-soft: #9cdae5;
  --pf-violet: #8075c7;
  --pf-white: #f7fafc;
  --pf-text: #d9e6ee;
  --pf-muted: #9eacbb;
  --pf-line: rgba(255,255,255,.13);

  background: var(--pf-bg) !important;
  color: var(--pf-text) !important;
}

.pc-foresight-page *,
.pc-foresight-page *::before,
.pc-foresight-page *::after {
  box-sizing: border-box;
}

.pc-foresight-page .gh-canvas {
  width: min(1180px, calc(100% - 48px));
  margin-left: auto;
  margin-right: auto;
}

.pc-foresight-page a {
  text-decoration: none;
}

.pc-foresight-kicker,
.pc-foresight-section-label,
.pc-foresight-card-label,
.pc-foresight-principle-label {
  margin: 0 0 12px;
  color: var(--pf-cyan) !important;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.4;
  letter-spacing: 1.55px;
  text-transform: uppercase;
}

.pc-foresight-hero {
  padding: 78px 0 68px;
  background:
    linear-gradient(135deg, rgba(99,199,216,.08), transparent 42%),
    var(--pf-bg-deep) !important;
  border-top: 4px solid var(--pf-cyan);
  border-bottom: 1px solid var(--pf-line);
}

.pc-foresight-hero h1 {
  max-width: 960px;
  margin: 0;
  color: var(--pf-white) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(46px, 6vw, 76px);
  line-height: 1.01;
  letter-spacing: -.025em;
}

.pc-foresight-standfirst {
  max-width: 870px;
  margin: 24px 0 0;
  color: #dcebf1 !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(19px, 2.2vw, 25px);
  line-height: 1.55;
}

.pc-foresight-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.pc-foresight-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--pf-cyan);
  background: var(--pf-cyan);
  color: var(--pf-bg-deep) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .7px;
  text-transform: uppercase;
}

.pc-foresight-button--ghost {
  background: transparent;
  color: var(--pf-white) !important;
}

.pc-foresight-intro,
.pc-foresight-section,
.pc-foresight-footer {
  padding: 66px 0;
  background: var(--pf-bg) !important;
}

.pc-foresight-intro {
  background: #12203c !important;
  border-bottom: 1px solid var(--pf-line);
}

.pc-foresight-section--deep {
  background: var(--pf-bg-deep) !important;
}

.pc-foresight-section--soft {
  background: #142541 !important;
}

.pc-foresight-intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(260px, .7fr);
  gap: 58px;
  align-items: start;
}

.pc-foresight-intro h2,
.pc-foresight-section-heading h2,
.pc-foresight-footer h2 {
  margin: 0 0 18px;
  color: var(--pf-white) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(30px, 4vw, 45px);
  line-height: 1.1;
}

.pc-foresight-intro p,
.pc-foresight-section-heading p,
.pc-foresight-footer p {
  max-width: 820px;
  color: var(--pf-text) !important;
  font-size: 16px;
  line-height: 1.72;
}

.pc-foresight-principle {
  padding: 28px;
  background: var(--pf-panel) !important;
  border-top: 4px solid var(--pf-cyan);
}

.pc-foresight-principle strong {
  display: block;
  color: var(--pf-white) !important;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.15;
}

.pc-foresight-principle p {
  margin: 12px 0 0;
  color: var(--pf-muted) !important;
  font-size: 14px;
  line-height: 1.6;
}

.pc-foresight-section-heading {
  max-width: 800px;
  margin-bottom: 34px;
}

.pc-foresight-feature {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(380px, .9fr);
  gap: 1px;
  background: var(--pf-line);
  border: 1px solid var(--pf-line);
}

.pc-foresight-feature-copy {
  padding: 34px;
  background: var(--pf-panel) !important;
}

.pc-foresight-feature-copy h3 {
  margin: 0 0 14px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.1;
}

.pc-foresight-feature-copy h3 a {
  color: var(--pf-white) !important;
}

.pc-foresight-feature-copy p:not(.pc-foresight-card-label) {
  color: var(--pf-text) !important;
  font-size: 15px;
  line-height: 1.7;
}

.pc-foresight-feature-model {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--pf-line);
}

.pc-foresight-feature-model > div {
  min-height: 155px;
  padding: 24px;
  background: var(--pf-panel-2) !important;
}

.pc-foresight-feature-model span {
  display: block;
  margin-bottom: 18px;
  color: var(--pf-cyan) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1px;
}

.pc-foresight-feature-model strong {
  display: block;
  color: var(--pf-white) !important;
  font-size: 16px;
}

.pc-foresight-feature-model p {
  margin: 7px 0 0;
  color: var(--pf-muted) !important;
  font-size: 13px;
  line-height: 1.5;
}

.pc-foresight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0,1fr));
  gap: 18px;
}

.pc-foresight-card {
  display: flex;
  flex-direction: column;
  min-height: 285px;
  padding: 26px;
  background: var(--pf-panel) !important;
  border: 1px solid var(--pf-line);
  border-top: 3px solid var(--pf-blue);
}

.pc-foresight-card:nth-child(3n+2) {
  border-top-color: var(--pf-cyan);
}

.pc-foresight-card:nth-child(3n+3) {
  border-top-color: var(--pf-violet);
}

.pc-foresight-card h3 {
  margin: 0 0 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.18;
}

.pc-foresight-card h3 a {
  color: var(--pf-white) !important;
}

.pc-foresight-card > p:not(.pc-foresight-card-label) {
  color: var(--pf-text) !important;
  font-size: 14px;
  line-height: 1.65;
}

.pc-foresight-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-top: auto;
  padding-top: 18px;
  color: var(--pf-muted) !important;
  font-size: 11px;
  letter-spacing: .4px;
  text-transform: uppercase;
}

.pc-foresight-text-link,
.pc-foresight-inline-link a {
  display: inline-block;
  margin-top: 18px;
  color: var(--pf-cyan) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .55px;
  text-transform: uppercase;
}

.pc-foresight-inline-link {
  margin-top: 26px;
}

.pc-foresight-method-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0,1fr));
  gap: 1px;
  background: var(--pf-line);
  border: 1px solid var(--pf-line);
}

.pc-foresight-method-grid article {
  min-height: 220px;
  padding: 24px 20px;
  background: var(--pf-panel) !important;
}

.pc-foresight-method-grid span {
  color: var(--pf-cyan) !important;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.pc-foresight-method-grid h3 {
  margin: 18px 0 8px;
  color: var(--pf-white) !important;
  font-size: 17px;
}

.pc-foresight-method-grid p {
  margin: 0;
  color: var(--pf-muted) !important;
  font-size: 13px;
  line-height: 1.55;
}

.pc-foresight-topics {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pc-foresight-topics a,
.pc-foresight-topics span {
  padding: 10px 13px;
  border: 1px solid var(--pf-line);
  background: var(--pf-panel) !important;
  color: var(--pf-text) !important;
  font-size: 13px;
  font-weight: 700;
}

.pc-foresight-topics a:hover {
  border-color: var(--pf-cyan);
  color: var(--pf-cyan) !important;
}

.pc-foresight-footer {
  background: var(--pf-bg-deep) !important;
  border-top: 1px solid var(--pf-line);
}

.pc-foresight-footer-grid {
  display: grid;
  grid-template-columns: minmax(0,1.4fr) minmax(260px,.6fr);
  gap: 48px;
  align-items: center;
}

.pc-foresight-footer-actions {
  display: grid;
  gap: 8px;
}

.pc-foresight-footer-actions a {
  padding: 13px 15px;
  border: 1px solid var(--pf-line);
  color: var(--pf-white) !important;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .5px;
  text-transform: uppercase;
}

.pc-foresight-footer-actions a:hover {
  border-color: var(--pf-cyan);
  color: var(--pf-cyan) !important;
}

.pc-foresight-empty {
  padding: 24px;
  border: 1px dashed var(--pf-line);
  background: var(--pf-panel) !important;
  color: var(--pf-muted) !important;
}

/* Keep the Foresight brand stable in both Maali appearance modes. */
html[data-theme="dark"] .pc-foresight-page,
html[data-theme="light"] .pc-foresight-page,
.dark-mode .pc-foresight-page {
  background: var(--pf-bg) !important;
  color: var(--pf-text) !important;
}

@media (max-width: 980px) {
  .pc-foresight-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .pc-foresight-method-grid {
    grid-template-columns: repeat(2, minmax(0,1fr));
  }

  .pc-foresight-feature {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .pc-foresight-page .gh-canvas {
    width: min(100% - 34px, 1180px);
  }

  .pc-foresight-hero {
    padding: 58px 0 50px;
  }

  .pc-foresight-intro-grid,
  .pc-foresight-footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .pc-foresight-grid,
  .pc-foresight-method-grid,
  .pc-foresight-feature-model {
    grid-template-columns: 1fr;
  }

  .pc-foresight-intro,
  .pc-foresight-section,
  .pc-foresight-footer {
    padding: 50px 0;
  }
}


/* ==========================================================
   LIVE NERAI EMBED
   ========================================================== */

.pc-foresight-embed-section {
  padding: 64px 0 70px;
  background: var(--pf-bg) !important;
}

.pc-foresight-embed-shell {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: var(--pf-bg-deep);
  border: 1px solid var(--pf-line);
  border-top: 4px solid var(--pf-cyan);
  box-shadow: 0 20px 50px rgba(0,0,0,.18);
}

.pc-foresight-iframe {
  display: block;
  width: 100%;
  min-height: 3200px;
  border: 0;
  background: var(--pf-bg-deep);
}

.pc-foresight-embed-note {
  margin: 14px 0 0;
  color: var(--pf-muted) !important;
  font-size: 12px;
  line-height: 1.55;
}

.pc-foresight-embed-note a {
  color: var(--pf-cyan) !important;
  font-weight: 700;
}

@media (max-width: 980px) {
  .pc-foresight-iframe {
    min-height: 3600px;
  }
}

@media (max-width: 760px) {
  .pc-foresight-embed-section {
    padding: 48px 0 54px;
  }

  .pc-foresight-iframe {
    min-height: 4400px;
  }
}
