/* Shared AgentDiff-style glass cards for report embeds.
   Stage = painterly wash. Shell = frosted panel. Tiles = nested paragraph cards.
   Page body stays cream — only abstract / finding / callout blocks get the glass stage. */

.abstract,
.finding,
.callout {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #faf8f4 !important;
  background-color: #faf8f4 !important;
  border: none !important;
  border-radius: 28px !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

.abstract {
  margin: 0 0 96px;
  padding: 56px 48px;
}

.finding,
.callout {
  margin: 48px 0;
  padding: 40px 32px;
}

/* Mid-report thesis pull — bigger frosted stage for one load-bearing sentence */
.callout-thesis {
  margin: 56px 0;
  padding: 48px 40px;
}

.callout-thesis .card-shell {
  padding: 40px 40px 36px;
  border-radius: 20px;
}

.callout-thesis .callout-label {
  color: #f47c20 !important;
  margin-bottom: 20px !important;
}

.callout-thesis .thesis-text {
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif) !important;
  font-size: clamp(20px, 2.4vw, 26px) !important;
  font-weight: 300 !important;
  font-style: normal !important;
  line-height: 1.45 !important;
  letter-spacing: -0.015em;
  color: var(--ink, #1b2a3d) !important;
  margin: 0 0 24px !important;
  max-width: 40rem;
}

.callout-thesis .thesis-cite {
  display: block;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(27, 42, 61, 0.45);
}

@media (max-width: 640px) {
  .abstract {
    margin: 0 0 72px;
    padding: 28px 18px;
    border-radius: 24px !important;
  }
  .finding,
  .callout {
    margin: 36px 0;
    padding: 28px 18px;
    border-radius: 22px;
  }
  .callout-thesis {
    margin: 40px 0;
    padding: 32px 20px;
  }
  .callout-thesis .card-shell {
    padding: 28px 22px 24px;
  }
}

/* Wash layer — real image preferred; ::before fallback if no <img> */
.card-wash,
.abstract-wash {
  display: block !important;
  position: absolute;
  inset: -8%;
  width: 116%;
  height: 116%;
  object-fit: cover;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.08) rotate(-2deg);
  mix-blend-mode: multiply;
  opacity: 0.95;
}

.abstract:not(:has(.card-wash)):not(:has(.abstract-wash))::before,
.finding:not(:has(.card-wash))::before,
.callout:not(:has(.card-wash))::before {
  content: "";
  position: absolute;
  inset: -8%;
  background: url("/images/report-abstract-wash.jpg") center / cover no-repeat;
  z-index: 0;
  pointer-events: none;
  transform: scale(1.08) rotate(-2deg);
  mix-blend-mode: multiply;
  opacity: 0.95;
}

.card-shell,
.abstract-shell {
  position: relative;
  z-index: 1;
  background: rgba(250, 248, 244, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(27, 42, 61, 0.1);
  border-radius: 20px;
  padding: 36px 40px 32px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 24px 48px -28px rgba(27, 42, 61, 0.28);
}

.finding .card-shell,
.callout .card-shell {
  padding: 24px 26px 22px;
  border-radius: 16px;
}

@media (max-width: 640px) {
  .card-shell,
  .abstract-shell {
    padding: 26px 20px 22px;
    border-radius: 16px;
  }
  .finding .card-shell,
  .callout .card-shell {
    padding: 20px 18px 18px;
  }
}

/* When shell is omitted, treat the card itself as the glass panel */
.abstract:not(:has(.card-shell)):not(:has(.abstract-shell)),
.finding:not(:has(.card-shell)),
.callout:not(:has(.card-shell)) {
  background: rgba(250, 248, 244, 0.78);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(27, 42, 61, 0.1) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.65) inset,
    0 24px 48px -28px rgba(27, 42, 61, 0.28) !important;
}

.abstract:not(:has(.card-shell)):not(:has(.abstract-shell)) > *,
.finding:not(:has(.card-shell)) > *,
.callout:not(:has(.card-shell)) > * {
  position: relative;
  z-index: 1;
}

.abstract-label,
.finding-label,
.callout-label {
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif) !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: rgba(27, 42, 61, 0.45) !important;
  margin-bottom: 12px !important;
}

.abstract-title {
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: clamp(28px, 3.5vw, 36px);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink, #1b2a3d);
  margin: 0 0 16px;
}

.abstract-lede {
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: 16px;
  line-height: 1.65;
  color: rgba(27, 42, 61, 0.72);
  margin: 0 0 22px;
  max-width: 52rem;
}

.abstract-lede strong {
  font-weight: 650;
  color: var(--ink, #1b2a3d);
}

.abstract p,
.finding p,
.callout p,
.finding-text {
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif) !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
  color: rgba(27, 42, 61, 0.72) !important;
  font-style: normal !important;
  margin: 0 0 12px !important;
}

.abstract p:last-child,
.finding p:last-child,
.callout p:last-child,
.finding-text:last-child {
  margin-bottom: 0 !important;
}

.finding-text strong,
.callout p strong,
.abstract p strong {
  font-style: normal !important;
  font-weight: 650 !important;
  color: var(--ink, #1b2a3d) !important;
}

.abstract-tiles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0 0 8px;
}

@media (max-width: 720px) {
  .abstract-tiles {
    grid-template-columns: 1fr;
  }
}

.abstract-tile {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(27, 42, 61, 0.08);
  border-radius: 14px;
  padding: 18px 18px 16px;
}

.abstract-tile-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.abstract-tile-head svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  stroke: rgba(27, 42, 61, 0.55);
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.abstract-tile-head strong {
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #1b2a3d);
  letter-spacing: -0.01em;
}

.abstract-tile p {
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif) !important;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  color: rgba(27, 42, 61, 0.62) !important;
  margin: 0 !important;
}

.abstract-foot {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid rgba(27, 42, 61, 0.1);
}

.abstract-foot p {
  font-size: 14px !important;
  margin: 0 !important;
}

.page {
  overflow: visible;
}

/* Inline code must optically match body serif — mono has a taller x-height at 1em */
p code,
li code,
td code,
.finding-text code,
.callout code,
.abstract code {
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 0.84em;
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: inherit;
  color: inherit;
  background: rgba(27, 42, 61, 0.06);
  padding: 0.05em 0.3em;
  border-radius: 3px;
  vertical-align: baseline;
}

p strong,
li strong {
  font-size: inherit;
  font-weight: 600;
}

/* ── Ending thesis → tall navy wash CTA (matches site NavyWashCard) ── */
.closing-cta {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  margin: 64px 0 24px;
  min-height: 420px;
  border-radius: 28px;
  border: 1px solid #0f1623;
  background: #0f1623;
  color: #faf8f4;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.closing-cta-wash {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.closing-cta-wash::before {
  content: "";
  position: absolute;
  inset: 0;
  background: #1b2a3d;
}

.closing-cta-wash img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.closing-cta-wash img:first-of-type {
  transform: scale(1.08) rotate(-2deg);
  opacity: 0.92;
  mix-blend-mode: soft-light;
}

.closing-cta-wash img:last-of-type {
  transform: scale(1.12) rotate(1.5deg);
  opacity: 0.45;
  mix-blend-mode: overlay;
}

.closing-cta-wash::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(27, 42, 61, 0.15) 0%, transparent 28%, transparent 58%, #0f1623 100%),
    linear-gradient(90deg, rgba(15, 22, 35, 0.55) 0%, transparent 42%, transparent 68%, rgba(15, 22, 35, 0.35) 100%);
}

.closing-cta-inner {
  position: relative;
  z-index: 1;
  padding: 64px 48px;
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .closing-cta {
    min-height: 360px;
    border-radius: 22px;
    margin: 48px 0 16px;
  }
  .closing-cta-inner {
    padding: 48px 24px;
  }
}

.closing-cta-eyebrow {
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #f47c20;
  margin: 0 0 24px;
}

.closing-cta-headline {
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: clamp(28px, 3.6vw, 44px);
  font-weight: 200;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: #faf8f4;
  margin: 0 0 20px;
  font-style: normal;
}

.closing-cta-body {
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif) !important;
  font-size: 15px !important;
  font-weight: 300 !important;
  font-style: normal !important;
  line-height: 1.65 !important;
  color: rgba(250, 248, 244, 0.72) !important;
  margin: 0 0 28px !important;
  max-width: 36rem;
  margin-left: auto !important;
  margin-right: auto !important;
}

.closing-cta-cite {
  display: block;
  font-family: var(--mono, ui-monospace, SFMono-Regular, Menlo, Consolas, monospace);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-style: normal;
  color: #f47c20;
  margin: 0 0 32px;
}

.closing-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.closing-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 9999px;
  font-family: var(--sans, 'DM Sans', system-ui, sans-serif);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  background: #f47c20;
  color: #1b2a3d;
  transition: opacity 0.15s ease;
}

.closing-cta-btn:hover {
  opacity: 0.9;
}

.closing-cta-btn-secondary {
  background: transparent;
  color: #faf8f4;
  border: 1px solid rgba(250, 248, 244, 0.28);
}

/* Kill legacy left-border quote look when used as closing-cta */
.closing-cta blockquote,
blockquote.closing-cta {
  border: none !important;
  padding: 0 !important;
  margin: 0 !important;
  font-style: normal !important;
}
