/* /streamers: «لمّة على البث», the guide for streamers and content creators.
   Loaded on that page only, after site.css; every class starts with sg- so
   the site's own .hero, .card, .steps and .section stay untouched. Colours
   are the site's tokens. */

.sg {
  --sg-orange-soft: #fde4cc;
  --sg-blue-soft: #dbe8fb;
  --sg-green-soft: #dcf1e0;
  --sg-red-soft: #fbe0de;
  --sg-line: #ead9c4;
  --sg-shadow: 4px 4px 0 var(--ink);
  font-size: 17px;
  line-height: 1.9;
}
.sg-wrap {
  width: 100%;
  max-width: 860px;
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ── the opening: the arena's split and the guide's name ── */
.sg-hero {
  background: linear-gradient(105deg, var(--orange) 0 49.6%, var(--ink) 49.6% 50.4%, var(--blue) 50.4% 100%);
  border-bottom: var(--edge);
}
.sg-hero .sg-wrap {
  padding-block: 40px 34px;
  display: grid;
  gap: 22px;
  justify-items: center;
  text-align: center;
}
.sg-hero h1 {
  font-size: clamp(44px, 9vw, 76px);
  line-height: 1.2;
  font-weight: 700;
  color: var(--cream);
  text-shadow: 3px 3px 0 var(--ink), -1.5px -1.5px 0 var(--ink), 1.5px -1.5px 0 var(--ink), -1.5px 1.5px 0 var(--ink), 4px 5px 0 var(--ink);
  text-wrap: balance;
}
.sg-lede {
  max-width: 34em;
  background: var(--cream);
  border: var(--edge);
  border-radius: 16px;
  box-shadow: var(--sg-shadow);
  padding: 12px 18px;
  line-height: 1.8;
}
.sg-banner {
  display: inline-block;
  background: var(--yellow);
  border: var(--edge);
  border-radius: 12px;
  box-shadow: var(--sg-shadow);
  padding: 2px 16px;
  font-weight: 700;
  transform: rotate(-2deg);
}

/* ── chapters ── */
.sg-chapters {
  background: var(--paper);
  border-bottom: var(--edge);
}
.sg-chapters ol {
  list-style: none;
  margin: 0 auto;
  max-width: 860px;
  padding: 12px var(--gutter);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.sg-chapters a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  text-decoration: none;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 2px 13px;
  font-size: 14px;
  font-weight: 700;
}
.sg-chapters a span {
  color: var(--muted);
  font-weight: 400;
}
.sg-chapters a:hover {
  background: var(--yellow);
}

/* ── a chapter ── */
.sg-part {
  padding-block: 44px 8px;
  scroll-margin-top: 90px;
}
.sg-part + .sg-part {
  border-top: 2px dashed var(--sg-line);
}
.sg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.sg-eyebrow b {
  color: var(--cream);
  background: var(--ink);
  border-radius: 8px;
  padding: 0 8px;
}
.sg h2 {
  margin: 6px 0 14px;
  font-size: clamp(28px, 5vw, 38px);
  line-height: 1.35;
  text-wrap: balance;
}
.sg h3 {
  margin: 26px 0 8px;
  font-size: 21px;
  line-height: 1.5;
}
.sg p {
  margin: 0 0 14px;
  max-width: 65ch;
}
.sg-list {
  margin: 0 0 14px;
  padding-inline-start: 22px;
  max-width: 65ch;
}
.sg-list li {
  margin-bottom: 6px;
}
/* Links in the text; the chapter chips keep the ink. */
.sg-part a:not([class]) {
  color: var(--blue);
  text-underline-offset: 3px;
}

/* A button or a screen's name as the game shows it. */
.sg-ui {
  display: inline-block;
  font-weight: 700;
  font-size: 0.9em;
  line-height: 1.5;
  background: var(--cream);
  border: 2px solid var(--ink);
  border-radius: 9px;
  box-shadow: 2px 2px 0 var(--ink);
  padding: 0 8px;
  margin: 0 1px;
  white-space: nowrap;
}
.sg-ui.y {
  background: var(--yellow);
}

/* ── screenshots, framed as the stream's window ── */
.sg-shot {
  margin: 18px 0 22px;
}
.sg-frame {
  position: relative;
  border: var(--edge);
  border-radius: 16px;
  box-shadow: 6px 6px 0 var(--ink);
  overflow: hidden;
  background: var(--ink);
  aspect-ratio: 1200 / 554;
  max-width: 100%;
}
.sg-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.sg-live {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 9px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.9;
}
.sg-live::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fff;
}
.sg-shot figcaption {
  margin-top: 12px;
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--muted);
}
.sg-hero .sg-shot {
  width: 100%;
  max-width: 760px;
  margin: 6px 0 0;
}
.sg-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.sg-pair .sg-shot {
  margin: 8px 0 14px;
}

/* ── steps from the buzzer to the first question ── */
.sg-steps {
  list-style: none;
  margin: 8px 0 18px;
  padding: 0;
  display: grid;
  gap: 12px;
  counter-reset: sg-step;
}
.sg-steps > li {
  counter-increment: sg-step;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}
.sg-steps > li::before {
  content: counter(sg-step);
  font-weight: 700;
  font-size: 20px;
  line-height: 36px;
  text-align: center;
  width: 40px;
  height: 40px;
  background: var(--yellow);
  border: var(--edge);
  border-radius: 50%;
  box-shadow: 2px 2px 0 var(--ink);
}
.sg-steps > li > div {
  min-width: 0;
  padding-top: 4px;
}
.sg-steps b.sg-t {
  display: block;
  font-size: 18px;
}

/* ── cards: the modes, the formats ── */
.sg-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin: 12px 0 20px;
}
.sg-card {
  background: var(--cream);
  border: var(--edge);
  border-radius: 18px;
  box-shadow: var(--sg-shadow);
  padding: 16px 18px;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sg-card h3 {
  margin: 0;
  font-size: 20px;
}
.sg-card p {
  margin: 0;
  font-size: 15.5px;
  line-height: 1.75;
}
.sg-tag {
  align-self: flex-start;
  font-size: 12.5px;
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 8px;
  background: var(--paper);
}
.sg-card.orange {
  background: var(--sg-orange-soft);
}
.sg-card.blue {
  background: var(--sg-blue-soft);
}
.sg-card .sg-fit {
  margin-top: auto;
  padding-top: 8px;
  border-top: 2px dashed var(--sg-line);
  font-size: 14.5px;
}

/* ── tables: the powers, the mini games ── */
.sg-tablewrap {
  overflow-x: auto;
  margin: 10px 0 20px;
  border: var(--edge);
  border-radius: 16px;
  box-shadow: var(--sg-shadow);
  background: var(--cream);
}
.sg table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
  line-height: 1.7;
}
.sg th,
.sg td {
  text-align: start;
  vertical-align: top;
  padding: 10px 14px;
  border-top: 2px solid var(--sg-line);
}
.sg thead th {
  border-top: 0;
  background: var(--ink);
  color: var(--cream);
  font-size: 14px;
  white-space: nowrap;
}
.sg tbody th {
  font-size: 16px;
  white-space: nowrap;
}
.sg-ok,
.sg-no,
.sg-maybe {
  display: inline-block;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 8px;
}
.sg-ok {
  background: var(--sg-green-soft);
}
.sg-no {
  background: var(--sg-red-soft);
}
.sg-maybe {
  background: var(--yellow);
}

/* ── a tip for the stream ── */
.sg-tip {
  margin: 16px 0 22px;
  background: var(--cream);
  border: var(--edge);
  border-radius: 16px;
  box-shadow: var(--sg-shadow);
  padding: 14px 18px;
  display: grid;
  gap: 4px;
}
.sg-tip > b:first-child {
  justify-self: start;
  font-size: 13px;
  background: var(--red);
  color: #fff;
  border: 2px solid var(--ink);
  border-radius: 8px;
  padding: 0 9px;
  margin-bottom: 2px;
}
.sg-tip p {
  margin: 0;
  font-size: 15.5px;
}
.sg-tip.warn > b:first-child {
  background: var(--yellow);
  color: var(--ink);
}

/* ── the checklist ── */
.sg-check {
  list-style: none;
  margin: 10px 0 20px;
  padding: 0;
  display: grid;
  gap: 8px;
}
.sg-check label {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  background: var(--cream);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 10px 14px;
  cursor: pointer;
}
.sg-check input {
  width: 22px;
  height: 22px;
  margin: 4px 0 0;
  accent-color: var(--green);
}
.sg-check input:checked + span {
  color: var(--muted);
  text-decoration: line-through;
  text-decoration-thickness: 2px;
}
.sg-end {
  padding-block: 8px 48px;
}

@media (max-width: 640px) {
  .sg-pair,
  .sg-cards {
    grid-template-columns: minmax(0, 1fr);
  }
}
