/* Single-column reading view, shared by the preview and the unlocked edition. */
.product-shell:has(> .report-reader-shell) {
  width: 100%;
  max-width: none;
  padding: 0 0 clamp(56px, 9vw, 144px);
}
.report-reader-shell {
  --reading-width: min(640px, calc(100% - 40px));
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.reader-topbar {
  position: sticky;
  inset-block-start: 0;
  z-index: 4;
  width: 100%;
  background: var(--paper);
  border-bottom: 1px solid var(--edge);
}
.reader-topbar > div {
  width: var(--reading-width);
  height: 56px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.reader-topbar .dossier-back {
  display: inline-grid;
  place-items: center;
  margin: 0;
  width: 40px;
  min-height: 40px;
  border: 1px solid var(--edge);
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 2px 0 var(--edge);
}
.reader-topbar .dossier-back > span,
.reader-topbar .reader-status {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.reader-topbar .dossier-back:hover { background: var(--lilac); }
.reader-topbar .dossier-back img { width: 18px; height: 18px; }


.report-reader-shell > :is(.report-reader-head, .dossier-body, .reader-resources, [role="status"], [data-conversation-recap]) {
  width: var(--reading-width);
  min-width: 0;
}
.report-reader-shell .report-reader-head {
  margin: 64px auto 36px;
}
.report-reader-shell .report-reader-head h1 {
  font: 500 clamp(2.15rem, 4.4vw, 2.85rem)/1.06 var(--display);
  letter-spacing: -.04em;
  text-wrap: initial;
  scroll-margin-top: 72px;
}
.report-reader-shell .report-author {
  padding: 11px 16px;
  min-height: 66px;
  gap: 12px;
  margin-top: 38px;
  border: 1px solid var(--edge);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 1px 3px color-mix(in srgb, var(--edge), transparent 60%);
}
.report-reader-shell .report-author-avatar {
  width: 40px;
  height: 40px;
  background: var(--lilac);
}
.report-reader-shell .report-author :is(strong, p) {
  font: 500 .875rem/1.4 var(--ui);
  color: var(--ink);
}
.report-reader-shell .report-author p { font-weight: 400; color: var(--muted); }
.report-reader-shell .dossier-actions { margin: 16px 0 0; }
.report-reader-shell .dossier-actions [data-share] {
  box-shadow: 0 2px 0 var(--edge);
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  gap: 5px;
  color: var(--ink);
}
.report-reader-shell .report-privacy-line {
  margin-top: 12px;
  gap: 0 5px;
  font: 400 .875rem/1.55 var(--ui);
}
.report-reader-shell .report-privacy-line svg { width: 15px; height: 15px; }
.report-reader-shell .report-privacy-line button {
  padding: 0;
  color: inherit;
  font: inherit;
  min-height: 22px;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.report-reader-shell .editorial-report { font: 450 1.125rem/1.62 var(--ui); }
.report-reader-shell.full-portrait .report-reader-head {
  display:grid;
  grid-template-columns:minmax(0,1fr);
  align-items:center;
  gap:12px;
  margin:clamp(24px,5vw,54px) auto 20px;
}
.full-portrait .report-reader-head h1 { text-wrap:pretty; }
.report-reader-shell.full-portrait .report-author {
  margin:0;
  padding:0;
  min-height:0;
  border:0;
  border-radius:0;
  background:none;
  box-shadow:none;
  gap:8px;
  overflow-wrap:anywhere;
}
.full-portrait .report-author-avatar { width:32px; height:32px; }
.full-portrait .reader-topbar [data-share] { min-height:40px; padding:7px 12px; font-size:.87rem; }
.full-portrait:not([data-panel="synthese"]) .reader-topbar [data-share] { display:none; }
.report-reader-shell.full-portrait .editorial-opening > p:not(.editorial-question) {
  font:500 clamp(1.15rem,2.1vw,1.4rem)/1.5 var(--display);
  color:var(--ink);
  margin:0 0 .65em;
}
.portrait-figures {
  display:flex; gap:0; margin:24px 0; padding:16px 0;
  border-radius:12px; background:var(--lilac);
}
.portrait-figures > div {
  flex:1; min-width:0; display:flex; flex-direction:column-reverse; justify-content:flex-end;
  padding:0 clamp(10px,3vw,20px);
}
.portrait-figures > div+div { border-inline-start:1px solid color-mix(in srgb, var(--prune) 22%, var(--lilac)); }
.portrait-figures dd {
  margin:0 0 4px; color:var(--prune); font:600 clamp(1.55rem,4.7vw,2.45rem)/1 var(--display);
  letter-spacing:-.045em; font-variant-numeric:lining-nums tabular-nums; overflow-wrap:anywhere;
}
.portrait-figures dt { font:600 .84rem/1.32 var(--ui); color:var(--ink); overflow-wrap:anywhere; }
.portrait-figures dt small { display:block; margin-top:3px; color:var(--muted); font:400 .76rem/1.3 var(--ui); }
.portrait-moments { margin:24px 0 12px; }
.portrait-moments h2 { margin:0 0 8px; font:600 clamp(1.4rem,3vw,1.8rem)/1.18 var(--display); letter-spacing:-.03em; }
.portrait-moments ol { list-style:none; padding:0; margin:0; }
.portrait-moments li { border-bottom:1px solid var(--edge); }
.portrait-moments li:first-child { border-top:1px solid var(--edge); }
.portrait-moments li > :is(button,div) {
  display:grid; grid-template-columns:6.3rem minmax(0,1fr) auto;
  width:100%; gap:12px; align-items:baseline; min-height:48px; padding:12px 4px;
  background:none; border:0; color:inherit; text-align:start; overflow-wrap:anywhere;
}
.portrait-moments button:hover strong { text-decoration:underline; text-underline-offset:.18em; }
.portrait-moments strong { font:600 1.02rem/1.35 var(--ui); }
.portrait-moments time { font:550 .8rem/1.4 var(--ui); color:var(--muted); }
.portrait-moments svg { align-self:center; width:17px; height:17px; color:var(--prune); }
.portrait-contents, .portrait-sources { margin:8px 0; color:var(--muted); font:500 .9rem/1.5 var(--ui); }
.portrait-contents summary, .portrait-sources summary { width:fit-content; padding:10px 0; cursor:pointer; color:var(--prune); }
.portrait-contents ul { padding-inline-start:18px; margin:0; }
.portrait-contents button { padding:5px 0; border:0; text-align:start; background:none; font:inherit; color:var(--prune); text-decoration:underline; }
.full-portrait .editorial-chapter h2 { scroll-margin-block-start:76px; }
@media (max-width:440px) {
  .report-reader-shell.full-portrait .report-reader-head { margin-block:24px 16px; }
  .portrait-moments li > :is(button,div) { grid-template-columns:minmax(0,1fr) auto; gap:2px 10px; padding-block:10px; }
  .portrait-moments time { grid-column:1; }
  .portrait-moments strong { grid-column:1; }
  .portrait-moments svg { grid-column:2; grid-row:1 / 3; }
}
.report-reader-shell .editorial-opening > p:first-child { font: inherit; }
.report-reader-shell .editorial-opening > p,
.report-reader-shell .editorial-chapter > p { margin-block: 0 1.25em; }
.report-reader-shell .editorial-chapter { margin: 48px 0 0; }
.report-reader-shell .editorial-chapter > h2 {
  margin: 0 auto 24px;
  max-width: 32ch;
  text-align: center;
  font: 500 clamp(1.5rem, 3.7vw, 1.8rem)/1.22 var(--display);
  letter-spacing: -.035em;
}
.report-reader-shell .editorial-chapter > h2::after {
  content: "";
  display: block;
  width: 48px;
  border-top: 1px solid var(--edge);
  margin: 18px auto 0;
}
.report-reader-shell .editorial-report .message-quote { margin: 16px 0 22px; }
.report-reader-shell .editorial-report .message-quote + .message-quote { margin-block-start: -12px; }
.report-reader-shell .message-quote .message-bubble { max-width: min(84%, 30rem); }
.report-reader-shell :is(.message-quote,.reader-messages)[data-platform="imessage"] { --message-outgoing: #0871da; }
.report-reader-shell .editorial-report .message-text { line-height: 1.42; }
.report-reader-shell .editorial-report .message-sender { margin-block: 0 2px; }
.article-message-credit { color: var(--muted); font: 400 .74rem/1.4 var(--ui); }
.report-reader-shell .message-quote figcaption { gap: 3px 8px; }
.report-reader-shell .message-quote figcaption .text-button { min-height: 26px; }
.report-reader-shell .report-next-chapters {
  display: flex;
  align-items: center;
  flex-direction: column;
  margin: 44px 0 0;
  padding: 0;
  gap: 0;
  background: none;
  border: none;
}
.report-reader-shell .report-next-chapters > .button {
  width: 100%;
  min-height: 48px;
  gap: 7px;
  flex-direction: row-reverse;
}
.report-reader-shell .report-next-chapters h2 {
  margin: 64px 0 18px;
  text-align: center;
  font: 600 1.08rem/1.4 var(--ui);
  letter-spacing: 0;
}
.report-reader-shell .reader-preview-outline { width: 100%; }
.report-reader-shell .report-lock-list {
  list-style: none;
  display: block;
  width: min(100%, 448px);
  margin: 0 auto;
  padding: 0;
  text-align: center;
  color: var(--ink);
  border-block-start: 1px solid var(--edge);
}
.report-reader-shell .report-lock-list li {
  padding: 12px clamp(10px, 3vw, 35px);
  line-height: 1.4;
  border-block-end: 1px solid var(--edge);
}
.report-reader-shell .relation-note { margin: 48px auto 0; color: var(--muted); }
.report-reader-shell .reader-resources { margin: clamp(48px, 8vw, 100px) auto 0; }
.report-reader-shell .reader-resource-actions {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .82rem;
  color: var(--muted);
}
.report-reader-shell .reader-resource-actions details p { max-width: 50ch; margin-top: 5px; }
.report-reader-shell .reader-resource-actions summary { cursor: pointer; }
.report-reader-shell .reader-resource-actions .button { min-height: 36px; font-size: .83rem; }
.report-reader-shell[data-panel]:not([data-panel="synthese"],[data-panel="evolution"]) .reader-resources { order: -1; margin: 28px auto; }
.report-reader-shell[data-panel]:not([data-panel="synthese"]) > .reader-topbar { order: -3; }
.report-reader-shell[data-panel]:not([data-panel="synthese"]) .report-reader-head { order: -2; margin-bottom: 0; }
.report-reader-shell[data-panel]:not([data-panel="synthese"]) .reader-resource-actions { display: none; }
.report-checkout { width: min(440px, calc(100% - 32px)); }
.report-checkout .button { width: 100%; }
.report-checkout .checkout-disclosure { margin-block: 12px; color: var(--muted); font-size: .88rem; }
.follow-progress > .icon-button { flex: none; width: 34px; min-height: 34px; }
.follow-author-avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--surface); }
.follow-question-ideas { margin-top: 14px; }
.follow-question-ideas summary { cursor: pointer; color: var(--prune); }
.follow-suggestions { display: grid; justify-items: start; gap: 8px; margin-top: 8px; }
.follow-suggestions button { min-height: 40px; text-align: start; font-size: .85rem; }
.follow-summary .follow-summary-topics { display: grid; gap: 8px; padding: 0; list-style: none; }
.follow-summary-topics li { display: flex; align-items: flex-start; gap: 7px; }
.follow-summary-topics svg { flex: 0 0 18px; color: var(--prune); }
.follow-summary-meta > div { padding-block: 7px; border-top: 1px solid var(--edge); }
.follow-summary-meta dt { color: var(--muted); font-size: .87rem; }

@media (max-width: 600px) {
  .report-reader-shell .report-reader-head { margin: 40px auto 28px; }
  .report-reader-shell .report-author { margin-top: 28px; }
  .report-reader-shell .report-privacy-line { font-size: .8rem; }
  .report-reader-shell .editorial-report { font-size: 1.04rem; }
  .report-reader-shell .editorial-chapter { margin-top: 36px; }

}

/* The comparison is a reading surface with direct access to its source messages. */
.reader-topbar .change-brand,.change-passage-nav:empty { display:none; }
.report-reader-shell[data-panel="evolution"] .change-brand { display:inline-flex; }
.report-reader-shell[data-panel="evolution"] .reader-topbar>div { justify-content:flex-start; gap:12px; }
.report-reader-shell[data-panel="evolution"]>.report-reader-head { display:none; }
.report-reader-shell[data-panel="evolution"]>.reader-resources { order:1; margin-block:36px 0; }
.period-comparison { margin:26px auto 0; color:var(--ink); }
.period-comparison .change-people { font-size:.98rem; color:var(--muted); margin:0 0 14px; overflow-wrap:anywhere; }
.period-comparison h1 { font:700 clamp(2.2rem,6vw,3.3rem)/1.04 var(--display); max-width:19ch; letter-spacing:-.05em; margin:0; text-wrap:initial; scroll-margin-top:76px; }
.period-comparison .change-summary { margin:17px 0 24px; color:var(--muted); font-size:1rem; }
.change-legend,.change-counts { display:flex; flex-wrap:wrap; gap:4px 16px; margin:0; padding:0; list-style:none; }
.change-legend li { display:flex; align-items:center; gap:8px; overflow-wrap:anywhere; }
.change-legend li::before { content:""; width:17px; height:17px; flex:none; border-radius:5px; background:var(--prune); }
.change-legend li+li::before { background:#ddc8e7; }
.change-periods { margin-top:26px; display:grid; gap:22px; }
.period-comparison .change-period h2 { margin:0 0 3px; font:700 1.35rem/1.18 var(--display); letter-spacing:-.025em; }
.change-counts { color:var(--muted); font-size:.96rem; }
.change-counts li { overflow-wrap:anywhere; }
.change-counts b { font-weight:650; color:var(--ink); }
.change-period progress { width:100%; height:14px; display:block; margin:9px 0 0; appearance:none; border:0; border-radius:20px; overflow:hidden; background:#ddc8e7; color:var(--prune); }
.change-period progress::-webkit-progress-bar { background:#ddc8e7; }
.change-period progress::-webkit-progress-value { background:var(--prune); }
.change-period progress::-moz-progress-bar { background:var(--prune); }
.change-evidence { display:flex; flex-direction:column; align-items:flex-start; gap:10px; margin:32px 0 18px; }
.period-comparison .change-evidence h2 { margin:0 0 6px; font:700 clamp(1.45rem,3vw,1.85rem)/1.16 var(--display); letter-spacing:-.03em; }
.change-quote { display:grid; gap:4px; max-width:90%; border:1px solid var(--edge); background:var(--surface); text-align:start; padding:10px 14px; border-radius:14px 14px 14px 4px; font:inherit; color:var(--ink); overflow-wrap:anywhere; }
.change-quote[data-side="sent"] { align-self:flex-end; background:#dff2de; border-color:#c0dcc4; border-radius:14px 14px 4px 14px; }
.change-quote small { font-size:.78rem; font-weight:650; }
.change-quote:is(:focus-visible,:hover) { border-color:var(--prune); }
.period-comparison>.button { width:100%; }
.change-passage-nav { display:flex; align-items:center; gap:6px; font-size:.85rem; }
.change-passage-nav .icon-button { min-width:38px; min-height:40px; }
.change-entry { margin-block:16px 0; }
.restart-replies, #restart-replies-title { scroll-margin-block-start:78px; }
.restart-replies h2 { max-width:27ch; }
.restart-replies > p { margin:0 0 16px; max-width:58ch; }
.reply-people { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); align-items:stretch; gap:10px; margin:0; padding:0; list-style:none; }
.reply-people li { display:flex; flex-direction:column; align-items:flex-start; padding:16px 18px 8px; border-radius:12px; background:#eee2f3; color:var(--ink); overflow-wrap:anywhere; }
.reply-people li:nth-child(even) { background:#f4e5d6; }
.reply-people h3 { font:650 1rem/1.35 var(--ui); margin:0; }
.reply-people p { margin:0; }
.reply-people .reply-count { margin:6px 0 4px; }
.reply-count strong { display:block; font:700 clamp(1.8rem,4vw,2.55rem)/1.12 var(--display); letter-spacing:-.035em; }
.reply-count span,.reply-people .reply-delay,.reply-people .reply-unknown { font-size:.9rem; }
.reply-people .reply-delay,.reply-people .reply-unknown { color:var(--muted); margin:2px 0 4px; }
.reply-people .button.text-button,.recap-replies-link { display:inline-flex; align-items:center; gap:5px; min-height:44px; padding:0; font-size:.88rem; color:var(--prune); }
.reply-people .button.text-button { margin-top:auto; }
.reply-people li:not(:has(button)) { padding-bottom:16px; }
.recap-replies-link { font-weight:650; text-underline-offset:.2em; }
.recap-replies-link svg { width:16px; height:16px; }
.reply-people .button:focus-visible,.recap-replies-link:focus-visible { outline:2px solid var(--prune); outline-offset:2px; }
@media(min-width:720px) {
  .period-comparison { margin-top:48px; }
  .change-periods { gap:24px; }
}
