.mcrp-slot[hidden], .mcrp-slot .mcrp-credit[hidden] { display:none!important }
.mcrp-slot {
  --mcrp-ink:#34274e;
  --mcrp-muted:#5e5471;
  --mcrp-accent:#58438e;
  --mcrp-line:#dfd6e9;
  --mcrp-paper:#fdfaff;
  box-sizing:border-box;
  min-width:0;
  color:var(--mcrp-ink);
  font:inherit;
}
.mcrp-slot * {box-sizing:border-box}
.mcrp-credit__row {display:flex;align-items:center;gap:10px;min-width:0}
.mcrp-credit__mark {
  display:grid;place-items:center;flex:0 0 auto;
  width:clamp(54px,19vw,94px);height:40px;padding:5px 7px;
  background:#fff;border:1px solid #e8e1ec;border-radius:8px;
}
.mcrp-credit__mark img.mcrp-credit__logo {
  display:block;width:100%;height:100%;max-width:100%;max-height:100%;
  object-fit:contain;object-position:center;margin:0!important;
  border:0!important;box-shadow:none!important;border-radius:0!important;
}
.mcrp-credit__identity {min-width:0;overflow-wrap:anywhere}
.mcrp-credit__label {display:block;font-size:.73rem;color:var(--mcrp-muted);line-height:1.28}
.mcrp-credit__name {display:block;font-size:.92rem;color:var(--mcrp-ink);font-weight:750;line-height:1.25;margin-top:3px}

.mcrp-slot--landing {
  width:min(100% - 32px,505px);
  margin:17px auto 22px;
}
.mpn-hero-copy .mcrp-slot--landing, .mbn-hero-copy .mcrp-slot--landing, .mbn-w-header .mcrp-slot--landing, .mua-hero-copy .mcrp-slot--landing, .mtn-hero-copy .mcrp-slot--landing, .mra-hero-copy .mcrp-slot--landing, .mpa-hero-copy .mcrp-slot--landing, .amn-hero-text .mcrp-slot--landing, .msn-hero-copy .mcrp-slot--landing, .an-hero-copy .mcrp-slot--landing, .mbn-hero-text .mcrp-slot--landing, .mc-learning-list .mcrp-slot--landing {
  width:min(100%,505px);
  margin:clamp(17px,2.2vw,25px) 0 0;
}
.mcrp-slot--landing .mcrp-credit {
  padding:12px 14px 12px 15px;
  border:1px solid var(--mcrp-line);
  border-inline-start:3px solid #a18ac6;
  border-radius:13px;
  background:linear-gradient(115deg,#fffdf8 0%,#f7f1fc 100%);
}
.mcrp-slot--landing .mcrp-credit__top {
  display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:8px 12px;
}
.mcrp-slot--landing .mcrp-credit__row {flex:1 1 220px;gap:11px}
.mcrp-slot--landing .mcrp-credit__mark {width:clamp(70px,22vw,105px);height:43px}
.mcrp-slot--landing .mcrp-credit__label {
  color:var(--mcrp-accent);font-size:.64rem;letter-spacing:.085em;text-transform:uppercase;font-weight:800;
}
.mcrp-slot--landing .mcrp-credit__name {font-size:1.02rem}
.mcrp-slot--landing .mcrp-credit__summary {
  margin:9px 0 0!important;padding-top:8px;border-top:1px solid #e6dde9;
  font-size:.82rem;line-height:1.45;color:var(--mcrp-muted);
  white-space:pre-line;overflow-wrap:anywhere;
}
.mcrp-credit__contribution {
  margin-top:8px;padding-top:7px;border-top:1px solid #e6dde9;
  font-size:.78rem;line-height:1.45;color:var(--mcrp-muted);
}
.mcrp-credit__contribution summary {cursor:pointer;font-weight:700;color:var(--mcrp-accent)}
.mcrp-slot--landing .mcrp-credit__contribution .mcrp-credit__summary {
  margin-top:5px!important;border:none;padding:0;
}
.mcrp-slot .mcrp-credit__link {
  display:inline-flex;align-items:center;gap:5px;min-height:34px;max-width:100%;padding:5px 9px;
  border:1px solid #dfd3eb;border-radius:999px;background:#fffcff;
  color:var(--mcrp-accent);font-size:.73rem;line-height:1.25;font-weight:750;text-decoration:none;
}
.mcrp-slot .mcrp-credit__link:hover {background:#eee5f8;color:#42306c;text-decoration:none}
.mcrp-slot .mcrp-credit__link:focus-visible {outline:2px solid var(--mcrp-accent);outline-offset:2px}

.mcrp-slot--detail {margin:17px 0 0;display:flex;flex-wrap:wrap;gap:7px;max-width:100%}
.mcrp-slot--detail .mcrp-credit {
  min-width:0;max-width:100%;padding:6px 10px 6px 6px;
  border:1px solid var(--mcrp-line);border-radius:10px;background:#fcf8ff;
}
.mcrp-slot--detail .mcrp-credit__mark {width:70px;height:32px;padding:3px 5px;border-radius:6px}
.mcrp-slot--detail .mcrp-credit__row {gap:8px}
.mcrp-slot--detail .mcrp-credit__label {font-size:.68rem}
.mcrp-slot--detail .mcrp-credit__name {font-size:.83rem}
.mcrp-slot--detail .mcrp-credit + .mcrp-credit {background:#fffcf6}

.mcrp-slot--card {align-self:stretch;margin:0 0 9px}
.mcrp-slot--card .mcrp-credit {
  padding:5px 7px;
  background:#f2edf8;border:1px solid #e8e0f0;border-radius:8px;
}
.mcrp-slot--card .mcrp-credit__row {gap:6px}
.mcrp-slot--card .mcrp-credit__mark {width:52px;height:26px;padding:3px 4px;border-radius:5px}
.mcrp-slot--card .mcrp-credit__label {font-size:.64rem}
.mcrp-slot--card .mcrp-credit__name {font-size:.72rem;margin-top:2px}

@media(max-width:740px) {
  .mpn-hero-copy .mcrp-slot--landing, .mbn-hero-copy .mcrp-slot--landing, .mbn-w-header .mcrp-slot--landing, .mua-hero-copy .mcrp-slot--landing, .mtn-hero-copy .mcrp-slot--landing, .mra-hero-copy .mcrp-slot--landing, .mpa-hero-copy .mcrp-slot--landing, .amn-hero-text .mcrp-slot--landing, .msn-hero-copy .mcrp-slot--landing, .an-hero-copy .mcrp-slot--landing, .mbn-hero-text .mcrp-slot--landing, .mc-learning-list .mcrp-slot--landing {margin-bottom:15px}
}
@media(max-width:440px) {
  .mcrp-slot--landing .mcrp-credit {padding:10px 11px}
  .mcrp-slot--landing .mcrp-credit__row {flex-basis:100%}
  .mcrp-slot .mcrp-credit__link {min-height:34px}
  .mcrp-slot--detail .mcrp-credit__mark {width:55px}
}

/* Hero edge placement, scoped to the requested room templates.
   No grid is reserved until a credit is visible, including after a live refresh. */
.mc-learning .mc-learning-heading > div > .mcrp-slot[data-mcrp-room="belajar-museum"],
.an-seo-hero > .mcrp-slot--detail[data-mcrp-room="aksara-nusantara"],
.mbn-seo-hero-inner > .mcrp-slot--detail[data-mcrp-room="bahasa-nusantara"],
.mra-detail-intro > .mcrp-slot--detail[data-mcrp-room="rumah-adat"] {
  position:relative;
  z-index:1;
  width:fit-content;
  max-width:100%;
  margin:16px 0 16px auto;
}
.mc-learning .mc-learning-heading > div > .mcrp-slot--landing[data-mcrp-room="belajar-museum"] {
  width:min(100%, 334px);
}

@media (min-width:801px) {
  .mc-learning .mc-learning-heading > div:has(> .mcrp-slot[data-mcrp-room="belajar-museum"]:not([hidden])),
  .an-seo-hero:has(> .mcrp-slot--detail[data-mcrp-room="aksara-nusantara"]:not([hidden])),
  .mbn-seo-hero-inner:has(> .mcrp-slot--detail[data-mcrp-room="bahasa-nusantara"]:not([hidden])) {
    display:grid;
    grid-template-columns:minmax(0,1fr) fit-content(33%);
    align-items:start;
    column-gap:clamp(22px,3vw,44px);
  }
  .mc-learning .mc-learning-heading > div:has(> .mcrp-slot[data-mcrp-room="belajar-museum"]:not([hidden])) > :not(.mcrp-slot),
  .an-seo-hero:has(> .mcrp-slot--detail[data-mcrp-room="aksara-nusantara"]:not([hidden])) > :not(.mcrp-slot),
  .mbn-seo-hero-inner:has(> .mcrp-slot--detail[data-mcrp-room="bahasa-nusantara"]:not([hidden])) > :not(.mcrp-slot) {
    grid-column:1;
  }
  .mc-learning .mc-learning-heading > div > .mcrp-slot[data-mcrp-room="belajar-museum"],
  .an-seo-hero > .mcrp-slot--detail[data-mcrp-room="aksara-nusantara"],
  .mbn-seo-hero-inner > .mcrp-slot--detail[data-mcrp-room="bahasa-nusantara"] {
    grid-column:2;
    grid-row:1 / span 4;
    justify-self:end;
    margin:0;
  }
  .mc-learning .mc-learning-heading > div > .mcrp-slot--landing[data-mcrp-room="belajar-museum"] {
    width:clamp(220px, 25vw, 334px);
    margin-bottom:10px;
  }
  .mbn-seo-hero-inner:has(> .mcrp-slot--detail[data-mcrp-room="bahasa-nusantara"]:not([hidden])) > .mbn-seo-crumbs,
  .mbn-seo-hero-inner:has(> .mcrp-slot--detail[data-mcrp-room="bahasa-nusantara"]:not([hidden])) > .mbn-seo-ornaments {grid-column:1 / -1}
  .mbn-seo-hero-inner > .mcrp-slot--detail[data-mcrp-room="bahasa-nusantara"] {grid-row:2 / span 4}
}

@media (min-width:1024px) {
  .mra-detail-intro:has(> .mcrp-slot--detail[data-mcrp-room="rumah-adat"]:not([hidden])) {
    display:grid;
    grid-template-columns:minmax(0,1fr) fit-content(47%);
    column-gap:16px;
    align-items:start;
  }
  .mra-detail-intro:has(> .mcrp-slot--detail[data-mcrp-room="rumah-adat"]:not([hidden])) > :not(.mcrp-slot) {grid-column:1 / -1}
  .mra-detail-intro:has(> .mcrp-slot--detail[data-mcrp-room="rumah-adat"]:not([hidden])) > .mra-detail-eyebrow {
    grid-column:1;
    grid-row:1;
    justify-self:start;
    align-self:center;
  }
  .mra-detail-intro > .mcrp-slot--detail[data-mcrp-room="rumah-adat"] {
    grid-column:2;
    grid-row:1;
    justify-self:end;
    margin:0;
  }
}

/* Small screens follow each hero's reading order; desktop placement stays intact. */
@media (max-width:800px) {
  .an-seo-hero > .mcrp-slot--detail[data-mcrp-room="aksara-nusantara"] {
    width:100%;
    margin:16px 0 0;
  }
  .an-seo-hero > .mcrp-slot--detail[data-mcrp-room="aksara-nusantara"] .mcrp-credit {width:100%}
  .an-seo-main .an-seo-facts > div > :is(dt, dd) {
    display:block;
    float:none;
    width:auto;
    text-align:start;
  }
  .an-seo-main .an-seo-facts > div > dd {
    margin:4px 0 0;
    overflow-wrap:anywhere;
  }
  .mc-learning.mc-learning-quiz .mc-learning-heading > div > .mcrp-slot--detail[data-mcrp-room="belajar-museum"],
  .mbn-seo-hero-inner > .mcrp-slot--detail[data-mcrp-room="bahasa-nusantara"],
  .mra-detail-intro > .mcrp-slot--detail[data-mcrp-room="rumah-adat"] {
    margin-inline:0 auto;
    text-align:start;
  }
}
