/* Guides — public resource library. Loaded after styles.css (reuses its :root vars). */

.guide-page { padding-top: calc(var(--nav-h) + 56px); }

/* ── Hub ───────────────────────────────────────────────────────────── */
.guide-hero { text-align: center; max-width: 720px; margin: 0 auto 48px; }
.guide-hero h1 { font-size: clamp(30px, 5vw, 44px); font-weight: 700; color: var(--navy); letter-spacing: -.02em; line-height: 1.1; }
.guide-hero p { margin-top: 16px; font-size: 18px; color: var(--gray-600); line-height: 1.6; }

.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 20px; }
.guide-card {
  display: block; padding: 26px; border-radius: var(--radius-lg);
  border: 1px solid var(--gray-200); background: var(--white);
  box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s;
}
.guide-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold-20); }
.guide-card .guide-tag { font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.guide-card h2 { margin-top: 10px; font-size: 20px; font-weight: 650; color: var(--navy); line-height: 1.3; }
.guide-card p { margin-top: 10px; font-size: 14.5px; color: var(--gray-600); line-height: 1.55; }
.guide-card .guide-more { margin-top: 14px; font-size: 14px; font-weight: 600; color: var(--navy); }

/* ── Article ───────────────────────────────────────────────────────── */
.guide-breadcrumb { font-size: 13px; color: var(--gray-500); margin-bottom: 18px; }
.guide-breadcrumb a { color: var(--gray-600); text-decoration: none; }
.guide-breadcrumb a:hover { color: var(--navy); text-decoration: underline; }

.guide-article { max-width: 740px; margin: 0 auto; }
.guide-article h1 { font-size: clamp(28px, 4.5vw, 40px); font-weight: 700; color: var(--navy); letter-spacing: -.02em; line-height: 1.15; }
.guide-article > .guide-lead { margin-top: 18px; font-size: 19px; line-height: 1.6; color: var(--gray-700); }
.guide-article h2 { margin-top: 40px; font-size: 25px; font-weight: 650; color: var(--navy); line-height: 1.25; }
.guide-article h3 { margin-top: 28px; font-size: 19px; font-weight: 600; color: var(--navy); }
.guide-article p { margin-top: 16px; font-size: 17px; line-height: 1.7; color: var(--gray-800); }
.guide-article ul, .guide-article ol { margin-top: 16px; padding-left: 24px; }
.guide-article li { margin-top: 8px; font-size: 17px; line-height: 1.65; color: var(--gray-800); }
.guide-article a { color: #2f5fce; text-decoration: underline; text-underline-offset: 2px; }
.guide-article strong { color: var(--navy); font-weight: 650; }
.guide-article blockquote {
  margin: 24px 0; padding: 14px 20px; border-left: 3px solid var(--gold);
  background: var(--gold-10); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-size: 16px; color: var(--gray-700); font-style: italic;
}
.guide-article hr { margin: 40px 0; border: none; border-top: 1px solid var(--gray-200); }
.guide-checklist { list-style: none; padding-left: 0; }
.guide-checklist li { position: relative; padding-left: 30px; }
.guide-checklist li::before { content: "☐"; position: absolute; left: 0; color: var(--gold); font-size: 18px; line-height: 1.4; }
.guide-disclaimer { margin-top: 24px; font-size: 14px; font-style: italic; color: var(--gray-500); line-height: 1.6; }

/* In-article "How Boardside helps" CTA box */
.guide-cta { margin-top: 40px; padding: 28px; border-radius: var(--radius-lg); background: var(--navy); color: var(--white); }
.guide-cta h2 { margin-top: 0; color: var(--white); }
.guide-cta p { color: rgba(255,255,255,.82); }
.guide-cta .btn-primary { margin-top: 18px; background: var(--gold); color: var(--navy) !important; }
.guide-cta .btn-primary:hover { background: #d8b85e; }

/* ── Anonymised feature mockup (synthetic data, never a real screenshot) ──── */
.guide-mock { margin: 32px 0 12px; border-radius: var(--radius-lg); border: 1px solid var(--gray-200); background: var(--white); box-shadow: var(--shadow); overflow: hidden; }
.guide-mock-bar { display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: var(--navy); color: var(--white); }
.guide-mock-bar .dots { display: flex; gap: 5px; }
.guide-mock-bar .dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.32); }
.guide-mock-bar .mock-title { font-size: 13px; font-weight: 600; letter-spacing: .01em; }
.guide-mock-bar .mock-sub { margin-left: auto; font-size: 12px; color: rgba(255,255,255,.6); }
/* Fixed column widths so each row (an independent grid) aligns with the others. */
.guide-mock-row { display: grid; grid-template-columns: 132px minmax(0,1fr) 104px 176px; gap: 14px; align-items: center; padding: 13px 16px; border-top: 1px solid var(--gray-100); font-size: 14px; text-align: left; }
.guide-mock-row > * { text-align: left; min-width: 0; }
.guide-mock-row:first-of-type { border-top: none; }
.guide-mock-head { background: var(--gray-50); font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--gray-500); }
.guide-mock-row .who { font-weight: 600; color: var(--navy); }
.guide-mock-row .what { color: var(--gray-700); }
.guide-mock-row .scope { color: var(--gray-500); font-size: 13px; }
.mock-pill { justify-self: start; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.mock-pill.recuse { background: #fde8e8; color: #b42318; }
.mock-pill.partial { background: var(--gold-10); color: #8a6d1f; }
.mock-pill.noted { background: #e7f3ee; color: #1f7a4d; }
.guide-figcaption { font-size: 12.5px; color: var(--gray-500); font-style: italic; text-align: center; margin-top: 0; }
/* Mock sitting inside the dark "How Boardside helps" panel */
.guide-cta .guide-mock { margin: 18px 0 6px; box-shadow: 0 10px 34px rgba(0,0,0,.35); }
.guide-cta .guide-figcaption { color: rgba(255,255,255,.6); }

/* Briefing-card mock (a signal feed, for the intelligence-brief article) */
.brief-signal { display: grid; grid-template-columns: 104px minmax(0,1fr) auto; gap: 14px; align-items: start; padding: 14px 16px; border-top: 1px solid var(--gray-100); }
.brief-signal:first-of-type { border-top: none; }
.brief-tag { align-self: start; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 4px 8px; border-radius: 5px; white-space: nowrap; text-align: center; }
.brief-tag.reg  { background: #e7eefc; color: #2f5fce; }
.brief-tag.comp { background: #fde7f1; color: #b4316f; }
.brief-tag.econ { background: var(--gold-10); color: #8a6d1f; }
.brief-tag.stage { background: #eef1f5; color: #3d4560; }
.brief-tag.val   { background: #e7f3ee; color: #1f7a4d; }
.brief-tag.chal  { background: var(--gold-10); color: #8a6d1f; }
.brief-tag.broke { background: #fde8e8; color: #b42318; }

/* Action-tracker mock (one flexible column, the rest fixed, so rows align) */
.guide-mock-row.actions { grid-template-columns: minmax(0,1fr) 96px 84px 128px; }
.mock-pill.s-open { background: #eef1f5; color: #3d4560; }
.mock-pill.s-prog { background: var(--gold-10); color: #8a6d1f; }
.mock-pill.s-done { background: #e7f3ee; color: #1f7a4d; }
.mock-due-late { color: #b42318; font-weight: 600; }

/* Strategic-landscape mock (one flexible column, rest fixed, so rows align) */
.guide-mock-row.landscape { grid-template-columns: minmax(0,1fr) 88px 132px 118px; }

/* War Room heat map: domains (rows) x players (cols), occupation as intensity */
.warmap { overflow-x: auto; padding: 4px 0 2px; }
.warmap-grid { display: grid; grid-template-columns: 150px repeat(4, minmax(64px, 1fr)); min-width: 470px; }
.wm-corner { border-bottom: 1px solid var(--gray-200); }
.wm-head { font-size: 10px; font-weight: 700; letter-spacing: .02em; text-transform: uppercase; color: var(--gray-500); text-align: center; padding: 10px 4px; border-bottom: 1px solid var(--gray-200); align-self: end; }
.wm-head.you { color: #8a6d1f; }
.wm-domain { font-size: 13px; font-weight: 600; color: var(--navy); padding: 0 10px 0 16px; display: flex; align-items: center; gap: 7px; border-bottom: 1px solid var(--gray-100); min-height: 46px; }
.wm-domain.open { background: var(--gold-10); }
.wm-open { font-size: 8.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: #8a6d1f; border: 1px solid var(--gold-20); padding: 1px 5px; border-radius: 4px; white-space: nowrap; }
.wm-cell { border-bottom: 1px solid var(--gray-100); border-left: 1px solid var(--gray-100); display: flex; align-items: center; justify-content: center; min-height: 46px; }
.wm-cell.open { background: var(--gold-10); }
.wm-dot { width: 22px; height: 22px; border-radius: 6px; }
.wm-dot.s3 { background: #1a1f2e; }
.wm-dot.s2 { background: rgba(26,31,46,.42); }
.wm-dot.s1 { background: rgba(26,31,46,.15); }
.wm-dot.y3 { background: #c9a84c; }
.wm-dot.y2 { background: rgba(201,168,76,.5); }
.wm-dot.y1 { background: rgba(201,168,76,.22); }
.wm-legend { display: flex; flex-wrap: wrap; gap: 14px; padding: 12px 16px 4px; font-size: 11px; color: var(--gray-500); }
.wm-legend span { display: inline-flex; align-items: center; gap: 6px; }
.wm-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }

/* AI-suggestions review-gate mock (human accepts or dismisses) */
.ai-actions { display: flex; gap: 6px; align-items: center; justify-self: end; }
.ai-btn { font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 6px; white-space: nowrap; }
.ai-btn.accept { background: #1f7a4d; color: #fff; }
.ai-btn.dismiss { background: transparent; color: var(--gray-500); border: 1px solid var(--gray-300); }
@media (max-width: 560px) { .ai-actions { justify-self: start; } }
.brief-head { display: block; font-weight: 600; color: var(--navy); font-size: 14.5px; line-height: 1.35; }
.brief-why { display: block; color: var(--gray-600); font-size: 13px; margin-top: 3px; line-height: 1.45; }
.brief-score { justify-self: end; font-size: 11px; font-weight: 700; color: var(--gray-500); white-space: nowrap; }
.brief-score .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: middle; }
.brief-score.high .dot { background: #e0533d; }
.brief-score.med .dot  { background: #d8a73a; }
@media (max-width: 560px) {
  .brief-signal { grid-template-columns: 1fr; gap: 5px; }
  .brief-score { justify-self: start; }
}
@media (max-width: 560px) {
  .guide-mock-row { grid-template-columns: 1fr; gap: 4px; }
  .guide-mock-head { display: none; }
  .guide-mock-row .scope::before { content: "Scope: "; }
}
