/* ==========================================================================
   BiasBreak — design tokens
   ========================================================================== */
:root {
  --ink: #1a1815;
  --ink-2: #332f29;
  --secondary: #4a463f;
  --body-text: #6e6a63;
  --muted: #9b968d;
  --faint: #8a857c;
  --faintest: #b4afa6;

  --bg: #faf9f6;
  --panel: #f3f1ea;
  --card: #ffffff;

  --border-soft: rgba(26, 24, 21, 0.07);
  --border: rgba(26, 24, 21, 0.1);
  --border-mid: rgba(26, 24, 21, 0.11);
  --border-strong: rgba(26, 24, 21, 0.14);
  --border-max: rgba(26, 24, 21, 0.2);
  --border-25: rgba(26, 24, 21, 0.25);

  --clay: #a34a2e;
  --amber: #a8722a;
  --green: #3d7a5c;

  --shadow-sm: 0 1px 2px rgba(26, 24, 21, 0.05);
  --shadow-lg: 0 8px 24px rgba(26, 24, 21, 0.05);
  --shadow-modal: 0 30px 80px rgba(26, 24, 21, 0.3);

  --radius-card: 10px;
  --radius-lg: 14px;
  --radius-pill: 999px;

  --font-display: "Newsreader", Georgia, serif;
  --font-ui: "Instrument Sans", system-ui, -apple-system, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  --container: 1600px;
}

/* ==========================================================================
   Reset & base
   ========================================================================== */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

button {
  font-family: inherit;
}

.bb-container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 32px;
}

.bb-label {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--faint);
  text-transform: uppercase;
}

.bb-section {
  border-top: 1px solid var(--border);
  padding: 30px 0 36px;
}

.bb-section--panel {
  background: var(--panel);
}

.bb-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.bb-section-head__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.bb-link {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
}

.bb-link--underline {
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* score colors */
.bb-score--low { color: var(--clay); }
.bb-score--mid { color: var(--amber); }
.bb-score--high { color: var(--green); }
.bb-dot--low { background: var(--clay); }
.bb-dot--mid { background: var(--amber); }
.bb-dot--high { background: var(--green); }
.bb-dot--ink { background: var(--ink); }

/* ==========================================================================
   Header
   ========================================================================== */
.bb-header {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 18px 0;
  border-bottom: 1px solid transparent;
}

.bb-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(250, 249, 246, 0.85);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.bb-header .bb-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.bb-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.bb-logo__mark {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: linear-gradient(90deg, var(--ink) 50%, transparent 50%);
  border: 1.5px solid var(--ink);
}

.bb-logo__word {
  font-weight: 600;
  font-size: 15px;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.bb-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.bb-nav .bb-menu,
.bb-nav .bb-menu li {
  display: contents;
}

.bb-nav a {
  font-size: 13px;
  color: var(--secondary);
  text-decoration: none;
}

.bb-nav a:hover {
  color: var(--ink);
}

.bb-nav__signin {
  color: var(--ink);
  border: 1px solid var(--border-25);
  border-radius: 7px;
  padding: 6px 14px;
  font-weight: 500;
}

.bb-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
  color: var(--ink);
}

.bb-nav__toggle svg {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   Hero
   ========================================================================== */
.bb-hero {
  max-width: 760px;
  margin: 0 auto;
  padding: 76px 24px 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bb-hero__title {
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  text-align: center;
}

.bb-hero__subtitle {
  font-size: 15px;
  line-height: 1.55;
  color: var(--body-text);
  text-align: center;
  max-width: 560px;
  margin: 0 0 36px;
}

.bb-search {
  width: 100%;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm), var(--shadow-lg);
  padding: 20px 20px 14px;
}

.bb-search__field {
  border: none;
  width: 100%;
  resize: none;
  background: transparent;
  font-family: inherit;
  font-size: 15px;
  color: var(--ink);
  min-height: 52px;
  line-height: 1.5;
  padding: 0;
}

.bb-search__field::placeholder {
  color: var(--faintest);
}

.bb-search__field:focus {
  outline: none;
}

.bb-search__bar {
  display: flex;
  align-items: center;
  gap: 8px;
  border-top: 1px solid var(--border-soft);
  padding-top: 12px;
}

.bb-search__action {
  font-size: 12.5px;
  color: var(--body-text);
  border: 1px solid var(--border-strong);
  border-radius: 7px;
  padding: 6px 11px;
  background: none;
  cursor: pointer;
}

.bb-search__submitgroup {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.bb-search__hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--faintest);
}

.bb-search__submit {
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 500;
  border-radius: 8px;
  padding: 9px 20px;
  border: none;
  cursor: pointer;
}

.bb-search__submit:hover {
  background: var(--ink-2);
}

.bb-chips {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 22px;
  flex-wrap: wrap;
  justify-content: center;
}

.bb-chip {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-pill);
  padding: 6px 13px;
  font-size: 12.5px;
  color: var(--secondary);
  background: var(--card);
  text-decoration: none;
}

.bb-chip__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: 0 0 auto;
}

/* ==========================================================================
   How it works
   ========================================================================== */
.bb-howitworks {
  margin: 0 auto;
}

.bb-howitworks__heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-align: center;
  margin: 0 0 36px;
}

.bb-steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
  margin: 0 auto;
}

.bb-step__badge {
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.06em;
  color: var(--green);
  border: 1px solid rgba(61, 122, 92, 0.4);
  border-radius: var(--radius-pill);
  padding: 3px 8px;
  text-decoration: none;
}

.bb-step {
  display: flex;
  gap: 18px;
}

.bb-step__num {
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  border: 1px solid var(--border-max);
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.bb-step__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 5px;
}

.bb-step__title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 5px;
}
.bb-step__title-row .bb-step__title { margin: 0; }

.bb-step__text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--body-text);
  margin: 0;
}

/* ==========================================================================
   Live analyses
   ========================================================================== */
.bb-live {
  display: grid;
  grid-template-columns: 1.45fr 1fr 0.85fr;
  gap: 0;
}

.bb-live__col {
  padding: 0 26px;
  border-right: 1px solid var(--border-strong);
}

.bb-live__col:first-child {
  padding-left: 0;
  padding-right: 30px;
}

.bb-live__col:last-child {
  padding-right: 0;
  border-right: none;
}

.bb-live__eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--clay);
  margin-bottom: 12px;
  text-transform: uppercase;
}

.bb-live__headline {
  font-family: var(--font-display);
  font-size: 27px;
  line-height: 1.22;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 12px;
}

.bb-live__desc {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--body-text);
  margin: 0 0 18px;
}

.bb-scorecard {
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-card);
  padding: 16px 18px;
}

.bb-scorecard__row {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.bb-scorecard__value {
  font-family: var(--font-mono);
  font-size: 34px;
  font-weight: 600;
}

.bb-scorecard__interval {
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
}

.bb-scorecard__meta {
  font-size: 12.5px;
  color: var(--secondary);
  margin-left: auto;
}

.bb-scorecard__track {
  position: relative;
  height: 5px;
  background: var(--border);
  border-radius: 3px;
  margin-top: 12px;
}

.bb-scorecard__fill {
  position: absolute;
  height: 100%;
  border-radius: 3px;
}

.bb-live__readmore {
  display: inline-block;
  margin-top: 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bb-feed-item {
  display: block;
  border-top: 1px solid var(--border-mid);
  padding: 13px 0;
  text-decoration: none;
  color: inherit;
}
.bb-feed-item:hover .bb-feed-item__title {
  text-decoration: underline;
}

.bb-feed-item:first-of-type {
  border-top: 1px solid var(--border-mid);
}

.bb-feed-item__title {
  font-family: var(--font-display);
  font-size: 16px;
  line-height: 1.3;
  color: var(--ink);
  margin: 0 0 7px;
}

.bb-feed-item__meta {
  display: flex;
  gap: 12px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--muted);
}

.bb-feed-item__meta strong {
  font-weight: 600;
}

.bb-disputed-list {
  display: flex;
  flex-direction: column;
  gap: 11px;
  font-size: 13px;
  color: var(--secondary);
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-disputed-list li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}
.bb-disputed-list li a {
  color: inherit;
  text-decoration: none;
}
.bb-disputed-list li a:hover {
  text-decoration: underline;
}

.bb-disputed-list__score {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
}

.bb-live__note {
  border-top: 1px solid var(--border-mid);
  margin-top: 18px;
  padding-top: 14px;
}

.bb-live__note p {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--body-text);
  margin: 0 0 10px;
}

/* ==========================================================================
   Specialized tools
   ========================================================================== */
.bb-tools {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
}

.bb-tool-card {
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-card);
  padding: 16px;
  text-decoration: none;
  display: block;
  transition: border-color 0.2s ease-out;
}

.bb-tool-card:hover {
  border-color: var(--border-max);
}

.bb-tool-card__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
  margin: 0 0 6px;
}

.bb-tool-card__text {
  font-size: 12px;
  line-height: 1.5;
  color: var(--body-text);
  margin: 0;
}

/* ==========================================================================
   Feature triptych ("Every analysis includes")
   ========================================================================== */
.bb-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px 40px;
}

.bb-feature__head {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.bb-feature__stat {
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 600;
}

.bb-feature__interval {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}

.bb-feature__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  align-self: center;
  flex: 0 0 auto;
}

.bb-feature__title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.bb-feature__text {
  font-size: 13px;
  line-height: 1.55;
  color: var(--body-text);
  margin: 0;
}

.bb-features-heading {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 34px;
}

.bb-features-foot {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--border-strong);
  margin-top: 36px;
  padding-top: 18px;
  flex-wrap: wrap;
}

.bb-features-foot__text {
  font-size: 13px;
  color: var(--body-text);
  max-width: 640px;
}

/* ==========================================================================
   Buttons — shared CTA style for intro / community / final-CTA sections
   ========================================================================== */
.bb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 500;
  border-radius: 7px;
  padding: 9px 18px;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
}
/* Same fill as .bb-search__submit (the Analyze button). */
.bb-btn--primary { background: var(--ink); color: var(--bg); }
.bb-btn--primary:hover { background: var(--ink-2); }
/* Same border/text as .bb-nav__signin (the header Sign in button). */
.bb-btn--outline { border-color: var(--border-25); color: var(--ink); }
.bb-btn--outline:hover { border-color: var(--ink); background: var(--panel); }
.bb-btn--light { border-color: rgba(250, 249, 246, 0.35); color: var(--bg); }
.bb-btn--light:hover { border-color: var(--bg); }
.bb-btn--solid-light { background: var(--bg); color: var(--ink); }
.bb-btn--solid-light:hover { background: var(--panel); }

/* ==========================================================================
   Intro — "Fact-checking has always been too slow."
   ========================================================================== */
.bb-intro {
  max-width: 990px;
  margin: 0 auto;
  text-align: center;
}

.bb-intro__heading {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 0 20px;
}

.bb-intro__text {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body-text);
  margin: 0 0 16px;
}
.bb-intro__text strong { color: var(--ink); }

.bb-intro__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  margin-top: 16px;
}

/* ==========================================================================
   The Community (dark section)
   ========================================================================== */
.bb-section--dark {
  background: var(--ink);
}

.bb-community__heading {
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 500;
  color: var(--bg);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0 auto 18px;
  max-width: 640px;
  text-align: center;
}

.bb-community__text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--faintest);
  text-align: center;
  max-width: 660px;
  margin: 0 auto 44px;
}

.bb-community-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 30px 40px;
  margin-bottom: 44px;
}

.bb-community-item {
  border-top: 1px solid rgba(250, 249, 246, 0.18);
  padding-top: 16px;
}

.bb-community-item__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--bg);
  margin: 0 0 7px;
}

.bb-community-item__text {
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
  margin: 0;
}

.bb-community-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.bb-community-foot__quote {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--faintest);
  max-width: 560px;
  margin: 0;
}

.bb-community-foot__actions {
  display: flex;
  gap: 12px;
}

/* ==========================================================================
   Who it's for
   ========================================================================== */
.bb-audience {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 56px;
  align-items: center;
}

.bb-audience__heading {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.25;
  margin: 0;
}

.bb-audience-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 8px 24px;
  border-top: 1px solid var(--border-strong);
  padding: 15px 0;
  align-items: baseline;
}

.bb-audience-row__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}

.bb-audience-row__text {
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--body-text);
}

/* ==========================================================================
   Independent by design
   ========================================================================== */
.bb-independence {
  max-width: 620px;
  margin: 0 auto;
  text-align: center;
}

.bb-independence__heading {
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.bb-independence__text {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--body-text);
  margin: 0 0 20px;
}

/* ==========================================================================
   Final CTA band
   ========================================================================== */
.bb-cta-band {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}

.bb-cta-band__heading {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.015em;
  line-height: 1.15;
  margin: 0 0 16px;
}

.bb-cta-band__text {
  font-size: 15px;
  line-height: 1.6;
  color: var(--body-text);
  margin: 0 0 30px;
}

.bb-cta-band__actions {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ==========================================================================
   Stories
   ========================================================================== */
.bb-stories {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 40px;
}

.bb-story {
  border-top: 1px solid var(--border-mid);
  padding: 15px 0;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
  text-decoration: none;
}

.bb-story__title {
  font-family: var(--font-display);
  font-size: 17px;
  line-height: 1.35;
  color: var(--ink);
  margin: 0 0 5px;
}

.bb-story__meta {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

.bb-story__cta {
  font-size: 13px;
  color: var(--secondary);
  white-space: nowrap;
}

/* ==========================================================================
   Testimonials
   ========================================================================== */
.bb-testimonials {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.bb-testimonial {
  background: var(--card);
  border: 1px solid var(--border-mid);
  border-radius: var(--radius-card);
  padding: 18px;
}

.bb-testimonial__quote {
  font-family: var(--font-display);
  font-size: 15.5px;
  line-height: 1.5;
  color: #33302b;
  margin: 0 0 14px;
}

.bb-testimonial__name {
  font-size: 12.5px;
  color: var(--ink);
  font-weight: 600;
}

.bb-testimonial__role {
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   FAQ
   ========================================================================== */
.bb-faq {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 40px;
}

.bb-faq__heading {
  font-family: var(--font-display);
  font-size: 24px;
  line-height: 1.25;
  color: var(--ink);
  margin: 12px 0 0;
}

.bb-faq-item {
  border-top: 1px solid var(--border-mid);
  padding: 14px 0;
}

.bb-faq-item__q {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}
.bb-faq-item__q::-webkit-details-marker {
  display: none;
}

.bb-faq-item__chevron {
  font-family: var(--font-mono);
  font-weight: 400;
  color: var(--muted);
  transition: transform 0.15s;
  flex: 0 0 auto;
  display: inline-block;
}
.bb-faq-item[open] .bb-faq-item__chevron {
  transform: rotate(45deg);
}

.bb-faq-item__a {
  font-size: 13px;
  line-height: 1.6;
  color: var(--body-text);
  max-width: 640px;
  margin: 8px 0 0;
}

/* ==========================================================================
   Footer
   ========================================================================== */
.bb-footer {
  border-top: 1px solid var(--border);
  padding: 26px 0 30px;
  background: var(--panel);
}

.bb-footer__top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 32px;
  flex-wrap: wrap;
}

.bb-footer__brand {
  max-width: 340px;
}

.bb-footer__blurb {
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--body-text);
  margin: 0;
}

.bb-footer__cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.bb-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.bb-footer__col .bb-footer-menu,
.bb-footer__col .bb-footer-menu li {
  display: contents;
}

.bb-footer__col-title {
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.07em;
  color: var(--faint);
  text-transform: uppercase;
}

.bb-footer__col a {
  font-size: 12.5px;
  color: var(--secondary);
  text-decoration: none;
}

.bb-footer__col a:hover {
  color: var(--ink);
}

.bb-footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border);
  margin-top: 22px;
  padding-top: 16px;
  flex-wrap: wrap;
  gap: 10px;
}

.bb-footer__copy {
  font-size: 12px;
  color: var(--muted);
}

/* ==========================================================================
   Accessibility utility
   ========================================================================== */
.screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  white-space: nowrap;
}

/* ==========================================================================
   Article (single.php / page.php)
   ========================================================================== */
.bb-article__title {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 500;
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin: 0;
}

.bb-prose {
  font-size: 15.5px;
  line-height: 1.7;
  color: var(--body-text);
}

.bb-prose > *:first-child {
  margin-top: 0;
}

.bb-prose h2,
.bb-prose h3,
.bb-prose h4 {
  font-family: var(--font-display);
  font-weight: 500;
  color: var(--ink);
  line-height: 1.3;
  margin: 1.6em 0 0.6em;
}

.bb-prose h2 { font-size: 26px; }
.bb-prose h3 { font-size: 21px; }
.bb-prose h4 { font-size: 17px; }

.bb-prose p {
  margin: 0 0 1.2em;
}

.bb-prose a {
  color: var(--clay);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bb-prose ul,
.bb-prose ol {
  margin: 0 0 1.2em;
  padding-left: 1.3em;
}

.bb-prose li {
  margin-bottom: 0.4em;
}

.bb-prose blockquote {
  margin: 1.6em 0;
  padding: 4px 0 4px 20px;
  border-left: 2px solid var(--border-max);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 18px;
  color: var(--secondary);
}

.bb-prose img {
  border-radius: var(--radius-card);
  margin: 1.2em 0;
}

.bb-prose code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  background: var(--panel);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

.bb-prose hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2em 0;
}

/* ==========================================================================
   Post navigation (prev/next)
   ========================================================================== */
.bb-postnav {
  max-width: 820px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.bb-postnav__item {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bb-postnav__item--next {
  text-align: right;
  margin-left: auto;
}

/* ==========================================================================
   Pagination
   ========================================================================== */
.bb-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 30px;
  font-size: 13px;
}

.bb-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  border: 1px solid var(--border-mid);
  border-radius: 7px;
  color: var(--secondary);
  text-decoration: none;
}

.bb-pagination .page-numbers.current {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}

.bb-pagination .page-numbers.dots {
  border: none;
}

/* ==========================================================================
   Search form
   ========================================================================== */
.bb-searchform {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 480px;
}

.bb-searchform__field {
  flex: 1;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 14px;
}

.bb-searchform__field::placeholder {
  color: var(--faintest);
}

.bb-searchform__field:focus {
  outline: none;
  border-color: var(--border-max);
}

.bb-searchform__submit {
  background: var(--ink);
  color: var(--bg);
  font-size: 13.5px;
  font-weight: 500;
  border: none;
  border-radius: 8px;
  padding: 0 18px;
  cursor: pointer;
}

.bb-searchform__submit:hover {
  background: var(--ink-2);
}

/* ==========================================================================
   Comments
   ========================================================================== */
.bb-comments__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.bb-comment {
  border-top: 1px solid var(--border-mid);
  padding: 18px 0;
}

.bb-comment__meta {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}

.bb-comment__author {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.bb-comment__date a {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-decoration: none;
}

.bb-comment__text {
  font-size: 14px;
  line-height: 1.6;
  color: var(--body-text);
}

.bb-comment__pending {
  font-size: 12.5px;
  font-style: italic;
  color: var(--faint);
}

.bb-comment__reply a {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.bb-comments .children {
  list-style: none;
  margin: 0 0 0 28px;
  padding: 0;
}

.bb-comment-form p {
  margin: 0 0 14px;
}

.bb-comment-form label {
  display: block;
  font-size: 12.5px;
  color: var(--secondary);
  margin-bottom: 6px;
}

.bb-comment-form input[type="text"],
.bb-comment-form input[type="email"],
.bb-comment-form input[type="url"] {
  width: 100%;
  font-family: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 14px;
}

.bb-comment-form input:focus,
.bb-comment-form textarea:focus {
  outline: none;
  border-color: var(--border-max);
}

/* ==========================================================================
   Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .bb-tools {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .bb-nav {
    position: fixed;
    inset: 62px 0 0 0;
    background: var(--bg);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 32px 24px;
    border-top: 1px solid var(--border);
    display: none;
    overflow-y: auto;
  }

  .bb-nav.is-open {
    display: flex;
  }

  .bb-nav a {
    width: 100%;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-soft);
  }

  .bb-nav__signin {
    display: inline-block;
    margin-top: 12px;
  }

  .bb-nav__toggle {
    display: block;
  }

  .bb-hero__title {
    font-size: 34px;
  }

  .bb-steps,
  .bb-features,
  .bb-testimonials {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bb-live {
    grid-template-columns: 1fr;
  }

  .bb-live__col {
    padding: 24px 0 0 !important;
    border-right: none !important;
    border-top: 1px solid var(--border-strong);
  }

  .bb-live__col:first-child {
    padding-top: 0 !important;
    border-top: none;
  }

  .bb-tools {
    grid-template-columns: repeat(2, 1fr);
  }

  .bb-stories {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .bb-faq {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .bb-postnav {
    flex-direction: column;
    gap: 16px;
  }

  .bb-postnav__item--next {
    text-align: left;
    margin-left: 0;
  }

  .bb-community-grid {
    grid-template-columns: 1fr;
  }

  .bb-audience {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .bb-audience-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .bb-community-foot {
    flex-direction: column;
    align-items: flex-start;
  }

  .bb-features-foot {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .bb-header {
    padding: 16px 0;
  }

  .bb-container {
    padding: 0 20px;
  }

  .bb-article__title {
    font-size: 28px;
  }

  .bb-section {
    padding: 24px 0 28px;
  }

  .bb-hero {
    padding: 44px 20px 40px;
  }

  .bb-hero__title {
    font-size: 30px;
  }

  .bb-section-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }

  .bb-tools {
    grid-template-columns: 1fr;
  }

  .bb-intro__actions,
  .bb-cta-band__actions,
  .bb-community-foot__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .bb-footer {
    padding: 24px 0 26px;
  }

  .bb-footer__cols {
    gap: 28px;
  }
}
