/* Sunder Skin's own blocks on the themed page (tools/sunder-site.mjs): the Lite block with its
   screenshot and steps, a narrow screenshot in the tabs, and the picture on the install tile.
   Everything else is dressed by the original's stylesheet and Codex's Warcraft layer. */
.sk-lite {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  margin-top: 18px;
}
@media (max-width: 760px) { .sk-lite { grid-template-columns: 1fr; } }
/* Lite and the screenshots are two pages of the theme's chapters (public/warcraft/four-pages.js): Lite's
   picture beside its steps on its own page, then the screenshots across the whole width of the next,
   taller than the 310 px the theme gave them when they shared a row with the catalog search. */
.wc-four-pages #lite .sk-lite { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 36px; align-items: center; text-align: left; }
.wc-four-pages #lite .sk-shot img { max-width: 480px; margin-inline: auto; }
.wc-four-pages .wc-explore-grid { grid-template-columns: minmax(0, 1fr); }
.wc-four-pages .wc-explore-grid .show-tabs { justify-content: center; }
.wc-four-pages .wc-explore-grid .show-panel .win { height: auto; max-height: 580px; }
.wc-four-pages .wc-explore-grid .show-panel :is(img, video) { height: auto; max-height: 560px; }
@media (max-width: 760px) {
  .wc-four-pages #lite .sk-lite { grid-template-columns: minmax(0, 1fr); }
}
.sk-shot { margin: 0; }
.sk-shot img, .sk-art {
  display: block;
  width: 100%;
  height: auto;
  border: 2px solid rgba(201, 162, 77, 0.45);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.55);
}
.sk-steps { margin: 0 0 18px; padding-left: 1.4em; display: grid; gap: 10px; line-height: 1.5; }
.sk-steps li::marker { color: #e0b44a; font-weight: 700; }
.win.sk-narrow { max-width: 656px; margin-inline: auto; }
.win.sk-narrow img { width: 100%; height: auto; }
.tile .art .sk-art { max-width: 420px; margin: 14px auto 0; }

/* the report form (#report): bug or request, which product, what happened, an optional contact */
.sk-report { display: grid; gap: 16px; max-width: 760px; margin-top: 18px; }
.sk-kind { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0; padding: 0; border: 0; }
.sk-kind legend { padding: 0; margin-bottom: 8px; font-weight: 700; }
.sk-kind label { display: inline-flex; gap: 8px; align-items: center; }
.sk-field { display: grid; gap: 6px; font-weight: 700; }
.sk-field small { font-weight: 400; opacity: 0.75; }
.sk-row { display: grid; grid-template-columns: 1fr 2fr; gap: 16px; }
@media (max-width: 640px) { .sk-row { grid-template-columns: 1fr; } }
.sk-report input, .sk-report select, .sk-report textarea {
  width: 100%; padding: 10px 12px; font: inherit; font-weight: 400; color: #f1e6da;
  background: rgba(8, 6, 5, 0.85); border: 1px solid rgba(201, 162, 77, 0.45); border-radius: 4px;
}
.sk-report input[type=radio] { width: auto; accent-color: #e0b44a; }
.sk-report textarea { resize: vertical; min-height: 120px; }
.sk-report :focus-visible { outline: 2px solid #e0b44a; outline-offset: 2px; }
.sk-trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.sk-send { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.sk-status { margin: 0; }
.sk-status[data-tone='ok'] { color: #7bdc6a; }
.sk-status[data-tone='bad'] { color: #ff8a7a; }

/* ---------- the download menu ----------
   It opened over the edge of its hanging panel, where the theme draws the panel's frame above
   everything, and was cut through. It now opens in the page's flow, under the Download button, which
   widens to it; its choices are the theme's own buttons, hung from the button's two ends on chains. */
.dl[open] { width: min(460px, calc(100vw - 48px)); }
.dl[open] > summary { display: flex !important; width: 100%; justify-content: center; }
.dl .dl-menu {
  position: relative !important; top: auto !important; bottom: auto !important; left: auto !important;
  width: 100% !important; margin-top: 30px; padding: 0 !important; display: grid; gap: 10px;
  background: none !important; border: 0 !important; box-shadow: none !important; animation: none !important;
}
.dl .dl-menu::before, .dl .dl-menu::after {
  content: ''; position: absolute; top: -34px; width: 25px; height: 36px; z-index: -1; pointer-events: none;
  background: url('/warcraft/chain-roc.png') center top / 25px 26px repeat-y;
  filter: drop-shadow(2px 2px 3px #0009);
}
.dl .dl-menu::before { left: 22px; }
.dl .dl-menu::after { right: 22px; }
@media (min-resolution: 1.5dppx) {
  .dl .dl-menu::before, .dl .dl-menu::after { background-image: url('/warcraft/chain-roc@2x.png'); }
}
.dl .dl-item.btn {
  display: flex !important; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px;
  width: 100%; height: auto !important; min-height: 66px; padding: 12px 22px !important;
  text-align: left; white-space: normal; text-decoration: none;
}
.dl .dl-item.btn b { font-size: 17px; font-weight: 400; color: inherit; }
.dl .dl-item.btn span { font-size: 13.5px; line-height: 1.4; color: #d9cfb8; text-shadow: none; }
.dl .dl-all.btn { display: flex !important; justify-content: center; width: 100%; min-height: 44px; padding: 8px 16px !important; font-size: 15px; text-decoration: none; }
