html:has(body.guides-body),
body.guides-body {
  overflow-x: hidden;
}

body.guides-body {
  --guide-ink: #101522;
  --guide-text: #2f3848;
  --guide-muted: #657085;
  --guide-line: #d9dfeb;
  --guide-paper: #f6f4ee;
  --guide-card: #ffffff;
  --guide-gold: #b77b23;
  --guide-gold-soft: #fbefd9;
  --guide-blue: #1f5fbf;
  --guide-purple: #5148b7;
  margin: 0;
  color: var(--guide-text) !important;
  background: var(--guide-paper) !important;
  font-family: Inter, Manrope, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: 0 !important;
}

body.guides-body *,
body.guides-body *::before,
body.guides-body *::after {
  box-sizing: border-box;
  letter-spacing: 0 !important;
}

body.guides-body::before,
body.guides-body::after,
.guides-body .guides-hero::before,
.guides-body .guides-hero::after,
.guides-body .guides-hero > div::before,
.guides-body .guides-hero > div::after,
.guides-body .guide-wordmark::before,
.guides-body .guide-wordmark::after,
.guides-body .guide-card.library-card::after,
.guides-body .guide-hub-feature article::after,
.guides-body .guide-hub-feature article::before {
  display: none !important;
  content: none !important;
}

.guides-body a {
  color: inherit;
  text-decoration: none;
}

.guides-body .skip-link {
  background: var(--guide-ink) !important;
  color: #fff !important;
  border-radius: 8px !important;
}

body.guides-body .site-header.dashboard-header {
  position: sticky !important;
  top: 0 !important;
  z-index: 50;
  display: grid !important;
  grid-template-columns: minmax(230px, 360px) minmax(0, 1fr) auto;
  align-items: center;
  width: 100% !important;
  max-width: none !important;
  min-height: 74px;
  margin: 0 !important;
  padding: 12px clamp(16px, 3vw, 38px) !important;
  border: 0 !important;
  border-bottom: 1px solid var(--guide-line) !important;
  border-radius: 0 !important;
  background: rgba(255, 255, 255, .98) !important;
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06) !important;
  color: var(--guide-ink) !important;
  transform: none !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.guides-body .guide-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  color: var(--guide-ink) !important;
  font-weight: 900;
}

.guides-body .guide-wordmark img {
  width: 46px !important;
  height: 46px !important;
  max-height: 46px !important;
  object-fit: contain;
  border-radius: 10px;
  background: #101522;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .16);
  filter: none !important;
}

.guides-body .guide-wordmark > span {
  color: var(--guide-ink) !important;
  font-size: clamp(20px, 1.8vw, 28px);
  line-height: 1;
  white-space: nowrap;
}

.guides-body .guide-wordmark > span span {
  color: var(--guide-gold) !important;
  font-size: .55em;
}

.guides-body .site-header nav {
  justify-content: center;
  gap: clamp(12px, 1.7vw, 24px);
  color: var(--guide-muted) !important;
}

.guides-body .site-header nav a {
  padding: 8px 0;
  color: var(--guide-muted) !important;
  font-size: 14px;
  font-weight: 800;
}

.guides-body .site-header nav a:hover,
.guides-body .site-header nav a[aria-current="page"] {
  color: var(--guide-ink) !important;
}

.guides-body .site-header nav a::after {
  background: var(--guide-gold) !important;
}

.guides-body .ghost-button {
  min-height: 44px !important;
  padding: 0 18px !important;
  border: 1px solid var(--guide-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--guide-ink) !important;
  box-shadow: 0 10px 26px rgba(15, 23, 42, .06) !important;
  font-weight: 900;
}

.guides-layout {
  display: grid;
  gap: 28px;
  width: min(1210px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 76px;
}

.guides-body .guides-hero {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 410px);
  gap: 28px;
  align-items: stretch;
  min-height: 0 !important;
  margin: 0 !important;
  padding: clamp(28px, 4vw, 52px) !important;
  border: 1px solid var(--guide-line) !important;
  border-radius: 12px !important;
  background: var(--guide-card) !important;
  box-shadow: 0 30px 80px rgba(15, 23, 42, .08) !important;
  color: var(--guide-text) !important;
  overflow: hidden;
}

.guides-body .guides-hero > div {
  position: relative !important;
  z-index: 1;
}

.guides-body .guide-edition-banner {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 9px 13px;
  border: 1px solid #e7d2a8 !important;
  border-radius: 8px !important;
  background: var(--guide-gold-soft) !important;
  color: #68470f !important;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
}

.guides-body .eyebrow,
.guides-body .guides-hero .eyebrow {
  margin: 0 0 12px;
  color: var(--guide-gold) !important;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.guides-body .guides-hero h1 {
  max-width: 760px;
  margin: 0;
  color: var(--guide-ink) !important;
  font-family: Inter, Manrope, ui-sans-serif, system-ui, sans-serif !important;
  font-size: clamp(44px, 6vw, 74px) !important;
  line-height: .96 !important;
  text-shadow: none !important;
  text-wrap: balance;
}

.guides-body .guides-hero p:not(.eyebrow) {
  max-width: 760px;
  margin: 20px 0 0;
  color: #4b5567 !important;
  font-size: clamp(17px, 1.6vw, 20px) !important;
  line-height: 1.65 !important;
}

.guide-hub-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.guides-body .guide-hub-stats span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--guide-line) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--guide-text) !important;
  box-shadow: 0 10px 22px rgba(15, 23, 42, .04);
  font-size: 14px;
  font-weight: 750;
}

.guides-body .guide-hub-stats strong {
  color: var(--guide-ink) !important;
  font-size: 18px;
}

.guides-body .guide-search-panel {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 12px;
  padding: 26px;
  border: 1px solid #202839 !important;
  border-radius: 12px !important;
  background: #101522 !important;
  color: #fff !important;
  box-shadow: 0 22px 56px rgba(15, 23, 42, .16) !important;
}

.guides-body .guide-search-panel label {
  color: #fff !important;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.guides-body .guide-search-panel input {
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255, 255, 255, .16) !important;
  border-radius: 8px !important;
  background: #fff !important;
  color: var(--guide-ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  outline: 0 !important;
  padding: 0 16px !important;
}

.guides-body .guide-search-panel input:focus {
  border-color: var(--guide-gold) !important;
  box-shadow: 0 0 0 4px rgba(183, 123, 35, .22) !important;
}

.guides-body .guide-search-panel p {
  margin: 0;
  color: rgba(255, 255, 255, .72) !important;
  font-size: 14px;
}

.guide-quality-strip,
.guide-hub-feature,
.guide-library-heading,
.guide-filter-bar,
.guide-library {
  width: 100%;
}

.guides-body .guide-quality-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.guides-body .guide-quality-strip article,
.guides-body .guide-hub-feature article {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 22px;
  border: 1px solid var(--guide-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--guide-text) !important;
  box-shadow: 0 16px 40px rgba(15, 23, 42, .06) !important;
  transform: none !important;
  opacity: 1 !important;
}

.guides-body .guide-quality-strip span,
.guides-body .guide-hub-feature span,
.guides-body .guide-card.library-card > span {
  color: var(--guide-gold) !important;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.guides-body .guide-quality-strip strong,
.guides-body .guide-hub-feature h2 {
  margin: 0;
  color: var(--guide-ink) !important;
  font-size: 20px;
  line-height: 1.16;
}

.guides-body .guide-quality-strip p,
.guides-body .guide-hub-feature p {
  margin: 0;
  color: #566174 !important;
  font-size: 14px;
  line-height: 1.58;
}

.guides-body .text-link {
  width: fit-content;
  color: var(--guide-blue) !important;
  font-size: 13px;
  font-weight: 900;
}

.guides-body .guide-hub-feature {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.guides-body .guide-hub-feature article {
  min-height: 220px;
  padding: 30px;
}

.guides-body .guide-hub-feature h2 {
  font-size: clamp(28px, 3vw, 42px);
  letter-spacing: 0 !important;
}

.guides-body .guide-library-heading {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(280px, .42fr);
  gap: 24px;
  align-items: end;
  margin-top: 10px;
}

.guides-body .guide-library-heading h2 {
  margin: 0;
  color: var(--guide-ink) !important;
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

.guides-body .guide-library-heading p {
  margin: 0;
  color: #566174 !important;
  line-height: 1.6;
}

.guides-body .guide-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--guide-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .04) !important;
}

.guides-body .guide-filter-bar button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid transparent !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: var(--guide-muted) !important;
  cursor: pointer;
  font-weight: 900;
}

.guides-body .guide-filter-bar button.active {
  border-color: #e7d2a8 !important;
  background: var(--guide-gold-soft) !important;
  color: #68470f !important;
}

.guides-body .guide-library {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.guides-body .guide-card.library-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 390px;
  padding: 24px;
  border: 1px solid var(--guide-line) !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: var(--guide-text) !important;
  box-shadow: 0 18px 44px rgba(15, 23, 42, .06) !important;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.guides-body .guide-card.library-card:hover {
  border-color: #d2b16b !important;
  box-shadow: 0 26px 58px rgba(15, 23, 42, .11) !important;
  transform: translateY(-3px);
}

.guides-body .guide-card.library-card h2 {
  margin: 0;
  color: var(--guide-ink) !important;
  font-size: clamp(22px, 2.3vw, 30px);
  line-height: 1.08;
}

.guides-body .guide-card.library-card p {
  margin: 0;
  color: #5b6577 !important;
  font-size: 15px;
  line-height: 1.55;
}

.guide-card-meta,
.guide-ai-cue {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.guides-body .guide-card-meta small,
.guides-body .guide-ai-cue small,
.guides-body .guide-card-depth small {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid #ead9b9 !important;
  border-radius: 999px !important;
  background: #fff9ef !important;
  color: #6b4a13 !important;
  font-size: 12px;
  font-weight: 850;
}

.guides-body .guide-card-depth {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid var(--guide-line);
}

.guides-body .guide-card-depth b {
  flex: 0 0 100%;
  color: var(--guide-ink) !important;
  font-size: 13px;
  text-transform: uppercase;
}

.guides-body .guide-card.library-card > strong {
  align-self: end;
  margin-top: 6px;
  color: var(--guide-ink) !important;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.guides-body .guide-empty {
  grid-column: 1 / -1;
  padding: 22px;
  border: 1px solid var(--guide-line);
  border-radius: 12px;
  background: #fff;
  color: var(--guide-muted);
  font-weight: 800;
}

@media (max-width: 1100px) {
  body.guides-body .site-header.dashboard-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .guides-body .site-header nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 2px;
  }

  .guides-body .guides-hero,
  .guides-body .guide-hub-feature,
  .guides-body .guide-library-heading {
    grid-template-columns: 1fr;
  }

  .guides-body .guide-quality-strip,
  .guides-body .guide-library {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  body.guides-body .site-header.dashboard-header {
    min-height: 68px;
    padding: 10px 14px !important;
  }

  .guides-body .guide-wordmark img {
    width: 40px !important;
    height: 40px !important;
  }

  .guides-body .guide-wordmark > span {
    font-size: 18px;
  }

  .guides-body .ghost-button {
    min-height: 40px !important;
    padding: 0 12px !important;
  }

  .guides-layout {
    width: min(100% - 20px, 1210px);
    padding-top: 16px;
    gap: 18px;
  }

  .guides-body .guides-hero {
    padding: 22px !important;
    gap: 16px;
  }

  .guides-body .guides-hero h1 {
    font-size: clamp(36px, 12vw, 52px) !important;
  }

  .guides-body .guides-hero p:not(.eyebrow) {
    font-size: 15px !important;
    line-height: 1.48 !important;
  }

  .guides-body .guide-edition-banner {
    margin-bottom: 12px;
    font-size: 11px;
  }

  .guide-hub-stats {
    gap: 8px;
    margin-top: 16px;
  }

  .guides-body .guide-hub-stats span {
    min-height: 34px;
    padding: 0 10px;
    font-size: 12px;
  }

  .guides-body .guide-search-panel {
    padding: 18px;
  }

  .guides-body .guide-search-panel input {
    min-height: 48px;
  }

  .guides-body .guide-quality-strip,
  .guides-body .guide-hub-feature {
    display: none !important;
  }

  .guides-body .guide-library-heading {
    gap: 10px;
  }

  .guides-body .guide-library-heading h2 {
    font-size: 32px;
  }

  .guides-body .guide-library-heading > p {
    display: none;
  }

  .guides-body .guide-filter-bar {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 8px;
  }

  .guides-body .guide-filter-bar button {
    flex: 0 0 auto;
  }

  .guides-body .guide-quality-strip,
  .guides-body .guide-library {
    grid-template-columns: 1fr;
  }

  .guides-body .guide-hub-feature article,
  .guides-body .guide-card.library-card,
  .guides-body .guide-quality-strip article {
    min-height: 0;
    padding: 20px;
  }
}
