/* Cell phone safety studies section. Uses the public shell tokens. */

.cps-page {
  max-width: 46rem;
  margin: 0 auto;
  padding: 8px 18px 56px;
  color: var(--text, #e7eef7);
}

.cps-page.cps-index {
  max-width: 52rem;
}

.cps-kicker {
  margin: 0 0 8px;
  font-size: 0.82rem;
  letter-spacing: 0.02em;
}

.cps-kicker a { color: var(--link, #8bd5ff); }

.cps-page h1 {
  margin: 0;
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.cps-page h2 {
  margin: 1.7rem 0 0.45rem;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.cps-page h3 {
  margin: 1.1rem 0 0.4rem;
  font-size: 1.02rem;
}

.cps-hero {
  margin: 4px 0 22px;
  padding: 22px 20px 18px;
  border: 1px solid var(--border, #1f2a3a);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(139, 213, 255, 0.07), transparent 42%),
    linear-gradient(135deg, color-mix(in srgb, var(--bg, #0b0f14) 55%, #132033), var(--bg, #0f1722));
}

.cps-hero h1 {
  font-size: clamp(1.85rem, 4.4vw, 2.55rem);
  line-height: 1.1;
}

.cps-hero::before {
  content: "";
  display: block;
  width: 3rem;
  height: 4px;
  margin: 0 0 14px;
  border-radius: 999px;
  background: var(--link, #8bd5ff);
}

.cps-intro,
.cps-page p,
.cps-flag-expl {
  margin: 10px 0 0;
  line-height: 1.6;
}

.cps-hero .cps-intro {
  margin-top: 14px;
  font-size: 1.02rem;
  color: var(--muted, #9fb0c4);
}

.cps-hero .cps-intro p { margin: 10px 0 0; color: inherit; }

.cps-hero-count {
  margin: 14px 0 0;
  color: var(--muted, #9fb0c4);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.cps-share {
  margin: 16px 0 0;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.cps-hero .cps-share { margin-top: 16px; }

.cps-share a,
.cps-share button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border, #1f2a3a);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text, #e7eef7);
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  text-decoration: none;
  cursor: pointer;
}

.cps-share a:hover,
.cps-share button:hover {
  background: rgba(255, 255, 255, 0.09);
  text-decoration: none;
}

.cps-share-native[hidden] { display: none !important; }

.cps-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin: 10px 0 0;
  color: var(--muted, #9fb0c4);
  font-size: 0.95rem;
  line-height: 1.45;
}

.cps-meta a { color: var(--link, #8bd5ff); }

.cps-list {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.cps-index {
  container-type: inline-size;
}

@container (min-width: 680px) {
  .cps-index .cps-list {
    grid-template-columns: 1fr 1fr;
  }
}

.cps-card {
  margin: 0;
  padding: 16px 16px 15px;
  border: 1px solid var(--border, #1f2a3a);
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg, #12171b) 88%, #fff 12%);
  min-width: 0;
}

.cps-card:hover {
  border-color: color-mix(in srgb, var(--link, #8bd5ff) 40%, var(--border, #1f2a3a));
}

.cps-card-top {
  display: flex;
  gap: 10px 14px;
  justify-content: space-between;
  align-items: flex-start;
}

.cps-card-title {
  color: inherit;
  font-weight: 700;
  text-decoration: none;
  line-height: 1.35;
  font-size: 1.02rem;
}

.cps-card-title:hover { color: var(--link, #8bd5ff); }

.cps-score {
  flex: 0 0 auto;
  display: inline-block;
  min-width: 4.6rem;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 750;
  letter-spacing: 0.02em;
  text-align: center;
}

.cps-score-low { background: rgba(210, 60, 60, 0.22); color: #ffb4b0; }
.cps-score-mid { background: rgba(244, 197, 66, 0.2); color: #f6d56a; }
.cps-score-high { background: rgba(47, 179, 68, 0.22); color: #9be3a4; }

.cps-flags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
}

.cps-chip {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.16));
  background: rgba(255, 255, 255, 0.04);
  color: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  text-decoration: none;
}

.cps-chip:hover { background: rgba(255, 255, 255, 0.1); }

.cps-weaknesses,
.cps-sources,
.cps-markdown ul {
  margin: 8px 0 0;
  padding-left: 1.2rem;
  line-height: 1.55;
}

.cps-weaknesses li,
.cps-sources li,
.cps-markdown li { margin: 0.4rem 0; }

.cps-weaknesses a,
.cps-sources a,
.cps-markdown a,
.cps-page a { color: var(--link, #8bd5ff); }

.cps-study h1,
.cps-flag h1 { margin-top: 2px; }

.cps-dossiers { margin-top: 2.2rem; }

.cps-dossier {
  margin: 1rem 0 0;
  padding: 16px 16px 18px;
  border: 1px solid var(--border, rgba(255, 255, 255, 0.12));
  border-radius: 16px;
  background: color-mix(in srgb, var(--bg, #12171b) 92%, #fff 8%);
}

.cps-dossier h3 {
  margin: 0 0 0.65rem;
  font-size: 1.08rem;
}

.cps-dossier h3 a { color: inherit; text-decoration: none; }
.cps-dossier h3 a:hover { color: var(--link, #8bd5ff); }

.cps-dossier h4 {
  margin: 1rem 0 0.35rem;
  font-size: 0.95rem;
}

.cps-markdown p { margin: 10px 0 0; line-height: 1.6; }
.cps-markdown p:first-child { margin-top: 0; }

.cps-flag-why {
  margin: 8px 0 0;
  color: var(--muted, #9fb0c4);
  font-size: 0.95rem;
}

.cps-flag-expl { font-size: 1.02rem; line-height: 1.6; }

html[data-theme="light"] .cps-page { color: var(--text, #142028); }

html[data-theme="light"] .cps-hero {
  background:
    linear-gradient(180deg, rgba(11, 110, 138, 0.08), transparent 48%),
    #fff;
  border-color: var(--border, #d5dbe0);
}

html[data-theme="light"] .cps-hero::before { background: var(--link, #0b6e8a); }

html[data-theme="light"] .cps-hero .cps-intro,
html[data-theme="light"] .cps-hero-count,
html[data-theme="light"] .cps-flag-why { color: var(--muted, #3d4c55); }

html[data-theme="light"] .cps-card,
html[data-theme="light"] .cps-dossier {
  background: #fff;
  border-color: var(--border, rgba(16, 24, 32, 0.14));
}

html[data-theme="light"] .cps-score-low { background: rgba(210, 60, 60, 0.14); color: #9b1c1c; }
html[data-theme="light"] .cps-score-mid { background: rgba(196, 140, 10, 0.16); color: #7a5600; }
html[data-theme="light"] .cps-score-high { background: rgba(47, 179, 68, 0.16); color: #14662a; }
html[data-theme="light"] .cps-chip { background: rgba(16, 24, 32, 0.04); }

html[data-theme="light"] .cps-share a,
html[data-theme="light"] .cps-share button {
  background: rgba(16, 24, 32, 0.03);
  color: var(--text, #142028);
  border-color: var(--border, #d5dbe0);
}

html[data-theme="light"] .cps-share a:hover,
html[data-theme="light"] .cps-share button:hover {
  background: rgba(16, 24, 32, 0.07);
}

@media (max-width: 700px) {
  .cps-page { padding: 4px 14px 40px; }
  .cps-hero { padding: 18px 16px 16px; }
  .cps-card-top { flex-direction: column; }
  .cps-share a,
  .cps-share button { flex: 1 1 auto; }
}

/* Section navigator (right rail). Uses site sidecard tokens; scoped list only. */
.cps-section-nav {
  list-style: none;
  margin: 0;
  padding: 0;
}
.cps-section-nav li + li {
  border-top: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}
.cps-section-nav a {
  display: block;
  padding: 8px 0;
  color: var(--link, #8bd5ff);
  text-decoration: none;
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.35;
}
.cps-section-nav a:hover { text-decoration: underline; }
.cps-section-nav a[aria-current="page"] {
  color: var(--text, #e7eef7);
  font-weight: 800;
}

.cps-counts {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}
.cps-counts li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border, rgba(255, 255, 255, 0.06));
}
.cps-count-label { color: var(--muted, #9fb0c4); }
.cps-timeline {
  list-style: none;
  margin: 12px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.cps-timeline h3,
.cps-extra h3 {
  margin: 6px 0 0;
  font-size: 1.05rem;
  line-height: 1.3;
}
.cps-timeline h4,
.cps-extra h4 {
  margin: 12px 0 0;
  font-size: 0.95rem;
}

html[data-theme="light"] .cps-section-nav a[aria-current="page"] {
  color: var(--text, #142028);
}
html[data-theme="light"] .cps-section-nav li + li,
html[data-theme="light"] .cps-counts li {
  border-top-color: var(--border, #d5dbe0);
  border-bottom-color: var(--border, #d5dbe0);
}
