/* Guides (server-rendered, pages/guides.rs): an index of cards (/guides) and one guide (/guides/<id>): a reading column with the steps, and a
   side column with the picture, the facts at a glance and the video. Colours from app.css only. */
.gd { max-width: 1120px; }
.gd a { color: var(--field); }
.gd a:hover { color: var(--gold); }
.gd-crumb { margin: 0 0 10px; font-size: 13.5px; }
.gd-kicker { margin: 0 0 6px; font: 600 12px var(--ui); letter-spacing: .12em; text-transform: uppercase; color: var(--gold); }
.gd-head h1 { margin: 0 0 8px; font-size: clamp(24px, 3.6vw, 34px); line-height: 1.15; letter-spacing: -0.02em; max-width: 28ch; }
.gd-lede { margin: 0 0 6px; font-size: 16px; line-height: 1.6; max-width: 70ch; }
.gd-meta { margin: 0; color: var(--muted); font-size: 13px; }

.gd-body { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; margin-top: 22px; align-items: start; }
.gd-main h2, .gd-side h2 { margin: 0 0 10px; font-size: 19px; letter-spacing: -0.01em; }
.gd-main section { margin-bottom: 26px; }
.gd-need { margin: 0; padding: 0; list-style: none; display: grid; gap: 6px; }
.gd-need li { position: relative; padding: 8px 12px 8px 34px; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; font-size: 15px; }
.gd-need li::before { content: "✓"; position: absolute; left: 12px; top: 8px; color: var(--str); font-weight: 700; }

.gd-steps { list-style: none; margin: 0; padding: 0; counter-reset: s; display: grid; gap: 10px; }
#need, .gd-steps li { scroll-margin-top: 16px; }
.gd-steps li:target { border-color: var(--gold); }
.gd-steps li { position: relative; padding: 14px 16px 12px 62px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.gd-steps li::before {
  counter-increment: s; content: counter(s); position: absolute; left: 16px; top: 14px; width: 30px; height: 30px;
  display: grid; place-items: center; border-radius: 50%; background: var(--gold); color: #1a1400; font: 700 15px var(--ui);
}
.gd-steps h3 { margin: 3px 0 4px; font-size: 16px; }
.gd-steps p { margin: 0; font-size: 15px; line-height: 1.6; }

.gd-good { padding: 14px 16px; border-radius: 10px; background: var(--raise); border-left: 3px solid var(--num); }
.gd-good h2 { font-size: 16px; color: var(--num); margin-bottom: 6px; }
.gd-good p { margin: 0; font-size: 15px; line-height: 1.6; }
.gd-credit { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.gd-side { position: sticky; top: 12px; display: grid; gap: 12px; }
.gd-pic { margin: 0; border-radius: 10px; overflow: hidden; background: #0b0f18; border: 1px solid var(--line); }
.gd-pic img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.gd-pic figcaption { padding: 6px 10px; font-size: 12px; color: var(--muted); }
.gd-box { padding: 14px 16px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; }
.gd-box h2 { font-size: 16px; }
.gd-box dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; font-size: 14px; }
.gd-box dt { color: var(--muted); }
.gd-box dd { margin: 0; }
.gd-links { margin: 12px 0 0; font-size: 13.5px; }
.gd-video { display: grid; grid-template-columns: 120px 1fr; gap: 10px; align-items: center; padding: 8px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text) !important; }
.gd-video img { width: 120px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 6px; }
.gd-video span { font-size: 13px; color: var(--muted); }
.gd-video b { display: block; color: var(--text); font-size: 14px; }
.gd-video:hover { border-color: var(--gold); }

/* the index */
.gd-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; margin-top: 18px; }
.gd-card { display: grid; grid-template-columns: 88px 1fr; gap: 14px; align-items: center; padding: 10px; text-decoration: none;
  background: var(--panel); border: 1px solid var(--line); border-radius: 10px; color: var(--text) !important; }
.gd-card:hover { border-color: var(--gold); }
.gd-card img { width: 88px; height: 88px; object-fit: cover; border-radius: 8px; background: #0b0f18; }
.gd-card small { display: block; color: var(--gold); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; }
.gd-card b { display: block; margin: 2px 0 3px; font-size: 16px; }
.gd-card em { font-style: normal; color: var(--muted); font-size: 13.5px; line-height: 1.45; }
.gd-h2 { margin: 32px 0 10px; font-size: 19px; }
.gd-more { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 15px; }
.gd-more span { color: var(--muted); font-size: 13.5px; margin-left: 6px; }

@media (max-width: 860px) {
  .gd-body { grid-template-columns: 1fr; }
  .gd-side { position: static; grid-row: 1; grid-template-columns: 1fr 1fr; }
  .gd-pic { grid-row: span 2; }
}
@media (max-width: 520px) {
  .gd-side { grid-template-columns: 1fr; }
  .gd-steps li { padding-left: 54px; }
}
/* item guides: a wide screenshot on the side, and the screenshots under the steps they show (click for full size) */
.gd-pic-wide img { aspect-ratio: auto; height: auto; }
.gd-pic a, .gd-shot a { display: block; }
/* a small crop (a tooltip, the loot line) keeps its own size; a full screenshot fills up to 640px */
.gd-shot { margin: 10px 0 2px; border-radius: 8px; overflow: hidden; background: #0b0f18; border: 1px solid var(--line); width: fit-content; max-width: min(640px, 100%); }
.gd-shot img { display: block; max-width: 100%; height: auto; }
.gd-shot figcaption { padding: 5px 10px; font-size: 12.5px; color: var(--muted); width: 0; min-width: 100%; box-sizing: border-box; } /* wraps to the picture's width */
.gd-good p + p { margin-top: 8px; }
/* a card with a game icon instead of a picture (the hunter pet guides) */
.gd-card-ic img { width: 60px; height: 60px; justify-self: center; border: 1px solid var(--line); }
