/*
 * Minecraft resource detail pages (issue #1673).
 *
 * The template page (/minecraft/<type>/view/<id>/) is styled by the shared
 * live bundle; only its mob preview needs a rule here. The community page
 * (/minecraft/<type>/view/<id>/<slug>/<oid>/) is a Next.js page on live —
 * its CSS-module rules (items_*, DetailsCard_*, projectCard_*, projectLinks_*,
 * minecraftSkinLinks_*, parents_giftBanner*) are ported below under mcrv-*
 * names, values unchanged.
 */

/*
 * Template page. Live renders it with site_mobile_modern.css under
 * <body class="mc-viewer">; the port loads site_webpack_modern.css, where
 * `.mc-viewer` also carries the classic pixel editor's desktop layout and
 * `.explore-page` a dark theme (white headings/links). So the body omits
 * mc-viewer, the mobile bundle's .mc-viewer view rules are restated under
 * .explore-page-view-resource, and the dark-theme colors are undone.
 */
.explore-page-view-resource .editor {
  display: inline-block;
  vertical-align: top;
}
.explore-page-view-resource .editor .viewport,
.explore-page-view-resource .editor .viewport .canvas-frame {
  display: inline-block;
  position: relative;
  vertical-align: top;
}
.explore-page-view-resource .editor .viewport .canvas-frame {
  background-color: #fff;
  min-height: 350px;
}
.explore-page-view-resource .summary {
  display: inline-block;
  background-color: #fff;
  padding: 20px 40px 0;
  text-align: left;
}
.explore-page-view-resource .summary h1 {
  margin: 0 0 5px;
}
.explore-page-view-resource .summary span.footnote {
  display: block;
}
.explore-page-view-resource .summary p {
  margin: 0;
}
.explore-page-view-resource .community {
  text-align: left;
  clear: both;
  padding-top: 20px;
}
.explore-page-view-resource .community h3 {
  padding-bottom: 10px;
}
body.site .explore-page.explore-page-view-resource h1,
body.site .explore-page.explore-page-view-resource h2,
body.site .explore-page.explore-page-view-resource h3 {
  color: #000 !important;
}
.explore-page.explore-page-view-resource :where(a) {
  color: #0058d7;
  text-decoration: none;
}
.explore-page.explore-page-view-resource .breadcrumbs a {
  color: #ccc;
}
.explore-page.explore-page-view-resource .breadcrumbs a.current {
  color: #f8f8f8;
}
.explore-page.explore-page-view-resource .ty-link.\--light {
  color: #fefefe;
  text-decoration: underline;
}
.explore-page.explore-page-view-resource .summary a {
  color: #0058d7;
}
/* Live's mobile bundle ships no 700 Open Sans face, so its bold button
   text renders from the 600 face; match that weight so the label fits. */
.explore-page.explore-page-view-resource .summary a.button {
  color: #fff;
  font-weight: 600;
}
.explore-page.explore-page-view-resource .attribution {
  color: #000;
  font-size: 14px;
  margin-top: 40px;
}
.explore-page.explore-page-view-resource .attribution a {
  color: #0058d7;
  text-decoration: none;
}
.explore-page.explore-page-view-resource .breadcrumbs-container ul.breadcrumbs li {
  font-size: 14px;
}
.explore-page-view-resource .docs tbody tr {
  border-bottom: 0;
}
.explore-page-view-resource .docs tbody tr:nth-child(even) {
  background-color: #f1f1f1;
}

/* Template page: static mob render inside the three.js canvas frame. */
.explore-page-view-resource .canvas-frame .mcrv-mob-preview {
  display: block;
  max-width: 100%;
  height: 21.875rem;
  margin: 0 auto;
  object-fit: contain;
}

/* ---- community page: Next.js base type scale (body line-height 1.9) ---- */
.mcrv {
  line-height: 1.9;
}
.mcrv li {
  line-height: 1.9;
}
body.site .mcrv h1,
body.site .mcrv h2,
body.site .mcrv h3 {
  line-height: 1.4;
}
.mcrv .mcrv-crumbs .breadcrumbs li,
.mcrv .mcrv-crumbs .breadcrumbs a.current {
  display: flex;
  align-items: center;
}
.mcrv .mcrv-crumbs .breadcrumbs {
  display: inline-flex;
  flex-wrap: wrap;
  background: rgba(46, 51, 71, 0.3);
  line-height: 1.9;
}

/* ---- community page: header band (items_header) ---- */
.mcrv-header {
  background: linear-gradient(135deg, #6a699c 2%, #383ac1);
  flex-direction: column;
  padding: 20px 0;
}
.mcrv-header,
.mcrv-header .mcrv-links {
  align-items: center;
  display: flex;
}
.mcrv-header .mcrv-links {
  padding-left: 0.9375rem;
  padding-right: 0.9375rem;
  width: 75rem;
}
.mcrv-header .mcrv-crumbs {
  width: 60%;
}
.mcrv-header .mcrv-crumbs .breadcrumbs {
  margin: 0;
}
.mcrv-header .mcrv-header-link {
  color: #fff;
  display: flex;
  justify-content: center;
  text-decoration: underline;
  white-space: nowrap;
  width: 40%;
}
.mcrv--skins .mcrv-header .mcrv-crumbs {
  width: 70%;
}
.mcrv--skins .mcrv-header .mcrv-header-link {
  width: 25%;
}
.mcrv-header .mcrv-content {
  padding-left: 0.9375rem;
  padding-right: 0.9375rem;
  width: 50%;
}
.mcrv-header .mcrv-canvas {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1);
  display: flex;
  height: 24.375rem;
  justify-content: center;
  min-height: 24.375rem;
  padding: 1.25rem;
  image-rendering: pixelated;
}
.mcrv-header .mcrv-canvas img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.mcrv--mobs .mcrv-header .mcrv-canvas,
.mcrv--addons .mcrv-header .mcrv-canvas {
  image-rendering: auto;
}
.mcrv--skins .mcrv-header .mcrv-canvas {
  height: auto;
  min-height: 0;
}
.mcrv--skins .mcrv-header .mcrv-canvas img {
  height: 21.875rem;
}
.mcrv-header .mcrv-details {
  display: flex;
  margin-bottom: 2rem;
  margin-top: 1rem;
  width: min(100%, 75rem);
}
@media screen and (max-width: 64rem) {
  .mcrv-header .mcrv-links {
    width: 100%;
  }
  .mcrv-header .mcrv-content {
    margin-top: 1rem;
    width: 100%;
  }
  .mcrv-header .mcrv-details {
    flex-direction: column;
    width: 100%;
  }
}
@media screen and (max-width: 40rem) {
  .mcrv-header .mcrv-links {
    flex-direction: column;
  }
  .mcrv-header .mcrv-crumbs {
    display: flex;
    justify-content: center;
    margin-bottom: 0.5rem;
    width: 100%;
  }
  .mcrv-header .mcrv-header-link {
    width: 100%;
  }
}

/* ---- details card (DetailsCard_*) ---- */
.mcrv-card {
  background: #fff;
  border-radius: 5px;
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1);
  padding: 20px 40px 0;
  width: 100%;
  color: #0a0a0a;
}
body.site .mcrv-card .mcrv-title {
  overflow-wrap: break-word;
  color: #000;
  font-size: 25px;
  font-weight: 400;
  letter-spacing: 1px;
  margin-bottom: 5px;
  text-transform: none;
}
.mcrv-card .mcrv-remix-info {
  font-size: 14px;
  margin-top: 20px;
}
.mcrv-card .mcrv-remix-info a {
  color: #0058d7;
}
.mcrv-card .mcrv-remix {
  margin: 20px 10px 15px 0;
}
.mcrv-card .mcrv-stats {
  background-color: #f2fafa;
  border-bottom-left-radius: 5px;
  border-bottom-right-radius: 5px;
  font-weight: 600;
  margin: 0 -40px;
  padding: 0;
  text-align: center;
}
.mcrv-card .mcrv-stat {
  display: inline-block;
  font-size: 12px;
  font-weight: 400;
  margin: 10px;
  text-align: center;
  white-space: nowrap;
  width: 40px;
}
.mcrv-card .mcrv-stat .ui-icon {
  display: block;
  margin: 0 auto;
  height: 1.5rem;
  width: 14px;
}
.mcrv-card .mcrv-stat--views .ui-icon {
  width: 21px;
}
.mcrv-card .mcrv-stat--views .ui-icon {
  color: #1d6fc9;
}

/* ---- remixes band (items_pageContent / projectCard_*) ---- */
.mcrv-page-content {
  background: #f4f9fa;
  display: flex;
  justify-content: center;
}
.mcrv-page-content .mcrv-remixes {
  padding-top: 20px;
  width: 75rem;
}
body.site .mcrv-page-content .mcrv-rmxheading {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 1rem;
  padding-left: 0.9375rem;
  padding-right: 0.9375rem;
}
.mcrv-page-content .mcrv-center {
  display: flex;
  justify-content: center;
}
.mcrv-page-content .mcrv-center .button {
  margin: 0;
}
.mcrv-tile-col {
  display: inline-block;
  padding: 0 15px;
  vertical-align: top;
  width: 25%;
}
.mcrv-tile {
  background-color: #fff;
  border-radius: 5px;
  box-shadow: 1px 1px 1px 1px rgba(0, 0, 0, 0.1);
  margin-bottom: 30px;
  min-height: 236px;
  overflow: hidden;
  position: relative;
  text-align: left;
}
.mcrv-tile .mcrv-tile-image {
  display: flex;
  justify-content: center;
  min-height: 10.25rem;
  padding: 1rem 0;
  position: relative;
}
.mcrv-tile .mcrv-tile-image img {
  width: 130px;
  height: 130px;
  object-fit: contain;
  image-rendering: pixelated;
}
.mcrv-tile .mcrv-tile-details {
  background: #fff;
  border-top: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  padding: 0.89rem 0.5rem;
}
.mcrv-tile .mcrv-tile-name {
  color: #25293a;
  display: block;
  font-weight: 700;
  line-height: 20px;
  margin: 0;
  min-height: 20px;
  padding: 0;
  text-transform: none;
  width: 10rem;
}
.mcrv-tile .mcrv-tile-name,
.mcrv-tile .mcrv-tile-description {
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.mcrv-tile .mcrv-tile-description {
  color: #666;
}
.mcrv-tile .mcrv-tile-author {
  color: #0058d7;
  font-weight: 700;
}
.mcrv-tile .mcrv-tile-name {
  display: inline-block;
}
.mcrv-tile .mcrv-tile-counts {
  align-items: center;
  display: flex;
  gap: 1.5rem;
  margin-left: 0.9375rem;
  margin-right: 0.5rem;
  margin-top: 0.25rem;
}
.mcrv-tile .mcrv-tile-count {
  color: #666;
  font-size: 11px;
  min-width: 21px;
  text-align: center;
}
.mcrv-tile .mcrv-tile-count .ui-icon {
  display: block;
  margin: 0 auto 2px;
  font-size: 18px;
}
.mcrv-tile .mcrv-tile-count--likes .ui-icon {
  color: #e8505b;
}
.mcrv-tile .mcrv-tile-count--views .ui-icon {
  color: #1d6fc9;
}
@media screen and (max-width: 1024px) {
  .mcrv-tile-col {
    width: 50%;
  }
}
@media screen and (max-width: 640px) {
  .mcrv-tile-col {
    width: 100%;
  }
}

/* ---- "More Tynker Projects" (projectLinks_*) ---- */
.mcrv-project-links {
  max-width: 75rem;
  padding: 16px;
}
body.site .mcrv-project-links h2 {
  color: #0a0a0a;
  font-size: 25px;
  font-weight: 700;
  margin-bottom: 2em;
}
.mcrv-project-links .mcrv-project-columns {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
}
.mcrv-project-links ul {
  list-style: none;
  margin: 0;
}
.mcrv-project-links li {
  white-space: nowrap;
}
.mcrv-project-links li a {
  color: #565656;
  font-size: 13px;
  font-weight: 400;
  line-height: 14px;
  text-decoration: underline;
}
.mcrv-project-links .mcrv-project-heading {
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  margin-bottom: 12px;
  white-space: nowrap;
}
@media screen and (max-width: 64rem) {
  .mcrv-project-links {
    margin: 3rem 4rem;
  }
}

/* ---- keyword link columns (minecraftSkinLinks_*) ---- */
.mcrv-seo-links {
  text-wrap: nowrap;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(290px, 1fr));
  margin-left: auto;
  margin-right: auto;
  max-width: 75rem;
  padding: 4rem 0;
  row-gap: 16px;
}
.mcrv-seo-links ul {
  list-style: none;
  margin: 0;
}
.mcrv-seo-links .mcrv-seo-column {
  padding-left: 0.9375rem;
  padding-right: 0.9375rem;
}
.mcrv-seo-links .mcrv-seo-column li a {
  font-weight: 400;
  line-height: 14px;
}
.mcrv-seo-links .mcrv-seo-heading {
  color: #0a0a0a;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  margin-bottom: 12px;
}
@media screen and (max-width: 64rem) {
  .mcrv-seo-links {
    padding: 3rem 4rem;
  }
}
@media screen and (max-width: 40rem) {
  .mcrv-seo-links {
    padding: 2.5rem 3rem;
  }
}

/* ---- "Minecraft Masters Wanted!" bar (parents_giftBanner*) ---- */
.mcrv-gift-banner {
  background-color: #353e5c;
  bottom: 0;
  color: #fefefe;
  font-size: 1.125rem;
  line-height: 2;
  padding: 10px 0;
  position: fixed;
  left: 0;
  text-align: center;
  width: 100vw;
  z-index: 100;
}
.mcrv-gift-banner .mcrv-gift-flex {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}
.mcrv-gift-banner .mcrv-gift-text {
  display: inline-block;
  font-weight: 700;
  margin: 0 30px;
}
.mcrv-gift-banner .button {
  display: inline-block;
  font-size: 0.9rem;
  line-height: 1;
  margin: 0;
  vertical-align: middle;
}
/* Keep the page end clear of the fixed bar (footer_stickyMargin). */
.mcrv-sticky-spacer {
  height: 56px;
}
@media screen and (max-width: 1024px) {
  .mcrv-gift-banner .mcrv-gift-text {
    font-size: 0.875rem;
  }
}
@media screen and (max-width: 545px) {
  .mcrv-gift-banner .mcrv-gift-flex {
    flex-direction: column;
  }
  .mcrv-gift-banner .mcrv-gift-text {
    margin: 0 0 10px;
  }
}
