.lb-community-page { overflow-x: clip; }
.lb-community-page .lb-guide-layout,
.lb-community-page .lb-guide-layout__hero,
.lb-community-page .lb-guide-layout__main,
.lb-community-page .lb-guide-hero,
.lb-community-page .lb-guide-article { min-width: 0; max-width: 100%; }
.lb-community-page .lb-guide-shell { width: 100%; max-width: 1180px; }
.lb-community-page .lb-guide-hero h1 { overflow-wrap: break-word; }
.lb-community-page .lb-trustpilot-bar { max-width: 100%; }
.lb-community-page .lb-guide-article { max-width: none; }
.lb-community-page .lb-community-intro { font-size: 1.08rem; }
.lb-community-page .lb-community-wide { min-width: 0; max-width: 100%; margin-top: 32px; }
.lb-community-page .lb-community-wide > .entry-content { min-width: 0; }

/* One spacing rule controls the four top-level editorial sections. */
.lb-community-page .lb-section > h2 { scroll-margin-top: 8px; }
/* Include the discovery card's top padding and kicker when its H2 is targeted. */
.lb-community-page #latest-community-stories { scroll-margin-top: 52px; }
.lb-community-page .lb-community-wide .lb-section + .lb-section { margin-top: 32px; }
.lb-community-page .lb-community-discovery { margin-top: 32px; }
.lb-community-page .lb-guide-article-footer { margin-top: 28px; }

.lb-community-page .lb-community-partner { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); gap: clamp(1.5rem, 3vw, 2.5rem); align-items: start; margin: 1.5rem 0; padding: clamp(1rem, 2.5vw, 1.75rem); border: 1px solid var(--lb-guide-border); border-radius: 20px; background: #fffdf8; }
.lb-community-page .lb-community-partner:nth-of-type(even) .lb-community-partner__media { order: 2; }
.lb-community-page .lb-community-partner__content { min-width: 0; }
.lb-community-page .lb-community-partner__content h3 { margin-top: 0; }
.lb-community-page .lb-community-partner__content p { max-width: 62ch; }
.lb-community-page .lb-community-partner__media { display: grid; align-self: start; min-width: 0; gap: .75rem; }
.lb-community-page .lb-community-partner__media--single { grid-template-columns: 1fr; }
.lb-community-page .lb-community-partner__media--gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.lb-community-page .lb-community-partner__media img { display: block; width: 100%; height: auto; margin: 0; border-radius: 14px; object-fit: cover; }
.lb-community-page .lb-community-partner__media--single img { aspect-ratio: 4 / 3; object-position: 50% 24%; }
.lb-community-page .lb-community-partner__media--gallery img { aspect-ratio: 3 / 4; object-position: 50% 50%; }
.lb-community-page .lb-community-partner__media--team img { object-position: 50% 58%; }
.lb-community-page .lb-community-partner__media--motorsport img:first-child { object-position: 50% 42%; }

.lb-community-page .lb-community-links { display: flex; flex-wrap: wrap; align-items: center; gap: .65rem 1.15rem; margin-top: 1rem; }
.lb-community-page .lb-community-links a { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; padding: .5rem .7rem; border: 1px solid rgba(199, 154, 93, .38); border-radius: 999px; color: #76511f; font-weight: 700; line-height: 1.25; text-decoration: none; }
.lb-community-page .lb-community-links a::after { content: "\2192"; flex: 0 0 auto; }
.lb-community-page .lb-community-links a:hover,
.lb-community-page .lb-community-links a:focus { border-color: var(--lb-guide-accent); background: var(--lb-guide-panel); color: var(--lb-guide-heading); text-decoration: none; }
.lb-community-page .lb-community-links a:focus-visible { outline: 3px solid rgba(199, 154, 93, .4); outline-offset: 2px; }

.lb-community-page .lb-community-steps.lb-guide-step-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.lb-community-page .lb-community-steps .lb-guide-step-card { min-height: 100%; height: 100%; align-items: flex-start; padding: 1.4rem 1.25rem; }
.lb-community-page .lb-community-steps .lb-guide-step-card__number { flex: 0 0 auto; }
.lb-community-page .lb-community-steps .lb-guide-step-card__content { display: flex; min-width: 0; flex-direction: column; gap: .45rem; }
.lb-community-page .lb-community-steps .lb-guide-step-card__heading { display: block; color: var(--lb-guide-heading); font-size: 1.05rem; line-height: 1.3; }
.lb-community-page .lb-community-steps .lb-guide-step-card__text { display: block; line-height: 1.6; }
.lb-community-page .lb-community-actions { display: flex; flex-wrap: wrap; gap: .75rem; margin: 1.5rem 0 2rem; }
.lb-community-page .lb-community-actions .lb-guide-button,
.lb-community-page .lb-community-actions .lb-btn { min-width: 190px; min-height: 44px; padding-right: 1.25rem; padding-left: 1.25rem; }

.lb-community-feed { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.lb-community-story { display: flex; min-width: 0; height: 100%; overflow: hidden; flex-direction: column; border: 1px solid var(--lb-guide-border); border-radius: 16px; background: #fff; }
.lb-community-story__image { display: block; overflow: hidden; aspect-ratio: 4 / 3; }
.lb-community-story__image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--lb-story-focal-point, 50% 35%); }
.lb-community-story__body { display: flex; flex: 1 1 auto; flex-direction: column; padding: 1.1rem; }
.lb-community-story__body time { color: var(--lb-guide-muted); font-size: .78rem; font-weight: 700; letter-spacing: .02em; }
.lb-community-story__body h3 { margin: .45rem 0 .65rem; font-size: 1.18rem; line-height: 1.35; }
.lb-community-story__body h3 a { color: inherit; text-decoration: none; }
.lb-community-story__body p { display: -webkit-box; overflow: hidden; margin-bottom: 1rem; color: var(--lb-guide-muted); line-height: 1.6; -webkit-box-orient: vertical; -webkit-line-clamp: 5; }
.lb-community-story__link { align-self: flex-start; margin-top: auto; font-weight: 700; }
.lb-community-story__link:focus-visible,
.lb-community-story__body h3 a:focus-visible { outline: 3px solid rgba(199, 154, 93, .4); outline-offset: 3px; }

@media (max-width: 860px) {
  .lb-community-page .lb-community-partner { grid-template-columns: 1fr; }
  .lb-community-page .lb-community-partner:nth-of-type(even) .lb-community-partner__media { order: 0; }
  .lb-community-page .lb-community-steps.lb-guide-step-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .lb-community-feed { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 580px) {
  html:has(body.lb-community-page),
  body.lb-community-page { max-width: 100%; overflow-x: clip; }
  .lb-community-page .lb-guide-shell { width: auto; margin-right: 12px; margin-left: 12px; padding-right: 0; padding-left: 0; }
  .lb-community-page .lb-guide-hero h1,
  .lb-community-page .lb-guide-hero p { max-width: 100%; white-space: normal; }
  .lb-community-page .lb-community-wide { margin-top: 23px; }
  .lb-community-page .lb-community-wide .lb-section + .lb-section,
  .lb-community-page .lb-community-discovery { margin-top: 23px; }
  .lb-community-page #latest-community-stories { scroll-margin-top: 44px; }
  .lb-community-page .lb-community-partner { gap: 1.25rem; }
  .lb-community-page .lb-community-partner__media--gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lb-community-page .lb-community-steps.lb-guide-step-grid,
  .lb-community-feed { grid-template-columns: 1fr; }
  .lb-community-page .lb-community-actions { flex-direction: column; }
  .lb-community-page .lb-community-actions .lb-guide-button,
  .lb-community-page .lb-community-actions .lb-btn { width: 100%; }
}
