/* ==========================================================================
   Buyer Resources pages  (.br)
   --------------------------------------------------------------------------
   Editorial/premium: serif display type, muted cream + terracotta, hairline
   rules, mono microlabels. Same token names as the marketplace surfaces
   (CLAUDE.md §4) so the two never drift apart.

   Scoped entirely under .br — these pages sit inside layouts.master alongside
   the Craft/Elementor theme, and nothing here may leak into it.
   ========================================================================== */

.br {
  --br-cream: #F1EAE0;
  --br-terracotta: #C18B57;
  --br-ink: #1C1A17;
  --br-body: #5C564D;
  --br-gold: #D8A24A;
  --br-white: #fff;
  --br-line: rgba(28, 26, 23, .12);
  --br-radius: 7px;
  --br-ease: cubic-bezier(.22, .61, .36, 1);

  --br-display: 'Fraunces', 'Playfair Display', Georgia, serif;
  --br-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --br-mono: 'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  background: var(--br-white);
  color: var(--br-body);
  font-family: var(--br-sans);
  font-size: 16px;
  line-height: 1.75;
}

.br *,
.br *::before,
.br *::after { box-sizing: border-box; }

/* ------------------------------------------------------------------ hero */
.br__hero {
  background: var(--br-ink);
  color: var(--br-cream);
  padding: 96px 24px 88px;
  position: relative;
  overflow: hidden;
}

.br__hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--br-gold), transparent);
  opacity: .55;
}

.br__hero-inner {
  max-width: 880px;
  margin: 0 auto;
}

.br__eyebrow {
  font-family: var(--br-mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--br-gold);
  margin-bottom: 22px;
}

.br__title {
  font-family: var(--br-display);
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.1;
  letter-spacing: -.015em;
  color: var(--br-white);
  margin: 0 0 22px;
}

.br__lede {
  font-size: clamp(16px, 1.7vw, 19px);
  line-height: 1.7;
  color: rgba(241, 234, 224, .76);
  max-width: 68ch;
  margin: 0;
}

/* ----------------------------------------------------------------- shell */
.br__wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 72px 24px 96px;
  display: grid;
  grid-template-columns: 232px minmax(0, 1fr);
  gap: 64px;
  align-items: start;
}

/* Set by the template when there is no contents rail — an explicit class rather
   than :has(), which older browsers silently ignore, leaving a dead column. */
.br__wrap--full { grid-template-columns: minmax(0, 1fr); }

/* ---------------------------------------------------------- contents rail */
.br__toc {
  position: sticky;
  top: 108px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-right: 20px;
  border-right: 1px solid var(--br-line);
}

.br__toc b {
  font-family: var(--br-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--br-ink);
  opacity: .5;
  margin-bottom: 12px;
  font-weight: 500;
}

.br__toc a {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--br-body);
  text-decoration: none;
  padding: 7px 0;
  border-bottom: 1px solid transparent;
  transition: color .2s var(--br-ease);
}

.br__toc a:hover { color: var(--br-terracotta); }

/* ---------------------------------------------------------------- blocks */
.br__body { min-width: 0; max-width: 74ch; }

.br__block {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 20px;
  padding: 0 0 44px;
  margin: 0 0 44px;
  border-bottom: 1px solid var(--br-line);
  scroll-margin-top: 110px;
}

.br__block:last-of-type { border-bottom: 0; }

.br__num {
  font-family: var(--br-mono);
  font-size: 12px;
  letter-spacing: .1em;
  color: var(--br-terracotta);
  padding-top: 10px;
}

.br__block-body { min-width: 0; }

.br__h2 {
  font-family: var(--br-display);
  font-weight: 600;
  font-size: clamp(22px, 2.6vw, 29px);
  line-height: 1.25;
  letter-spacing: -.01em;
  color: var(--br-ink);
  margin: 0 0 16px;
}

.br__body p { margin: 0 0 16px; }
.br__body p:last-child { margin-bottom: 0; }

.br__body ul {
  margin: 0 0 16px;
  padding-left: 0;
  list-style: none;
}

.br__body li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 9px;
}

.br__body li::before {
  content: '';
  position: absolute;
  left: 2px;
  top: .72em;
  width: 6px;
  height: 1px;
  background: var(--br-terracotta);
}

/* ------------------------------------------------------------------- faq */
.br__faq { border-top: 1px solid var(--br-line); }

.br__faq-item { border-bottom: 1px solid var(--br-line); }

.br__faq-q {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  cursor: pointer;
  list-style: none;
  font-family: var(--br-display);
  font-size: clamp(17px, 2vw, 20px);
  line-height: 1.4;
  color: var(--br-ink);
  font-weight: 600;
  transition: color .2s var(--br-ease);
}

.br__faq-q::-webkit-details-marker { display: none; }
.br__faq-q:hover { color: var(--br-terracotta); }

.br__faq-icon {
  flex: 0 0 auto;
  font-size: 12px;
  color: var(--br-terracotta);
  margin-top: 6px;
  transition: transform .25s var(--br-ease);
}

.br__faq-item[open] .br__faq-icon { transform: rotate(45deg); }

.br__faq-a { padding: 0 44px 24px 0; }

/* ------------------------------------------------------------------- cta */
.br__cta {
  margin-top: 56px;
  padding: 40px;
  background: var(--br-cream);
  border-radius: var(--br-radius);
  border: 1px solid rgba(193, 139, 87, .22);
}

.br__cta-title {
  font-family: var(--br-display);
  font-weight: 600;
  font-size: clamp(21px, 2.4vw, 27px);
  line-height: 1.25;
  color: var(--br-ink);
  margin: 0 0 12px;
}

.br__cta-body {
  margin: 0 0 24px;
  max-width: 60ch;
}

.br__cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.br__btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 26px;
  border-radius: 999px;
  background: var(--br-ink);
  color: var(--br-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .02em;
  text-decoration: none;
  border: 1px solid var(--br-ink);
  transition: background .2s var(--br-ease), color .2s var(--br-ease);
}

.br__btn:hover {
  background: var(--br-terracotta);
  border-color: var(--br-terracotta);
  color: var(--br-white);
}

.br__btn--ghost {
  background: transparent;
  color: var(--br-ink);
  border-color: rgba(28, 26, 23, .25);
}

.br__btn--ghost:hover {
  background: var(--br-ink);
  border-color: var(--br-ink);
  color: var(--br-white);
}

/* -------------------------------------------------------- more resources */
.br__more {
  margin-top: 56px;
  padding-top: 32px;
  border-top: 1px solid var(--br-line);
}

.br__more-label {
  font-family: var(--br-mono);
  font-size: 10px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--br-ink);
  opacity: .5;
  margin-bottom: 14px;
}

.br__more-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 2px;
}

.br__more-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 13px 0;
  border-bottom: 1px solid var(--br-line);
  color: var(--br-ink);
  text-decoration: none;
  font-size: 14.5px;
  transition: color .2s var(--br-ease), padding-left .2s var(--br-ease);
}

.br__more-list a i {
  font-size: 11px;
  color: var(--br-terracotta);
  opacity: 0;
  transform: translateX(-6px);
  transition: opacity .2s var(--br-ease), transform .2s var(--br-ease);
}

.br__more-list a:hover {
  color: var(--br-terracotta);
  padding-left: 6px;
}

.br__more-list a:hover i {
  opacity: 1;
  transform: translateX(0);
}

/* ------------------------------------------------------------ responsive */
@media (max-width: 960px) {
  .br__wrap {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    padding: 48px 20px 72px;
  }

  .br__toc {
    position: static;
    border-right: 0;
    border-bottom: 1px solid var(--br-line);
    padding: 0 0 20px;
    margin-bottom: 36px;
  }

  .br__hero { padding: 64px 20px 56px; }
}

@media (max-width: 620px) {
  .br__block {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }

  .br__num { padding-top: 0; }
  .br__cta { padding: 28px 22px; }
  .br__faq-a { padding-right: 0; }
  .br__btn { width: 100%; justify-content: center; }
}

/* Respect a reduced-motion preference. */
@media (prefers-reduced-motion: reduce) {
  .br *,
  .br *::before,
  .br *::after {
    transition-duration: .01ms !important;
  }
}
