.magazine-shell { width: var(--shell); margin-inline: auto; color: #003087; }
.magazine-heading { margin-bottom: 20px; text-align: center; }
.magazine-heading h1 { margin: 0 0 20px; font-size: 40px; font-weight: 300; line-height: 1.35; }
.magazine-heading-rule { position: relative; display: flex; align-items: center; justify-content: center; width: min(350px, 80%); height: 28px; margin: 0 auto 24px; }
.magazine-heading-rule::before { position: absolute; inset: 13px 0 auto; border-top: 3px solid #c8a977; content: ""; }
.magazine-heading-rule span { z-index: 1; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #c8a977; color: #fff; font: 18px Arial, sans-serif; }
.magazine-heading p { margin: 0 0 42px; font-size: 19px; font-weight: 300; line-height: 1.72; }
.magazine-tabs { margin-bottom: 0; border: 1px solid #003087; }
.magazine-tabs > .nav { overflow-x: auto; }
.magazine-years { display: flex; min-width: 100%; margin: 0; padding: 0; list-style: none; }
.magazine-years li { flex: 1 0 72px; }
.magazine-years .tab-link { display: block; padding: 11px 6px; border-top: 3px solid transparent; border-right: 1px solid #fff; background: #f5f5f5; color: #1c1c1c; font-size: 18px; font-weight: 300; text-align: center; }
.magazine-years .tab-link[aria-selected="true"], .magazine-years .tab-link:hover { border-top-color: #c8a977; background: #fff; }
.magazine-tabs .tab-pane { padding: 15px 15px 35px; }
.magazine-tabs .tab-pane[hidden] { display: none; }
.magazine-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 212px)); justify-content: center; gap: 20px 36px; }
.magazine-card { display: flex; flex-direction: column; min-width: 0; background: #211c34; color: #fff; text-align: center; }
.magazine-cover { display: block; flex: 0 0 auto; aspect-ratio: 212 / 300; overflow: hidden; background: #fff; }
.magazine-card img { width: 100%; height: 100%; object-fit: contain; }
.magazine-cover--framed img { transform: scale(1.1); transform-origin: top center; }
.magazine-caption { display: block; padding: 4px 2px; font: 400 15px/24px Arial, sans-serif; }
.magazine-card:focus-visible, .magazine-back:focus-visible, .magazine-years .tab-link:focus-visible { outline: 2px solid #003087; outline-offset: 4px; }
.magazine-issue .magazine-heading { margin-bottom: 0; }
.magazine-issue .magazine-heading-rule { margin-bottom: 0; }
.magazine-back { display: inline-block; margin: 0 0 20px; padding: 10px 28px; border: 2px solid #003087; font-size: 14px; }
/* Override the engine's inline aspect-ratio height so the entire spread fits the screen. */
.kipas-flipbook { position: relative; width: 100%; height: min(800px, calc(100vh - 140px)) !important; height: min(800px, calc(100dvh - 140px)) !important; min-height: 320px; overflow: hidden; background: #515558; color: #fff; }
.magazine-loading { padding: 24px; text-align: center; }
.magazine-pdf-link { margin: 10px 0 0; font-size: 13px; text-align: right; text-decoration: underline; }
.magazine-unavailable { padding: 40px; text-align: center; }
@media (max-width: 980px) { .magazine-grid { gap: 20px 16px; } }
@media (max-width: 620px) {
  .magazine-heading h1 { font-size: 34px; }
  .magazine-heading p { font-size: 18px; }
  .magazine-grid { grid-template-columns: repeat(2, minmax(0, 212px)); }
  .magazine-caption { font-size: 14px; }
  .kipas-flipbook { min-height: 260px; }
}
