.magazine {
  --mag-pad: clamp(24px, 6vw, 108px);
  position: relative;
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  height: calc(100svh - var(--nav-height));
  height: calc(100dvh - var(--nav-height));
  color: #f7f9fa;
  background: #17283d;
  isolation: isolate;
}

.mag-scroll {
  position: absolute;
  inset: 0;
  overflow: hidden auto;
  overscroll-behavior-y: contain;
  scroll-snap-type: y mandatory;
  scrollbar-width: none;
  touch-action: pan-y pinch-zoom;
}
.mag-scroll::-webkit-scrollbar { display: none; }
.mag-scroll:focus-visible { outline: 2px solid white; outline-offset: -3px; }

.mag-slide {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  height: 100%;
  min-height: 335px;
  padding: 72px var(--mag-pad) clamp(96px, 15.4vh, 167px);
  overflow: hidden;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  isolation: isolate;
}

.mag-slide picture,
.mag-slide picture img,
.mag-slide::after {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.mag-slide picture { z-index: -2; background: #252420; }
.mag-slide picture img {
  display: block;
  object-fit: cover;
  object-position: var(--mag-focus, 50% 45%);
}
.mag-slide::after {
  z-index: -1;
  content: "";
  pointer-events: none;
  background:
    linear-gradient(180deg, rgb(8 10 9 / .34), transparent 26%, transparent 52%, rgb(8 10 9 / .6)),
    linear-gradient(90deg, rgb(10 12 11 / .82), rgb(10 12 11 / .48) 31%, transparent 64%);
}
.mag-guardianship { --mag-focus: 50% 48%; align-items: flex-end; }
.mag-guardianship::after {
  background:
    linear-gradient(180deg, rgb(15 12 10 / .48), transparent 28%, transparent 55%, rgb(15 12 10 / .62)),
    linear-gradient(270deg, rgb(14 13 11 / .86), rgb(14 13 11 / .56) 35%, transparent 68%);
}
.mag-care { --mag-focus: 50% 48%; }
.mag-copy { width: min(490px, 42%); }
.mag-copy h2 {
  margin: 0 0 clamp(18px, 2.8vh, 31px);
  font-family: var(--serif);
  font-size: clamp(56px, 6.8vw, 121px);
  font-weight: 600;
  letter-spacing: -.072em;
  line-height: 1.02;
  color: white;
}
.mag-copy h2 span { display: block; white-space: nowrap; }
.mag-copy p {
  max-width: 27em;
  margin: 0;
  color: white;
  font-size: clamp(15px, 1.13vw, 20px);
  font-weight: 430;
  line-height: 1.82;
  text-wrap: pretty;
}
.mag-guardianship .mag-copy { width: min(540px, 43%); }
@media (min-width: 681px) and (min-height: 561px) {
  .mag-guardianship .mag-copy h2 { font-size: clamp(39px, 5.9vw, 102px); }
}

.mag-mast,
.mag-actions {
  position: absolute;
  z-index: 2;
  left: var(--mag-pad);
  right: var(--mag-pad);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  pointer-events: none;
}
.mag-mast {
  top: clamp(22px, 4.9vh, 54px);
  padding-bottom: 13px;
  border-bottom: 1px solid rgb(240 246 251 / .48);
  text-shadow: 0 1px 4px rgb(0 0 0 / .65);
}
.mag-mast h1 {
  margin: 0;
  font-size: clamp(14px, 1.25vw, 19px);
  font-weight: 580;
  line-height: 1.5;
  letter-spacing: .08em;
}
.mag-counter { color: var(--amber); }
.mag-pagination { font-size: 15px; font-variant-numeric: tabular-nums; letter-spacing: .1em; }
.mag-pagination > span:nth-child(2) { margin: 0 4px; opacity: .66; }
.mag-actions { bottom: max(25px, 4.8vh, env(safe-area-inset-bottom)); }
.mag-support,.mag-controls { display: flex; align-items: center; }
.mag-support { gap: 15px; }
.mag-support #support, .mag-controls button {
  min-height: 44px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  pointer-events: auto;
}
.mag-support #support {
  gap: 8px;
  padding-inline: 20px;
  color: #17283d;
  background: var(--amber);
  border: 1px solid var(--amber);
  border-radius: 5px;
  font-size: 14px;
  font-weight: 620;
}
.mag-support #support[aria-pressed=true] svg { fill: currentColor; }
.mag-support #supportCount { font-size: 13px; color: white; text-shadow: 0 1px 4px #171411; }
.mag-controls { gap: 8px; }
.mag-controls button {
  width: 46px;
  height: 46px;
  border-radius: 5px;
  border: 1px solid rgb(255 255 255 / .75);
  background: rgb(25 22 18 / .28);
  color: #fff;
}
.mag-controls button:hover { background: rgb(20 17 13 / .65); }
.mag-controls [data-mag-step="1"] svg { transform: rotate(180deg); }
.law-source { display:inline-block; font-size:12px; color:#fbf1d9; margin-top:8px; text-decoration:underline; text-underline-offset:3px; }
.magazine button:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.mag-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; }

@media (max-width: 680px) and (orientation: portrait) {
  .magazine { --mag-pad: clamp(20px, 6vw, 34px); }
  .mag-slide { padding-bottom: clamp(94px, 14svh, 124px); }
  .mag-slide picture img { object-position: 50% 40%; }
  .mag-slide::after {
    background: linear-gradient(180deg, rgb(10 12 12 / .52), transparent 23%, transparent 34%, rgb(10 12 12 / .7) 66%, rgb(10 12 12 / .88));
  }
  .mag-copy, .mag-guardianship .mag-copy { width: 100%; }
  .mag-copy h2 { font-size: clamp(45px, 12.2vw, 75px); margin-bottom: 15px; }
  .mag-copy p { max-width: 31em; font-size: 15px; line-height: 1.75; }
  .mag-mast { top: 25px; padding-bottom: 11px; }
  .mag-mast h1 { font-size: 14px; }
  .mag-actions { bottom: max(22px, env(safe-area-inset-bottom)); gap: 8px; }
  .mag-support { gap: 9px; }
  .mag-support #support { padding-inline: 14px; }
  .mag-controls { gap: 5px; }
  .mag-controls button { width: 44px; height: 44px; }
}

@media (max-height: 560px) {
  .magazine { --mag-pad: clamp(18px, 4vw, 40px); }
  .mag-mast { top: 14px; padding-bottom: 6px; }
  .mag-copy h2 { font-size: clamp(32px, 7.5vh, 44px); margin-bottom: 8px; }
  .mag-slide { min-height: 270px; padding-top: 50px; padding-bottom: 73px; }
  .mag-copy p { font-size: 14px; line-height: 1.55; }
  .mag-actions { bottom: 14px; }
}
