:root {
  --guide-bg: #101517;
  --guide-surface: #171e21;
  --guide-surface-soft: rgba(20, 27, 30, .76);
  --guide-line: rgba(242, 232, 211, .15);
  --guide-line-strong: rgba(255, 191, 101, .38);
  --guide-text: #f3efe7;
  --guide-muted: #adb3af;
  --guide-gold: #ffbf65;
  --guide-red: #f07867;
  --guide-green: #65d6a3;
  --guide-blue: #79a9cc;
  --guide-mono: "Chakra Petch", sans-serif;
  --guide-sans: "Manrope", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.guides-page,
body.guide-article-page {
  min-width: 320px;
  margin: 0;
  color: var(--guide-text);
  font-family: var(--guide-sans);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 191, 101, .12), transparent 28%),
    linear-gradient(180deg, #12191c 0, var(--guide-bg) 720px);
}

.guides-header-shell {
  position: relative;
  z-index: 100;
  padding-bottom: 0;
  overflow: visible;
}

.guides-header-shell .command-bar {
  grid-template-columns: minmax(220px, .84fr) minmax(240px, 1.1fr) auto auto auto auto auto;
  overflow: visible;
}

.guides-header-shell .guides-menu-link.active {
  box-shadow: inset 0 -2px 0 var(--guide-gold), 0 0 18px rgba(255, 191, 101, .08);
}

.guide-progress {
  position: fixed;
  z-index: 120;
  top: 0;
  left: 0;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--guide-gold), var(--guide-red));
  box-shadow: 0 0 14px rgba(255, 191, 101, .45);
  transition: width 90ms linear;
}

.guide-hero {
  position: relative;
  min-height: min(760px, calc(100svh - 76px));
  display: flex;
  align-items: end;
  isolation: isolate;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(8, 12, 14, .96) 0%, rgba(8, 12, 14, .76) 42%, rgba(8, 12, 14, .22) 76%),
    linear-gradient(0deg, var(--guide-bg) 0%, transparent 44%),
    url("/guides/black-market-beginner/images/black-market-trader.webp") center 38% / cover no-repeat;
}

.guide-hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  background: linear-gradient(115deg, transparent 46%, rgba(255, 191, 101, .09) 74%, transparent 100%);
  mix-blend-mode: screen;
  transform: translateX(-28%);
  animation: guide-light 7s ease-in-out infinite alternate;
}

@keyframes guide-light {
  to { transform: translateX(20%); }
}

.guide-hero-inner {
  width: min(100% - 48px, 1260px);
  margin: 0 auto;
  padding: clamp(72px, 12vh, 142px) 0 clamp(58px, 9vh, 102px);
}

.guide-breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 24px;
  color: rgba(243, 239, 231, .64);
  font: 700 .7rem/1.3 var(--guide-mono);
  letter-spacing: .04em;
  text-transform: uppercase;
}

.guide-breadcrumbs a { color: inherit; text-decoration: none; }
.guide-breadcrumbs a:hover,
.guide-breadcrumbs a:focus-visible { color: var(--guide-gold); outline: 0; }

.guide-kicker {
  margin: 0 0 14px;
  color: var(--guide-gold);
  font: 700 .76rem/1 var(--guide-mono);
  letter-spacing: .17em;
  text-transform: uppercase;
}

.guide-hero h1 {
  max-width: 900px;
  margin: 0;
  font: 700 clamp(2.6rem, 6.7vw, 6.8rem)/.88 var(--guide-mono);
  letter-spacing: -.055em;
  text-wrap: balance;
}

.guide-hero-copy {
  max-width: 720px;
  margin: 24px 0 0;
  color: rgba(243, 239, 231, .8);
  font-size: clamp(.98rem, 1.35vw, 1.18rem);
  line-height: 1.7;
}

.guide-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.guide-primary-action,
.guide-secondary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 5px;
  font: 700 .82rem var(--guide-mono);
  text-decoration: none;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.guide-primary-action {
  border: 1px solid var(--guide-gold);
  background: var(--guide-gold);
  color: #111719;
}

.guide-secondary-action {
  border: 1px solid rgba(243, 239, 231, .32);
  background: rgba(11, 16, 18, .48);
  color: var(--guide-text);
  backdrop-filter: blur(8px);
}

.guide-primary-action:hover,
.guide-primary-action:focus-visible,
.guide-secondary-action:hover,
.guide-secondary-action:focus-visible {
  transform: translateY(-2px);
  outline: 0;
}

.guide-primary-action:hover,
.guide-primary-action:focus-visible { background: #ffd08c; }
.guide-secondary-action:hover,
.guide-secondary-action:focus-visible { border-color: var(--guide-gold); }

.guide-hero .guide-kicker,
.guide-hero h1,
.guide-hero-copy,
.guide-hero-actions,
.guide-hero .guide-breadcrumbs {
  opacity: 0;
  transform: translateY(18px);
  animation: guide-hero-in .58s cubic-bezier(.2, .75, .2, 1) forwards;
}

.guide-hero .guide-breadcrumbs { animation-delay: 40ms; }
.guide-hero .guide-kicker { animation-delay: 110ms; }
.guide-hero h1 { animation-delay: 180ms; }
.guide-hero-copy { animation-delay: 260ms; }
.guide-hero-actions { animation-delay: 340ms; }

@keyframes guide-hero-in {
  to { opacity: 1; transform: none; }
}

.guides-catalog {
  width: min(100% - 48px, 1260px);
  margin: 0 auto;
  padding: 74px 0 110px;
}

.guides-catalog-heading {
  display: grid;
  grid-template-columns: minmax(220px, .72fr) minmax(0, 1.28fr);
  gap: 50px;
  align-items: end;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--guide-line);
}

.guides-catalog-heading h2 {
  margin: 0;
  font: 700 clamp(1.8rem, 3.6vw, 3.4rem)/1 var(--guide-mono);
  letter-spacing: -.035em;
}

.guides-catalog-heading p {
  max-width: 650px;
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.7;
}

.guide-list { margin-top: 28px; }

.guide-list-item {
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(0, 1.22fr) auto;
  gap: 30px;
  align-items: center;
  padding: 22px 0;
  border-bottom: 1px solid var(--guide-line);
  color: var(--guide-text);
  text-decoration: none;
}

.guide-list-visual {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: var(--guide-surface);
}

.guide-list-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(.82) contrast(1.04);
  transition: transform 420ms cubic-bezier(.2, .75, .2, 1), filter 240ms ease;
}

.guide-list-copy small {
  color: var(--guide-gold);
  font: 700 .7rem var(--guide-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-list-copy h3 {
  max-width: 680px;
  margin: 9px 0 10px;
  font: 700 clamp(1.35rem, 2.45vw, 2.35rem)/1.05 var(--guide-mono);
  letter-spacing: -.025em;
}

.guide-list-copy p {
  max-width: 700px;
  margin: 0;
  color: var(--guide-muted);
  line-height: 1.65;
}

.guide-list-arrow {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border: 1px solid var(--guide-line-strong);
  border-radius: 50%;
  color: var(--guide-gold);
  transition: transform 180ms ease, background 180ms ease;
}

.guide-list-item:hover .guide-list-visual img,
.guide-list-item:focus-visible .guide-list-visual img {
  transform: scale(1.035);
  filter: saturate(1) contrast(1.04);
}

.guide-list-item:hover .guide-list-arrow,
.guide-list-item:focus-visible .guide-list-arrow {
  transform: translateX(5px);
  background: rgba(255, 191, 101, .12);
}

.guide-list-item:focus-visible { outline: 1px solid var(--guide-gold); outline-offset: 8px; }

.guide-layout {
  width: min(100% - 48px, 1260px);
  margin: 0 auto;
  padding: 72px 0 120px;
}

.guide-lead {
  display: grid;
  grid-template-columns: minmax(220px, .56fr) minmax(0, 1.44fr);
  gap: 56px;
  align-items: start;
  padding-bottom: 58px;
  border-bottom: 1px solid var(--guide-line);
}

.guide-lead-label {
  position: sticky;
  top: 28px;
  color: var(--guide-gold);
  font: 700 .76rem/1.45 var(--guide-mono);
  letter-spacing: .12em;
  text-transform: uppercase;
}

.guide-lead-copy p {
  margin: 0;
  color: var(--guide-text);
  font-size: clamp(1.08rem, 1.8vw, 1.42rem);
  line-height: 1.68;
}

.guide-lead-copy p + p { margin-top: 18px; }

.guide-highlight {
  margin: 28px 0 0;
  padding: 22px 0 22px 24px;
  border-left: 2px solid var(--guide-gold);
  color: var(--guide-text);
  font: 700 clamp(1.12rem, 2vw, 1.52rem)/1.5 var(--guide-mono);
}

.guide-toc {
  display: grid;
  grid-template-columns: minmax(220px, .56fr) minmax(0, 1.44fr);
  gap: 56px;
  padding: 36px 0;
  border-bottom: 1px solid var(--guide-line);
}

.guide-toc h2 {
  margin: 0;
  font: 700 1rem var(--guide-mono);
}

.guide-toc ol {
  columns: 2;
  column-gap: 36px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-toc li { break-inside: avoid; margin: 0 0 10px; }
.guide-toc a { color: var(--guide-muted); font-size: .84rem; text-decoration: none; }
.guide-toc a:hover,
.guide-toc a:focus-visible { color: var(--guide-gold); outline: 0; }

.guide-section {
  display: grid;
  grid-template-columns: minmax(220px, .56fr) minmax(0, 1.44fr);
  gap: 56px;
  padding: 62px 0;
  border-bottom: 1px solid var(--guide-line);
  scroll-margin-top: 24px;
}

.guide-section-heading h2 {
  position: sticky;
  top: 28px;
  margin: 0;
  font: 700 clamp(1.55rem, 3vw, 2.55rem)/1.05 var(--guide-mono);
  letter-spacing: -.03em;
}

.guide-section-copy { min-width: 0; }

.guide-section-copy > p {
  max-width: 820px;
  margin: 0;
  color: var(--guide-muted);
  font-size: .94rem;
  line-height: 1.8;
}

.guide-section-copy > p + p { margin-top: 17px; }
.guide-section-copy strong { color: var(--guide-text); }

.guide-section-copy ul,
.guide-section-copy ol {
  display: grid;
  gap: 11px;
  max-width: 820px;
  margin: 22px 0 0;
  padding-left: 22px;
  color: var(--guide-muted);
  line-height: 1.65;
}

.guide-section-copy li::marker { color: var(--guide-gold); font-weight: 700; }

.guide-settings {
  display: grid;
  gap: 0;
  margin: 28px 0;
  border-top: 1px solid var(--guide-line);
}

.guide-setting {
  display: grid;
  grid-template-columns: minmax(190px, .7fr) minmax(0, 1.3fr);
  gap: 24px;
  padding: 14px 0;
  border-bottom: 1px solid var(--guide-line);
}

.guide-setting dt {
  color: var(--guide-gold);
  font: 700 .77rem var(--guide-mono);
}

.guide-setting dd {
  margin: 0;
  color: var(--guide-text);
  font-size: .86rem;
}

.guide-rule {
  margin: 26px 0;
  padding: 20px 22px;
  border-left: 2px solid var(--guide-red);
  background: linear-gradient(90deg, rgba(240, 120, 103, .1), transparent);
  color: var(--guide-text);
  line-height: 1.7;
}

.guide-example {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.guide-example div {
  padding-top: 14px;
  border-top: 2px solid var(--guide-line-strong);
}

.guide-example strong {
  display: block;
  color: var(--guide-gold);
  font: 700 1.42rem var(--guide-mono);
}

.guide-example span {
  display: block;
  margin-top: 5px;
  color: var(--guide-muted);
  font-size: .75rem;
  line-height: 1.55;
}

.guide-figure {
  margin: 58px 0 10px;
}

.guide-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
  filter: saturate(.88) contrast(1.03);
}

.guide-figure figcaption {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--guide-line);
  color: var(--guide-muted);
  font-size: .72rem;
  line-height: 1.5;
}

.guide-figure a { color: var(--guide-gold); text-decoration: none; }

.guide-final {
  position: relative;
  overflow: hidden;
  margin-top: 72px;
  padding: clamp(42px, 7vw, 78px);
  border: 1px solid var(--guide-line-strong);
  border-radius: 8px;
  background:
    linear-gradient(100deg, rgba(12, 18, 20, .98), rgba(12, 18, 20, .78)),
    url("/guides/black-market-beginner/images/caerleon-map.webp") center / cover;
}

.guide-final h2 {
  max-width: 760px;
  margin: 0;
  font: 700 clamp(2rem, 4.6vw, 4.4rem)/.95 var(--guide-mono);
  letter-spacing: -.04em;
}

.guide-final p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--guide-muted);
  line-height: 1.7;
}

.guide-final .guide-primary-action { margin-top: 28px; }

.guide-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .6s ease, transform .6s cubic-bezier(.2, .75, .2, 1);
}

.guide-reveal.visible { opacity: 1; transform: none; }

.guide-footer {
  width: min(100% - 48px, 1260px);
  margin: 0 auto;
  padding: 24px 0 42px;
  border-top: 1px solid var(--guide-line);
  color: var(--guide-muted);
  font-size: .72rem;
}

.guide-footer a { color: var(--guide-text); text-decoration: none; }

@media (max-width: 1400px) {
  .guides-header-shell .command-bar {
    grid-template-columns: minmax(230px, 1fr) auto auto auto auto auto;
  }
  .guides-header-shell .search-box {
    grid-column: 1 / -1;
    grid-row: 2;
  }
}

@media (max-width: 900px) {
  .guides-catalog-heading,
  .guide-lead,
  .guide-toc,
  .guide-section {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .guide-lead-label,
  .guide-section-heading h2 { position: static; }

  .guide-list-item {
    grid-template-columns: minmax(190px, .72fr) minmax(0, 1.28fr);
  }

  .guide-list-arrow { display: none; }
}

@media (max-width: 760px) {
  .guides-header-shell .command-bar {
    grid-template-columns: minmax(0, 1fr) auto auto auto auto;
  }

  .guides-header-shell .brand-mark span,
  .guides-header-shell .market-menu-link span { display: none; }
  .guides-header-shell .server-badge { display: none; }
  .guides-header-shell .market-menu-link { min-width: 42px; padding: 0 9px; }
  .guides-header-shell .search-box { grid-column: 1 / -1; grid-row: 2; }

  .guide-hero {
    min-height: calc(100svh - 126px);
    align-items: end;
    background:
      linear-gradient(0deg, rgba(8, 12, 14, .98) 0%, rgba(8, 12, 14, .58) 66%, rgba(8, 12, 14, .18)),
      url("/guides/black-market-beginner/images/black-market-trader.webp") 61% center / cover no-repeat;
  }

  .guide-hero-inner,
  .guides-catalog,
  .guide-layout,
  .guide-footer { width: min(100% - 28px, 1260px); }

  .guide-hero-inner { padding-bottom: 42px; }
  .guide-hero h1 { font-size: clamp(2.45rem, 13vw, 4.3rem); }
  .guide-hero-copy { font-size: .92rem; line-height: 1.62; }
  .guide-hero-actions { display: grid; }
  .guide-primary-action,
  .guide-secondary-action { width: 100%; }

  .guides-catalog { padding: 52px 0 78px; }
  .guide-list-item { grid-template-columns: 1fr; gap: 18px; }
  .guide-list-copy h3 { font-size: 1.55rem; }

  .guide-layout { padding: 50px 0 86px; }
  .guide-lead { padding-bottom: 42px; }
  .guide-toc ol { columns: 1; }
  .guide-section { padding: 46px 0; }
  .guide-section-copy > p { font-size: .9rem; }
  .guide-setting { grid-template-columns: 1fr; gap: 5px; }
  .guide-example { grid-template-columns: 1fr; gap: 14px; }
  .guide-figure { margin-top: 42px; }
  .guide-figure figcaption { display: grid; gap: 5px; }
  .guide-final { padding: 34px 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .guide-hero::after { animation: none; }
  .guide-hero .guide-kicker,
  .guide-hero h1,
  .guide-hero-copy,
  .guide-hero-actions,
  .guide-hero .guide-breadcrumbs,
  .guide-reveal { opacity: 1; transform: none; animation: none; transition: none; }
  .guide-list-visual img,
  .guide-list-arrow { transition: none; }
}
