@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700&display=swap");

/* GFC layout: Main / Agent Markdown ("AI Agent View") — compiled from src/global-flexible-content/scss/main__agent_markdown.scss */

.gfc.main__agent_markdown {
  padding: clamp(48px, 7vw, 96px) 0;
  background: #FFFFFF;
}
.gfc.main__agent_markdown .agent-md__inner {
  width: 100%;
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: clamp(24px, 5vw, 80px);
}

/* Callout card */
.gfc.main__agent_markdown .agent-md__callout {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 3vw, 34px);
  background: #EFF0EF;
  border: 1px solid #D9DAD9;
  border-radius: 28px;
  padding: clamp(28px, 3.4vw, 40px) clamp(28px, 3.6vw, 48px);
}
.gfc.main__agent_markdown .agent-md__callout::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #B31983, #F47721);
}
.gfc.main__agent_markdown .agent-md__mark {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  flex-shrink: 0;
  background: #343741;
  color: #00AFAA;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 600;
  font-size: 22px;
  display: grid;
  place-items: center;
}
.gfc.main__agent_markdown .agent-md__heading {
  display: block;
  font-family: "Gilroy", "Gilroy-Bold", "Manrope", "Helvetica Neue", sans-serif;
  font-weight: 700;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.015em;
  color: #343741;
  margin: 0 0 6px;
}
.gfc.main__agent_markdown .agent-md__desc {
  display: block;
  font-family: "Gilroy", "Gilroy-Medium", "Manrope", "Helvetica Neue", sans-serif;
  font-size: 15.5px;
  line-height: 1.55;
  color: #6B6F7A;
  max-width: 62ch;
  margin: 0;
}
.gfc.main__agent_markdown .agent-md__btn {
  justify-self: end;
  font-family: "Montserrat", "Manrope", "Helvetica Neue", Arial, sans-serif;
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.04em;
  border: 1.5px solid #343741;
  background: transparent;
  color: #343741;
  border-radius: 999px;
  padding: 13px 24px;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}
.gfc.main__agent_markdown .agent-md__btn:hover {
  background: #343741;
  color: #FFFFFF;
}
@media (max-width: 900px) {
  .gfc.main__agent_markdown .agent-md__callout {
    grid-template-columns: auto 1fr;
  }
  .gfc.main__agent_markdown .agent-md__btn {
    grid-column: 1 / -1;
    justify-self: start;
  }
}

/* Markdown-source modal (rendered once per page) */
.agent-md-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(20, 21, 25, 0.62);
  backdrop-filter: blur(4px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.agent-md-overlay.open {
  display: flex;
}
.agent-md-panel {
  width: min(860px, 100%);
  max-height: 88vh;
  background: #1e2128;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 40px 90px -30px rgba(0, 0, 0, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.agent-md-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  background: #171a20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.agent-md-bar .file {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: #cfd3da;
  min-width: 0;
}
.agent-md-bar .file .tag {
  color: #00AFAA;
  font-weight: 600;
}
.agent-md-bar .file .name {
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.agent-md-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.agent-md-action {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.04em;
  color: #cfd3da;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 7px 12px;
  cursor: pointer;
}
.agent-md-action:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
}
.agent-md-action.primary {
  background: #00AFAA;
  border-color: #00AFAA;
  color: #04302f;
  font-weight: 700;
}
.agent-md-cap {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  color: #8b90a0;
  padding: 9px 18px;
  background: #171a20;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.agent-md-cap b {
  color: #00AFAA;
  font-weight: 600;
}
.agent-md-body {
  margin: 0;
  padding: 22px 22px 26px;
  overflow: auto;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  line-height: 1.7;
  color: #d7dbe2;
  white-space: pre-wrap;
  word-break: break-word;
  tab-size: 2;
}
