/* Content pages of the public site (blog, tools): readable text on the landing's dark theme. */
.cp-main { max-width: 1100px; margin: 0 auto; padding: 112px 20px 72px; }
.cp-narrow { max-width: 760px; margin: 0 auto; }
.cp-eyebrow { color: #22d3ee; font: 600 12px/1.4 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; }
.cp-title { font-size: clamp(2rem, 5vw, 3rem); font-weight: 700; line-height: 1.1; margin: 8px 0 12px; color: #fff; }
.cp-lead { color: #cbd5e1; font-size: 1.125rem; line-height: 1.7; max-width: 680px; }
.cp-muted { color: #94a3b8; font-size: .9rem; }
.cp-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); margin-top: 32px; }
.cp-card { display: flex; flex-direction: column; background: rgba(15, 23, 42, .6); border: 1px solid rgba(34, 211, 238, .18);
  border-radius: 14px; overflow: hidden; color: inherit; text-decoration: none; transition: border-color .2s, transform .2s; }
a.cp-card:hover { border-color: rgba(34, 211, 238, .6); transform: translateY(-2px); }
.cp-card-body { padding: 20px 22px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.cp-card h2, .cp-card h3 { color: #fff; font-size: 1.2rem; font-weight: 600; margin: 0; }
.cp-card p { color: #cbd5e1; margin: 0; line-height: 1.6; }
.cp-card img { width: 100%; aspect-ratio: 1200 / 630; object-fit: cover; display: block; }
.cp-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 20px;
  color: #22d3ee; background: rgba(34, 211, 238, .1); border: 1px solid rgba(34, 211, 238, .3); }
.cp-link { color: #22d3ee; text-decoration: none; font-weight: 600; }
.cp-link:hover { text-decoration: underline; }
.cp-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.cp-tag { font-size: 12px; color: #a5f3fc; background: rgba(34, 211, 238, .1); border-radius: 999px; padding: 2px 10px; }

/* Forms */
.cp-form { margin-top: 28px; display: flex; flex-direction: column; gap: 18px; background: rgba(15, 23, 42, .6);
  border: 1px solid rgba(34, 211, 238, .18); border-radius: 14px; padding: 24px; }
.cp-form label { display: block; font-weight: 600; color: #e2e8f0; margin-bottom: 6px; }
.cp-input { width: 100%; box-sizing: border-box; background: rgba(2, 6, 23, .7); color: #f1f5f9; border: 1px solid #334155;
  border-radius: 10px; padding: 10px 12px; font: inherit; }
.cp-input:focus { outline: 2px solid rgba(34, 211, 238, .6); outline-offset: 1px; border-color: transparent; }
textarea.cp-input { min-height: 180px; font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 13px; }
.cp-drop { border: 2px dashed #334155; border-radius: 12px; padding: 22px; text-align: center; color: #94a3b8; cursor: pointer; }
.cp-drop.is-over, .cp-drop:hover { border-color: #22d3ee; color: #e2e8f0; }
.cp-drop input { display: none; }
.cp-row { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 720px) { .cp-row { grid-template-columns: 1fr 1fr; } }
.cp-check { display: flex; gap: 10px; align-items: flex-start; color: #cbd5e1; font-weight: 400 !important; }
.cp-check input { margin-top: 4px; accent-color: #22d3ee; }
.cp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 10px;
  padding: 12px 22px; font-weight: 700; color: #020617; background: linear-gradient(90deg, #22d3ee, #818cf8); cursor: pointer;
  text-decoration: none; }
.cp-btn:hover { filter: brightness(1.1); }
.cp-btn[disabled] { opacity: .6; cursor: wait; }
.cp-alert { border-radius: 10px; padding: 12px 14px; background: rgba(239, 68, 68, .12); border: 1px solid rgba(239, 68, 68, .4); color: #fecaca; }
.cp-success { border-radius: 14px; padding: 24px; background: rgba(16, 185, 129, .1); border: 1px solid rgba(16, 185, 129, .4); color: #d1fae5; }
.cp-errorlist { color: #fca5a5; font-size: .875rem; margin: 6px 0 0; padding: 0; list-style: none; }
.cp-hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.cp-or { text-align: center; color: #64748b; font-size: .85rem; }

/* Article */
.cp-article { color: #e2e8f0; font-size: 1.075rem; line-height: 1.8; }
.cp-article h2 { color: #fff; font-size: 1.6rem; margin: 2em 0 .6em; line-height: 1.3; }
.cp-article h3 { color: #fff; font-size: 1.3rem; margin: 1.6em 0 .5em; }
.cp-article p, .cp-article ul, .cp-article ol, .cp-article blockquote, .cp-article table { margin: 0 0 1.2em; }
.cp-article ul, .cp-article ol { padding-left: 1.4em; }
.cp-article ul { list-style: disc; } .cp-article ol { list-style: decimal; }
.cp-article a { color: #22d3ee; }
.cp-article blockquote { border-left: 3px solid #22d3ee; padding: 4px 0 4px 16px; color: #cbd5e1; font-style: italic; }
.cp-article code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .9em; background: rgba(148, 163, 184, .15);
  padding: .1em .35em; border-radius: 5px; }
.cp-article pre { background: #020617; border: 1px solid #1e293b; border-radius: 10px; padding: 16px; overflow-x: auto;
  font-size: .875rem; line-height: 1.6; margin: 0 0 1.4em; }
.cp-article pre code { background: none; padding: 0; }
.cp-article table { border-collapse: collapse; width: 100%; display: block; overflow-x: auto; }
.cp-article th, .cp-article td { border: 1px solid #334155; padding: 6px 10px; }
.cp-figure { margin: 1.6em 0; }
.cp-figure img { max-width: 100%; height: auto; border-radius: 12px; border: 1px solid #1e293b; display: block; margin: 0 auto; }
.cp-figure figcaption { text-align: center; color: #94a3b8; font-size: .9rem; margin-top: 8px; }
.cp-cover { width: 100%; border-radius: 16px; border: 1px solid #1e293b; margin: 24px 0 8px; aspect-ratio: 1200 / 630; object-fit: cover; }
.cp-pager { display: flex; justify-content: space-between; gap: 12px; margin-top: 40px; }
.cp-draft { display: inline-block; background: #f59e0b; color: #111827; font-weight: 700; border-radius: 6px; padding: 2px 8px; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Tool pages: breadcrumbs, sections under the tool, steps, sample report, FAQ, sign-up box */
.cp-breadcrumbs ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cp-breadcrumbs li + li::before { content: '/'; color: #475569; margin-right: 6px; }
.cp-breadcrumbs [aria-current] { color: #94a3b8; }
.cp-section { margin-top: 56px; }
.cp-section > h2 { color: #fff; font-size: 1.6rem; line-height: 1.3; margin: 0 0 14px; }
.cp-steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 14px; }
.cp-steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 60px; background: rgba(15, 23, 42, .6);
  border: 1px solid rgba(34, 211, 238, .18); border-radius: 12px; color: #cbd5e1; line-height: 1.6; }
.cp-steps li::before { content: counter(step); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 700; color: #020617; background: #22d3ee; }
.cp-steps strong { color: #fff; }
.cp-sample { background: #020617; border: 1px solid #1e293b; border-radius: 12px; padding: 18px 20px; color: #e2e8f0;
  font-size: .95rem; line-height: 1.6; }
.cp-sample h3 { margin: 0 0 6px !important; font-size: 1.05rem !important; }
.cp-sample pre { margin: 10px 0 !important; }
.cp-sev { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 1px 9px; margin-right: 6px; }
.cp-sev--critical { background: rgba(239, 68, 68, .2); color: #fecaca; }
.cp-sev--high { background: rgba(249, 115, 22, .2); color: #fed7aa; }
.cp-faq details { border-bottom: 1px solid #1e293b; padding: 14px 0; }
.cp-faq summary { cursor: pointer; color: #fff; font-weight: 600; font-size: 1.05rem; list-style-position: outside; }
.cp-faq summary:focus-visible { outline: 2px solid rgba(34, 211, 238, .6); outline-offset: 4px; }
.cp-faq details p { color: #cbd5e1; line-height: 1.7; margin: 10px 0 0; }
.cp-signup { margin-top: 56px; border-radius: 14px; padding: 24px; background: rgba(34, 211, 238, .08);
  border: 1px solid rgba(34, 211, 238, .35); }
.cp-signup h2 { color: #fff; font-size: 1.35rem; margin: 0 0 8px; }
.cp-signup p { color: #cbd5e1; line-height: 1.7; margin: 0 0 16px; }
.cp-updated { margin-top: 32px; }
.cp-tools-group { margin-top: 40px; }
.cp-tools-group > h2 { color: #fff; font-size: 1.3rem; margin: 0; }

/* Package, version and advisory pages */
.cp-sev--medium { background: rgba(234, 179, 8, .18); color: #fef08a; }
.cp-sev--low { background: rgba(56, 189, 248, .15); color: #bae6fd; }
.cp-sev--unknown { background: rgba(148, 163, 184, .18); color: #cbd5e1; }
.cp-sev--none { background: rgba(16, 185, 129, .16); color: #a7f3d0; }
.cp-verdict { margin: 20px 0 0; border-radius: 14px; padding: 18px 20px; font-size: 1.15rem; font-weight: 600; color: #fff;
  background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .4); }
.cp-verdict--clean { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .4); }
.cp-verdict--unknown { background: rgba(148, 163, 184, .1); border-color: #334155; }
.cp-verdict p { margin: 6px 0 0; font-size: .95rem; font-weight: 400; color: #cbd5e1; }
.cp-advisories { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.cp-advisory { background: rgba(15, 23, 42, .6); border: 1px solid rgba(34, 211, 238, .18); border-radius: 12px; padding: 16px 18px; }
.cp-advisory h3 { margin: 6px 0 4px; font-size: 1.05rem; color: #fff; line-height: 1.4; }
.cp-advisory p { margin: 4px 0 0; color: #cbd5e1; line-height: 1.6; }
.cp-mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: .9em; }
.cp-table-wrap { overflow-x: auto; }
.cp-table { width: 100%; border-collapse: collapse; color: #e2e8f0; font-size: .95rem; }
.cp-table th, .cp-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid #1e293b; vertical-align: top; }
.cp-table th { color: #94a3b8; font-weight: 600; font-size: .85rem; }
.cp-table tr[aria-current] td { background: rgba(34, 211, 238, .08); }
.cp-search { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.cp-search .cp-input { flex: 1 1 240px; width: auto; }
.cp-search select.cp-input { flex: 0 1 160px; }
.cp-cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.cp-btn--ghost { background: transparent; color: #22d3ee; border: 1px solid rgba(34, 211, 238, .5); }
.cp-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0; color: #e2e8f0; }
.cp-dl dt { color: #94a3b8; }
.cp-dl dd { margin: 0; }

/* EU AI Act risk check */
.cp-q fieldset { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.cp-q legend { font-weight: 600; color: #e2e8f0; margin-bottom: 6px; padding: 0; }
.cp-q[hidden] { display: none; }
.cp-progress { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; font-size: 12px; }
.cp-progress li { padding: 3px 10px; border-radius: 999px; background: rgba(148, 163, 184, .12); color: #94a3b8; }
.cp-progress li[aria-current] { background: rgba(34, 211, 238, .18); color: #a5f3fc; font-weight: 700; }
.cp-progress li.is-done { color: #cbd5e1; }
.cp-step-title { color: #fff; font-size: 1.3rem; margin: 0 0 4px; }
.cp-group-title { color: #fff; font-size: 1.05rem; margin: 22px 0 10px; }
.cp-verdict--minimal, .cp-verdict--out_of_scope { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .4); }
.cp-verdict--transparency { background: rgba(234, 179, 8, .08); border-color: rgba(234, 179, 8, .4); }
.cp-verdict--high_annex_i, .cp-verdict--high_annex_iii { background: rgba(249, 115, 22, .1); border-color: rgba(249, 115, 22, .45); }
.cp-step-title, .cp-q, .cp-section[id] { scroll-margin-top: 96px; }

/* Licence families */
.cp-sev--tone-good, .cp-sev--family-permissive, .cp-sev--family-public_domain { background: rgba(16, 185, 129, .16); color: #a7f3d0; }
.cp-sev--tone-neutral, .cp-sev--family-weak_copyleft { background: rgba(56, 189, 248, .15); color: #bae6fd; }
.cp-sev--tone-warn, .cp-sev--family-strong_copyleft, .cp-sev--family-unknown { background: rgba(234, 179, 8, .18); color: #fef08a; }
.cp-sev--tone-bad, .cp-sev--family-network_copyleft, .cp-sev--family-source_available { background: rgba(239, 68, 68, .2); color: #fecaca; }

/* MCP config audit */
.cp-sev--mcp-high { background: rgba(239, 68, 68, .2); color: #fecaca; }
.cp-sev--mcp-medium { background: rgba(234, 179, 8, .18); color: #fef08a; }
.cp-sev--mcp-low { background: rgba(56, 189, 248, .15); color: #bae6fd; }
.cp-sev--mcp-info { background: rgba(148, 163, 184, .18); color: #cbd5e1; }
.cp-grade { display: flex; align-items: center; gap: 14px; }
.cp-grade-letter { font-size: 2.2rem; font-weight: 800; line-height: 1; }
.cp-grade--A, .cp-grade--B { background: rgba(16, 185, 129, .1); border-color: rgba(16, 185, 129, .4); }
.cp-grade--C { background: rgba(234, 179, 8, .08); border-color: rgba(234, 179, 8, .4); }
.cp-mcp-server { margin-top: 22px; }
.cp-mcp-server h3 { color: #fff; font-size: 1.1rem; margin: 0 0 10px; }
.cp-advisory h4 { margin: 6px 0 4px; font-size: 1rem; }
#mcp-result:focus { outline: none; }
.cp-badges { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0 0; }

/* Advisory digest */
.cp-fieldset { border: 0; padding: 0; margin: 0; }
.cp-fieldset legend { font-weight: 600; color: #e2e8f0; margin-bottom: 8px; padding: 0; }
.cp-chip { padding: 4px 10px; border: 1px solid #334155; border-radius: 999px; }
button.cp-tag { border: 0; cursor: pointer; }
.cp-chip { align-items: center; }
.cp-chip input { margin-top: 0; }
.cp-article code, .cp-drop span { overflow-wrap: anywhere; }
