/*
Theme Name: MCPE.VN
Version: 0.6.1
Description: Bố cục và tương tác từ mã demo gốc, dùng dữ liệu WordPress và MCPE.VN Core.
Requires at least: 6.5
Requires PHP: 7.4
Author: DHV
License: GPL-2.0-or-later
Text Domain: mcpe-hub
*/
/* Only data-safety rules; all visual rules come from the original demo CSS. */
.mcpe-checksum{overflow-wrap:anywhere;font-size:11.4px}.body-copy img{max-width:100%;height:auto}.body-copy pre{overflow:auto}.body-copy table{width:100%;border-collapse:collapse}.body-copy td,.body-copy th{padding:10px;border-bottom:1px solid var(--line)}[aria-busy="true"]{cursor:progress}.compatibility ul{padding-left:20px}
.category-icon.scripts{background:#e4f1ea;color:#3f8a5f}

/* Collapse older releases after the first five. */
.mcpe-version-toggle > summary{display:flex;align-items:center;justify-content:space-between;gap:12px;cursor:pointer;list-style:none;min-height:48px;margin:16px 0 4px;padding:12px 18px;color:var(--green,#009b58);font-size:13.3px;font-weight:600;line-height:1.5;background:#e8f5ed;border:1px solid #cbe8d7;border-radius:12px;transition:background .18s,border-color .18s}
.mcpe-version-toggle > summary::-webkit-details-marker{display:none}
.mcpe-version-toggle > summary .versions-hide{display:none}
.mcpe-version-toggle[open] > summary .versions-show{display:none}
.mcpe-version-toggle[open] > summary .versions-hide{display:inline}
.mcpe-version-toggle[open] > summary svg{transform:rotate(180deg)}
.mcpe-version-toggle > summary:hover{background:#d9efE2;border-color:#8dceaa}
.mcpe-version-toggle > summary:focus-visible{outline:3px solid #75c89c;outline-offset:3px}
.mcpe-version-toggle > summary svg{width:18px;height:18px;transition:transform .18s}

/* Keep the collapse control below all expanded downloads. */
.mcpe-version-toggle[open]{display:flex;flex-direction:column}
.mcpe-version-toggle[open] > summary{order:1}
/* Resource cards: consistent inset thumbnails and three-column desktop grid. */
.resource-grid,.listing-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;align-items:stretch}
.listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
.resource-card{display:flex;align-items:center;gap:12px;height:144px;min-height:144px;max-height:144px;padding:12px;box-sizing:border-box;border:0;border-radius:16px;overflow:hidden;background:var(--surface,#fff);min-width:0}
.resource-card .resource-preview{position:relative;flex:0 0 120px;width:120px;height:120px;min-height:120px;max-height:120px;aspect-ratio:1;align-self:center;border-radius:14px;overflow:hidden;background:#eef1ec}
.resource-card .resource-preview img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.resource-card .resource-preview .type-tag{display:none}
.resource-card .resource-body{display:grid;grid-template-rows:36px minmax(0,1fr)16px;gap:6px;flex:1;min-width:0;min-height:0;height:120px;padding:0;box-sizing:border-box;overflow:hidden}
.resource-card .resource-body :is(h2,h3){margin:0;font-size:13.3px;line-height:18px;font-weight:700;max-height:36px;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.resource-card .resource-topics{display:flex;flex-wrap:wrap;align-items:flex-start;align-content:flex-start;gap:4px;min-height:0;height:auto;overflow-x:hidden;overflow-y:auto;scrollbar-width:thin;scrollbar-color:#a8cdb7 transparent;overscroll-behavior:contain}
.resource-card .resource-topics:empty{display:flex}
.resource-card .resource-topic{display:inline-block;flex:0 1 auto;min-width:0;max-width:100%;padding:2px 6px;box-sizing:border-box;border:1px solid #dcebe1;border-radius:6px;background:#edf5ef;color:#197547;font-size:9.5px;font-weight:500;line-height:12px;white-space:normal;overflow-wrap:anywhere}
.resource-card .card-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:nowrap;gap:6px;min-width:0;margin:0;font-size:9.5px;line-height:16px;overflow:hidden;color:var(--muted,#707970)}
.resource-card .card-meta>span:first-child{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.resource-card .card-meta .version-pill{flex:0 0 auto;padding:1px 5px;line-height:14px;font-size:8.55px;white-space:nowrap;border-radius:5px}
@media(max-width:1100px){.resource-grid,.listing-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:650px){.resource-grid,.listing-grid{grid-template-columns:1fr;gap:12px}.resource-card .resource-body{padding:0;gap:6px}}
/* Responsive containment: constrain the layout, not the readable content. */
html{max-width:100%;overflow-x:clip;overscroll-behavior-x:none}
body{min-width:0;max-width:100%;overflow-x:clip}
main,.listing-layout,.listing-layout>*,.main-grid,.main-grid>*,.download-layout,.download-layout>*,.resource-grid,.listing-grid{min-width:0}
img,video,iframe{max-width:100%}
.filter-tabs,.topic-chips,.gallery,.gallery-track,.tabs{max-width:100%;min-width:0;overscroll-behavior-x:contain}
.body-copy{overflow-wrap:anywhere;min-width:0}
.body-copy pre{max-width:100%;overflow-x:auto}
.body-copy table{display:block;max-width:100%;overflow-x:auto}
@media(min-width:651px) and (max-width:999px){.listing-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:800px){
 .container,.wrap{width:calc(100% - 32px);max-width:calc(100% - 32px);margin-left:auto;margin-right:auto}
 .listing-layout{grid-template-columns:minmax(0,1fr)}
 .header-inner{min-width:0;gap:12px}.site-brand{flex-shrink:0}.header-actions{flex-shrink:0}
 .result-toolbar,.listing-search,.search-row,.heading-row,.release-facts{min-width:0;max-width:100%}
 .result-toolbar select,.listing-search input,.search-row input{min-width:0;max-width:100%}
 .filter-panel{width:100%;max-width:100%;box-sizing:border-box;overscroll-behavior-y:contain}
 body.filter-open{overflow:hidden}
 .project-top>div,.file-row>div,.version-row>div,.facts dd{min-width:0;overflow-wrap:anywhere}
 .dialog,dialog{max-width:calc(100vw - 24px);box-sizing:border-box}
 .file-name,.download-release h3,#chosenFile{overflow-wrap:anywhere}
 .sticky{box-sizing:border-box;max-width:100%;gap:12px}.sticky>div{min-width:0}.sticky .btn{flex-shrink:0}
}
@media(max-width:650px){.resource-grid,.listing-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:480px){
 .resource-card{height:132px;min-height:132px;max-height:132px;gap:10px;padding:12px}
 .resource-card .resource-preview{width:96px;height:96px;min-height:96px;max-height:96px;flex-basis:96px;border-radius:12px}
 .resource-card .resource-body{height:108px;grid-template-rows:36px minmax(0,1fr)16px}
 .section-heading{gap:10px;flex-wrap:wrap}
 .facts>div{grid-template-columns:minmax(0,38%) minmax(0,1fr)}
}
/* Readable topic, author and Minecraft labels without excerpts. */
.resource-card .resource-body{grid-template-rows:36px minmax(0,1fr)22px;gap:5px}
.resource-card .resource-topic{font-size:11.4px;line-height:16px;padding:3px 7px}
.resource-card .card-meta{font-size:11.4px;line-height:20px;min-height:22px}
.resource-card .card-meta .version-pill{font-size:10.45px;line-height:18px;padding:2px 6px}
@media(max-width:480px){.resource-card .resource-body{grid-template-rows:36px minmax(0,1fr)22px;gap:5px}}
/* Give resource names a clear hierarchy while retaining uniform cards. */
.resource-card .resource-body{grid-template-rows:42px minmax(0,1fr)22px;gap:6px}
.resource-card .resource-body :is(h2,h3){font-size:15.2px;line-height:21px;font-weight:700;letter-spacing:-.2px;max-height:42px;margin:0}
.resource-card .resource-topics{gap:5px}
@media(max-width:480px){.resource-card .resource-body{grid-template-rows:40px minmax(0,1fr)22px;gap:5px}.resource-card .resource-body :is(h2,h3){font-size:14.25px;line-height:20px;max-height:40px}}
/* Soft card variation selected from the design board. */
.resource-grid,.listing-grid{gap:18px}
.resource-card{height:156px;min-height:156px;max-height:156px;padding:12px 14px;gap:14px;border-radius:20px;background:#fff;box-shadow:0 5px 18px rgba(30,55,39,.055);transition:transform .18s ease,box-shadow .18s ease}
.resource-card:hover{transform:translateY(-2px);box-shadow:0 9px 24px rgba(30,55,39,.10);text-decoration:none}
.resource-card:focus-visible{outline:3px solid #77cba1;outline-offset:3px}
.resource-card .resource-preview{width:120px;height:120px;min-height:120px;max-height:120px;flex-basis:120px;border-radius:18px;background:#dff3eb}
.resource-card:nth-child(6n+1) .resource-preview{background:#def1f8}
.resource-card:nth-child(6n+2) .resource-preview{background:#eae4fb}
.resource-card:nth-child(6n+3) .resource-preview{background:#f6e5ee}
.resource-card:nth-child(6n+4) .resource-preview{background:#f8e9de}
.resource-card:nth-child(6n+5) .resource-preview{background:#dcf1e8}
.resource-card:nth-child(6n) .resource-preview{background:#ece7f8}
.resource-card .resource-preview img{inset:8px;width:calc(100% - 16px);height:calc(100% - 16px);border-radius:12px;object-fit:cover}
.resource-card:hover .resource-preview img{transform:none}
.resource-card .resource-body{height:132px;padding:0;display:flex;flex-direction:column;justify-content:space-between;gap:8px}
.resource-card .resource-body :is(h2,h3),.resource-card .resource-topics,.resource-card .card-meta{flex-shrink:0}
.resource-card .resource-body :is(h2,h3){font-size:15.2px;line-height:21px;max-height:42px;color:#202923;letter-spacing:-.25px}
.resource-card .resource-topic{border:0;border-radius:999px;background:#e1f3e9;color:#147846;font-size:11.4px;line-height:16px;padding:4px 9px}
.resource-card .resource-topics{gap:5px;scrollbar-color:#badac9 transparent}
.resource-card .card-meta{font-size:11.4px;color:#727b75}
.resource-card .card-meta .version-pill{background:#f1f2f1;color:#4b554e;border-radius:999px;padding:2px 8px;font-size:10.45px;line-height:18px}
@media(max-width:480px){
 .resource-grid,.listing-grid{gap:14px}
 .resource-card{height:144px;min-height:144px;max-height:144px;padding:10px 12px;gap:12px;border-radius:18px}
 .resource-card .resource-preview{width:104px;height:104px;min-height:104px;max-height:104px;flex-basis:104px;border-radius:16px}
 .resource-card .resource-preview img{border-radius:10px}
 .resource-card .resource-body{height:124px;gap:5px}
 .resource-card .resource-body :is(h2,h3){font-size:14.25px;line-height:20px;max-height:40px}
 .resource-card .resource-topic{padding:3px 8px}
}
@media(prefers-reduced-motion:reduce){.resource-card{transition:none}.resource-card:hover{transform:none}}
/* Full scenic homepage hero. */
.home-hero.home-hero-full{position:relative;isolation:isolate;display:flex;align-items:center;min-height:500px;padding:56px 44px;border-radius:28px;overflow:hidden;background:#244f43;box-sizing:border-box}
.home-hero-full .hero-background{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;z-index:0}
.home-hero-full:before{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(90deg,rgba(7,25,26,.84),rgba(7,25,26,.57) 44%,rgba(7,25,26,.08) 76%);pointer-events:none}
.home-hero-full .hero-copy{width:min(580px,56%);max-width:100%;min-width:0;padding:0;position:relative;z-index:2}
.home-hero-full .hero-copy h1{margin:0 0 20px;color:#fff;font-size:clamp(34.2px,3.99vw,53.2px);line-height:1.12;letter-spacing:-1.5px;font-weight:750}
.home-hero-full .hero-copy h1 span{color:#d2f3df}
.home-hero-full .hero-copy>p{max-width:490px;margin:0 0 28px;color:#edf4ef;font-size:15.2px;line-height:1.7}
.home-hero-full .hero-search{display:flex;align-items:center;gap:10px;width:100%;max-width:100%;margin:0;padding:7px 7px 7px 16px;background:#fff;border:1px solid #e7ece8;border-radius:18px;box-sizing:border-box;box-shadow:0 6px 20px #071c1720}
.home-hero-full .hero-search>svg{flex:0 0 20px;color:#758178}
.home-hero-full .hero-search input{min-width:0;flex:1;width:0;font-size:12.35px;color:#293a30;padding:10px 0;background:transparent}
.home-hero-full .hero-search button{width:auto;height:46px;flex:0 0 auto;display:flex;align-items:center;justify-content:center;gap:10px;padding:0 18px;border-radius:12px;background:#009b58;color:#fff;font-size:12.35px;white-space:nowrap}
.home-hero-full .hero-search button:hover{background:#00834b}
.home-hero-full .hero-suggestions{display:flex;align-items:center;flex-wrap:wrap;gap:8px;margin-top:18px;color:#eff7f1;font-size:11.4px}
.home-hero-full .hero-suggestions a{display:inline-flex;align-items:center;padding:6px 12px;border:1px solid #ffffff24;border-radius:999px;color:#fff;background:#ffffff1c;text-decoration:none;font-size:11.4px;line-height:1.5}
.home-hero-full .hero-suggestions a:hover{background:#ffffff35}
@media(max-width:900px){.home-hero.home-hero-full{padding:38px 28px;min-height:450px}.home-hero-full .hero-copy{width:68%}}
@media(max-width:650px){
 .home-hero.home-hero-full{min-height:450px;padding:32px 22px;border-radius:22px;align-items:center}
 .home-hero-full .hero-background{object-position:65% center}
 .home-hero-full:before{background:linear-gradient(90deg,#071c23da,#071c2399 65%,#071c2355)}
 .home-hero-full .hero-copy{width:100%}
 .home-hero-full .hero-copy h1{font-size:34.2px;letter-spacing:-1px;margin-bottom:18px}
 .home-hero-full .hero-copy>p{font-size:13.3px;margin-bottom:24px}
 .home-hero-full .hero-search{gap:8px;padding-left:12px;border-radius:14px}
 .home-hero-full .hero-search input{font-size:11.4px}
 .home-hero-full .hero-search button{width:42px;height:42px;padding:0;border-radius:10px}
 .home-hero-full .hero-search button span{display:none}
 .home-hero-full .hero-suggestions{gap:6px;font-size:10.45px;margin-top:16px}
 .home-hero-full .hero-suggestions>span{flex-basis:100%;margin-bottom:2px}
 .home-hero-full .hero-suggestions a{font-size:10.45px;padding:5px 10px}
}
@media(max-width:360px){.home-hero.home-hero-full{padding:28px 16px}.home-hero-full .hero-copy h1{font-size:30.4px}}
/* Scenic background for the Minecraft compatibility banner. */
.version-banner{background:linear-gradient(90deg,rgba(8,31,28,.88),rgba(8,31,28,.65) 52%,rgba(8,31,28,.30)),url('assets/version-countryside-preview.webp') center 56%/cover no-repeat;color:#fff;min-height:170px;padding:32px 36px;border-radius:22px;box-sizing:border-box;gap:24px;overflow:hidden}
.version-banner .overline{color:#c8e6d7}
.version-banner h2{color:#fff}
.version-banner p{color:#e1eee5}
.version-banner>div{min-width:0}
.version-banner>div:last-child{flex-wrap:wrap;gap:10px}
.version-banner a{background:#fff;color:#20563b;border:1px solid #ffffff66;box-shadow:0 3px 12px #071e1a18;white-space:nowrap}
.version-banner a:hover{background:#e5f6ec;color:#007b46;text-decoration:none}
@media(max-width:650px){.version-banner{padding:26px 22px;min-height:210px;gap:20px;background-position:center,65% center}.version-banner>div:last-child{display:flex;width:100%}.version-banner a{flex:1;justify-content:center;padding:12px;font-size:11.4px}}
/* Shared admin-configured branding and menus. */
.mcpe-brand-logo{width:38px;height:38px;object-fit:contain}
.site-nav ul,.menu-drawer ul,.mcpe-custom-footer ul{list-style:none;margin:0;padding:0}
.site-nav>ul{display:flex;align-items:center;gap:24px}.site-nav li{position:relative}
.site-nav .sub-menu{display:none;position:absolute;top:100%;left:0;min-width:180px;padding:12px;background:white;border-radius:12px;box-shadow:0 8px 24px #12251620;z-index:50}
.site-nav li:hover>.sub-menu,.site-nav li:focus-within>.sub-menu{display:block}
.mcpe-custom-footer{display:grid;grid-template-columns:1fr 1fr;gap:24px;padding-top:36px;padding-bottom:28px}
.mcpe-custom-footer p{color:var(--muted);max-width:460px}.mcpe-custom-footer nav ul{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:12px 24px}
.mcpe-custom-footer .footer-bottom{grid-column:1/-1;display:flex;justify-content:space-between;flex-wrap:wrap;gap:10px;border-top:1px solid var(--line,#ddd);padding-top:20px;color:var(--muted);font-size:11.4px}
/* Resource discovery rails use the homepage Soft cards. */
.mcpe-discovery{min-width:0;margin-top:32px;max-width:100%}.mcpe-discovery .section-head{gap:12px;flex-wrap:wrap;margin-bottom:16px}
.mcpe-discovery h2{font-size:19px;margin:0}.rail-hint{font-size:11.4px;color:var(--muted)}
.mcpe-resource-rail{display:flex;gap:16px;max-width:100%;min-width:0;overflow-x:auto;overflow-y:hidden;padding:4px 3px 16px;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain;scroll-snap-type:x proximity;cursor:grab;touch-action:pan-x pan-y}
.mcpe-resource-rail::-webkit-scrollbar{display:none}
.mcpe-resource-rail>.resource-card{flex:0 0 min(390px,88%);scroll-snap-align:start}
.mcpe-resource-rail.is-dragging{cursor:grabbing;scroll-snap-type:none;user-select:none}
.mcpe-resource-rail.is-dragging *{cursor:grabbing;user-select:none}
.mcpe-resource-rail:focus-visible{outline:3px solid #77cba1;outline-offset:3px;border-radius:16px}
/* Creator biography above the existing resource filters and listings. */
.creator-profile{background:#fff;border-radius:24px;overflow:hidden;margin:24px 0 28px;box-shadow:0 5px 18px #1e37270b}
.creator-cover{height:150px;background:linear-gradient(120deg,#d9ede2,#e7f0ed 55%,#e5e2f6)}
.creator-cover img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.creator-profile-body{display:flex;align-items:flex-start;gap:24px;padding:0 32px 30px}
.creator-avatar{width:112px;height:112px;flex:0 0 112px;object-fit:cover;border:6px solid white;border-radius:28px;margin-top:-42px;background:#def0e5;position:relative}
.creator-initial{display:flex;align-items:center;justify-content:center;font-size:39.9px;font-weight:750;color:#16794a}
.creator-bio{min-width:0;flex:1;padding-top:18px}.creator-role{font-size:11.4px;color:#198356;font-weight:600}
.creator-bio h1{font-size:30.4px;line-height:1.2;margin:8px 0 12px;overflow-wrap:anywhere}
.creator-description,.creator-bio>p{max-width:760px;color:var(--muted);font-size:13.3px;line-height:1.7;overflow-wrap:anywhere}
.creator-description p{margin:0 0 10px}.creator-actions{display:flex;align-items:center;gap:16px;flex-wrap:wrap;margin-top:16px;font-size:12.35px}
.creator-count{padding:6px 12px;border-radius:999px;background:#e8f5ed;color:#16794a}.creator-website{display:inline-flex;align-items:center;gap:6px}
.creator-list-title{margin:20px 0}.creator-list-title h2{font-size:20.9px;margin:0 0 4px}.creator-list-title p{margin:0;color:var(--muted);font-size:12.35px}
@media(max-width:650px){.mcpe-custom-footer{grid-template-columns:1fr}.mcpe-custom-footer nav ul{justify-content:flex-start}.mcpe-custom-footer .footer-bottom{display:block}.mcpe-custom-footer .footer-bottom span{display:block;margin-top:8px}.creator-cover{height:110px}.creator-profile-body{display:block;padding:0 20px 24px}.creator-avatar{width:88px;height:88px;margin-top:-32px;border-radius:24px}.creator-bio{padding-top:10px}.creator-bio h1{font-size:24.7px}.mcpe-resource-rail{gap:12px}.mcpe-resource-rail>.resource-card{flex-basis:94%}.mcpe-discovery h2{font-size:17.1px}}
.mcpe-custom-footer nav{display:flex;align-items:flex-start;justify-content:flex-end;flex-wrap:wrap;gap:12px 24px}
@media(max-width:650px){.mcpe-custom-footer nav{justify-content:flex-start}}

/* Minimal footer matching the original site layout. */
.site-footer.mcpe-custom-footer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:24px 40px;margin-top:40px;padding-top:44px;padding-bottom:24px;background:transparent;border:0;border-radius:0;box-shadow:none}
.mcpe-custom-footer .footer-identity{min-width:0}
.mcpe-custom-footer .site-brand{display:inline-flex;align-items:center;gap:9px;font-size:20.9px;line-height:30px;font-weight:800;letter-spacing:-.4px}
.mcpe-custom-footer .site-brand .logo-cube{width:30px;height:32px;flex:0 0 30px}
.mcpe-custom-footer .mcpe-brand-logo{width:32px;height:32px}
.mcpe-custom-footer .site-brand em{color:var(--green,#009b58);font-style:normal}
.mcpe-custom-footer .footer-identity p{margin:14px 0 0;max-width:520px;font-size:11.4px;line-height:1.7;color:var(--muted,#707970)}
.mcpe-custom-footer .footer-navigation{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px 24px;font-size:11.4px;line-height:1.7}
.mcpe-custom-footer .footer-navigation>ul{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:12px 24px}
.mcpe-custom-footer .footer-navigation a{color:var(--muted,#707970)}
.mcpe-custom-footer .footer-navigation a:hover{color:var(--green,#009b58)}
.mcpe-custom-footer .footer-bottom{display:flex;grid-column:1/-1;justify-content:space-between;align-items:flex-start;flex-wrap:wrap;gap:12px 24px;margin:0;padding-top:20px;border-top:1px solid var(--line,#dce2d9);font-size:10.45px;line-height:1.7;color:var(--muted,#707970)}
@media(max-width:650px){.site-footer.mcpe-custom-footer{grid-template-columns:minmax(0,1fr);gap:22px;margin-top:28px;padding-top:30px;padding-bottom:24px}.mcpe-custom-footer .footer-navigation,.mcpe-custom-footer .footer-navigation>ul{justify-content:flex-start;gap:10px 20px}.mcpe-custom-footer .footer-bottom{display:flex;flex-direction:column;gap:8px}.mcpe-custom-footer .footer-bottom span{margin:0}.mcpe-custom-footer .site-brand{font-size:19.95px}}
/* Editorial guide cards with large cover images. */
.guide-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;align-items:stretch}
.guide-grid>.guide-card{display:flex;flex-direction:column;align-items:stretch;gap:0;min-width:0;padding:0;border-radius:18px;overflow:hidden;background:#fff;color:var(--text,#202923);text-decoration:none;transition:box-shadow .18s,transform .18s}
.guide-grid>.guide-card:hover{transform:translateY(-2px);box-shadow:0 8px 22px #1e372710}
.guide-grid>.guide-card>img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;display:block;border-radius:0;flex-shrink:0}
.guide-grid>.guide-card>div{padding:20px;flex:1;min-width:0}
.guide-card .overline{font-size:9.5px;line-height:1.5;letter-spacing:1.3px;color:var(--muted,#707970)}
.guide-grid>.guide-card h3{font-size:15.2px;line-height:1.45;margin:8px 0 10px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.guide-grid>.guide-card p{margin:0;color:var(--muted,#707970);font-size:11.4px;line-height:1.7;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.mcpe-guides-archive{padding-bottom:24px}.mcpe-guide-pagination ul{display:flex;list-style:none;gap:10px;padding:0;margin:24px 0}
.mcpe-guides-archive .guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
@media(max-width:650px){.mcpe-guides-archive .guide-grid{grid-template-columns:minmax(0,1fr)}}
@media(max-width:900px){.guide-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:600px){.guide-grid{grid-template-columns:minmax(0,1fr);gap:16px}.guide-grid>.guide-card>div{padding:18px}.guide-grid>.guide-card h3{font-size:15.2px}}
/* Discovery headings and free, native horizontal scrolling. */
.mcpe-discovery .section-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}
.mcpe-discovery .section-head h2{min-width:0;flex:1;overflow-wrap:anywhere}
.mcpe-discovery .mcpe-view-all{display:inline-flex;align-items:center;justify-content:center;gap:6px;flex:0 0 auto;padding:6px 11px;border-radius:999px;background:#ddf2e7;color:#087a47;font-size:11.4px;font-weight:650;line-height:18px;text-decoration:none;white-space:nowrap}
.mcpe-discovery .mcpe-view-all svg{width:14px;height:14px}
.mcpe-discovery .mcpe-view-all:hover{background:#cbeada;color:#056439}
.mcpe-discovery .mcpe-view-all:focus-visible{outline:3px solid #77cba1;outline-offset:3px}
.mcpe-resource-rail{scroll-snap-type:none;scroll-behavior:auto;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y;overscroll-behavior-x:contain;user-select:none;-webkit-user-select:none}
.mcpe-resource-rail>.resource-card{scroll-snap-align:none}
.mcpe-resource-rail .resource-card,.mcpe-resource-rail .resource-card:hover{transform:none;transition:box-shadow .18s ease}
.mcpe-resource-rail img{-webkit-user-drag:none;user-select:none}
.gallery-track{cursor:grab;scroll-snap-type:none;scroll-behavior:auto;user-select:none;-webkit-user-select:none}
.gallery-track .shot{cursor:grab;scroll-snap-align:none}
.gallery-track img{-webkit-user-drag:none;user-select:none}
.gallery-track.is-dragging,.gallery-track.is-dragging *{cursor:grabbing}
.gallery-track:focus-visible{outline:3px solid #77cba1;outline-offset:3px}
@media(max-width:650px){.mcpe-discovery .section-head{align-items:center;flex-wrap:nowrap}.mcpe-discovery .section-head h2{font-size:17.1px;line-height:1.4}.mcpe-discovery .mcpe-view-all{font-size:10.45px;padding:5px 9px;gap:4px}}
/* Linked subcategory labels: three inline and an overflow popover. */
.resource-card{position:relative}
.resource-card>.resource-main-link{position:absolute;inset:0;z-index:1;border-radius:inherit;color:inherit}
.resource-card>.resource-main-link:focus-visible{outline:3px solid #77cba1;outline-offset:-3px}
.resource-card .resource-topics{position:relative;z-index:2;overflow:visible;align-content:flex-start;row-gap:8px;column-gap:6px}
.resource-card .resource-topic{box-sizing:border-box;min-width:0;max-width:calc(50% - 3px);height:22px;padding:3px 8px;line-height:16px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-decoration:none;flex:0 1 auto}
.resource-card a.resource-topic:hover{background:#c8ead9;color:#075f37;text-decoration:none}
.resource-card .resource-topic-more{flex:0 0 auto;min-width:32px;padding:3px 8px;background:#ccebdc;color:#09683d;font-size:11.4px;line-height:16px;font-weight:700;cursor:pointer}
.resource-card .resource-topic-more[aria-expanded="true"]{background:#087a47;color:white}
.resource-card .resource-topic:focus-visible{outline:2px solid #238f5c;outline-offset:1px}
.resource-topic-popover{position:fixed;inset:auto;margin:0;z-index:1200;width:300px;max-width:calc(100vw - 24px);max-height:min(340px,calc(100dvh - 24px));box-sizing:border-box;padding:14px;background:#fff;border:1px solid #dfe9e2;border-radius:16px;box-shadow:0 12px 42px #163e242e;overflow:auto;overscroll-behavior:contain;color:#26382c}
.resource-topic-popover[hidden]{display:none!important}
.topic-popover-close{display:grid;place-items:center;width:28px;height:28px;flex:0 0 28px;border:0;border-radius:8px;background:#f0f4f1;color:#4f6657;font-size:19.95px;line-height:1;cursor:pointer}
.topic-popover-links{display:flex;flex-wrap:wrap;gap:8px}
.topic-popover-links a.resource-topic{display:inline-block;max-width:100%;height:auto;padding:7px 11px;border:0;border-radius:999px;background:#e1f3e9;color:#147846;font-size:11.4px;line-height:18px;text-decoration:none;overflow-wrap:anywhere;white-space:normal}
.topic-popover-links a:hover{background:#c8ead9}.topic-popover-links a:focus-visible,.topic-popover-close:focus-visible{outline:2px solid #238f5c;outline-offset:2px}
/* Compact compatibility versions, with native keyboard-accessible disclosure. */
.release .release-facts{display:grid;grid-template-columns:minmax(0,1fr)72px;gap:18px}
.mcpe-supported-versions{min-width:0;color:var(--ink,#202923)}
.mcpe-supported-versions>summary,.mcpe-supported-chips,.mcpe-supported-remainder{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
.mcpe-supported-versions>summary{list-style:none;cursor:pointer;border-radius:6px}
.mcpe-supported-versions>summary::-webkit-details-marker{display:none}
.mcpe-supported-versions>summary::marker{content:""}
.mcpe-supported-versions>summary:focus-visible{outline:2px solid #238f5c;outline-offset:3px}
.mcpe-supported-versions strong{font-size:13.3px;line-height:1.7;overflow-wrap:anywhere}
.mcpe-supported-versions .mcpe-supported-more{display:inline-flex;flex:0 0 auto;align-items:center;min-height:24px;padding:2px 8px;border-radius:999px;background:#e1f3e9;color:#147846;font-size:11.4px;font-weight:650;line-height:20px}
.mcpe-supported-more .mcpe-supported-collapsed,.mcpe-supported-versions[open]>summary .mcpe-supported-expanded{display:inline;color:inherit;font:inherit}
.mcpe-supported-more .mcpe-supported-expanded,.mcpe-supported-versions[open]>summary .mcpe-supported-collapsed{display:none}
.mcpe-supported-versions>summary:hover .mcpe-supported-more{background:#c8ead9}
.mcpe-supported-versions[open]>summary .mcpe-supported-more{background:#ccebdc}
.mcpe-supported-versions .mcpe-supported-remainder{margin-top:8px;padding-top:8px;border-top:1px solid var(--line,#e5ebe5)}
details.mcpe-supported-chips{display:block}
.mcpe-supported-versions .mcpe-version-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
/* Latest release: article gallery image #2, with a mint header fallback. */
.card.mcpe-release-card{padding:0;border-radius:20px;overflow:hidden;background:#fff}
.mcpe-release-header{position:relative;isolation:isolate;min-height:144px;box-sizing:border-box;padding:22px 24px;background:#e3f5e9;color:#202923}
.mcpe-release-header.has-image{background:#164a35;color:#fff}
.mcpe-release-background{position:absolute;inset:0;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;pointer-events:none}
.mcpe-release-header.has-image::after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,24,19,.76),rgba(7,24,19,.26)),linear-gradient(0deg,rgba(7,24,19,.25),rgba(7,24,19,.1));pointer-events:none}
.mcpe-release-header-content{position:relative;z-index:1;min-width:0}
.mcpe-release-header .eyebrow{display:block;color:#536c5d;font-size:9.975px;line-height:16px;letter-spacing:1px}
.mcpe-release-header.has-image .eyebrow{color:#fff}
.mcpe-release-version{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:10px 0 5px}
.mcpe-release-card .mcpe-release-version h2{margin:0;min-width:0;font-size:30.4px;line-height:1.2;letter-spacing:-.7px;color:inherit;overflow-wrap:anywhere}
.mcpe-release-version .chip{flex:0 0 auto;padding:3px 9px;background:#ffffffdf;color:#00834b;font-size:10.45px;line-height:18px;border-radius:8px}
.mcpe-release-header .date{display:block;font-size:11.4px;line-height:18px;color:#62766a}
.mcpe-release-header.has-image .date{color:#fff}
.mcpe-release-content{padding:20px 24px 22px}
.mcpe-release-label{display:block;margin-bottom:8px;font-size:11.4px;line-height:18px;color:var(--muted,#78837b)}
.mcpe-release-compat .chip{font-size:11.4px;line-height:18px;padding:4px 8px;border-radius:7px}
.mcpe-release-compat .mcpe-supported-more{min-height:26px;box-sizing:border-box;padding:3px 8px;line-height:20px;border-radius:7px}
.mcpe-release-file{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:18px 0;padding-top:16px;border-top:1px solid var(--line,#e5ebe5);font-size:12.35px;line-height:20px}
.mcpe-release-format{display:flex;align-items:center;gap:8px;min-width:0;color:var(--muted,#78837b);overflow-wrap:anywhere}
.mcpe-release-format svg{width:18px;height:22px;flex:0 0 auto}
.mcpe-release-file strong{flex:0 0 auto;font-size:13.3px;font-weight:650;color:var(--ink,#202923)}
.mcpe-release-card .btn{min-height:46px;font-size:13.3px;border-radius:11px}
.mcpe-release-card .btn svg{width:18px;height:18px}
.mcpe-release-card .release-links{display:flex;flex-direction:row;justify-content:center;align-items:center;margin:16px 0 0;font-size:11.4px;line-height:18px}
.mcpe-release-card .release-links a{display:inline-flex;align-items:center;gap:5px;margin:0}
.mcpe-release-card .release-links svg{width:12px;height:12px}
@media(max-width:480px){.mcpe-release-header{padding:20px;min-height:140px}.mcpe-release-content{padding:18px 20px 20px}}
/* Child category tabs beneath each configured homepage article list. */
.home-category-section .section-head{margin-bottom:16px}
.home-subcategories{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:18px 0 0;min-width:0;max-width:100%}
.home-subcategories a{display:inline-flex;align-items:center;justify-content:center;max-width:100%;min-height:36px;box-sizing:border-box;padding:8px 16px;border:0;border-radius:9px;background:#e2e7df;color:#64715f;font-size:11.4px;font-weight:550;line-height:20px;text-decoration:none;overflow-wrap:anywhere;transition:background .15s,color .15s}
.home-subcategories a:hover{background:#d6e0d1;color:#344e3c;text-decoration:none}
.home-subcategories a.home-subcategory-all{background:var(--green,#009b58);color:#fff}
.home-subcategories a.home-subcategory-all:hover{background:var(--green-dark,#00854b)}
.home-subcategories a:focus-visible{outline:2px solid #238f5c;outline-offset:2px}
@media(max-width:800px){.home-subcategories{gap:6px;margin-top:16px}.home-subcategories a{min-height:34px;padding:8px 12px;font-size:10.45px;line-height:18px}}

/* Download card when the resource has no published version number. */
.mcpe-unversioned-header{background:linear-gradient(125deg,#123c30,#087451);color:#fff;min-height:144px}
.mcpe-unversioned-header .eyebrow{color:#c8e8da}
.mcpe-download-title{display:flex;align-items:center;gap:14px;margin-top:16px;min-width:0}
.mcpe-download-title>div{min-width:0}
.mcpe-download-title h2{font-size:21.85px;line-height:1.25;letter-spacing:-.4px;margin:0 0 8px;color:inherit;overflow-wrap:anywhere}
.mcpe-download-title span{font-size:12.35px}
.mcpe-download-icon{display:flex;align-items:center;justify-content:center;flex:0 0 48px;height:54px;border-radius:12px;background:#ffffff20}
.mcpe-download-icon svg{width:26px;height:32px}
.mcpe-download-file{padding:14px 12px;border:1px solid #e4ebe6;border-radius:12px;align-items:flex-end}
.mcpe-download-file .mcpe-release-format{align-items:center;gap:10px;flex:1}
.mcpe-download-file .mcpe-release-format>span{min-width:0}
.mcpe-download-file b{display:block;font-size:12.35px;line-height:1.5;color:var(--ink,#202923);overflow-wrap:anywhere}
.mcpe-download-file small{display:block;font-size:11.4px;margin-top:3px}
.mcpe-download-file strong{font-size:11.4px}

/* Approved unversioned download mockup: scoped rules override legacy card styles. */
.mcpe-release-card .mcpe-unversioned-header{position:relative;overflow:hidden;background:linear-gradient(115deg,#123d32 0%,#07523e 62%,#087751 100%);color:#fff;padding:22px 20px;min-height:144px}
.mcpe-unversioned-art{position:absolute;right:0;bottom:0;width:65%;height:100%;object-fit:cover;opacity:.12;mix-blend-mode:luminosity;mask-image:linear-gradient(90deg,transparent,#000)}
.mcpe-release-card .mcpe-unversioned-header .eyebrow{color:#bedcd0;letter-spacing:1px;font-size:9.975px;font-weight:700;line-height:16px;text-transform:uppercase}
.mcpe-release-card .mcpe-download-title{display:flex;align-items:center;gap:12px;margin-top:16px}
.mcpe-release-card .mcpe-download-icon{display:flex;flex:0 0 44px;height:50px;border-radius:11px;background:linear-gradient(135deg,#ffffff35,#ffffff18);align-items:center;justify-content:center;color:#fff}
.mcpe-release-card .mcpe-download-icon svg{width:25px;height:30px}
.mcpe-release-card .mcpe-download-title h2{color:#fff;font-size:20.9px;line-height:1.2;font-weight:750;letter-spacing:-.5px;margin:0 0 7px;overflow-wrap:normal}
.mcpe-release-card .mcpe-download-title>div>span{color:#fff;font-size:11.4px;line-height:18px}
.mcpe-release-card .mcpe-unversioned-content{padding:22px 20px 24px}
.mcpe-unversioned-content>.chip{font-size:11.4px;line-height:19px;padding:4px 9px;border-radius:8px;font-weight:650}
.mcpe-release-card .mcpe-download-file{display:flex;align-items:flex-end;gap:8px;border:1px solid #e4eae6;border-radius:12px;padding:14px 12px;margin:18px 0 17px;min-height:68px;box-sizing:border-box}
.mcpe-release-card .mcpe-download-file .mcpe-release-format{display:flex;align-items:center;gap:10px}
.mcpe-release-card .mcpe-download-file .mcpe-release-format>svg{width:21px;height:27px;color:#4f7967}
.mcpe-release-card .mcpe-download-file b{display:block;font-size:10.45px;font-weight:700;line-height:17px;color:#172d25}
.mcpe-release-card .mcpe-download-file small{display:block;font-size:10.45px;line-height:16px;color:#87928a;margin-top:2px}
.mcpe-release-card .mcpe-download-file strong{font-size:10.45px;line-height:16px;color:#172d25}
.mcpe-release-card .mcpe-unversioned-content>.btn{min-height:48px;font-size:14.25px;font-weight:700;border-radius:11px;background:#009f5c;gap:9px}
.mcpe-release-card .mcpe-unversioned-content .release-links{margin-top:19px;font-size:11.4px;font-weight:550}


.resource-topic-popover{padding:14px 52px 14px 14px;min-height:60px}
.resource-topic-popover>.topic-popover-close{position:absolute;top:14px;right:12px}

.mcpe-article-video{margin:28px 0;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:#14251c}.mcpe-article-video iframe{display:block;width:100%;height:100%;border:0}.mcpe-article-references{margin-top:28px}.mcpe-article-references h3{font-size:19px;line-height:1.4;margin:0 0 18px}.mcpe-article-references .mcpe-reference-topic{margin:18px 0 6px}.mcpe-article-references ul{list-style:disc;padding-left:23px;margin:0}.mcpe-article-references li{margin:5px 0}.mcpe-article-references a{overflow-wrap:anywhere}

/* Layout C: linked subcategory pills immediately above the gallery, no visible label. */
.resource-header-topics{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;padding:0;min-width:0}
.resource-header-topics a{display:inline-flex;align-items:center;justify-content:center;max-width:100%;padding:5px 15px;border:1px solid #25a774;border-radius:999px;background:#f4fbf7;color:#00834b;font-size:11.4px;font-weight:550;line-height:20px;text-decoration:none;overflow-wrap:anywhere;box-sizing:border-box}
.resource-header-topics a:hover{background:#e1f3e9;border-color:#00834b}
.resource-header-topics a:focus-visible{outline:2px solid #00834b;outline-offset:3px}
@media(max-width:800px){.resource-header-topics{gap:7px;margin-bottom:12px}.resource-header-topics a{font-size:11.4px;padding:5px 13px}}

/* Unknown resource version: file-first download picker. */
.download-release.download-unversioned{background:transparent;border:0;padding:0;margin:0}
.unversioned-file{padding:22px;border:1px solid #e1eae4;border-radius:16px;background:linear-gradient(135deg,#f6fbf8,#fff);margin-bottom:16px}
.unversioned-file:last-child{margin-bottom:0}
.unversioned-file-heading{display:flex;align-items:center;gap:14px;min-width:0;margin-bottom:20px}
.unversioned-file-heading>div{min-width:0;flex:1}
.unversioned-file-icon{width:48px;height:52px;flex:0 0 48px;border-radius:12px;background:#e0f3e8;color:#008852;display:flex;align-items:center;justify-content:center}
.unversioned-file-icon svg{width:24px;height:24px}
.download-release.download-unversioned h3{margin:0 0 9px;font-size:16.15px;line-height:1.45;overflow-wrap:anywhere}
.unversioned-file-meta{display:flex;flex-wrap:wrap;gap:7px}
.unversioned-file-meta span{padding:3px 9px;font-size:11.4px;line-height:18px;border-radius:7px;background:#edf1ee;color:#52665a}
.unversioned-compat{font-size:11.4px;color:#64746a}
.download-unversioned .button{width:100%;justify-content:center;gap:9px;border-radius:11px;min-height:48px}
@media(max-width:650px){.unversioned-file{padding:16px}.download-release.download-unversioned h3{font-size:14.25px}.unversioned-file-heading{align-items:flex-start;gap:10px}.unversioned-file-icon{flex-basis:40px;width:40px;height:46px}}

/* Compact download page and single-action dialog (approved design). */
.download-compact .breadcrumbs{margin-bottom:22px}
.download-identity{display:flex;align-items:center;gap:24px;padding:20px;margin:0 0 24px}
.download-identity>img{width:180px;height:108px;object-fit:cover;border-radius:12px;flex:0 0 auto}
.download-identity>div{flex:1;min-width:0}
.download-identity h1{font-size:23.75px;line-height:1.3;letter-spacing:-.5px;margin:0 0 14px;overflow-wrap:anywhere}
.download-identity>a{font-size:12.35px;white-space:nowrap;color:#009b58}
.download-identity-meta{display:flex;flex-wrap:wrap;gap:8px}
.download-identity-meta span{padding:4px 10px;background:#e5f4ec;color:#08764b;border-radius:8px;font-size:11.4px}
.download-identity-meta span+span{background:#f0f2f1;color:#5a6961}
.download-list-heading{margin-bottom:16px}.download-list-heading h2{font-size:20.9px;margin:0 0 4px;line-height:1.4}.download-list-heading small{font-size:13.3px;font-weight:400;color:#718077;margin-left:8px}.download-list-heading p{margin:0;font-size:12.35px;color:#718077}
.download-compact .download-layout{display:grid;grid-template-columns:minmax(0,1fr)286px;gap:18px;align-items:start}
.download-main{min-width:0}.download-compact .compact-file-panel{padding:0 24px 16px}.download-compact .download-picker{padding:18px 24px}.download-compact .download-picker h2{font-size:15.2px;margin-bottom:12px}
.compact-release-group{margin:0}.compact-release-group+.compact-release-group{border-top:1px solid #e6ece8}.compact-release-label{display:flex;flex-wrap:wrap;gap:10px;padding:15px 0 0;font-size:11.4px;color:#718077}.compact-release-label strong{color:#27372d}
.compact-file-row{display:grid;grid-template-columns:44px minmax(0,1fr)68px 120px;align-items:center;gap:14px;padding:22px 0;border-bottom:1px solid #e6ece8}
.compact-file-icon{display:flex;align-items:center;justify-content:center;width:44px;height:48px;border-radius:12px;background:#e4f5eb;color:#009b58}.compact-file-icon svg{width:22px;height:22px}
.compact-file-description{min-width:0}.compact-file-description h3{margin:0 0 5px;font-size:12.35px;line-height:1.5;overflow-wrap:anywhere}.compact-file-description p{margin:0;font-size:10.45px;color:#738077}.compact-file-size{font-size:11.4px;color:#65756b;text-align:right;white-space:nowrap}
.compact-file-row .button{padding:10px 12px;min-height:44px;border-radius:10px;display:inline-flex;align-items:center;justify-content:center;gap:6px;font-size:12.35px}.compact-file-row .button svg{width:16px;height:16px}
.download-once-note{margin:15px 0 0;color:#78867d;font-size:10.45px}.compact-help h2{font-size:17.1px;margin-bottom:20px}.compact-help ol{list-style:none;padding:0;counter-reset:steps;margin:0}.compact-help li{position:relative;padding-left:35px;margin-bottom:22px;counter-increment:steps;font-size:12.35px}.compact-help li:before{content:counter(steps);position:absolute;left:0;top:0;width:25px;height:25px;border-radius:50%;background:#e3f5eb;display:grid;place-items:center;color:#009b58;font-weight:700}.compact-help strong{display:block;font-size:11.4px;margin-bottom:4px}.compact-help li span{display:block;font-size:10.45px;color:#78867d;line-height:1.65}.compact-help-link{display:block;text-align:center;padding:10px;border-radius:10px;background:#eaf7ef;font-size:11.4px}.compact-help .plain-row{font-size:11.4px;margin-top:12px}
.compact-instructions{margin-top:0;padding:18px 24px}.compact-instructions summary{font-weight:650;cursor:pointer;list-style:none;display:flex;justify-content:space-between}.compact-instructions summary::-webkit-details-marker{display:none}.compact-instructions p{font-size:12.35px;color:#6b786f;line-height:1.7}
 dialog.compact-source-dialog{width:calc(100% - 32px);max-width:520px;padding:26px;border:0;border-radius:20px;color:#223229;box-sizing:border-box;max-height:85dvh;overflow:auto;box-shadow:0 20px 70px #10221933}dialog.compact-source-dialog::backdrop{background:#12251cb3;backdrop-filter:blur(2px)}
.compact-source-dialog .dialog-title{display:flex;align-items:center;justify-content:space-between;gap:15px;margin-bottom:20px}.compact-source-dialog h2{font-size:21.85px;margin:0}.compact-source-dialog .round-button{flex:0 0 32px;width:32px;height:32px;font-size:22.8px;line-height:1}
.chosen-file-box{display:flex;align-items:center;gap:14px;padding:18px;background:#edf7f1;border-radius:12px}.chosen-file-icon{color:#009b58;font-size:28.5px;flex:0 0 30px}.chosen-file-box>div{min-width:0;flex:1}#chosenFile{display:block;overflow-wrap:anywhere;font-size:13.3px;line-height:1.5}#chosenFileMeta{display:flex;flex-wrap:wrap;gap:6px;margin-top:9px}#chosenFileMeta span{font-size:10.45px;border-radius:6px;padding:3px 8px;background:#dfe8e2}
.compact-download-hint{font-size:12.35px;color:#6e7b72;margin:16px 0 12px}.compact-source-dialog .download-now{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:62px;border-radius:12px;font-size:19px;font-weight:700;background:#009b58;color:#fff;box-sizing:border-box;text-decoration:none}.compact-source-dialog .download-now:focus-visible{outline:3px solid #70ca9d;outline-offset:3px}.compact-source-dialog .download-now:disabled{opacity:.5;cursor:not-allowed}.compact-source-dialog [hidden]{display:none!important}
.compact-dialog-back{display:block;width:100%;padding:18px 0 0;margin-top:20px;border:0;border-top:1px solid #e4eae6;background:transparent;color:#344a3d;font-size:12.35px;cursor:pointer}.compact-source-dialog .mcpe-checksum{overflow-wrap:anywhere;font-size:10.45px}
@media(max-width:800px){.download-compact .download-layout{display:block}.download-compact .download-layout>aside{display:none}.download-identity{display:grid;grid-template-columns:72px minmax(0,1fr);align-items:start;column-gap:12px;row-gap:8px;padding:16px}.download-identity>img{grid-column:1;grid-row:1/3;width:72px;height:72px}.download-identity>div{grid-column:2;min-width:0}.download-identity h1{font-size:17.1px;line-height:1.4;letter-spacing:-.2px;margin:0 0 10px}.download-identity>a{grid-column:2;justify-self:start;display:inline-flex;align-items:center;min-height:36px;margin:0;font-size:11.4px}.download-list-heading h2{font-size:18.05px}.download-compact .compact-file-panel{padding:0 16px 16px}.compact-file-row{grid-template-columns:38px minmax(0,1fr)112px;gap:9px;padding:18px 0}.compact-file-icon{width:38px;height:44px;grid-row:1/3;align-self:start}.compact-file-description{grid-column:2/4}.compact-file-description h3{font-size:11.4px}.compact-file-size{grid-column:2;grid-row:2;text-align:left}.compact-file-row>.button{grid-column:3;grid-row:2}.compact-instructions{padding:18px 16px}.compact-instructions summary{font-size:13.3px}
 dialog.compact-source-dialog{position:fixed;inset:auto 0 0;width:100%;max-width:100%;margin:0;padding:26px 20px calc(22px + env(safe-area-inset-bottom));border-radius:20px 20px 0 0;transform:none}dialog.compact-source-dialog:before{content:'';position:absolute;top:9px;left:calc(50% - 18px);width:36px;height:4px;border-radius:9px;background:#c3cbc6}.compact-source-dialog h2{font-size:20.9px}.compact-source-dialog .download-now{min-height:62px}}

.download-compact [data-download-overflow][hidden]{display:none!important}.download-show-more{display:block;width:100%;padding:14px 16px;margin:14px 0 0;border:1px solid #d7e8de;border-radius:10px;background:#edf7f1;color:#008b51;font-size:12.35px;font-weight:650;cursor:pointer}.download-show-more:hover{background:#e0f2e7}.download-show-more:focus-visible{outline:2px solid #009b58;outline-offset:3px}

/* Recent articles stay outside the collapsible instructions, in swipeable rows. */
.download-articles{margin-top:28px}
.download-articles h2{font-size:19px}
.download-articles .section-head{display:flex;align-items:center;justify-content:space-between}
.download-articles .rail-hint{font-size:20.9px;color:#009b58}

      .download-articles .mcpe-resource-rail>.resource-card{flex:0 0 390px;height:168px;min-height:168px;max-height:168px;padding:16px 14px;gap:14px;border-radius:20px}
      .download-articles .resource-card .resource-preview{width:136px;height:136px;min-height:136px;max-height:136px;flex-basis:136px;border-radius:18px}
      .download-articles .resource-card .resource-preview img{inset:8px;width:120px;height:120px;border-radius:12px;object-fit:cover}
      .download-articles .resource-card .resource-body{height:132px;min-width:0}
      .download-articles .resource-card .resource-body :is(h2,h3){font-size:15.2px;line-height:21px;max-height:42px}
      .download-articles .resource-card .resource-topics{gap:6px;row-gap:7px}
      @media(max-width:800px){.download-articles .mcpe-resource-rail>.resource-card{flex-basis:94%;padding:16px 12px;gap:12px}.download-articles .resource-card .resource-body :is(h2,h3){font-size:14.25px;line-height:20px;max-height:40px}.download-articles .resource-card .card-meta{gap:4px;font-size:10.45px}.download-articles .resource-card .card-meta .version-pill{font-size:9.5px;padding:2px 5px}}
    

/* Approved file-first block for resources without a release version. */
.mcpe-inline-downloads{position:relative;font-family:Arial,Helvetica,sans-serif;color:#1c2a24;background:#fff;border-radius:22px;padding:28px;box-shadow:0 4px 20px #1b3d2803}.inline-download-heading{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:9px}.mcpe-inline-downloads h2{margin:0;font-size:20.9px;line-height:1.35;letter-spacing:-.4px}.inline-download-count{background:#e7f5ee;color:#00854f;font-size:11.4px;line-height:1;padding:7px 11px;border-radius:30px;white-space:nowrap}.inline-download-subtitle{font-size:12.35px;line-height:1.6;color:#76847b;margin:0 0 22px}.inline-download-file{display:grid;grid-template-columns:48px minmax(0,1fr)145px;align-items:center;gap:15px;border:1px solid #dce9e1;border-radius:14px;padding:20px;background:linear-gradient(110deg,#f5faf7,#fff 65%)}.inline-download-icon{width:48px;height:54px;background:#e3f3ea;border-radius:12px;display:grid;place-items:center;color:#008b53}.inline-download-icon svg{width:25px;height:25px}.inline-download-body{min-width:0}.inline-download-label{display:block;color:#46816a;font-size:9.5px;letter-spacing:.55px;font-weight:700;text-transform:uppercase;margin:0 0 7px}.mcpe-inline-downloads h3{font-size:13.3px;line-height:1.5;margin:0 0 9px;font-weight:700;overflow-wrap:anywhere}.inline-download-meta{display:flex;align-items:center;flex-wrap:wrap;gap:8px;font-size:11.4px;color:#75847b}.inline-download-meta strong{color:#475e51;font-weight:500}.inline-download-dot{color:#a5b6ab}.inline-download-action{display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border-radius:10px;background:#009f5c;color:#fff;font-weight:700;font-size:13.3px;white-space:nowrap}.inline-download-action svg{width:18px;height:18px}.inline-download-links{display:flex;justify-content:space-between;align-items:center;gap:14px;border-top:1px solid #edf1ee;margin-top:22px;padding-top:18px;font-size:11.4px}.inline-download-help{display:flex;gap:8px;align-items:center;color:#008a53}.inline-download-help svg{width:17px;height:17px}.inline-download-report{color:#7b877f;font-size:10.45px}.inline-download-platform{border:1px solid #e3ebe6;padding:3px 7px;border-radius:5px;color:#60806c;background:#fff;font-size:9.5px}
@media(max-width:600px){.mcpe-inline-downloads{position:relative;font-family:Arial,Helvetica,sans-serif;color:#1c2a24;padding:20px;border-radius:20px}.inline-download-heading{margin-bottom:9px}.mcpe-inline-downloads h2{font-size:19px}.inline-download-subtitle{font-size:11.4px;margin-bottom:18px;line-height:1.6}.inline-download-file{grid-template-columns:40px minmax(0,1fr);gap:12px;padding:16px;align-items:start}.inline-download-icon{width:40px;height:46px}.inline-download-icon svg{width:23px;height:23px}.inline-download-label{font-size:8.55px;margin-bottom:6px}.mcpe-inline-downloads h3{font-size:12.35px;line-height:1.55;margin-bottom:9px}.inline-download-meta{gap:7px;font-size:10.45px}.inline-download-meta .inline-download-platform{display:none}.inline-download-action{grid-column:1/-1;min-height:46px;margin-top:4px;font-size:13.3px}.inline-download-links{margin-top:18px;padding-top:17px;font-size:10.45px;gap:10px}.inline-download-help{gap:6px}.inline-download-report{font-size:9.5px}.inline-download-count{font-size:10.45px;padding:6px 9px}}

.mcpe-inline-downloads [data-inline-download-overflow][hidden]{display:none!important}
.inline-download-file+.inline-download-file{margin-top:12px}
.inline-download-action:hover{text-decoration:none;background:#008d51;color:#fff}
.inline-download-action:focus-visible{outline:3px solid #75c89c;outline-offset:3px}
.inline-download-help svg{width:17px;height:17px}
.mcpe-download-anchor{position:absolute;top:0;left:0;width:1px;height:1px;pointer-events:none}
/* Read the full changelog without shortening or modifying its stored content. */
.mcpe-changelog-content{--changelog-preview-height:240px;position:relative}
.mcpe-changelog-body{display:flow-root}
.mcpe-changelog.is-collapsed .mcpe-changelog-content{max-height:var(--changelog-preview-height);overflow:hidden}
.mcpe-changelog.is-collapsed .mcpe-changelog-content:after{content:'';position:absolute;left:0;right:0;bottom:0;height:40px;background:linear-gradient(transparent,var(--surface,#fff));pointer-events:none}
.mcpe-changelog-more{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:42px;margin-top:14px;padding:9px 16px;border:1px solid #dcebe2;border-radius:10px;background:#edf7f1;color:#00864e;font-family:inherit;font-size:13px;font-weight:600;line-height:1.4;cursor:pointer}
.mcpe-changelog-more[hidden]{display:none!important}
.mcpe-changelog-more:hover{background:#e0f2e7}
.mcpe-changelog-more:focus-visible{outline:2px solid #009b58;outline-offset:3px}
.mcpe-changelog-more svg{width:16px;height:16px}
.mcpe-changelog-more[aria-expanded="true"] svg{transform:rotate(180deg)}

.mcpe-article-socials{margin-top:24px;padding-top:14px;border-top:1px solid var(--line,#e9ece7)}
.mcpe-article-socials ul{list-style:disc;margin:0;padding-left:22px}
.mcpe-article-socials li{margin:5px 0;overflow-wrap:anywhere}
.mcpe-article-socials li span{color:inherit;user-select:text}
