/* GTAZen / Leonida Dispatch guide cards. Scope all rules to this module. */
.ld-guide {
  --ld-ink: #fff4e6;
  --ld-muted: #d5cbdc;
  --ld-accent: #ffacb7;
  --ld-glow: #703658;
  color: var(--ld-ink);
  color-scheme: dark;
  isolation: isolate;
  position: relative;
  margin: clamp(1.15rem, 3.2vw, 2.15rem) 0;
  border: 1px solid #51485e;
  border-radius: .9rem;
  overflow: hidden;
  background: radial-gradient(ellipse at 92% 0%, var(--ld-glow), transparent 55%), #171324;
  box-shadow: 0 1rem 2.3rem #09060e38;
}
.ld-guide--lagoon { --ld-accent: #90f0e2; --ld-glow: #27575a; }
.ld-guide--amber { --ld-accent: #ffd69a; --ld-glow: #633e36; }
.ld-guide .ld-guide-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: .2rem 1rem;
  padding: .65rem clamp(.9rem, 3vw, 1.6rem);
  border-block-end: 1px solid #9c87a54f;
  background: #0f0d17bd;
}
.ld-guide .ld-guide-label p {
  color: var(--ld-accent);
  margin: 0;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .075em;
  text-transform: uppercase;
}
.ld-guide .ld-guide-label .ld-guide-channel { color: var(--ld-muted); }
.ld-guide-signal {
  display: inline-block;
  width: .47em;
  height: .47em;
  margin-inline-end: .6em;
  border-radius: 50%;
  vertical-align: .15em;
  background: var(--ld-accent);
  box-shadow: 0 0 .75em var(--ld-accent);
}
.ld-guide .ld-guide-body { padding: clamp(.9rem, 3vw, 1.6rem); }
.ld-guide .ld-guide-body > h2 {
  margin: 0 0 .4rem;
  color: var(--ld-ink);
  font-size: clamp(1.35rem, 1.12rem + 1.1vw, 2.15rem);
  font-weight: 800;
  line-height: 1.13;
}
.ld-guide .ld-guide-body > p {
  margin: .45rem 0 1rem;
  max-width: 65ch;
  color: var(--ld-muted);
  line-height: 1.5;
}
.ld-guide .ld-guide-route {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr));
  gap: .5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ld-guide .ld-guide-route li { min-width: 0; margin: 0; padding: 0; }
.ld-guide .ld-guide-route a {
  display: grid;
  min-height: 100%;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: start;
  gap: .55rem;
  box-sizing: border-box;
  padding: .55rem .65rem;
  border: 1px solid #6c607b;
  border-radius: .55rem;
  background: #20192dc9;
  color: var(--ld-ink);
  line-height: 1.25;
  text-decoration: none;
}
.ld-guide .ld-guide-route a:hover { border-color: var(--ld-accent); background: #332b42; }
.ld-guide .ld-guide-route a:hover strong { text-decoration: underline; }
.ld-guide a:focus-visible { outline: 2px solid var(--ld-accent); outline-offset: 2px; }
.ld-guide .ld-guide-route small { display: block; margin-block-start: .18rem; color: var(--ld-muted); font-size: .85rem; }
.ld-guide .ld-guide-number, .ld-guide .ld-guide-arrow { color: var(--ld-accent); }
.ld-guide .ld-guide-number { font: 700 .8rem/1.4 ui-monospace, SFMono-Regular, Consolas, monospace; }
.ld-guide .ld-guide-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: .3rem .75rem;
  margin-block-start: 1rem;
  padding-block-start: .6rem;
  border-block-start: 1px dashed #847693;
}
.ld-guide .ld-guide-marker { color: var(--ld-muted); font-size: .86rem; }
.ld-guide .ld-guide-footer a {
  display: inline-flex;
  align-items: center;
  gap: .35em;
  min-height: 2.75rem;
  color: var(--ld-accent);
  font-size: .94rem;
  font-weight: 760;
  text-underline-offset: .18em;
}
.ld-guide-jump[id] { scroll-margin-block-start: 6rem; }
@media (forced-colors: active) {
  .ld-guide .ld-guide-route a, .ld-guide .ld-guide-footer a { color: LinkText; }
  .ld-guide a:focus-visible { outline-color: Highlight; }
}
