/* The press sheet has one trim. Orientation changes the size and crop of its window. */
#decade {
  --cover: #b71938;
  --hot: #ffdf4f;
  --desk: #222126;
  position: fixed;
  width: min(100dvw, 1440px); max-width: 100dvw; margin: auto;
  height: min(100dvh, calc(55.56dvw + 84px), 850px); max-height: 100dvh;
  padding: 0; border: 0; background: var(--desk); color: white;
  overflow: hidden;
}
#decade[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
#decade::backdrop { background: var(--desk); }
#decade :where(h2,h3,p) { margin: 0; }
#decade button { font-family: inherit; }
#decade :focus-visible { outline: 2px solid #397ac8; outline-offset: -2px; }
.almanac-header, .almanac-footer {
  display: flex; align-items: center; gap: 6px;
  padding-inline: clamp(8px, 2vw, 24px); min-width: 0;
}
.almanac-header { justify-content: space-between; min-height: 42px; }
.almanac-header > div { display: flex; align-items: center; min-width: 0; gap: 7px; margin-inline-end: 7rem; }
.almanac-header div > span { font-size: .66rem; color: var(--hot); font-weight: 800; white-space: nowrap; }
#decade-title { inset: 0 auto auto 0; }
#decade-back, #decade-next, #leaf-nav button, #decade-data summary {
  padding: 3px 4px; min-height: 38px; border: 0; background: transparent; color: white;
  font-size: .8rem; line-height: 1.2; font-weight: 700; white-space: nowrap;
}
#decade-back { width: 6em; text-decoration: underline; text-underline-offset: .22em; }
#decade-spread { display: grid; grid-template-columns: minmax(0,1fr); grid-template-rows: minmax(0,1fr) auto; min-height: 0; }
.book-table { min-width: 0; min-height: 0; container-type: size; display: grid; place-items: center; }
#decade-book {
  width: min(100cqw, 180cqh); aspect-ratio: 1.8;
  position: relative; isolation: isolate; overflow: clip; background: #fff;
  color: #161619; box-shadow: 0 2px 5px #0007; touch-action: pan-y pinch-zoom;
}
.foldout-plane {
  position: relative; container-type: inline-size; width: 100%; height: 100%;
  display: grid; grid-template-rows: 75% 25%; background: white;
}
.foldout-plane::after {
  content: ''; position: absolute; z-index: 2; pointer-events: none;
  inset: 0 auto 0 50%; width: 2.2%; transform: translateX(-50%);
  background: linear-gradient(90deg,transparent,#16101415 37%,#110c103d 49%,#ffffff36 55%,transparent);
}
/* Inside the trim, every dimension is measured against the entire spread. */
#decade .panorama-hero {
  display: grid; grid-template: minmax(0,1fr) auto / repeat(2, minmax(0,1fr));
  min-height: 0; width: 100%; margin: 0; padding: 0; border: 0;
  overflow: hidden; text-align: left; background: #b21e31; color: #fff;
  font-family: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", Meiryo, sans-serif;
}
.play-half {
  grid-row: 1; display: grid; align-content: center; align-items: center;
  padding: 0 2.5cqw; min-width: 0;
}
.play-pass { grid-column: 2; }
.play-shot { grid-column: 1; }
.play-context {
  padding-bottom: .64cqw; margin-bottom: 1cqw; border-bottom: .18cqw solid currentColor;
  font-size: 1.85cqw; line-height: 1.15; font-weight: 750; white-space: nowrap;
}
.play-name, .play-verb, .fold-caption {
  display: block; font-weight: 900; white-space: nowrap; font-feature-settings: normal;
}
.play-name { font-size: 7.3cqw; line-height: 1.02; letter-spacing: -.045em; }
.play-verb { font-size: 11.8cqw; line-height: 1.1; letter-spacing: -.065em; }
.play-shot .play-verb { color: #ffe359; }
.fold-caption {
  grid-area: 2 / 1 / 3 / -1; padding: .5cqw 0 1cqw;
  text-align: center; font-size: 7.5cqw; line-height: 1.08;
  letter-spacing: -.055em; color: white; background: #19181b;
}
.panorama-index { display: grid; grid-template-columns: 1fr 1fr; min-height: 0; }
.almanac-leaf {
  grid-row: 1; display: grid; grid-template-rows: 1.05fr 1fr 1fr 1.12fr;
  min-height: 0; min-width: 0; color: #171719; background: #fff;
}
.almanac-leaf.left-leaf { grid-column: 1; }
.almanac-leaf.right-leaf { grid-column: 2; }
#decade .leaf-heading {
  display: flex; align-items: center; padding-inline: 2.1cqw; margin: 0;
  font-size: 2.07cqw; line-height: 1.08; font-weight: 850; letter-spacing: -.03em;
}
#decade .almanac-leaf .book-hit {
  display: flex; align-items: center; min-width: 0; min-height: 0;
  margin: 0 2.1cqw; padding: 0; gap: 1cqw; border: 0; border-top: .13cqw solid #b3b3b3;
  width: auto; text-align: start; background: transparent; color: #19181b; cursor: pointer;
}
#decade .almanac-leaf .book-hit small { flex: none; font-size: 1.52cqw; line-height: 1.15; color: var(--cover); font-weight: 730; }
#decade .almanac-leaf .book-hit strong { min-width: 0; font-size: 1.82cqw; line-height: 1.15; font-weight: 850; letter-spacing: -.035em; }
#decade .almanac-leaf .world-note { background: var(--hot); border: 0; margin: 0; padding-inline: 2.1cqw; }
#decade .almanac-leaf .world-note small { color: #4a3814; }

/* An issue feature gives each article a separate dateline and headline. */
.foldout-plane.issue-feature { grid-template-rows: 69% 31%; }
.issue-feature .almanac-leaf { grid-template-rows: .68fr repeat(3,minmax(0,1fr)); }
#decade .issue-feature .almanac-leaf .book-hit {
  flex-direction: column; align-items: flex-start; justify-content: center; gap: .12cqw;
}
#decade .issue-feature .almanac-leaf .book-hit small { font-size: 1.42cqw; }
#decade .almanac-leaf .book-hit > small { max-width: 52%; }
#decade .issue-feature .almanac-leaf .book-hit > :is(small,strong) { max-width: 100%; }
.record-caption { min-width: 0; }

#decade-data { min-height: 0; min-width: 0; }
#decade-data:not([open]) { block-size: 0; }
#decade-data summary {
  position: absolute; z-index: 2; top: 0; right: calc(clamp(8px, 2vw, 24px) + 6em + 12px);
  display: flex; align-items: center; gap: .42em; min-height: 42px; cursor: pointer; list-style: none;
}
#decade-data summary::-webkit-details-marker { display: none; }
#decade-data summary::after { content: ''; width: .45em; height: .45em; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: translateY(-.12em) rotate(45deg); }
#decade-data[open] summary { color: var(--hot); }
#decade-data[open] summary::after { transform: translateY(.14em) rotate(225deg); }
#decade-spread:has(#decade-data[open]) { grid-template-columns: minmax(0, 1fr) minmax(240px, 31%); grid-template-rows: minmax(0,1fr); gap: 8px; }
.almanac-footer { justify-content: flex-start; }
#decade-courses { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0,1fr); gap: 4px; }
#decade-courses button {
  min-height: 44px; padding: 4px 10px; border: 0;
  background: var(--hot); color: #19181b; font-size: .8rem; font-weight: 850; line-height: 1.25;
}
#decade-courses #decade-course-short { background: transparent; color: var(--hot); border: 1px solid currentColor; }
#decade-courses small { display: block; font-size: .7rem; }
#leaf-nav { display: none; }
#decade-reader { padding: 0 clamp(10px, 2.7vw, 24px) 3px; color: var(--ink); background: #fff; min-width: 0; }
.record-shelves { display: grid; grid-template-columns: repeat(3, 1fr); }
#decade .record-shelves button { min-height: 35px; border: 0; border-bottom: 2px solid #d7d6d9; padding: 3px 5px; font-size: .8rem; background: transparent; }
#decade .record-shelves [aria-pressed=true] { border-color: var(--cover); color: var(--cover); }
#record-copy { min-height: 106px; padding: 8px 0 5px; }
.record-caption small, .record-chapter, .record-links { font-size: .73rem; line-height: 1.35; }
.record-caption small { display: block; color: var(--cover); font-weight: 850; font-variant-numeric: tabular-nums; }
#record-copy h3 { font-size: clamp(1rem, 2.6vw, 1.23rem); line-height: 1.26; font-weight: 850; margin: 2px 0 0; }
.record-chapter { display: block; color: #47444c; }
#record-issue {
  margin-block: 6px 2px; padding-inline: 9px; min-height: 38px;
  border: 1px solid var(--cover); border-radius: 0; background: #fff; color: var(--cover);
  font-size: .8rem; font-weight: 800;
}
#record-copy p { font-size: .85rem; line-height: 1.35; margin: 3px 0 0; }
.record-links { display: flex; flex-wrap: wrap; gap: 3px 12px; margin-top: 3px; }
.record-links a { text-underline-offset: .2em; }
.record-paging { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid #aaa; }
#decade .record-paging button { padding: 4px 0; min-height: 32px; color: #19171c; border: 0; background: transparent; font-size: .78rem; }
#decade .record-paging button:first-child { justify-self: start; }
#decade .record-paging button:last-child { justify-self: end; }
#decade .record-paging button:disabled { color: #777; opacity: 1; }
#record-counter { color: #625d65; font-size: .7rem; font-variant-numeric: tabular-nums; }
#record-copy.with-comparison {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  align-items: center; gap: clamp(7px, 2vw, 24px);
}
.record-bars { width: 100%; max-width: 390px; justify-self: end; }
.record-bars > small { display: block; color: #29242a; font-size: .69rem; line-height: 1.2; font-weight: 700; }
#decade .record-bars .measurement {
  width: 100%; display: grid; grid-template-columns: 5.4em minmax(10px, 1fr) 2.1em; align-items: center;
  gap: 3px; padding: 1px 0; min-height: 17px; line-height: 1.15; border: 0; background: transparent;
  text-align: left; font-size: .67rem; font-variant-numeric: tabular-nums; font-weight: 600;
}
.record-bars .measurement i { display: block; height: 6px; border-left: 1px solid #252528; background: #efecee; }
.record-bars .measurement i::after { display: block; content: ''; width: var(--value); height: 100%; background: #807784; }
.record-bars .measurement[aria-pressed=true] i::after { background: var(--cover); }
.record-bars .measurement b { text-align: right; }
.record-bars .scale-note { margin-top: 1px; color: #615b62; font-weight: 500; font-size: .62rem; }

#decade-reader {
  height: 100%; overflow: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; padding-inline: clamp(9px,1.8vw,18px);
}
#record-copy { min-height: 0; }
.record-paging { margin-top: auto; }
.record-price { font-size: .7rem; font-variant-numeric: tabular-nums; }
.record-price > small { font: inherit; font-weight: 700; }
.price-plot { display: grid; grid-template-columns: auto 1fr; gap: 5px; margin-block: 6px; }
.price-axis { display: flex; flex-direction: column; justify-content: space-between; line-height: 1; }
.price-bars { height: 44px; display: flex; border-block: 1px solid #ada8ae; background: linear-gradient(transparent 49%, #ddd 50%, transparent 51%); }
.price-bars i { flex: 1; position: relative; }
.price-bars i::before { content: ''; position: absolute; width: 5px; height: 5px; bottom: var(--y); left: 50%; transform: translate(-50%,50%); border-radius: 50%; background: var(--cover); }
.chart-ends { display: flex; justify-content: space-between; gap: 4px; }
#record-copy.with-comparison { grid-template-columns: 1fr; gap: 5px; }
#decade .measurement span { white-space: nowrap; }
@media (orientation: portrait) {
  #decade { width: min(100dvw, 650px); height: min(100dvh, calc(111.111dvw + 86px), 810px); }
  #decade:has(#decade-data[open]) { height: min(100dvh, calc(111.111dvw + 273px), 1030px); }
  #decade-spread { grid-template-rows: minmax(0,1fr) auto; }
  #decade-spread:has(#decade-data[open]) { grid-template-columns: 1fr; grid-template-rows: minmax(0,1fr) auto; gap: 0; }
  #decade-book { width: min(100cqw, 90cqh); aspect-ratio: .9; }
  .foldout-plane { width: 200%; }
  #decade-book[data-page=right] .foldout-plane { transform: translateX(-50%); }
  .almanac-header div > span { display: none; }
  .almanac-header > div { margin-inline-end: 4rem; }
  #decade-data[open] { max-height: min(37dvh, 226px); overflow-y: auto; }
  #decade-reader { height: auto; overflow: visible; }
  #record-copy.with-comparison { grid-template-columns: minmax(0,1fr) minmax(0,1.25fr); gap: 7px; }
  .almanac-footer {
    display: grid; grid-template-columns: minmax(max-content,1fr) auto minmax(max-content,1fr);
    gap: 4px; min-height: 42px;
  }
  #leaf-nav { display: contents; }
  #leaf-nav button:disabled, #decade:has(#decade-book[data-page=right]) #decade-next { display: none; }
  #leaf-next, #decade-next { grid-area: 1 / 1; justify-self: start; }
  #leaf-position { grid-area: 1 / 2; display: grid; text-align: center; line-height: 1.22; gap: 2px; }
  #leaf-position small { font-size: .66rem; color: #ddd; }
  #leaf-count { font-size: .76rem; color: white; font-variant-numeric: tabular-nums; }
  #leaf-prev { grid-area: 1 / 3; justify-self: end; }
  #decade-courses { grid-area: 2 / 1 / auto / -1; margin-block-end: 6px; }
}
@media (orientation: landscape) and (max-height: 500px) {
  .almanac-header, #decade-data summary { min-height: 31px; }
  #decade-back, #decade-next { min-height: 30px; }
  #record-copy { padding-block: 4px; }
  #decade .record-shelves button, #decade .record-paging button { min-height: 27px; }
}
@media (max-width: 355px) {
  #decade-data summary, #decade-back { font-size: .74rem; }
  .almanac-header > div { margin-inline-end: 0; }
}

/* Short, wide screens have room for the controls beside a full-height sheet. */
@media (orientation: landscape) and (min-aspect-ratio: 2/1) and (max-height: 500px) {
  #decade { --reader-rail: clamp(128px, 19vw, 160px); }
  #decade[open]:not(:has(#decade-data[open])) {
    grid-template-columns: minmax(0, 1fr) var(--reader-rail);
    grid-template-rows: minmax(0, 1fr) auto;
  }
  #decade:not(:has(#decade-data[open])) #decade-spread { grid-area: 1 / 1 / -1 / 2; }
  #decade:not(:has(#decade-data[open])) .almanac-header,
  #decade:not(:has(#decade-data[open])) .almanac-footer {
    padding: 10px 8px; border-left: 1px solid #4b484d; justify-content: flex-start;
  }
  #decade:not(:has(#decade-data[open])) .almanac-header {
    grid-area: 1 / 2; flex-direction: column; align-items: stretch; gap: 8px;
  }
  #decade:not(:has(#decade-data[open])) .almanac-header > div {
    margin: 0; align-items: flex-start; flex-direction: column; gap: 5px; overflow: clip;
  }
  #decade:not(:has(#decade-data[open])) #decade-back { text-align: left; padding-inline: 0; }
  #decade-data:not([open]) summary {
    right: auto; left: calc(100% - var(--reader-rail) + 8px);
    top: 112px; padding-inline: 0;
  }
  #decade:not(:has(#decade-data[open])) .almanac-footer { grid-area: 2 / 2; }
  #decade:not(:has(#decade-data[open])) #decade-courses { grid-auto-flow: row; grid-auto-columns: auto; }
  #decade:not(:has(#decade-data[open])) .almanac-footer:has(#decade-courses:not([hidden])) {
    flex-direction: column; align-items: stretch;
  }
  #decade:not(:has(#decade-data[open])) #decade-next { padding-inline: 0; text-align: left; white-space: normal; text-wrap: balance; }
}

#feature-picker {
  min-width: 0; width: min(18em, 22vw); min-height: 32px; padding: 2px 5px;
  border: 1px solid #87858b; border-radius: 0; background: #fff; color: #19181b;
  font-family: inherit; font-size: .85rem; font-weight: 800;
}
@media (orientation: portrait) and (max-width: 680px) {
  #decade { height: min(100dvh, calc(111.111dvw + 120px), 850px); }
  #decade:has(#decade-data[open]) { height: min(100dvh, calc(111.111dvw + 307px), 1050px); }
  .almanac-header {
    display: grid; grid-template: 34px 34px / minmax(0,1fr) auto;
    gap: 2px 12px; padding-block: 3px;
  }
  .almanac-header > div { display: contents; }
  #edition-picker { grid-area: 1 / 1; justify-self: start; }
  #feature-picker { grid-area: 2 / 1; width: min(100%, 19em); }
  #decade-back { grid-area: 1 / 2; min-height: 32px; }
  #decade-data summary { top: 39px; right: clamp(8px,2vw,24px); min-height: 32px; }
}
@media (orientation: landscape) and (min-aspect-ratio: 2/1) and (max-height: 500px) {
  #decade:not(:has(#decade-data[open])) #feature-picker { width: 100%; font-size: .76rem; }
  #decade-data:not([open]) summary { top: 142px; }
}

.archive-feature .play-half {
  grid-template-rows: max-content minmax(0,1fr); align-content: stretch;
  padding: 2.8cqw 2.5cqw;
}
.archive-feature .archive-copy {
  display: block; font-size: 7.4cqw; line-height: 1.08; font-weight: 900;
  letter-spacing: -.045em; white-space: normal; word-break: keep-all; overflow-wrap: anywhere; line-break: strict;
}
.archive-feature.medium-copy .archive-copy { font-size: 6.25cqw; }
.archive-feature.long-copy .archive-copy { font-size: 5cqw; }
.archive-feature .play-shot .archive-copy { color: #ffe359; }
.archive-feature .fold-caption { font-size: 3.25cqw; }
.world-empty { align-content: center; padding-inline: 2.1cqw; font-size: 1.6cqw; }
