/*
  Sidereal Loons pages. Loaded after pure-min.css and cabanela_layout.css and
  only adds what those two lack: app cards, the promise badges, the download
  box, feature rows, the network table and the screenshot gallery. Colors are
  the site's own: #a6192e (MSUM red), #191818 (menu), #777 (body text).
*/

/* A little wider than the rest of the site, for the screenshots. */
#main.sl-main {
  max-width: 900px;
}

/* The page being shown, inside the menu's Sidereal Loons group. */
#menu .pure-menu li.sl-current a {
  background: #333;
  color: #fff;
}

/* ---- Page header ---------------------------------------------------- */

.sl-header {
  text-align: center;
}

.sl-header .sl-icon {
  width: 128px;
  height: 128px;
}

/* Logo beside the title; wraps to a centered stack when the row is too narrow (phones). */
.sl-header.sl-header-logo {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.5em 1.5em;
}

.sl-header .sl-logo {
  width: 140px;
  height: 140px;
}

.sl-header .sl-header-text {
  flex: 0 1 auto;
  text-align: left;
}

@media (max-width: 36em) {
  .sl-header .sl-header-text {
    text-align: center;
  }
}

.sl-header h1 {
  margin-bottom: 0.1em;
}

.sl-header h3 {
  margin-top: 0.2em;
  font-weight: normal;
  color: #555;
}

.sl-platforms {
  text-align: center;
  font-size: 0.9em;
}

/* ---- Promise badges --------------------------------------------------- */

ul.sl-promise {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5em;
  list-style: none;
  padding: 0;
  margin: 1.2em 0;
}

ul.sl-promise li {
  border: 1px solid #a6192e;
  border-radius: 6px;
  color: #a6192e;
  padding: 0.25em 0.75em;
  font-size: 0.9em;
}

/* ---- Buttons ----------------------------------------------------------- */

a.sl-button,
a.sl-button:link,
a.sl-button:visited {
  display: inline-block;
  background: #a6192e;
  color: #fff;
  border-radius: 8px;
  padding: 0.5em 1.1em;
  text-decoration: none;
  font-weight: bold;
}

a.sl-button:hover,
a.sl-button:focus {
  background: #7d1322;
}

a.sl-button-secondary,
a.sl-button-secondary:link,
a.sl-button-secondary:visited {
  display: inline-block;
  border: 1px solid #a6192e;
  color: #a6192e;
  border-radius: 8px;
  padding: 0.45em 1em;
  text-decoration: none;
}

a.sl-button-secondary:hover,
a.sl-button-secondary:focus {
  background: #f6e8ea;
}

.sl-soon {
  display: inline-block;
  border: 1px dashed #999;
  color: #777;
  border-radius: 8px;
  padding: 0.45em 1em;
}

/* ---- App cards (landing page) ----------------------------------------- */

.sl-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.2em;
  margin: 1.5em 0;
}

.sl-card {
  display: flex;
  flex-direction: column;
  border: 1px solid #ddd;
  border-top: 4px solid #a6192e;
  padding: 1em 1em 1.2em;
  text-align: center;
}

.sl-card .sl-icon {
  width: 96px;
  height: 96px;
  margin: 0 auto;
}

.sl-card h3 {
  margin: 0.4em 0 0.2em;
  color: #a6192e;
}

.sl-card h3 a:link,
.sl-card h3 a:visited {
  color: #a6192e;
  text-decoration: none;
}

.sl-card p {
  margin: 0.4em 0;
}

.sl-card .sl-card-platforms {
  font-size: 0.85em;
  color: #999;
}

.sl-card .sl-card-actions {
  margin-top: auto;
  padding-top: 0.8em;
}

/* ---- Download box -------------------------------------------------------- */

.sl-download {
  max-width: 600px;
  margin: 1.5em auto;
  padding: 1em 1.2em;
  border: 1px solid #ddd;
  border-left: 4px solid #a6192e;
  text-align: center;
}

.sl-download p {
  margin: 0.5em 0;
}

.sl-download .sl-meta {
  font-size: 0.85em;
}

.sl-download code {
  font-size: 0.8em;
  word-break: break-all;
}

/* ---- Notes (the Clear Sky Monitor "coming soon" box, and similar) ------- */

.sl-note {
  max-width: 640px;
  margin: 1.5em auto;
  padding: 0.8em 1.2em;
  background: #f7f3f3;
  border-left: 4px solid #a6192e;
}

/* ---- Screenshots --------------------------------------------------------- */

img.sl-shot {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 1em auto;
  /* follows the window's rounded corners, which box-shadow would not */
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.25));
}

.sl-caption {
  text-align: center;
  font-size: 0.85em;
  color: #888;
  margin-top: -0.3em;
}

/* ---- Feature rows ------------------------------------------------------- */

.sl-feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5em;
  align-items: center;
  margin: 2em 0;
}

.sl-feature.sl-text-only {
  grid-template-columns: 1fr;
}

.sl-feature.sl-flip > :first-child {
  order: 2;
}

.sl-feature h3 {
  text-align: left;
  color: #333;
  margin: 0 0 0.3em;
}

.sl-feature p,
.sl-feature ul {
  margin: 0.4em 0;
}

.sl-feature img.sl-shot {
  margin: 0 auto;
}

@media (max-width: 48em) {
  .sl-feature {
    grid-template-columns: 1fr;
  }

  .sl-feature.sl-flip > :first-child {
    order: 0;
  }
}

/* ---- "What it does in the background" table --------------------------- */

.sl-table-wrap {
  overflow-x: auto;
}

table.sl-net {
  width: 100%;
  font-size: 0.9em;
  color: #555;
}

table.sl-net th {
  text-align: left;
  vertical-align: bottom;
}

table.sl-net td {
  vertical-align: top;
}

.sl-tag {
  display: inline-block;
  border-radius: 4px;
  padding: 0 0.4em;
  font-size: 0.85em;
  white-space: nowrap;
}

.sl-tag-auto {
  background: #a6192e;
  color: #fff;
}

.sl-tag-ask {
  border: 1px solid #a6192e;
  color: #a6192e;
}

ul.sl-never li {
  margin: 0.3em 0;
}

/* ---- FAQ ----------------------------------------------------------------- */

details.sl-faq {
  border-bottom: 1px solid #e5e5e5;
  padding: 0.6em 0;
}

details.sl-faq summary {
  cursor: pointer;
  font-weight: bold;
  color: #333;
}

details.sl-faq > *:not(summary) {
  margin-left: 1.2em;
}

/* ---- Version history ---------------------------------------------------- */

dl.sl-versions dt {
  font-weight: bold;
  color: #333;
  margin-top: 0.6em;
}

dl.sl-versions dd {
  margin-left: 1.2em;
}

/* ---- Screenshot gallery --------------------------------------------------
   Without JavaScript every screenshot is shown, one after another. The
   script adds .sl-js to <html>, which turns the list into a slideshow with
   platform buttons and a full-size view. */

.sl-gallery-filter {
  display: none;
  text-align: center;
  margin-bottom: 0.8em;
}

.sl-js .sl-gallery-filter {
  display: block;
}

.sl-gallery-filter button {
  border: 1px solid #a6192e;
  background: #fff;
  color: #a6192e;
  border-radius: 6px;
  padding: 0.25em 0.9em;
  margin: 0 0.2em;
  cursor: pointer;
  font: inherit;
}

.sl-gallery-filter button[aria-pressed="true"] {
  background: #a6192e;
  color: #fff;
}

.sl-gallery-viewport {
  position: relative;
  text-align: center;
}

.sl-slide {
  margin: 0 0 2em;
}

.sl-js .sl-slide {
  display: none;
  margin: 0;
}

.sl-js .sl-slide.active {
  display: block;
}

.sl-slide figcaption {
  margin-top: 0.4em;
  font-size: 0.85em;
  color: #777;
}

.sl-zoom {
  display: inline-block;
  border: none;
  background: none;
  padding: 0;
  margin: 0;
  cursor: zoom-in;
}

.sl-zoom img {
  display: block;
  max-width: 100%;
  max-height: 520px;
  height: auto;
  width: auto;
  margin: 0 auto;
  filter: drop-shadow(0 3px 10px rgba(0, 0, 0, 0.25));
}

.sl-nav {
  display: none;
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 2.2em;
  height: 2.2em;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 1.2em;
  line-height: 1;
  cursor: pointer;
}

.sl-js .sl-nav {
  display: block;
}

.sl-nav:hover,
.sl-nav:focus {
  background: rgba(0, 0, 0, 0.6);
}

.sl-nav-prev {
  left: 0;
}

.sl-nav-next {
  right: 0;
}

.sl-gallery-status {
  display: none;
  text-align: center;
  color: #777;
  font-size: 0.9em;
  margin-top: 0.5em;
}

.sl-js .sl-gallery-status {
  display: block;
}

.sl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.85);
}

.sl-lightbox[hidden] {
  display: none;
}

.sl-lightbox img {
  max-width: 95vw;
  max-height: 95vh;
}

.sl-lightbox-close {
  position: absolute;
  top: 1em;
  right: 1em;
  width: 2.4em;
  height: 2.4em;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 1.5em;
  line-height: 1;
  cursor: pointer;
}
