/* The online multiplayer guide (templates/online_multiplayer.html), under the launch hero from
   online-launch.css. Follows the site's light and dark theme (data-theme on <html>); dark is the
   deep sea, light is the sand. */

.olg, .olf {
  --g-bg: #0c1f33;
  --g-ink: #e6edf3;
  --g-soft: rgba(230, 237, 243, .72);
  --g-head: #ffd233;
  --g-link: #6fd8e6;
  --g-line: rgba(230, 237, 243, .14);
  --g-tint: rgba(57, 198, 217, .1);
  --g-key: #17344f;
  --g-key-edge: #2c5070;
  --g-step: #ffd233;
  color: var(--g-ink);
  background: var(--g-bg);
  font-family: "Inter", system-ui, sans-serif;
}
html[data-theme="light"] .olg, html[data-theme="light"] .olf {
  --g-bg: #fdf7ea;
  --g-ink: #0a2540;
  --g-soft: #3d566f;
  --g-head: #0a2540;
  --g-link: #0b6f8d;
  --g-line: rgba(10, 37, 64, .14);
  --g-tint: rgba(15, 127, 161, .08);
  --g-key: #fff;
  --g-key-edge: rgba(10, 37, 64, .28);
}

.olg-wrap {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: clamp(32px, 5vw, 72px);
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(36px, 5vw, 72px) clamp(16px, 5vw, 48px) clamp(48px, 6vw, 96px);
}

/* ---- the features: the screenshots, two by two, the widest across the page -------------------- */

.olf { border-bottom: 1px solid var(--g-line); }
.olf-inner { max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 88px) clamp(16px, 5vw, 48px); }
.olf .olf-title {
  margin: 0 0 clamp(24px, 4vw, 44px);
  font-family: "BBR Title", "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(2rem, 4.4vw, 3.2rem);
  line-height: 1;
  color: var(--g-head);
}
.olf-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(32px, 4vw, 52px) clamp(20px, 3vw, 40px);
  margin: 0;
  padding: 0;
  list-style: none;
}
.olf-item--wide { grid-column: 1 / -1; }
.olf-item img {
  display: block;
  width: 100%;
  height: auto;
  border: 4px solid #fff;
  border-radius: 14px;
  box-shadow: 0 10px 0 rgba(0, 0, 0, .22);
}
.olf-item h3 {
  margin: 20px 0 6px;
  font-family: "BBR Title", "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.2vw, 1.8rem);
  line-height: 1.05;
  color: var(--g-ink);
}
.olf-item p { max-width: 36rem; margin: 0; font-size: 1.02rem; line-height: 1.55; color: var(--g-soft); }

/* ---- the contents, beside the text and following it ------------------------------------------ */

.olg-toc { position: sticky; top: 96px; align-self: start; }
.olg-toc-head { margin: 0 0 10px; font-size: .85rem; font-weight: 700; color: var(--g-soft); }
.olg-toc ul { margin: 0; padding: 0; list-style: none; border-left: 2px solid var(--g-line); }
.olg-toc a {
  display: block;
  margin-left: -2px;
  padding: 7px 0 7px 14px;
  font-size: .95rem;
  color: var(--g-soft);
  text-decoration: none;
  border-left: 2px solid transparent;
}
.olg-toc a:hover { color: var(--g-ink); }
.olg-toc a[aria-current] { font-weight: 700; color: var(--g-ink); border-left-color: var(--g-head); }
.olg-toc a:focus-visible { outline: 3px solid var(--g-link); outline-offset: 2px; border-radius: 4px; }

/* ---- the text ---------------------------------------------------------------------------------- */

.olg-doc { max-width: 44rem; font-size: 1.05rem; line-height: 1.65; }
.olg-doc section { scroll-margin-top: 90px; }
.olg-doc section + section { margin-top: clamp(48px, 6vw, 72px); }
.olg-doc h2 {
  margin: 0 0 16px;
  font-family: "BBR Title", "Inter", system-ui, sans-serif;
  font-weight: 400;
  font-size: clamp(1.8rem, 3.2vw, 2.4rem);
  line-height: 1.05;
  color: var(--g-head);
}
.olg-doc h3 { margin: 28px 0 8px; font-size: 1.12rem; font-weight: 700; }
.olg-doc p { margin: 0 0 14px; }
.olg-doc a { color: var(--g-link); font-weight: 600; text-underline-offset: 3px; }
.olg-doc b { font-weight: 700; }

/* numbered steps, in the game's yellow counters */
.olg-steps { margin: 18px 0 20px; padding: 0; list-style: none; counter-reset: step; }
.olg-steps > li {
  position: relative;
  min-height: 34px;
  margin: 0 0 14px;
  padding: 3px 0 0 50px;
  counter-increment: step;
}
.olg-steps > li::before {
  content: counter(step);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  font-family: "BBR Title", "Inter", system-ui, sans-serif;
  font-size: 1.15rem;
  color: #0a2540;
  background: var(--g-step);
  border: 2px solid #0a2540;
  border-radius: 50%;
  box-shadow: 0 2px 0 #0a2540;
}
.olg-steps .olg-list { margin-top: 8px; }

.olg-list { margin: 10px 0 16px; padding-left: 1.2em; }
.olg-list li { margin: 0 0 8px; padding-left: 4px; }
.olg-list li::marker { color: var(--g-head); }

.olg-note {
  padding: 14px 18px;
  background: var(--g-tint);
  border-left: 4px solid var(--g-link);
  border-radius: 0 10px 10px 0;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 1px 7px;
  font: 700 .85em/1.5 "Inter", system-ui, sans-serif;
  text-align: center;
  color: var(--g-ink);
  background: var(--g-key);
  border: 1px solid var(--g-key-edge);
  border-bottom-width: 3px;
  border-radius: 6px;
}

/* tables: the comparison and the controls; they scroll sideways on a narrow phone */
.olg-scroll { margin: 18px 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.olg-table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: .95rem; line-height: 1.45; }
.olg-table th, .olg-table td { padding: 11px 12px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--g-line); }
.olg-table thead th { font-weight: 700; color: var(--g-head); border-bottom-width: 2px; }
.olg-table tbody th { font-weight: 700; white-space: nowrap; }
.olg-table td { color: var(--g-soft); }

/* problems and fixes */
.olg-faq details { border-bottom: 1px solid var(--g-line); }
.olg-faq details:first-child { border-top: 1px solid var(--g-line); }
.olg-faq summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  padding: 15px 2px;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.olg-faq summary::-webkit-details-marker { display: none; }
.olg-faq summary::after {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 3px solid var(--g-link);
  border-bottom: 3px solid var(--g-link);
  transform: rotate(45deg) translate(-3px, -3px);
  transition: transform .2s ease;
}
.olg-faq details[open] summary::after { transform: rotate(225deg) translate(-3px, -3px); }
.olg-faq summary:focus-visible { outline: 3px solid var(--g-link); outline-offset: 2px; border-radius: 4px; }
.olg-faq p { margin: 0 0 16px; color: var(--g-soft); }

/* community */
#community .ol-groups { margin: 16px 0 28px; }
.olg-fine { padding-top: 20px; font-size: .85rem; color: var(--g-soft); border-top: 1px solid var(--g-line); }

/* ---- phones: the contents become a row above the text ----------------------------------------- */

@media (max-width: 860px) {
  .olg-wrap { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .olg-toc { position: static; }
  .olg-toc ul { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .olg-toc a {
    margin: 0;
    padding: 6px 12px;
    font-size: .9rem;
    border: 1px solid var(--g-line);
    border-radius: 999px;
  }
  .olg-toc a[aria-current] { border-color: var(--g-head); }
  .olg-doc { font-size: 1rem; }
}
@media (max-width: 700px) {
  .olf-grid { grid-template-columns: minmax(0, 1fr); }
}

@media (prefers-reduced-motion: reduce) {
  .olg-faq summary::after { transition: none; }
}
