/* Wamda 2.7: text-first story cards, publisher identity, transient feedback.
 * Scoped to the Shorts runtime; does not alter legacy Wamda or other themes.
 */
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-brand{min-width:0;max-width:calc(100% - 62px);align-items:center}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-brand>div{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-brand strong{font-size:clamp(18px,4.7vw,21px);font-weight:850;line-height:1.14;text-wrap:nowrap}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-brand span.wtx-wamda-brand-subtitle:not(.wtx-wamda-mark){
 display:block!important;max-width:min(58vw,290px);font-size:clamp(10px,2.8vw,12px);line-height:1.4;
 font-weight:630;color:#e9d5a9;margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;
 text-shadow:0 1px 4px #02080c
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-brand span.wtx-wamda-brand-subtitle:empty{display:none!important}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-article-tag{
 display:inline-flex;align-items:center;gap:4px;align-self:flex-start;border-radius:100px;
 border:1px solid #e8d1a65c;background:#b9934630;color:#f9e7c2;
 padding:3px 9px;font-size:11px;line-height:1.4;font-weight:700;max-width:100%;
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-article-tag svg{width:14px;height:14px}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial.wtx-wamda-is-article:not(.wtx-wamda-no-photo) .wtx-wamda-card-head{
 background:linear-gradient(145deg,#091520,#17303b 105%)
}
/* A missing photograph is a legitimate editorial choice, not an image error. */
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial.wtx-wamda-no-photo{
 grid-template-rows:max-content minmax(0,1fr) max-content!important;background:#071521;
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial.wtx-wamda-no-photo .wtx-wamda-card-head{
 background:linear-gradient(150deg,#09131c 0%,#142c36 100%)!important;
 border-block-end:1px solid #d6ba7f30;padding-block-end:14px!important
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial.wtx-wamda-no-photo .wtx-wamda-media{
 background:linear-gradient(154deg,#132b37,#10202b 57%,#1e2934);display:flex;align-items:stretch!important;
 overflow:hidden;isolation:isolate
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-card--editorial.wtx-wamda-no-photo .wtx-wamda-media::before{
 content:'“';position:absolute;inset-inline-start:7%;inset-block-start:-16%;font-size:clamp(180px,65vw,340px);
 font-family:Georgia,serif;line-height:1;color:rgba(219,181,113,.10);pointer-events:none;z-index:0;
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-no-photo .wtx-wamda-text-cover{
 position:relative;z-index:2;display:flex;flex-direction:column;align-items:flex-start;
 justify-content:center;gap:clamp(12px,2.3vh,23px);width:100%;min-height:0;min-width:0;
 padding:clamp(22px,5vw,34px) clamp(20px,5vw,36px);color:#f5f8f9;text-align:start;
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-text-cover-kicker{
 display:inline-flex;align-items:center;gap:8px;color:#ecd5a9;font-size:12px;line-height:1.5;font-weight:700;
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-text-cover-kicker svg{width:19px;height:19px}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-text-excerpt{
 display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:9;overflow:hidden;
 color:#eaf1f3;font-size:clamp(16px,4.6vw,20px);line-height:1.85;margin:0;
 max-width:100%;overflow-wrap:anywhere;text-wrap:pretty;
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-text-cover-end{
 font-size:12px;color:#e4c88f;border-block-start:1px solid #e4c88f50;padding-block-start:10px;
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-text-cover.is-minimal{
 background:linear-gradient(130deg,#172a37,#1d3038);justify-content:center
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-text-cover.is-minimal .wtx-wamda-text-excerpt{-webkit-line-clamp:6;font-size:clamp(18px,5vw,22px)}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-no-photo .wtx-wamda-text-only-note{
 margin:0;color:#d9e5e9;font-size:12px;line-height:1.5
}
/* A compact, single-action footer on no-photo cards reduces repeated excerpts. */
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-no-photo .wtx-wamda-card-foot{gap:9px!important}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-no-photo .wtx-wamda-card-foot .wtx-wamda-brief{display:none!important}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-no-photo .wtx-wamda-side-actions{z-index:7}
/* Hide old arrow even if stale cached markup is temporarily used; link stays accessible in the reader. */
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-original-short{display:none!important}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-foot-links .wtx-wamda-read{max-width:100%!important}
/* Transactional toast does not participate in layout and never competes with long-lived feed status. */
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-toast{
 position:absolute;z-index:40;inset-inline:14px;inset-block-start:calc(81px + env(safe-area-inset-top,0px));
 width:max-content;max-width:calc(100% - 28px);min-width:0;margin-inline:auto;
 padding:9px 14px;border:1px solid #ffffff59;border-radius:16px;
 background:rgba(14,38,44,.96);color:#f6faf9;box-shadow:0 10px 32px #0009;
 font-size:12px;line-height:1.5;text-align:center;pointer-events:none;overflow-wrap:anywhere;
}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-toast[data-state="error"]{background:rgba(84,23,26,.97);border-color:#ff9c96a8}
.wtx-wamda.wtx-wamda--shorts .wtx-wamda-toast[hidden]{display:none!important}
@media(max-width:390px){
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-no-photo .wtx-wamda-text-excerpt{-webkit-line-clamp:7;font-size:clamp(15px,4.4vw,18px)}
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-brand span.wtx-wamda-brand-subtitle:not(.wtx-wamda-mark){max-width:56vw}
}
@media(max-height:690px){
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-no-photo .wtx-wamda-text-cover{padding:12px 19px;gap:7px}
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-no-photo .wtx-wamda-text-excerpt{-webkit-line-clamp:5;font-size:14px;line-height:1.6}
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-no-photo .wtx-wamda-card-head{padding-block-end:6px!important}
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-no-photo .wtx-wamda-text-only-note{display:none}
}
@media(max-height:560px){
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-no-photo .wtx-wamda-text-excerpt{-webkit-line-clamp:3}
 .wtx-wamda.wtx-wamda--shorts .wtx-wamda-no-photo .wtx-wamda-text-cover-end{display:none}
}
@media(prefers-reduced-motion:reduce){.wtx-wamda.wtx-wamda--shorts .wtx-wamda-toast{transition:none!important}}
