:root {
  --page:#fbfaf6;
  --paper:#fffefa;
  --ink:#07152f;
  --muted:#677184;
  --line:#dde2e8;
  --navy:#061a3c;
  --gold:#c99523;
  --red:#c51725;
  --teal:#087f8c;
  --shadow:0 10px 26px rgba(7,21,47,.08);
  --ui:"Noto Sans Malayalam","Nirmala UI",system-ui,-apple-system,"Segoe UI",sans-serif;
  --editorial:"Noto Serif Malayalam",Georgia,"Times New Roman",serif;
}
*{box-sizing:border-box}
html{background:var(--page);scroll-behavior:smooth}
body{margin:0;background:var(--page);color:var(--ink);font-family:var(--ui)}
a{color:inherit}
img{display:block;max-width:100%}
button,input{font:inherit}
[hidden]{display:none!important}
.sr-only,.skip-link:not(:focus){position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.skip-link:focus{position:fixed;z-index:200;left:12px;top:12px;background:#fff;padding:10px 14px;border:2px solid var(--navy);border-radius:8px}

.portrait-header{position:sticky;top:0;z-index:80;background:rgba(255,255,255,.97);border-bottom:1px solid #dce1e8;backdrop-filter:blur(14px)}
.portrait-header__main{max-width:1360px;height:84px;margin:auto;display:grid;grid-template-columns:285px minmax(280px,520px) 1fr;align-items:center;gap:24px;padding:10px 24px}
.portrait-brand{display:flex;align-items:center;text-decoration:none}
.portrait-brand img{width:238px;height:58px;object-fit:contain;object-position:left center}
.portrait-search{height:48px;border:1px solid #d4dce7;border-radius:999px;background:#f8fafc;display:flex;align-items:center;padding:0 18px;box-shadow:inset 0 1px 1px rgba(7,21,47,.02)}
.portrait-search input{width:100%;border:0;outline:0;background:transparent;color:var(--ink);font-size:15px}
.portrait-search>span:last-child{font-size:21px;color:var(--navy)}
.portrait-launch{display:flex;justify-content:flex-end;align-items:center;gap:10px}
.portrait-launch a{min-height:44px;display:flex;align-items:center;justify-content:center;padding:0 18px;border:1px solid var(--navy);border-radius:999px;text-decoration:none;font-size:12px;font-weight:850;white-space:nowrap}
.portrait-launch .is-malayalam{background:var(--navy);color:#fff}
.portrait-launch .is-english{background:#fff;color:var(--navy)}
.portrait-menu{height:46px;background:var(--navy);display:flex;align-items:stretch;gap:20px;padding-left:max(24px,calc((100vw - 1312px)/2))}
.portrait-menu a{position:relative;display:flex;align-items:center;padding:0 8px;color:#fff;text-decoration:none;font-size:13px;font-weight:750}
.portrait-menu .is-current:after{content:"";position:absolute;left:8px;right:8px;bottom:0;height:3px;background:var(--gold)}

.portrait-main{width:min(1320px,calc(100% - 32px));min-height:68vh;margin:0 auto;padding:34px 0 56px}
.portrait-status{min-height:42px;display:flex;align-items:center;justify-content:center;color:var(--muted);font-size:13px}
.portrait-status.is-error{color:#9f1722;background:#fff0f1;border:1px solid #f3c6ca;border-radius:12px;padding:12px}
.portrait-status.is-ready{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}
.portrait-feed{display:grid;gap:28px}
.portrait-section{display:grid;gap:15px}
.portrait-section__head{display:flex;align-items:end;justify-content:space-between;gap:16px}
.portrait-section__head h2{margin:0;font-size:24px;line-height:1.2;letter-spacing:-.02em}
.portrait-section__head a{font-size:12px;font-weight:800;color:#0a3a86;text-decoration:none}
.portrait-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px 28px}

.swipe-preview{position:relative;display:block;min-width:0;aspect-ratio:9 / 16;overflow:hidden;background:var(--paper);border:1px solid #d8d8d2;border-radius:5px;text-decoration:none;box-shadow:var(--shadow);color:#111;isolation:isolate}
.swipe-preview:focus-visible{outline:3px solid #1d65ce;outline-offset:3px}
.swipe-preview:hover{box-shadow:0 14px 34px rgba(7,21,47,.14);transform:translateY(-1px)}
.swipe-preview__page{height:100%;display:grid;grid-template-rows:auto minmax(0,1fr);background:#fffefa}
.preview-masthead{height:11.5%;min-height:42px;display:flex;align-items:center;justify-content:center;padding:5px 8px;border-bottom:1px solid #222;background:#fffefa}
.preview-masthead strong{font-family:Georgia,"Times New Roman",serif;font-size:clamp(15px,1.8vw,27px);letter-spacing:-.04em;color:#07152f}
.swipe-preview.is-ml .preview-masthead img{width:71%;height:92%;object-fit:contain}
.preview-body{min-height:0;display:flex;flex-direction:column;overflow:hidden}
.preview-media{position:relative;flex:0 0 46%;overflow:hidden;background:#e9edf2;border-bottom:1px solid #d9dde2}
.preview-media img{width:100%;height:100%;object-fit:cover}
.preview-media.is-contain img{object-fit:contain;background:#fff}
.preview-copy{min-height:0;flex:1;padding:8% 7% 6%;overflow:hidden;background:#fffefa}
.preview-copy h3{margin:0 0 5%;font-family:var(--editorial);font-size:clamp(13px,1.45vw,22px);line-height:1.22;letter-spacing:-.018em;color:#111}
.preview-copy p{margin:0;font-family:var(--editorial);font-size:clamp(7px,.7vw,11px);line-height:1.48;color:#333;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:8;overflow:hidden}
.swipe-preview.is-ml .preview-copy h3{font-family:"Noto Serif Malayalam","Noto Sans Malayalam",serif;font-weight:750;line-height:1.42;letter-spacing:0}
.swipe-preview.is-ml .preview-copy p{font-family:"Noto Sans Malayalam",sans-serif;line-height:1.58}
.preview-page-number{position:absolute;z-index:3;right:6%;top:13.5%;font:800 8px/1 var(--ui);color:#6f2c9d;letter-spacing:.08em}

.swipe-preview.is-text .preview-copy{padding-top:12%;background:linear-gradient(#fffefa,#fbf7ed)}
.swipe-preview.is-text .preview-copy h3{font-size:clamp(17px,1.9vw,28px);padding-bottom:7%;border-bottom:2px solid #202020}
.swipe-preview.is-text .preview-copy p{-webkit-line-clamp:18;font-size:clamp(8px,.78vw,12px);column-count:2;column-gap:8%;column-rule:1px solid #d4cec0}
.swipe-preview.is-full .preview-masthead{display:none}
.swipe-preview.is-full .preview-body{height:100%}
.swipe-preview.is-full .preview-media{flex:1;border:0}
.swipe-preview.is-full .preview-media img{object-fit:contain;background:#fff}
.swipe-preview.is-dual-media .preview-body{display:grid;grid-template-rows:1fr 1fr}
.swipe-preview.is-dual-media .preview-media{height:100%;flex:auto}
.swipe-preview.is-dual-media .preview-media+ .preview-media{border-top:1px solid #fff}
.preview-play{position:absolute;left:50%;top:50%;translate:-50% -50%;width:46px;height:46px;border-radius:50%;display:grid;place-items:center;color:#fff;background:rgba(6,26,60,.78);border:2px solid rgba(255,255,255,.9);font-size:19px;box-shadow:0 5px 16px rgba(0,0,0,.25)}
.preview-attached-ad{position:absolute;z-index:4;left:0;right:0;bottom:0;height:15%;background:#fff;border-top:2px solid #fff;overflow:hidden}
.preview-attached-ad.is-25{height:25%}
.preview-attached-ad img{width:100%;height:100%;object-fit:contain}
.swipe-preview.has-attached-ad .preview-copy{padding-bottom:20%}
.swipe-preview.has-attached-ad.is-ad-25 .preview-copy{padding-bottom:30%}

.portrait-ad{min-height:92px;border:1px solid #e0e4ea;border-radius:9px;background:linear-gradient(115deg,#f5f7fa,#eceff3,#f8f9fb);display:flex;align-items:center;justify-content:center;overflow:hidden;color:#7d8490;font-size:10px;letter-spacing:.34em;text-transform:uppercase}
.portrait-ad a,.portrait-ad picture{width:100%;height:100%;display:block}
.portrait-ad img{width:100%;height:100%;max-height:150px;object-fit:cover}
.portrait-ad span{padding-left:.34em}
.portrait-empty{grid-column:1/-1;min-height:210px;display:grid;place-items:center;text-align:center;background:#fff;border:1px dashed #cdd4dd;border-radius:12px;color:var(--muted);padding:24px}
.portrait-sentinel{height:50px;display:flex;align-items:center;justify-content:center;gap:7px}
.portrait-sentinel span{width:7px;height:7px;border-radius:50%;background:#aab3bf;animation:portraitPulse 1s infinite alternate}
.portrait-sentinel span:nth-child(2){animation-delay:.2s}.portrait-sentinel span:nth-child(3){animation-delay:.4s}
.portrait-sentinel.is-complete{display:none}
@keyframes portraitPulse{to{opacity:.25;transform:translateY(-3px)}}

.portrait-footer{background:var(--navy);color:#fff;min-height:110px;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:24px max(24px,calc((100vw - 1312px)/2))}
.portrait-footer img{width:210px;height:54px;object-fit:contain;filter:brightness(0) invert(1)}
.portrait-footer nav{display:flex;gap:18px;flex-wrap:wrap;justify-content:flex-end}
.portrait-footer a{font-size:11px;text-decoration:none;font-weight:700}

@media(max-width:1000px){
  .portrait-header__main{grid-template-columns:220px minmax(220px,1fr);height:auto;gap:10px 18px;padding:10px 18px}
  .portrait-brand img{width:205px;height:50px}
  .portrait-launch{grid-column:1/-1;justify-content:center}
  .portrait-grid{gap:18px}
}
@media(max-width:720px){
  .portrait-header{position:relative}
  .portrait-header__main{grid-template-columns:1fr auto;padding:8px 10px}
  .portrait-brand img{width:185px;height:46px}
  .portrait-search{grid-column:1/-1;grid-row:2;height:42px}
  .portrait-launch{grid-column:1/-1;grid-row:3;display:grid;grid-template-columns:1fr 1fr;width:100%}
  .portrait-launch a{min-height:40px;padding:0 8px;font-size:10px;text-align:center}
  .portrait-menu{padding-left:10px;height:43px}
  .portrait-main{width:min(100% - 14px,620px);padding-top:18px}
  .portrait-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 8px}
  .portrait-section__head h2{font-size:20px}
  .portrait-section__head a{font-size:10px}
  .swipe-preview{aspect-ratio:9 / 16;border-radius:3px}
  .preview-masthead{min-height:29px;padding:3px 5px}
  .preview-masthead strong{font-size:13px}
  .preview-copy{padding:7% 6% 5%}
  .preview-copy h3{font-size:12px;margin-bottom:5%;line-height:1.28}
  .preview-copy p{font-size:6.8px;line-height:1.42;-webkit-line-clamp:7}
  .swipe-preview.is-ml .preview-copy h3{font-size:12px;line-height:1.4}
  .swipe-preview.is-ml .preview-copy p{font-size:6.5px;line-height:1.5}
  .swipe-preview.is-text .preview-copy h3{font-size:15px}
  .swipe-preview.is-text .preview-copy p{font-size:7px}
  .preview-play{width:38px;height:38px;font-size:16px}
  .portrait-ad{min-height:70px}
  .portrait-feed{gap:22px}
  .portrait-footer{align-items:flex-start;flex-direction:column;padding:24px 14px 90px}
  .portrait-footer nav{justify-content:flex-start}
}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}

/* v2.6.0 full-screen homepage card viewer and rich ad creatives */
.portrait-ad iframe,.portrait-ad video{width:100%;height:100%;min-height:92px;max-height:160px;display:block;border:0;object-fit:cover;background:#fff}
.portrait-popup-open{overflow:hidden;overscroll-behavior:none}
.portrait-card-popup{position:fixed;z-index:10000;inset:0;display:grid;place-items:stretch;background:rgba(0,0,0,.82);opacity:0;transition:opacity .2s ease;padding:max(10px,env(safe-area-inset-top)) max(10px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(10px,env(safe-area-inset-left));backdrop-filter:blur(6px)}
.portrait-card-popup[hidden]{display:none}
.portrait-card-popup.is-open{opacity:1}
.portrait-card-popup__frame{width:min(100%,1120px);height:100%;justify-self:center;border:0;border-radius:16px;background:#030712;box-shadow:0 24px 90px rgba(0,0,0,.65)}
.portrait-card-popup__close{position:fixed;z-index:3;top:calc(12px + env(safe-area-inset-top));right:calc(12px + env(safe-area-inset-right));width:46px;height:46px;border:1px solid rgba(255,255,255,.4);border-radius:50%;display:grid;place-items:center;background:rgba(2,8,20,.9);color:#fff;font:400 34px/1 var(--ui);cursor:pointer;box-shadow:0 8px 30px rgba(0,0,0,.45)}
.portrait-card-popup__close:focus-visible{outline:3px solid #fff;outline-offset:2px}
.portrait-card-popup__loading{position:fixed;z-index:2;left:50%;top:50%;translate:-50% -50%;padding:10px 14px;border-radius:999px;background:rgba(0,0,0,.72);color:#fff;font-size:13px;font-weight:800;pointer-events:none}
@media(max-width:720px){
  .portrait-ad iframe,.portrait-ad video{min-height:70px;max-height:130px}
  .portrait-card-popup{padding:0;background:#030712;backdrop-filter:none}
  .portrait-card-popup__frame{width:100%;height:100%;border-radius:0}
  .portrait-card-popup__close{top:calc(8px + env(safe-area-inset-top));right:calc(8px + env(safe-area-inset-right));width:42px;height:42px;font-size:31px}
}

/* Multi News homepage previews use a different colour for every continuation card. */
.swipe-preview.multi-tone-1 .swipe-preview__page{background:linear-gradient(155deg,#174a82,#091d39)}.swipe-preview.multi-tone-2 .swipe-preview__page{background:linear-gradient(155deg,#633b8d,#281641)}.swipe-preview.multi-tone-3 .swipe-preview__page{background:linear-gradient(155deg,#1a756e,#0a3232)}.swipe-preview.multi-tone-4 .swipe-preview__page{background:linear-gradient(155deg,#a45524,#421d0d)}.swipe-preview.multi-tone-5 .swipe-preview__page{background:linear-gradient(155deg,#96336e,#40102c)}


/* v2.6.1 native full-screen homepage popup: avoids preview /news permission errors. */
.portrait-card-popup__content{width:min(100%,1120px);height:100%;justify-self:center;overflow:auto;border-radius:16px;background:#030712;box-shadow:0 24px 90px rgba(0,0,0,.65);color:#fff}
.portrait-card-popup__content.is-full-media{overflow:hidden;background:#000}
.portrait-popup-media{position:relative;width:100%;min-height:320px;background:#000;display:grid;place-items:center;overflow:hidden}
.portrait-card-popup__content.is-full-media>.portrait-popup-media{height:100%;min-height:100%}
.portrait-popup-media img,.portrait-popup-media video,.portrait-popup-media iframe{width:100%;height:100%;max-width:none;max-height:none;display:block;border:0;background:#000;object-fit:contain}
.portrait-popup-media__fallback{position:absolute;z-index:4;left:50%;bottom:14px;transform:translateX(-50%);max-width:calc(100% - 28px);padding:9px 14px;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(2,8,20,.84);color:#fff;text-decoration:none;font:800 12px/1.2 var(--ui);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.portrait-popup-story{min-height:100%;display:flex;flex-direction:column;background:linear-gradient(180deg,#071327,#030712)}
.portrait-popup-story>.portrait-popup-media{height:min(48vh,520px);flex:0 0 auto}
.portrait-popup-copy{padding:clamp(24px,5vw,54px);display:grid;gap:16px}
.portrait-popup-copy h1{margin:0;font:900 clamp(26px,4.5vw,48px)/1.28 var(--display);letter-spacing:-.02em}
.portrait-popup-copy p{margin:0;white-space:pre-line;font:500 clamp(17px,2.3vw,23px)/1.72 var(--ui);color:#e7eefc}
.portrait-popup-part{justify-self:start;padding:7px 11px;border:1px solid rgba(255,255,255,.24);border-radius:999px;background:rgba(255,255,255,.08);font-size:11px;font-weight:900}
.portrait-popup-story.multi-tone-1{background:linear-gradient(155deg,#123d70,#071a34 72%)}
.portrait-popup-story.multi-tone-2{background:linear-gradient(155deg,#5c3584,#24143e 72%)}
.portrait-popup-story.multi-tone-3{background:linear-gradient(155deg,#176f69,#082f31 72%)}
.portrait-popup-story.multi-tone-4{background:linear-gradient(155deg,#9a4d20,#3a1b0d 72%)}
.portrait-popup-story.multi-tone-5{background:linear-gradient(155deg,#8d2f66,#3b1029 72%)}
.portrait-popup-dual{height:min(62vh,700px);display:grid;grid-template-columns:1fr 1fr;gap:1px;background:#1f2937}
.portrait-popup-dual .portrait-popup-media{height:100%;min-height:0}
@media(max-width:700px){.portrait-card-popup__content{width:100%;height:100%;border-radius:0}.portrait-popup-story>.portrait-popup-media{height:40vh}.portrait-popup-copy{padding:24px 20px 38px}.portrait-popup-copy h1{font-size:25px}.portrait-popup-copy p{font-size:17px}.portrait-popup-dual{grid-template-columns:1fr;grid-template-rows:1fr 1fr;height:100%}}


/* v2.7.0 full-viewport popup media and minimum-view timer. */
.portrait-card-popup{padding:0!important;background:#000!important;backdrop-filter:none!important}
.portrait-card-popup__content{width:100%!important;max-width:none!important;height:100dvh!important;border-radius:0!important;box-shadow:none!important}
.portrait-card-popup__content.is-full-media,.portrait-card-popup__content.is-full-media>.portrait-popup-media{width:100%!important;height:100dvh!important;min-height:100dvh!important;overflow:hidden!important}
.portrait-card-popup__content.is-full-media .portrait-popup-media>img,.portrait-card-popup__content.is-full-media .portrait-popup-media>video,.portrait-card-popup__content.is-full-media .portrait-popup-media>iframe{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#000}
.portrait-popup-timer{position:fixed;z-index:10004;top:calc(18px + env(safe-area-inset-top));right:calc(70px + env(safe-area-inset-right));min-width:40px;height:25px;padding:0 8px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.35);border-radius:999px;background:rgba(0,0,0,.7);color:#fff;font:900 10px/1 var(--ui);backdrop-filter:blur(6px)}
.portrait-card-popup__close:disabled{opacity:.45;cursor:not-allowed}
.portrait-popup-more{justify-self:start;display:inline-flex;align-items:center;min-height:42px;padding:9px 15px;border:1px solid rgba(255,255,255,.28);border-radius:999px;background:rgba(255,255,255,.1);color:#fff;text-decoration:none;font-weight:900}

/* v2.7.0 full-viewport media popup and compact minimum-view timer. */
.portrait-card-popup__content.is-full-media{position:absolute!important;inset:0!important;width:100vw!important;height:100dvh!important;max-width:none!important;max-height:none!important;padding:0!important;margin:0!important;overflow:hidden!important;background:#000!important}
.portrait-card-popup__content.is-full-media .portrait-popup-media,
.portrait-card-popup__content.is-full-media iframe,
.portrait-card-popup__content.is-full-media video,
.portrait-card-popup__content.is-full-media img{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;border:0!important;object-fit:contain!important;background:#000!important}
.portrait-popup-timer{position:fixed!important;z-index:100004!important;top:max(10px,env(safe-area-inset-top))!important;right:58px!important;min-width:38px;height:24px;padding:0 7px;display:grid;place-items:center;border:1px solid rgba(255,255,255,.34);border-radius:999px;background:rgba(0,0,0,.7);color:#fff;font:900 10px/1 system-ui;letter-spacing:.03em;backdrop-filter:blur(6px)}
.portrait-popup-timer[hidden]{display:none!important}.portrait-card-popup__close:disabled{opacity:.42;cursor:not-allowed}

/* v2.7.1 — full-height homepage media, readable popup text and fitted 3:1 footer ads. */
.swipe-preview.is-full .swipe-preview__page,.swipe-preview.is-full .preview-body,.swipe-preview.is-full .preview-media{position:absolute;inset:0;width:100%;height:100%;min-height:100%;display:block;background:#07182e}
.swipe-preview.is-full .preview-media img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;background:#07182e}
.swipe-preview.is-full .preview-media.is-contain img{object-fit:contain;background:#000}
.preview-media.is-placeholder{display:grid!important;place-items:center;background:radial-gradient(circle at 50% 35%,#136a72,#063f42 55%,#032d31)}
.preview-media-brand{font-family:Georgia,"Times New Roman",serif;font-size:clamp(13px,1.4vw,22px);font-weight:900;letter-spacing:.06em;color:rgba(255,255,255,.88)}
.preview-attached-ad{display:block;background:#000!important}
.preview-attached-ad>img,.preview-attached-ad>video,.preview-attached-ad>iframe,.preview-attached-ad>.preview-ad-link,.preview-attached-ad>.preview-ad-link>img,.preview-attached-ad>.preview-ad-link>video,.preview-attached-ad>.preview-ad-link>iframe{position:absolute;inset:0;width:100%;height:100%;max-width:none;max-height:none;border:0;object-fit:contain;background:#000}
.preview-attached-ad small{position:absolute;z-index:4;left:4px;top:3px;padding:2px 4px;border-radius:3px;background:rgba(0,0,0,.66);color:#fff;font:800 5px/1 var(--ui);letter-spacing:.08em}
.portrait-popup-story{height:100%;min-height:0;overflow:hidden}
.portrait-popup-story.has-attached-ad{display:grid;grid-template-rows:minmax(0,1fr) var(--popup-ad-size,15%)}
.portrait-popup-editorial{min-height:0;display:flex;flex-direction:column;overflow:hidden}
.portrait-popup-editorial>.portrait-popup-media{flex:0 0 min(43vh,460px)}
.portrait-popup-story.has-attached-ad .portrait-popup-copy{min-height:0;overflow:hidden;padding:clamp(18px,3.4vw,38px)}
.portrait-popup-story.has-attached-ad .portrait-popup-copy h1{font-size:clamp(22px,3.7vw,39px);line-height:1.22}
.portrait-popup-story.has-attached-ad .portrait-popup-copy p{font-size:clamp(15px,1.8vw,20px);line-height:1.48}
.portrait-popup-attached-ad{position:relative;display:block;min-height:0;overflow:hidden;border-top:1px solid rgba(255,255,255,.2);background:#000;color:#fff;text-decoration:none}
.portrait-popup-attached-ad .portrait-popup-media{position:absolute;inset:0;width:100%;height:100%;min-height:0}
.portrait-popup-attached-ad img,.portrait-popup-attached-ad video,.portrait-popup-attached-ad iframe{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;background:#000!important;border:0!important}
.portrait-popup-attached-ad>span{position:absolute;z-index:5;left:8px;top:6px;padding:4px 7px;border-radius:5px;background:rgba(0,0,0,.7);font:800 8px/1 var(--ui);letter-spacing:.08em}
@media(max-width:700px){
  .portrait-popup-editorial>.portrait-popup-media{flex-basis:34vh}
  .portrait-popup-story.has-attached-ad .portrait-popup-copy{padding:14px 15px 18px;gap:9px}
  .portrait-popup-story.has-attached-ad .portrait-popup-copy h1{font-size:20px;line-height:1.2}
  .portrait-popup-story.has-attached-ad .portrait-popup-copy p{font-size:14px;line-height:1.34}
  .swipe-preview.is-full .preview-media img{object-fit:cover}
  .swipe-preview.is-full .preview-media.is-contain img{object-fit:contain}
}

/* v2.7.1 Multi News homepage card: use the full portrait page for readable text, not a half-media template. */
.swipe-preview[class*="multi-tone-"] .preview-body{height:100%;display:block;background:transparent}
.swipe-preview[class*="multi-tone-"] .preview-copy{height:100%;padding:10% 8% 8%;display:flex;flex-direction:column;gap:7%;background:transparent;color:#fff}
.swipe-preview[class*="multi-tone-"] .preview-copy h3{margin:0;padding:0 0 7%;border-bottom:1px solid rgba(255,255,255,.55);font-size:clamp(17px,1.75vw,25px);line-height:1.26;color:#fff}
.swipe-preview[class*="multi-tone-"] .preview-copy p{margin:0;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:18;overflow:hidden;column-count:1!important;column-rule:0!important;font-family:var(--ui);font-size:clamp(9px,.86vw,13px);line-height:1.55;color:#fff}
.swipe-preview[class*="multi-tone-"] .preview-page-number{top:13.5%;color:#fff;background:rgba(0,0,0,.24);padding:4px 6px;border-radius:999px}
@media(max-width:700px){
  .swipe-preview[class*="multi-tone-"] .preview-copy{padding:9% 7% 7%;gap:5%}
  .swipe-preview[class*="multi-tone-"] .preview-copy h3{font-size:15px;line-height:1.28}
  .swipe-preview[class*="multi-tone-"] .preview-copy p{font-size:8px;line-height:1.48;-webkit-line-clamp:17}
}


/* v2.7.2: true 9:16 previews, autoplay media, top ads, centered 9:16 popup and reachable footer. */
.swipe-preview{aspect-ratio:9/16!important}
.preview-media video,.preview-media iframe{width:100%;height:100%;display:block;border:0;object-fit:contain;background:#000;pointer-events:none}
.preview-media.is-live-media{background:#000}
.preview-media.is-live-media img,.preview-media.is-live-media video{object-fit:contain!important}
.preview-attached-ad{position:relative!important;inset:auto!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important;width:100%!important;height:auto!important;min-height:0;grid-row:1;border-top:0!important;border-bottom:1px solid #fff!important;overflow:hidden;background:#000!important}
.swipe-preview.has-attached-ad .swipe-preview__page{display:grid!important;grid-template-rows:15% auto minmax(0,1fr)!important}
.swipe-preview.has-attached-ad.is-ad-25 .swipe-preview__page{grid-template-rows:25% auto minmax(0,1fr)!important}
.swipe-preview.has-attached-ad .preview-masthead{grid-row:2}
.swipe-preview.has-attached-ad .preview-body{grid-row:3;min-height:0}
.swipe-preview.has-attached-ad .preview-copy,.swipe-preview.has-attached-ad.is-ad-25 .preview-copy{padding-bottom:6%!important}
.swipe-preview.is-full.has-attached-ad .swipe-preview__page{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;display:grid!important;grid-template-rows:15% minmax(0,1fr)!important}
.swipe-preview.is-full.has-attached-ad.is-ad-25 .swipe-preview__page{grid-template-rows:25% minmax(0,1fr)!important}
.swipe-preview.is-full.has-attached-ad .preview-body,.swipe-preview.is-full.has-attached-ad .preview-media{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important}
.preview-contd{display:block;margin-top:auto;text-align:right;font:900 9px/1.2 var(--ui);color:#184a8b}
.swipe-preview[class*="multi-tone-"] .preview-media{flex:0 0 32%;border-bottom:1px solid rgba(255,255,255,.35)}
.swipe-preview[class*="multi-tone-"] .preview-copy{gap:5%!important;padding-top:7%!important}
.portrait-card-popup__content.is-full-media{display:grid!important;place-items:center!important;background:#000!important}
.portrait-card-popup__content.is-full-media>.portrait-popup-media{position:relative!important;inset:auto!important;width:min(100vw,56.25dvh)!important;height:100dvh!important;min-height:100dvh!important;max-width:100vw!important;aspect-ratio:9/16!important;margin:auto!important;overflow:hidden!important;background:#000!important}
.portrait-card-popup__content.is-full-media>.portrait-popup-media>img,.portrait-card-popup__content.is-full-media>.portrait-popup-media>video,.portrait-card-popup__content.is-full-media>.portrait-popup-media>iframe{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;background:#000!important}
.portrait-popup-story.has-attached-ad{grid-template-rows:var(--popup-ad-size,15%) minmax(0,1fr)!important}
.portrait-popup-attached-ad{order:-1;border-top:0!important;border-bottom:1px solid rgba(255,255,255,.2)!important}
.portrait-popup-contd{justify-self:end;margin-top:auto;color:#b7dcff;font-weight:900}
.portrait-load-more{display:block;margin:0 auto 28px;padding:12px 22px;border:1px solid var(--navy);border-radius:999px;background:#fff;color:var(--navy);font-weight:900;cursor:pointer}
.portrait-load-more:hover{background:var(--navy);color:#fff}
.portrait-footer{margin-top:0}
@media(max-width:700px){
  .portrait-card-popup__content.is-full-media>.portrait-popup-media{width:100vw!important;height:100dvh!important}
  .preview-contd{font-size:8px}
}

.portrait-footer>div{display:grid;gap:6px}.portrait-footer small{font-size:10px;color:rgba(255,255,255,.72)}
/* Multi News first-page media must stack above readable text inside the 9:16 preview. */
.swipe-preview[class*="multi-tone-"] .preview-body{display:flex!important;flex-direction:column!important;min-height:0!important}
.swipe-preview[class*="multi-tone-"] .preview-body>.preview-media{width:100%!important;height:auto!important;min-height:0!important;flex:0 0 32%!important;position:relative!important;inset:auto!important}
.swipe-preview[class*="multi-tone-"] .preview-body>.preview-copy{width:100%!important;height:auto!important;min-height:0!important;flex:1 1 auto!important;overflow:hidden!important}

/* v2.7.4 — attached news ads are footer ads; live MP4/HTML fill the 9:16 card; homepage banners use contain. */
.swipe-preview.has-attached-ad .swipe-preview__page{display:grid!important;grid-template-rows:auto minmax(0,1fr) 15%!important}
.swipe-preview.has-attached-ad.is-ad-25 .swipe-preview__page{grid-template-rows:auto minmax(0,1fr) 25%!important}
.swipe-preview.has-attached-ad .preview-masthead{grid-row:1!important}
.swipe-preview.has-attached-ad .preview-body{grid-row:2!important;min-height:0!important}
.swipe-preview.has-attached-ad .preview-attached-ad{grid-row:3!important;position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important;border-top:1px solid #fff!important;border-bottom:0!important;background:#000!important;overflow:hidden!important}
.swipe-preview.has-attached-ad .preview-copy{padding-bottom:6%!important}
.swipe-preview.is-full.has-attached-ad .swipe-preview__page{position:relative!important;inset:auto!important;display:grid!important;grid-template-rows:minmax(0,1fr) 15%!important;width:100%!important;height:100%!important}
.swipe-preview.is-full.has-attached-ad.is-ad-25 .swipe-preview__page{grid-template-rows:minmax(0,1fr) 25%!important}
.swipe-preview.is-full.has-attached-ad .preview-body{grid-row:1!important;position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-height:0!important}
.swipe-preview.is-full.has-attached-ad .preview-attached-ad{grid-row:2!important}
.preview-attached-ad>img,.preview-attached-ad>video,.preview-attached-ad>iframe,.preview-attached-ad>.preview-ad-link,.preview-attached-ad>.preview-ad-link>img,.preview-attached-ad>.preview-ad-link>video,.preview-attached-ad>.preview-ad-link>iframe{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;background:#000!important;border:0!important}
.swipe-preview.is-full .preview-media video,.swipe-preview.is-full .preview-media iframe{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;display:block!important;object-fit:contain!important;background:#000!important;border:0!important}
.preview-media.is-live-media{min-height:0!important;overflow:hidden!important;background:#000!important}
.portrait-popup-story.has-attached-ad{display:grid!important;grid-template-rows:minmax(0,1fr) var(--popup-ad-size,15%)!important}
.portrait-popup-editorial{grid-row:1!important;order:1!important}
.portrait-popup-attached-ad{grid-row:2!important;order:2!important;border-top:1px solid rgba(255,255,255,.2)!important;border-bottom:0!important}
.portrait-ad{width:100%;height:clamp(92px,10vw,150px);min-height:0;background:#000;overflow:hidden}
.portrait-ad>a,.portrait-ad>picture,.portrait-ad>iframe,.portrait-ad>video,.portrait-ad>img{width:100%!important;height:100%!important;display:block!important;border:0!important}
.portrait-ad img,.portrait-ad video,.portrait-ad iframe{width:100%!important;height:100%!important;max-height:none!important;object-fit:contain!important;background:#000!important;border:0!important}
@media(max-width:700px){
  .portrait-ad{height:clamp(72px,24vw,110px)}
}

/* v2.7.4 full-media popup can also keep an attached advertisement in the footer. */
.portrait-card-popup__content.is-full-media>.is-full-media-story{position:relative!important;width:min(100vw,56.25dvh)!important;height:100dvh!important;min-height:100dvh!important;max-width:100vw!important;aspect-ratio:9/16!important;margin:auto!important;overflow:hidden!important;background:#000!important}
.is-full-media-story .full-media-editorial{position:relative!important;min-height:0!important;overflow:hidden!important;background:#000!important}
.is-full-media-story .full-media-editorial>.portrait-popup-media{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important}
@media(max-width:700px){.portrait-card-popup__content.is-full-media>.is-full-media-story{width:100vw!important;height:100dvh!important}}

/* v2.7.4 timed rotating attached ads on homepage cards and popup. */
.preview-attached-ad.is-rotating,.portrait-popup-attached-ad.is-rotating{position:relative!important;overflow:hidden!important;background:#000!important}
.preview-rotating-ad-slide,.portrait-popup-ad-slide{position:absolute!important;inset:0!important;display:none!important;width:100%!important;height:100%!important;background:#000!important;overflow:hidden!important}
.preview-rotating-ad-slide.is-active,.portrait-popup-ad-slide.is-active{display:block!important}
.preview-rotating-ad-slide>img,.preview-rotating-ad-slide>video,.preview-rotating-ad-slide>iframe,.preview-rotating-ad-slide>.preview-ad-link,.preview-rotating-ad-slide>.preview-ad-link>*{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:contain!important;border:0!important;background:#000!important}
.preview-rotating-ad-slide small,.portrait-popup-ad-slide>span{position:absolute!important;z-index:6!important;left:5px!important;top:4px!important;padding:3px 5px!important;background:rgba(0,0,0,.72)!important;color:#fff!important;border-radius:4px!important;font:800 7px/1 var(--ui)!important}
.portrait-popup-ad-slide .portrait-popup-media{position:absolute!important;inset:0!important;width:100%!important;height:100%!important}


/* v2.7.5 emergency launch patch — immediate close and strict 9:16 popup containment. */
.portrait-card-popup{display:grid!important;place-items:center!important;padding:0!important;background:#000!important;overflow:hidden!important}
.portrait-card-popup__close{z-index:100050!important;pointer-events:auto!important;touch-action:manipulation!important;opacity:1!important}
.portrait-card-popup__content,.portrait-card-popup__content.is-full-media{position:relative!important;inset:auto!important;justify-self:auto!important;width:min(100vw,56.25dvh)!important;height:min(100dvh,177.7778vw)!important;min-width:0!important;min-height:0!important;max-width:100vw!important;max-height:100dvh!important;aspect-ratio:9/16!important;margin:auto!important;border-radius:0!important;overflow:hidden!important;background:#000!important;box-shadow:none!important}
.portrait-card-popup__content>.portrait-popup-story,.portrait-card-popup__content.is-full-media>.portrait-popup-media,.portrait-card-popup__content.is-full-media>.is-full-media-story{position:relative!important;inset:auto!important;width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;max-width:100%!important;max-height:100%!important;aspect-ratio:auto!important;margin:0!important;overflow:hidden!important}
.portrait-popup-story{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important}
.portrait-popup-story.has-attached-ad{display:grid!important;grid-template-rows:minmax(0,1fr) var(--popup-ad-size,15%)!important}
.portrait-popup-editorial{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
.portrait-popup-editorial.has-media{display:grid!important;grid-template-rows:minmax(0,42%) minmax(0,58%)!important}
.portrait-popup-editorial.has-dual-media{grid-template-rows:minmax(0,48%) minmax(0,52%)!important}
.portrait-popup-editorial>.portrait-popup-media,.portrait-popup-story>.portrait-popup-media,.portrait-popup-dual{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;flex:none!important;overflow:hidden!important}
.portrait-popup-media{position:relative!important;isolation:isolate!important;background:#07101e!important}
.portrait-popup-media__backdrop{position:absolute!important;z-index:0!important;inset:-8%!important;width:116%!important;height:116%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;filter:blur(22px) brightness(.48) saturate(1.08)!important;transform:scale(1.04)!important;pointer-events:none!important}
.portrait-popup-media>img:not(.portrait-popup-media__backdrop),.portrait-popup-media>video,.portrait-popup-media>iframe,.portrait-popup-media>.portrait-popup-media__fallback{position:absolute!important;z-index:1!important;inset:0!important;width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;background:transparent!important;border:0!important}
.portrait-popup-media>.portrait-popup-media__fallback{z-index:4!important;inset:auto auto 12px 50%!important;width:auto!important;height:auto!important;max-width:calc(100% - 24px)!important}
.portrait-popup-copy{height:100%!important;min-height:0!important;overflow:hidden!important;align-content:start!important;padding:clamp(15px,3dvh,30px) clamp(14px,2.4dvh,26px)!important;gap:clamp(7px,1.4dvh,14px)!important}
.portrait-popup-copy h1{font-size:clamp(18px,3.1dvh,32px)!important;line-height:1.22!important}
.portrait-popup-copy p{font-size:clamp(12px,1.8dvh,18px)!important;line-height:1.42!important;overflow-wrap:anywhere!important}
.portrait-popup-story.is-copy-medium .portrait-popup-copy h1{font-size:clamp(17px,2.7dvh,28px)!important}
.portrait-popup-story.is-copy-medium .portrait-popup-copy p{font-size:clamp(11.5px,1.65dvh,16px)!important;line-height:1.36!important}
.portrait-popup-story.is-copy-dense .portrait-popup-copy{padding:14px 15px!important;gap:7px!important}
.portrait-popup-story.is-copy-dense .portrait-popup-copy h1{font-size:clamp(16px,2.35dvh,24px)!important;line-height:1.18!important}
.portrait-popup-story.is-copy-dense .portrait-popup-copy p{font-size:clamp(11px,1.45dvh,14px)!important;line-height:1.3!important}
.portrait-popup-story.is-copy-ultra .portrait-popup-copy{padding:11px 12px!important;gap:5px!important}
.portrait-popup-story.is-copy-ultra .portrait-popup-copy h1{font-size:clamp(14px,2dvh,20px)!important;line-height:1.16!important}
.portrait-popup-story.is-copy-ultra .portrait-popup-copy p{font-size:clamp(10px,1.25dvh,12.5px)!important;line-height:1.22!important}
.portrait-popup-copy.is-emergency-fit{padding:8px 10px!important;gap:3px!important}
.portrait-popup-attached-ad,.portrait-popup-ad-slide,.preview-attached-ad,.preview-rotating-ad-slide{box-sizing:border-box!important;max-width:100%!important;overflow:hidden!important;padding:0!important}
.portrait-popup-attached-ad img,.portrait-popup-attached-ad video,.portrait-popup-attached-ad iframe,.preview-attached-ad img,.preview-attached-ad video,.preview-attached-ad iframe{width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;object-fit:contain!important;border:0!important;background:#000!important}
@media(max-width:700px){.portrait-card-popup__content,.portrait-card-popup__content.is-full-media{width:min(100vw,56.25dvh)!important;height:min(100dvh,177.7778vw)!important}.portrait-popup-editorial.has-media{grid-template-rows:minmax(0,40%) minmax(0,60%)!important}}
.portrait-card-popup[hidden]{display:none!important}


/* v2.7.7a launch-blocking desktop preview correction.
   Text-only news uses the full page without a fake image; long copy is pre-split in JS. */
.preview-copy p{line-height:1.20!important}
.swipe-preview.is-text .preview-body{height:100%!important;min-height:0!important;display:block!important}
.swipe-preview.is-text .preview-copy{height:100%!important;min-height:0!important;display:flex!important;flex-direction:column!important;justify-content:flex-start!important;overflow:hidden!important}
.swipe-preview.is-text:not([class*="multi-tone-"]) .preview-copy{background:linear-gradient(#fffefa,#fbf7ed)!important}
.swipe-preview.is-text .preview-copy h3,
.swipe-preview[class*="multi-tone-"] .preview-copy h3{font-weight:800!important}
.swipe-preview.is-text .preview-copy p,
.swipe-preview[class*="multi-tone-"] .preview-copy p{column-count:1!important;column-gap:0!important;column-rule:0!important;display:block!important;-webkit-line-clamp:unset!important;overflow:hidden!important}
.preview-contd{margin-top:auto!important;padding-top:4px!important}

@media(min-width:721px){
  .preview-copy{padding:6% 6% 5%!important;gap:5px!important}
  .preview-copy h3,
  .swipe-preview.is-text .preview-copy h3,
  .swipe-preview[class*="multi-tone-"] .preview-copy h3{font-size:15px!important;line-height:1.15!important;margin:0 0 5px!important;padding:0 0 6px!important}
  .preview-copy p,
  .swipe-preview.is-en .preview-copy p,
  .swipe-preview[class*="multi-tone-"].is-en .preview-copy p{font-size:14px!important;line-height:1.20!important}
  .swipe-preview.is-ml .preview-copy p,
  .swipe-preview[class*="multi-tone-"].is-ml .preview-copy p{font-size:15px!important;line-height:1.20!important}
  .swipe-preview.is-text .preview-copy{padding:7% 7% 6%!important}
  .swipe-preview[class*="multi-tone-"] .preview-copy{padding:6% 7% 5%!important;gap:5px!important}
}

/* v2.7.8 card footer ratio */
.swipe-preview.has-attached-ad.is-ad-20 .swipe-preview__page{grid-template-rows:auto minmax(0,1fr) 20%!important}
.swipe-preview.is-full.has-attached-ad.is-ad-20 .swipe-preview__page{grid-template-rows:minmax(0,1fr) 20%!important}
.swipe-preview.has-attached-ad.is-ad-20 .preview-copy{padding-bottom:6%!important}
.portrait-popup-story.has-attached-ad.is-ad-20{grid-template-rows:minmax(0,1fr) 20%!important}

/* ================================================================
   Nerpathram v2.7.8 final launch card contract
   35% media / 45% copy / 20% optional footer advertisement
   80% text or mockup / 20% optional footer advertisement
   ================================================================ */
.preview-attached-ad.is-20,.portrait-popup-attached-ad.is-20{height:20%!important;min-height:20%!important;max-height:20%!important;background:#02050a!important}
.swipe-preview.has-attached-ad.is-ad-20 .swipe-preview__page{grid-template-rows:auto minmax(0,1fr) 20%!important}
.swipe-preview.is-full .swipe-preview__page{grid-template-rows:minmax(0,1fr)!important}
.swipe-preview.is-full .preview-attached-ad{display:none!important}
.swipe-preview.has-attached-ad:not(.is-text):not(.is-full):not(.is-dual-media) .preview-body{display:grid!important;grid-template-rows:minmax(0,43.75%) minmax(0,56.25%)!important;height:100%!important;min-height:0!important}
.swipe-preview.has-attached-ad:not(.is-text):not(.is-full):not(.is-dual-media) .preview-media{height:100%!important;min-height:0!important;max-height:none!important}
.swipe-preview.has-attached-ad:not(.is-text):not(.is-full):not(.is-dual-media) .preview-copy{height:100%!important;min-height:0!important;overflow:hidden!important}

.preview-copy h3{font-size:15px!important;line-height:1.15!important;font-weight:800!important}
.swipe-preview.is-ml .preview-copy p{font-size:15px!important;line-height:1.20!important;text-align:start!important;word-spacing:normal!important}
.swipe-preview.is-en .preview-copy p{font-size:14px!important;line-height:1.20!important;text-align:start!important;word-spacing:normal!important;font-family:Inter,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important}
.swipe-preview.is-text:not(.is-mockup) .preview-copy{width:calc(100% - 22px)!important;height:auto!important;max-height:calc(100% - 22px)!important;margin:auto 11px!important;padding:15px 16px!important;border:1px solid rgba(255,255,255,.18)!important;border-left:3px solid rgba(255,255,255,.46)!important;border-radius:14px!important;background:rgba(2,8,23,.18)!important;box-shadow:0 16px 36px rgba(0,0,0,.12)!important;color:#fff!important}
.swipe-preview.is-text:not(.is-mockup) .preview-copy h3,.swipe-preview.is-text:not(.is-mockup) .preview-copy p{color:#fff!important}
.swipe-preview.is-text:not(.is-mockup) .preview-body{display:flex!important;align-items:center!important;background:radial-gradient(circle at 16% 0,rgba(59,130,246,.20),transparent 42%),linear-gradient(155deg,#102f56,#07182e 76%)!important}

/* Optional text mockup, kept entirely inside the upper editorial area. */
.preview-mockup{position:relative!important;width:100%!important;height:100%!important;min-height:0!important;background-image:linear-gradient(rgba(2,8,23,var(--mockup-overlay)),rgba(2,8,23,var(--mockup-overlay))),var(--mockup-image)!important;background-size:cover!important;background-position:center!important;overflow:hidden!important}
.preview-mockup-copy{position:absolute!important;left:var(--mockup-x)!important;top:var(--mockup-y)!important;width:var(--mockup-w)!important;height:var(--mockup-h)!important;padding:12px 13px!important;border:1px solid rgba(255,255,255,.20)!important;border-radius:13px!important;background:rgba(2,8,23,.24)!important;color:var(--mockup-color)!important;display:flex!important;flex-direction:column!important;overflow:hidden!important;box-shadow:0 18px 40px rgba(0,0,0,.20)!important;backdrop-filter:blur(3px)!important}
.preview-mockup-copy.center,.preview-mockup-copy.balanced{justify-content:center!important}.preview-mockup-copy.top{justify-content:flex-start!important}
.preview-mockup-copy h3,.preview-mockup-copy p,.preview-mockup-copy b{color:var(--mockup-color)!important}

.portrait-popup-story.has-attached-ad.is-ad-20{grid-template-rows:minmax(0,80%) minmax(0,20%)!important}
.portrait-popup-editorial.has-media{grid-template-rows:minmax(0,43.75%) minmax(0,56.25%)!important}
.portrait-popup-copy{padding:15px 16px!important;gap:6px!important;overflow:hidden!important}
.portrait-popup-copy h1{font-size:15px!important;line-height:1.15!important;font-weight:800!important}
.portrait-popup-copy p{font-size:14px!important;line-height:1.20!important;text-align:start!important;word-spacing:normal!important;overflow-wrap:anywhere!important}
.portrait-popup-story.is-ml .portrait-popup-copy p{font-size:15px!important}.portrait-popup-story.is-en .portrait-popup-copy p{font-size:14px!important;font-family:Inter,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif!important}
.portrait-popup-editorial.has-mockup{position:relative!important;background-image:linear-gradient(rgba(2,8,23,var(--mockup-overlay)),rgba(2,8,23,var(--mockup-overlay))),var(--mockup-image)!important;background-size:cover!important;background-position:center!important;overflow:hidden!important}
.portrait-popup-editorial.has-mockup .portrait-popup-copy{position:absolute!important;left:var(--mockup-x)!important;top:var(--mockup-y)!important;width:var(--mockup-w)!important;height:var(--mockup-h)!important;padding:12px 13px!important;border:1px solid rgba(255,255,255,.20)!important;border-radius:13px!important;background:rgba(2,8,23,.25)!important;color:var(--mockup-color)!important;overflow:hidden!important;box-shadow:0 18px 40px rgba(0,0,0,.2)!important;backdrop-filter:blur(3px)!important}
.portrait-popup-editorial.has-mockup .portrait-popup-copy h1,.portrait-popup-editorial.has-mockup .portrait-popup-copy p{color:var(--mockup-color)!important}
.portrait-popup-editorial.has-mockup .portrait-popup-copy.center,.portrait-popup-editorial.has-mockup .portrait-popup-copy.balanced{justify-content:center!important}

/* v2.7.8 mockup templates are full 9:16 base artworks whose lower 20% is already blank.
   Keep the artwork full-card and overlay an actual ad only when attached. */
.swipe-preview.is-mockup .swipe-preview__page{position:relative!important;display:block!important;overflow:hidden!important}
.swipe-preview.is-mockup .preview-mockup{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:100%!important;background-size:cover!important;background-position:center!important}
.swipe-preview.is-mockup .preview-attached-ad{position:absolute!important;z-index:8!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:20%!important;min-height:20%!important;max-height:20%!important;border:0!important}
.preview-mockup-logo{position:absolute!important;z-index:4!important;left:var(--mockup-logo-x)!important;top:var(--mockup-logo-y)!important;width:var(--mockup-logo-w)!important;height:auto!important;max-height:12%!important;object-fit:contain!important;filter:drop-shadow(0 3px 8px rgba(0,0,0,.38))}
.portrait-popup-story.is-mockup-card{position:relative!important;display:block!important;overflow:hidden!important;background:#080b12!important}
.portrait-popup-story.is-mockup-card .portrait-popup-editorial.has-mockup{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;max-height:100%!important;background-size:cover!important;background-position:center!important}
.portrait-popup-story.is-mockup-card .portrait-popup-attached-ad{position:absolute!important;z-index:8!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;width:100%!important;height:20%!important;min-height:20%!important;max-height:20%!important}
.portrait-popup-mockup-logo{position:absolute!important;z-index:4!important;left:var(--mockup-logo-x)!important;top:var(--mockup-logo-y)!important;width:var(--mockup-logo-w)!important;height:auto!important;max-height:12%!important;object-fit:contain!important;filter:drop-shadow(0 4px 12px rgba(0,0,0,.4))}
.preview-mockup.is-dark-text .preview-mockup-copy{background:rgba(255,255,255,var(--mockup-overlay))!important;border-color:rgba(15,23,42,.18)!important}
.portrait-popup-editorial.has-mockup.is-dark-text .portrait-popup-copy{background:rgba(255,255,255,var(--mockup-overlay))!important;border-color:rgba(15,23,42,.18)!important}

/* ================================================================
   Nerpathram v2.7.8b launch-blocking hotfix
   - Media Above uses all editorial space without masthead gaps.
   - Mixed cards always open as complete story cards.
   - Attached ads fill their 20% footer and carry no visible label.
   ================================================================ */
.swipe-preview.is-media-above .preview-masthead{display:none!important}
.swipe-preview.is-media-above .swipe-preview__page{display:block!important;position:relative!important}
.swipe-preview.is-media-above.has-attached-ad .swipe-preview__page{display:grid!important;grid-template-rows:minmax(0,80%) minmax(0,20%)!important}
.swipe-preview.is-media-above.has-attached-ad .preview-body{grid-row:1!important}
.swipe-preview.is-media-above.has-attached-ad .preview-attached-ad{grid-row:2!important}
.swipe-preview.is-media-above .preview-body{position:relative!important;width:100%!important;height:100%!important;min-height:0!important;display:grid!important;grid-template-rows:minmax(0,43.75%) minmax(0,56.25%)!important;overflow:hidden!important}
.swipe-preview.is-media-above .preview-body::before{content:"";position:absolute;z-index:5;left:8px;top:7px;width:clamp(52px,20%,92px);height:clamp(18px,6%,34px);background:url("assets/nerpathram-logo-header-tight.webp") left center/contain no-repeat;filter:drop-shadow(0 2px 5px rgba(0,0,0,.4));pointer-events:none}
.swipe-preview.is-media-above .preview-media{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;border:0!important}
.swipe-preview.is-media-above .preview-copy{width:100%!important;height:100%!important;min-height:0!important;padding:10px 12px!important;gap:5px!important;overflow:hidden!important}
.swipe-preview.is-media-above .preview-copy h3{margin:0 0 4px!important;padding:0 0 5px!important}
.swipe-preview.is-media-above .preview-copy p{display:block!important;-webkit-line-clamp:unset!important;overflow:hidden!important}

.preview-rotating-ad-slide small,.portrait-popup-ad-slide>span,.preview-attached-ad small,.portrait-popup-attached-ad>span{display:none!important}
.preview-attached-ad,.preview-rotating-ad-slide,.preview-ad-link,.portrait-popup-attached-ad,.portrait-popup-ad-slide{background:#000!important}
.preview-rotating-ad-slide>img,.preview-rotating-ad-slide>video,.preview-rotating-ad-slide>.preview-ad-link>img,.preview-rotating-ad-slide>.preview-ad-link>video,
.portrait-popup-ad-slide>img,.portrait-popup-ad-slide>video{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;max-width:none!important;max-height:none!important;object-fit:cover!important;border:0!important;background:#000!important}
.preview-rotating-ad-slide>iframe,.preview-rotating-ad-slide>.preview-ad-link>iframe,.portrait-popup-ad-slide>iframe{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;border:0!important;background:#000!important}
.portrait-popup-attached-ad{width:100%!important;height:100%!important;min-width:0!important;min-height:0!important;overflow:hidden!important}

.portrait-popup-editorial.has-media{display:grid!important;grid-template-rows:minmax(0,43.75%) minmax(0,56.25%)!important;height:100%!important;min-height:0!important}
.portrait-popup-editorial.has-media>.portrait-popup-media{width:100%!important;height:100%!important;min-height:0!important;max-height:none!important}
.portrait-popup-editorial.has-media>.portrait-popup-copy{width:100%!important;height:100%!important;min-height:0!important;padding:10px 12px!important;gap:5px!important;overflow:hidden!important}
.portrait-popup-editorial.has-media>.portrait-popup-copy h1{margin:0 0 4px!important}
.portrait-popup-editorial.has-media>.portrait-popup-copy p{margin:0!important;overflow:hidden!important}
@media(max-width:700px){
  .swipe-preview.is-media-above .preview-copy{padding:10px 11px!important}
  .portrait-popup-editorial.has-media>.portrait-popup-copy{padding:10px 11px!important}
}
