/* "Hardy in the News" newsstand (Oct 30 sample). Every clipping on one sideways-scrolling rack, oldest first.
   Brand kit: navy stand, Royal Purple awning, Commonwealth Yellow sign. */
.ns { background: #0C123B; color: #fff; padding: 0 0 clamp(48px, 6vw, 80px); overflow: hidden; }
.ns__awning { height: 74px; background: repeating-linear-gradient(90deg, #6D2077 0 56px, #F3EFE6 56px 112px);
  /* scalloped edge: each stripe ends in a half-circle */
  -webkit-mask: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 18px) no-repeat, radial-gradient(28px 18px at 28px 0, #000 98%, transparent) 0 100% / 56px 18px repeat-x;
  mask: linear-gradient(#000, #000) 0 0 / 100% calc(100% - 18px) no-repeat, radial-gradient(28px 18px at 28px 0, #000 98%, transparent) 0 100% / 56px 18px repeat-x;
}
.ns__top { text-align: center; padding-top: clamp(28px, 4vw, 48px); }
.ns__sign { display: inline-block; margin: 0; padding: 10px 26px 12px; font: 700 clamp(30px, 4.4vw, 54px)/1.05 var(--serif); letter-spacing: .04em; color: #FFCE00; border: 3px solid #FFCE00; border-radius: 6px; box-shadow: inset 0 0 0 6px #0C123B, inset 0 0 0 7px rgba(255,206,0,.5); }
.ns__sub { margin: 18px auto 0; max-width: 34em; font-size: 19px; color: #E6E2D8; }
.ns__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.ns__chip { font: 600 16px/1 var(--sans); color: #fff; background: transparent; border: 2px solid rgba(255,255,255,.35); border-radius: 999px; padding: 10px 16px; cursor: pointer; }
.ns__chip:hover, .ns__chip:focus-visible, .ns__chip[aria-pressed="true"] { background: #FFCE00; border-color: #FFCE00; color: #0C123B; outline: none; }

.ns__stand { position: relative; margin-top: clamp(28px, 4vw, 44px); }
.ns__rack { overflow-x: auto; overflow-y: hidden; scroll-snap-type: x proximity; scroll-behavior: smooth; scrollbar-width: none; padding: 26px 0 30px;
  background: linear-gradient(#8A7A55, #8A7A55) 0 calc(50% - 1px) / 100% 3px no-repeat; }
.ns__rack::-webkit-scrollbar { display: none; }
.ns__rack:focus-visible { outline: 3px solid #FFCE00; outline-offset: -3px; }
/* two shelves on desktop, read top-to-bottom then left-to-right; the rail behind them is the wire rack */
.ns__row { display: grid; grid-auto-flow: column; grid-template-rows: repeat(2, 236px); grid-auto-columns: 172px; gap: 30px 22px; margin: 0; padding: 0 max(24px, calc(50vw - 600px)); list-style: none; }
.ns__item { scroll-snap-align: start; position: relative; }
.ns__item::before { content: ""; position: absolute; top: -10px; left: 50%; width: 22px; height: 14px; margin-left: -11px; background: #B9A77A; border-radius: 3px 3px 0 0; z-index: 2; } /* the clip */
.ns__paper { display: flex; flex-direction: column; height: 100%; text-decoration: none; color: #2C2C2A; background: #F3EFE6; border-radius: 2px; overflow: hidden;
  box-shadow: 0 12px 22px -12px rgba(0,0,0,.7); transform: rotate(var(--tilt, -1deg)); transition: transform .25s ease, box-shadow .25s ease; }
.ns__item:nth-child(3n) .ns__paper { --tilt: 1.2deg; }
.ns__item:nth-child(4n+1) .ns__paper { --tilt: -.4deg; }
.ns__paper:hover, .ns__paper:focus-visible { transform: translateY(-8px) rotate(0) scale(1.04); box-shadow: 0 22px 34px -14px rgba(0,0,0,.85); outline: none; }
.ns__paper:focus-visible { box-shadow: 0 0 0 4px #FFCE00, 0 22px 34px -14px rgba(0,0,0,.85); }
.ns__mast { display: block; padding: 9px 8px 4px; font: 700 15px/1.1 var(--serif); text-align: center; border-bottom: 3px double #2C2C2A; margin: 0 8px; }
.ns__date { display: block; padding: 4px 8px 6px; font: 600 11.5px/1.2 var(--sans); letter-spacing: .06em; text-transform: uppercase; text-align: center; color: #5F5E5A; }
.ns__img { flex: 1; min-height: 0; margin: 0 8px 8px; background: #fff; }
.ns__img img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.ns__head { display: block; padding: 6px 10px 0; font: 700 15px/1.25 var(--serif); }
.ns__cols { flex: 1; margin: 10px 10px 12px; background: repeating-linear-gradient(#C9C2B0 0 2px, transparent 2px 8px) 0 0 / 46% 100% no-repeat, repeating-linear-gradient(#C9C2B0 0 2px, transparent 2px 8px) 100% 0 / 46% 100% no-repeat; opacity: .8; }
/* masthead flavor by paper */
.ns--nyt .ns__mast { font-family: "Old English Text MT", "UnifrakturMaguntia", Georgia, serif; font-weight: 400; font-size: 14px; }
.ns--inq .ns__mast { font-style: italic; }
.ns--dn .ns__mast { font-family: var(--sans); font-weight: 800; letter-spacing: .02em; text-transform: uppercase; font-size: 14px; }
.ns--jet .ns__paper { background: #1A1712; }
.ns--jet .ns__img { margin: 0; }
.ns--jet .ns__img img { object-fit: cover; }

.ns__arrow { position: absolute; top: 50%; z-index: 5; width: 54px; height: 54px; margin-top: -27px; border-radius: 50%; border: 0; cursor: pointer;
  background: #FFCE00; color: #0C123B; font: 400 36px/1 var(--serif); box-shadow: 0 8px 20px -8px rgba(0,0,0,.7); display: grid; place-items: center; padding-bottom: 4px; }
.ns__arrow--prev { left: max(10px, calc(50vw - 660px)); }
.ns__arrow--next { right: max(10px, calc(50vw - 660px)); }
.ns__arrow:hover { background: #fff; }
.ns__arrow:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.ns__arrow[aria-disabled="true"] { opacity: 0; pointer-events: none; }

.ns__ticker { display: flex; gap: 14px; align-items: baseline; margin: clamp(14px, 2vw, 22px) auto 0; max-width: 980px; padding: 12px 18px; background: rgba(0,0,0,.35); border-left: 4px solid #FFCE00; font-size: 18px; line-height: 1.4; }
.ns__ticker-yr { flex: none; font: 700 22px/1 var(--serif); color: #FFCE00; }
.ns__ticker-txt { color: #F3EFE6; }

@media (max-width: 760px) {
  .ns__awning { height: 56px; }
  .ns__row { grid-template-rows: 250px; grid-auto-columns: 168px; gap: 18px; padding: 0 24px; }
  .ns__rack { background: none; }
  .ns__arrow { width: 44px; height: 44px; margin-top: -22px; font-size: 30px; }
  .ns__ticker { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { .ns__rack { scroll-behavior: auto; } .ns__paper { transition: none; } }

/* Jet in the lightbox: the article on the left, that issue's cover on the right */
.lightbox--pair .lightbox__scroll { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.lightbox--pair .lightbox__scroll img { width: 100%; }
@media (max-width: 760px) { .lightbox--pair .lightbox__scroll { grid-template-columns: 1fr; } .lightbox--pair .lightbox__scroll img:last-child { order: -1; } }

/* Lightbox (self-contained so The Man doesn't need the Media page's stylesheet) */
.lightbox { width: min(1100px, calc(100vw - 32px)); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); padding: 0; border: 0; border-radius: 6px; background: #F3EFE6; color: #111; box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(1, 31, 91, .88); }
.lightbox__bar { display: flex; align-items: flex-start; gap: 16px; padding: 16px 18px 14px 22px; background: #fff; border-bottom: 1px solid #DDD6C6; }
.lightbox__cap { flex: 1; margin: 0; font: italic 400 19px/1.45 var(--serif); }
.lightbox__close { flex: none; min-height: 48px; padding: 10px 18px; border-radius: 999px; cursor: pointer; border: 2px solid #111; background: #111; color: #fff; font: 700 17px/1 var(--sans); }
.lightbox__close:hover { background: #002A82; border-color: #002A82; }
.lightbox__close:focus-visible { outline: 3px solid #002A82; outline-offset: 3px; }
.lightbox__scroll { flex: 1; min-height: 0; overflow: auto; padding: 18px; }
.lightbox__scroll:focus-visible { outline: 3px solid #002A82; outline-offset: -3px; }
.lightbox__scroll img { display: block; margin: 0 auto 18px; width: auto; max-width: 100%; height: auto; background: #fff; }
@media (max-width: 760px) { .lightbox__bar { padding: 12px 12px 10px 14px; } .lightbox__cap { font-size: 17px; } .lightbox__scroll { padding: 10px; } }
.lightbox--pair .lightbox__scroll img { margin: 0; }
