/* Shared public-page rhythm, using the existing article design tokens. */
.ct-directory { padding-top: 32px; padding-bottom: 32px; color: var(--ct-text); }
.ct-directory > nav:first-child { margin-bottom: 20px; line-height: 1.6; }
.ct-directory > header { margin-bottom: 28px; }
.ct-directory > header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.12; letter-spacing: -.035em;
  max-width: 920px; text-wrap: balance; overflow-wrap: break-word;
}
.ct-page-duel > h1 { font-size: clamp(2rem, 4vw, 3.25rem); line-height: 1.15; letter-spacing: -.035em; overflow-wrap: break-word; margin-bottom: 24px; }
.ct-info-page { padding-top: 32px; padding-bottom: 32px; }
.ct-info-page > h1 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1.15; text-wrap: balance; }
.ct-directory > header > p:not([class*="uppercase"]) { max-width: 800px; line-height: 1.65; color: var(--ct-muted); }
.ct-directory > header > p[class*="text-lg"] { font-size: 17px; margin-top: 14px; }
.ct-directory > header > p[class*="uppercase"] { letter-spacing: .16em; }
.ct-directory > h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); line-height: 1.3; }
.ct-directory > :is(.mb-20,.mb-16,.mb-14) { margin-bottom: 36px; }
.ct-directory > .flex:has(> h2) { flex-wrap: wrap; gap: 12px; }
.ct-story-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.ct-story-grid > a {
  display: flex; flex-direction: column; min-width: 0; height: 100%; border: 1px solid var(--ct-line);
  border-radius: var(--ct-radius); overflow: hidden; background: var(--ct-surface); text-decoration: none;
  padding-bottom: 18px; transition: border-color .15s, box-shadow .15s;
}
.ct-story-grid > a:hover { border-color: var(--ct-muted); box-shadow: 0 4px 16px #10182808; }
.ct-story-grid > a > div:first-child { aspect-ratio: 16/10; border-radius: 0; margin: 0 0 16px; flex-shrink: 0; }
.ct-story-grid > a > :is(h2,h3) { padding-inline: 18px; margin: 0 0 10px; font-size: 19px; line-height: 1.38; overflow-wrap: break-word; }
.ct-story-grid > a > p { margin: 0 18px 10px; line-height: 1.6; color: var(--ct-muted); }
.ct-story-grid > a > p[class*="uppercase"] { font-size: 10px; letter-spacing: .1em; }
.ct-story-grid > a > p:last-child { margin-bottom: 0; }
.ct-story-grid > a > p:last-child:not([class*="line-clamp"]) { margin-top: auto; padding-top: 4px; font-size: 12px; }
.ct-directory :is(a,button,summary,select):focus-visible, .ct-home a:focus-visible { outline: 2px solid var(--ct-accent); outline-offset: 3px; }
.ct-directory select { min-height: 44px; border-radius: 9px; max-width: 100%; }
.ct-directory .tst-filters { grid-template-columns: repeat(auto-fit,minmax(min(100%,190px),1fr)); gap: 10px; padding: 16px; border: 1px solid var(--ct-line); background: var(--ct-soft); border-radius: var(--ct-radius); }
.ct-directory .tst-filters select { padding: 10px; border-color: var(--ct-line); background: var(--ct-surface); color: var(--ct-text); font-size: 13px; }
.ct-directory .tst-filters + div { margin-bottom: 24px; }
.ct-directory :is(.unv-chip,.tst-chip) { min-height: 36px; align-items: center; }
.ct-directory .unv-top, .ct-directory .unv-cat { background: var(--ct-surface); border-color: var(--ct-line); border-radius: var(--ct-radius); }
.ct-directory .clx-grid { grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.ct-directory .clx-card { background: var(--ct-surface); border-color: var(--ct-line); border-radius: var(--ct-radius); padding: 18px; }
.ct-directory .clx-top { background: var(--ct-soft); grid-template-columns: auto minmax(0,1fr) auto; }
.ct-directory .clx-top-name { overflow-wrap: break-word; }
.ct-directory .clx-links { margin-top: auto; gap: 8px 12px; flex-wrap: wrap; align-items: center; }
.ct-directory .clx-links a { display: inline-flex; align-items: center; min-height: 36px; }
.ct-directory :is(.pl-grid,.ct-product-grid) { gap: 18px; }
.ct-directory :is(.pl-grid,.ct-product-grid) > a {
  min-width: 0; padding: 12px; border: 1px solid var(--ct-line); border-radius: var(--ct-radius); background: var(--ct-surface);
}
.ct-directory :is(.pl-grid,.ct-product-grid) > a:hover { border-color: var(--ct-muted); }
.ct-directory :is(.pl-grid,.ct-product-grid) > a > div:first-child { border-radius: 9px; }
.ct-directory :is(.pl-grid,.ct-product-grid) h2 { font-size: 17px; line-height: 1.35; overflow-wrap: break-word; }
.ct-directory .pl-filter { border-radius: var(--ct-radius); border-color: var(--ct-line); background: var(--ct-soft); }
.ct-directory .pl-filter > summary { min-height: 44px; }
.ct-directory .pl-list label { min-height: 36px; }
.ct-directory .pl-layout { gap: 24px; }
.ct-directory .ct-author-stories { display: grid; gap: 16px; }
.ct-directory .ct-author-stories > a { margin: 0; padding: 16px; border: 1px solid var(--ct-line); border-radius: var(--ct-radius); background: var(--ct-surface); }
.ct-author-stories > a > div:first-child:not(.flex-1) { border-radius: 9px; }
.ct-author-stories h2 { font-size: 20px; line-height: 1.35; }
.ct-directory .hub-intro { font-size: 16px; line-height: 1.7; }
.ct-directory > :is(div,nav)[class*="justify-center"]:last-child, .ct-directory .tst-pager { margin-top: 32px; gap: 6px; }
.ct-directory :is(.tst-pager,[class*="justify-center"]):last-child > :is(a,span) { min-width: 40px; min-height: 40px; display: inline-flex; align-items: center; justify-content: center; }

/* Home: keep the editorial hierarchy while reducing empty space and colour drift. */
.ct-home > section { margin-bottom: 44px; }
.ct-home > section:last-child { margin-bottom: 0; }
.ct-home .ct-home-hero { margin-top: 32px; gap: 20px; }
.ct-home .ct-home-hero > a { border-radius: 18px; }
.ct-home .ct-home-hero > a h2 { font-size: clamp(1.7rem,3.1vw,2.7rem); line-height: 1.15; }
.ct-home .ct-home-hero > a > div:last-child > div:last-child { color: #e2e8f0; }
.ct-home > section > .flex:first-child { flex-wrap: wrap; gap: 12px 20px; align-items: end; margin-bottom: 20px; }
.ct-home > section > .flex:first-child > .flex { flex-wrap: wrap; gap: 8px 18px; }
.ct-home > section > .flex:first-child h2, .ct-home .home-trust-head h2 { font-size: clamp(1.6rem,2.6vw,2.15rem); line-height: 1.2; }
.ct-home .home-title-card { font-size: 18px; line-height: 1.4; }
.ct-home :is(.home-section-link,.home-cat-accent,.home-trust-l) { color: var(--ct-accent); }
.ct-home :is(.home-card,.home-trust-item,.home-dossier,.home-univers-card) { border-radius: var(--ct-radius); }
.ct-home .home-trust { padding-top: 28px; }
.ct-home .home-trust-head { margin-bottom: 20px; }
.ct-home .home-trust-item { padding: 20px; }
.ct-home .home-trust-item strong { font-size: 1.7rem; }
body > .ct-site-footer { margin-top: 32px; }
body > .ct-site-footer > div:first-child { padding-top: 32px; padding-bottom: 32px; gap: 28px; }
@media(max-width:1023px) {
  .ct-story-grid, .ct-directory .clx-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media(max-width:639px) {
  .ct-directory { padding-top: 24px; padding-bottom: 24px; }
  .ct-directory > header { margin-bottom: 24px; }
  .ct-directory > header h1 { font-size: 2rem; }
  .ct-directory > header > p[class*="text-lg"] { font-size: 16px; }
  .ct-story-grid, .ct-directory .clx-grid { grid-template-columns: minmax(0,1fr); gap: 16px; }
  .ct-directory .tst-filters { padding: 12px; grid-template-columns: repeat(2,minmax(0,1fr)); }
  .ct-directory .tst-filters select { font-size: 12px; padding-inline: 7px; }
  .ct-directory .ct-author-stories > a { flex-direction: column; gap: 14px; }
  .ct-author-stories > a > div:first-child:not(.flex-1) { width: 100%; aspect-ratio: 16/10; }
  .ct-page-author > header { flex-direction: column; gap: 16px; }
  .ct-page-author > header > img, .ct-page-author > header > div:first-child:not(:last-child) { width: 64px; height: 64px; }
  .ct-directory .pl-grid { gap: 12px; }
  .ct-directory .pl-grid > a { padding: 9px; }
  .ct-directory .pl-grid h2 { font-size: 15px; }
  .ct-home > section { margin-bottom: 32px; }
  .ct-home .ct-home-hero { margin-top: 24px; }
  .ct-home .ct-home-hero > a { aspect-ratio: auto; min-height: 390px; }
  .ct-home .ct-home-hero > div { grid-template-rows: auto; }
  .ct-home .ct-home-hero .home-card { grid-template-columns: 72px minmax(0,1fr); gap: 12px; padding: 12px; }
  .ct-home > section > .flex:first-child .home-section-link { min-height: 36px; display: inline-flex; align-items: center; }
}
@media(prefers-reduced-motion:reduce) {
  .ct-home :is(.home-card,.home-trust-item), .ct-story-grid > a { transition: none; transform: none; }
  .ct-home .home-live-dot { animation: none; }
}

/* Let long mobile headlines set the hero height instead of clipping them. */
@media(max-width:639px) {
  .ct-home .ct-home-hero > a > div:last-child { position: relative; inset: auto; min-height: 390px; }
  .ct-directory .clx-cat { flex-wrap: wrap; }
}
@media(max-width:359px) { .ct-directory .tst-filters { grid-template-columns: minmax(0,1fr); } }
