/* EwrekaGames — strategy guide page (guide.php) and guides hub (guides.php). Colours come from the tokens in style.css (light + dark). */

/* ---------- article ---------- */
.sg { max-width: 640px; margin: 0 auto; }   /* about 68 characters per line at the 17 px body text */
.sg-crumbs { max-width: 640px; margin-left: auto; margin-right: auto; }
.sg-head { display: flex; align-items: center; gap: 16px; margin: 0 0 18px; }
.sg-icon { flex: none; width: 56px; height: 56px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); }
.sg h1 { margin: 0; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; font-weight: 800; letter-spacing: -.01em; }
.sg-lead { font-size: 18px; max-width: none; }
.sg-meta { margin: 0 0 8px; font-size: 14px; color: var(--ink-3); line-height: 1.6; }
.sg-meta a, .sg-sec a { color: var(--blue); }
.sg-meta a:hover { text-decoration: underline; }
.sg-sec { margin-top: 40px; scroll-margin-top: 80px; }
.sg-sec h2 { margin: 0 0 12px; font-size: 23px; line-height: 1.3; font-weight: 800; }
.sg-sec p { margin: 0 0 14px; font-size: 17px; line-height: 1.75; color: var(--ink-2); }
.sg-list { margin: 4px 0 16px; padding: 0; list-style: none; display: grid; gap: 12px; counter-reset: sgl; }
.sg-list li { position: relative; padding-left: 34px; font-size: 17px; line-height: 1.65; color: var(--ink-2); }
ul.sg-list li::before { content: ""; position: absolute; left: 9px; top: .62em; width: 9px; height: 9px; border-radius: 50%; background: var(--blue); }
ol.sg-list li { counter-increment: sgl; }
ol.sg-list li::before { content: counter(sgl); position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 7px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 13px; display: grid; place-items: center; line-height: 1; }
.sg-qa .qa-it { padding: 18px 0; border-top: 1px solid var(--line); }
.sg-qa .qa-it h3 { margin: 0 0 6px; font-size: 17px; line-height: 1.4; }
.sg-qa .qa-it p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--ink-2); }

/* call to action */
.sg-cta { margin-top: 44px; display: flex; gap: 18px; align-items: center; padding: 20px 22px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); box-shadow: var(--shadow-sm); }
.sg-cta > img { flex: none; width: 64px; height: 64px; border-radius: 14px; }
.sg-cta h2 { margin: 0 0 12px; font-size: 19px; }
.sg-cta-btns { display: flex; flex-wrap: wrap; gap: 10px; }
.sg-cta-btns .btn { white-space: normal; text-align: center; min-height: 44px; height: auto; padding-top: 9px; padding-bottom: 9px; }

/* more guides */
.sg-more { max-width: 900px; margin: 64px auto 0; }
.sg-more h2, .sg-group h2 { margin: 0 0 14px; font-size: 22px; font-weight: 800; }
.sg-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 10px; }
.sg-mini { display: flex; gap: 12px; align-items: center; min-height: 64px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .15s, transform .15s; }
.sg-mini:hover { border-color: var(--line-2); transform: translateY(-1px); }
.sg-mini img { flex: none; width: 40px; height: 40px; border-radius: 10px; }
.sg-mini span { display: grid; gap: 2px; min-width: 0; }
.sg-mini b { font-size: 15px; color: var(--ink); }
.sg-mini small { font-size: 13px; line-height: 1.4; color: var(--ink-3); }
.sg-all { margin: 16px 0 0; }
.sg-all a { color: var(--blue); font-weight: 600; }
.sg-all a:hover { text-decoration: underline; }

/* ---------- hub ---------- */
.sg-hub { max-width: 980px; }
.sg-hub-head { max-width: 72ch; margin-bottom: 34px; }
.sg-hub-head h1 { margin: 0 0 12px; font-size: clamp(26px, 4vw, 34px); line-height: 1.2; font-weight: 800; }
.sg-group { margin-top: 32px; }
.sg-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.sg-hcard { display: flex; gap: 14px; align-items: flex-start; height: 100%; padding: 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .15s, box-shadow .15s; }
.sg-hcard:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.sg-hcard img { flex: none; width: 48px; height: 48px; border-radius: 12px; }
.sg-hcard > span { display: grid; gap: 4px; min-width: 0; }
.sg-hcard small { font-size: 13px; font-weight: 600; color: var(--ink-3); }
.sg-hcard b { font-size: 16px; line-height: 1.35; color: var(--ink); }
.sg-hcard .sg-x { font-size: 14px; line-height: 1.55; color: var(--ink-2); }
/* The hub's ad unit sits under large card tap targets: keep it well clear of them (accidental clicks). */
html.ads-on .sg-hub > .bo-ad, .sg-hub > .bo-ad.bo-ad-on { margin-top: 64px; }

@media (max-width: 760px) {
  .sg-cards { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .sg-head { gap: 12px; }
  .sg-icon { width: 44px; height: 44px; }
  .sg-lead { font-size: 17px; }
  .sg-sec { margin-top: 32px; }
  .sg-sec h2 { font-size: 20px; }
  .sg-sec p, .sg-list li { font-size: 16px; }
  .sg-cta { flex-direction: column; align-items: flex-start; padding: 18px; }
  .sg-cta > img { width: 48px; height: 48px; }
  .sg-cta-btns, .sg-cta-btns .btn { width: 100%; }
  .sg-grid { grid-template-columns: 1fr; }
}
