/* TRMC homepage v2 — rebuilt from the supplied 1920 × 1080 mockup. */
@font-face {
   font-family: 'Minecraft Seven';
   src: url('/fonts/Minecraft-Seven_v2.woff2') format('woff2');
   font-display: swap;
   font-weight: 400;
}

@font-face {
   font-family: 'Minecraft Ten v2';
   src: url('/fonts/Minecraft-Tenv2.woff2') format('woff2');
   font-display: swap;
   font-weight: 400;
}

:root {
   --font-body: 'Minecraft Seven', monospace;
   --font-display: 'Minecraft Ten v2', monospace;
   --type-body: 20px;
   --type-title: 40px;
   --type-h2: 30px;
   --type-h3: calc(var(--type-body) * 1.17);
   --type-section: 20px;
   --type-label: 16px;
   --type-caption: 16px;
   --type-button: 18px;
   --type-body-leading: 1.5;
   --card-color: #464748;
   --edge-color: #292a2b;
   --button-color: #d0d1d3;
   --tag-color: #a5df84;
   --panel-background: rgb(0 0 0 / 50%);
   --post-shadow-color: rgb(0 0 0 / 80%);
   --post-text-shadow: 2px 2px 0 var(--post-shadow-color);
   --site-header-offset: 97px;
   --site-house-ad-size: 0px;
   --floating-ui-bottom-clearance: 0px;
   color-scheme: light;
   font-family: var(--font-body);
   font-synthesis: none;
}

*,
*::before,
*::after {
   box-sizing: border-box;
}

html {
   --advert-text-color: #000;
   min-height: 100%;
   overflow: hidden;
   background: #cdb081 url('/assets/home-v2/sky.webp') left center / cover no-repeat fixed;
}

@media (prefers-color-scheme: dark) {
   html:not([data-background="day"]) {
      --advert-text-color: #fff;
      background-color: #13151c;
      background-image: url('/assets/home-v2/night.webp');
   }
}

html[data-background="night"] {
   --advert-text-color: #fff;
   background-color: #13151c;
   background-image: url('/assets/home-v2/night.webp');
}

/* Mirror only the background on phones, including the compact landscape view. */
@media (max-width: 767px), (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) {
   html::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      background: inherit;
      transform: scaleX(-1);
      pointer-events: none;
   }
}

body {
   /* The body itself scrolls inside these bounds. Fixed UI stays outside them. */
   position: fixed !important;
   inset: var(--site-header-offset) 0 var(--site-house-ad-size) !important;
   margin: 0;
   height: auto !important;
   min-height: 0 !important;
   overflow: auto;
   scrollbar-gutter: stable;
   scroll-padding: 16px;
   color: #fff;
   background: transparent;
   font-size: var(--type-body);
   line-height: 1.25;
}

.page-content {
   display: flex;
   flex-direction: column;
   min-width: 0;
   /* GPT's padding stays at the document end; it must not shrink this viewport. */
   min-height: 100%;
   overflow: visible;
}

button,
input,
select {
   font: inherit;
}

button {
   cursor: pointer;
   color: inherit;
}

button,
a,
input,
select {
   -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
   outline: 3px solid #fff5a7;
   outline-offset: 4px;
}

img {
   max-width: 100%;
}

/* Shared separators for the main site, legacy pages and embedded editors. */
hr {
   box-sizing: border-box;
   width: 100%;
   height: 0;
   margin: 24px 0;
   border: 0;
   border-top: 4px solid rgb(255 255 255 / 25%);
   border-bottom: 4px solid rgb(0 0 0 / 40%);
   background: none;
   opacity: 1;
}

h1,
h2,
h3,
h4,
h5,
h6,
.mc-button,
.minecraft-ten {
   font-weight: 400;
   font-weight: normal;
}

.minecraft-ten {
   font-family: var(--font-display);
}

/* Keep Ten headings and buttons regular, including emphasis in post HTML. */
:is(h1, h2, h3, h4, h5, h6, .minecraft-ten, .mc-button--primary, .mc-button--house-ad) :is(b, strong) {
   font-weight: inherit;
   font-weight: normal;
}

.sr-only,
.skip-link:not(:focus) {
   position: absolute;
   width: 1px;
   height: 1px;
   padding: 0;
   margin: -1px;
   overflow: hidden;
   clip-path: inset(50%);
   white-space: nowrap;
   border: 0;
}

.skip-link:focus {
   position: fixed;
   top: 95px;
   left: 20px;
   z-index: 20;
   padding: 12px;
   color: #fff;
   background: #333;
}

.site-header,
.site-footer {
   flex-shrink: 0;
   width: 100%;
   display: flex;
   align-items: center;
   gap: 24px;
   position: relative;
   z-index: 10000;
   background: rgba(224, 238, 236, 0.298);
}

.site-header {
   position: fixed;
   inset: 0 0 auto;
   z-index: 10001;
   height: 70px;
   padding: 10px 21px 10px 10px;
   border-bottom: 4px solid rgba(255, 255, 255, 0.302);
}
.site-header::after {
   content: "";
   position: absolute;
   top: 100%;
   left: 0;
   width: 100%;
   height: 8px;
   border-bottom: 4px solid rgba(0, 0, 0, 0.098);
   pointer-events: none;
}

.site-logo {
   flex: 0 0 50px;
   width: 50px;
   height: 50px;
   align-self: flex-start;
   margin: 0px;
   margin-left: 6px;
}

.site-logo img {
   display: block;
   width: 50px;
   height: 50px;
   image-rendering: pixelated;
}

.main-nav,
.header-actions {
   display: flex;
   align-items: center;
   gap: 9px;
   transform: translateY(2px);
}

.header-actions {
   margin-left: auto;
}

.site-footer {
   min-height: 89px;
   padding: 14px 24px 19px;
   border-top: 4px solid rgba(255, 255, 255, 0.302);
   color: #252525;
   text-shadow: none;
}

.site-footer::before {
   content: "";
   position: absolute;
   bottom: 100%;
   left: 0;
   width: 100%;
   height: 8px;
   border-top: 4px solid rgba(0, 0, 0, 0.098);
   pointer-events: none;
}

.footer-copyright {
   margin: 0;
   font-size: 16px;
   line-height: 1.5;
   text-shadow: none;
}

@media (prefers-color-scheme: dark) {
   html:not([data-background="day"]) .footer-copyright,
   html:not([data-background="day"]) .footer-copyright p {
      color: #fff;
      text-shadow: var(--post-text-shadow);
   }
}

html[data-background="night"] .footer-copyright,
html[data-background="night"] .footer-copyright p {
   color: #fff;
   text-shadow: var(--post-text-shadow);
}

.footer-cookie-settings {
   padding: 0;
   border: 0;
   background: transparent;
   color: inherit;
   text-decoration: underline;
   text-underline-offset: 3px;
   text-shadow: inherit;
}

.footer-cookie-settings:disabled {
   cursor: default;
}

.footer-actions {
   display: flex;
   align-items: center;
   gap: 9px;
   margin-left: auto;
}

.mc-button {
   --mc-background: var(--button-color);
   --mc-background-hover: #bfc0c2;
   --mc-highlight: #e8e9eb;
   --mc-bottom: #58585a;
   --mc-depth-edge: #6b6c6e;
   --mc-text: #252525;
   --mc-font: var(--font-body);
   --mc-text-shadow: none;
   --mc-border: #202122;
   --mc-face-color: var(--mc-background);
   --mc-press: 0px;
   position: relative;
   isolation: isolate;
   min-height: 52px;
   padding: 6px 24px 10px;
   display: inline-flex;
   justify-content: center;
   align-items: center;
   border: 2px solid transparent;
   border-radius: 0;
   background: transparent;
   color: var(--mc-text);
   font-family: var(--mc-font);
   text-shadow: var(--mc-text-shadow);
   text-decoration: none;
   font-size: var(--type-button);
   line-height: 22px;
   white-space: nowrap;
}

.mc-button::before {
   content: "";
   position: absolute;
   inset: calc(-2px + var(--mc-press)) -2px -2px;
   z-index: -1;
   border: 2px solid var(--mc-border);
   background: var(--mc-face-color);
   pointer-events: none;
   /* Outer stroke: 2px. Inner light frame: 2px. Lower depth: 5px + 1px seam.
      Shadows are painted in order, with the depth over the lower light frame. */
   box-shadow:
      inset 0 -5px 0 var(--mc-bottom),
      inset 0 -6px 0 var(--mc-depth-edge),
      inset 0 -8px 0 var(--mc-highlight),
      inset 2px 2px 0 var(--mc-highlight),
      inset -2px 0 0 var(--mc-highlight);
}

.mc-button__content {
   display: inline-flex;
   align-items: center;
   justify-content: center;
   transform: translateY(var(--mc-press));
   pointer-events: none;
}

.main-nav .mc-button {
   min-width: 168px;
}

.main-nav__label--mobile { display: none; }
@media (max-width: 767px) {
   .main-nav__label--full { display: none; }
   .main-nav__label--mobile { display: inline; }
}

.mc-button--primary {
   --mc-background: #3e8428;
   --mc-background-hover: #347322;
   --mc-highlight: #8ac174;
   --mc-bottom: #245616;
   --mc-depth-edge: #327020;
   --mc-text: #fff;
   --mc-font: var(--font-display);
   --mc-text-shadow: 2px 2px #28551b;
}

.mc-button:hover {
   --mc-face-color: var(--mc-background-hover);
}

.mc-button:active {
   --mc-press: 5px;
   --mc-face-color: var(--mc-background-hover);
}

.mc-button:active::before {
   box-shadow:
      inset 2px 2px 0 var(--mc-highlight),
      inset -2px -2px 0 var(--mc-highlight);
}

.mc-button:active > .notification-dot {
   transform: translateY(var(--mc-press));
}

.header-icon-button {
   width: 49px;
   min-width: 49px;
   padding-inline: 10px;
}

.header-icon-button svg {
   width: 25px;
   height: 25px;
   fill: none;
   stroke: currentColor;
   stroke-width: 2;
   stroke-linecap: square;
   shape-rendering: crispEdges;
}

.account-button {
   position: relative;
}

.account-button svg {
   fill: currentColor;
   stroke: none;
}

.notification-dot {
   position: absolute;
   right: -4px;
   top: -4px;
   width: 9px;
   height: 10px;
   background: #ff9494;
   border-bottom: 2px solid #4e2929;
}

.upload-button {
   min-width: 194px;
}

.home-main {
   flex: 1 0 auto;
   width: min(1330px, calc(100% - 48px));
   margin: 16px auto 48px;
   outline: none;
}

/* Public creator profiles share the catalog cards and controls. */
.creator-profile__hero {
   display: grid;
   grid-template-columns: 150px minmax(0, 1fr);
   align-items: center;
   gap: 24px;
   padding: 24px 24px 29px;
   background: var(--panel-background);

}

.creator-profile__avatar {
   display: grid;
   place-items: center;
   width: 150px;
   aspect-ratio: 1;
   overflow: hidden;
   border: 3px solid var(--edge-color);
   background: #464748;
   box-shadow: 3px 3px 0 rgb(0 0 0 / 30%);
}

.creator-profile__avatar img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
   image-rendering: pixelated;
}

.creator-profile__avatar > span {
   font: 400 64px/1 var(--font-display);
   text-shadow: 4px 4px #252525;
}

.creator-profile__info {
   min-width: 0;
}

.creator-profile__eyebrow {
   margin: 0 0 6px;
   color: #d0d1d3;
   font-size: 16px;
   line-height: 1.5;
   text-shadow: 2px 2px #252525;
}

.creator-profile__name {
   margin: 0 0 16px;
   font: 400 44px/1.2 var(--font-display);
   overflow-wrap: anywhere;
   text-shadow: 4px 4px #252525;
}

.creator-profile__discord {
   max-width: 100%;
   padding-inline: 16px;
   text-align: left;
}

.creator-profile__discord .mc-button__content {
   justify-content: flex-start;
   gap: 10px;
   min-width: 0;
}

.creator-profile__discord img {
   flex: 0 0 24px;
   image-rendering: pixelated;
}

.creator-profile__discord span span {
   min-width: 0;
   overflow-wrap: anywhere;
   user-select: text;
}

.creator-profile__copy-status {
   margin: 12px 0 0;
   font-size: 16px;
   line-height: 1.5;
   text-shadow: 2px 2px #252525;
}

.creator-profile__catalog {
   margin-top: 28px;
}

.creator-profile .section-heading span {
   background: var(--panel-background);
}

.creator-profile__empty {
   margin: 0;
   padding: 20px;
   background: var(--panel-background);
   font-size: 20px;
   line-height: 1.5;
   text-shadow: 2px 2px #252525;
}

@media (max-width: 600px) {
   .creator-profile__hero {
      grid-template-columns: minmax(0, 1fr);
      justify-items: center;
      gap: 18px;
      padding: 20px 16px 25px;
      text-align: center;
   }
   .creator-profile__avatar { width: 126px; }
   .creator-profile__info { width: 100%; }
   .creator-profile__name { font-size: 32px; }
   .creator-profile__catalog { margin-top: 24px; }
}

/* Post layout: the same 1330px canvas as the catalog, with independent panels. */
.addon-post {
   --post-heading-shadow: 3px 3px 0 #252525;
   margin-top: 10px;
   font-variant-ligatures: none;
}

.addon-post__hero {
   display: grid;
   grid-template-columns: minmax(0, 800fr) minmax(0, 516fr);
   align-items: stretch;
   gap: 14px;
}

.addon-post__cover {
   display: block;
   width: 100%;
   height: 270px;
   border: 3px solid #202122;
   object-fit: cover;
}

.addon-post__info,
.addon-post__panel {
   min-width: 0;
   background: var(--panel-background);
}

.addon-post__info {
   padding: 14px 20px 20px;
}

.addon-post__title {
   margin: 0 0 10px;
   font: 400 var(--type-title)/1.1 var(--font-display);
   display: -webkit-box;
   -webkit-box-orient: vertical;
   -webkit-line-clamp: 2;
   line-clamp: 2;
   overflow: hidden;
   overflow-wrap: anywhere;
   text-shadow: 4px 4px 0 #252525;
}

.addon-post__tags {
   display: flex;
   flex-wrap: wrap;
   gap: 9px;
   margin-bottom: 16px;
}

.addon-post__tags .category-tag {
   margin: 0;
   font-size: 16px;
   text-decoration: none;
}

.addon-post__tags .addon-post__author {
   background: #bc83df;
}

.addon-post__like .mc-button__content {
   gap: 5px;
}

.addon-post__actions {
   display: flex;
   align-items: flex-start;
   gap: 12px;
}

.addon-post__actions > .mc-button:not(.header-icon-button) {
   flex: 1 1 0;
   min-width: 0;
   padding-inline: 12px;
}

.addon-post__notify {
   margin-left: auto;
}

.addon-post__notify svg {
   width: 22px;
   height: 20px;
   fill: currentColor;
   stroke: none;
}

.addon-post__like[aria-pressed="true"] {
   --mc-background: #8b8d8f;
   --mc-background-hover: #7b7d7f;
}

.addon-post__like:disabled,
.addon-post__notify:disabled {
   cursor: default;
   opacity: 0.6;
}

.addon-post__action-status {
   margin: 12px 0 0;
   font-size: 16px;
   line-height: 1.5;
   text-shadow: var(--post-text-shadow);
}

.post-ad-slot,
.catalog-ad-slot {
   min-width: 0;
   max-width: 100%;
   margin: 24px 0;
}

.post-ad-slot { --post-ad-height: 280px; }
/* Match GPT's 364px breakpoint: narrower viewports cannot receive 336x280. */
@media (max-width: 363px) {
   .post-ad-slot { --post-ad-height: 250px; }
}

.post-ad-slot .advert,
.catalog-ad-slot .advert {
   display: flex;
   flex-direction: column;
   align-items: center;
   gap: 8px;
   margin: 0 auto;
   text-align: center;
}

.advert-text,
.post-ad-slot .advert-text,
.catalog-ad-slot .advert-text {
   color: var(--advert-text-color, #000);
   font: 400 13px/1.2 var(--font-body);
   text-shadow: none;
}

.catalog-ad-slot { --catalog-ad-height: 90px; }
@media (max-width: 799px) {
   .catalog-ad-slot { --catalog-ad-height: 50px; }
}

/* After fill, remove only the unused minimum reservation, without clipping the ad. */
.post-ad-slot .advert > [data-ad-rendered-height],
.catalog-ad-slot .advert > [data-ad-rendered-height] {
   min-height: var(--ad-rendered-height) !important;
}

/* CSS-only pixel notice, with the stepped frame and pointer from mod.png. */
.post-signin-notice {
   position: fixed;
   z-index: 15000;
   width: max-content;
   max-width: min(340px, calc(100vw - 24px));
   color: #fff;
   font: 400 16px/1.4 var(--font-body);
   text-align: center;
   text-shadow: var(--post-text-shadow);
   pointer-events: none;
}

.post-signin-notice[hidden] { display: none; }

.post-signin-notice__frame,
.post-signin-notice__frame::before {
   clip-path: polygon(0 8px, 4px 8px, 4px 4px, 8px 4px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 4px, calc(100% - 4px) 4px, calc(100% - 4px) 8px, 100% 8px, 100% calc(100% - 8px), calc(100% - 4px) calc(100% - 8px), calc(100% - 4px) calc(100% - 4px), calc(100% - 8px) calc(100% - 4px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 4px), 4px calc(100% - 4px), 4px calc(100% - 8px), 0 calc(100% - 8px));
}

.post-signin-notice__frame {
   position: relative;
   padding: 7px;
   background: #050505;
}

.post-signin-notice__frame::before {
   content: "";
   position: absolute;
   inset: 3px;
   background: #454545;
}

.post-signin-notice__message {
   position: relative;
   display: block;
   pointer-events: auto;
   color: inherit;
   text-decoration: none;
   padding: 10px 14px;
   background: #202020;
}

.post-signin-notice__message:is(:hover, :focus-visible) {
   text-decoration: underline;
}

.post-signin-notice__pointer,
.post-signin-notice__pointer::before,
.post-signin-notice__pointer::after {
   clip-path: polygon(0 100%, 0 83.333%, 9.091% 83.333%, 9.091% 66.667%, 18.182% 66.667%, 18.182% 50%, 27.273% 50%, 27.273% 33.333%, 36.364% 33.333%, 36.364% 16.667%, 45.455% 16.667%, 45.455% 0, 54.545% 0, 54.545% 16.667%, 63.636% 16.667%, 63.636% 33.333%, 72.727% 33.333%, 72.727% 50%, 81.818% 50%, 81.818% 66.667%, 90.909% 66.667%, 90.909% 83.333%, 100% 83.333%, 100% 100%);
}

.post-signin-notice__pointer {
   position: absolute;
   z-index: 1;
   top: -17px;
   left: var(--notice-pointer-x, 50%);
   width: 44px;
   height: 24px;
   background: #050505;
   transform: translateX(-50%);
}

.post-signin-notice__pointer::before,
.post-signin-notice__pointer::after {
   content: "";
   position: absolute;
}

.post-signin-notice__pointer::before { inset: 4px 4px 0; background: #454545; }
.post-signin-notice__pointer::after { inset: 9px 8px 0; background: #202020; }

.post-signin-notice.is-above .post-signin-notice__pointer {
   top: auto;
   bottom: -17px;
   transform: translateX(-50%) rotate(180deg);
}

.post-release {
   position: relative;
   margin: 14px 0 0;
   font-size: 16px;
   line-height: 1.5;
   text-shadow: var(--post-text-shadow);
}
@media (max-width: 1100px), (hover: none) and (pointer: coarse) {
   .post-release { display: none; }
}
.post-release [hidden] { display: none; }
.post-release__link { position: absolute; inset: 0; z-index: 1; cursor: pointer; }
.post-release__link:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.post-release__meta {
   display: flex;
   align-items: center;
   gap: 10px;
   margin-bottom: 10px;
   font-size: 14px;
}
.post-release__date { flex-shrink: 0; }
.post-release__separator { color: rgb(255 255 255 / 50%); }
.post-release__slider { display: grid; grid-template-columns: 14px minmax(0, 1fr); align-items: start; gap: 12px; }
.post-release__rail { position: relative; z-index: 2; height: calc(var(--release-node-count) * 20px); overflow: hidden; }
.post-release__rail::before { content: ""; position: absolute; top: 10px; bottom: 10px; left: 6px; width: 2px; background: rgb(255 255 255 / 40%); }
.post-release__rail-track { position: relative; }
.post-release__node { display: flex; align-items: center; justify-content: center; width: 14px; height: 20px; padding: 0; border: 0; border-radius: 0; background: transparent; cursor: pointer; }
.post-release__node:focus-visible { outline: none; }
.post-release__node:is(:hover, :focus-visible) .post-release__dot { border-color: #fff; }
.post-release__dot { display: block; width: 12px; height: 12px; border: 3px solid var(--edge-color); background: var(--button-color); transition: background-color 260ms ease; }
.post-release__dot.is-active { background: var(--tag-color); }
.post-release__viewport { position: relative; min-width: 0; min-height: 40px; overflow: hidden; }
.post-release__viewport:focus-visible { outline: 1px solid rgb(255 255 255 / 65%); outline-offset: 3px; }
.post-release__track { display: flex; flex-direction: column; }
.post-release__slide { min-width: 0; }
.post-release__slide[aria-hidden="true"] { display: none; }
.post-release[data-release-enhanced] .post-release__viewport { height: var(--release-slide-height); }
.post-release[data-release-enhanced] .post-release__slide { display: block; flex: 0 0 var(--release-slide-height); height: var(--release-slide-height); }
.post-release__text { margin: 0; overflow-wrap: anywhere; }
.post-release__measure { position: absolute; top: 0; left: 0; width: 100%; visibility: hidden; pointer-events: none; }

@media (min-width: 768px) {
   .addon-post__hero { min-height: 270px; }
   .addon-post__cover { height: 0; min-height: 100%; }
}

.addon-post__section {
   margin-top: 14px;
}

.addon-post__section .section-heading {
   gap: 45px;
   margin-bottom: 14px;
   font-size: 20px;
   line-height: 1.4;
}

.addon-post__section .section-heading span {
   background: var(--panel-background);
}

.addon-post__panel {
   padding: 16px 18px;
   font-family: var(--font-body);
   font-size: var(--type-body);
   font-weight: 400;
   line-height: var(--type-body-leading);
   text-shadow: var(--post-text-shadow);
   overflow-wrap: anywhere;
}

.addon-post__intro {
   margin-bottom: 18px;
}

.addon-post__panel > :first-child {
   margin-top: 0;
}

.addon-post__panel > :last-child {
   margin-bottom: 0;
}

.addon-post__content :is(h1, h2, h3, h4, h5, h6) {
   margin: 32px 0 16px;

   line-height: 1.4;
   text-shadow: var(--post-heading-shadow);
}

.addon-post__content h2 {
   font: 400 var(--type-h2)/1.4 var(--font-display);
}

.addon-post__content h3 { font-size: var(--type-h3); }

.addon-post__content p,
.addon-post__content ul,
.addon-post__content ol {
   margin: 0 0 18px;
}

.addon-post__content ul,
.addon-post__crafting ul,
.post-changelog__notes ul {
   list-style: none;
}

:is(.addon-post__content, .addon-post__crafting, .post-changelog__notes) ul > li {
   position: relative;
}

:is(.addon-post__content, .addon-post__crafting, .post-changelog__notes) ul > li::before {
   content: "";
   position: absolute;
   top: 0.75em;
   left: -1em;
   width: clamp(5px, 0.3em, 6px);
   height: clamp(5px, 0.3em, 6px);
   transform: translateY(-50%);
   background: currentColor;
   box-shadow: var(--post-text-shadow);
   pointer-events: none;
}

.addon-post__content a {
   color: #c9edff;
}

/* Image classes keep their own width limits over these content defaults. */
:where(.addon-post__content) img {
   display: block;
   max-width: 100%;
   height: auto;
   margin: 16px auto;
}

.addon-post__content pre,
.addon-post__content table {
   display: block;
   max-width: 100%;
   overflow: auto;
}

.addon-post__content iframe {
   display: block;
   width: 100%;
   max-width: 700px;
   max-height: 450px;
   margin: 10px auto;
   height: auto;
   aspect-ratio: 16 / 9;
   border: 3px solid #1e1f1f;
   box-sizing: border-box;
}

.addon-post__content .addon-youtube-embed,
.addon-post__content .video-container {
   width: 100%;
   max-width: 700px;
   margin: 10px auto;
}

.addon-post__content .video-container iframe {
   margin: 0;
}

.addon-post__crafting :is(h3, h4, h5, h6) {
   font-family: var(--font-display);
   font-size: 28px;
   font-weight: 400;
}

.addon-post__crafting :is(ul, ol) {
   padding-left: 28px;
}

.addon-post__crafting li + li {
   margin-top: 6px;
}

.post-changelog {
   --changelog-line-x: 11px;
   --changelog-line-bottom: -40px;
   --changelog-more-indent: 42px;
   display: grid;
   gap: 16px;
   margin: 0;
   padding: 0;
   list-style: none;
}

.post-changelog [hidden] {
   display: none !important;
}

.post-changelog__entry {
   position: relative;
   display: grid;
   grid-template-columns: 200px minmax(0, 1fr);
   gap: 24px;
}

.post-changelog__entry:not(.post-changelog__entry--end)::before {
   content: '';
   position: absolute;
   top: 24px;
   bottom: var(--changelog-line-bottom);
   left: var(--changelog-line-x);
   width: 2px;
   background: rgb(255 255 255 / 37%);
   pointer-events: none;
}

.post-changelog__entry--before-more {
   --changelog-line-bottom: -16px;
}

.post-changelog__more {
   position: relative;
   padding-left: var(--changelog-more-indent);
   overflow-anchor: none;
}

.post-changelog__more::before {
   content: '';
   position: absolute;
   top: 0;
   bottom: 50%;
   left: var(--changelog-line-x);
   width: calc(var(--changelog-more-indent) - var(--changelog-line-x));
   border-left: 2px solid rgb(255 255 255 / 37%);
   border-bottom: 2px solid rgb(255 255 255 / 37%);
   pointer-events: none;
}

.post-changelog__more-button {
   min-width: 140px;
}

.post-changelog__version {
   position: relative;
   min-width: 0;
   padding: 9px 0 0 42px;
}

.post-changelog__version::before {
   content: '';
   position: absolute;
   top: 16px;
   left: 4px;
   z-index: 1;
   width: 16px;
   height: 16px;
   border: 3px solid var(--edge-color);
   background: var(--button-color);
}

.post-changelog__entry--latest .post-changelog__version::before {
   background: var(--tag-color);
}

.post-changelog__version h3 {
   width: fit-content;
   max-width: 100%;
   margin: 0;
   padding: 4px 8px;
   background: var(--panel-background);
   font: 400 20px/1.5 var(--font-body);
   overflow-wrap: anywhere;
   text-shadow: var(--post-text-shadow);
}

.post-changelog__latest {
   display: inline-block;
   margin-top: 10px;
   padding: 2px 8px 3px;
   background: var(--tag-color);
   color: #132710;
   font-size: 18px;
   line-height: 1.2;
   text-shadow: none;
}

.post-changelog__card {
   min-width: 0;
   padding: 16px 20px;
   background: var(--panel-background);
}

.post-changelog__summary {
   display: flex;
   align-items: center;
   gap: 20px;
   min-width: 0;
}

.post-changelog__preview {
   flex: 1;
   min-width: 0;
   margin: 0;
   overflow: hidden;
   font: 400 20px/1.5 var(--font-body);
   text-overflow: ellipsis;
   white-space: nowrap;
   text-shadow: var(--post-text-shadow);
}

.post-changelog__title {
   flex: 1;
   min-width: 0;
   margin: 0;
   font: 400 28px/1.3 var(--font-display);
   overflow-wrap: anywhere;
   text-shadow: var(--post-text-shadow);
}

.post-changelog__toggle {
   flex-shrink: 0;
   padding-inline: 16px;
}

.post-changelog__notes {
   margin-top: 14px;
   font: 400 20px/1.5 var(--font-body);
   overflow-wrap: anywhere;
   text-shadow: var(--post-text-shadow);
}

.post-changelog__notes p,
.post-changelog__notes ul {
   margin: 0 0 16px;
}

.post-changelog__notes ul {
   padding-left: 20px;
}

.post-changelog__notes h5 {
   margin: 20px 0 8px;
   font: 400 20px/1.5 var(--font-body);
}

.post-changelog__notes > :first-child { margin-top: 0; }
.post-changelog__notes > :last-child { margin-bottom: 0; }

@media (max-width: 700px) {
   .post-changelog {
      --changelog-line-x: 8px;
      --changelog-line-bottom: -30px;
      --changelog-more-indent: 32px;
   }
   .post-changelog__entry {
      grid-template-columns: minmax(0, 1fr);
      gap: 10px;
      padding-left: 32px;
   }
   .post-changelog__entry:not(.post-changelog__entry--end)::before { top: 14px; }
   .post-changelog__version { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 0; }
   .post-changelog__version::before { top: 7px; left: -30px; width: 14px; height: 14px; border-width: 2px; }
   .post-changelog__latest { margin: 0; }
   .post-changelog__card { padding: 16px; }
   .post-changelog__summary { flex-wrap: wrap; gap: 12px; }
   .post-changelog__preview,
   .post-changelog__title { flex-basis: 100%; }
   .post-changelog__toggle { width: 100%; }
   .post-changelog__title { font-size: 24px; }
}

.language-support__grid {
   --language-flag-size: 40px;
   position: relative;
   display: grid;
   grid-template-columns: repeat(5, minmax(0, 1fr));
   margin: 0;
   padding: 3px 0;
   list-style: none;
  
   background: var(--panel-background);
}

.language-support__grid::before,
.language-support__grid::after {
   content: '';
   position: absolute;
   top: 12px;
   bottom: 12px;
   width: 2px;
   background: rgb(255 255 255 / 19%);
   pointer-events: none;
}

.language-support__grid::before {
   left: 20%;
   width: 20%;
   border-inline: 2px solid rgb(255 255 255 / 19%);
   background: transparent;
}
.language-support__grid::after {
   left: 60%;
   width: 20%;
   border-inline: 2px solid rgb(255 255 255 / 19%);
   background: transparent;
}

.language-support__item {
   display: grid;
   grid-template-columns: var(--language-flag-size) minmax(0, 1fr) 16px;
   align-items: center;
   gap: 12px;
   min-width: 0;
   min-height: 60px;
   padding: 4px 16px;
}

.language-support__name {
   min-width: 0;
   font: 400 20px/1.4 var(--font-body);
   text-shadow: var(--post-text-shadow);
}

.language-support__flag {
   display: grid;
   place-items: center;
   height: var(--language-flag-size);
}

.language-support__flag img {
   display: block;
   width: var(--language-flag-size);
   height: var(--language-flag-size);
   object-fit: contain;
   image-rendering: pixelated;
}

.language-support__check {
   display: block;
   fill: var(--tag-color);
}

.language-support__flag img,
.language-support__check {
   filter: drop-shadow(var(--post-text-shadow));
}

@media (max-width: 1100px) {
   .language-support__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .language-support__grid::before {
      left: 50%;
      width: 2px;
      border: 0;
      background: rgb(255 255 255 / 19%);
   }
   .language-support__grid::after { display: none; }
}

@media (max-width: 600px) {
   .language-support__grid { grid-template-columns: minmax(0, 1fr); }
   .language-support__grid::before { display: none; }
}

.post-downloads [hidden] {
   display: none;
}

.post-downloads__files {
   display: grid;
   gap: 0;
   margin: 0;
   padding: 0;
   list-style: none;
   background: var(--panel-background);
}

.post-downloads__row {
   display: grid;
   grid-template-columns: 32px minmax(0, 1fr) 280px;
   align-items: center;
   gap: 16px;
   min-width: 0;
   min-height: 76px;
   padding: 12px 16px;
   box-shadow: inset 0 -1px 0 rgb(255 255 255 / 14%);
   background: transparent;
   text-shadow: var(--post-text-shadow);
}
.post-downloads__row:last-child { box-shadow: none; }

.post-downloads__file-icon {
   position: relative;
   display: block;
   width: 32px;
   height: 38px;
}

.post-downloads__file-icon svg { display: block; width: 32px; height: 38px; }
.post-downloads__file-icon--pixel { display: grid; place-items: center; }
.post-downloads__file-icon--pixel img {
   display: block;
   width: 32px;
   height: auto;
   image-rendering: pixelated;
   filter: invert(1) drop-shadow(var(--post-text-shadow));
}
.post-downloads__file-icon > span {
   position: absolute;
   right: 0;
   bottom: 3px;
   left: 0;
   display: grid;
   place-items: center;
   height: 14px;
   background: #3e8428;
   font: 400 10px/1 var(--font-body);
}

.post-downloads__file-info { min-width: 0; overflow-wrap: anywhere; }
.post-downloads__file-info h3 {
   margin: 0;
   font: 400 20px/1.25 var(--font-body);
}
.post-downloads__file-info p {
   margin: 4px 0 0;
   color: #e8e9eb;
   font: 400 16px/1.3 var(--font-body);
}

.post-downloads__button {
   width: 100%;
   min-width: 0;
   min-height: 52px;
   padding: 6px 14px 10px;
   font-size: 18px;
   white-space: normal;
   text-align: center;
}

.post-downloads__button .mc-button__content {
   min-width: 0;
   gap: 12px;
   overflow-wrap: anywhere;
}

.post-downloads__button--ready::after {
   content: '';
   position: absolute;
   inset: -6px;
   z-index: 2;
   border: 2px solid #fff;
   pointer-events: none;
   opacity: 1;
   animation: download-ready-border 1.2s steps(1, end) infinite;
}

@keyframes download-ready-border {
   0%, 49% { opacity: 1; }
   50%, 100% { opacity: 0; }
}

.post-downloads__patreon .post-downloads__button {
   --mc-highlight: #f59d8f;
   --mc-text-shadow: 2px 2px #963022;
}

.post-downloads__app { display: none; }
.post-downloads__mobile-label { display: none; }
.post-downloads__app .post-downloads__button {
   --mc-background: #287cc1;
   --mc-background-hover: #2065a0;
   --mc-highlight: #8bc0e8;
   --mc-bottom: #194e7c;
   --mc-depth-edge: #226bab;
   --mc-text-shadow: 2px 2px #163e65;
}

.post-downloads__button:disabled {
   opacity: .55;
   cursor: not-allowed;
   --mc-face-color: var(--mc-background);
   --mc-press: 0px;
}

.post-downloads__empty { margin-top: 16px; }
.post-downloads__empty p { margin: 0; }

.post-downloads__file-info .post-downloads__progress {
   display: grid;
   grid-template-columns: max-content minmax(0, max-content) max-content;
   justify-content: start;
   align-items: center;
   gap: 6px 8px;
}

.post-downloads__progress-label,
.post-downloads__progress-percent { white-space: nowrap; }

.post-downloads__progress-meter {
   display: inline-flex;
   width: max-content;
   flex: 0 1 auto;
   align-items: center;
   gap: 4px;
   min-width: 0;
   max-width: 100%;
   white-space: nowrap;
}
.post-downloads__progress-meter > span:not(.post-downloads__progress-bars) { flex-shrink: 0; }

.post-downloads__progress-bars {
   display: flex;
   flex: 0 1 auto;
   gap: 2px;
   min-width: 0;
}

.post-downloads__progress-bar {
   display: block;
   flex: 0 1 auto;
   min-width: 0;
   line-height: 1;
}

.post-downloads__progress-bar.is-filled { color: var(--tag-color); }

.post-documentation {
   display: grid;
   grid-template-columns: minmax(0, 1fr) auto;
   align-items: center;
   gap: 24px;
   margin-top: 16px;
}

.post-documentation h3 {
   margin: 0;
   font: 400 26px/1.3 var(--font-display);
}

.post-documentation p { margin: 8px 0 0; }
.post-documentation .mc-button { max-width: 100%; white-space: normal; text-align: center; }
.post-documentation__actions { display: grid; gap: 12px; }

@media (max-width: 767px) {
   .post-downloads__progress-label { display: none; }
   .post-downloads__patreon { display: none; }
   .post-downloads__app { display: grid; }
   .post-downloads__desktop-label { display: none; }
   .post-downloads__mobile-label { display: inline; }
   .post-downloads__row {
      grid-template-columns: 26px minmax(0, 1fr) 114px;
      gap: 10px;
      min-height: 64px;
      padding: 10px;
   }
   .post-downloads .post-downloads__file-icon { width: 26px; height: 32px; }
   .post-downloads .post-downloads__file-icon img { width: 26px; height: auto; }
   .post-downloads .post-downloads__file-icon svg { width: 26px; height: 31px; }
   .post-downloads .post-downloads__file-icon > span { height: 12px; bottom: 3px; font-size: 9px; }
   .post-downloads .post-downloads__file-info h3,
   .post-downloads .post-downloads__file-info p {
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
   }
   .post-downloads .post-downloads__file-info h3 { font-size: clamp(16px, 4.5vw, 18px); line-height: 1.25; }
   .post-downloads .post-downloads__file-info p { margin-top: 4px; font-size: 13px; line-height: 1.3; }
   .post-downloads .post-downloads__file-info .post-downloads__progress {
      display: grid;
      grid-template-columns: minmax(0, max-content) max-content;
      justify-content: start;
      gap: 6px;
   }
   .post-downloads__progress-meter { gap: 2px; }
   .post-downloads__progress-bars { gap: 1px; }
   .post-downloads .post-downloads__row > .post-downloads__button {
      grid-column: auto;
      padding-inline: 10px;
      font-size: 18px;
      white-space: nowrap;
   }
   .post-documentation { grid-template-columns: minmax(0, 1fr); }
   .post-documentation .mc-button { width: 100%; padding-inline: 12px; }
}

.post-editor__frame {
   display: block;
   width: 100%;
   height: 0;
    background: var(--panel-background);
   border: 0px;
}
.post-gallery {
   --gallery-height: clamp(220px, 40vw, 564px);
   display: grid;
   grid-template-columns: minmax(0, 3.3fr) minmax(0, 1fr);
   gap: 24px;
   outline-offset: 5px;
}

.post-gallery--single {
   grid-template-columns: minmax(0, 1fr);
}

.post-gallery__stage {
   position: relative;
   min-width: 0;
   height: var(--gallery-height);
   overflow: hidden;
   border: 3px solid var(--edge-color);
   background: var(--panel-background);
   box-shadow: 3px 3px 0 rgb(0 0 0 / 30%);
   touch-action: pan-y pinch-zoom;
}

.post-gallery__image {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.post-gallery__rail {
   position: relative;
   min-width: 0;
   min-height: 0;
}

.post-gallery__previews {
   position: absolute;
   inset: 0;
   display: grid;
   grid-template-rows: repeat(3, minmax(0, 1fr));
   gap: 20px;
}

.post-gallery__thumbnail {
   position: relative;
   min-width: 0;
   min-height: 0;
   padding: 0;
   overflow: hidden;
   border: 3px solid var(--edge-color);
   border-radius: 0;
   background: var(--card-color);
   box-shadow: 3px 3px 0 rgb(0 0 0 / 30%);
}

.post-gallery__thumbnail img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.post-gallery__thumbnail .post-gallery__next-tag {
   bottom: 6px;
   left: 6px;
   right: auto;
   z-index: 1;
}

.post-gallery__thumbnail:hover,
.post-gallery__thumbnail:focus-visible {
   border-color: #fff;
   box-shadow: 0 0 0 1px #fff, 3px 3px 0 rgb(0 0 0 / 30%);
}

.post-gallery__thumbnail:active {
   transform: translateY(3px);
   box-shadow: 0 0 0 1px #fff;
}

.post-gallery__arrow {
   position: absolute;
   top: calc(50% - 26px);
   width: 52px;
   min-width: 52px;
   height: 59px;
   padding-inline: 0;
   opacity: 1;
}

.post-gallery__arrow--previous { left: 12px; }
.post-gallery__arrow--next { right: 12px; }

.post-gallery__arrow svg {
   fill: currentColor;
}

.post-gallery__counter,
.post-gallery__next-tag {
   position: absolute;
   right: 12px;
   bottom: 12px;
   padding: 4px 8px;
   background: var(--panel-background);
   font-size: 16px;
   text-shadow: var(--post-text-shadow);
   pointer-events: none;
}

@media (max-width: 1100px) and (min-width: 768px) {
   .addon-post__hero {
      grid-template-columns: minmax(0, 3fr) minmax(0, 2fr);
   }
   .addon-post__info { padding: 14px; }
   .addon-post__actions { gap: 8px; }
   .addon-post__actions .mc-button { font-size: 16px; }
}

@media (max-width: 767px) {
   .addon-post__hero { grid-template-columns: minmax(0, 1fr); }
   .addon-post__cover { height: auto; aspect-ratio: 3 / 1; object-position: center; }
   .addon-post__info { padding: 16px; }
   .addon-post__title { font-size: 32px; }
   .addon-post__tags { gap: 8px; }
   .addon-post__tags .category-tag { font-size: 14px; }
   .addon-post__actions { gap: 8px; }
   .addon-post__actions .mc-button { font-size: 16px; }
   .addon-post__panel { padding: 16px; }
   .post-gallery { --gallery-height: clamp(160px, 55vw, 420px); grid-template-columns: minmax(0, 1fr); gap: 12px; }
   .post-gallery__previews {
      position: static;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      grid-template-rows: clamp(48px, 16vw, 130px);
      gap: 10px;
   }
   .post-gallery__arrow--previous { left: 8px; }
   .post-gallery__arrow--next { right: 8px; }
   .post-gallery__counter { right: 8px; bottom: 8px; }
}

.catalog-section+.catalog-section {
   margin-top: 32px;
}

.section-heading {
   display: flex;
   align-items: center;
   gap: 8px;
   margin: 0 0 12px;
   font-size: 23px;
   font-weight: 400;
   line-height: 22px;
   text-shadow: var(--post-text-shadow);
}

h1.section-heading {
   margin-bottom: 13px;
}

.section-heading span {
   display: block;
   padding: 6px 10px 7px;
   background: var(--panel-background);
}

.section-heading::after {
   content: '';
   height: 5px;
   flex: 1;
   background: rgb(255 255 255 / 37%);
}

.card-grid {
   display: grid;
   grid-template-columns: repeat(4, minmax(0, 1fr));
   gap: 17px;
}

.card-grid--featured {
   grid-template-columns: repeat(3, minmax(0, 1fr));
}

.addon-card {
   position: relative;
   display: flex;
   flex-direction: column;
   width: 100%;
   min-width: 0;
   padding: 0;
   border: 2px solid var(--edge-color);
   border-radius: 0;
   background: var(--card-color);
   text-align: left;
   color: inherit;
   text-decoration: none;
   overflow: hidden;
   box-shadow: 3px 3px 0 rgb(0 0 0 / 30%);
}
.addon-card__art {
   display: block;
   position: relative;
   width: 100%;
   aspect-ratio: 16 / 9;
   overflow: hidden;
   background-color: #353738;
}

.addon-card__art img {
   display: block;
   width: 100%;
   height: 100%;
   object-fit: cover;
}

.addon-card__body {
   display: flex;
   flex-direction: column;
   align-items: flex-start;
   gap: 5px;
   flex: 1;
  
   padding: 8px 8px 8px;
   border-bottom: 5px solid #303132;
   border-top: 2px solid var(--edge-color);
}

.addon-card__title {
   font-size: 19px;
   text-shadow: 2px 2px #303132;
   line-height: 1.15;
}



.addon-card--featured .addon-card__title {
   font-size: 22px;
}

/* News titles stay on one line in featured, search and recommended cards. */
.addon-card[href^="/news/"] .addon-card__title {
   display: block;
   max-width: 100%;
   white-space: nowrap;
   overflow: hidden;
   text-overflow: ellipsis;
}

.category-tag {
   position: relative;
   display: inline-block;
   padding: 2px 5px 3px;
   background: var(--tag-color);
   color: #132710;
   font-size: 18px;
   line-height: 1.1;
}

.category-tag:is(a[href], button, [role="button"]) {
   outline: 2px solid transparent;
   outline-offset: 2px;
   cursor: pointer;
}

.category-tag:is(a[href], button, [role="button"]):hover {
   outline-color: rgb(255 255 255 / 55%);
   z-index: 1;
}

.category-tag:is(a[href], button, [role="button"]):is(:active, :focus-visible, [aria-pressed="true"]) {
   outline-color: #fff;
   z-index: 1;
}

/* Only the hue varies; saturation and lightness match the original green. */
.category-tag--all {
   --tag-color: #d0d1d3;
}

.category-tag--survival {
   --tag-color: hsl(48 58.71% 69.61%);
}

.category-tag--utility {
   --tag-color: hsl(208 58.71% 69.61%);
}

.category-tag--combat {
   --tag-color: hsl(8 58.71% 69.61%);
}

.category-tag--customization {
   --tag-color: hsl(278 58.71% 69.61%);
}

.category-tag--showcase {
   --tag-color: hsl(208 58.71% 69.61%);
}

.category-tag--arcade-multiplayer {
   --tag-color: hsl(278 58.71% 69.61%);
}

.category-tag--arcade-teams {
   --tag-color: hsl(8 58.71% 69.61%);
}

.category-tag--parkour {
   --tag-color: hsl(48 58.71% 69.61%);
}

.category-tag--tops { --tag-color: hsl(42 58.71% 69.61%); }
.category-tag--guide-commands { --tag-color: hsl(195 58.71% 69.61%); }
.category-tag--dev-blog { --tag-color: hsl(278 58.71% 69.61%); }
.category-tag--snapshot { --tag-color: hsl(98 58.71% 69.61%); }
.category-tag--mc-dungeons-article { --tag-color: hsl(22 58.71% 69.61%); }
.category-tag--mc-earth-article { --tag-color: hsl(158 58.71% 69.61%); }
.category-tag--mc-legends-article { --tag-color: hsl(225 58.71% 69.61%); }

/* Website news shares post typography, panels and cards with Add-Ons and Maps. */
.news-post__summary {
   margin: 0 0 18px;
   line-height: 1.5;
   text-shadow: var(--post-text-shadow);
}

.news-post__date {
   margin: 0 0 12px;
   text-shadow: var(--post-text-shadow);
}

.news-post .addon-post__content table {
   border-collapse: collapse;
   margin: 24px 0;
}

.news-post .addon-post__content :is(th, td) {
   padding: 10px 14px;
   border: 2px solid rgb(255 255 255 / 25%);
   text-align: left;
   vertical-align: top;
}

.news-post .addon-post__content th {
   background: var(--panel-background);
   font-weight: 400;
}

.addon-card:active .addon-card__body {
   border-bottom-color: transparent;
}

.addon-card:active {
   /* Hide the unused top strip without changing the card's grid footprint. */
   clip-path: inset(5px -8px -8px -8px);
}

.addon-card:active::after {
   content: "";
   position: absolute;
   top: 3px;
   left: 0;
   right: 0;
   height: 3px;
   z-index: 2;
   background: #fff;
   pointer-events: none;
}

.addon-card:active .addon-card__art,
.addon-card:active .addon-card__body {
   /* Move the face inside the fixed frame without moving its shadow or layout. */
   transform: translateY(5px);
}

.update-badge {
   position: absolute;
   right: 0;
   top: 0;
   padding: 4px 8px 5px;
   border: 2px solid var(--edge-color);
   border-top: 0;
   border-right: 0;
   background: #326ded;
   font-size: 19px;
   line-height: 1.1;
   text-shadow: 2px 2px #0000001d;
}
.addon-card:hover .addon-card__body {
   background: #535657;
}
.addon-card:hover {
   position: relative;
   z-index: 1000;
   border-color: #fff;
   box-shadow: 0 0 0 1px #fff, 3px 3px 0 rgb(0 0 0 / 30%);
}





/* House ads: shared frame and button; themes change colors only. */
.house-ad-slot {
   margin: 35px 0;
}

.house-ad {
   --visible-skins: 8;
   --skin-interval: 3.375s;
   --house-ink: #524646;
   --house-paper: #fcf2e5;
   --house-accent: #ec5b38;
   --house-accent-dark: #c84528;
   --house-face: #f7eadb;
   --house-depth: #c7b9a7;
   --house-depth-edge: #d7cab9;
   --house-text-soft: #6f6262;
   --house-button-highlight: #ffb299;
   --house-button-edge: #dc4e2c;
   --house-button-shadow: #a93720;
   color-scheme: light;
   display: grid;
   grid-template-columns: minmax(0, 1fr) auto;
   align-items: center;
   gap: clamp(12px, 1.5vw, 24px);
   width: 100%;
   min-height: 100px;
   padding: 0 24px;
   border: 2px solid var(--house-ink);
   border-radius: 0;
   background: var(--house-face);
   color: var(--house-ink);
   box-shadow:
      inset 0 -5px 0 var(--house-depth),
      inset 0 -6px 0 var(--house-depth-edge),
      inset 0 -8px 0 var(--house-paper),
      inset 2px 2px 0 var(--house-paper),
      inset -2px 0 0 var(--house-paper),
      3px 3px 0 rgb(0 0 0 / 30%);
}

.house-ad--skins {
   grid-template-columns: minmax(150px, 1fr) minmax(0, 2.82fr) minmax(150px, 1fr);
}  

.house-ad--discord {
   --house-ink: #35385e;
   --house-paper: #f5f6ff;
   --house-accent: #5865f2;
   --house-accent-dark: #4752c4;
   --house-face: #e8ebff;
   --house-depth: #b6bad5;
   --house-depth-edge: #c8cce3;
   --house-text-soft: #555a7c;
   --house-button-highlight: #a6afff;
   --house-button-edge: #505cda;
   --house-button-shadow: #323b91;
}

.house-ad--patreon {
   --house-ink: #65473e;
   --house-paper: #fff5f0;
   --house-accent: #f96854;
   --house-accent-dark: #ce4937;
   --house-face: #fce8e2;
   --house-depth: #d5b5a9;
   --house-depth-edge: #e7cbc0;
   --house-text-soft: #7b5d53;
   --house-button-highlight: #ffb1a3;
   --house-button-edge: #e65743;
   --house-button-shadow: #a93628;
}

.house-ad--apps {
   --house-ink: #3f503c;
   --house-paper: #f5faef;
   --house-accent: #4c7b3b;
   --house-accent-dark: #355a29;
   --house-face: #e8f0de;
   --house-depth: #aebda3;
   --house-depth-edge: #c9d5bd;
   --house-text-soft: #5d7056;
   --house-button-highlight: #a1c98e;
   --house-button-edge: #426d32;
   --house-button-shadow: #294620;
}

.house-ad--mobile {
   display: none;
}

.house-ad__copy {
   min-width: 0;
   text-align: left;
}

.house-ad__heading {
   margin: 0 0 6px;
   font-family: var(--font-display);
   font-size: clamp(20px, 2vw, 28px);
   font-weight: 400;
   line-height: 1;
}

.house-ad__description {
   margin: 0;
   color: var(--house-text-soft);
   font-size: clamp(14px, 1.3vw, 18px);
   line-height: 1.4;
}

.house-ad__carousel {
   width: 100%;
   max-width: 720px;
   min-width: 0;
   height: 80px;
   justify-self: center;
   container-type: inline-size;
   overflow: hidden;
   -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
   mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}

.house-ad__track {
   --carousel-width: 100cqw;
   --skin-size: min(80px, calc(100cqw / var(--visible-skins) * 0.9));
   position: relative;
   width: 100%;
   height: 100%;
}

.house-ad__track img {
   --skin-position: calc(var(--carousel-width) * (var(--skin-index) + 0.5) / var(--visible-skins));
   --skin-delay: calc((var(--skin-index) + 0.5 - var(--visible-skins)) * var(--skin-interval));
   position: absolute;
   top: calc((100% - var(--skin-size)) / 2);
   left: calc(var(--skin-size) / -2);
   display: block;
   width: var(--skin-size);
   height: var(--skin-size);
   object-fit: contain;
   transform: translateX(var(--skin-position));
}

.house-ad__carousel.is-animated img {
   animation: house-ad-skin calc(var(--visible-skins) * var(--skin-interval)) linear infinite;
   animation-delay: var(--skin-delay);
   will-change: transform, opacity;
}

@keyframes house-ad-skin {
   0% { transform: translateX(var(--carousel-width)); opacity: 0; }
   6%, 94% { opacity: 1; }
   100% { transform: translateX(0); opacity: 0; }
}

.mc-button--house-ad {
   --mc-background: var(--house-accent);
   --mc-background-hover: var(--house-accent-dark);
   --mc-highlight: var(--house-button-highlight);
   --mc-bottom: var(--house-accent-dark);
   --mc-depth-edge: var(--house-button-edge);
   --mc-border: var(--house-ink);
   --mc-text: var(--house-paper);
   --mc-font: var(--font-display);
   --mc-text-shadow: 2px 2px var(--house-button-shadow);
   justify-self: end;
}

.house-ad .mc-button:focus-visible {
   outline: 3px solid var(--house-accent-dark);
   outline-offset: 4px;
}

.house-ad__icon {
   display: block;
   width: 64px;
   height: 64px;
   border: 2px solid var(--house-ink);
   object-fit: cover;
}

/* Homepage catalog search; cards and buttons reuse the shared components. */
.search-controls {
   padding: 18px;
   background: var(--panel-background);
   margin-bottom: 17px;
}

.search-label {
   display: block;
   margin-bottom: 10px;
   font-size: 18px;
   text-shadow: 2px 2px #303132;
}

.search-input-row {
   display: flex;
   align-items: stretch;
   gap: 12px;
}

.search-input-field {
   position: relative;
   flex: 1;
   min-width: 0;
   display: flex;
}

.search-input-row input {
   width: 100%;
   min-width: 0;
   min-height: 52px;
   padding: 10px 52px 10px 14px;
   border: 2px solid var(--edge-color);
   border-radius: 0;
   background: var(--card-color);
   color: #fff;
   box-shadow: inset 2px 2px 0 #303132, inset -2px -2px 0 #747675;
   font-size: 18px;
}

.search-input-row input:focus-visible {
   outline: none;
}

.search-input-row input::placeholder {
   color: #c8c9cb;
   opacity: 1;
}

.search-input-row input::-webkit-search-cancel-button,
.search-input-row input::-webkit-search-decoration {
   -webkit-appearance: none;
   appearance: none;
   display: none;
}

.search-input-clear {
   position: absolute;
   top: 50%;
   right: 10px;
   width: 32px;
   height: 32px;
   transform: translateY(-50%);
   display: inline-flex;
   align-items: center;
   justify-content: center;
   padding: 0;
   border: 0;
   background: transparent;
   color: #fff;
}

.search-input-clear[hidden] {
   display: none;
}

.search-input-clear svg {
   display: block;
   width: 15px;
   height: 15px;
   fill: currentColor;
   pointer-events: none;
}

.search-category-tags {
   display: flex;
   flex-wrap: wrap;
   gap: 10px;
   margin-top: 16px;

}

.search-category-tags [data-search-category] {
   cursor: pointer;
   user-select: none;
}

.search-result {
   display: flex;
   min-width: 0;
}

.search-result[hidden] {
   display: none;
}

.search-empty {
   padding: 24px;
   border: 2px solid var(--edge-color);
   background: var(--card-color);
   font-size: 18px;
}

.catalog-pagination {
   display: flex;
   align-items: center;
   justify-content: center;
   gap: 20px;
   margin-top: 28px;
}

.catalog-pagination[hidden] {
   display: none;
}

.catalog-pagination__arrow {
   width: 52px;
   min-width: 52px;
   height: 59px;
   padding-inline: 12px;
}

.catalog-pagination__arrow svg {
   display: block;
   width: 12px;
   height: 21px;
   fill: currentColor;
}

.catalog-pagination__arrow:disabled {
   --mc-face-color: var(--mc-background);
   --mc-press: 0px;
   filter: brightness(0.8);
   cursor: default;
}

.catalog-pagination__arrow:disabled:active::before {
   box-shadow:
      inset 0 -5px 0 var(--mc-bottom),
      inset 0 -6px 0 var(--mc-depth-edge),
      inset 0 -8px 0 var(--mc-highlight),
      inset 2px 2px 0 var(--mc-highlight),
      inset -2px 0 0 var(--mc-highlight);
}

.catalog-pagination__pages {
   display: flex;
   border: 2px solid #101112;
   background: var(--card-color);
}

.catalog-pagination__page {
   position: relative;
   display: inline-flex;
   align-items: center;
   justify-content: center;
   width: 44px;
   height: 44px;
   padding: 0;
   border: 2px solid #626466;
   border-radius: 0;
   background: var(--card-color);
   color: #fff;
   font-size: 22px;
   line-height: 1;
}

.catalog-pagination__page[aria-current="page"] {
   border-color: transparent;
}

.catalog-pagination__page[aria-current="page"]::after {
   content: "";
   position: absolute;
   left: 25%;
   bottom: 0;
   width: 50%;
   height: 3px;
   background: #fff;
   pointer-events: none;
}

.catalog-pagination__page:hover:not([aria-current]) {
   border-color: #929496;
}

::-webkit-scrollbar {
   width: 14px;
   height: 14px;
   background: transparent;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
   background: transparent;
}

::-webkit-scrollbar-thumb {
   background: var(--button-color);
   border: 2px solid #202122;
   border-radius: 0;
   box-shadow:
      inset 0 -5px 0 #58585a,
      inset 0 -6px 0 #6b6c6e,
      inset 0 -8px 0 #e8e9eb,
      inset 2px 2px 0 #e8e9eb,
      inset -2px 0 0 #e8e9eb;
}

::-webkit-scrollbar-thumb:hover,
::-webkit-scrollbar-thumb:active {
   background: #bfc0c2;
}

@media (min-width: 1600px) {
   .home-main {
      position: relative;
      left: 12px;
   }
}

@media (max-width: 1100px) {
   .site-header {
      gap: 16px;
      padding-inline: 16px;
      padding-right: 21px;
   }

   .main-nav .mc-button {
      min-width: 110px;
   }

   .upload-button {
      min-width: auto;
      padding-inline: 14px;
   }

   .addon-card--featured .addon-card__title {
      font-size: 19px;
   }

   .card-grid {
      gap: 14px;
   }
}

.site-footer {

   background: rgba(224, 238, 236, 0);
}

@media (max-width: 950px) {
   .site-footer {
      min-height: 0;
      flex-wrap: wrap;
      gap: 10px;
      padding: 10px 12px 12px;
   }

   .footer-copyright {
      width: 100%;
      font-size: 14px;
   }

   .footer-actions {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      width: 100%;
      margin-left: 0;
   }

   .footer-actions .mc-button {
      min-width: 0;
      min-height: 44px;
      padding-inline: 8px;
      font-size: 14px;
   }

   .site-header {
      height: auto;
      min-height: 82px;
      flex-wrap: wrap;
      gap: 12px;
      padding: 12px;
   }

   .site-logo,
   .site-logo img {
      width: 44px;
      height: 44px;
      flex-basis: 44px;
      image-rendering: pixelated;
   }

   .main-nav {
      order: 3;
      width: 100%;
   }

   .site-header .mc-button {
      min-height: 44px;
      padding-inline: 8px;
      font-size: 17px;
   }

   .main-nav .mc-button {
      flex: 1 1 0;
      min-width: 0;
   }

   .header-actions {
      gap: 7px;
   }

   .header-icon-button {
      width: 43px;
      min-width: 43px;
   }

   .home-main {
      width: calc(100% - 28px);
      margin-top: 20px;
   }

   .card-grid {
      grid-template-columns: repeat(2, minmax(0, 1fr));
   }

   .card-grid--featured {
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
   }

   .addon-card--featured .addon-card__title {
      font-size: 16px;
   }

   .update-badge {
      font-size: 12px;
      padding: 3px 4px;
   }

   .section-heading {
      font-size: 20px;
   }

   .house-ad-slot {
      margin-block: 28px;
   }
}

@media (max-width: 520px) {
   .search-controls {
      padding: 12px;
   }

   .search-input-row {
      flex-direction: column;
   }

   .main-nav .mc-button {
      padding-inline: 6px;
      font-size: clamp(12px, 3.8vw, 17px);
   }

   .card-grid--featured {
      grid-template-columns: 1fr;
      gap: 16px;
   }

   .addon-card--featured .addon-card__title {
      font-size: 22px;
   }

   .update-badge {
      font-size: 16px;
      padding: 4px 7px;
   }

   .card-grid {
      gap: 12px;
   }

   .addon-card__title {
      font-size: 16px;
   }

   .category-tag {
      font-size: 13px;
   }

   .addon-card__body {
      padding-inline: 6px;
   }

   .section-heading {
      font-size: 18px;
   }

   .header-actions {
      gap: 5px;
   }

}

/* Mobile has its own app catalog; desktop creatives never move into a second row. */
@media (max-width: 767px) {
   .house-ad--desktop { display: none; }

   .house-ad--mobile {
      display: grid;
      grid-template-columns: 64px minmax(0, 1fr);
      gap: 12px;
      min-height: 122px;
      padding: 16px 12px 20px;
   }

   .house-ad--mobile .house-ad__icon { grid-column: 1; grid-row: 1; }
   .house-ad--mobile .house-ad__copy { grid-column: 2; grid-row: 1; }
   .house-ad--mobile .house-ad__heading { font-size: 24px; }
   .house-ad--mobile .house-ad__description { font-size: 14px; }

   .house-ad--mobile .mc-button {
      grid-column: 1 / -1;
      justify-self: stretch;
      padding-inline: 12px;
      font-size: 16px;
   }
}

@media (prefers-reduced-motion: reduce) {

   *,
   *::before,
   *::after {
      animation: none !important;
      transition: none !important;
   }
}



.image-transparent, 
.image-border  {
    width: 100%; 
    max-width: 700px; 
    max-height: 450px; 
    height: auto; 
    object-fit: contain; 
    display: block; 
    margin: 10px auto;  
    
    filter: 
      drop-shadow(3px 0 0 var(--post-shadow-color))
      drop-shadow(-3px 0 0 var(--post-shadow-color))
      drop-shadow(0 3px 0 var(--post-shadow-color))
      drop-shadow(0 -3px 0 var(--post-shadow-color));
}

/* Embedded editors: post-editor.js copies this block into the frame document. */
@layer trmc-editor {
   @font-face {
      font-family: 'Minecraft-Seven';
      src: url('/fonts/Minecraft-Seven_v2.woff2') format('woff2');
      font-weight: 400;
   }
   @font-face {
      font-family: 'Minecraft-Ten';
      src: url('/fonts/Minecraft-Tenv2.woff2') format('woff2');
      font-weight: 400;
   }
   :root[data-post-editor-document],
   :root[data-post-editor-document] body {
      height: auto !important;
      min-height: 0 !important;
      max-height: none !important;
   }
   :root[data-post-editor-document] {
      font-synthesis: none;
      overflow: hidden !important;
   }
   :root[data-post-editor-document] body { overflow: visible !important; }
   :root[data-post-editor-document] .piskel-view {
      min-height: calc(var(--editor-viewport-height, 800px) - 43px) !important;
   }
   :root[data-post-editor-document] .piskel-frame {
      height: calc(var(--editor-viewport-height, 800px) - 105px) !important;
   }
   :root[data-post-editor-document] :is(body, input, textarea, select) {
      font-family: 'Minecraft-Seven', monospace;
   }
   :root[data-post-editor-document] :is(h1, h2, h3, h4, h5, h6, .minecraft-button) {
      font-family: 'Minecraft-Ten', monospace !important;
      font-weight: 400 !important;
   }
}

/* The Settings and Account views share one right-hand Minecraft panel. */
.header-menu {
   --header-menu-top: 97px;
   position: fixed;
   z-index: 20000;
   top: var(--header-menu-top);
   right: 0;
   display: grid;
   grid-template-rows: auto minmax(0, 1fr);
   width: min(520px, 100vw);
   max-height: calc(100dvh - var(--header-menu-top) - 8px - var(--floating-ui-bottom-clearance));
   overflow: hidden;
   border: 4px solid #28292b;
   background: #464748;
   box-shadow: inset 0 0 0 2px #666768, -4px 4px 0 rgb(0 0 0 / 35%);
   color: #fff;
   font: 400 20px/1.45 var(--font-body);
   text-shadow: var(--post-text-shadow);
}
.header-menu[hidden], .header-menu [hidden] { display: none !important; }
@media (min-width: 768px) and (min-height: 601px), (min-width: 1101px) {
   .header-menu {
      right: 20px;
      box-shadow: inset 0 0 0 2px #666768, 4px 4px 0 rgb(0 0 0 / 35%);
   }
}
.header-menu__heading {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 20px;
   padding: 18px 24px;
   border-bottom: 4px solid #303132;
   box-shadow: inset 0 -2px #626365;
}
.header-menu__heading h2 {
   margin: 0;
   font: 400 28px/1.1 var(--font-display);
   text-shadow: var(--post-text-shadow);
}
.header-menu .header-menu__close {
   --mc-text: #000;
   --mc-text-shadow: none;
   flex-shrink: 0;
   width: 40px;
   min-height: 45px;
   height: 45px;
   /* Center on the face, excluding the lower 5px base and its 1px seam. */
   padding: 0 0 6px;
}
.header-menu__close svg { fill: currentColor; filter: none; }
.header-menu__scroll { min-height: 0; overflow: auto; overscroll-behavior: contain; }
.header-menu__body { padding: 22px 24px; }
.header-menu__body p { margin: 0 0 16px; }
.header-menu__body > :last-child { margin-bottom: 0; }
.header-menu__choices { min-width: 0; margin: 0; padding: 12px 24px 18px; border: 0; }
.header-menu__choice {
   display: grid;
   grid-template-columns: 28px 84px minmax(0, 1fr);
   align-items: center;
   gap: 20px;
   padding: 7px 4px;
   cursor: pointer;
}
.header-menu__choice-title { display: block; }
.header-menu__diamond {
   position: relative;
   display: block;
   width: 26px;
   height: 26px;
   transform: rotate(45deg);
   border: 3px solid #292a2b;
   background: #929395;
   box-shadow: inset 0 0 0 3px #b4b5b7;
}
.header-menu__choice:hover .header-menu__diamond { background: #bfc0c2; box-shadow: inset 0 0 0 3px #d0d1d3; }
.header-menu__choice input:checked + .header-menu__diamond { background: #91ce64; box-shadow: inset 0 0 0 3px #5b903d; }
.header-menu__choice input:checked + .header-menu__diamond::after {
   content: '';
   position: absolute;
   top: 50%;
   left: 50%;
   width: 40%;
   height: 40%;
   transform: translate(-50%, -50%);
   background: #fff;
}
.header-menu__choice input:focus-visible + .header-menu__diamond { outline: 2px solid #fff; outline-offset: 4px; }
.header-menu__preview {
   display: block;
   width: 84px;
   height: 48px;
   object-fit: cover;
   border: 2px solid #292a2b;
}
.header-menu__preview--system {
   background: url('/assets/home-v2/sky.webp') left center / auto 100% no-repeat;
   position: relative;
}
.header-menu__preview--system::after {
   content: '';
   position: absolute;
   inset: 0 0 0 50%;
   background: url('/assets/home-v2/night.webp') center / cover;
}
.header-menu__muted { display: block; color: #d0d1d3; font: 400 16px/1.5 var(--font-body); }
.header-menu__footer {
   padding: 18px 24px 22px;
   border-top: 4px solid #303132;
   box-shadow: inset 0 2px #626365;
}
.header-menu__wide { width: 100%; white-space: normal; text-align: center; }
.header-menu__body > .mc-button + .mc-button { margin-top: 14px; }
.header-menu__patreon {
   --mc-highlight: #ffac97;
   --mc-text: #fff;
   --mc-font: var(--font-display);
   --mc-text-shadow: 2px 2px 0 #7d2a21;
}
.header-menu__patreon,
.post-downloads__patreon .post-downloads__button,
.house-ad--patreon .mc-button--house-ad {
   --mc-background: #c94735;
   --mc-background-hover: #b83d2d;
   --mc-bottom: #9b3026;
   --mc-depth-edge: #b13e30;
}
.header-menu__identity { display: flex; align-items: center; gap: 18px; min-width: 0; }
.header-menu__identity > div { min-width: 0; }
.header-menu .header-menu__name { margin: 0 0 8px; font-size: 24px; overflow-wrap: anywhere; }
.header-menu__avatar { width: 64px; height: 64px; flex: 0 0 64px; object-fit: cover; border: 2px solid #292a2b; }
.header-menu__avatar--initial { display: grid; place-items: center; background: #303132; font: 400 36px var(--font-display); }
.header-menu__tier { display: inline-block; padding: 2px 8px; background: #686a6c; font-size: 16px; }
.header-menu__tier--premium { background: #3e8428; }
.header-menu__details { margin: 22px 0; }
.header-menu__details dt { color: #d0d1d3; font-size: 16px; }
.header-menu__details dd { margin: 4px 0 0; overflow-wrap: anywhere; }
.header-menu__notice { margin: 0; padding: 18px 24px; background: #61352f; overflow-wrap: anywhere; }
@media (max-width: 600px) {
   .header-menu__heading { padding: 16px 18px; }
   .header-menu__heading h2 { font-size: 26px; }
   .header-menu__body, .header-menu__footer { padding: 18px; }
   .header-menu__choices { padding: 8px 18px 16px; }
   .header-menu__choice { grid-template-columns: 24px 68px minmax(0, 1fr); gap: 14px; }
   .header-menu__preview { width: 68px; height: 44px; }
   .header-menu__diamond { width: 22px; height: 22px; }
   .header-menu__muted { font-size: 15px; }
}

@media (max-width: 767px) {
   .site-header { min-height: 0; }
   .home-main { margin-top: 0; }
   .site-header > .site-logo,
   .site-header > .header-actions,
   .site-header > .header-menu { display: none; }
}

/* Landscape phones keep a compact desktop-style header in a single row. */
@media (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) {
   .site-header {
      height: auto;
      min-height: 0;
      flex-wrap: nowrap;
      gap: 12px;
      padding: 10px 12px;
   }
   .site-header > .site-logo,
   .site-header .upload-button { display: none; }
   .site-header > .main-nav {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      flex: 0 1 360px;
      order: 0;
      min-width: 0;
      width: auto;
   }
   .main-nav .mc-button {
      min-width: 0;
      min-height: 44px;
      padding-inline: 10px;
      font-size: 17px;
   }
   .main-nav__label--full { display: none; }
   .main-nav__label--mobile { display: inline; }
   .site-header > .header-actions {
      display: flex;
      flex: 0 0 auto;
      order: 1;
      gap: 7px;
      margin-left: auto;
   }
   .header-actions .header-icon-button {
      width: 44px;
      min-width: 44px;
      min-height: 44px;
      padding-inline: 8px;
   }
   .site-header > .header-menu { display: grid; }
}

/* Portrait phones keep the three equal navigation buttons and a square Account. */
@media (max-width: 767px) and (orientation: portrait) {
   .site-header {
      flex-wrap: nowrap;
      gap: 9px;
   }

   .site-header > .main-nav {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      flex: 1 1 0;
      order: 0;
      min-width: 0;
      width: auto;
   }

   .site-header > .header-actions {
      display: flex;
      flex: 0 0 44px;
      order: 1;
      width: 44px;
      min-width: 44px;
      margin-left: 0;
      gap: 0;
   }

   .site-header > .header-actions > :not(.account-button) { display: none; }

   .site-header .account-button {
      width: 44px;
      min-width: 44px;
      height: 44px;
      min-height: 44px;
      padding-inline: 8px;
   }

   .site-header > .header-menu { display: grid; }
}

/* Shared mobile type scale; controls use 44px except gallery and pagination arrows. */
@media (max-width: 767px), (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) {
   :root {
      --type-body: 16px;
      --type-title: 28px;
      --type-h2: 22px;
      --type-h3: 20px;
      --type-section: 18px;
      --type-label: 14px;
      --type-caption: 13px;
      --type-button: 16px;
      --mobile-font-body: var(--type-body);
      --mobile-font-small: var(--type-caption);
      --mobile-font-label: var(--type-label);
      --mobile-font-section: var(--type-section);
      --mobile-font-heading: var(--type-h3);
      --mobile-font-title: var(--type-title);
   }

   body,
   .header-menu__scroll {
      scrollbar-width: none;
      scrollbar-gutter: auto;
   }
   body::-webkit-scrollbar,
   .header-menu__scroll::-webkit-scrollbar {
      display: none;
      width: 0;
   }

   body,
   .addon-post__panel,
   .creator-profile__empty,
   .post-changelog__preview,
   .post-changelog__notes,
   .post-changelog__notes h5,
   .language-support__name,
   .post-downloads__file-info p,
   .search-label,
   .search-input-row input,
   .search-empty,
   .header-menu {
      font-size: var(--mobile-font-body);
   }

   :root .mc-button:not(.post-gallery__arrow, .catalog-pagination__arrow) {
      height: 44px;
      min-height: 44px;
      padding-block: 3px 9px;
   }
   .post-gallery__arrow,
   .catalog-pagination__arrow {
      width: 44px;
      min-width: 44px;
      height: 50px;
      min-height: 50px;
      padding: 3px 0 9px;
   }
   .post-gallery__arrow { top: calc(50% - 25px); }
   .post-gallery__arrow svg,
   .catalog-pagination__arrow svg {
      width: 8px;
      height: 14px;
   }
   .mc-button,
   .site-header .mc-button,
   .addon-post__actions .mc-button,
   .house-ad .mc-button {
      font-size: var(--mobile-font-body);
   }
   .main-nav .mc-button { font-size: clamp(12px, 3.6vw, 16px); }

   .addon-post__title,
   .creator-profile__name { font-size: var(--mobile-font-title); }
   .addon-post__content h2 { font-size: var(--type-h2); }
   .addon-post__content :is(h3, h4, h5, h6),
   .addon-post__crafting :is(h3, h4, h5, h6),
   .post-changelog__title,
   .post-downloads__file-info h3,
   .post-documentation h3,
   .house-ad .house-ad__heading,
   .header-menu__heading h2,
   .header-menu .header-menu__name {
      font-size: var(--mobile-font-heading);
   }
   .section-heading,
   .addon-post__section .section-heading,
   .addon-card--featured .addon-card__title,
   .post-changelog__version h3,
   .catalog-pagination__page {
      font-size: var(--mobile-font-section);
   }
   .addon-card__title,
   .addon-post__action-status,
   .creator-profile__eyebrow,
   .creator-profile__copy-status,
   .post-downloads__file-icon > span,
   .header-menu__muted,
   .header-menu__tier,
   .header-menu__details dt {
      font-size: var(--mobile-font-label);
   }
   .category-tag,
   .addon-post__tags .category-tag,
   .update-badge,
   .post-changelog__latest,
   .post-gallery__counter,
   .post-gallery__next-tag {
      font-size: var(--mobile-font-small);
   }
   .creator-profile__avatar > span { font-size: 48px; }
   .header-menu__avatar--initial { font-size: var(--mobile-font-title); }
   .post-release__meta { gap: 8px; }
}

/* Documentation v2: the sidebar occupies its own column beside the article. */
.docs-workspace {
   display: grid;
   grid-template-columns: 292px minmax(0, 1fr);
   align-items: start;
   gap: 24px;
   margin-bottom: 36px;
}
.docs-sidebar {
   position: sticky;
   top: 16px;
   min-width: 0;
   max-height: calc(100dvh - var(--site-header-offset) - var(--floating-ui-bottom-clearance) - 32px);
   overflow: auto;
   padding: 20px 14px 16px;
   border: 0;
   background: var(--panel-background);
   box-shadow: 4px 4px 0 rgb(0 0 0 / 30%);
   text-shadow: var(--post-text-shadow);
   scrollbar-gutter: stable;
}
.docs-sidebar[hidden],
.docs-sidebar [hidden],
.docs-nav-toggle[hidden] { display: none; }
.docs-sidebar__title {
   display: block;
   margin: 0 2px 20px;
   color: #fff;
   font: 400 26px/1.2 var(--font-display);
   text-decoration: none;
}
.docs-search { margin-bottom: 20px; }
.docs-search input { min-height: 46px; padding-left: 10px; font-size: 16px; }
.docs-search .search-input-clear { right: 4px; }
.docs-nav { font-size: 16px; line-height: 1.4; }
.docs-nav a { color: inherit; text-decoration: none; }
.docs-nav__home {
   display: block;
   padding: 10px 12px;
   margin: 3px 3px 16px;
   border-left: 3px solid transparent;
}
.docs-nav__group + .docs-nav__group { margin-top: 24px; }
.docs-nav__group-title {
   margin: 0 3px 10px;
   padding-bottom: 8px;
   border-bottom: 2px solid rgb(255 255 255 / 35%);
   font: 400 18px/1.3 var(--font-display);
}
.docs-nav__page { margin: 0 3px 4px; }
.docs-nav__page summary {
   display: flex;
   align-items: center;
   justify-content: space-between;
   gap: 12px;
   min-height: 44px;
   padding: 10px 9px;
   list-style: none;
   cursor: pointer;
   overflow-wrap: anywhere;
}
.docs-nav__page summary::-webkit-details-marker { display: none; }
.docs-nav__page summary svg {
   flex: 0 0 8px;
   fill: currentColor;
   filter: drop-shadow(var(--post-text-shadow));
}
.docs-nav__page[open] > summary svg { transform: rotate(90deg); }
.docs-nav__page.is-current > summary { color: var(--tag-color); }
.docs-nav__page[open] > summary { background: rgb(255 255 255 / 7%); }
.docs-nav__sections { padding: 6px 0 10px 9px; }
.docs-nav__link {
   display: block;
   margin: 4px 2px;
   padding: 7px 8px;
   border-left: 3px solid transparent;
   overflow-wrap: anywhere;
}
.docs-nav .docs-nav__link--h3 { padding-left: 18px; color: #e1e1e1; }
.docs-nav__link[aria-current],
.docs-nav__home[aria-current] {
   border-left-color: #fff;
   background: rgb(255 255 255 / 12%);
}
.docs-nav :is(a, summary):hover {
   outline: 2px solid rgb(255 255 255 / 60%);
   outline-offset: 1px;
}
.docs-nav :is(a, summary):active { outline-color: #fff; }
.docs-nav__empty { margin: 20px 10px 0; line-height: 1.5; }
.docs-reading {
   display: grid;
   grid-template-columns: minmax(0, 1fr) auto;
   align-items: center;
   gap: 16px;
   min-width: 0;
}
.docs-breadcrumbs {
   display: flex;
   flex-wrap: wrap;
   align-items: center;
   gap: 7px 10px;
   min-width: 0;
   padding-block: 6px;
   font-size: 16px;
   line-height: 1.5;
   text-shadow: var(--post-text-shadow);
}
.docs-breadcrumbs a { color: #fff; text-underline-offset: 4px; }
.docs-breadcrumbs [aria-current] { overflow-wrap: anywhere; }
.docs-addon-link { justify-self: end; padding-inline: 16px; }
.docs-article {
   grid-column: 1 / -1;
   min-width: 0;
   padding: 28px 30px 32px;
   background: var(--panel-background);
   font: 400 20px/1.6 var(--font-body);
   text-shadow: var(--post-text-shadow);
   overflow-wrap: anywhere;
}
.docs-article > main { max-width: 76ch; margin-inline: auto; }
.docs-article :is(h1, h2, h3, h4, h5, h6) {
   font-family: var(--font-display);
   font-weight: 400;
   line-height: 1.2;
   text-shadow: var(--post-text-shadow);
   scroll-margin-top: 20px;
}
.docs-article h1 { margin: 0 0 20px; font-size: 40px; }
.docs-article__banner {
   display: block;
   width: 100%;
   height: auto;
   margin: 0 0 20px;
   border: 2px solid var(--edge-color);
   box-shadow: 3px 3px 0 rgb(0 0 0 / 30%);
}
.docs-article h2 { margin: 36px 0 18px; font-size: 28px; }
.docs-article h3 { margin: 28px 0 12px; font-size: 24px; }
.docs-article :is(h4, h5, h6) { margin: 24px 0 12px; font-size: 22px; }
.docs-article section[id] { scroll-margin-top: 20px; }
.docs-article :is(p, ul, ol) { margin: 0 0 20px; }
.docs-article :is(ul, ol) { padding-left: 28px; }
.docs-article li + li { margin-top: 12px; }
.docs-article li > :is(ul, ol) { margin-block: 12px 0; }
.docs-article ol > li::marker { text-shadow: var(--post-text-shadow); }
.docs-article a:not([class]) { color: #c9edff; text-underline-offset: 4px; }
.docs-article .prominent {
   margin: 24px 0;
   padding: 16px 18px;
   border-left: 4px solid var(--tag-color);
   background: rgb(255 255 255 / 7%);
}
.docs-article :is(pre, table) { max-width: 100%; overflow-x: auto; }
.docs-article pre { padding: 16px; background: rgb(0 0 0 / 35%); }
.docs-page-links {
   grid-column: 1 / -1;
   display: flex;
   justify-content: space-between;
   flex-wrap: wrap;
   gap: 12px;
   margin-top: 8px;
}
.docs-page-links .mc-button { max-width: 100%; white-space: normal; text-align: center; }
.docs-article--overview { padding: 0; background: transparent; }
.docs-article--overview > main { max-width: none; }
.docs-intro { padding: 28px; background: var(--panel-background); }
.docs-intro .category-tag { margin-bottom: 16px; font-size: 14px; text-shadow: none; }
.docs-intro h1 { font-size: 44px; }
.docs-intro p { max-width: 50ch; margin: 0; }
.docs-guide-section { margin-top: 30px; }
.docs-article .section-heading {
   margin: 0 0 16px;
   font-family: var(--font-body);
   font-size: 20px;
   line-height: 1.4;
}
.docs-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.docs-guide-grid--start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
/* Guide cards reuse the add-on card frame, hover and 5px face press. */
.docs-article .docs-guide-card { color: #fff; }
.docs-guide-card__art { margin: 0; }
.docs-guide-card h3 {
   margin: 0;
   font-family: var(--font-body);
   font-size: 19px;
   line-height: 1.15;
   text-shadow: 2px 2px #303132;
}
.docs-guide-card p { margin: 0; font-size: 16px; line-height: 1.5; }
.docs-guide-card__action { display: inline-flex; align-items: center; gap: 8px; color: var(--tag-color); font-size: 16px; }
.docs-guide-card__action svg {
   display: block;
   flex: 0 0 auto;
   width: 6px;
   height: 10px;
   fill: currentColor;
   filter: drop-shadow(var(--post-text-shadow));
}
.docs-guide-card--start .addon-card__art { aspect-ratio: 4 / 1; }

@media (max-width: 1100px) {
   .docs-workspace { grid-template-columns: 260px minmax(0, 1fr); gap: 20px; }
   .docs-article { padding: 24px; }
   .docs-guide-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
   .docs-guide-grid--start { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 950px), (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) {
   .docs-workspace { grid-template-columns: minmax(0, 1fr); gap: 16px; }
   .docs-nav-toggle { justify-self: start; }
   .docs-sidebar { position: static; max-height: min(60dvh, 520px); width: 100%; }
}
@media (max-width: 767px), (orientation: landscape) and (max-height: 600px) and (max-width: 1100px) {
   .docs-workspace { margin-bottom: 24px; }
   .docs-sidebar { padding: 16px 12px; scrollbar-width: none; scrollbar-gutter: auto; }
   .docs-sidebar::-webkit-scrollbar { display: none; width: 0; }
   .docs-sidebar__title { font-size: 22px; }
   .docs-nav { font-size: var(--mobile-font-label); }
   .docs-nav__group-title { font-size: 16px; }
   .docs-nav__sections { padding-left: 4px; }
   .docs-nav__link { padding-block: 9px; }
   .docs-reading { grid-template-columns: minmax(0, 1fr); gap: 14px; }
   .docs-addon-link { justify-self: start; }
   .docs-breadcrumbs { font-size: var(--mobile-font-small); }
   .docs-article { padding: 20px 16px; font-size: var(--mobile-font-body); line-height: 1.5; }
   .docs-article h1 { font-size: var(--mobile-font-title); }
   .docs-article h2 { margin-top: 28px; font-size: 22px; }
   .docs-article :is(h3, h4, h5, h6) { margin-top: 22px; font-size: var(--mobile-font-heading); }
   .docs-article .section-heading { font-size: var(--mobile-font-section); }
   .docs-article :is(p, ul, ol) { margin-bottom: 16px; }
   .docs-article .prominent { padding: 14px; }
   .docs-article--overview { padding: 0; }
   .docs-intro { padding: 22px 18px; }
   .docs-guide-grid { gap: 14px; }
   .docs-guide-section { margin-top: 24px; }
   .docs-guide-card h3 { margin: 0; font-size: var(--mobile-font-label); }
   .docs-guide-card p { margin: 0; font-size: var(--mobile-font-label); }
   .docs-guide-card__action { font-size: var(--mobile-font-small); }
   .docs-page-links .mc-button { font-size: var(--mobile-font-label); padding-inline: 12px; }
}
@media (max-width: 520px) {
   .docs-guide-grid { grid-template-columns: minmax(0, 1fr); }
   .docs-page-links { flex-direction: column; align-items: stretch; }
}

/* The dock sits below the body's scroll viewport; it never covers that viewport. */
.house-ad-dock {
   display: none;
}

@media (max-width: 767px) and (orientation: portrait) {
   :root:has(body > .house-ad-dock) {
      --site-house-ad-size: calc(64px + env(safe-area-inset-bottom, 0px));
   }

   body > .house-ad-dock {
      position: fixed;
      inset: auto 0 0;
      z-index: 10000;
      display: grid;
      grid-template-columns: 40px minmax(0, 1fr) auto;
      align-items: center;
      gap: 10px;
      height: calc(64px + env(safe-area-inset-bottom, 0px));
      min-height: 0;
      min-width: 0;
      margin: 0;
      padding: 8px max(10px, env(safe-area-inset-right, 0px)) calc(8px + env(safe-area-inset-bottom, 0px)) max(10px, env(safe-area-inset-left, 0px));
      border: 0;
  
      box-shadow: inset 0 2px 0 var(--house-paper);
      text-shadow: none;
   }

   .house-ad-dock__icon {
      display: block;
      width: 40px;
      height: 40px;
      border: 2px solid var(--house-ink);
      object-fit: cover;
   }

   .house-ad-dock__copy {
      min-width: 0;
   }

   .house-ad-dock__title,
   .house-ad-dock__description {
      margin: 0;
      overflow: hidden;
      white-space: nowrap;
      text-overflow: ellipsis;
   }

   .house-ad-dock__title {
      font: 400 18px/1.15 var(--font-display);
   }

   .house-ad-dock__description {
      margin-top: 3px;
      color: var(--house-text-soft);
      font: 400 13px/1.2 var(--font-body);
   }

   .house-ad-dock .mc-button {
      min-width: 80px;
      padding-inline: 10px;
      font-size: 14px;
   }
}

/* Informational pages, email preferences and the app's Patreon return page. */
.site-page {
   width: min(1180px, calc(100% - 48px));
   font-size: var(--type-body);
   line-height: var(--type-body-leading);
   font-variant-ligatures: none;
   text-shadow: var(--post-text-shadow);
}
.site-page__hero { margin-bottom: 28px; max-width: 900px; }
.site-page__hero .category-tag { text-shadow: none; }
.site-page__title { margin: 12px 0; font: 400 var(--type-title)/1.1 var(--font-display); overflow-wrap: anywhere; }
.site-page p { margin: 0 0 16px; line-height: var(--type-body-leading); overflow-wrap: anywhere; }
.site-page__hero p { max-width: 70ch; margin-bottom: 0; }
.site-page h2 { margin: 0 0 16px; font: 400 var(--type-h2)/1.4 var(--font-display); }
.site-page h3 { margin: 0 0 12px; font: 400 var(--type-h3)/1.4 var(--font-display); }
.site-page .section-heading { font: 400 var(--type-section)/1.4 var(--font-body); }
.site-page a:not(.mc-button) { color: inherit; text-underline-offset: 4px; }
.site-page a:focus-visible,
.site-page summary:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.site-page__panel { min-width: 0; padding: 28px; background: var(--panel-background); }
.site-page__panel > :last-child { margin-bottom: 0; }
.site-page__intro { margin-bottom: 32px; }
.site-page__intro > p { max-width: 82ch; }
.site-page__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.site-page__grid--three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site-page__card { display: flex; flex-direction: column; align-items: flex-start; }
.site-page__card > .mc-button { margin-top: auto; }
.site-page .mc-button { max-width: 100%; white-space: normal; text-align: center; font-size: var(--type-button); }
.site-page .mc-button:disabled { cursor: not-allowed; opacity: .55; }
.site-page__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.site-page ul { margin: 0 0 16px; padding: 0; list-style: none; }
.site-page li { position: relative; padding-left: 20px; margin: 10px 0; line-height: var(--type-body-leading); }
.site-page li::before { content: ''; position: absolute; left: 0; top: .6em; width: 6px; height: 6px; background: currentColor; box-shadow: 2px 2px 0 var(--post-shadow-color); }
.site-page__legal-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 24px; align-items: start; }
.site-page__legal-layout--single { grid-template-columns: minmax(0, 1fr); }
.site-page__toc { position: sticky; top: 16px; padding: 20px; background: var(--panel-background); }
.site-page__toc summary { cursor: pointer; font: 400 var(--type-section)/1.4 var(--font-display); }
.site-page__toc nav { display: grid; max-height: calc(100dvh - 270px); overflow-y: auto; margin-top: 16px; }
.site-page__toc nav a { padding: 10px 8px; border-left: 2px solid rgb(255 255 255 / 25%); text-decoration: none; font-size: var(--type-label); line-height: 1.4; overflow-wrap: anywhere; }
.site-page__toc nav a:hover { border-color: #fff; background: rgb(255 255 255 / 10%); }
.site-page__related { display: block; margin-top: 20px; padding-top: 16px; border-top: 2px solid rgb(255 255 255 / 25%); font-size: var(--type-label); line-height: var(--type-body-leading); }
.site-page__legal { line-height: var(--type-body-leading); }
.site-page__legal h2 { margin-top: 32px; scroll-margin-top: 16px; }
.site-page__legal h3 { margin-top: 24px; }
.site-page__cookie-link { padding: 0; border: 0; background: transparent; color: inherit; text-decoration: underline; text-underline-offset: 4px; text-shadow: inherit; cursor: pointer; }
.site-page__cookie-link:disabled { opacity: .6; cursor: default; }
.site-page__subscriptions { align-items: start; }
.site-page__form { display: grid; gap: 16px; margin-top: 20px; }
.site-page__form input[type="email"] { width: 100%; min-width: 0; min-height: 48px; padding: 12px; border: 2px solid var(--edge-color); border-bottom-color: #777; border-radius: 0; background: #464748; color: #fff; text-shadow: var(--post-text-shadow); }
.site-page__form input[type="email"]::placeholder { color: #d0d1d3; }
.site-page__form input[type="email"]:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.site-page__form fieldset { display: grid; gap: 12px; min-width: 0; margin: 0; padding: 16px 0 0; border: 0; }
.site-page__form legend { padding: 0; }
.site-page__check { display: flex; gap: 12px; align-items: center; min-height: 44px; cursor: pointer; }
.site-page__check input { appearance: none; position: relative; flex: 0 0 24px; width: 24px; height: 24px; margin: 0; border: 2px solid #232323; border-radius: 0; background: #929496; box-shadow: inset 2px 2px #c6c7c9, inset -2px -2px #656769; }
.site-page__check input:hover { outline: 2px solid rgb(255 255 255 / 60%); outline-offset: 2px; }
.site-page__check input:checked { background: #3e8428; box-shadow: inset 2px 2px #8ac174, inset -2px -2px #245616; }
.site-page__check input:checked::after { content: ''; position: absolute; top: 5px; left: 4px; width: 3px; height: 3px; background: #fff; box-shadow: 0 3px #fff, 3px 6px #fff, 6px 3px #fff, 9px 0 #fff, 12px -3px #fff; }
.site-page__check input:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.site-page__form > .mc-button { justify-self: start; min-width: 180px; }
.site-page .site-page__fine-print { font-size: var(--type-caption); margin-bottom: 0; }
.site-page .site-page__notice { padding: 14px 16px; border-left: 4px solid var(--tag-color); background: rgb(255 255 255 / 8%); }
.site-page .site-page__notice--error { border-color: #ef8b7d; }
.site-page .site-page__status { margin: 16px 0 0; }
.site-page__status:empty { display: none; }
.site-page__message { max-width: 760px; margin: 0 auto; }
.site-page__message strong { overflow-wrap: anywhere; }
.site-page__error { display: grid; grid-template-columns: minmax(0, 444px) minmax(0, 1fr); align-items: center; gap: 32px; }
.site-page__error-art { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.site-page__state-icon { display: block; margin-bottom: 16px; color: var(--tag-color); font-size: 36px; }
.site-page__loader { display: flex; gap: 6px; margin: 8px 0 24px; }
.site-page__loader i { display: block; width: 14px; height: 14px; border: 2px solid #232323; background: #929496; animation: site-page-loading 1.2s steps(1) infinite; }
.site-page__loader i:nth-child(2) { animation-delay: .4s; }
.site-page__loader i:nth-child(3) { animation-delay: .8s; }
.site-page [hidden] { display: none !important; }
@keyframes site-page-loading { 0%, 32% { background: var(--tag-color); } 33%, 100% { background: #929496; } }
@media (prefers-reduced-motion: reduce) { .site-page__loader i { animation: none; background: var(--tag-color); } }
@media (max-width: 1000px) { .site-page__grid--three { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
   .site-page__legal-layout { grid-template-columns: minmax(0, 1fr); gap: 16px; }
   .site-page__toc { position: static; }
   .site-page__toc nav { max-height: 360px; }
}
@media (max-width: 767px) {
   .site-page { width: calc(100% - 28px); margin-top: 8px; }
   .site-page__hero { margin-bottom: 20px; }
   .site-page__panel { padding: 18px; }
   .site-page__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
   .site-page__card > .mc-button { width: 100%; }
   .site-page__toc { padding: 16px; }
   .site-page__legal h2 { margin-top: 28px; }
   .site-page__actions > .mc-button { flex: 1 1 auto; }
   .site-page__form > .mc-button { justify-self: stretch; }
   .site-page__error { grid-template-columns: minmax(0, 1fr); gap: 24px; }
   .site-page__error-art { width: min(100%, 333px); margin-inline: auto; }
}

/* Patreon memberships use the opaque frame and inset separators of the menus. */
.site-page:has(> .patreon-memberships) > .site-page__hero {
   max-width: none;
   padding: 24px;
   background: var(--panel-background);
}
.patreon-memberships {
   display: grid;
   grid-template-columns: repeat(3, minmax(0, 1fr));
   align-items: stretch;
   gap: 24px;
   margin-top: 48px;
}
.patreon-tier {
   position: relative;
   min-width: 0;
   border: 4px solid #28292b;
   background: #464748;
   box-shadow: inset 0 0 0 2px #666768, 4px 4px 0 rgb(0 0 0 / 35%);
   color: #fff;
   font: 400 var(--type-body)/var(--type-body-leading) var(--font-body);
   text-shadow: var(--post-text-shadow);
}
.patreon-tier__heading {
   display: flex;
   align-items: center;
   min-height: 76px;
   padding: 16px 20px;
   border-bottom: 4px solid #303132;
   box-shadow: inset 0 -2px #626365;
}
.site-page .patreon-tier__heading h2 { margin: 0; }
.patreon-tier__image { display: block; width: 100%; height: auto; aspect-ratio: 400 / 174; object-fit: cover; border-bottom: 4px solid #303132; }
.patreon-tier__body { padding: 20px; }
.site-page .patreon-tier__price { display: flex; align-items: baseline; gap: 10px; margin: 0 0 18px; line-height: 1; }
.patreon-tier__amount { font: 400 var(--type-title)/1 var(--font-display); white-space: nowrap; }
.patreon-tier__currency { font: 400 var(--type-body)/1 var(--font-body); }
.patreon-tier__period { font-size: var(--type-caption); color: #e8e9eb; white-space: nowrap; }
.patreon-tier__join { width: 100%; }
.site-page .patreon-tier__description { min-height: 72px; margin: 20px 0; line-height: 1.5; }
.site-page .patreon-tier__benefits { margin: 0; }
.site-page .patreon-tier__benefits li { margin: 6px 0; padding-left: 18px; line-height: 1.5; }
.site-page .patreon-tier__benefits li::before { background: var(--tag-color); }
.patreon-tier__recommendation {
   position: absolute;
   bottom: 100%;
   right: -4px;
   left: -4px;
   display: block;
   min-height: 32px;
   padding: 6px 8px;
   border: 4px solid #28292b;
   border-bottom: 0;
   background: #c94735;
   box-shadow: inset 0 2px #ffac97;
   text-align: center;
   font: 400 var(--type-label)/1.25 var(--font-display);
}
.site-page .patreon-memberships__note { width: fit-content; max-width: 100%; margin: 20px 0 0; padding: 10px 14px; background: var(--panel-background); color: #e8e9eb; font-size: var(--type-caption); }
.patreon-connection { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 24px; margin-top: 28px; }
.patreon-connection h2 { margin-bottom: 8px; }
.patreon-connection p { margin-bottom: 0; }
@media (max-width: 1000px) {
   .patreon-memberships { grid-template-columns: minmax(0, 1fr); max-width: 620px; margin-inline: auto; gap: 52px; }
   .site-page .patreon-tier__description { min-height: 0; }
}
@media (max-width: 767px) {
   .site-page:has(> .patreon-memberships) > .site-page__hero { padding: 18px; }
   .patreon-tier__heading { min-height: 68px; padding: 16px 18px; }
   .patreon-tier__body { padding: 18px; }
   .patreon-connection { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 18px; }
   .patreon-connection > .mc-button { width: 100%; }
}
.videootv-rewarded-overlay {
  z-index: 11000 !important;
}

.videootv-rewarded-container {
  z-index: 11001 !important;
}

/* Legacy wrapper correction, scoped to Videoo instead of every fit-content div. */
.videootv-rewarded-container div[style*="width: fit-content"][style*="height: fit-content"] {
  position: static !important;
}

.videootv-rewarded-unlock-msg {
  font-size: 0 !important;
}

.videootv-rewarded-unlock-msg::after {
  content: "" !important;
  font-size: initial !important;
}

