/* WOC 3.0 release candidate. App-only styles. Never target Panda or game surfaces. */
:root{--w30-paper:#fffdfb;--w30-bg:#f8f6f4;--w30-ink:#221e1d;--w30-red:#ad202b;--w30-line:#e9e1dc;--w30-muted:#76706b}
html[data-theme="dark"]{--w30-paper:#292529;--w30-bg:#1c1a1d;--w30-ink:#f5f0ec;--w30-red:#ff7d82;--w30-line:#50484b;--w30-muted:#b4abae}
/* Hard width constraints to prevent the historical 887px mobile implicit track. */
body.woc23-home .woc23-edition,body.woc23-home .woc23-edition-body{min-width:0!important;max-width:100%!important;box-sizing:border-box!important}
body.woc23-home .woc23-edition-body{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;overflow:visible!important}
body.woc23-home .woc23-edition-body>*{min-width:0!important;max-width:100%!important}
body.woc23-home .woc23-lead-grid{display:grid!important;grid-template-columns:minmax(0,1fr)!important;width:100%!important;min-width:0!important;max-width:100%!important}
body.woc23-home .woc23-main-lead,body.woc23-home .woc23-mag-lead,body.woc23-home .woc23-digest,body.woc23-home .woc23-magazine,body.woc23-home .woc23-magazine-row,body.woc23-home .woc23-small-grid,body.woc23-home .woc23-mag-grid{max-width:100%!important;min-width:0!important}
body.woc23-home .woc23-story{min-width:0!important;max-width:100%!important;box-sizing:border-box}
body.woc23-home .woc23-story-copy{min-width:0!important}
body.woc23-home .woc23-story-title{overflow-wrap:anywhere!important;word-break:normal}
body.woc23-home .woc23-story-pic{max-width:100%;min-width:0}
body.woc23-home .woc23-story-pic img{max-width:100%;min-width:0}
body.woc23-home .woc23-dateline{flex-wrap:wrap;column-gap:9px;row-gap:5px}
body.woc23-home .woc23-dateline time{margin-left:0}
body.woc23-home .woc23-edition-head{gap:10px}
body.woc23-home .woc23-tabs{max-width:100%;grid-template-columns:repeat(3,minmax(0,1fr))}
body.woc23-home .woc23-tabs button{font-size:12px;min-width:0;overflow:hidden;text-overflow:ellipsis}
body.woc23-home .woc23-story-lead{width:100%!important;max-width:100%!important;min-width:0!important;overflow:hidden}
body.woc23-home .woc23-digest-row{min-width:0!important}
body.woc23-home .woc23-story-digest{min-width:0!important}
body.woc23-home .woc23-story-arrow{display:none}
body.woc23-home .woc23-mag-lead .woc23-story-lead{grid-template-columns:minmax(0,1fr)!important}
/* Search entry is editorial, not an additional duplicate news feed. */
.woc30-quick-search{width:100%;min-width:0;margin:7px 0 3px}
.woc30-quick-search button{width:100%;padding:12px 16px;text-align:left;min-height:46px;border-radius:14px;border:1px solid var(--w30-line);background:var(--w30-paper);box-shadow:0 4px 16px #3d25100b;font-size:12px;font-weight:800;color:var(--w30-red);cursor:pointer}
.woc30-quick-search button span{float:right;font-size:18px;line-height:17px}
/* Scoped modal that does not reflow the document, bottom navigation or games. */
.woc30-modal[hidden]{display:none!important}
.woc30-modal{position:fixed;inset:0;z-index:12000;display:grid;place-items:center;font-family:inherit;color:var(--w30-ink)}
.woc30-scrim{position:absolute;inset:0;background:#1c1716ad;-webkit-backdrop-filter:blur(6px);backdrop-filter:blur(6px)}
.woc30-search-open{overflow:hidden!important}
.woc30-panel{position:relative;display:flex;flex-direction:column;overflow:hidden;min-width:0;width:min(650px,100%);height:min(780px,93dvh);background:var(--w30-bg);box-shadow:0 18px 55px #0003;border-radius:24px}
.woc30-panel>header{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px 22px 14px;background:var(--w30-paper)}
.woc30-panel header small{color:var(--w30-red);font-size:9px;font-weight:900;letter-spacing:.13em}
.woc30-panel header h2{margin:5px 0 0;font-family:Georgia,"Times New Roman",serif;font-size:26px;letter-spacing:-.04em;line-height:1.1;color:var(--w30-ink)}
.woc30-panel header button{width:42px;height:42px;flex:none;border-radius:50%;border:1px solid var(--w30-line);background:var(--w30-paper);color:var(--w30-ink);font-size:23px}
.woc30-query{display:flex;align-items:center;gap:11px;padding:10px 14px;min-height:50px;margin:9px 19px;border-radius:13px;border:1px solid var(--w30-line);background:var(--w30-paper)}
.woc30-query span{color:var(--w30-red);font-size:27px;line-height:.6}
.woc30-query input{border:0;background:transparent;color:var(--w30-ink);min-width:0;flex:1;font-size:16px;font-family:inherit;outline:none}
.woc30-query:focus-within{outline:2px solid #d66b6d;outline-offset:1px}
.woc30-filters{display:flex;gap:7px;overflow-x:auto;padding:2px 19px 12px;scrollbar-width:none}
.woc30-filters button{white-space:nowrap;min-height:40px;padding:9px 13px;background:var(--w30-paper);border:1px solid var(--w30-line);border-radius:99px;color:var(--w30-muted);font-size:11px;font-weight:850}
.woc30-filters button.active{color:#fff;background:var(--w30-red);border-color:var(--w30-red)}
.woc30-count{padding:2px 20px 8px;color:var(--w30-muted);font-size:11px;margin:0}
.woc30-results{flex:1;overflow-y:auto;overscroll-behavior:contain;padding:0 15px 22px;min-width:0}
.woc30-result{width:100%;max-width:100%;display:flex;align-items:center;gap:12px;margin:6px 0;padding:9px 10px;border-radius:14px;background:var(--w30-paper);border:1px solid var(--w30-line);box-shadow:0 3px 11px #120c0a05;text-align:left;color:var(--w30-ink)}
.woc30-thumb{width:65px;height:65px;flex:none;overflow:hidden;display:grid;place-items:center;border-radius:10px;background:#edd4cf;font:750 32px Georgia,serif;color:var(--w30-red)}
.woc30-thumb img{width:100%;height:100%;object-fit:cover}
.woc30-result-text{min-width:0;flex:1}
.woc30-result-text small{display:block;color:var(--w30-red);font-size:9.5px;line-height:1.45;font-weight:800}
.woc30-result-text strong{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere;font-size:13.5px;line-height:1.27;font-weight:850;color:var(--w30-ink)}
.woc30-result>span:last-child{color:var(--w30-red);font-size:18px;flex:none}
.woc30-empty{text-align:center;padding:30px 15px}
.woc30-empty strong{font:760 23px Georgia,serif;color:var(--w30-ink)}
.woc30-empty p{color:var(--w30-muted);font-size:12px;line-height:1.55}
.woc30-panel footer{display:flex;align-items:center;gap:9px;padding:11px 17px calc(13px + env(safe-area-inset-bottom));border-top:1px solid var(--w30-line);background:var(--w30-paper)}
.woc30-panel footer p{flex:1;color:var(--w30-muted);font-size:10px;line-height:1.45;margin:0}
.woc30-panel footer button{padding:9px;border:1px solid var(--w30-line);border-radius:10px;background:var(--w30-paper);color:var(--w30-red);font-size:10px;font-weight:850;min-height:40px}
.woc30-panel footer button:disabled{opacity:.45}
.woc30-modal button:focus-visible,.woc30-quick-search button:focus-visible{outline:3px solid #dd9b56;outline-offset:2px}
.woc30-percent{position:absolute;right:7px;bottom:0;z-index:2;color:var(--red-dark);background:var(--surface-solid);font-size:10px;font-weight:900;border-radius:5px;pointer-events:none;padding:1px 5px}
.reader-panel.woc30-focus .reader-article{max-width:730px;margin-left:auto;margin-right:auto}
.reader-panel.woc30-focus .reader-body,.reader-panel.woc30-focus .reader-body p{line-height:1.86;letter-spacing:.004em}
.woc30-focus-button{font-family:system-ui,-apple-system,sans-serif;font-size:22px}
.woc30-offline-button{font-size:11px;font-weight:850;min-height:40px;padding:9px 13px;border-radius:10px;background:var(--w30-paper);color:var(--w30-red);border:1px solid var(--w30-line)}
.woc30-offline-button:disabled{opacity:.65}
@media(max-width:760px){
 body.woc23-home .woc23-main-lead .woc23-story-lead{display:flex!important;flex-direction:column-reverse!important}
 body.woc23-home .woc23-story-lead .woc23-story-pic{width:100%!important;height:auto!important;aspect-ratio:1.9!important;max-height:235px!important;min-height:0!important}
 body.woc23-home .woc23-story-lead .woc23-story-copy{padding:16px!important}
 body.woc23-home .woc23-story-lead .woc23-story-title{font-size:clamp(22px,6vw,29px)!important;line-height:1.12!important}
 body.woc23-home .woc23-story-lead .woc23-story-deck{-webkit-line-clamp:2!important}
 body.woc23-home .woc23-mag-lead .woc23-story-pic{height:auto!important;max-height:245px!important;aspect-ratio:1.8!important}
 .woc30-panel{width:100%;height:calc(100dvh - env(safe-area-inset-top));max-height:100%;align-self:end;border-radius:18px 18px 0 0}
 .woc30-panel header{padding:17px 15px 12px}.woc30-panel header h2{font-size:24px}
 .woc30-results{padding:0 10px 14px}.woc30-panel footer{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
 .woc30-panel footer p{grid-column:1/-1}
 .reader-article .reader-cover{width:calc(100% + 30px)!important;margin-left:-15px!important;margin-right:-15px!important;height:auto!important;max-height:240px!important;object-fit:contain!important;background:var(--w30-bg)!important}
 .reader-article>h1{font-size:clamp(27px,6.6vw,34px)!important;line-height:1.11!important;max-width:none!important;letter-spacing:-.025em!important}
 .reader-head .reader-icon-btn{width:33px!important;height:33px!important}.reader-head-actions{gap:4px!important}
 .reader-brand{font-size:12px!important}
}
@supports (view-transition-name:none){::view-transition{pointer-events:none!important}::view-transition-old(root),::view-transition-new(root){animation-duration:.17s!important}}
@media(prefers-reduced-motion:reduce){::view-transition-old(root),::view-transition-new(root){animation-duration:0s!important}}
/* Kept from premium 2.4 behaviour: no repeated cards, compact briefing. */
body.woc23-home #feed .article.woc30-dup-feed{display:none!important}
.woc30-brief-audio{width:100%;margin-top:13px;min-height:43px;border:1px solid var(--w30-line);border-radius:12px;color:var(--w30-red);background:var(--w30-paper);font-size:12px;font-weight:850}
.woc30-action-sheet{position:fixed;inset:0;z-index:12500;display:grid;align-items:end}
.woc30-action-backdrop{position:absolute;inset:0;background:#130c0a8c;-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
.woc30-action-dialog{position:relative;max-width:570px;width:100%;margin:0 auto;background:var(--w30-bg);border-radius:24px 24px 0 0;padding:17px 17px calc(20px + env(safe-area-inset-bottom));box-shadow:0 0 35px #0002;display:grid;gap:8px}
.woc30-action-dialog p{margin:0 0 7px;font-size:14px;line-height:1.35;font-weight:850;color:var(--w30-ink);overflow-wrap:anywhere}
.woc30-action-dialog button{width:100%;text-align:left;min-height:42px;border:1px solid var(--w30-line);border-radius:10px;background:var(--w30-paper);color:var(--w30-ink);font-size:12px;padding:10px 15px;font-weight:750}
.woc30-action-dialog button:last-child{text-align:center;color:var(--w30-red);background:transparent}
/* Compact categories instead of visually cut-off category names. */
body.woc23-home #categoryChips:not(.woc30-expanded){display:none!important}
body.woc23-home #categoryChips.woc30-expanded{display:flex!important;flex-wrap:wrap!important;gap:7px!important;overflow:visible!important;padding-top:9px!important;max-width:100%!important}
body.woc23-home #categoryChips.woc30-expanded .chip{white-space:normal!important;font-size:12px!important;padding:8px 11px!important}
.woc30-category-toggle{display:none}
body.woc23-home .woc30-category-toggle{display:inline-flex;align-items:center;gap:6px;padding:6px 2px 5px;margin:6px 0 0;border:0;background:transparent;color:var(--w30-red);font-size:11px;font-weight:850;min-height:29px;cursor:pointer}
body.woc23-home .toolbar{padding:9px 12px!important;margin-bottom:12px!important}
body.woc23-home .toolbar .search{min-height:44px!important}
body.woc23-home .toolbar .refresh-btn{width:44px!important;height:44px!important;min-width:44px!important}
