/* ==========================================================================
   playbook.css - shared styles for AI Governance Playbook pages (dark, on-brand)
   Used by /articles/ai-governance-roadmap and the country/sector BFSI playbooks.
   Relies on global tokens from styles.css (--accent, --accent-2, --text-main,
   --text-sub, --border-soft, --radius-md) loaded via head-common.
   ========================================================================== */

.rm-hero {
  padding: clamp(90px, 12vw, 140px) 20px 40px;
  text-align: center;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(720px 340px at 50% 0%, rgba(34, 211, 238, 0.12), transparent),
    radial-gradient(560px 320px at 80% 10%, rgba(168, 85, 247, 0.1), transparent);
}
.rm-hero-inner { max-width: 820px; margin: 0 auto; }
.rm-eyebrow {
  font-size: 12px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 16px;
}
.rm-hero h1 {
  font-size: clamp(30px, 5vw, 48px); font-weight: 800; letter-spacing: -0.03em;
  line-height: 1.05; margin-bottom: 18px;
}
.rm-hero h1 .grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.rm-hero p {
  font-size: clamp(15px, 2vw, 18px); color: var(--text-sub);
  line-height: 1.65; max-width: 680px; margin: 0 auto 28px;
}
.rm-ctas { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.rm-badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }
.rm-badge {
  font-size: 12px; font-weight: 700; color: var(--text-sub);
  border: 1px solid var(--border-soft); border-radius: 999px;
  padding: 7px 14px; background: rgba(148, 163, 184, 0.06);
}
.rm-badge b { color: var(--text-main); }

.rm-section { padding: 56px 20px; }
.rm-section.alt { background: rgba(148, 163, 184, 0.04); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.rm-wrap { max-width: 1080px; margin: 0 auto; }
.rm-head { text-align: center; max-width: 720px; margin: 0 auto 34px; }
.rm-kicker { font-size: 12px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; color: var(--accent-2); margin-bottom: 12px; }
.rm-head h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; margin-bottom: 12px; }
.rm-head p { font-size: 15px; color: var(--text-sub); line-height: 1.65; }

/* framework cards */
.fw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.fw-card { border: 1px solid var(--border-soft); border-top: 3px solid var(--accent); border-radius: var(--radius-md); padding: 22px; background: rgba(15, 23, 42, 0.5); }
.fw-card:nth-child(2) { border-top-color: var(--accent-2); }
.fw-card:nth-child(3) { border-top-color: #60a5fa; }
.fw-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.fw-card .tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 12px; }
.fw-card p { font-size: 14px; color: var(--text-sub); line-height: 1.6; }
.fw-card p b { color: var(--text-main); }
.fw-overlay { text-align: center; font-size: 13px; color: var(--text-sub); margin-top: 20px; line-height: 1.6; }
.fw-overlay b { color: var(--text-main); }

/* tenets strip */
.tenets { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.tenet { display: flex; gap: 12px; align-items: flex-start; border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 16px; background: rgba(15, 23, 42, 0.5); }
.tenet .dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; flex-shrink: 0; background: linear-gradient(135deg, var(--accent), var(--accent-2)); }
.tenet span.t { font-size: 14px; color: var(--text-main); font-weight: 600; line-height: 1.4; }
.tenet span.t b { color: var(--accent); }

/* phases */
.road { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.rphase { border: 1px solid var(--border-soft); border-radius: var(--radius-md); overflow: hidden; display: flex; flex-direction: column; background: rgba(15, 23, 42, 0.5); }
.rphase .h { padding: 16px 16px 14px; color: #fff; min-height: 78px; display: flex; flex-direction: column; justify-content: center; }
.rphase .n { font-size: 11px; font-weight: 800; letter-spacing: 0.1em; opacity: 0.9; }
.rphase .t { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.1; }
.rphase .b { padding: 16px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rphase .o { font-size: 14px; font-weight: 700; color: var(--text-main); line-height: 1.35; }
.rphase .a { font-size: 12.5px; color: var(--text-sub); line-height: 1.55; }
.rphase .a b { color: var(--text-main); font-weight: 700; }
.ph0 .h { background: linear-gradient(135deg, #334155, #475569); }
.ph1 .h { background: linear-gradient(135deg, #6d28d9, #a855f7); }
.ph2 .h { background: linear-gradient(135deg, #0e7490, #22d3ee); }
.ph3 .h { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.phc .h { background: linear-gradient(135deg, #0f766e, #14b8a6); }

/* stats */
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat { border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 22px; background: rgba(15, 23, 42, 0.5); }
.stat .num { font-size: clamp(34px, 5vw, 46px); font-weight: 900; letter-spacing: -0.03em; line-height: 1; background: linear-gradient(120deg, var(--accent), var(--accent-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .lbl { font-size: 13px; color: var(--text-sub); margin-top: 10px; line-height: 1.45; }
.stat-src { text-align: center; font-size: 12.5px; color: var(--text-sub); font-style: italic; margin-top: 22px; }

/* gap */
.gap-lead { max-width: 820px; margin: 0 auto 24px; text-align: center; font-size: 15px; color: var(--text-sub); line-height: 1.7; }
.gap-lead b { color: var(--text-main); }
.ctl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 24px; }
.ctl { border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 16px; background: rgba(15, 23, 42, 0.5); display: flex; flex-direction: column; gap: 12px; }
.ctl .name { font-size: 14px; font-weight: 800; color: var(--text-main); }
.ctl .desc { font-size: 12.5px; color: var(--text-sub); line-height: 1.4; }
.ctl .pass { align-self: flex-start; margin-top: auto; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: #fbbf24; background: rgba(251, 191, 36, 0.12); border: 1px solid rgba(251, 191, 36, 0.25); padding: 4px 10px; border-radius: 999px; }
.gap-punch { text-align: center; font-size: 16px; font-weight: 700; color: var(--text-main); border: 1px solid rgba(34, 211, 238, 0.3); border-radius: var(--radius-md); padding: 20px; background: linear-gradient(90deg, rgba(34, 211, 238, 0.08), rgba(168, 85, 247, 0.06)); }
.gap-punch b { color: var(--accent); }

/* coverage matrix */
.cov-table { width: 100%; border-collapse: collapse; margin-bottom: 12px; font-size: 13px; }
.cov-table th, .cov-table td { border: 1px solid var(--border-soft); padding: 12px 10px; text-align: center; }
.cov-table th { background: rgba(148, 163, 184, 0.08); font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.03em; color: var(--text-main); }
.cov-table td:first-child, .cov-table th:first-child { text-align: left; font-weight: 700; color: var(--text-main); }
.cdot { display: inline-block; width: 15px; height: 15px; border-radius: 50%; vertical-align: middle; }
.cdot.full { background: var(--accent-2); }
.cdot.part { background: transparent; border: 2.5px solid var(--accent); }
.cov-legend { font-size: 12.5px; color: var(--text-sub); line-height: 1.6; }
.cov-legend .full { color: var(--accent-2); font-weight: 800; }
.cov-legend .part { color: var(--accent); font-weight: 800; }

/* product cards */
.prod-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 24px; }
.prod-card { border: 1px solid var(--border-soft); border-radius: var(--radius-md); padding: 22px; background: rgba(15, 23, 42, 0.5); position: relative; }
.prod-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; border-radius: var(--radius-md) 0 0 var(--radius-md); }
.prod-card.rt::before { background: var(--accent-2); }
.prod-card.en::before { background: #60a5fa; }
.prod-card.sh::before { background: var(--accent); }
.prod-card.ca::before { background: #2dd4bf; }
.prod-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.prod-card h3 a { color: var(--text-main); text-decoration: none; }
.prod-card h3 a:hover { color: var(--accent); }
.prod-card .badge { font-size: 10px; font-weight: 800; letter-spacing: 0.05em; text-transform: uppercase; color: #fbbf24; background: rgba(251, 191, 36, 0.12); padding: 2px 8px; border-radius: 5px; margin-left: 8px; vertical-align: middle; }
.prod-card p { font-size: 13.5px; color: var(--text-sub); line-height: 1.6; margin-bottom: 12px; }
.prod-card .chips .chip { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(148, 163, 184, 0.1); color: var(--text-sub); margin: 0 4px 5px 0; }

/* final CTA */
.rm-cta { text-align: center; }
.rm-cta h2 { font-size: clamp(24px, 3.4vw, 34px); font-weight: 800; letter-spacing: -0.02em; margin-bottom: 12px; }
.rm-cta p { font-size: 15px; color: var(--text-sub); margin-bottom: 24px; }
.rm-disc { text-align: center; font-size: 12px; color: var(--text-sub); opacity: 0.8; margin-top: 26px; font-style: italic; }

/* related playbooks strip */
.pb-related { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; max-width: 900px; margin: 0 auto; }
.pb-related a {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; color: var(--text-main);
  border: 1px solid var(--border-soft); border-radius: 999px;
  padding: 9px 16px; background: rgba(15, 23, 42, 0.5); text-decoration: none;
  transition: border-color 0.15s ease, color 0.15s ease;
}
.pb-related a:hover { border-color: var(--accent); color: var(--accent); }
.pb-related a .r { color: var(--accent-2); font-weight: 800; }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { border: 1px solid var(--border-soft); border-radius: var(--radius-md); margin-bottom: 10px; background: rgba(15, 23, 42, 0.5); }
.faq summary { cursor: pointer; padding: 16px 18px; font-weight: 700; color: var(--text-main); font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-weight: 800; }
.faq details[open] summary { color: var(--accent); }
.faq details[open] summary::after { content: "-"; }
.faq .ans { padding: 0 18px 16px; color: var(--text-sub); font-size: 14px; line-height: 1.65; }

@media (max-width: 900px) {
  .fw-grid, .tenets, .road, .stat-grid, .ctl-grid, .prod-grid { grid-template-columns: 1fr 1fr; }
  .road { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .fw-grid, .tenets, .stat-grid, .ctl-grid, .prod-grid { grid-template-columns: 1fr; }
  .cov-table { font-size: 12px; }
}
