/* Conformité : un dossier d'audit à onglets (article 50, contenus, journal) et le compte à
   rebours de la fin du délai de grâce de l'article 50. */

.sl-hero--co {
  background: radial-gradient(ellipse 60% 70% at 72% 45%, #fffaf4, #efe5da 70%);
}

.co-file {
  max-width: 640px;
}

.co-file [hidden] {
  display: none !important;
}

.co-tabs {
  display: flex;
  gap: 4px;
  padding-left: 18px;
}

.co-tab {
  min-height: 40px;
  padding: 9px 14px;
  border: 1px solid #e3d6ca;
  border-bottom: 0;
  border-radius: var(--ps-radius-sm) var(--ps-radius-sm) 0 0;
  background: #ead9cd;
  color: var(--ps-muted-light);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.co-tab[aria-selected="true"] {
  background: #fffdf8;
  color: var(--ps-ink);
}

.co-tab:focus-visible {
  outline: 3px solid rgba(255, 138, 76, 0.55);
  outline-offset: 2px;
}

.co-sheet {
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-sizing: border-box;
  min-height: 330px;
  padding: 22px 24px;
  border: 1px solid #e3d6ca;
  border-radius: var(--ps-radius-md);
  background: #fffdf8;
  box-shadow: 0 50px 90px -40px rgba(60, 30, 10, 0.45);
}

.co-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.co-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1.5px solid var(--ps-ink);
}

.co-title {
  color: var(--ps-ink);
  font-size: 20px;
  font-weight: 900;
}

.co-tag {
  color: #8a7266;
  font-size: 11px;
}

.co-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}

.co-rows li {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: start;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #efe4da;
}

/* Pastilles teintées plutôt qu'une barre latérale colorée. */
.co-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 5px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}

.co-ic--ok {
  background: #10b981;
}

.co-ic--todo {
  background: #f59e0b;
}

.co-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.co-a {
  color: var(--ps-ink);
  font-size: 14px;
  font-weight: 700;
}

.co-b {
  color: var(--ps-muted-light);
  font-size: 12px;
}

.co-c {
  color: #8a7266;
  font-size: 11px;
  white-space: nowrap;
}

.co-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-top: auto;
  color: var(--ps-muted-light);
  font-size: 13px;
}

.co-days {
  color: var(--ps-orange-dark);
  font-size: 22px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .sl-scene .co-file {
    zoom: 0.62;
  }
}

@media (max-width: 420px) {
  .sl-scene .co-file {
    zoom: 0.54;
  }
}

@media (prefers-reduced-motion: reduce) {
  .co-tab {
    transition: none;
  }
}

/* Regulatory content follows the solution pages: paper, Satoshi and editorial rules. */
.ps-page .sl-hero--co .sl-h1 {
  font-size: clamp(2.5rem, 4.2vw, 4.5rem);
  line-height: 1.08;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.co-page :is(.co-obligations, .co-provenance, .co-evidence) .sl-gains {
  gap: 2.5rem;
  padding-block: clamp(4rem, 7vw, 7rem);
}
.co-page :is(.co-obligations, .co-provenance, .co-evidence) .sl-head h2 {
  max-width: 24ch;
  margin: 0;
  font-size: clamp(2rem, 3vw, 2.75rem);
  line-height: 1.12;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.co-editorial { font-size: var(--ps-lead-size); line-height: 1.6; }
.ps-page .co-editorial h3 {
  margin: 0 0 1rem;
  color: var(--ps-ink);
  font-size: 26px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.03em;
}
.co-editorial p { max-width: 65ch; margin: 0; color: var(--ps-muted-light); }
.co-editorial a { color: var(--ps-orange-dark); text-underline-offset: .2em; }
.co-obligations .co-editorial {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: clamp(2rem, 5vw, 5rem);
  row-gap: 2.5rem;
}
.co-obligations .co-editorial > div {
  min-width: 0;
  padding-top: 1.5rem;
  border-top: 1px solid #b59e8e;
}
.co-obligations .co-editorial > div:last-child { grid-column: 1 / -1; }
.co-obligations .co-editorial > div:last-child p { max-width: 85ch; }
.co-provenance { border-block: 1px solid #d8c6b9; }
.co-provenance .sl-gains {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  column-gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}
.co-evidence .co-editorial > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.65fr);
  gap: 1rem 3rem;
  padding-block: 1.75rem;
  border-top: 1px solid #b59e8e;
}
.co-evidence .co-editorial > div:last-child { border-bottom: 1px solid #b59e8e; }
.co-evidence .co-editorial h3 { max-width: 22ch; margin: 0; }
.co-resources .sl-gains { padding-block: 4rem; }
.ps-page .co-resources h2 { margin: 0 0 1.5rem; font-size: 26px; line-height: 1.2; }
.co-resources .co-editorial { width: 100%; }
.co-resources ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .75rem 3rem;
  margin: 2rem 0 0;
  padding: 1.5rem 0 0;
  border-top: 1px solid #b59e8e;
  list-style: none;
}
.co-ic--record { color: var(--ps-muted-light); background: transparent; }
@media (max-width: 760px) {
  .co-obligations .co-editorial,
  .co-provenance .sl-gains,
  .co-evidence .co-editorial > div,
  .co-resources ul { grid-template-columns: minmax(0, 1fr); }
  .co-evidence .co-editorial h3 { max-width: none; }
}
