/* Wamda 2.5: compact editorial viewer. Scoped to Shorts; Classic feed unaffected. */
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial{
 display:grid!important;grid-template-areas:"head" "media" "foot"!important;
 grid-template-columns:minmax(0,1fr)!important;
 grid-template-rows:max-content minmax(0,1fr) max-content!important;
 background:#09131c;overflow:hidden;isolation:isolate
}
/* Natural height, not 26%/26% forced tracks. Media uses all remaining space. */
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-head{
 grid-area:head;z-index:5;display:flex;align-items:flex-start;justify-content:flex-end;flex-direction:column;
 gap:6px;box-sizing:border-box;min-height:0!important;max-height:none;
 padding:calc(76px + env(safe-area-inset-top,0px)) clamp(13px,3.5vw,20px) 13px!important;
 background:linear-gradient(170deg,#071019 0%,#101f2b 95%);text-align:start
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-head h2{
 margin:0!important;font-size:clamp(18px,4.6vw,23px)!important;line-height:1.36!important;
 font-weight:800!important;letter-spacing:0;overflow:hidden;max-width:100%
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-head h2 a{
 overflow-wrap:anywhere;text-wrap:pretty;text-decoration:none!important
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-section{
 align-self:flex-start;font-size:11px;line-height:1.3;padding:4px 10px;
 border:1px solid #ffffff48;background:#d6e9f511;color:#f5faff
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-byline{
 font-size:11px;color:#cad9e0;line-height:1.4
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-media{
 grid-area:media;z-index:1;position:relative!important;inset:auto!important;
 min-width:0;min-height:0;height:100%;max-height:100%;margin:0;overflow:hidden;
 background:linear-gradient(120deg,#172733,#0b141d)
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-media::after{
 background:linear-gradient(180deg,transparent 72%,rgba(0,0,0,.19));z-index:2
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-media>.wtx-wamda-photo{
 width:100%!important;height:100%!important;max-width:100%!important;max-height:100%!important;
 object-fit:contain!important;object-position:center center!important;background:transparent!important
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial[data-wamda-media-fit="cover"] .wtx-wamda-media>.wtx-wamda-photo{object-fit:cover!important}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-backdrop-image{
 filter:blur(25px) brightness(.56) saturate(.72);opacity:.75;transform:scale(1.06)
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-foot{
 grid-area:foot;z-index:5;position:relative!important;min-width:0;min-height:0!important;
 display:flex;flex-direction:column;justify-content:center;align-items:flex-start;
 padding:13px clamp(14px,3.5vw,22px) calc(17px + env(safe-area-inset-bottom,0px))!important;
 gap:10px;overflow:visible;box-sizing:border-box;
 background:linear-gradient(180deg,#0b1c27,#07131b)
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-foot .wtx-wamda-brief{
 font-size:clamp(12px,3.2vw,14px)!important;line-height:1.65!important;
 color:#eef5f7!important;text-align:start;margin:0!important;max-width:100%;
 -webkit-line-clamp:var(--wamda-brief-lines);overflow:hidden
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-foot-links{
 width:100%;gap:8px;display:flex;justify-content:flex-start;align-items:center;flex-wrap:wrap;margin-top:0
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-foot-links .wtx-wamda-read{
 box-shadow:none;border:0;min-height:44px;font-size:13px!important;line-height:1.35!important;
 padding:10px 17px;background:#f7fafb;color:#10252e!important
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-original-short{min-width:44px;min-height:44px}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-side-actions{
 grid-area:media!important;position:relative!important;inset:auto!important;z-index:7;
 display:flex;flex-direction:column;justify-self:end;align-self:end;gap:6px;
 margin:0 9px 10px;pointer-events:none;max-height:100%;min-width:0
}
.wtx-wamda.wtx-wamda--shorts[data-wamda-action-side="start"] .wtx-wamda-card--editorial .wtx-wamda-side-actions{justify-self:start}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-side-actions .wtx-wamda-action{
 width:46px;min-width:44px;min-height:45px;padding:5px 3px;gap:1px;
 border-radius:14px;border:1px solid rgba(255,255,255,.32);background:rgba(4,15,24,.77);
 text-shadow:0 1px 4px #000a;backdrop-filter:blur(6px);font-size:10px!important
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-side-actions .wtx-wamda-action svg{width:21px;height:21px}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-side-actions .wtx-wamda-action[aria-pressed="true"]{
 border-color:#f7e1a9;background:#673444dd;color:#fff
}
.wtx-wamda.wtx-wamda--shorts :is(.wtx-wamda-card--editorial,.wtx-wamda-card--overlay,.wtx-wamda-card--compact) :is(a,button):focus-visible{
 outline:3px solid #fff2b1;outline-offset:2px
}
/* Status notifications may not cover the primary article CTA. */
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-footer{
 position:absolute;inset-inline:0;top:calc(65px + env(safe-area-inset-top,0px));bottom:auto;
 margin:0 auto;max-width:min(440px,95%);height:0;z-index:12;pointer-events:none
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-status:not(:empty){
 max-width:min(320px,82vw);margin:0 auto;border:1px solid #ffffff5c;border-radius:14px;
 padding:8px 11px;font-size:12px;line-height:1.45;background:#0b2733ea;color:#fff;
 box-shadow:0 8px 25px #0007
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-status:empty{display:none}
@media(max-width:390px){
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-head{padding-block-start:calc(71px + env(safe-area-inset-top,0px))!important}
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-head h2{font-size:18px!important;line-height:1.32!important}
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-foot{padding-block-start:10px!important;gap:7px}
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-foot .wtx-wamda-brief{font-size:12px!important}
}
@media(max-height:670px){
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-head{padding-block-start:calc(62px + env(safe-area-inset-top,0px))!important;padding-block-end:8px!important}
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-head h2{font-size:clamp(16px,4vw,20px)!important}
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-foot{padding-block-start:8px!important;padding-block-end:calc(10px + env(safe-area-inset-bottom,0px))!important}
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial .wtx-wamda-card-foot .wtx-wamda-brief{-webkit-line-clamp:1!important;display:-webkit-box!important}
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-side-actions .wtx-wamda-action{width:43px;min-width:43px;min-height:42px}
}
@media(prefers-reduced-motion:reduce){.wtx-wamda.wtx-wamda--shorts .wtx-wamda-deck{scroll-behavior:auto!important}}
@media(prefers-reduced-transparency:reduce){.wtx-wamda.wtx-wamda--shorts .wtx-wamda-backdrop-image{filter:none;opacity:.17}}
@media print{.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial{height:auto!important;display:block!important}.wtx-wamda.wtx-wamda--shorts .wtx-wamda-media{max-height:280px}}
