/* Shared styles for the redesigned campaign pages (SSMUH, maze gates, CACs, debt).
   Uses the site brand colours from /style.css. */
.cp { --cp-green: #2AA787; --cp-amber: #F4AE3A; --cp-navy: #1D3557; --cp-red: #E63946;
      --cp-ink: #1d2733; --cp-ink-2: #44505e; --cp-ink-3: #6b7683; --cp-line: #e3e8ee; --cp-tint: #f6f8fa;
      color: var(--cp-ink-2); line-height: 1.65; }
.cp h1, .cp h2, .cp h3, .cp h4 { color: var(--cp-ink); }
.cp a { color: #1f6f8b; }
.cp section { margin-bottom: 2.75rem; }
.cp h2 { font-size: 1.55rem; margin-bottom: .9rem; padding-bottom: .4rem; border-bottom: 2px solid var(--cp-line); }
.cp h3 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; }

/* Hero */
.cp-hero { background: var(--cp-navy); color: #fff; border-radius: 14px; padding: 2rem 2rem 1.75rem; margin-bottom: 2rem; }
.cp-hero h1, .cp-hero .cp-title { border: 0; padding: 0; color: #fff; font-size: clamp(1.6rem, 3.2vw, 2.3rem); line-height: 1.2; margin: .35rem 0 .75rem; }
.cp-hero p { color: rgba(255,255,255,.88); font-size: 1.08rem; margin-bottom: 0; max-width: 760px; }
.cp-eyebrow { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--cp-amber); }
.cp-status { display: inline-block; font-size: .75rem; font-weight: 700; padding: .2rem .6rem; border-radius: 20px; margin-left: .5rem; vertical-align: 2px; }
.cp-status.active { background: var(--cp-amber); color: #1d2733; }
.cp-status.won { background: var(--cp-green); color: #fff; }
.cp-hero .cp-actions { margin-top: 1.25rem; display: flex; flex-wrap: wrap; gap: .6rem; }

/* Key takeaways / answer box */
.cp-answer { border-left: 5px solid var(--cp-green); background: #eef8f4; border-radius: 10px; padding: 1.1rem 1.3rem; margin-bottom: 2rem; }
.cp-answer.warn { border-left-color: var(--cp-amber); background: #fdf6ea; }
.cp-answer.alert { border-left-color: var(--cp-red); background: #fdeeef; }
.cp-answer p:last-child, .cp-answer ul:last-child { margin-bottom: 0; }
.cp-answer strong.lead-in { display: block; color: var(--cp-ink); font-size: 1.05rem; margin-bottom: .3rem; }

/* Stat tiles */
.cp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: .9rem; margin: 1rem 0 1.5rem; }
.cp-stat { border: 1px solid var(--cp-line); border-radius: 12px; padding: 1rem 1.1rem; background: #fff; }
.cp-stat .num { font-size: 1.9rem; font-weight: 700; color: var(--cp-navy); line-height: 1.1; }
.cp-stat .num.green { color: var(--cp-green); } .cp-stat .num.red { color: var(--cp-red); } .cp-stat .num.amber { color: #c98410; }
.cp-stat .num.sm { font-size: 1.3rem; }
.cp-stat .lbl { font-size: .88rem; color: var(--cp-ink-3); margin-top: .3rem; }

/* Progress bar showing share completed */
.cp-meter { height: 30px; border-radius: 8px; overflow: hidden; display: flex; background: #eef1f4; font-size: .8rem; font-weight: 700; }
.cp-meter span { display: flex; align-items: center; justify-content: center; color: #fff; white-space: nowrap; overflow: hidden; }
.cp-meter-legend { display: flex; flex-wrap: wrap; gap: 1rem; font-size: .85rem; margin-top: .45rem; color: var(--cp-ink-3); }
.cp-meter-legend i { display: inline-block; width: 11px; height: 11px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; }

/* Document / report list */
.cp-docs { display: flex; flex-direction: column; gap: .8rem; }
.cp-doc { display: grid; grid-template-columns: 1fr auto; gap: .4rem 1rem; border: 1px solid var(--cp-line); border-radius: 12px; padding: 1rem 1.15rem; background: #fff; }
.cp-doc h3 { margin: 0; font-size: 1.05rem; }
.cp-doc .meta { font-size: .85rem; color: var(--cp-ink-3); }
.cp-doc .summary { grid-column: 1 / -1; font-size: .95rem; margin: 0; }
.cp-doc .note { grid-column: 1 / -1; font-size: .88rem; background: var(--cp-tint); border-radius: 8px; padding: .55rem .75rem; margin: 0; }
.cp-doc .open { align-self: start; white-space: nowrap; }
.cp-tag { display: inline-block; font-size: .7rem; font-weight: 700; padding: .12rem .5rem; border-radius: 12px; margin-right: .3rem; letter-spacing: .02em; text-transform: uppercase; }
.cp-tag.court { background: #e7ecf5; color: #2d4a7a; } .cp-tag.gov { background: #e7f5ec; color: #1c7a3f; }
.cp-tag.legal { background: #eae7f6; color: #5a3fb0; } .cp-tag.industry { background: #fdeee0; color: #a4520f; }
.cp-tag.news { background: #eef1f4; color: #4a5562; } .cp-tag.campaign { background: #fdeaea; color: #b02a37; }
.cp-tag.ours { background: #e6f5f1; color: #1d7a63; }

/* Tables */
.cp-table-wrap { overflow-x: auto; border: 1px solid var(--cp-line); border-radius: 12px; }
.cp-table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.cp-table th { background: var(--cp-tint); color: var(--cp-ink); text-align: left; font-weight: 700; padding: .6rem .75rem; border-bottom: 1px solid var(--cp-line); position: sticky; top: 0; cursor: default; }
.cp-table th[data-sort] { cursor: pointer; } .cp-table th[data-sort]:after { content: " \2195"; color: var(--cp-ink-3); font-size: .8em; }
.cp-table td { padding: .55rem .75rem; border-bottom: 1px solid var(--cp-line); vertical-align: top; }
.cp-table tr:last-child td { border-bottom: none; }
.cp-table td.num, .cp-table th.num { text-align: right; white-space: nowrap; }
.cp-pill { display: inline-block; font-size: .75rem; font-weight: 700; padding: .1rem .5rem; border-radius: 12px; white-space: nowrap; }
.cp-pill.yes { background: #e7f5ec; color: #1c7a3f; } .cp-pill.past { background: #eef1f4; color: #4a5562; }
.cp-pill.no { background: #fdeaea; color: #b02a37; } .cp-pill.pending { background: #fdf3df; color: #8a5a00; }
.cp-filter { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.cp-filter input, .cp-filter select { border: 1px solid #cdd7e1; border-radius: 8px; padding: .4rem .65rem; font-size: .9rem; }
.cp-filter input { flex: 1; min-width: 200px; }

/* FAQ */
.cp-faq details { border: 1px solid var(--cp-line); border-radius: 10px; margin-bottom: .6rem; background: #fff; }
.cp-faq summary { cursor: pointer; padding: .85rem 1.1rem; font-weight: 700; color: var(--cp-ink); list-style: none; }
.cp-faq summary::-webkit-details-marker { display: none; }
.cp-faq summary:before { content: "+"; display: inline-block; width: 1.2rem; color: var(--cp-green); font-weight: 700; }
.cp-faq details[open] summary:before { content: "\2212"; }
.cp-faq details > div { padding: 0 1.1rem 1rem 2.3rem; }

/* Comparison columns */
.cp-compare { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1rem; }
.cp-col { border: 1px solid var(--cp-line); border-radius: 12px; padding: 1.1rem 1.2rem; background: #fff; }
.cp-col h3 { margin-top: 0; }
.cp-col.good { border-top: 5px solid var(--cp-green); } .cp-col.bad { border-top: 5px solid var(--cp-red); } .cp-col.mid { border-top: 5px solid var(--cp-amber); }
.cp-col ul { padding-left: 1.1rem; margin-bottom: 0; }

/* Timeline */
.cp-timeline { list-style: none; padding: 0; margin: 0; border-left: 3px solid var(--cp-line); }
.cp-timeline li { position: relative; padding: 0 0 1.1rem 1.3rem; }
.cp-timeline li:before { content: ""; position: absolute; left: -8px; top: .35rem; width: 13px; height: 13px; border-radius: 50%; background: #fff; border: 3px solid var(--cp-green); }
.cp-timeline li.key:before { background: var(--cp-amber); border-color: var(--cp-amber); }
.cp-timeline .when { font-size: .8rem; font-weight: 700; color: var(--cp-ink-3); text-transform: uppercase; letter-spacing: .04em; }

/* Video thumbnail link */
.cp-video { display: block; position: relative; border-radius: 12px; overflow: hidden; }
.cp-video img { width: 100%; display: block; aspect-ratio: 16/9; object-fit: cover; }
.cp-video:after { content: "\25B6"; position: absolute; inset: 0; margin: auto; width: 72px; height: 72px; border-radius: 50%; background: rgba(230,57,70,.92); color: #fff; font-size: 1.7rem; display: flex; align-items: center; justify-content: center; padding-left: 5px; }
.cp-video:hover:after { background: #c42f3b; }

/* Sub-page navigation */
.cp-subnav { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: .8rem; margin-bottom: 2rem; }
.cp-subnav a { display: block; border: 1px solid var(--cp-line); border-radius: 12px; padding: .9rem 1.1rem; text-decoration: none; background: #fff; color: var(--cp-ink); }
.cp-subnav a:hover { border-color: var(--cp-green); box-shadow: 0 4px 14px rgba(0,0,0,.06); }
.cp-subnav a.current { border-color: var(--cp-navy); background: var(--cp-tint); }
.cp-subnav strong { display: block; } .cp-subnav small { color: var(--cp-ink-3); }

.cp-figure { margin: 0; } .cp-figure img { width: 100%; border-radius: 12px; }
.cp-figure figcaption { font-size: .85rem; color: var(--cp-ink-3); margin-top: .4rem; }
.cp-cta { background: var(--cp-tint); border-radius: 14px; padding: 1.5rem; }
.cp-source { font-size: .82rem; color: var(--cp-ink-3); }
.cp-chart { width: 100%; }
.cp-chart text { font-size: 12px; fill: #5a6573; }

/* Risk cards */
.cp-risks { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: .9rem; }
.cp-risk { border: 1px solid var(--cp-line); border-radius: 12px; padding: 1rem 1.15rem; background: #fff; }
.cp-risk h3 { margin: 0 0 .45rem; font-size: 1.02rem; }
.cp-risk p { margin: 0; font-size: .93rem; }
.cp-risk-meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .8rem; color: var(--cp-ink-3); margin-bottom: .55rem; }
.cp-col p:last-child { margin-bottom: 0; }

/* Compact source list */
.cp-sources { list-style: none; padding: 0; margin: 0 0 .5rem; font-size: .88rem; }
.cp-sources li { padding: .35rem 0; border-bottom: 1px solid var(--cp-line); }
.cp-sources li span { display: block; color: var(--cp-ink-3); font-size: .8rem; }

@media (max-width: 576px) {
  .cp-hero { padding: 1.4rem 1.2rem; }
  .cp-hero p { font-size: 1rem; }
  .cp-doc { grid-template-columns: 1fr; }
  .cp-subnav { grid-template-columns: repeat(3, 1fr); gap: .4rem; margin-bottom: 1rem; }
  .cp-subnav a { padding: .55rem .5rem; font-size: .78rem; text-align: center; }
  .cp-subnav small { display: none; }
  .cp-stats { grid-template-columns: repeat(2, 1fr); gap: .6rem; }
  .cp-stat { padding: .75rem .8rem; }
  .cp-stat .num { font-size: 1.5rem; }
}

/* Tables that stack into labelled rows on phones */
@media (max-width: 640px) {
  .cp-table.stack thead { display: none; }
  .cp-table.stack tr { display: block; border-bottom: 1px solid var(--cp-line); padding: .45rem 0; }
  .cp-table.stack tr:last-child { border-bottom: 0; }
  .cp-table.stack th[scope=row], .cp-table.stack td { display: block; border: 0; padding: .2rem .8rem; text-align: left; }
  .cp-table.stack th[scope=row] { background: none; position: static; font-size: .95rem; }
  .cp-table.stack td[data-label]:before { content: attr(data-label); display: block; font-size: .7rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--cp-ink-3); }
  .cp-table-wrap { max-height: 75vh; }
}
