/* Minecraft action green: restrained slightly brighter shade, white text contrast 4.8:1. */
/* Minecraft guide shared contrast theme — 2026-10-28.
   Explicit dark heroes, white content surfaces, and legible control states.
   Replaces conflicting dark-glass and white-surface overrides. */
body.mc-ambient{
  --mc-ink:#192e21;--mc-copy:#354b3d;--mc-edge:#d5e4d7;
  background:transparent!important;color:#192e21!important;
  min-height:100vh;position:relative;isolation:isolate;
}
/* Restore the original official Minecraft screenshot as the full-page backdrop. */
body.mc-ambient::before{
  content:"";display:block!important;position:fixed;inset:0;z-index:-1;
  pointer-events:none;
  background:linear-gradient(115deg,rgba(6,17,23,.54),rgba(7,24,31,.5)),
    url("https://www.minecraft.net/content/dam/minecraftnet/games/minecraft/screenshots/1-20-0_header.png")
    center/cover no-repeat;
}
body.mc-ambient::after{
  content:"";display:block!important;position:fixed;inset:0;z-index:-1;
  pointer-events:none;
  background:linear-gradient(0deg,rgba(5,15,21,.3),transparent 48%,rgba(7,21,30,.18));
}

/* Dark artwork heroes: never apply black text to a dark graphic. */
body.mc-ambient :is(.ml-hero,.md-hero,.hero){
  background:linear-gradient(120deg,#0b2518,#1b482c)!important;
  color:#fff!important;border:1px solid #3c684a!important;
  border-radius:15px;overflow:hidden;box-shadow:0 12px 30px #13341b30!important;
}
body.mc-ambient .ml-hero{background:#0b2118!important}
body.mc-ambient :is(.ml-hero,.md-hero,.hero) :is(h1,h2){
  color:#fff!important;text-shadow:0 2px 9px #041a0bb3!important;
}
body.mc-ambient :is(.ml-hero,.md-hero,.hero) :is(p,.ml-lead,.hero-description,.hero-copy){
  color:#f0fbf0!important;text-shadow:none!important;
}
body.mc-ambient :is(.ml-hero .ml-eyebrow,.md-hero .md-eyebrow,.hero .eyebrow){
  color:#b6eec2!important;
}
body.mc-ambient .md-hero h1 em,body.mc-ambient .hero .accent-text{
  color:#b9f4bb!important;
}
body.mc-ambient .ml-hero h1{
  font-size:clamp(45px,7vw,84px)!important;line-height:1.15!important;
  font-weight:950!important;letter-spacing:-.055em!important;
}
body.mc-ambient .ml-hero{padding-block:clamp(49px,6vw,78px)!important}
/* Restore the original Minecraft gameplay screenshot in the top hero as well. */
body.mc-ambient .ml-hero-screens{display:grid!important}
body.mc-ambient .ml-hero-credit{display:block!important}

/* Every content card/section uses a consistent white canvas. */
body.mc-ambient :is(.ml-section,.md-section,.ml-card,.ml-mini,.ml-article,.ml-note,
 .ml-guide-nav,.ml-band,.ml-table-wrap,.md-tile,.md-mod-item,.md-quiz-card,
 .md-note,.md-ranking-panel,.md-category-desc,.md-summary,.md-rec-card,
 .md-rank-switcher,.quiz-card,.feature-card,.article-card,.result,.reading,
 .explain,.faq,.faq-list,.offer-card,.article-wrap,.wrap.article-wrap,
 .md-rank-source,.md-no-results,.md-quiz-note){
  background:#fff!important;color:#192e21!important;border-color:#d5e4d7!important;
  box-shadow:0 6px 20px #132d1614!important;
}
body.mc-ambient :is(.ml-section,.md-section,.ml-article,.article-wrap,.wrap.article-wrap){
  border:1px solid #d5e4d7!important;border-radius:15px!important;
  padding:clamp(16px,2.4vw,30px)!important;margin-block:20px!important;
}
body.mc-ambient .ml-band{padding:12px 0!important}
body.mc-ambient .ml-band .ml-section{margin:0 auto!important}
body.mc-ambient :is(.ml-card,.ml-mini,.md-tile,.md-mod-item,.md-quiz-card,
 .md-note,.md-ranking-panel,.md-summary,.md-rec-card,.article-card,.feature-card,
 .quiz-card,.result,.reading,.explain,.faq,.offer-card){
  border:1px solid #d5e4d7!important;border-radius:12px!important;
}
body.mc-ambient :is(.ml-card,.ml-mini,.md-tile,.md-mod-item,.feature-card,.article-card):hover{
  border-color:#86b797!important;box-shadow:0 10px 25px #12331b26!important;
}
body.mc-ambient .ml-grid{grid-template-columns:repeat(auto-fit,minmax(215px,1fr))}
body.mc-ambient .ml-card{min-width:0}

/* Fix near-white descriptions, titles and notes on white cards. */
body.mc-ambient :is(.ml-section,.md-section,.ml-card,.ml-mini,.ml-article,
 .ml-note,.md-tile,.md-mod-item,.md-quiz-card,.md-note,.md-ranking-panel,
 .md-category-desc,.md-summary,.md-rec-card,.quiz-card,.feature-card,.article-card,
 .result,.reading,.explain,.faq,.faq-list,.offer-card,.article-wrap)
 :is(h1,h2,h3,h4,h5,p,li,small,label,b,strong,dt,dd){
  color:#213827!important;text-shadow:none!important;
}
body.mc-ambient :is(.ml-card,.ml-mini,.ml-article,.md-tile,.md-mod-item,
 .md-quiz-card,.md-note,.md-ranking-panel,.md-summary,.md-rec-card,
 .article-wrap,.article-card,.feature-card,.quiz-card,.reading,.explain)
 :is(p,.md-mod-desc,.md-rec-desc,.md-rec-reason,.md-section-lead,.md-quiz-help,.md-tile-tag){
  color:#344c3a!important;text-shadow:none!important;
}
body.mc-ambient :is(.ml-card,.ml-mini,.md-tile,.md-mod-item,.ml-article,.article-wrap)
 a:not(.md-mod-link):not(.ml-btn):not(.button):not(.md-primary):not(.md-secondary){
  color:#1e5e39!important;
}
body.mc-ambient .ml-card .ml-arrow{color:#215f3b!important}
body.mc-ambient .ml-card .ml-chip{
  background:#eaf5eb!important;color:#245a39!important;border:1px solid #cce1d0!important;
}
body.mc-ambient .ml-card b,body.mc-ambient .md-mod-title{color:#1a3021!important}
body.mc-ambient .md-rank-toolbar,body.mc-ambient .md-rank-caption,
body.mc-ambient .md-mod-count,body.mc-ambient .md-quiz-meta,
body.mc-ambient .md-quiz-help,body.mc-ambient .md-page-explain{
  color:#334a39!important;
}
body.mc-ambient .md-mod-tags span,body.mc-ambient .md-tile-tag,
body.mc-ambient .md-quiz-pill,body.mc-ambient .md-rec-tag{
  color:#275b3c!important;
}

/* Pair every button's text color with its actual button background. */
body.mc-ambient .ml-hero .ml-actions a.ml-btn:not(.ml-btn-alt),
body.mc-ambient a.md-mod-link,body.mc-ambient .md-mod-item a.md-mod-link,
body.mc-ambient .md-next,body.mc-ambient .button-primary,
body.mc-ambient .md-reset,body.mc-ambient .md-rec-card a.md-mod-link{
  background:#00bd21!important;color:#fff!important;
  border:1px solid #00bd21!important;opacity:1!important;text-shadow:none!important;
}
body.mc-ambient .ml-hero .ml-actions a.ml-btn-alt,
body.mc-ambient .ml-hero .ml-actions a.ml-btn-alt:visited{
  background:#fff!important;color:#174b2d!important;
  border:1px solid #d0e6d4!important;opacity:1!important;text-shadow:none!important;
}
body.mc-ambient .md-primary{
  background:#f2ce76!important;color:#29351e!important;border-color:#e8c265!important;
}
body.mc-ambient .md-secondary{
  background:#00bd21!important;color:#fff!important;border:1px solid #9dcaa9!important;
}
body.mc-ambient :is(.md-prev,.button-secondary){
  background:#f7faf7!important;color:#245637!important;border:1px solid #adcab5!important;
}
body.mc-ambient .md-mod-link:hover,body.mc-ambient .md-next:hover,
body.mc-ambient .button-primary:hover{background:#00bd21!important;color:#fff!important}

/* Ranking tabs: green active tab/white text; white inactive tab/dark text. */
body.mc-ambient .md-rank-switcher{background:#fff!important;padding:10px!important}
body.mc-ambient .md-rank-switcher .md-tab:not([aria-selected="true"]){
  background:#fff!important;color:#22432e!important;border-color:#a7cbb2!important;
}
body.mc-ambient .md-rank-switcher .md-tab[aria-selected="true"],
body.mc-ambient .md-tabs>.md-tab[aria-selected="true"]{
  background:#00bd21!important;color:#fff!important;border-color:#00bd21!important;
}
body.mc-ambient .md-rank-switcher .md-tab:not([aria-selected="true"])
 :is(.md-tab-title,.md-tab-top100,span,strong){color:#234832!important}
body.mc-ambient .md-rank-switcher .md-tab[aria-selected="true"]
 :is(.md-tab-title,.md-tab-top100,span,strong){color:#fff!important}
body.mc-ambient .md-rank-switcher .md-tab-symbol{
  background:#fff!important;color:#27623e!important;
}

/* Active ranking tab: keep the trophy/compass/lightning icon dark against its white tile.
   The generic selected-span rule above turns every span white, including the icon. */
body.mc-ambient .md-rank-switcher .md-tab[aria-selected="true"] > .md-tab-symbol,
body.mc-ambient .md-rank-switcher .md-tab[aria-selected="false"] > .md-tab-symbol{
  background:#fff!important;color:var(--md-tab-dark,#215537)!important;
  border-color:var(--md-tab-dark,#215537)!important;
}
body.mc-ambient .md-rank-switcher .md-tab > .md-tab-symbol svg{
  color:var(--md-tab-dark,#215537)!important;
  stroke:currentColor!important;fill:none!important;
}
body.mc-ambient .md-rank-switcher .md-tab-top100{background:transparent!important}
body.mc-ambient :is(.md-page-prev,.md-page-next,.md-page-number){
  background:#fff!important;color:#235338!important;border-color:#abc9b3!important;
}
body.mc-ambient .md-page-number.is-active{
  background:#00bd21!important;color:#fff!important;border-color:#00bd21!important;
}
body.mc-ambient .md-page-number.is-active .md-page-range{color:#fff!important}
body.mc-ambient .md-page-number:not(.is-active) .md-page-range{color:#55705a!important}

/* Diagnosis choices, recommendation ribbons, and search controls. */
body.mc-ambient .md-choice-inner{
  background:#fff!important;color:#253b2b!important;border:1px solid #c9dccd!important;
}
body.mc-ambient .md-choice input:checked+.md-choice-inner{
  background:#e7f5e9!important;color:#1c5e38!important;border-color:#318e51!important;
}
body.mc-ambient .md-rec-position{
  background:#00bd21!important;color:#fff!important;
}
body.mc-ambient .md-rec-card.is-first .md-rec-position{
  background:#b28028!important;color:#fff!important;
}
body.mc-ambient :is(input:not([type="checkbox"]):not([type="radio"]),select,textarea,.md-search){
  background:#fff!important;color:#1f3427!important;border-color:#bbd0c0!important;
}
body.mc-ambient .md-mod-rank{background:#eef5ee!important;color:#225e3a!important}

/* Breadcrumbs, article tables, footer and page credits. */
body.mc-ambient :is(.ml-crumb,.md-crumb,.mc-crumb,.breadcrumb){
  background:#fff!important;color:#213929!important;border:1px solid #d5e4d7!important;
  border-radius:9px;display:flex;gap:8px;align-items:center;flex-wrap:wrap;
  padding:8px 12px;width:fit-content;max-width:100%;
}
body.mc-ambient :is(.ml-crumb,.md-crumb,.mc-crumb,.breadcrumb) a{color:#20603b!important}
body.mc-ambient .ml-table :is(th,td),body.mc-ambient .article-wrap :is(th,td){
  background:#fff!important;color:#203425!important;border-color:#dce6dd!important;
}
body.mc-ambient .ml-table th{background:#eff6ef!important}
body.mc-ambient :is(.ml-article blockquote,.article-wrap blockquote){
  background:#f1f7f1!important;color:#243a2b!important;border-left:4px solid #3c8656!important;
}
body.mc-ambient .hero :is(.hero-facts,.hero-caution){
  background:#fff!important;color:#20392b!important;
}
body.mc-ambient .hero :is(.hero-facts,.hero-caution) :is(p,b,strong,small,span){
  color:#20392b!important;
}
body.mc-ambient :is(.bottom-banner,.ml-footer,.footer,.site-footer){
  background:#112f20!important;color:#f5fff6!important;
}
body.mc-ambient :is(.bottom-banner,.ml-footer,.footer,.site-footer) :is(a,p,span,small){
  color:#eaf7ed!important;
}
body.mc-ambient .mc-background-credit{
  background:#fff!important;color:#31483a!important;border:1px solid #d5e4d7!important;
  border-radius:9px;max-width:calc(100% - 36px);width:fit-content;margin:20px auto;
  padding:7px 12px;font-size:10px;
}
body.mc-ambient .mc-background-credit a{color:#21603b!important}
@media(max-width:750px){
 body.mc-ambient .ml-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
 body.mc-ambient .ml-hero h1{font-size:clamp(40px,9vw,61px)!important}
 body.mc-ambient :is(.ml-section,.md-section,.ml-article,.article-wrap){padding:15px!important}
 body.mc-ambient .md-rank-switcher .md-tab{min-width:0}
}
@media(max-width:420px){body.mc-ambient .ml-grid{grid-template-columns:1fr}}


/* Minecraft TOP navigation actions — green filled button with white lettering.
   This targets the two action groups only; the background art and all other
   sections retain the previously approved contrast theme. */
body.ml-body.mc-ambient .ml-hero .ml-actions a.ml-btn,
body.ml-body.mc-ambient .ml-hero .ml-actions a.ml-btn-alt,
body.ml-body.mc-ambient .ml-hero .ml-actions a.ml-btn-alt:visited{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  background:#00bd21!important;color:#ffffff!important;
  border:1px solid #00bd21!important;border-radius:9px!important;
  opacity:1!important;text-decoration:none!important;text-shadow:none!important;
  font-weight:850!important;
}
body.ml-body.mc-ambient .ml-hero .ml-actions a.ml-btn:hover,
body.ml-body.mc-ambient .ml-hero .ml-actions a.ml-btn:focus-visible{
  background:#00bd21!important;color:#ffffff!important;border-color:#00bd21!important;
}
body.ml-body.mc-ambient .ml-card > .ml-arrow{
  display:inline-flex!important;align-items:center!important;justify-content:center!important;
  width:max-content!important;max-width:100%!important;align-self:flex-start!important;
  margin-top:auto!important;padding:10px 16px!important;min-height:42px!important;
  background:#00bd21!important;color:#ffffff!important;
  border:1px solid #00bd21!important;border-radius:9px!important;
  line-height:1.35!important;text-shadow:none!important;text-decoration:none!important;
  font-size:14px!important;font-weight:850!important;
}
body.ml-body.mc-ambient .ml-card:hover > .ml-arrow,
body.ml-body.mc-ambient .ml-card:focus-visible > .ml-arrow{
  background:#00bd21!important;color:#ffffff!important;border-color:#00bd21!important;
}



/* Unified Minecraft action color, requested: old hover shade #00BD21.
   All action states share the same specified green; dark text remains legible. */
body.mc-ambient{--mc-action-normal:#00bd21;--mc-action-hover:#00bd21;--mc-action-ink:#0b2714}
body.mc-ambient .ml-hero .ml-actions a.ml-btn,
body.mc-ambient .ml-hero .ml-actions a.ml-btn-alt,
body.mc-ambient .ml-hero .ml-actions a.ml-btn-alt:visited,
body.mc-ambient a.md-mod-link,
body.mc-ambient .md-mod-item a.md-mod-link,
body.mc-ambient .md-rec-card a.md-mod-link,
body.mc-ambient :is(.md-next,.md-reset,.md-secondary,.button-primary),
body.mc-ambient .md-page-number.is-active,
body.mc-ambient .md-rec-position,
body.mc-ambient .md-rank-switcher .md-tab[aria-selected="true"],
body.mc-ambient .md-tabs>.md-tab[aria-selected="true"],
body.ml-body.mc-ambient .ml-card>.ml-arrow,
body.ml-body.mc-ambient .ml-hero .ml-actions a.ml-btn,
body.ml-body.mc-ambient .ml-hero .ml-actions a.ml-btn-alt,
body.ml-body.mc-ambient .ml-hero .ml-actions a.ml-btn-alt:visited{
 background:#00bd21!important;border-color:#00bd21!important;
 color:#0b2714!important;text-shadow:none!important;
}
body.mc-ambient .md-rank-switcher .md-tab[aria-selected="true"] :is(.md-tab-title,.md-tab-top100,span,strong),
body.mc-ambient .md-page-number.is-active .md-page-range,
body.mc-ambient .md-rec-position :is(span,strong){
 color:#0b2714!important;
}
body.mc-ambient .md-rank-switcher .md-tab>.md-tab-symbol,
body.mc-ambient .md-rank-switcher .md-tab[aria-selected="true"]>.md-tab-symbol{
 background:#fff!important;color:var(--md-tab-dark,#215537)!important;
}
body.mc-ambient .md-rank-switcher .md-tab>.md-tab-symbol svg{
 color:var(--md-tab-dark,#215537)!important;stroke:currentColor!important;fill:none!important;
}
/* Keep the specified shade even while hovering/focusing. */
body.mc-ambient .ml-hero .ml-actions a.ml-btn:is(:hover,:focus-visible),
body.mc-ambient a.md-mod-link:is(:hover,:focus-visible),
body.mc-ambient .md-mod-item a.md-mod-link:is(:hover,:focus-visible),
body.mc-ambient .md-rec-card a.md-mod-link:is(:hover,:focus-visible),
body.mc-ambient :is(.md-next,.md-reset,.md-secondary,.button-primary):is(:hover,:focus-visible),
body.mc-ambient .md-rank-switcher .md-tab:is(:hover,:focus-visible),
body.mc-ambient .md-page-number:is(:hover,:focus-visible),
body.mc-ambient :is(.md-page-next,.md-page-prev):not(:disabled):is(:hover,:focus-visible),
body.ml-body.mc-ambient .ml-hero .ml-actions a.ml-btn:is(:hover,:focus-visible),
body.ml-body.mc-ambient .ml-card:is(:hover,:focus-visible)>.ml-arrow{
 background:#00bd21!important;border-color:#00bd21!important;
 color:#0b2714!important;text-shadow:none!important;
}
body.mc-ambient .md-rank-switcher .md-tab:is(:hover,:focus-visible) :is(.md-tab-title,.md-tab-top100,span,strong),
body.mc-ambient .md-page-number:is(:hover,:focus-visible) .md-page-range{
 color:#0b2714!important;
}
body.mc-ambient .md-rank-switcher .md-tab:is(:hover,:focus-visible)>.md-tab-symbol{
 background:#fff!important;color:var(--md-tab-dark,#215537)!important;
}
body.mc-ambient .md-rank-switcher .md-tab:is(:hover,:focus-visible)>.md-tab-symbol svg{
 color:var(--md-tab-dark,#215537)!important;
}

/* 2026-10-28: Every Minecraft switch / selector uses #00BD21 with dark ink.
   Scope: Minecraft-only actions, tabs, pagination, radio choices and menus.
   Preserve white search inputs, white article cards, and official image backdrop. */
body.mc-ambient{--mc-switch:#00bd21;--mc-switch-ink:#0b2714}
body.mc-ambient .md-rank-switcher .md-tab[aria-selected],
body.mc-ambient .md-rank-switcher .md-tab:not([aria-selected="true"]),
body.mc-ambient .md-tabs > .md-tab[aria-selected],
body.mc-ambient .md-tabs > .md-tab:not([aria-selected="true"]),
body.mc-ambient :is(.md-page-prev,.md-page-next,.md-page-number),
body.mc-ambient :is(.md-prev,.md-next,.md-reset,.md-search-clear,.md-primary,.md-secondary),
body.mc-ambient :is(.button-primary,.button-secondary,.button-white,.result-reset),
body.mc-ambient :is(.md-choice-inner,.choice-body),
body.mc-ambient .ml-guide-nav a,
body.mc-ambient .mlg-site-header[data-section="minecraft"] .mlg-site-context-link{
 background:var(--mc-switch)!important;
 color:var(--mc-switch-ink)!important;
 border-color:var(--mc-switch)!important;
 text-shadow:none!important;
}
body.mc-ambient .md-rank-switcher .md-tab:is(:hover,:focus-visible),
body.mc-ambient .md-tabs > .md-tab:is(:hover,:focus-visible),
body.mc-ambient :is(.md-page-prev,.md-page-next,.md-page-number):not(:disabled):is(:hover,:focus-visible),
body.mc-ambient :is(.md-prev,.md-next,.md-reset,.md-search-clear,.md-primary,.md-secondary):not(:disabled):is(:hover,:focus-visible),
body.mc-ambient :is(.button-primary,.button-secondary,.button-white,.result-reset):not(:disabled):is(:hover,:focus-visible),
body.mc-ambient :is(.md-choice-inner,.choice-body):is(:hover,:focus-visible),
body.mc-ambient .ml-guide-nav a:is(:hover,:focus-visible),
body.mc-ambient .mlg-site-header[data-section="minecraft"] .mlg-site-context-link:is(:hover,:focus-visible){
 background:var(--mc-switch)!important;
 border-color:var(--mc-switch)!important;
 color:var(--mc-switch-ink)!important;
}
body.mc-ambient .md-rank-switcher .md-tab[aria-selected] :is(.md-tab-title,.md-tab-top100,.md-tab-top100 strong),
body.mc-ambient .md-rank-switcher .md-tab:not([aria-selected="true"]) :is(.md-tab-title,.md-tab-top100,.md-tab-top100 strong),
body.mc-ambient .md-rank-switcher .md-tab:is(:hover,:focus-visible) :is(.md-tab-title,.md-tab-top100,.md-tab-top100 strong),
body.mc-ambient .md-page-number.is-active .md-page-range,
body.mc-ambient .md-page-number:not(.is-active) .md-page-range,
body.mc-ambient .choice-body :is(b,small),
body.mc-ambient .mlg-site-header[data-section="minecraft"] .mlg-site-context-link[aria-current]{
 color:var(--mc-switch-ink)!important;
}
/* White icon tiles with dark, visible SVGs, including the active MOD tab. */
body.mc-ambient .md-rank-switcher .md-tab[aria-selected] > .md-tab-symbol{
 background:#fff!important;color:#17512e!important;border-color:#17512e!important;
}
body.mc-ambient .md-rank-switcher .md-tab > .md-tab-symbol svg{
 color:#17512e!important;stroke:currentColor!important;fill:none!important;
}
/* Radio selections remain conspicuously selected without changing the green hue. */
body.mc-ambient .md-choice input:checked + .md-choice-inner,
body.mc-ambient .choice input:checked + .choice-body{
 background:var(--mc-switch)!important;color:var(--mc-switch-ink)!important;
 border:2px solid #0b2714!important;
 box-shadow:inset 0 0 0 2px #ffffff,0 0 0 2px #0b2714!important;
}
body.mc-ambient .md-choice input:focus-visible + .md-choice-inner,
body.mc-ambient .choice input:focus-visible + .choice-body{
 outline:3px solid #173e24!important;outline-offset:3px!important;
}
body.mc-ambient .choice-body .choice-dot{border-color:#0b2714!important}
body.mc-ambient .choice input:checked + .choice-body .choice-dot{
 background:#0b2714!important;border-color:#0b2714!important;
}
body.mc-ambient .md-control:disabled,
body.mc-ambient .button:disabled,
body.mc-ambient :is(.md-page-prev,.md-page-next):disabled{
 opacity:.43!important;cursor:not-allowed!important;
}
/* Restore the Minecraft scoped nav's active-state distinction. */
body.mc-ambient .mlg-site-header[data-section="minecraft"] .mlg-site-context-link[aria-current]{
 background:var(--mc-switch)!important;
 border:2px solid #083b16!important;box-shadow:inset 0 -3px 0 #083b16!important;
 font-weight:850!important;opacity:1!important;
}
