/* Existing tokens and components remain authoritative. */
.seo-breadcrumbs{display:flex;flex-wrap:wrap;gap:.45em;font-size:13px;line-height:1.5;margin:0 0 18px;color:#555}
.seo-breadcrumbs a{color:inherit}
.seo-context{font-size:15px;line-height:1.5;margin:12px 0 22px;max-width:75ch}
.seo-guide section{margin:28px 0;max-width:75ch}
.seo-guide p{line-height:1.65}
a.directory-whole-pair{display:block;color:inherit;text-decoration:none}
.seo-profile-link{color:inherit!important;text-decoration:none}
html[data-cocodex-prerender]:not(.site-starting) .wrap{visibility:visible!important}
.languages #languageMenu a{border:0;background:transparent;display:flex;align-items:center;gap:9px;color:inherit;width:100%;padding:8px;border-radius:7px;font-size:13px;text-decoration:none;box-sizing:border-box}
.languages #languageMenu a:hover{background:#eee}
.languages #languageMenu a.active{font-weight:900;background:#f2f2f2}

.strap .seo-inline-heading{display:inline;font:inherit;font-weight:500;margin:0;padding:0;color:inherit;letter-spacing:inherit;text-transform:none}.seo-author-heading{display:inline;font:inherit;font-weight:bold;margin:0;padding:0;color:inherit;letter-spacing:inherit;text-transform:none}

/* Compact visible orientation in the existing status row. */
.info-line.seo-info-row{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:4px 18px}
.info-line .seo-breadcrumbs{font:inherit;line-height:inherit;color:inherit;margin:0;gap:.3em;text-transform:none;text-align:left;min-width:0}
.info-line .seo-breadcrumbs a{color:inherit!important;text-decoration:none}
.info-line .seo-breadcrumbs a:hover{text-decoration:underline}
.seo-info-stats{margin-left:auto;text-align:right}
.seo-context{text-align:center;margin-left:auto;margin-right:auto}
.seo-directory-intro{max-width:none;margin:12px auto 8px;position:relative;z-index:1}
.seo-directory-intro span{display:block}
@media(max-width:600px){.info-line.seo-info-row{gap:5px}.seo-info-stats{flex-basis:100%}.seo-directory-intro{font-size:13px;line-height:1.5}.seo-directory-intro span+span{margin-top:4px}}

/* Catalog subtitle: two sentences, with a minimum 40px inset per side. */
.seo-context.seo-catalog-intro{font-size:13px;line-height:1.55;width:calc(100% - 80px);max-width:none;margin:10px auto 24px;text-align:center;box-sizing:border-box}
.seo-catalog-intro span{display:block}

#sitePage.catalog-page>h1{margin-bottom:12px!important}
#sitePage .seo-catalog-intro{margin-top:0;margin-bottom:16px}
#sitePage .seo-catalog-intro{margin-bottom:20px}
.info-line.seo-info-row{flex-wrap:nowrap;gap:10px;white-space:nowrap;overflow:hidden}
.info-line .seo-breadcrumbs{display:block;flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.seo-info-stats{flex:0 0 auto;white-space:nowrap}
@media(max-width:600px){.info-line{font-size:9px}.info-line.seo-info-row{gap:7px}.seo-info-stats{flex-basis:auto}}
/* Breadcrumbs stay left; the data snapshot always anchors to the right, including home. */
.info-line .seo-info-stats{margin-left:auto;text-align:right;flex-shrink:0}
.info-line:not(:has(.seo-breadcrumbs)){text-align:right;justify-content:flex-end}

html.site-starting body{visibility:hidden!important}
html.site-starting body>:not(#accountStartupLoading){opacity:0!important;pointer-events:none!important}
html.site-starting .wrap,html.site-starting header,html.site-starting .info-line{visibility:hidden!important}
html.site-starting::after{content:"";position:fixed;inset:max(12px,calc(50% - 178px)) auto auto calc(50% - 28px);width:56px;height:56px;animation:cocodex-loading 1s linear infinite;z-index:2147483647}
@keyframes cocodex-loading{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){html.site-starting::after{animation:none}}

#sitePage .editorial-tabs .editorial-feed-link{display:inline-flex;align-items:center;gap:6px;margin-left:auto;padding:7px 12px;font-size:12px;color:#111;background:transparent;white-space:nowrap}.editorial-feed-link svg{width:16px;height:16px;fill:none;stroke:currentColor;stroke-width:1.5}.editorial-feed-link svg circle{fill:currentColor;stroke:none}#sitePage .editorial-pager{display:flex;justify-content:center;align-items:center;gap:14px;margin:24px 0;font-size:12px}#sitePage .editorial-pager[hidden],#sitePage .editorial-pager button[hidden]{display:none!important}#sitePage .editorial-pager button{width:32px;height:32px;padding:0;border:0;border-radius:50%;background:#111;color:white;font-size:24px;line-height:1}#sitePage .editorial-pager button:disabled{opacity:.3;cursor:default}.site-editorial>section{scroll-margin-top:140px}

#sitePage .editorial-bottom-shortcuts{display:flex;align-items:center;gap:10px;width:100%;margin:0}#sitePage .editorial-bottom-shortcuts .editorial-feed-link{display:inline-flex;align-items:center;gap:6px;margin-left:auto;padding:7px 0 7px 12px;font-size:12px;color:#111;background:transparent;white-space:nowrap}

/* Favorite articles reuse each article's identity in a compact news list. */
.favorite-article-list .favorite-article-preview{display:grid;grid-template-columns:180px minmax(0,1fr);gap:24px;background:#fff;align-items:start}
.favorite-article-thumbnail{display:block;min-width:0;color:#111;text-decoration:none;overflow:hidden;border:1px solid #ddd;border-radius:10px;background:#fafafa}
.favorite-article-thumbnail>img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}
.favorite-article-page{display:flex;min-height:190px;padding:16px;gap:12px;flex-direction:column;border:3px double #222;margin:8px;background:white}
.favorite-article-page .favorite-article-logo{width:90px;height:auto}.favorite-article-page small{font-size:8px;line-height:1.3}.favorite-article-page strong{font-size:15px;line-height:1.25}.favorite-page-lines{height:24px;background:repeating-linear-gradient(to bottom,#ddd 0,#ddd 1px,transparent 1px,transparent 6px)}
.favorite-article-page .favorite-article-author{width:28px;height:28px;border-radius:50%;object-fit:cover}
.favorite-article-copy{min-width:0}.favorite-article-list .favorite-article-copy h2{margin:0 0 12px;font-size:clamp(20px,2.4vw,28px);line-height:1.25;text-align:left}.favorite-article-copy h2 a{text-decoration:none}.favorite-article-series{font-size:12px;color:#75258d;margin:0 0 8px}.favorite-article-excerpt{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;line-height:1.55;margin:0 0 12px}.favorite-article-list .favorite-article-copy .article-read{margin:16px 0 0}
@media(max-width:560px){.favorite-article-list .favorite-article-preview{grid-template-columns:100px minmax(0,1fr);gap:14px;padding:14px}.favorite-article-page{min-height:140px;padding:8px;margin:5px;gap:8px}.favorite-article-page .favorite-article-logo{width:65px;max-width:100%}.favorite-article-page strong{font-size:11px}.favorite-article-page small{font-size:7px}.favorite-article-list .favorite-article-copy h2{font-size:18px;overflow-wrap:anywhere}.favorite-article-excerpt{font-size:13px}.favorite-article-copy .editorial-date{font-size:11px}}

.editorial-image-preview img{display:block;width:100%;height:auto;aspect-ratio:800/343;object-fit:cover}
#sitePage.blog-article-page .integrated-article>.cocodex-blog-header.report-cover{display:block;position:relative;min-height:0;padding:0;aspect-ratio:800/343}
.report-cover>img{display:block;width:100%;height:100%;object-fit:cover}
.editorial-scroll{display:flex;flex-direction:column;gap:20px;max-height:1100px;overflow-y:auto;scrollbar-gutter:stable;padding-right:12px}.editorial-scroll>article,.editorial-scroll>section,.editorial-scroll>div{flex:none;margin:0!important}.editorial-scroll>[hidden]{display:none!important}.article-header-thumbnail{display:block;width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;object-position:80% 35%;margin-bottom:16px}.lorecast-link{display:block;margin:20px 0}.lorecast-link svg{display:block;width:100%;height:auto}.lorecast-link a{color:inherit}

/* One shared action row across owned, official, community and related articles. */
#sitePage .article-action-row{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:8px;width:100%;box-sizing:border-box;margin:18px 0 0;min-width:0}
#sitePage .article-action-row>.article-read,#sitePage .article-action-row>.community-open,#sitePage .article-action-row>.community-channel{flex:0 1 auto;width:auto;min-width:0;margin:0!important;align-self:center;padding:10px 12px;white-space:normal;font-size:13px;line-height:1.25;text-align:center}
#sitePage .article-action-row>.content-share{position:relative;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:flex-start;flex:0 1 auto;gap:2px;margin:0;clear:none}
#sitePage .article-action-row .content-share-button{min-width:34px;min-height:44px;padding:5px;gap:3px}
#sitePage .article-action-row .content-share-button>span{display:none}
#sitePage .article-action-row .content-share-button svg{width:20px;height:20px;flex-basis:20px}
#sitePage .article-action-row .content-share-status{position:absolute;right:0;top:100%;white-space:nowrap;font-size:11px}
#sitePage .article-action-row .article-like b{font-size:12px}
#sitePage .dt-related .article-action-row{width:calc(100% - 24px);margin:12px auto 0}
#sitePage .dt-related .related-miniature{display:block;position:relative;overflow:hidden;width:min(200px,calc(100% - 40px));aspect-ratio:500/240;height:auto;margin:20px auto 0;border-radius:8px;text-decoration:none;flex:none}
#sitePage .related-miniature-canvas{width:500px;height:240px;transform-origin:top left;pointer-events:none}
#sitePage .related-miniature-canvas>.cocodex-blog-header{width:500px;height:240px;min-height:0;padding:50px;aspect-ratio:auto;margin:0}
#sitePage .related-guide-header{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;width:500px;height:240px;background:#fff;color:#111}
#sitePage .related-guide-logo{width:160px;height:auto}
#sitePage .related-guide-header>strong{font-size:40px;font-weight:900}
#sitePage .related-guide-frame{position:absolute;top:20px;width:110px;height:auto}
#sitePage .related-guide-frame.left{left:20px}#sitePage .related-guide-frame.right{right:20px}
#sitePage .content-share{flex-direction:row;flex-wrap:wrap}
#sitePage .dt-related .article-action-row>.article-read{width:auto!important;min-width:0!important;margin:0!important;flex:0 1 auto}

#sitePage .editorial-related{margin-top:40px}
#sitePage .editorial-related>h2{text-align:left}
#sitePage .editorial-related .dt-related{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}
#sitePage .editorial-related .site-article-preview{display:flex;flex-direction:column;padding:0 12px 18px;min-width:0}
#sitePage .editorial-related .site-article-preview h3{font-size:20px;text-align:left;margin:20px 0 12px}
#sitePage .editorial-related .site-article-preview>p{font-size:15px;line-height:1.5}
#sitePage .editorial-related .article-action-row{margin-top:auto}
@media(max-width:720px){#sitePage .editorial-related .dt-related{grid-template-columns:minmax(0,1fr)}}
@media(max-width:400px){
 #sitePage .dt-related .article-action-row{width:100%;gap:4px}
 #sitePage .dt-related .article-action-row>.article-read{font-size:11.5px;padding:10px 6px}
 #sitePage .dt-related .article-action-row .content-share{gap:1px}
 #sitePage .dt-related .article-action-row .content-share-button{min-width:28px;padding:4px;gap:2px}
 #sitePage .dt-related .article-action-row .content-share-button svg{width:18px;height:18px;flex-basis:18px}
}
#sitePage .article-action-row .content-share-button{flex:0 0 auto!important;width:auto!important;padding:5px!important}
@media(max-width:400px){#sitePage .dt-related .article-action-row .content-share-button{padding:4px!important}}

/* Official Twitch channel: original channel banner, shared editorial typography. */
#sitePage .lorcana-twitch{margin:28px 0;min-width:0}
#sitePage .lorcana-twitch>h2{text-align:left;overflow-wrap:break-word}
#sitePage .lorcana-twitch-header{display:block;position:relative;overflow:hidden;border-radius:10px;color:white;text-decoration:none;isolation:isolate}
#sitePage .lorcana-twitch-header>img{display:block;width:100%;height:auto;aspect-ratio:5/2;object-fit:cover}
#sitePage .lorcana-twitch-channel{display:flex;flex-direction:column;gap:8px;padding:18px 20px;background:#111;color:#fff}
#sitePage .lorcana-twitch-channel small{font-size:11px;letter-spacing:.1em;font-weight:700}
#sitePage .lorcana-twitch-channel strong{font-size:22px;line-height:1.2;overflow-wrap:break-word}
#sitePage .lorcana-twitch-visit{display:table;margin:16px auto 0;color:inherit}

/* Consistent editorial preview contract, 28 September 2026. */
#sitePage .site-article-preview>h3,#sitePage .site-article-preview>p{text-align:left!important}
#sitePage .site-article-preview.article-with-header{padding-inline:24px!important}
#sitePage .site-article-preview>.article-header-thumbnail{width:100%;aspect-ratio:1606/760;height:auto!important;overflow:hidden;position:relative;margin:0 0 24px}
#sitePage .article-blog-canvas{width:800px;height:378.58px;transform-origin:top left;pointer-events:none}
#sitePage .blog-header-link .article-blog-canvas>.cocodex-blog-header{width:800px;height:378.58px;min-height:0;padding:60px 80px;aspect-ratio:auto}
#sitePage .article-blog-canvas .blog-thumbnail-logo{width:160px}
#sitePage .article-blog-canvas .blog-thumbnail-copy>strong{font-size:52px}
#sitePage .article-blog-canvas .blog-thumbnail-series{font-size:24px}
#sitePage .article-action-row{justify-content:flex-start}
#sitePage .editorial-signature{display:flex;align-items:center;gap:10px;margin:20px 0 0;min-width:0;text-align:left}
#sitePage .editorial-signature>img{width:40px;height:40px;object-fit:cover;border-radius:50%;flex:none}
#sitePage .editorial-signature-line{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;min-width:0;font-size:12px;line-height:1.5}
#sitePage .editorial-signature-line>strong{font-size:13px}
#sitePage .editorial-publication{white-space:normal}
@media(max-width:720px){
 #sitePage .article-action-row{justify-content:center}
 #sitePage .site-article-preview.article-with-header{padding-inline:18px!important}
}

/* Ink choices wrap within the control instead of clipping localized names. */
#communityDeckSearch #communityInkValue{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0;max-width:100%;white-space:normal}
#communityDeckSearch .community-ink-options{width:100%;max-width:100%;overflow-x:hidden}
#communityDeckSearch .community-ink-options button{height:auto;min-height:44px;white-space:normal;flex-wrap:wrap;justify-content:flex-start}
#communityDeckSearch .community-option-names{min-width:0;flex:1 1 180px;white-space:normal;overflow-wrap:anywhere;line-height:1.5;text-align:left}
#communityDeckSearch .community-option-names .written-ink{display:inline;white-space:normal}

#sitePage .site-auth>.site-controls{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:8px;margin-left:0;margin-right:0;width:100%;box-sizing:border-box}
#sitePage .site-auth>.account-recovery-links{margin-top:8px;margin-bottom:18px;align-items:center}
#sitePage .site-auth>.account-recovery-links button{background:transparent;color:#111;text-decoration:underline;border:0;padding:4px 0;margin-right:14px;white-space:normal;text-align:left;font-size:12px}

#sitePage .site-article-preview>p,#sitePage .site-article-preview>h3{white-space:normal!important;overflow-wrap:break-word;max-width:100%;min-width:0}

#sitePage .site-article-preview>h3,#sitePage .site-article-preview>p{margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;text-indent:0!important}
#sitePage .site-editorial>aside{align-self:start}

.founder-role,#sitePage .editorial-signature-line>.founder-role,#sitePage .preview-author .founder-role,#sitePage .preview-author>div>span{color:#864493!important}

/* Article identity and shared reading actions. */
#sitePage .cocodex-blog-header>.blog-header-exit{position:absolute!important;top:60px!important;right:auto!important;left:60px!important;color:#fff!important;background:transparent!important;z-index:5}
#sitePage .cocodex-blog-header>.blog-header-exit svg{stroke:currentColor}
#sitePage .dt-related .related-miniature{width:calc(100% - 24px);max-width:none;aspect-ratio:1606/760;margin:12px auto 0}
#sitePage .dt-bottom-actions{margin:24px 0;justify-content:flex-start}
@media(max-width:720px){#sitePage .dt-bottom-actions{justify-content:center}}
/* All card-list rows use separators, not boxed buttons. */
body .deck-list .deck-list-row,body .deck-list .deck-list-row-rich{box-sizing:border-box;width:100%;max-width:none;border:0!important;border-bottom:1px solid #ddd!important;border-radius:0!important;box-shadow:none!important;background:transparent!important;margin-inline:0!important}
body .deck-list{width:100%;box-sizing:border-box;padding-left:0!important;padding-right:0!important}
body .inner-scroll:has(>.deck-list){padding-right:10px!important}
@media(max-width:720px){
 body.dt-preview #sitePage .dt-section:has(.dt-deck){padding-inline:12px!important}
 body .inner-scroll:has(>.deck-list){padding-right:8px!important}
}
#sectionScrollControls button,.shared-section-up{display:flex;align-items:center;justify-content:center;padding:0!important;line-height:1!important}
#sectionScrollControls button>svg,#sectionScrollControls button>span,.shared-section-up>svg{display:block;margin:0;flex:none}
#sectionScrollControls button>svg,.shared-section-up>svg{width:22px;height:22px}

#sitePage .cocodex-guide-header{background-image:url('/assets/deck-tech/guide-library-20261005.jpg?v=d4b9805a2c79');background-position:center}
#sitePage .cocodex-guide-header::before{background:linear-gradient(90deg,#160c26bf,#160c2633)}
#sitePage .entry-body>.cocodex-guide-header{margin:0 0 28px}
#sitePage .cocodex-guide-header .blog-thumbnail-copy{position:relative;z-index:1}

#sitePage .editorial-action-divider{width:100%;margin:20px 0 12px;flex:none}
#sitePage .guide-bottom-actions{display:flex;flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:flex-start;width:100%;max-width:760px;margin:0 auto;gap:8px}
#sitePage .guide-bottom-actions>.article-read{margin:0!important}

@media(max-width:400px){
 #sitePage .guide-bottom-actions{gap:4px}
 #sitePage .guide-bottom-actions>.article-read{font-size:11px;padding:8px 6px}
 #sitePage .guide-bottom-actions .content-share-button{min-width:28px;padding:4px!important}
 #sitePage .guide-bottom-actions .content-share-button svg{width:18px;height:18px;flex-basis:18px}
}

/* Full article headers reserve enough height for the unscaled identity. */
#sitePage .integrated-article>.cocodex-blog-header{min-height:260px}
#sitePage .entry-body>.cocodex-guide-header{width:calc(100% + 64px);margin-left:-32px;margin-right:-32px;min-height:260px;aspect-ratio:auto;padding:54px 44px}

/* All author signatures: name first, role and publication together beneath. */
#sitePage .editorial-signature-line{gap:0 8px;font-size:12px;line-height:1.5;text-align:left}
#sitePage .editorial-signature-line>strong{flex:0 0 100%;font-size:14px;line-height:1.5}
#sitePage .editorial-signature-line>.founder-role,#sitePage .editorial-signature-line>.editorial-publication{font-size:12px;line-height:1.5}
#sitePage .preview-author>div>strong,#sitePage .preview-author>div>.seo-author-heading{display:block;font-size:14px!important;line-height:1.5!important;margin:0!important;text-align:left!important;text-transform:none!important}
#sitePage .preview-author>div>.founder-role,#sitePage .preview-author>div>span{display:block;font-size:12px!important;line-height:1.5!important;color:#864493!important;text-align:left}
#sitePage .article-heading>.editorial-signature,#sitePage .dt-metadata>.editorial-signature{margin:12px 0}

/* Internal article scrolling uses the shared diamond rail. */
.editorial-scroll.inner-scroll-content{scrollbar-gutter:auto;padding-right:0}

/* CI rails remain discoverable even before the first scroll gesture. */
.inner-scroll>.inner-scroll-rail{opacity:1!important;border:0!important;border-radius:0!important;box-shadow:none!important;padding:0!important;background:transparent!important}

/* Scroll the category content itself so its CI rail follows the actual scroll position. */
#cards>.sidebar:has(#categoryLinks){overflow:visible!important;max-height:none!important}
#categoryLinks.inner-scroll-content{max-height:max(240px,calc(100dvh - 180px))!important;overflow-y:auto!important}

/* Guide exception: centered identity, horizontal softness fading toward the book below. */
#sitePage .cocodex-guide-header{background-position:65% 100%;align-items:center;justify-content:center}
#sitePage .entry-body>.cocodex-guide-header{min-height:340px;padding:60px;}
#sitePage .cocodex-guide-header::after{mask-image:linear-gradient(to bottom,#000 0%,#000 22%,rgba(0,0,0,.65) 46%,transparent 78%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 22%,rgba(0,0,0,.65) 46%,transparent 78%)}
#sitePage .cocodex-guide-header .blog-thumbnail-copy>h1,#sitePage .cocodex-guide-header .blog-thumbnail-copy>strong{font-size:clamp(30px,28cqw,80px);font-weight:900;line-height:1.05;color:#fff;margin:0;text-align:center;letter-spacing:normal}
/* Frame inner stroke is at most 39.5px from the edge: 60px leaves >=20px. */
#sitePage .cocodex-guide-header .blog-thumbnail-copy{margin:0;width:100%;max-width:100%;align-items:center;text-align:center;container-type:inline-size}
#sitePage .cocodex-guide-header .blog-thumbnail-series{font-size:clamp(18px,2.2vw,26px);text-align:center;line-height:1.3;text-wrap:balance}

/* Inner areas hand scrolling back to the document at either boundary. */
body .inner-scroll>.inner-scroll-content{overscroll-behavior:auto!important;overscroll-behavior-x:auto!important;overscroll-behavior-y:auto!important}

#sitePage .entry-body>.cocodex-guide-header{margin-top:8px}

/* One scroll-boundary rule for all embedded lists, menus, tables and sliders. */
html body :is(.inner-scroll-content,.deck-list,#categoryLinks,#protoMoreTagsList,.community-deck-slide,.community-overlay-list,.community-ink-options,.stats-table-scroll,.distributionwrap,.combo-results,.approved-legend,.proto-category-list,.editorial-scroll,.profile-deck-results,.proto-deck-grid){overscroll-behavior:auto!important;overscroll-behavior-x:auto!important;overscroll-behavior-y:auto!important}
#modal.card-view-modal .cv-content-scroll{overscroll-behavior:auto!important}

/* Deck list identity uses the same name/subtitle hierarchy as card profiles. */
.dt-deck .deck-row-name{display:flex;flex-direction:column;gap:3px;text-align:left}
.dt-deck .deck-row-name>strong{font-weight:800;line-height:1.3}
.dt-deck .deck-row-subtitle{font-weight:400;line-height:1.3}
@media(max-width:720px){
 .dt-preview #sitePage .dt-hero h1{text-align:center}
 .dt-preview #sitePage .dt-deck .deck-list-row-rich{grid-template-columns:24px 30px 30px minmax(0,1fr)!important;grid-template-rows:auto auto auto;column-gap:6px!important;row-gap:4px!important}
 .dt-deck .deck-list-row-rich> b{grid-column:1;grid-row:1}
 .dt-deck .deck-list-row-rich>.deck-cost{grid-column:2;grid-row:1}
 .dt-deck .deck-list-row-rich>.deck-inks{grid-column:3;grid-row:1}
 .dt-deck .deck-list-row-rich>.deck-row-name{grid-column:4;grid-row:1;font-size:12px}
 .dt-preview #sitePage .dt-deck .deck-list-row-rich>.deck-row-type{grid-column:4;grid-row:2;font-size:10px;line-height:1.3;white-space:normal;overflow-wrap:normal;word-break:normal}
 .dt-deck .deck-list-row-rich>.deck-row-roles{grid-column:4;grid-row:3;font-size:10px}
}

/* Guide shares the article body edge; its white frames are the sole header frame. */
#sitePage.entry-page:has(.cocodex-guide-header){padding:0!important;overflow:hidden}
#sitePage.entry-page:has(.cocodex-guide-header)>.site-corner{display:none!important}
#sitePage.entry-page:has(.cocodex-guide-header)>.entry-body{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:0 32px 32px}
#sitePage .entry-body>.cocodex-guide-header{margin-top:0;border-radius:0}
#sitePage.blog-article-page .article-heading>.editorial-signature{display:none}

/* Shared Blog/Guide header identity; article previews retain their common canvas ratio. */
#sitePage .cocodex-blog-header{align-items:center;justify-content:center}
#sitePage .cocodex-blog-header .blog-thumbnail-copy{margin:0;width:100%;max-width:100%;align-items:center;text-align:center;container-type:inline-size}
#sitePage .cocodex-blog-header .blog-thumbnail-copy>strong{font-size:clamp(30px,28cqw,80px);font-weight:900;line-height:1.05;color:#fff;margin:0;text-align:center;letter-spacing:normal}
#sitePage .cocodex-blog-header .blog-thumbnail-series{font-size:clamp(18px,2.2vw,26px);text-align:center;line-height:1.3;text-wrap:balance}
#sitePage .cocodex-blog-header::after{mask-image:linear-gradient(to bottom,#000 0%,#000 22%,rgba(0,0,0,.65) 46%,transparent 78%);-webkit-mask-image:linear-gradient(to bottom,#000 0%,#000 22%,rgba(0,0,0,.65) 46%,transparent 78%)}
#sitePage.blog-article-page{padding:0!important;overflow:hidden}
#sitePage.blog-article-page>.integrated-article{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:0 32px 32px}
#sitePage.blog-article-page .integrated-article>.cocodex-blog-header{width:calc(100% + 64px);margin:0 -32px 28px;min-height:340px;aspect-ratio:auto;padding:60px;border-radius:0}

/* Blog body heading follows the reading column; the hero keeps its full width. */
#sitePage.blog-article-page .article-heading{width:100%;max-width:660px;margin:0 auto 18px;text-align:left}
#sitePage.blog-article-page .article-heading>h1{font-size:var(--canonical-heading-size);line-height:1.1;margin:0;text-align:left}

/* Requested own-profile deck tile and account control alignment. */
.proto-deck-tile[data-proto-open]{padding-top:42px!important}
body .proto-deck-tile[data-proto-open]>h2{line-height:1.1;margin-top:0!important;margin-bottom:0!important}
body .proto-deck-tile[data-proto-open]>.proto-subtitle{margin-top:var(--name-subtitle-gap)!important;line-height:1.3}
.proto-deck-tile[data-proto-open]>.proto-public-likes{height:22.5px;z-index:8}
.proto-deck-tile[data-proto-open]>.proto-public-likes svg{width:18px!important;height:18px!important}
body>header #login,body>header #headerLogout{font-size:13px!important}
/* Related articles share the article reading column and thumbnail text edge. */
#sitePage .editorial-related,#sitePage #weiterlesen{width:100%;max-width:660px;margin-inline:auto;box-sizing:border-box}
#sitePage .editorial-related>h2,#sitePage #weiterlesen>h2{text-align:left}
#sitePage .editorial-related .site-article-preview,#sitePage #weiterlesen .site-article-preview{padding:16px!important;min-width:0;box-sizing:border-box}
#sitePage .dt-related .related-miniature{width:100%;margin:0}
#sitePage .dt-related .site-article-preview h3,#sitePage .dt-related .site-article-preview>p{text-align:left;margin-inline:0;overflow-wrap:break-word}

/* Shared editorial fans: pairs and three/four-card combos use the Deck-Tech angles. */
#sitePage :is(.news-card-pair,.dt-fan){display:flex;position:relative;justify-content:center;align-items:center;flex-wrap:nowrap;gap:0;width:min(600px,100%);max-width:none;height:auto;box-sizing:border-box;padding:24px 22px;margin:36px auto 48px;isolation:isolate;overflow:visible}
#sitePage :is(.news-card-pair,.dt-fan)>:is(figure,a){position:relative;inset:auto;flex:0 1 180px;min-width:0;width:180px;max-width:180px;margin:0!important;padding:0;border:0;background:none;z-index:1}
#sitePage :is(.news-card-pair,.dt-fan)>:is(figure,a)+:is(figure,a){margin-left:-36px!important}
#sitePage .news-card-pair>.news-card-reference>a{display:block;width:100%;transform:rotate(var(--fan-angle));transform-origin:center}
#sitePage .dt-fan>a{transform:rotate(var(--fan-angle))}
#sitePage :is(.news-card-pair,.dt-fan)>:first-child{--fan-angle:-14deg}
#sitePage :is(.news-card-pair,.dt-fan)>:nth-child(2){--fan-angle:12deg;z-index:2}
#sitePage :is(.news-card-pair,.dt-fan):has(>:nth-child(3))>:nth-child(2){--fan-angle:-2deg}
#sitePage :is(.news-card-pair,.dt-fan)>:nth-child(3){--fan-angle:12deg;z-index:3}
#sitePage :is(.news-card-pair,.dt-fan):has(>:nth-child(4))>:nth-child(2){--fan-angle:-5deg}
#sitePage :is(.news-card-pair,.dt-fan):has(>:nth-child(4))>:nth-child(3){--fan-angle:5deg}
#sitePage :is(.news-card-pair,.dt-fan)>:nth-child(4){--fan-angle:14deg;z-index:4}
#sitePage :is(.news-card-pair,.dt-fan) img{display:block;width:100%;height:auto;object-fit:contain;border-radius:7% / 5%;box-shadow:0 12px 20px -5px #0005}
#sitePage :is(.news-card-pair,.dt-fan) figcaption{display:none}
#sitePage :is(.news-card-pair,.dt-fan)>:is(:hover,:focus-within){z-index:10}
@media(max-width:579px){#sitePage :is(.news-card-pair,.dt-fan){padding:20px 16px;margin:30px auto 38px}#sitePage :is(.news-card-pair,.dt-fan)>:is(figure,a)+:is(figure,a){margin-left:-26px!important}}
#sitePage .news-official-reference{margin:32px 0 16px}
#sitePage .news-official-reference img{display:block;width:100%;height:auto}

/* Shared card hover also applies to News outside the Deck Tech body class. */
#dt-hover{position:fixed;z-index:9999;width:210px;padding:0;pointer-events:none;border:0;background:transparent;box-shadow:none;transform:none}

/* Narrow headers reserve separate space for brand, account actions and language. */
@media(max-width:720px){
 body>header{grid-template-columns:minmax(120px,1fr) minmax(0,max-content) auto!important;column-gap:8px!important}
 body>header .logo{min-width:0!important;max-width:190px!important;width:100%!important}
 body>header .logo img{display:block;max-width:100%!important;width:100%!important;height:auto!important}
 body>header #login{min-width:0!important;max-width:100%!important;white-space:normal!important;overflow-wrap:anywhere;line-height:1.35;text-align:center;padding-inline:0!important}
 body>header .header-account{min-width:0;max-width:100%;flex-wrap:wrap;justify-content:center}
 body>header .header-account #login{flex-basis:100%}
}

/* Clip the complete preview artwork, including composed editorial thumbnails. */
#sitePage .site-article-preview>.article-header-thumbnail,
#sitePage .site-article-preview .related-miniature{border-radius:12px;overflow:hidden}

/* Shared legal navigation: readable separators in the page body and footer. */
.legal-content nav,.footer{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;column-gap:.6rem;row-gap:.45rem;line-height:1.6}
.legal-separator{display:inline-block;flex:none}
.legal-content nav a,.footer a{white-space:normal}
.legal-content p a{overflow-wrap:anywhere}

.seo-breadcrumbs .seo-back{appearance:none;display:inline-flex;align-items:center;justify-content:center;flex:none;align-self:center;vertical-align:middle;width:24px;height:24px;padding:2px;margin:-4px 3px -4px 0;border:0;background:transparent;box-shadow:none;color:#777;cursor:pointer}
.seo-back svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.seo-breadcrumbs .seo-back:hover{color:#444;background:transparent}
.seo-back:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* Header account entry uses the established CocoDex link color. */
body>header #login,body>header #login:visited,body>header #login span{color:#864493!important;-webkit-text-fill-color:#864493}

#sitePage>.account-intro{text-align:center;margin:0 auto 24px;font-size:18px;line-height:1.5}
#sitePage .account-form-actions{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:12px;width:100%;grid-column:1/-1}
#sitePage #realAccount .account-form-actions .account-submit{margin:0;width:auto}
#sitePage #realAccount .account-form-actions [data-auth-mode]{background:transparent;border:0;box-shadow:none;text-decoration:underline;font-size:12px;padding:6px 0;white-space:normal;text-align:left;color:inherit}

/* October news: same 16:9 composition at every entry point. */
#sitePage.blog-article-page .integrated-article>.cocodex-blog-header.news-key-visual{aspect-ratio:16/9;min-height:0;height:auto;padding:clamp(20px,5vw,60px)}
#sitePage .blog-header-link:has(.news-key-visual){aspect-ratio:16/9;height:auto}
#sitePage .article-blog-canvas:has(.news-key-visual){height:450px}
#sitePage .blog-header-link .article-blog-canvas>.cocodex-blog-header.news-key-visual{height:450px;aspect-ratio:16/9}
#sitePage .related-miniature:has(.news-key-visual){aspect-ratio:16/9;height:auto}
#sitePage .related-miniature-canvas>.cocodex-blog-header.news-key-visual{height:281.25px;aspect-ratio:16/9}
/* Scale the mobile blog, news and guide lettering with its artwork, including scaled preview canvases. */
@media(max-width:600px){
 #sitePage .integrated-article>.cocodex-blog-header,#sitePage .entry-body>.cocodex-guide-header{padding-inline:clamp(20px,5vw,60px)}
 #sitePage .cocodex-blog-header .blog-thumbnail-copy{gap:4px}
 #sitePage .cocodex-blog-header .blog-thumbnail-logo{width:52%;height:auto}
 #sitePage .cocodex-blog-header .blog-thumbnail-copy>strong{font-size:18cqw}
 #sitePage .cocodex-blog-header .blog-thumbnail-series{font-size:16px}
 #sitePage .article-blog-canvas .cocodex-blog-header .blog-thumbnail-series{font-size:32px}
 #sitePage .related-miniature-canvas .cocodex-blog-header .blog-thumbnail-series{font-size:20px}
}

#sitePage:has(.news-key-visual) .article-heading>.editorial-signature{display:flex}
@media(max-width:600px){#sitePage:has(.news-key-visual) .article-prose{font-size:17px;line-height:1.65}#sitePage:has(.news-key-visual) .article-prose p{font-size:17px;line-height:1.65}#sitePage:has(.news-key-visual) .article-prose h2{font-size:24px;line-height:1.3}}

/* News close control: 20px inside the inner frame stroke at every viewport. */
#sitePage .news-key-visual>.blog-header-exit{top:calc(40px + var(--news-frame-stroke-offset,19.5px))!important;left:calc(40px + var(--news-frame-stroke-offset,19.5px))!important}

/* Keep the title clear of the fixed close control on narrow phones. */
@media(max-width:360px){#sitePage .integrated-article>.cocodex-blog-header .blog-thumbnail-copy>strong,#sitePage .entry-body>.cocodex-guide-header .blog-thumbnail-copy>strong{font-size:14.5cqw}}

/* Only the identity inside wide thumbnail templates grows to 120%. */
@media(min-width:1024px){
 #sitePage .cocodex-blog-header .blog-thumbnail-logo{width:clamp(124.8px,14.4vw,192px)}
 #sitePage .cocodex-blog-header .blog-thumbnail-copy>strong,#sitePage .cocodex-guide-header .blog-thumbnail-copy>h1{font-size:clamp(36px,33.6cqw,96px)}
 #sitePage .cocodex-blog-header .blog-thumbnail-series{font-size:clamp(21.6px,2.64vw,31.2px)}
}

/* Editorial heads follow their text height; equal space above and below the copy. */
#sitePage.blog-article-page .integrated-article>.cocodex-blog-header,
#sitePage.blog-article-page .integrated-article>.cocodex-blog-header.news-key-visual,
#sitePage .entry-body>.cocodex-guide-header{
 aspect-ratio:auto;min-height:0;height:auto;padding-block:clamp(50px,6vw,100px);
}
#sitePage .article-blog-canvas,#sitePage .related-miniature-canvas{height:auto}
#sitePage .blog-header-link .article-blog-canvas>.cocodex-blog-header,
#sitePage .blog-header-link .article-blog-canvas>.cocodex-blog-header.news-key-visual{
 aspect-ratio:auto;min-height:0;height:auto;padding-block:70px;
}
#sitePage .related-miniature-canvas>.cocodex-blog-header,
#sitePage .related-miniature-canvas>.cocodex-blog-header.news-key-visual{
 aspect-ratio:auto;min-height:0;height:auto;padding-block:50px;
}
#sitePage .integrated-article>.cocodex-blog-header>.blog-frame,
#sitePage .entry-body>.cocodex-guide-header>.blog-frame{
 top:clamp(16px,2vw,28px);width:clamp(72px,16vw,180px);max-height:calc(100% - 32px);object-fit:contain;object-position:top;
}
#sitePage .integrated-article>.cocodex-blog-header>.blog-frame-left,
#sitePage .entry-body>.cocodex-guide-header>.blog-frame-left{left:clamp(16px,2vw,28px)}
#sitePage .integrated-article>.cocodex-blog-header>.blog-frame-right,
#sitePage .entry-body>.cocodex-guide-header>.blog-frame-right{right:clamp(16px,2vw,28px)}
#sitePage .integrated-article>.cocodex-blog-header>.blog-header-exit,
#sitePage .entry-body>.cocodex-guide-header>.blog-header-exit{
 top:calc(clamp(16px,2vw,28px) + clamp(6.38px,1.418vw,15.96px) + 20px)!important;left:calc(clamp(16px,2vw,28px) + clamp(6.38px,1.418vw,15.96px) + 20px)!important;
}

/* Keep the account transition distinct from a signed-out screen. */
#accountStartupLoading{display:none}
html.site-starting.account-starting::after{display:none}
html.site-starting #accountStartupLoading{position:fixed;inset:0;z-index:2147483647;visibility:visible;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;background:#fff;color:#111;padding:24px;text-align:center}
.account-loading-mark{display:block;width:48px;height:48px;background:var(--cocodex-loading-art,url('/assets/cocodex-mark.svg?v=1')) center/contain no-repeat;animation:cocodex-loading 1s linear infinite}
#cocodexForegroundWait[open]{position:fixed;inset:0;width:100%;height:100%;height:100dvh;max-width:none;max-height:none;box-sizing:border-box;margin:0;border:0;border-radius:0;padding:0;background:transparent;color:#111;box-shadow:none;overflow:hidden}
#cocodexForegroundWait::backdrop{background:rgba(255,255,255,.60);-webkit-backdrop-filter:blur(5px);backdrop-filter:blur(5px)}
#cocodexForegroundWait>.account-loading-mark,html.site-starting #accountStartupLoading>.account-loading-mark{position:absolute;left:calc(50% - 24px);top:max(12px,calc(50% - 174px))}
#cocodexForegroundWait>p,html.site-starting #accountStartupLoading>p{position:absolute;top:calc(max(12px,50% - 174px) + 60px);left:16px;right:16px;margin:0;font:inherit;text-align:center}
#languageMenu [data-lang]{-webkit-tap-highlight-color:transparent}
@media(prefers-reduced-motion:reduce){.account-loading-mark{animation:none}}

/* SEO headings use the existing visual hierarchy. */
#directory-root .seo-directory-count{text-align:center;font-size:13px;font-weight:300;color:#666;margin:6px 0 12px}
#directory-root .directory-hero>h1{font-size:clamp(22px,3.6vw,44px)!important;max-width:calc(100% - 80px);margin-inline:auto!important}

.account-inline-loading{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:20px;padding:36px 20px;text-align:center}
.release-update-notice{position:fixed;bottom:16px;left:50%;transform:translateX(-50%);z-index:10000;max-width:calc(100% - 32px);padding:12px 16px;background:#fff;color:#111;border:1px solid #111;border-radius:10px;box-shadow:0 3px 14px #0002;display:flex;align-items:center;gap:12px}
.release-update-notice button{font:inherit;border-radius:6px;background:#111;color:#fff;padding:8px 12px;border:0;cursor:pointer}

/* Similar Coconut previews keep one fitted title line and stable card positions. */
body .similar-deck-grid .mini-deck-tile>h2{white-space:nowrap;text-overflow:clip;max-width:100%;min-width:0}

/* Filter reset occupies the same top-right slot in every popup. */
#cards .costs-panel:has(.filter-clear-choice){box-sizing:border-box}
#cards .costs-panel .filter-clear-choice{position:absolute;top:12px;right:12px;margin:0!important}
#cards .costs-panel>.ink-toggle,#cards .costs-panel>.value-tabs,#cards .costs-panel>.compound-filter-heading{display:flex;align-items:center;flex-wrap:wrap;min-height:32px;max-width:calc(100% - 44px);margin-right:44px}

/* Tag guides use native dialog centering, without the selection dialog translation. */
body #modal.tag-guide-modal{inset:0!important;margin:auto!important;transform:none!important;box-sizing:border-box;max-width:calc(100vw - 32px)!important;max-height:90dvh!important;overflow-y:auto!important;overscroll-behavior:contain;touch-action:pan-y}

/* News previews use the same content-height canvas as blogs, including bottom corners. */
#sitePage .article-blog-canvas:has(.news-key-visual),#sitePage .related-miniature-canvas:has(.news-key-visual){aspect-ratio:auto;height:auto}

/* Account controls share a row whenever the available width permits it. */
body>header .header-account #login{flex:0 1 auto;flex-basis:auto}
body>header .header-account #headerLogout{flex:0 0 auto;white-space:nowrap}

/* The language flag occupies the trailing corner without a separate chevron. */
body>header #languageButton{justify-content:flex-end;gap:0}

/* Saved articles reuse related-article artwork in compact, readable tiles. */
#sitePage .saved-article-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,220px),240px));gap:20px;justify-content:start}
#sitePage .saved-article-grid .site-article-preview{min-width:0;width:100%;margin:0}
#sitePage .saved-article-grid .related-miniature{width:100%;margin:0}
#sitePage .saved-external-thumbnail{aspect-ratio:16/9}
#sitePage .saved-external-thumbnail img{display:block;width:100%;height:100%;object-fit:cover}
#sitePage .saved-article-grid .site-article-preview>p{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* Keep the personal deck identity together, separate from the Coconut profile. */
.proto-editor .proto-deck-heading h2{margin-bottom:2px}
.proto-editor .proto-deck-byline{margin:2px auto 0;text-align:center;line-height:1.4}
.proto-editor .proto-deck-heading{margin-bottom:36px}
.proto-editor .proto-title-row{display:grid;grid-template-columns:minmax(0,1fr);width:100%;gap:4px;justify-items:center}
.proto-editor .proto-title-row #protoDeckName{width:100%;max-width:520px;padding-block:3px}
.proto-editor .proto-title-row .proto-deck-meta{position:absolute;right:0;top:0}
@media(max-width:720px){.proto-editor .proto-title-row .proto-deck-meta{position:static;grid-row:2}.proto-editor .proto-deck-heading{margin-bottom:28px}}
/* Remove the former upward pull that placed the Coconut heading against the author. */
.proto-editor #protoDeckTools{margin-bottom:0}
.proto-editor .proto-title-row .proto-deck-meta{position:static;grid-row:3}
.proto-editor .proto-title-row .proto-deck-byline{grid-row:2;margin:0}

@media(min-width:721px) and (max-width:1366px){.proto-editor .mainpanel .pair{align-self:start;padding-top:var(--stack-card-offset,16px)}}
@media(min-width:721px) and (max-width:1366px){body.proto-editor #commander.canonical-public-profile[data-view=profile] .mainpanel .pair{padding-top:var(--stack-card-offset,16px)!important}}

/* A single ranked card stays centered just like the editorial fallback card. */
#sitePage .weekly-card-single{grid-template-columns:minmax(0,1fr);width:75%;margin-inline:auto;box-sizing:border-box;padding:10px 0 14px}

/* Card-name links use the card ink in every article, also on hover/focus. */
#sitePage .article-prose a.news-card-link{color:var(--ink)!important;font-weight:500;text-decoration:none;border-bottom:1px solid currentColor}
#sitePage .article-prose a.news-card-link:hover{border-bottom-width:2px}
#sitePage .article-prose a.news-card-link:focus-visible{outline:2px solid currentColor;outline-offset:4px}

/* Individual deck preview: preserve geometry without inventing a keycard. */
.proto-pair-placeholder{display:block;visibility:hidden;aspect-ratio:5/7}
.proto-tile-actions{align-items:center;gap:6px}.proto-tile-actions button{width:44px;height:44px;flex:0 0 44px;display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;margin:0;padding:0}
.proto-tile-actions button svg{display:block;width:26px!important;height:26px!important;flex:0 0 26px}#protoTrayShare svg{width:20px;height:20px;flex-shrink:0}
#protoTrayShare{display:inline-flex;gap:8px;align-items:center;justify-content:center}
.proto-deck-heading #protoDeckName{font-weight:900;font-size:clamp(22px,3vw,36px)}
.profile-deck-results .proto-deck-tile{padding-inline:16px}

#commander [data-profile-card][hidden]{display:none!important}
.social-export-dialog button,.social-export-dialog a[download]{font:inherit;border:1px solid #111;border-radius:8px;padding:9px 14px;color:#111;background:#fff;text-decoration:none;cursor:pointer}
.social-export-dialog button[aria-pressed=true],.social-export-dialog a[download]{background:#111;color:#fff}
.social-export-dialog button:disabled{opacity:.5;cursor:wait}
.social-export-dialog::backdrop{background:#0009}
.social-export-dialog button:focus-visible,.social-export-dialog a:focus-visible{outline:3px solid #75258d;outline-offset:3px}

/* Community entry points reuse the existing action rows, never the share menu. */
a.discord-community-link{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;color:inherit;font:inherit;text-decoration:none;border-radius:6px;vertical-align:middle}
a.discord-community-link img{width:20px;height:20px;object-fit:contain;flex:0 0 20px}
a.discord-community-link:hover span{text-decoration:underline}
a.discord-community-link:focus-visible{outline:2px solid currentColor;outline-offset:3px}
a.discord-icon-only{width:44px;min-width:44px;padding:10px}
a.discord-icon-only span{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}

.community-discord-entry{display:flex;justify-content:center;margin:24px 0 8px}.community-discord-entry>.discord-community-link{font-size:14px}
.content-share>.discord-community-link{font-size:14px}
#protoDeckName{cursor:text;border-bottom:1px solid transparent}
#protoDeckName:hover,#protoDeckName:focus{border-bottom-color:currentColor}

/* Keep every footer item on the same visual center line, including Discord. */
body.site-mode .wrap .footer,body.site-mode .wrap>.footer,.footer{align-items:center}
.footer>a.discord-community-link{align-self:center;color:#864493}

/* Curated external resources in the existing similar-Coconuts panel. */
.coconut-external-guides{margin:24px 0;padding:20px 0;border-block:1px solid #ddd;text-align:left}
.coconut-external-guides h3{margin:0 0 16px;font-size:20px}.coconut-external-guides h4{margin:0 0 8px;font-size:17px;overflow-wrap:anywhere}
.coconut-external-guides p{margin:0 0 12px;font-size:14px}.coconut-external-guides a{color:#864493;text-decoration:underline;text-underline-offset:3px;display:inline-block;padding:8px 0}.coconut-external-guides a:focus-visible{outline:2px solid currentColor;outline-offset:4px}
.coconut-tile .coconut-external-guides{margin-bottom:0}
/* Inline rule symbols in deck profiles match the card-detail text size. */
#commander .rule-symbol img{width:20px;height:20px;max-width:none;object-fit:contain;vertical-align:middle}

/* Use the existing editorial thumbnail and section divider in Coconut guides. */
#commander .coconut-external-guides{border:0;padding:0}
#commander .coconut-own-guides{text-align:left;max-width:760px;margin:24px auto}
#commander .coconut-own-guides .site-article-preview{margin:24px 0;padding:0;min-width:0}
#commander .coconut-own-guides h4{font-size:22px;line-height:1.3;margin:20px 0 12px}
#commander .coconut-own-guides h4 a{color:inherit;text-decoration:none}
#commander .coconut-own-guides p{font-size:16px;line-height:1.7;margin:12px 0}
#commander .coconut-own-guides .guide-author{font-size:14px}
#commander .coconut-own-guides .article-read{display:inline-block;background:#111;color:#fff;padding:12px 20px;border-radius:8px;text-decoration:none}
#commander .coconut-own-guides .related-miniature{display:block;width:100%;overflow:hidden;position:relative;border-radius:14px 14px 0 0;margin:0;text-decoration:none;padding:0}
#commander .coconut-own-guides .related-miniature-canvas{width:500px;transform-origin:top left}
#commander .coconut-own-guides .cocodex-blog-header{position:relative;display:flex;align-items:center;justify-content:center;box-sizing:border-box;width:500px;height:281.25px!important;padding:40px 45px;isolation:isolate;color:white}
#commander .coconut-own-guides .blog-thumbnail-copy{position:relative;z-index:2;display:flex;flex-direction:column;gap:10px;align-items:center!important;text-align:center!important;width:100%;max-width:100%;margin:0}
#commander .coconut-own-guides .blog-thumbnail-logo{display:block;width:120px!important;height:auto!important;max-width:120px;filter:brightness(0) invert(1)}
#commander .coconut-own-guides .blog-thumbnail-copy>strong{font-size:36px!important;line-height:1.05!important;color:white;max-width:none!important;width:100%;font-weight:900;text-align:center}
#commander .coconut-own-guides .blog-thumbnail-series{font-size:14px!important;line-height:1.3;color:white;text-align:center}
#commander .coconut-own-guides .blog-frame{position:absolute;z-index:1;top:15px;width:90px;height:calc(100% - 30px);object-fit:fill;filter:brightness(0) invert(1);pointer-events:none}
#commander .coconut-own-guides .blog-frame-left{left:15px}#commander .coconut-own-guides .blog-frame-right{right:15px}
#commander .coconut-own-guides .spotlight-header-inks{display:flex;justify-content:center;align-items:center;gap:8px;margin:0}
#commander .coconut-own-guides .spotlight-header-inks img{width:24px!important;height:28px!important;object-fit:contain}

#commander .coconut-guides-panel .site-article-preview{padding:0 0 24px;border-radius:14px;overflow:hidden;max-width:760px;margin:24px auto;text-align:left}
#commander .coconut-guides-panel .site-article-preview>h4,#commander .coconut-guides-panel .site-article-preview>p,#commander .coconut-guides-panel .editorial-signature,#commander .coconut-guides-panel .article-action-row{margin-left:22px;margin-right:22px}
#commander .coconut-guides-panel .editorial-signature{display:flex;align-items:center;gap:14px;margin-block:24px}
#commander .coconut-guides-panel .editorial-signature>img{width:56px;height:56px;border-radius:50%;object-fit:cover;flex-shrink:0}
#commander .coconut-guides-panel .editorial-signature-line{display:flex;flex-direction:column;font-size:14px;line-height:1.5}
#commander .coconut-guides-panel .editorial-signature-line a{color:inherit;padding:0}
#commander .coconut-guides-panel .article-action-row{display:flex;align-items:center;flex-wrap:wrap;gap:16px}
#commander .coconut-guides-panel .content-share{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:0}
#commander .coconut-guides-panel .content-share-button{border:0;background:none;padding:6px;color:inherit;display:inline-flex;align-items:center;gap:4px}
#commander .coconut-guides-panel .content-share-button svg{width:24px;height:24px}
#commander .coconut-guides-panel .content-share-button>span{display:none}
#commander .coconut-guides-panel .article-read{background:#111;color:#fff;padding:12px 20px;border-radius:8px;text-decoration:none;font-size:16px}

/* Guide previews use corner frames and a shared aligned action row. */
#commander .coconut-own-guides .blog-frame{top:15px;width:110px;height:auto;max-height:none;object-fit:contain}
#commander .coconut-guides-panel .article-action-row{display:flex;align-items:center;justify-content:flex-start;gap:16px}
#commander .coconut-guides-panel .article-action-row>.article-read{display:inline-flex;align-items:center;justify-content:center;min-height:44px;box-sizing:border-box;margin:0;line-height:1.25}
#commander .coconut-guides-panel .content-share{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
#commander .coconut-guides-panel .content-share-button,#commander .coconut-guides-panel .content-share .discord-community-link{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;min-height:44px;box-sizing:border-box;padding:0;margin:0;border:0;flex-shrink:0;line-height:1}
#commander .coconut-guides-panel .content-share-button svg,#commander .coconut-guides-panel .content-share .discord-community-link img{display:block;width:24px;height:24px;margin:0}
#commander .coconut-guides-panel .content-share-status:empty{display:none}

/* Coconut profile actions share one baseline; community links live in articles. */
#commander>.rankbox{align-items:center}
#commander>.rankbox.has-profile-rating,#commander>.rankbox.has-profile-rating:has(#publicDeckActions){width:max-content;max-width:none;flex-wrap:nowrap;column-gap:9px}
#commander .profile-header-rating{display:flex;flex:0 0 auto;margin:0;min-width:max-content;align-items:center;justify-content:center;padding:0;min-height:44px;border:0;background:transparent;box-shadow:none;cursor:pointer}
#commander .profile-header-rating:focus-visible,#commander .tier:focus-visible{outline:2px solid #111;outline-offset:4px}
#commander a.tier{display:inline-flex;align-items:center;min-height:44px;color:inherit;text-decoration:none;cursor:pointer}
#commander .profile-header-rating .coconut-vote-stars{margin:0;gap:4px}
#commander .profile-header-rating svg{display:block;width:32px;height:32px}
#commander .profile-header-rating path[fill="none"]{fill:#fff}
#commander .has-profile-rating .rankblock{position:relative;line-height:1}
#commander .has-profile-rating .rankblock strong{display:block;line-height:1}
#commander .has-profile-rating .rankblock small{position:absolute;top:100%;right:0;width:max-content;margin-top:2px;line-height:1}
#commander .has-profile-rating .tier{line-height:1}
#commander .rankblock[hidden],#commander .rankdivider[hidden]{display:none}
@media(max-width:720px){
 #commander>.rankbox.has-profile-rating,#commander>.rankbox.has-profile-rating:has(#publicDeckActions){display:grid;grid-template-columns:repeat(5,max-content);width:max-content;column-gap:9px;row-gap:10px}
 #commander .profile-header-rating svg{width:clamp(20px,calc(10vw - 12px),27px);height:clamp(20px,calc(10vw - 12px),27px)}
 #commander .has-profile-rating .rankblock strong{font-size:clamp(16px,4.2vw,20px)}
 #commander .has-profile-rating .tier{font-size:clamp(16px,4.2vw,20px)}
 #commander .profile-header-rating .coconut-vote-stars{gap:3px}
 #commander .has-profile-rating>#publicDeckActions{grid-column:1/-1;justify-content:flex-end}
}
#publicDeckActions{display:flex;align-items:center;gap:12px}
#publicDeckActions button,#publicDeckActions a{display:inline-flex;align-items:center;justify-content:center;min-width:44px;height:44px;padding:0;margin:0;line-height:1;gap:6px}
#publicDeckActions svg,#publicDeckActions img{display:block;width:28px;height:28px;margin:0;object-fit:contain}

#protoImportChoices label{display:block;margin:12px 0}#protoImportChoices select{display:block;width:100%;margin-top:6px}
#commander .coconut-own-guides .article-read{gap:8px}
/* Three equal controls: heading above its selector, shared baseline. */
#sitePage.community-decks-page .community-display-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;width:100%;align-items:stretch;justify-content:stretch}
#sitePage.community-decks-page .community-display-tabs>label{display:grid;grid-template-rows:1.5em auto;gap:6px;min-width:0;text-align:left;line-height:1.3;overflow-wrap:anywhere}
#sitePage.community-decks-page .community-display-tabs select{width:100%;min-width:0;max-width:100%;margin:0;border-radius:8px;min-height:44px}
#sitePage.community-decks-page #communityDeckSearch select{border-radius:8px}
@media(max-width:600px){#sitePage.community-decks-page .community-display-tabs{gap:8px}#sitePage.community-decks-page .community-display-tabs>label{font-size:12px!important;grid-template-rows:2.6em auto}#sitePage.community-decks-page .community-display-tabs select{font-size:12px!important;padding-left:8px;padding-right:20px}}
/* One card-lift interaction for editorial cards, fans and deck guides. */
#sitePage#sitePage :is(.news-card-reference,.dt-inline-card)>a,
#sitePage#sitePage :is(.dt-fan,.dt-spotlight,.dt-header-fan)>a{transition:transform .18s ease;transform-origin:center}
#sitePage#sitePage :is(.news-card-reference,.dt-inline-card):is(:hover,:focus-within){z-index:10}
#sitePage#sitePage :is(.news-card-reference,.dt-inline-card)>a:is(:hover,:focus-visible),
#sitePage#sitePage :is(.dt-fan,.dt-spotlight,.dt-header-fan)>a:is(:hover,:focus-visible){transform:translateY(-12px) rotate(0deg)!important;z-index:10}
@media(prefers-reduced-motion:reduce){#sitePage#sitePage :is(.news-card-reference,.dt-inline-card)>a,#sitePage#sitePage :is(.dt-fan,.dt-spotlight,.dt-header-fan)>a{transition:none}}

/* Saved proxy collection: existing editorial typography, frames and separators. */
#sitePage .proxy-editorial h2{text-align:center}
#sitePage .proxy-editorial>p{font-size:16px;line-height:1.7;font-weight:400}
#sitePage .proxy-gallery{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px 20px;margin:36px 0}
#sitePage .proxy-gallery-card{display:flex;flex-direction:column;gap:12px;align-items:center;text-align:center;color:inherit;text-decoration:none;border:0;font-size:15px;line-height:1.35}
#sitePage .proxy-gallery-card img{width:100%;height:auto;aspect-ratio:1468/2048;object-fit:contain;border-radius:10px;box-shadow:0 9px 16px #0003;transition:transform .2s ease}
#sitePage .proxy-gallery-card:is(:hover,:focus-visible) img{transform:translateY(-12px);position:relative;z-index:2}
#sitePage .proxy-gallery-card:focus-visible{outline:2px solid #8d3da8;outline-offset:6px}
#sitePage .proxy-collection-header{background-position:center;background-size:cover}
#sitePage .proxy-collection-header .blog-thumbnail-copy strong{font-size:clamp(26px,4vw,60px)}
@media(max-width:700px){#sitePage .proxy-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 16px}}
@media(prefers-reduced-motion:reduce){#sitePage .proxy-gallery-card img{transition:none}}
#sitePage .integrated-article:has(.proxy-editorial)>h1{text-align:center}
#sitePage .proxy-gallery{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:700px){#sitePage .proxy-gallery{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Proxy gallery exception: large, calm previews for inspecting the designs. */
#sitePage .proxy-gallery{grid-template-columns:repeat(2,minmax(0,1fr));gap:36px 28px}
#sitePage .proxy-gallery-card img{box-shadow:0 3px 7px #0002;transition:none;transform:none}
#sitePage .proxy-gallery-card:is(:hover,:focus-visible) img{transform:none}
@media(max-width:520px){#sitePage .proxy-gallery{grid-template-columns:1fr;max-width:340px;margin-inline:auto;gap:30px}}

/* Only the proxy header artwork rotates; copy, brand and frames stay level. */
#sitePage .cocodex-blog-header.proxy-collection-header{isolation:isolate;overflow:hidden;background:#211c2b!important}
#sitePage .proxy-collection-header .proxy-header-motif{position:absolute;inset:-60% -12%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));align-items:center;gap:18px;transform:rotate(-20deg);pointer-events:none;z-index:-2;filter:none}
#sitePage .proxy-collection-header .proxy-header-motif img{display:block;width:100%;height:auto;max-width:100%;border-radius:10px;box-shadow:0 3px 6px #0002;filter:none}
#sitePage .proxy-collection-header::before{content:'';position:absolute;inset:0;background:linear-gradient(90deg,#08061252,#08061226);z-index:-1;backdrop-filter:none}
#sitePage .proxy-collection-header .blog-thumbnail-copy{position:relative;z-index:1}
/* Proxy previews share the 800 × 343 canvas of News, Spotlight and Blog. */
#sitePage .blog-header-link .article-blog-canvas>.proxy-collection-header{height:343px!important;min-height:343px!important;box-sizing:border-box;aspect-ratio:800/343;padding-block:50px}

/* Shared 800px thumbnail typography: independent of viewport-sized article headers. */
body #sitePage .article-header-thumbnail .cocodex-blog-header.news-key-visual .blog-thumbnail-copy>strong{
 font-size:64px!important;line-height:1.05!important;max-width:100%!important;
}
body #sitePage .article-header-thumbnail .cocodex-blog-header.news-key-visual .blog-thumbnail-logo{
 width:210px!important;max-width:210px!important;height:auto!important;
}
body #sitePage .article-header-thumbnail .cocodex-blog-header.news-key-visual .blog-thumbnail-series{
 font-size:18px!important;line-height:1.35!important;
}

.community-discord-entry{gap:16px;flex-wrap:wrap}.reddit-community-link img{object-fit:contain}

/* Guide artwork follows article headers; ink symbols are transparent artwork. */
#commander .coconut-own-guides .cocodex-blog-header{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}
#commander .coconut-own-guides .spotlight-header-inks img{background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;border-radius:0!important}

/* Public user deck statistics have one extra control in the frame. */
@media(max-width:720px){
 #commander[data-view="stats"] .analysisheading:has(>.author-deck-identity){padding-top:var(--user-deck-stats-extra,0px)}
 #commander[data-view="stats"] .analysisheading>.author-deck-identity{text-align:center}
 #commander[data-view="stats"]:has(.analysisheading>.author-deck-identity)>.stats-actions #statsSave{display:grid;place-items:center;width:44px;height:44px}
 #commander[data-view="stats"]:has(.analysisheading>.author-deck-identity)>.stats-actions #statsSave svg{width:26px;height:26px}
}

/* Bare close icons: touch must not inherit native button chrome or a focus box. */
body :is(.canonical-exit,#close,.back-x,.site-exit,.subview-exit,.profile-exit,.proto-picker-back,.social-close,#dt-close){
 appearance:none;-webkit-appearance:none;background:transparent!important;border:0!important;
 border-radius:0!important;box-shadow:none!important;text-shadow:none!important;filter:none!important;outline:none!important;
 -webkit-tap-highlight-color:transparent;z-index:30!important;
}
body :is(.canonical-exit,.social-close,.coconut-image-toolbar button):focus-visible>.canonical-exit-icon path{stroke-width:5}
#sitePage .dt-hero>.blog-header-exit{position:absolute!important;top:40px!important;left:40px!important;right:auto!important;color:#fff!important}

/* Standalone deck-tech card dialogs have no ornamental frame. */
body #dt-dialog #dt-close{position:absolute;left:20px!important;right:auto!important;top:20px!important;color:#111}

/* Approved community footer: one shared renderer for every language and route. */
body .footer.community-footer{display:block;position:relative;clear:both;width:100%;max-width:none;margin:110px 0 0;padding:0;border:0;background:#864493;color:#fff;text-align:left;font:500 16px/1.5 Avenir,'Avenir Next',sans-serif}

.community-footer a{color:inherit;text-decoration:none}
.community-footer a:hover{text-decoration:underline}
.community-footer a:focus-visible{outline:2px solid white;outline-offset:6px}

.community-footer .legal-separator{display:none}
.community-footer nav a{white-space:normal}

.cdf-community{position:relative;background:#864493;padding-top:18px}
.cdf-community:before{content:'';position:absolute;height:70px;left:0;right:0;top:-69px;background:#864493;clip-path:polygon(0 100%,100% 0,100% 100%)}
.cdf-inner{max-width:1280px;margin:auto;padding:52px 54px 55px;display:grid;grid-template-columns:1.1fr 1fr;gap:75px;align-items:center}
.cdf-kicker{font-size:12px;letter-spacing:.14em;font-weight:900;text-transform:uppercase;color:#ffffffbf}
.community-footer .cdf-community h2{font-size:44px;line-height:1.15;letter-spacing:-1px;margin:14px 0 17px;font-weight:900}
.cdf-community p{max-width:420px;font-size:16px;color:#ffffffd9;margin:0}
.cdf-social{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding-inline:16px;box-sizing:border-box}
.cdf-social a{display:flex;flex:1;flex-direction:column;align-items:center;text-align:center;gap:15px;padding:8px 0;background:none;border:0;border-radius:0;box-shadow:none}
.cdf-social a:hover{opacity:.8;text-decoration:none}
.cdf-social img,.cdf-social svg{width:53px;height:53px;object-fit:contain;flex:none}
.cdf-social img{filter:brightness(0) invert(1)}
/* Equal layout boxes; compensate Instagram’s full-height artwork optically. */
.cdf-social img[src="/assets/Instagram.svg"]{object-fit:contain;padding:5.5px;box-sizing:border-box}
.cdf-social-icon{display:flex;align-items:center;justify-content:center;width:60px;height:60px;flex:0 0 60px;line-height:0}
.cdf-social .cdf-social-icon :is(img,svg){display:block;margin:0;max-width:none;max-height:none}
.cdf-social .cdf-social-icon img[src="/assets/Reddit.svg"]{width:48px;height:48px}
.cdf-social .cdf-social-icon img[src="/assets/Instagram.svg"]{width:44px;height:44px;padding:0}
@media(max-width:760px){.cdf-social-icon{width:44px;height:44px;flex-basis:44px}.cdf-social .cdf-social-icon img[src="/assets/Reddit.svg"]{width:36px;height:36px}.cdf-social .cdf-social-icon img[src="/assets/Instagram.svg"]{width:33px;height:33px}}

.cdf-social strong{display:block;font-size:15px;font-weight:900}
.cdf-social small{display:block;font-size:12px;color:#ffffffbf;max-width:115px;margin:7px auto 0;line-height:1.45}
.community-footer{background:#864493;color:#fff}
.cdf-links{max-width:1172px;margin:auto;padding:44px 0 42px;border-top:1px solid #ffffff50;display:grid;grid-template-columns:1.5fr 1fr 1fr 1fr;gap:40px}
.cdf-brand img{width:200px;height:auto;filter:brightness(0) invert(1)}
.cdf-brand p{font-size:14px;color:#ffffffcc;max-width:235px;margin-top:18px}
.cdf-links h2{font-size:14px;color:#fff;font-weight:900;margin:0 0 18px}
.cdf-links nav{display:grid;align-content:start;gap:11px;font-size:14px;color:#ffffffdb}
.cdf-bottom{max-width:1172px;margin:auto;padding:22px 0 28px;border-top:1px solid #ffffff50;color:#ffffffbf;font-size:11px;display:flex;justify-content:space-between;gap:24px}
@media(max-width:760px){.cdf-community:before{height:38px;top:-37px}
.cdf-inner{padding:26px 24px 35px;grid-template-columns:1fr;gap:32px}
.community-footer .cdf-community h2{font-size:32px;letter-spacing:-.6px}
.cdf-community p{font-size:14px;max-width:320px}
.cdf-social{gap:8px;padding-inline:12px}
.cdf-social img,.cdf-social svg{width:40px;height:40px}
.cdf-social a{gap:12px;min-width:0}
.cdf-social strong{font-size:12px}
.cdf-social small{display:none}
.cdf-links{margin:0 24px;padding:30px 0;grid-template-columns:1fr 1fr;gap:27px 22px}
.cdf-brand{grid-column:1/-1}
.cdf-brand img{width:170px}
.cdf-brand p{max-width:280px;margin:12px 0 0}
.cdf-links h2{margin-bottom:12px}
.cdf-bottom{margin:0 24px;flex-direction:column;padding:20px 0 26px;gap:7px}
}


@media(max-width:1280px) and (min-width:761px){.community-footer .cdf-links,.community-footer .cdf-bottom{margin-inline:54px}
}

@media(max-width:760px){body .footer.community-footer{margin-top:75px}
.community-footer .cdf-social{flex-wrap:nowrap}
.community-footer .cdf-social a{min-height:44px}
}

/* Evergreen printable Coconut directory; assets load only when needed. */
#sitePage:has(.proxy-directory){background:linear-gradient(to bottom,#fff 0%,#e5e5e5 100%)}
.proxy-directory{max-width:1120px;margin:0 auto;padding:10px 0 30px}
.proxy-directory-intro{max-width:800px;margin:0 auto 34px;text-align:center;line-height:1.6}
.proxy-directory>h2{text-align:center;font-size:24px;margin:26px 0}
.proxy-directory-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(170px,1fr));gap:34px 22px;margin:28px 0 45px}
.proxy-directory-card{min-width:0;text-align:center;display:flex;flex-direction:column;align-items:center;gap:10px}
.proxy-directory-card>a:first-child{display:block;width:100%}
.proxy-directory-card img{display:block;width:100%;height:auto;aspect-ratio:5/7;object-fit:contain}
.proxy-directory-card h3{font-size:16px;line-height:1.3;margin:12px 0 0;overflow-wrap:anywhere}
.proxy-directory-card .proxy-pdf-link{margin-top:auto;display:block;padding:9px 15px;border-radius:6px;background:#111;color:white;font-size:13px}
.proxy-detail-link,.proxy-pending{font-size:12px;line-height:1.4}
.proxy-pending{color:#666}.proxy-directory>section{max-width:800px;margin:30px auto;line-height:1.6}
@media(max-width:600px){.proxy-directory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:28px 14px}.proxy-directory-card h3{font-size:14px}.proxy-directory-card .proxy-pdf-link{padding:9px;font-size:12px}#sitePage:has(.proxy-directory)>h1{font-size:clamp(24px,6vw,34px)}}

@media(min-width:761px) and (max-width:1050px){.community-footer .cdf-inner{grid-template-columns:1fr;gap:32px}.community-footer .cdf-social{max-width:640px;width:100%}}

/* Article actions start beneath the author, never centered as a second footer. */
#sitePage :is(.integrated-article,.site-article-preview)>.content-share{justify-content:flex-start;margin-left:0;margin-right:0;text-align:left}
#sitePage .article-action-row>.content-share{flex-wrap:wrap;min-width:0}
#sitePage :is(.integrated-article,.site-article-preview,.article-action-row) .content-share-status{text-align:left;left:0;right:auto;white-space:normal}

/* The latest matching article stays full size; layout controls affect only the rest. */
.editorial-featured{min-width:0;margin-bottom:24px}
.editorial-layout{display:flex;justify-content:center;gap:8px;margin:20px 0}
#sitePage .editorial-layout button{font:inherit;cursor:pointer}

@media(min-width:721px){
 .editorial-scroll.editorial-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:20px}
 .editorial-grid>.site-article-preview,.editorial-grid>.community-preview{min-width:0;padding:16px}
 .editorial-grid h3{font-size:clamp(18px,1.6vw,24px);line-height:1.25}
 .editorial-grid .article-header-thumbnail{width:100%;height:auto;aspect-ratio:800/343!important}
 .editorial-grid .article-action-row{gap:4px;flex-wrap:wrap}
}
@media(max-width:720px){.editorial-layout{display:none}.editorial-scroll.editorial-grid{display:flex;flex-direction:column}}
/* A translucent photo-toned shadow extends behind the creator headline. */
#sitePage.blog-article-page .angela-header .hero:after,
#sitePage :is(.article-blog-canvas,.related-miniature-canvas) .angela-article .hero:after{content:'';display:block;position:absolute;inset:0;z-index:0;pointer-events:none;background:linear-gradient(90deg,#28181199 0%,#28181170 38%,#28181100 72%)}
/* Keep the approved brown fade behind the type. Both layers clear the thumbnail portrait by 46.8% of its width. */
#sitePage :is(.article-blog-canvas,.related-miniature-canvas) .angela-article .hero::before,
#sitePage :is(.article-blog-canvas,.related-miniature-canvas) .angela-article .hero::after{right:40%}

.editorial-heading-row{display:flex;align-items:center;justify-content:space-between;gap:16px}
#sitePage.article-home .editorial-heading-row>.editorial-latest-title{margin:0!important;padding:0!important;text-align:left!important;font-size:24px!important;line-height:1.4!important;text-transform:uppercase}
.editorial-heading-row .editorial-layout{flex:none;margin:0;gap:6px}
#sitePage .editorial-layout button{display:flex;align-items:center;justify-content:center;width:40px;height:40px;padding:8px;border:0;border-radius:6px;background:transparent;color:#111}
#sitePage .editorial-layout button[aria-pressed=true]{background:#111;color:#fff}
@media(min-width:721px){
 #sitePage .editorial-scroll.editorial-grid{align-items:stretch;align-content:start}
 #sitePage .editorial-grid>:is(.site-article-preview,.community-preview){height:100%;box-sizing:border-box;overflow:hidden;display:flex;flex-direction:column;gap:0;margin:0!important}
 #sitePage .editorial-grid>[hidden]{display:none!important}
 #sitePage .editorial-grid :is(.article-header-thumbnail,.editorial-image){flex-shrink:0;width:100%;aspect-ratio:800/343;overflow:hidden}
 #sitePage .editorial-grid h3{font-size:21px;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;overflow:hidden}
 #sitePage .editorial-grid>:is(.site-article-preview,.community-preview)>p:not(.community-source){font-size:15px;line-height:1.6;height:72px;min-height:72px;margin:0 0 16px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
 #sitePage .editorial-grid .editorial-signature{margin-top:auto;flex-shrink:0}
 #sitePage .editorial-grid .article-action-row{flex-shrink:0;align-content:flex-start}
}
/* Editorial images fill the body width; straight lower edge, no lower rounding. */
#sitePage .site-article-preview{--editorial-inset:24px}
#sitePage .site-article-preview>.article-header-thumbnail{width:calc(100% + var(--editorial-inset)*2)!important;max-width:none;margin:calc(-1 * var(--editorial-inset)) calc(-1 * var(--editorial-inset)) 18px;flex-shrink:0;border-radius:16px 16px 0 0;clip-path:none}
#sitePage .integrated-article>:is(.cocodex-blog-header,.dt-hero,.coconut-spotlight-header,.proxy-collection-header),#sitePage.dt-page>.dt-hero{clip-path:none}
@media(min-width:721px){#sitePage .editorial-grid>.site-article-preview{--editorial-inset:16px}}
@media(min-width:721px){
 #sitePage .editorial-grid>:is(.site-article-preview,.community-preview){padding:16px!important}
 #sitePage .editorial-grid .article-action-row{display:flex;flex-direction:column;align-items:flex-start;gap:8px}
 #sitePage .editorial-grid .article-action-row>.content-share{display:flex;flex-direction:row;flex-wrap:nowrap!important;gap:2px;width:100%;justify-content:flex-start}
 #sitePage .editorial-grid .content-share-button,#sitePage .editorial-grid .discord-community-link{flex:0 0 26px!important;width:26px!important;min-width:26px;min-height:34px;padding:3px!important;gap:1px;margin:0}
 #sitePage .editorial-grid .content-share-button svg,#sitePage .editorial-grid .discord-community-link img{width:18px!important;height:18px!important;flex-basis:18px}
 #sitePage .editorial-grid .article-like b{font-size:10px}
 #sitePage .editorial-grid .article-video-thumbnail{display:none}
}

@media(min-width:721px){#sitePage .editorial-grid .community-source{font-size:11px;line-height:1.4;max-height:32px;overflow:hidden;margin:8px 0}#sitePage .editorial-grid .external-byline{font-size:11px;line-height:1.35;margin-top:auto}#sitePage .editorial-grid .editorial-signature{font-size:11px;line-height:1.35}}

#sitePage .site-article-preview>.article-header-thumbnail,
#sitePage .integrated-article>:is(.cocodex-blog-header,.dt-hero,.coconut-spotlight-header,.proxy-collection-header),
#sitePage.dt-page>.dt-hero{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important;clip-path:none}
#sitePage .article-header-thumbnail :is(.cocodex-blog-header,.hero,.dt-hero),
#sitePage .integrated-article>.cocodex-blog-header .hero{border-bottom-left-radius:0!important;border-bottom-right-radius:0!important}
/* Compact, aligned card endings and the same image treatment for official articles. */
#sitePage .community-preview.official-intro{--editorial-inset:24px}
#sitePage .community-preview.official-intro>.editorial-image{display:block;width:calc(100% + var(--editorial-inset)*2)!important;max-width:none;margin:calc(-1 * var(--editorial-inset)) calc(-1 * var(--editorial-inset)) 18px;aspect-ratio:800/343;overflow:hidden;border-radius:16px 16px 0 0}
#sitePage .community-preview.official-intro>.editorial-image img{display:block;width:100%;height:100%;object-fit:cover;border-radius:0}
@media(min-width:721px){


 #sitePage .editorial-grid>.official-intro{--editorial-inset:16px}

 #sitePage .editorial-grid .editorial-signature,#sitePage .editorial-grid .external-byline{margin-top:0}
 #sitePage .editorial-grid .article-action-row{min-height:72px}
}
@media(min-width:1100px){
 #sitePage .editorial-grid .article-action-row{flex-direction:row;flex-wrap:nowrap;align-items:center;gap:6px;min-height:44px}
 #sitePage .editorial-grid .article-action-row>.content-share{width:auto;flex:1 1 auto;gap:1px}
 #sitePage .editorial-grid .article-action-row>.article-read,#sitePage .editorial-grid .article-action-row>.community-open{font-size:11px;padding:8px;flex-shrink:0}
 #sitePage .editorial-grid .content-share-button,#sitePage .editorial-grid .discord-community-link{width:28px!important;flex-basis:28px!important;min-width:28px}
 #sitePage .editorial-grid .content-share-button svg,#sitePage .editorial-grid .discord-community-link img{width:20px!important;height:20px!important;flex-basis:20px}
}

/* Compact editorial overview: plain purple view icons and tighter reading rhythm. */
#sitePage .editorial-layout button,#sitePage .editorial-layout button[aria-pressed=true],#sitePage .editorial-layout button:hover{color:#864493;background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0;padding:4px;width:32px;height:32px;opacity:1}
#sitePage .editorial-layout button svg{width:24px;height:24px}
#sitePage .editorial-layout button[aria-pressed=true] svg{stroke-width:2.5}
#sitePage .editorial-layout button:focus-visible{outline:2px solid #864493;outline-offset:2px}
.editorial-heading-row{margin-bottom:0}
#sitePage .editorial-heading-divider{height:0;border:0;border-top:1px solid #bbb;background:none;margin:6px 0 14px}
#sitePage .official-intro>.editorial-image{margin-bottom:6px}
#sitePage .official-intro>.community-source{margin-top:5px}
#sitePage .cocodex-intro-video .community-channel{justify-content:flex-start;text-align:left}
#sitePage .cocodex-intro-video .community-channel strong,#sitePage .cocodex-intro-video .community-channel>span{text-align:left}
@media(min-width:721px){
 #sitePage .editorial-scroll.editorial-grid{grid-auto-rows:490px}
 #sitePage .editorial-grid>:is(.site-article-preview,.community-preview){max-height:490px}
 #sitePage .editorial-grid h3{height:52.5px;min-height:52.5px;-webkit-line-clamp:2;margin:10px 0 8px}
 #sitePage .editorial-grid>:is(.site-article-preview,.community-preview)>p:not(.community-source){margin-bottom:8px}
 #sitePage .editorial-grid .editorial-action-divider{margin:8px 0}
 #sitePage .editorial-grid .article-action-row{margin-top:8px}
}

@media(min-width:721px){#sitePage .editorial-grid>.official-intro>p:not(.community-source){height:48px;min-height:48px;-webkit-line-clamp:2}}

#sitePage .editorial-heading-row .editorial-layout{gap:12px}
#sitePage .editorial-heading-row .editorial-layout button{width:44px;height:44px;min-width:44px;padding:5px;flex:0 0 44px;color:#864493!important}
#sitePage .editorial-heading-row .editorial-layout button svg{display:block;width:34px!important;height:34px!important;min-width:34px;max-width:none;flex:0 0 34px;stroke:currentColor;stroke-width:2.2}
#sitePage .editorial-heading-row .editorial-layout button[aria-pressed=true] svg{stroke-width:3}

/* Keep the official source credit readable without changing other card text rows. */
@media(min-width:721px){#sitePage .editorial-grid>.official-intro>.community-source{flex:0 0 auto;min-height:17px;max-height:none;line-height:17px;overflow:visible;margin:5px 0 0}
 #sitePage .editorial-grid>.official-intro>h3{margin-top:6px;flex-shrink:0}}
@media(min-width:721px) and (max-width:1099px){
 #sitePage .editorial-grid>.official-intro>h3{height:28px;min-height:28px;font-size:18px;line-height:24px;-webkit-line-clamp:1}
}

#sitePage .news-card-pair:not(:has(>:nth-child(2)))>:first-child{--fan-angle:0deg}

/* Intro channel uses the established black YouTube link, with stacked left-aligned copy. */
#sitePage .cocodex-intro-video .community-channel{display:flex;align-items:center;gap:13px;box-sizing:border-box;width:100%;padding:10px 22px;border:0;border-radius:5px;background:#111;color:#fff!important;box-shadow:none;line-height:1.4}
#sitePage .cocodex-intro-video .community-channel>span{display:flex;flex-direction:column;align-items:flex-start;gap:2px;margin:0;min-width:0}
#sitePage .cocodex-intro-video .community-channel>span>span{display:block;margin:0;text-align:left;font-size:13px;font-weight:400;color:inherit}

/* All articles share the approved compact related-article tiles in a separate body. */
#sitePage>.editorial-related-body{margin:36px 0 0;padding:28px;background:#fff;border-radius:16px;box-shadow:0 8px 24px #0001}
#sitePage>.editorial-related-body>h2{text-align:center;margin:0 0 24px}
#sitePage .editorial-related-body .dt-related{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
#sitePage .editorial-related-body .site-article-preview{min-width:0;overflow:hidden;margin:0;padding:16px;display:flex;flex-direction:column}
#sitePage .editorial-related-body .article-action-row{margin-top:auto;flex-wrap:wrap;min-height:0}
#sitePage .editorial-related-body .content-share{flex-wrap:nowrap;gap:2px}
@media(max-width:1100px){#sitePage .editorial-related-body .dt-related{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){#sitePage>.editorial-related-body{padding:16px}#sitePage .editorial-related-body .dt-related{grid-template-columns:1fr}}
#sitePage>.editorial-related-body,#sitePage>#weiterlesen.editorial-related-body{width:100%;max-width:none;box-sizing:border-box;grid-column:1/-1}
#sitePage:has(>.integrated-article):has(>.editorial-related-body){background:transparent;box-shadow:none}
#sitePage:has(>.editorial-related-body)>.integrated-article{background:white;border-radius:16px;overflow:hidden;box-shadow:0 8px 24px #0001}
#sitePage .editorial-related-body .site-article-preview{max-height:none!important}
#sitePage .editorial-related-body .article-action-row{flex-shrink:0}
#sitePage .editorial-related-body .site-article-preview{--editorial-inset:16px}
#sitePage .editorial-related-body .article-header-thumbnail{border-radius:16px 16px 0 0!important}
#sitePage .editorial-related-body .article-header-thumbnail :is(.cocodex-blog-header,.hero,.dt-hero){border-radius:0!important}

.metric .track.metric-unavailable{display:grid;place-content:center;color:#444;font-size:10px;line-height:1}
.inclusion-values{display:flex;flex-direction:column;min-width:0}
#directory-root .coconut-tile[hidden]{display:none!important}
#directory-root .directory-whole-pair:has(+.directory-tool){min-height:0}
#directory-root .directory-whole-pair+.directory-tool{margin-top:calc(-16px - 4%);z-index:4}
#directory-root .coconut-tile:has(>.directory-tool[data-open-coconut="nick"]){--name-subtitle-gap:1px}
#directory-root .coconut-tile:has(>.directory-tool[data-open-coconut="nick"]) .directory-tile-heading :is(h2,h2+p){height:auto;min-height:0}
#directory-root .directory-whole-pair[data-open-coconut="nick"]{padding-top:23px}
#directory-root .directory-tool[data-open-coconut="nick"]+.directory-tile-footer{margin-top:0!important;padding-top:14px}

/* Deck search uses the visible keyboard viewport. Outside taps hit only the dismiss layer. */
#query[aria-expanded="true"],#globalSearch[aria-expanded="true"],#siteQueryNew[aria-expanded="true"]{position:relative;z-index:100}
.search-dismiss{position:fixed;inset:0;z-index:2147483000;background:transparent;touch-action:none}
.search-dismiss[hidden]{display:none}
#cardSearchSuggestions{z-index:2147483001;box-sizing:border-box;overflow:hidden;padding:0}
#cardSearchSuggestions:not([hidden]){display:flex;flex-direction:column}
.search-overview-head{flex:none;touch-action:none;display:flex;align-items:center;justify-content:space-between;padding:0 6px 0 16px;border-bottom:1px solid #ddd;font-size:14px;font-weight:700}
#cardSearchSuggestions [data-search-close]{width:44px;height:44px;display:grid;place-items:center;padding:0;background:transparent;border:0;box-shadow:none}
#cardSearchSuggestions [data-search-close] img{width:22px;height:22px}
#cardSearchSuggestions [data-search-close]:focus-visible{outline:2px solid #111;outline-offset:-5px}
@media(max-width:720px){
 body.proto-editor:has(:is(#query,#globalSearch):focus) #prototypeTray{bottom:var(--keyboard-inset,0px);left:50%;right:auto;transform:translateX(-50%);width:max-content;max-width:calc(100% - 24px);margin-bottom:6px;padding:4px 14px;gap:0;border:1px solid #bbb;border-radius:18px;background:#fff;box-shadow:0 2px 6px #0001}
 body.proto-editor:has(:is(#query,#globalSearch):focus) #prototypeTray>:not(#protoTrayStats),body.proto-editor:has(:is(#query,#globalSearch):focus) #protoTrayStats small{display:none!important}
 body.proto-editor:has(:is(#query,#globalSearch):focus) #protoTrayStats{flex:none;width:auto;min-height:30px}
}
.search-hit-list{overflow-y:auto;min-height:0;padding:4px 8px 8px;overscroll-behavior:contain;touch-action:pan-y}
:is(#globalSearch,#query,#siteQueryNew)::-webkit-search-cancel-button{
 -webkit-appearance:none;appearance:none;width:24px;height:24px;cursor:pointer;
 background-color:#864493;-webkit-mask:url(/assets/CocoDex_Exit.svg) center/contain no-repeat;mask:url(/assets/CocoDex_Exit.svg) center/contain no-repeat
}
#cardSearchSuggestions [data-search-card]{display:grid;grid-template-columns:44px 38px minmax(0,1fr);column-gap:8px;row-gap:2px;align-items:center;min-height:56px}
.search-hit-art{grid-area:1/1/span 2/2;position:relative;display:block;width:44px;height:44px;border-radius:50%;overflow:hidden;background:#eeeced url(/assets/cocodex-app-icon.svg) center/46% no-repeat}
.search-hit-art img{position:absolute;left:50%;top:50%;width:180%;max-width:none;height:auto;transform:translate(-50%,-30%)}
.search-hit-art img:not([src]),.search-hit-art img[hidden]{visibility:hidden}
.search-hit-art.location-art img{transform:translate(-50%,-50%) rotate(90deg) translateX(16%)}
#cardSearchSuggestions [data-search-card]>b{grid-column:3;overflow-wrap:anywhere}
#cardSearchSuggestions .catalog-hit-meta{grid-column:3;gap:6px;margin:0;flex-wrap:wrap;line-height:1.2}
#cardSearchSuggestions .catalog-hit-meta .deck-inks{margin-inline-start:auto}
#cardSearchSuggestions .catalog-hit-meta .deck-inks img{width:18px;height:18px}
.search-hit-cost{grid-area:1/2/span 2/3;display:grid;place-items:center;width:38px;height:38px}
.search-hit-cost img,.search-hit-cost b{grid-area:1/1}
.search-hit-cost img{width:100%;height:100%}
.search-hit-cost b{z-index:1;color:#111;font-size:14px;font-weight:800;line-height:1;font-variant-numeric:tabular-nums}
.search-hit-cost.uninkable b{color:#fff}
.search-hit-stat{display:inline-flex;align-items:center;gap:3px;white-space:nowrap}
.search-hit-stat img{width:16px;height:16px}
@media(max-width:1024px),(hover:none) and (pointer:coarse) and (max-width:1366px){
 #globalSearch,#cards.deck-workspace .controls #query,#siteQueryNew{font-size:16px}
 #cards.deck-workspace{display:flex;flex-direction:column}
 #cards.deck-workspace>.sidebar{position:static;width:100%;max-width:none;box-sizing:border-box}
 #categoryLinks.inner-scroll-content{display:block;overflow-x:hidden;max-height:min(48dvh,400px)!important}
 #categoryLinks .category-checkbox-row{width:100%;box-sizing:border-box;flex-wrap:nowrap}
 #categoryDrawer>.inner-scroll>.inner-scroll-rail{writing-mode:vertical-lr;direction:ltr}
 #categoryDrawer:not([open])>.inner-scroll{display:none}
}
#modal.card-view-modal #close{min-width:44px;min-height:44px;touch-action:manipulation}

#modal.card-view-modal.pinch-view #close{left:var(--visible-x)!important;top:var(--visible-y)!important}

/* Deckliste & Statistik sizes to the list column, including when the editor adds quantity controls. */
.stats-reference-list{container-type:inline-size;min-width:0;--stats-art-size:44px;--stats-row-gap:8px}
.stats-reference-list .editable-deck-row{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;border-bottom:1px solid #ddd}
.stats-reference-list .editable-deck-row:has(.stats-deck-row[hidden]){display:none}
.stats-reference-list .deck-quantity-actions{display:flex;align-items:center;gap:2px}
.stats-reference-list .deck-quantity-actions button{display:grid;place-items:center;width:34px;height:34px;padding:0;line-height:1;color:#111;touch-action:manipulation}
.stats-reference-list .deck-quantity-actions button:disabled{opacity:.38}
.stats-reference-list .deck-list .stats-deck-row:not([hidden]){display:grid;min-width:0;grid-template-columns:var(--stats-art-size) max-content max-content minmax(0,1.45fr) minmax(0,1fr)!important;grid-template-areas:"art cost inks name roles" "qty . . name roles";align-items:center;gap:3px var(--stats-row-gap)!important;padding:9px 2px!important;overflow-wrap:anywhere;text-align:left}
.stats-reference-list .editable-deck-row .stats-deck-row{border-bottom:none!important}
.stats-reference-list .deck-list .stats-deck-row>.deck-row-roles{grid-area:roles;display:flex;flex-wrap:wrap;align-content:center;gap:3px 5px;min-width:0}
.stats-deck-row>.deck-row-roles>span{max-width:100%;white-space:normal;overflow-wrap:anywhere}
.stats-deck-row>b{grid-area:qty;justify-self:center;align-self:start}
.stats-row-art{grid-area:art;align-self:end;display:block;position:relative;width:var(--stats-art-size);height:var(--stats-art-size);border-radius:50%;overflow:hidden;background:#eee url(/assets/cocodex-app-icon.svg) center/45% no-repeat}
.stats-row-art img{position:absolute;left:50%;top:50%;width:180%;max-width:none;height:auto;transform:translate(-50%,-30%)}
.stats-row-art.location-art img{transform:translate(-50%,-50%) rotate(90deg) translateX(16%)}
.stats-deck-row>.deck-cost{grid-area:cost}
.stats-deck-row>.deck-inks{grid-area:inks;align-items:center;gap:2px}
.stats-deck-row>.deck-inks img{width:18px;height:18px}
.stats-deck-row .deck-row-name{grid-area:name;justify-self:start;gap:1px}
.stats-deck-row .deck-row-name .deck-row-subtitle{font-size:.88em!important}
@container (max-width:570px){
 .stats-reference-list .deck-quantity-actions{flex-direction:column}
 .stats-reference-list .editable-deck-row{gap:5px}
 .stats-deck-row{--stats-art-size:38px;--stats-row-gap:6px}
}
@container (max-width:260px){
 .stats-deck-row{--stats-row-gap:4px}
 .stats-deck-row>.deck-inks{flex-direction:column}
}

html:has(body.proto-editor){overflow-anchor:none}
@media (pointer:coarse),(max-width:720px){
 .stats-reference-list .deck-quantity-actions button{position:relative;width:40px;height:44px;border:0;background:transparent}
 .stats-reference-list .deck-quantity-actions button::before{content:"";position:absolute;inset:50% auto auto 50%;width:26px;height:26px;box-sizing:border-box;border:1px solid #aaa;border-radius:50%;transform:translate(-50%,-50%);pointer-events:none}
}

/* The fifth catalog field is the rightmost on desktop and leftmost on phones. */
#sitePage #catalogTagMenu .costs-panel{left:auto;right:0;box-sizing:border-box}
#catalogTagMenu .catalog-ranking-tags{display:grid;gap:4px;margin-bottom:10px}
#catalogTagMenu .catalog-ranking-tags button{min-height:36px;text-align:left}
#catalogTagSummary{overflow-wrap:anywhere}
@media(max-width:600px){#sitePage #catalogTagMenu .costs-panel{left:0!important;right:auto!important}#catalogTagMenu .catalog-ranking-tags button{min-height:44px}}

/* Deck editor: keep the confirmation available while browsing card tags. */
#modal.deck-tag-picker { overflow:hidden; }
#modal.deck-tag-picker #modalContent {
  display:flex; flex-direction:column; box-sizing:border-box; min-height:0;
  height:min(670px,calc(90dvh - 124px));
}
#modal.deck-tag-picker .deck-tag-scroll {
  display:flex; flex-direction:column; flex:1 1 0; min-height:0; overflow:auto; overscroll-behavior:contain;
  scrollbar-width:thin;
}
#modal.deck-tag-picker .deck-tag-scroll > * {flex:none;}
#modal.deck-tag-picker #tagPickerTitle {line-height:1.05;margin:0 0 12px!important;}
#modal.deck-tag-picker .deck-tag-tools {display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:8px;}
#modal.deck-tag-picker #protoAutoTags {justify-self:end;margin:0;min-height:36px;padding:7px 10px;font-size:14px;line-height:1.25;}
#modal.deck-tag-picker #protoTagHeading {font-size:14px;margin:0;}
#modal.deck-tag-picker .picked-tag-strip {display:flex;justify-content:flex-start;align-content:start;gap:6px;margin:8px 0;max-height:clamp(78px,16dvh,146px);overflow:auto;scrollbar-width:thin;}
#modal.deck-tag-picker .picked-tag-strip:empty {display:none;}
#modal.deck-tag-picker .picked-tag-strip button {display:inline-flex;align-items:center;gap:8px;min-height:36px;max-width:100%;padding:6px 10px;font:600 14px/1.2 Avenir,sans-serif;overflow-wrap:anywhere;color:white;background:#111;border:1px solid #111;text-align:left;}
#modal.deck-tag-picker .picked-tag-strip button span {font-size:18px;line-height:1;}
#modal.deck-tag-picker :is(#protoTagChoices,#publicTagChoices) button[aria-pressed=true] {background:#111;color:white;border-color:#111;}
#modal.deck-tag-picker :is(#protoTagSearch,#publicTagSearch) {width:100%;box-sizing:border-box;margin:8px 0;}
#modal.deck-tag-picker .deck-tag-browser {display:grid;grid-template-columns:28px minmax(0,1fr);gap:10px;flex:1 0 min(172px,30dvh);min-width:0;min-height:0;}
#modal.deck-tag-picker #publicTagChoices {display:flex;align-content:flex-start;flex:1 0 min(172px,30dvh);margin:0;overflow:auto;scrollbar-width:thin;}
#modal.deck-tag-picker #publicTagsDone {margin-inline-start:auto;}
/* Keep the visible mark on the shared frame inset and extend the touch target around it. */
body #modal.deck-tag-picker #close.canonical-exit::after {content:"";display:block!important;position:absolute;inset:-12px;width:auto;height:auto;background:transparent;transform:none;}
#modal.deck-tag-picker .deck-tag-index,
#modal.deck-tag-picker #protoTagChoices {
  overflow:auto; overscroll-behavior:contain; scrollbar-width:thin; margin:0;
}
#modal.deck-tag-picker .deck-tag-index {
  display:flex; flex-direction:column; align-items:stretch; border-right:1px solid #ccc;
  scrollbar-width:none;
}
#modal.deck-tag-picker .deck-tag-index button {
  border:0; border-radius:0; background:none; color:#111; font:inherit; font-size:13px;
  font-weight:700; min-height:27px; padding:2px; cursor:pointer;
}
#modal.deck-tag-picker #protoTagChoices { display:block; text-align:left; }
#modal.deck-tag-picker .deck-tag-group {display:flex; flex-wrap:wrap; gap:7px; margin:0 0 12px;}
#modal.deck-tag-picker .deck-tag-foot {
  flex:none; display:flex; flex-wrap:wrap; gap:8px; align-items:center; justify-content:space-between;
  padding-top:12px; margin-top:10px; border-top:1px solid #ccc;
}
#modal.deck-tag-picker .deck-tag-foot button {margin:0; min-height:38px;}
#modal.deck-tag-picker #protoCreateTag {background:white; color:#111;}
#modal.editor-tag-picker #editorCardTag select {min-width:0; max-width:100%;}
#modal.editor-tag-picker #editorMatchCount {text-align:center; margin-bottom:4px;}

#commander .gameplan-tags:has(#protoMoreTags) {position:relative;z-index:2;}

@media(max-width:360px) {
  #modal.deck-tag-picker .deck-tag-foot {flex-wrap:nowrap;}
  #modal.deck-tag-picker #protoCreateTag {min-width:0; padding:6px 8px;}
}

#modal.deck-tag-picker .deck-tag-label {margin:2px 0 6px;text-align:left;font:inherit;font-size:13px;font-weight:700;}


@media(max-width:720px){
 .proto-editor .proto-deck-meta #protoVisibility {
  appearance:none;-webkit-appearance:none;box-sizing:border-box;flex:0 0 auto;
  min-width:7.5em;min-height:44px;line-height:1.25;padding:8px 30px 8px 12px;
  border:1px solid #aaa;border-radius:7px;color:#111;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='18' viewBox='0 0 14 18'%3E%3Cpath d='m3 7 4-4 4 4m-8 4 4 4 4-4' fill='none' stroke='%23111' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat right 10px center;
 }
}
@media(min-width:1280px){
 #directory-root>.coconut-directory{grid-template-columns:repeat(4,minmax(0,1fr));gap:clamp(16px,1.45vw,24px);}
}
