/* MTG Command — full-image animal-court hero layout, revision 2026-11-24: deterministic workspace-width behavior.
   Image bytes NEVER modified. Desktop text stays strictly within the first
   960px (33.38%) of the approved 2876x821 art's left negative-space region.
   At workspace widths below 60rem (when full-copy overlay is not legible),
   stack the entire unmodified image below copy rather than covering any pet.
   No pseudo-image, source-art editing, fixed viewport height, or viewport-wide assumption. */
body .living-hero.mtg-pets-hero {
  position: relative !important;
  isolation: isolate !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: 2876 / 821 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1px solid rgba(238,191,113,.34) !important;
  border-radius: 19px !important;
  overflow: hidden !important;
  background: #11121b !important;
}
body .living-hero.mtg-pets-hero::before,
body .living-hero.mtg-pets-hero::after,
body .mtg-pets-hero .hero-atmosphere,
body .mtg-pets-hero .nexus-seal,
body .mtg-pets-hero .hero-flavor-quote {
  display: none !important;
}
body .mtg-pets-hero .mtg-pets-art {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 0 !important;
  pointer-events: none !important;
}
body .mtg-pets-hero .mtg-pets-art img {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: contain !important;
  object-position: center center !important;
  transform: none !important;
  border: none !important;
  pointer-events: none !important;
}
/* 32.9% < 960 / 2876 = 33.38%; absolutely NO text over any pet. */
body .mtg-pets-hero .fantasy-hero-copy {
  position: absolute !important;
  inset: auto auto auto 0 !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  display: block !important;
  z-index: 2 !important;
  width: 32.9% !important;
  max-width: none !important;
  min-width: 0 !important;
  box-sizing: border-box !important;
  margin: 0 !important;
  padding: clamp(12px, 1.4vw, 23px) clamp(13px, 1.5vw, 24px) !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
body .mtg-pets-hero .hero-eyebrow {
  font-size: clamp(8px, .65vw, 11px) !important;
  line-height: 1.2 !important;
  letter-spacing: .13em !important;
}
body .mtg-pets-hero h2 {
  font-size: clamp(2.1rem, 3.75vw, 3.75rem) !important;
  line-height: .98 !important;
  margin: 10px 0 13px !important;
}
body .mtg-pets-hero .hero-feature-list {
  font-size: clamp(11px, .89vw, 14px) !important;
  line-height: 1.3 !important;
  margin: 0 !important;
  padding-inline-start: 1.08em !important;
}
body .mtg-pets-hero .hero-feature-list li {
  font-size: inherit !important;
  line-height: 1.3 !important;
  margin: 0 0 .48em !important;
}
/* Responsive composition, measured against the ACTUAL main-workspace width.
   Wide: complete bullet list on the artwork's 960px dark extension.
   Medium: keep title and native HTML disclosure ON the dark extension.
   Narrow: title/disclosure above full, unmodified art for legibility.
   No pet is ever overlaid by text. */
body .mtg-pets-hero .hero-compact-features { display:none !important; }
@container main-workspace (max-width: 60rem) {
  body .mtg-pets-hero .fantasy-hero-copy {
    position: absolute !important;
    inset: auto auto auto 0 !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 32.9% !important;
    max-height: calc(100% - 8px) !important;
    overflow-y: auto !important;
    padding: clamp(5px, .8cqw, 10px) clamp(6px, .85cqw, 11px) !important;
    background: transparent !important;
    scrollbar-width: thin;
  }
  body .mtg-pets-hero .hero-eyebrow { font-size: clamp(6px,.56cqw,8px) !important; letter-spacing: .055em !important; }
  body .mtg-pets-hero h2 {
    font-size: clamp(23px, 3.65cqw, 36px) !important;
    line-height: .96 !important;
    margin: 4px 0 7px !important;
  }
  body .mtg-pets-hero > .fantasy-hero-copy > .hero-feature-list { display: none !important; }
  body .mtg-pets-hero .hero-compact-features {
    display: block !important;
    margin: 6px 0 0 !important;
    min-width: 0;
  }
  body .mtg-pets-hero .hero-compact-features summary {
    display: list-item;
    cursor: pointer;
    color: #f7dca5;
    background: #17111fcf;
    border: 1px solid #ad7a51;
    border-radius: 5px;
    padding: 4px 5px;
    font: 600 clamp(10px,.85cqw,12px)/1.2 system-ui,sans-serif;
    touch-action: manipulation;
  }
  body .mtg-pets-hero .hero-compact-features summary:focus-visible {
    outline: 2px solid #fff0bf;
    outline-offset: 2px;
  }
  body .mtg-pets-hero .hero-compact-features ul {
    box-sizing: border-box;
    max-height: clamp(52px, 8.2cqw, 96px);
    overflow-y: auto;
    margin: 4px 0 0;
    padding: 3px 3px 3px 18px;
    background: #100c18eb;
    border: 1px solid #ad7a51;
    border-radius: 5px;
    color: #f5eaf1;
    font: 11px/1.35 system-ui,sans-serif;
    scrollbar-width: thin;
  }
  body .mtg-pets-hero .hero-compact-features li { margin-bottom: 5px; }
}
/* The image has only 32.9% negative space. Below this actual content width,
   even a title would shrink too far to remain legible. Stack the copy on small devices. */
@container main-workspace (max-width: 38rem) {
  body .living-hero.mtg-pets-hero { display:flex !important; flex-direction:column !important; aspect-ratio:auto !important; }
  body .mtg-pets-hero .fantasy-hero-copy {
    position:relative !important; inset:auto !important; top:auto !important;
    transform:none !important; width:100% !important; max-height:none !important;
    overflow:visible !important; padding:14px 16px !important;
    background:#15131e !important;
  }
  body .mtg-pets-hero .mtg-pets-art {
    position:relative !important; inset:auto !important; width:100% !important;
    height:auto !important; aspect-ratio:2876 / 821 !important; flex:0 0 auto !important;
  }
  body .mtg-pets-hero .mtg-pets-art img { width:100% !important; height:100% !important; }
  body .mtg-pets-hero h2 { font-size:clamp(2rem,7vw,2.8rem) !important; margin:7px 0 !important; }
  body .mtg-pets-hero .hero-eyebrow { font-size:9px !important; }
  body .mtg-pets-hero .hero-compact-features ul {max-height:none !important; overflow:visible !important; font-size:13px !important; }
  body .mtg-pets-hero .hero-compact-features summary {min-height:36px;font-size:13px !important;padding:8px !important;}
}
/* Phone fallback if no named parent container exists. No restored-desktop trigger. */
@media (max-width: 680px) {
  body .living-hero.mtg-pets-hero { display:flex !important; flex-direction:column !important; aspect-ratio:auto !important; }
  body .mtg-pets-hero .fantasy-hero-copy {
    position:relative !important; inset:auto !important; top:auto !important;
    transform:none !important; width:100% !important; max-height:none !important;
    overflow:visible !important; padding:14px 16px !important; background:#15131e !important;
  }
  body .mtg-pets-hero .mtg-pets-art {
    position:relative !important; inset:auto !important; width:100% !important;
    height:auto !important; aspect-ratio:2876 / 821 !important; flex:0 0 auto !important;
  }
  body .mtg-pets-hero .mtg-pets-art img {width:100% !important; height:100% !important;}
  body .mtg-pets-hero h2 {font-size:clamp(2rem,7vw,2.8rem) !important; margin:7px 0 !important;}
  body .mtg-pets-hero .hero-eyebrow {font-size:9px !important;}
  body .mtg-pets-hero .hero-compact-features ul {max-height:none !important; overflow:visible !important;font-size:13px !important;}
  body .mtg-pets-hero .hero-compact-features summary {min-height:36px;font-size:13px !important;padding:8px !important;}
}
/* Compact desktop: copy stays ON the left negative space, fully inside the
   true image-height, rather than moving to a detached full-width band. */
@container main-workspace (min-width: 60.01rem) and (max-width: 90rem) {
  body .mtg-pets-hero .fantasy-hero-copy { padding: 9px 12px !important; }
  body .mtg-pets-hero .hero-eyebrow { font-size: 8px !important; letter-spacing: .09em !important; }
  body .mtg-pets-hero h2 {
    font-size: clamp(37px, 3vw, 52px) !important;
    margin: 5px 0 7px !important;
    line-height: .94 !important;
  }
  body .mtg-pets-hero .hero-feature-list {
    font-size: clamp(11px, .87vw, 14px) !important;
    line-height: 1.18 !important;
    padding-inline-start: 1em !important;
  }
  body .mtg-pets-hero .hero-feature-list li {
    line-height: 1.18 !important;
    margin: 0 0 .24em !important;
  }
}
