/* The report page: the title block, the page viewer and the more-reports row.
   White throughout; parchment is kept for the
   viewer's stage so white report pages still read as pages. */

body:has(#report){background:var(--paper);}

/* the header sits over white here, never over the hero, so it keeps its red */
.rp-top{padding:128px 0 0;}
/* the arrow sits in a ring that draws on hover, like the News Hub arrows. The
   ring is taller than the label, so the margins give back the difference. */
.rp-back{
  display:inline-flex;align-items:center;gap:12px;margin:-13px 0 27px;
  font-size:12px;line-height:18px;font-weight:500;letter-spacing:2.4px;text-transform:uppercase;
  color:var(--plum);transition:color .35s ease;
}
.rp-back__ic{position:relative;flex:none;display:grid;place-items:center;width:44px;height:44px;margin-left:-13px;}  /* the arrow stays in line with the heading */
.rp-back__ic > svg:first-child{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.3;}
.rp-back:hover,.rp-back:focus-visible{color:var(--red);}
.rp-back:hover .rb-btn__ring circle,.rp-back:focus-visible .rb-btn__ring circle{stroke-dashoffset:0;}
.rp-dl{color:var(--red);gap:14px;align-self:end;margin-bottom:6px;}
.rp-dl:hover{background:var(--red)!important;border-color:var(--red)!important;color:#fff!important;}
.rp-dl svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.4;}
/* the scroll bar here holds one link, back to the main page */
.rp-back-bar a{color:#fff;gap:12px;}
.rp-back-bar svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.3;}

.rp-head{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:30px 60px;align-items:end;}
.rp-head .h-1{margin-bottom:16px;}
.rp-head .lede{max-width:640px;margin:0;}

/* ---------- the viewer ---------- */
.pv{margin-top:46px;position:relative;}
.pv__stage{
  position:relative;overflow:hidden;background:var(--parch-1);
  height:clamp(460px,76vh,820px);
  touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab;
}
.pv__stage.is-drag{cursor:grabbing;}
/* a tap focuses the stage for the arrow keys; only keyboard focus needs the ring */
.pv__stage:focus{outline:none;}
.pv__stage:focus-visible{outline:1px solid var(--red);outline-offset:-1px;}
/* held back until it has been measured, or the pages show at the wrong size first */
.pv__track{position:absolute;left:0;top:0;height:100%;display:flex;align-items:center;will-change:transform;visibility:hidden;}
.pv__track.is-ready{visibility:visible;}
.pv__track.is-anim{transition:transform .6s var(--ease);}
.pv__slide{
  position:relative;flex:none;margin-right:var(--gap,36px);
  width:var(--pw);height:var(--ph);background:#fff;
  box-shadow:0 18px 40px -22px rgba(43,8,21,.38);
}
/* contain: a report with an odd-sized page shows it whole */
.pv__slide img{display:block;width:100%;height:100%;object-fit:contain;-webkit-user-drag:none;pointer-events:none;}
.pv__frame{display:grid;grid-template-columns:52px minmax(0,1fr) 52px;gap:22px;align-items:center;}
.pv__btn{
  position:relative;z-index:4;width:52px;height:52px;
  display:grid;place-items:center;border-radius:50%;border:1px solid var(--plum-55);
  background:rgba(255,255,255,.86);color:var(--plum);cursor:pointer;
  transition:background .4s var(--ease),color .4s var(--ease),border-color .4s var(--ease),opacity .3s ease;
}
.pv__btn:disabled{opacity:.25;pointer-events:none;}
.pv__btn svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.3;}
.pv__fs{
  position:absolute;right:14px;top:12px;z-index:4;min-width:44px;height:44px;border:0;padding:0;
  display:flex;align-items:center;justify-content:center;gap:10px;
  background:rgba(255,255,255,.92);color:var(--plum);cursor:pointer;
  box-shadow:0 8px 20px -12px rgba(43,8,21,.45);transition:color .3s ease;
}
.pv__fs:hover{color:var(--red);}
.pv__fs svg{flex:none;width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.4;}
/* labelled, and nudging like an icon in a Mac dock until it is used, so it is
   noticed (client feedback, Nov 2026); it rests on hover */
.pv__fs--hint{padding:0 13px 0 16px;animation:pv-bob 3.2s ease-in-out 1s infinite;}
.pv__fs--hint:hover,.pv__fs--hint:focus-visible{animation-play-state:paused;}
.pv__fs-t{font-size:11px;line-height:1;font-weight:500;letter-spacing:1.6px;text-transform:uppercase;white-space:nowrap;}
@keyframes pv-bob{
  0%,46%,100%{transform:translateY(0);}
  12%{transform:translateY(-8px);}
  24%{transform:translateY(0);}
  32%{transform:translateY(-3px);}
  40%{transform:translateY(0);}
}
/* full screen: the viewer takes the whole window, on plum so the page is the
   only light. It is a class rather than :fullscreen, so it works where the
   browser will not go truly full screen (iPhone). Above the header (100), the
   section bar (99) and the progress line (120). */
.pv.is-full{
  position:fixed;inset:0;z-index:150;margin:0;
  height:100vh;height:100dvh;
  display:flex;flex-direction:column;background:var(--plum);
  padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
html.pv-lock,html.pv-lock body{overflow:hidden;}
.pv.is-full .pv__frame{flex:1;min-height:0;padding:16px 20px 0;grid-template-rows:minmax(0,1fr);}
.pv.is-full .pv__stage{height:100%!important;margin:0;background:var(--plum);}
.pv.is-full .pv__fs{background:rgba(255,255,255,.12);color:#fff;}
.pv.is-full .pv__btn{background:transparent;border-color:rgba(255,255,255,.5);color:#fff;}
.pv.is-full .pv__bar{padding:14px 24px 18px;color:#fff;}
.pv.is-full .pv__count,.pv.is-full .pv__count b{color:#fff;}
.pv.is-full .pv__prog{background:rgba(255,255,255,.2);}
.pv.is-full .pv__prog i{background:#fff;}
.pv.is-full .pv__thumbs{display:none;}
/* the sideways hint: only in full screen, only on a phone held upright */
.pv__turn{display:none;}

.pv__bar{display:flex;align-items:center;gap:22px;padding:18px 0 0;}
.pv__count{font-size:12px;line-height:18px;letter-spacing:2.4px;text-transform:uppercase;color:var(--mute);white-space:nowrap;}
.pv__count b{font-weight:500;color:var(--plum);}
.pv__prog{position:relative;flex:1;height:1px;background:var(--line);}
.pv__prog i{position:absolute;left:0;top:0;height:1px;background:var(--red);transition:width .6s var(--ease);}

.pv__thumbs{position:relative;display:flex;gap:10px;overflow-x:auto;padding:18px 0 4px;scrollbar-width:thin;}
.pv__thumb{
  position:relative;flex:none;width:85px;height:60px;padding:0;border:1px solid var(--line);
  background:#fff;cursor:pointer;overflow:hidden;opacity:.6;
  transition:opacity .35s ease,border-color .35s ease;
}
.pv__thumb:hover{opacity:1;}
.pv__thumb.is-cur{opacity:1;border-color:var(--red);}
.pv__thumb img{display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;}
.pv__thumb span{
  position:absolute;right:3px;bottom:3px;font-size:9px;line-height:1;color:var(--mute);
  background:rgba(255,255,255,.9);padding:2px 3px;
}

/* ---------- more reports ---------- */
.rel-head{display:flex;align-items:flex-end;justify-content:space-between;gap:20px;margin-bottom:34px;}
.rel-head .h-2{margin:0;}
.rel-nav{display:flex;gap:12px;}
.rel-nav[hidden]{display:none;}
.rel-nav button{
  width:46px;height:46px;border-radius:50%;border:1px solid var(--plum-55);background:#fff;color:var(--plum);
  display:grid;place-items:center;cursor:pointer;transition:background .4s var(--ease),color .4s var(--ease),border-color .4s var(--ease),opacity .3s;
}
.rel-nav button:hover{background:var(--red);border-color:var(--red);color:#fff;}
.rel-nav button:disabled{opacity:.3;pointer-events:none;}
.rel-nav svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.3;}
.rel-track{
  display:grid;grid-auto-flow:column;grid-auto-columns:calc((100% - 3 * 30px) / 4);gap:30px;
  overflow-x:auto;scroll-snap-type:x mandatory;scroll-behavior:smooth;scrollbar-width:none;
  padding:6px 0 30px;
}
.rel-track::-webkit-scrollbar{display:none;}
.rel-track > a{scroll-snap-align:start;display:block;}
.rel-track .cover__t{font-size:20px;}
.rel-year{display:block;font-size:11px;letter-spacing:2.2px;text-transform:uppercase;color:var(--mute);margin-top:4px;}

.rp-future{padding-top:0;}
/* with the row's own 30px, an even step down to Future reports */
#more{padding-bottom:34px;}
@media (max-width:980px){
  .rp-head{grid-template-columns:1fr;align-items:start;}
  .rel-track{grid-auto-columns:calc((100% - 2 * 24px) / 3);gap:24px;}
}
@media (max-width:620px){
  .pv__fs{min-width:38px;height:38px;}
  .pv__fs--hint{padding:0 10px 0 12px;gap:8px;}
  .pv__fs-t{font-size:9.5px;letter-spacing:1.2px;}
  .rp-top{padding-top:104px;}
  .rp-back{margin-bottom:13px;}
  .pv{margin-top:32px;}
  /* the stage bleeds to the screen edge on a phone so the page gets every pixel */
  .pv__stage{height:min(80vw,60vh);margin:0 calc(-1 * var(--gutter));}
  .pv__frame{grid-template-columns:1fr 1fr;gap:14px 0;}
  .pv__frame .pv__stage{grid-column:1 / -1;grid-row:1;}
  .pv__btn{grid-row:2;width:44px;height:44px;}
  .pv__btn--next{justify-self:end;}
  .pv.is-full .pv__frame{grid-template-rows:minmax(0,1fr) auto;padding:10px 12px 0;}
  .pv.is-full .pv__btn{width:48px;height:48px;}
  .rp-dl{width:100%;justify-content:center;}
  .rel-head{align-items:center;}
  .rel-track{grid-auto-columns:calc((100% - 16px) / 2);gap:16px;}
  .rel-track .cover{aspect-ratio:auto;padding:10px 10px 0;}
  .rel-track .cover__plate{flex:none;aspect-ratio:3/4;}
  .rel-track .cover__t{font-size:16px;}
}
/* a phone on its side is short: the frame and bar tighten so the page gets the height */
@media (max-height:500px){
  .pv.is-full .pv__frame{padding:6px 12px 0;gap:12px;grid-template-columns:44px minmax(0,1fr) 44px;}
  .pv.is-full .pv__btn{width:44px;height:44px;}
  .pv.is-full .pv__bar{padding:6px 20px 8px;}
}
@media (max-width:620px) and (orientation:portrait){
  .pv.is-full .pv__turn{
    display:block;position:absolute;left:0;right:0;bottom:14px;z-index:3;text-align:center;
    font-size:10px;letter-spacing:1.8px;text-transform:uppercase;color:rgba(255,255,255,.6);
  }
}
/* hover fills only where there is a pointer: on a touch screen it latches after a tap */
@media (hover:hover){
  .pv__btn:hover{background:var(--red);border-color:var(--red);color:#fff;}
  .pv.is-full .pv__btn:hover{background:#fff;color:var(--plum);border-color:#fff;}
}
@media (prefers-reduced-motion:reduce){
  .pv__track.is-anim{transition:none;}
  .pv__fs--hint{animation:none;}
  .rel-track{scroll-behavior:auto;}
}
