:root {
  --ccp-ink: #0b1739;
  --ccp-muted: #586781;
  --ccp-border: #dce3ed;
  --ccp-surface: #ffffff;
  --ccp-soft: #f7f9fe;
  --ccp-brand: #3157d9;
  --ccp-brand-dark: #2345b5;
  --ccp-success: #157347;
  --ccp-warning: #9a6700;
  --ccp-danger: #b42318;
  --ccp-radius: 16px;
  --ccp-shadow: 0 10px 30px rgba(25, 42, 70, 0.08);
}

/* Source-reviewed editorial guides added ahead of the structured profile. */
.ccp-editorial-guide {
	color: #263a5c;
	font-size: 1rem;
	line-height: 1.75;
	margin-bottom: clamp(32px, 5vw, 64px);
}

.ccp-editorial-guide * {
	box-sizing: border-box;
}

.ccp-editorial-guide > p,
.ccp-editorial-guide > h2,
.ccp-editorial-guide > ol,
.ccp-editorial-guide > ul,
.ccp-editorial-guide > div:not(.ccp-editorial-guide__decision-grid),
.ccp-editorial-guide > nav,
.ccp-editorial-guide > figure {
	margin-left: auto;
	margin-right: auto;
	max-width: 860px;
}

.ccp-editorial-guide h2 {
	color: #0b1739;
	font-size: clamp(1.45rem, 2.5vw, 2rem);
	letter-spacing: -0.025em;
	line-height: 1.25;
	margin-bottom: 14px;
	margin-top: clamp(38px, 6vw, 62px);
}

.ccp-editorial-guide h3 {
	color: #0b1739;
	font-size: 1.08rem;
	line-height: 1.35;
	margin: 0 0 9px;
}

.ccp-editorial-guide p {
	margin-bottom: 18px;
}

.ccp-editorial-guide a {
	color: #2f50df;
	font-weight: 650;
	text-underline-offset: 3px;
}

.ccp-editorial-guide__answer {
	background: linear-gradient(135deg, #f2f5ff 0%, #eefbf9 100%);
	border: 1px solid #dbe3ff;
	border-left: 5px solid #3f5bf6;
	border-radius: 15px;
	color: #17284a;
	font-size: 1.04rem;
	padding: 20px 22px;
}

.ccp-editorial-guide__toc {
	align-items: center;
	background: #fff;
	border: 1px solid #dfe5ef;
	border-radius: 14px;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
	margin-bottom: 30px;
	margin-top: 28px;
	padding: 16px 18px;
}

.ccp-editorial-guide__toc strong {
	color: #0b1739;
	margin-right: 5px;
}

.ccp-editorial-guide__toc a {
	font-size: .91rem;
}

.ccp-editorial-guide__visual {
	margin-bottom: 34px;
	margin-top: 28px;
}

.ccp-editorial-guide__visual img {
	border-radius: 20px;
	box-shadow: 0 18px 48px rgba(11, 23, 57, .14);
	display: block;
	height: auto;
	width: 100%;
}

.ccp-editorial-guide__visual figcaption {
	color: #687894;
	font-size: .84rem;
	line-height: 1.5;
	margin-top: 10px;
	text-align: center;
}

.ccp-editorial-guide__decision-grid {
	display: grid;
	gap: 18px;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	margin: 20px auto 30px;
	max-width: 960px;
}

.ccp-editorial-guide__decision-grid section {
	background: #fff;
	border: 1px solid #dfe5ef;
	border-radius: 16px;
	min-width: 0;
	padding: 22px;
}

.ccp-editorial-guide__decision-grid section:first-child {
	border-top: 4px solid #2bb79f;
}

.ccp-editorial-guide__decision-grid section:last-child {
	border-top: 4px solid #f0a452;
}

.ccp-editorial-guide__decision-grid p {
	margin: 0;
}

.ccp-editorial-guide__checklist,
.ccp-editorial-guide__steps {
	padding-left: 22px;
}

.ccp-editorial-guide__checklist li,
.ccp-editorial-guide__steps li {
	margin-bottom: 10px;
	padding-left: 5px;
}

.ccp-editorial-guide__freshness {
	background: #fffaf0;
	border: 1px solid #f3dfb6;
	border-radius: 12px;
	color: #614817;
	font-size: .93rem;
	line-height: 1.6;
	padding: 15px 17px;
}

.ccp-editorial-guide__faqs section {
	border-bottom: 1px solid #e4e8ef;
	padding: 18px 0 10px;
}

.ccp-editorial-guide__faqs section:last-child {
	border-bottom: 0;
}

@media (max-width: 720px) {
	.ccp-editorial-guide__decision-grid {
		grid-template-columns: 1fr;
	}

	.ccp-editorial-guide__toc {
		align-items: flex-start;
		flex-direction: column;
	}

	.ccp-editorial-guide__answer,
	.ccp-editorial-guide__decision-grid section {
		padding: 18px;
	}
}

.ccp-profile,
.ccp-finder,
.ccp-compare-tool {
  color: var(--ccp-ink);
  font-size: 16px;
  line-height: 1.65;
}

.ccp-profile *,
.ccp-finder *,
.ccp-compare-tool * {
  box-sizing: border-box;
}

.ccp-profile h2,
.ccp-finder h2,
.ccp-compare-tool h2 {
  color: var(--ccp-ink);
  font-size: clamp(1.45rem, 2.2vw, 2rem);
  letter-spacing: -0.025em;
  line-height: 1.2;
}

.ccp-profile h3,
.ccp-finder h3 {
  color: var(--ccp-ink);
  line-height: 1.3;
}

.ccp-button {
  align-items: center;
  appearance: none;
  background: var(--ccp-brand);
  border: 1px solid var(--ccp-brand);
  border-radius: 10px;
  color: #fff !important;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.95rem;
  font-weight: 700;
  gap: 8px;
  justify-content: center;
  line-height: 1.2;
  min-height: 46px;
  padding: 12px 18px;
  text-decoration: none !important;
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.ccp-button:hover,
.ccp-button:focus {
  background: var(--ccp-brand-dark);
  border-color: var(--ccp-brand-dark);
  transform: translateY(-1px);
}

.ccp-button:focus-visible,
.ccp-text-link:focus-visible,
.ccp-card a:focus-visible,
.ccp-filter-form input:focus,
.ccp-filter-form select:focus,
.ccp-compare-picker select:focus {
  outline: 3px solid rgba(49, 87, 213, 0.25);
  outline-offset: 2px;
}

.ccp-button:disabled {
  background: #aeb8c8;
  border-color: #aeb8c8;
  cursor: not-allowed;
  transform: none;
}

.ccp-button--secondary {
  background: #fff;
  border-color: var(--ccp-border);
  color: var(--ccp-ink) !important;
}

.ccp-button--secondary:hover,
.ccp-button--secondary:focus {
  background: var(--ccp-soft);
  border-color: #b9c4d4;
}

.ccp-text-link,
.ccp-card__link {
  color: var(--ccp-brand);
  font-weight: 700;
  text-decoration: none;
}

.ccp-text-link:hover,
.ccp-card__link:hover {
  color: var(--ccp-brand-dark);
  text-decoration: underline;
}

.ccp-profile__summary {
  align-items: flex-start;
  background: linear-gradient(135deg, #f7f9ff 0%, #eef4ff 100%);
  border: 1px solid #dbe4ff;
  border-radius: var(--ccp-radius);
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1fr) auto;
  margin: 32px 0 20px;
  padding: clamp(22px, 4vw, 36px);
}

.ccp-profile__summary h2 {
  margin: 12px 0 10px;
}

.ccp-profile__verdict {
  color: #34435c;
  font-size: 1.06rem;
  margin: 0;
  max-width: 760px;
}

.ccp-profile__actions {
  display: grid;
  gap: 10px;
  min-width: 210px;
}

.ccp-badge-row,
.ccp-card__terms {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.ccp-badge {
  background: #e9edf4;
  border-radius: 999px;
  color: #3e4a5d;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 750;
  letter-spacing: 0.015em;
  line-height: 1;
  padding: 7px 10px;
}

.ccp-badge--verified {
  background: #dff6ea;
  color: var(--ccp-success);
}

.ccp-badge--update_due,
.ccp-badge--provider_changed {
  background: #fff2cc;
  color: var(--ccp-warning);
}

.ccp-badge--draft {
  background: #eef1f6;
  color: #5b6575;
}

.ccp-quick-facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  margin: 20px 0 42px;
}

.ccp-quick-fact {
  background: var(--ccp-surface);
  border: 1px solid var(--ccp-border);
  border-radius: 12px;
  min-width: 0;
  padding: 16px;
}

.ccp-quick-fact span,
.ccp-card__facts small {
  color: var(--ccp-muted);
  display: block;
  font-size: 0.78rem;
  font-weight: 650;
  margin-bottom: 5px;
}

.ccp-quick-fact strong {
  display: block;
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}

.ccp-section {
  border-top: 1px solid var(--ccp-border);
  margin-top: 42px;
  padding-top: 34px;
}

.ccp-info-grid,
.ccp-career-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ccp-panel {
  background: var(--ccp-soft);
  border: 1px solid var(--ccp-border);
  border-radius: 12px;
  padding: 20px;
}

.ccp-panel h3 {
  font-size: 1rem;
  margin: 0 0 8px;
}

.ccp-panel p:last-child,
.ccp-role-list {
  margin-bottom: 0;
}

.ccp-detail-list {
  border: 1px solid var(--ccp-border);
  border-radius: 12px;
  margin: 0;
  overflow: hidden;
}

.ccp-detail-list > div {
  display: grid;
  gap: 22px;
  grid-template-columns: minmax(150px, 0.35fr) minmax(0, 1fr);
  padding: 16px 20px;
}

.ccp-detail-list > div:nth-child(even) {
  background: var(--ccp-soft);
}

.ccp-detail-list dt {
  font-weight: 750;
}

.ccp-detail-list dd {
  margin: 0;
}

.ccp-role-list {
  padding-left: 20px;
}

.ccp-salary strong {
  color: var(--ccp-brand-dark);
  font-size: 1.35rem;
}

.ccp-note,
.ccp-disclaimer {
  color: var(--ccp-muted);
  font-size: 0.86rem;
}

.ccp-disclaimer {
  background: #fff8e6;
  border-left: 4px solid #f0b429;
  margin: 18px 0 0;
  padding: 12px 14px;
}

.ccp-tool-intro {
  margin-bottom: 28px;
  max-width: 820px;
}

.ccp-tool-intro h2 {
  margin: 5px 0 10px;
}

.ccp-kicker {
  color: var(--ccp-brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  margin: 0;
  text-transform: uppercase;
}

.ccp-filter-form,
.ccp-compare-picker {
  background: var(--ccp-soft);
  border: 1px solid var(--ccp-border);
  border-radius: var(--ccp-radius);
  margin-bottom: 34px;
  padding: 22px;
}

.ccp-filter-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ccp-filter-form label,
.ccp-compare-picker label {
  display: block;
}

.ccp-filter-form label > span,
.ccp-compare-picker label > span {
  display: block;
  font-size: 0.82rem;
  font-weight: 750;
  margin-bottom: 6px;
}

.ccp-filter-form input,
.ccp-filter-form select,
.ccp-compare-picker select {
  background: #fff;
  border: 1px solid #bdc7d5;
  border-radius: 9px;
  color: var(--ccp-ink);
  font: inherit;
  min-height: 46px;
  padding: 9px 11px;
  width: 100%;
}

.ccp-filter-actions {
  align-items: center;
  display: flex;
  gap: 18px;
  margin-top: 18px;
}

.ccp-results-heading {
  align-items: end;
  display: flex;
  justify-content: space-between;
  margin: 32px 0 18px;
}

.ccp-results-heading h2,
.ccp-results-heading p {
  margin: 0;
}

.ccp-results-heading p {
  color: var(--ccp-muted);
  font-size: 0.9rem;
}

.ccp-card-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ccp-card {
  background: #fff;
  border: 1px solid var(--ccp-border);
  border-radius: var(--ccp-radius);
  box-shadow: 0 3px 14px rgba(25, 42, 70, 0.04);
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 20px;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.ccp-card:hover {
  border-color: #b7c5dc;
  box-shadow: var(--ccp-shadow);
  transform: translateY(-2px);
}

.ccp-card__top {
  align-items: center;
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.ccp-compare-check {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 6px;
}

.ccp-compare-check input {
  accent-color: var(--ccp-brand);
  height: 17px;
  margin: 0;
  width: 17px;
}

.ccp-card h3 {
  font-size: 1.16rem;
  margin: 17px 0 10px;
}

.ccp-card h3 a {
  color: var(--ccp-ink);
  text-decoration: none;
}

.ccp-card p {
  color: #4e5c70;
}

.ccp-card__facts {
  border-bottom: 1px solid var(--ccp-border);
  border-top: 1px solid var(--ccp-border);
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: auto 0 16px;
  padding: 14px 0;
}

.ccp-card__facts strong {
  display: block;
  font-size: 0.86rem;
  overflow-wrap: anywhere;
}

.ccp-selection-bar {
  align-items: center;
  background: #0b1739;
  border-radius: 12px;
  color: #fff;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-top: 18px;
  padding: 12px 14px 12px 20px;
  position: sticky;
  bottom: 14px;
  z-index: 20;
}

.ccp-compare-picker {
  align-items: end;
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
}

.ccp-table-wrap {
  border: 1px solid var(--ccp-border);
  border-radius: 12px;
  max-width: 100%;
  overflow: auto;
}

.ccp-compare-table {
  border: 0;
  border-collapse: collapse;
  margin: 0;
  min-width: 780px;
  width: 100%;
}

.ccp-compare-table th,
.ccp-compare-table td {
  border: 0;
  border-bottom: 1px solid var(--ccp-border);
  min-width: 200px;
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
}

.ccp-compare-table thead th {
  background: #0b1739;
  color: #fff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.ccp-compare-table thead a {
  color: #fff;
}

.ccp-compare-table tbody th {
  background: var(--ccp-soft);
  min-width: 160px;
  position: sticky;
  left: 0;
  z-index: 1;
}

.ccp-empty-state {
  background: var(--ccp-soft);
  border: 1px dashed #b7c2d2;
  border-radius: var(--ccp-radius);
  padding: 34px;
  text-align: center;
}

.ccp-empty-state h3 {
  margin: 0 0 8px;
}

.ccp-empty-state p {
  color: var(--ccp-muted);
  margin: 0;
}

.ccp-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: center;
  list-style: none;
  margin: 28px 0 0;
  padding: 0;
}

.ccp-pagination a,
.ccp-pagination span {
  border: 1px solid var(--ccp-border);
  border-radius: 8px;
  display: inline-flex;
  min-width: 40px;
  padding: 8px 11px;
  text-decoration: none;
}

.ccp-pagination .current {
  background: var(--ccp-brand);
  border-color: var(--ccp-brand);
  color: #fff;
}

@media (max-width: 980px) {
  .ccp-quick-facts {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ccp-filter-grid,
  .ccp-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .ccp-compare-picker {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .ccp-profile__summary {
    grid-template-columns: 1fr;
  }

  .ccp-profile__actions {
    min-width: 0;
    width: 100%;
  }

  .ccp-quick-facts,
  .ccp-info-grid,
  .ccp-career-grid,
  .ccp-filter-grid,
  .ccp-card-grid {
    grid-template-columns: 1fr;
  }

  .ccp-detail-list > div {
    gap: 5px;
    grid-template-columns: 1fr;
  }

  .ccp-results-heading {
    align-items: flex-start;
    display: block;
  }

  .ccp-results-heading p {
    margin-top: 5px;
  }

  .ccp-selection-bar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 13px;
  }

  .ccp-card__facts {
    grid-template-columns: 1fr 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ccp-button,
  .ccp-card {
    transition: none;
  }
}
