/* Honors · two films in a brushed-metal reading box */
.xr-page {
  width: min(980px, 100% - 32px);
  font-family: 'Thmanyah', var(--body);
}

/* Let the backdrop fade into the page below the viewbox. */
body:has(.xr-page) .atmosphere {
  position: absolute;
  inset: 0 0 auto;
  height: 1250px;
  background:
    radial-gradient(ellipse 78% 640px at 82% 73px, #421014, transparent),
    radial-gradient(ellipse 72% 680px at 17% 440px, rgb(56 63 79 / .23), transparent);
}
body:has(.xr-page) .atmosphere > * { display: none; }

.xr-page .page-head {
  padding: clamp(30px, 5vw, 62px) 0 clamp(24px, 3vw, 40px);
}

.xr-page .page-head h1 {
  margin: 0;
  font-size: clamp(42px, 6.5vw, 78px);
  line-height: 1.13;
}

.xr-page .page-head h1 em { color: #f09398; }

.xr-page .page-head p {
  max-width: 570px;
  margin-block-start: 12px;
  color: #dbc0bc;
  font-size: clamp(16px, 1.5vw, 18px);
  line-height: 1.75;
}

#xr-stage { scroll-margin-block-start: 84px; }

.xr-box {
  --xr-type: 'Thmanyah Display', var(--display);
  --xr-blue: #d0eaf5;
  --xr-muted: #bbc6ce;
  --xr-grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.88' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  padding: clamp(13px, 3.1vw, 40px);
  padding-block-start: clamp(12px, 2.3vw, 28px);
  border: 1px solid #514446;
  border-radius: clamp(15px, 2.1vw, 25px);
  background:
    radial-gradient(ellipse at 50% 24%, rgb(102 137 154 / .14), transparent 64%),
    repeating-linear-gradient(0deg, rgb(255 255 255 / .016) 0 1px, transparent 1px 4px),
    linear-gradient(160deg, #282023, #171619 46%, #141012 88%);
  box-shadow: inset 0 1px #796468, inset 0 -3px #0a0809, 0 22px 60px -24px #000;
}

.xr-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(5px, 2vw, 18px);
  margin: 0 auto clamp(20px, 3vw, 32px);
  padding-block-end: 13px;
  border-block-end: 1px solid rgb(228 206 208 / .2);
  box-shadow: 0 1px rgb(0 0 0 / .46);
}

.xr-plate {
  justify-self: start;
  padding: 5px 0;
  background: none;
  box-shadow: none;
}

.xr-plate b {
  color: var(--text);
  font: 700 clamp(13.5px, 2vw, 20px)/1.25 var(--xr-type);
}

.xr-plate small {
  display: block;
  margin-block-start: 4px;
  color: #c7b0ae;
  font: 500 clamp(8px, 1vw, 11px)/1.15 var(--mono);
  letter-spacing: .065em;
  white-space: nowrap;
}

.xr-month-lbl {
  margin: 0;
  color: var(--xr-blue);
  font: 700 clamp(16px, 2.3vw, 25px)/1.3 var(--xr-type);
  text-align: center;
  word-spacing: .12em;
}

.xr-switch {
  justify-self: end;
  width: 55px;
  height: 44px;
  background: transparent;
  box-shadow: none;
}

.xr-switch::before {
  content: '';
  position: absolute;
  inset: 7px 0;
  border: 1px solid #5b565b;
  border-radius: 99px;
  background: radial-gradient(circle at 13px 50%, #836c68 0 2px, transparent 3px), #100d10;
  box-shadow: inset 0 2px 5px rgb(0 0 0 / .8);
}

.xr-switch i {
  top: 11px;
  inset-inline-start: 6px;
  background: linear-gradient(#f0e8e4, #a89fa3 55%, #7b7178);
}

.xr-switch[aria-pressed="true"] { background: transparent; }
.xr-switch[aria-pressed="true"]::before {
  background: radial-gradient(circle at calc(100% - 13px) 50%, #d4f4ff 0 2px, #75adc5 3px, transparent 5px), #1b303b;
}
.xr-switch[aria-pressed="true"] i { transform: translateX(-21px); }
.xr-switch:focus-visible, .sw-film:focus-visible { outline: 2px solid var(--gold); }

.xr-panels {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: auto 1fr;
  column-gap: clamp(10px, 3vw, 34px);
  row-gap: 0;
}

.xr-panels.with-cards { grid-template-rows: auto auto 1fr; }
.xr-panel {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  min-width: 0;
}
.xr-panels.with-cards .xr-panel { grid-row: span 3; }
.xr-figure {
  display: grid;
  grid-row: span 2;
  grid-template-rows: subgrid;
  min-width: 0;
  margin: 0;
}

.xr-screen {
  isolation: isolate;
  padding: clamp(5px, 1.15vw, 11px);
  border: 1px solid #68747b;
  border-radius: 8px;
  background: #0b1117;
  box-shadow: 0 0 0 3px #101014, 0 7px 18px -7px #000;
}

.xr-screen::after {
  content: '';
  position: absolute;
  z-index: -1;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgb(5 17 29 / .5), inset 0 0 5px 1px rgb(10 22 35 / .52);
  pointer-events: none;
}

.xr-light {
  z-index: -1;
  inset: 1px;
  border-radius: 6px;
  background: radial-gradient(ellipse at 48% 41%, #f5fbff 25%, #c6e5f1 64%, #84acbd 100%);
  box-shadow: 0 0 24px 2px rgb(163 219 245 / .2);
  animation: xr-warmup .5s ease-out both;
}

@keyframes xr-warmup { from { opacity: .36; } to { opacity: 1; } }
.xr-box .xr-light { transition: opacity .32s var(--ease); }
.xr-box.off .xr-light { opacity: .13; }

.xr-clip {
  top: -7px;
  width: clamp(40px, 10vw, 78px);
  height: clamp(14px, 2vw, 20px);
  margin: 0;
  transform: translateX(-50%);
  border: 1px solid #8a898d;
  border-radius: 4px;
  background:
    repeating-linear-gradient(90deg, rgb(255 255 255 / .12) 0 1px, transparent 1px 3px),
    linear-gradient(#77767b, #b2aeb0 20%, #77737b 49%, #413f46 72%, #222129 87%, #88838a 100%);
  box-shadow: inset 0 1px rgb(255 255 255 / .5), 0 3px 7px rgb(0 0 0 / .65);
}

.xr-clip::after {
  content: '';
  position: absolute;
  inset: 4px 24% auto;
  height: 2px;
  border-radius: 9px;
  background: #2b2a31;
  box-shadow: 0 1px rgb(255 255 255 / .26);
}

.xr-film {
  isolation: isolate;
  border-radius: 3px;
  background: radial-gradient(ellipse at 50% 49%, #173344, #0a1824 62%, #050b13);
  box-shadow: 0 0 0 1px rgb(6 19 27 / .8), 0 1px 5px #375764;
  color: #b5dff0;
}

.xr-film::before {
  content: '';
  position: absolute;
  z-index: 1;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, rgb(178 221 238 / .36) 0 1px, transparent 1px 6px)
      left clamp(4px, 1.1vw, 9px) center / 4px 35% no-repeat,
    repeating-linear-gradient(0deg, rgb(178 221 238 / .36) 0 1px, transparent 1px 6px)
      right clamp(4px, 1.1vw, 9px) center / 4px 35% no-repeat;
  box-shadow: inset 0 0 22px rgb(1 7 15 / .5);
  pointer-events: none;
}

.xr-film::after {
  opacity: .18;
  mix-blend-mode: soft-light;
  background-image: var(--xr-grain);
  background-size: 140px;
}

.xr-ghost {
  inset: 2.5% 3% 0;
  width: 94%;
  height: 97.5%;
  color: inherit;
  filter: none;
  transition: opacity .32s var(--ease);
}

.xr-film.has-portrait { background: #14222e; }
.xr-film.has-portrait::before {
  background:
    linear-gradient(to bottom, rgb(4 10 16 / .75), transparent 21%, transparent 74%, rgb(4 10 16 / .8)),
    repeating-linear-gradient(0deg, rgb(232 243 250 / .53) 0 1px, transparent 1px 6px) left 6px center / 3px 32% no-repeat,
    repeating-linear-gradient(0deg, rgb(232 243 250 / .53) 0 1px, transparent 1px 6px) right 6px center / 3px 32% no-repeat;
}
.xr-film.has-portrait::after { opacity: .08; }
.xr-film img {
  inset: 0;
  width: 100%;
  height: 100%;
  transform: none !important;
  object-fit: cover;
  object-position: center 34%;
  filter: saturate(.9);
  mix-blend-mode: normal;
  opacity: 1;
  transition: opacity .32s var(--ease);
}
.xr-box.off .xr-ghost { opacity: .26; }
.xr-box.off .xr-film img { opacity: .57; }

.xr-lbl, .xr-mark, .xr-stamp { z-index: 2; }
.xr-lbl {
  top: clamp(7px, 1.15vw, 14px);
  color: var(--xr-blue);
  font-size: clamp(8px, 1vw, 11px);
  letter-spacing: .075em;
  text-shadow: 0 1px 3px #010309;
  white-space: nowrap;
}
.xr-lbl.tr { right: clamp(6px, 1.15vw, 14px); }
.xr-lbl.tl {
  display: block;
  top: auto;
  bottom: clamp(9px, 1.55vw, 18px);
  left: auto;
  right: clamp(6px, 1.15vw, 14px);
}
.xr-film.has-portrait .xr-lbl {
  padding: 2px 4px;
  border-radius: 2px;
  background: rgb(7 15 23 / .83);
}
.xr-mark {
  left: clamp(6px, 1.1vw, 14px);
  bottom: clamp(6px, 1.1vw, 14px);
  width: clamp(19px, 2.25vw, 27px);
  height: clamp(19px, 2.25vw, 27px);
  border: 1px solid #8bafbf;
  border-radius: 2px;
  background: #0b1a25;
  color: #e4f5ff;
}
.xr-stamp {
  top: auto;
  bottom: 14%;
  transform: translateX(-50%) rotate(-5deg);
  padding: 3px clamp(6px, 1.2vw, 12px);
  border: 1px solid #b9747e;
  border-radius: 3px;
  background: #2f1724;
  color: #ffc2c8;
  font: 700 clamp(12px, 1.5vw, 16px)/1.4 var(--xr-type);
}

.xr-panel figcaption { gap: 4px; padding-block-start: clamp(14px, 2vw, 22px); }
.xr-panel figcaption b { font: 700 clamp(16px, 2.45vw, 28px)/1.2 var(--xr-type); }
.xr-panel figcaption span { color: var(--xr-muted); line-height: 1.45; }
.xr-panel figcaption span, .xr-card { overflow-wrap: anywhere; }

.xr-card {
  margin-block-start: clamp(11px, 1.7vw, 18px);
  padding: clamp(9px, 1.65vw, 19px);
  border: 1px solid #4b4148;
  border-radius: 5px;
  background: linear-gradient(155deg, #262127, #201b20);
  box-shadow: inset 0 1px rgb(255 255 255 / .06);
}
.xr-card .rx-form { gap: 0; }
.xr-card .rx-form div {
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px;
  min-height: 29px;
  border-block-end: 1px solid #50464d;
}
.xr-card .rx-form dt { color: #e3d1d5; font-size: 14px; }
.xr-card .rx-form dd { border: 0; }
.xr-card .rx-note { margin-block-start: 11px; color: #c8b6bc; }
.xr-who { color: #ebdadd; text-align: start; }
.xr-stats b { color: var(--xr-blue); }
.xr-stats li { grid-template-columns: auto minmax(0, 1fr); }

.xr-box.mini { padding: clamp(12px, 2vw, 21px); }
.xr-box.mini .xr-panels { column-gap: clamp(11px, 2vw, 23px); }
.xr-box.mini .xr-screen { padding: clamp(4px, .7vw, 8px); }
.xr-box.mini .xr-clip { width: 49px; height: 14px; }
.xr-box.mini .xr-stamp { font-size: 12px; }

/* Season rail and acknowledgement slip */
.xr-season, .xr-thanks, .xr-crit { margin-block-start: clamp(48px, 7.2vw, 90px); }
.xr-crit { margin-block-end: clamp(45px, 7vw, 85px); }
.xr-sec-head {
  align-items: baseline;
  gap: 7px 22px;
  margin-block-end: clamp(16px, 2vw, 23px);
}
.xr-sec-head h2 {
  font: 700 clamp(28px, 3.8vw, 45px)/1.16 'Thmanyah Display', var(--display);
}
.xr-sec-head p { line-height: 1.6; }

.sw-grid {
  --sw-rule: #3d3035;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px 8px;
  padding: clamp(9px, 1.7vw, 19px);
  border-block: 1px solid var(--sw-rule);
  background: linear-gradient(180deg, #191317, #110d10);
}
.sw-film {
  min-height: 44px;
  min-width: 0;
  gap: 4px;
  padding: 3px 3px 8px;
  border-radius: 4px;
  line-height: 1.35;
}
.sw-frame {
  aspect-ratio: 1.42;
  gap: 4px;
  padding: 6px;
  border-radius: 4px;
  border: 1px solid #554750;
  background: linear-gradient(#30262c, #1d171c);
  box-shadow: inset 0 1px rgb(255 255 255 / .09), 0 2px 5px #050405;
}
.sw-frame > * {
  flex: 1 1 0;
  min-width: 0;
  background: linear-gradient(#16151c, #100e13);
  box-shadow: inset 0 0 0 1px rgb(222 203 215 / .12);
}
.sw-film.lit .sw-frame { background: linear-gradient(#c7e4f1, #8dabbc); }
.sw-film.lit .sw-frame > img { filter: saturate(.9); mix-blend-mode: normal; }
.sw-film.lit .sw-frame > i {
  background:
    radial-gradient(ellipse 22% 17% at 50% 34%, #91b9ca 55%, transparent 100%),
    radial-gradient(ellipse 43% 27% at 50% 85%, #466a7d 65%, transparent 100%),
    linear-gradient(#1c3242, #091621);
}
.sw-film.dark .sw-frame::after { content: none; }
.sw-film[aria-pressed="true"] .sw-frame {
  box-shadow: 0 0 0 1px #16121a, 0 0 0 2px var(--gold), 0 0 14px rgb(188 232 251 / .18);
}
.sw-film:not(:disabled):hover .sw-frame { border-color: var(--gold); }
.sw-name { margin-block-start: 5px; }
.sw-film small { color: #c4aeb2; font-size: 13px; }
.sw-film[aria-pressed="true"] small { color: var(--gold); }

.xr-thanks {
  position: relative;
  padding: clamp(18px, 3.4vw, 36px);
  border: 1px solid #6f4a45;
  border-inline-start: 3px solid #b88d61;
  border-radius: 5px 8px 8px 5px;
  background: radial-gradient(ellipse at 95% 0%, #3a201f, transparent 78%), #251516;
  box-shadow: 0 12px 39px -25px #000;
}
.xr-thanks::before {
  content: '';
  position: absolute;
  inset-block-start: -6px;
  inset-inline-end: clamp(19px, 3vw, 38px);
  width: 36px;
  height: 12px;
  border: 1px solid #a1876e;
  border-radius: 3px;
  background: linear-gradient(#9e8871, #514136 55%, #332525);
  box-shadow: 0 2px 4px #160d0c;
}
.xr-thanks .xr-sec-head { margin-block-end: 16px; }
.xr-thanks h2 { color: var(--gold); }
.xr-thanks p, .xr-thanks li span { color: #e2c5bc; }
.xt-list { display: block; }
.xt-empty, .xt-list li {
  padding: 12px 0;
  border: 0;
  border-block-start: 1px solid #704e48;
  border-radius: 0;
  background: none;
  box-shadow: none;
}
.xt-list li {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2fr);
  align-items: baseline;
  column-gap: 18px;
}
.xt-list li:last-child, .xt-empty { border-block-end: 1px solid #704e48; }

/* Backlit criterion markers and the connected reading workflow */
.xc-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.xc {
  gap: 8px;
  padding: clamp(12px, 1.8vw, 21px);
  border: 1px solid #334955;
  border-radius: 6px;
  background: radial-gradient(ellipse at 78% 0, #1b313b, transparent 67%), #10181e;
  box-shadow: inset 0 0 0 3px #11191f;
}
.xc::after {
  inset: 0 8% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, #8bbdcc, transparent);
}
.xc-ic {
  width: clamp(35px, 5vw, 46px);
  height: clamp(35px, 5vw, 46px);
  margin-block-end: 2px;
  border: 1px solid #7ca5b6;
  border-radius: 4px;
  background: radial-gradient(#274554, #182a35);
  color: #e1f5ff;
  box-shadow: inset 0 0 9px #2b5365, 0 0 12px rgb(140 206 224 / .19);
}
.xc-ic svg { width: 65%; height: 65%; }
.xc b { font: 700 clamp(17px, 2vw, 23px)/1.2 'Thmanyah Display', var(--display); }
.xc p { color: #c2cdd3; line-height: 1.55; }

.xc-path { margin-block-start: clamp(28px, 4.6vw, 56px); }
.xc-path li {
  border: 0;
  padding: 4px 42px 19px 0;
}
.xc-path li::after {
  content: '';
  position: absolute;
  inset-block: 16px -16px;
  inset-inline-start: 12px;
  border-inline-start: 1px solid #8d6d64;
}
.xc-path li:last-child::after { content: none; }
.xc-path li::before {
  z-index: 1;
  top: 4px;
  inset-inline-start: 0;
  border: 1px solid #bb9168;
  background: #26191a;
  color: #f3cf9e;
  box-shadow: 0 0 0 4px var(--bg);
}
.xc-path b { margin: 0; color: #f2cf9e; }
.xc-path span { color: #c9b1ad; font-size: 15px; line-height: 1.55; }

@media (min-width: 701px) {
  .xc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .xc-path { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xc-path li { padding: 39px 0 0 24px; }
  .xc-path li::after {
    inset-block: 16px auto;
    inset-inline: 13px -13px;
    border-inline-start: 0;
    border-block-start: 1px solid #8d6d64;
  }
  .xc-path li:last-child::after { content: ''; inset-inline-end: 0; opacity: .45; }
}

@media (min-width: 840px) {
  .sw-grid { grid-template-columns: repeat(9, minmax(0, 1fr)); }
}

@media (max-width: 480px) {
  .xr-page .page-head { padding-block: 24px 21px; }
  .xr-head { margin-block-end: 17px; padding-block-end: 9px; }
  .xr-card .rx-form div { min-height: 26px; }
  .xr-card .rx-note { font-size: 13px; }
  .xr-film::before { background-size: 2px 31%, 2px 31%; }
  .xr-film.has-portrait::before { background-size: auto, 2px 31%, 2px 31%; }
  .xt-list li { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  /* Keep the shared navigation reachable at phone widths on this route. */
  body:has(.xr-page) .topbar {
    flex-wrap: wrap;
    gap: 3px;
    padding-inline: 7px;
  }
  body:has(.xr-page) .team-mark {
    justify-content: center;
    width: 44px;
    height: 44px;
    padding-inline-start: 0;
  }
  body:has(.xr-page) .top-links { flex-wrap: wrap; justify-content: flex-end; }
  body:has(.xr-page) .top-links > a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
  }
  body:has(.xr-page) .top-links .btn-sm { padding-inline: 10px; }
  body:has(.xr-page) .top-links :is(.updates-link, .lite-toggle, .fs-toggle) {
    width: 44px !important;
    height: 44px !important;
  }
  body:has(.xr-page) .lite-toggle + .fs-toggle { margin-inline-start: 0; }
}

@media (max-width: 374px) {
  #xr-stage { scroll-margin-block-start: 126px; }
}

.xr-box.still .xr-light { animation: none; }
.lite .xr-box .xr-light, .lite .xr-box .xr-ghost, .lite .xr-box .xr-film img,
.lite .xr-switch i, .lite .sw-frame { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .xr-box .xr-light, .xr-box .xr-ghost, .xr-box .xr-film img, .xr-switch i, .sw-frame {
    animation: none;
    transition: none;
  }
}
