/* Blog styling. Shares the site's palette and Inter faces (see af/fonts.css). */
:root {
  --cream: #fff9f3;
  --navy: #0d2a47;
  --blue: #005dc5;
  --indigo: #3a30ba;
  --muted: #6d7d93;
  --yellow: #faea73;
  --line: rgba(13, 42, 71, 0.12);
  --font: "Inter", "Inter Placeholder", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Inter Display", "Inter", system-ui, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--navy);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }

/* ---------------------------------------------------------------- chrome */
.site-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 18px 28px;
  border-bottom: 1px solid var(--line);
  background: #fffdfa;
  position: sticky;
  top: 0;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--blue);
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.brand img { width: 28px; height: 28px; }

.site-head nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }

.site-head nav a {
  text-decoration: none;
  color: var(--navy);
  font-size: 15px;
  font-weight: 500;
}

.site-head nav a:hover { color: var(--blue); }
.site-head nav a[aria-current] { color: var(--blue); font-weight: 600; }

.cta {
  background: var(--navy);
  color: #fff !important;
  border-radius: 999px;
  padding: 10px 20px;
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
}

.wrap { max-width: 1060px; margin: 0 auto; padding: 44px 24px 72px; }

.page-head { text-align: center; margin-bottom: 44px; }

h1 {
  font-family: var(--display);
  font-size: clamp(30px, 5vw, 46px);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin: 0 0 12px;
}

.page-head .sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
}

.meta { color: var(--muted); font-size: 14px; margin: 0 0 6px; }

.tags { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; padding: 0; }

.tags span {
  background: var(--yellow);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
}

/* ------------------------------------------------------------ lead story */
.lead {
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 32px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  overflow: hidden;
  margin-bottom: 40px;
}

.lead-media { display: block; }
.lead-body { padding: 8px 32px 8px 0; }
.lead h2 { font-family: var(--display); font-size: 28px; line-height: 1.25; margin: 0 0 10px; letter-spacing: -0.02em; }
.lead h2 a, .card h2 a { color: var(--navy); text-decoration: none; }
.lead h2 a:hover, .card h2 a:hover { color: var(--blue); }
.excerpt { color: var(--muted); margin: 0; }
.more { display: inline-block; margin-top: 16px; font-weight: 600; text-decoration: none; }

@media (max-width: 800px) {
  .lead { grid-template-columns: 1fr; }
  .lead-body { padding: 0 24px 26px; }
}

/* ----------------------------------------------------------------- grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 26px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, box-shadow 0.15s;
}

.card:hover { transform: translateY(-3px); box-shadow: 0 10px 30px rgba(13, 42, 71, 0.09); }
.card-media { display: block; background: #eef3f8; }

.card-media-plain {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 160px;
  background: linear-gradient(135deg, var(--navy), var(--indigo));
  text-decoration: none;
}

.card-media-plain span {
  color: #fff;
  font-family: var(--display);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
}

.card-body { padding: 20px 22px 24px; }
.card h2 { font-family: var(--display); font-size: 20px; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.015em; }
.card .excerpt { font-size: 15px; }

/* -------------------------------------------------------------- earlier */
.earlier { margin-top: 56px; border-top: 1px solid var(--line); padding-top: 28px; }
.earlier h3 { font-family: var(--display); font-size: 18px; margin: 0 0 12px; }
.earlier ul { margin: 0; padding-left: 18px; color: var(--muted); }
.earlier li { margin-bottom: 8px; }

/* ------------------------------------------------------------------ post */
.post { max-width: 720px; }
.crumb { margin: 0 0 20px; }
.crumb a { text-decoration: none; font-size: 15px; }
.post figure { margin: 28px 0; border-radius: 16px; overflow: hidden; border: 1px solid var(--line); }

.prose { font-size: 17px; }
.prose .standfirst { font-size: 20px; line-height: 1.55; color: var(--navy); font-weight: 500; margin: 26px 0; }
.prose h2 { font-family: var(--display); font-size: 24px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.prose p { margin: 0 0 18px; }
.prose ul { margin: 0 0 18px; padding-left: 22px; }
.prose li { margin-bottom: 8px; }

.prose blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--yellow);
  background: #fffdf6;
  font-family: var(--display);
  font-size: 19px;
  line-height: 1.45;
}

/* -------------------------------------------------------------- cta band */
.cta-band {
  margin: 56px 0 0;
  text-align: center;
  background: linear-gradient(135deg, var(--navy), var(--indigo));
  color: #fff;
  border-radius: 20px;
  padding: 36px 28px;
}

.cta-band h3 { font-family: var(--display); font-size: 24px; margin: 0 0 6px; }
.cta-band p { margin: 0 0 20px; opacity: 0.85; }
.cta-band .cta { background: var(--yellow); color: var(--navy) !important; padding: 13px 26px; }

.next { margin-top: 32px; text-align: center; }
.next a { font-weight: 600; text-decoration: none; }

.site-foot {
  border-top: 1px solid var(--line);
  padding: 24px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

.site-foot a { color: var(--muted); }

/* ------------------------------------------------------ tags as links ---- */
.tag {
  background: var(--yellow);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--navy);
  text-decoration: none;
  display: inline-block;
}

.tag:hover { background: #f5df4a; }

.topic-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 20px 0 0; }

.related { margin-top: 44px; border-top: 1px solid var(--line); padding-top: 22px; }
.related h3 { font-family: var(--display); font-size: 18px; margin: 0 0 10px; }
.related ul { margin: 0; padding-left: 18px; }
.related li { margin-bottom: 6px; }

/* --------------------------------------------------- AI agents pillar ---- */
.pillar { max-width: 1060px; }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 12px;
  font-weight: 600;
  color: var(--blue);
  margin: 0 0 10px;
}

.hero-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 26px 0 0; }

.cta.ghost {
  background: transparent !important;
  color: var(--navy) !important;
  border: 1.5px solid var(--navy);
}

.pillar-shot {
  margin: 40px 0 8px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 6px 16px rgba(13, 42, 71, 0.07), 0 24px 56px rgba(13, 42, 71, 0.12);
}

.pillar-shot img { width: 100%; }

.pillar-shot figcaption {
  padding: 14px 20px;
  font-size: 14px;
  color: var(--muted);
  text-align: center;
  border-top: 1px solid var(--line);
}

.cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 36px;
  margin: 52px 0;
}

@media (max-width: 760px) { .cols { grid-template-columns: 1fr; gap: 24px; } }

.cols h2, .capability h2, .safety h2, .faq h2, .pillar-posts h2 {
  font-family: var(--display);
  font-size: 24px;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.cols p { margin: 0 0 14px; color: var(--navy); }

.capability { margin: 52px 0; }

.cap-grid {
  list-style: none;
  padding: 0;
  margin: 20px 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 16px;
}

.cap-grid li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px 22px;
}

.cap-grid strong { display: block; font-family: var(--display); font-size: 17px; margin-bottom: 6px; }
.cap-grid span { color: var(--muted); font-size: 15px; line-height: 1.55; }

.safety {
  margin: 52px 0;
  background: #fffdf6;
  border: 1px solid var(--line);
  border-left: 4px solid var(--yellow);
  border-radius: 16px;
  padding: 26px 28px;
}

.safety p { margin: 0 0 14px; color: var(--muted); }
.safety ul { margin: 0; padding-left: 20px; }
.safety li { margin-bottom: 10px; }

.pillar-posts { margin: 52px 0; }

.faq { margin: 52px 0; }

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 20px;
  margin-bottom: 12px;
}

.faq summary {
  cursor: pointer;
  padding: 16px 0;
  font-weight: 600;
  font-family: var(--display);
  font-size: 17px;
  list-style: none;
}

.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--blue); font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 18px; color: var(--muted); }
