/* Fit the old Next.js page bands inside the BuddyBoss theme (public pages only). */
.twk-public-body .site-content, .twk-public-body #content { padding: 0 !important; background: var(--twk-paper, #fbf9f4); }
.twk-public-body .site-content > .container, .twk-public-body #content > .container { max-width: none !important; padding: 0 !important; }
.twk-public-body #primary, .twk-public-body .content-area { width: 100% !important; max-width: none !important; padding: 0 !important; margin: 0 !important; flex: 1 1 100% !important; }
.twk-public-body #secondary, .twk-public-body .widget-area { display: none !important; }
.twk-public-body .entry-header, .twk-public-body .page-header, .twk-public-body .entry-title { display: none !important; }
.twk-public-body article.page, .twk-public-body .entry-content { margin: 0 !important; padding: 0 !important; max-width: none !important; background: none !important; border: 0 !important; box-shadow: none !important; }
.twk-public-body .entry-content > * { max-width: none; }
.twk-public-body footer.footer-bottom.bb-footer { display: none !important; }
/* BuddyBoss header in brand colors for public pages. */
.twk-public-body .site-header { background: var(--twk-paper, #fbf9f4); border-bottom: 1px solid rgba(24,38,90,.12); box-shadow: none; }
.twk-public-body .site-header .primary-menu > li > a, .twk-public-body .site-header .site-title a { color: #18265a; font-family: "twk-figtree", system-ui, sans-serif; }
.twk-public-body .site-header .site-title a { font-family: "twk-caslon", Georgia, serif; font-weight: 600; }
.twk-public-body .site-header .primary-menu > li > a:hover { color: #66500f; }
.twk-public-body .site-header .bb-header-buttons .button.signin-button { color: #18265a; }
.twk-public-body .site-header .bb-header-buttons .button.signup, .twk-public-body .site-header .twk-apply-btn > a { background: #18265a !important; border-color: #18265a !important; color: #fbf9f4 !important; border-radius: 999px; }
@font-face{font-family:twk-caslon;src:url(fonts/LibreCaslonText.ttf) format("truetype");font-display:swap;font-weight:400 700}
@font-face{font-family:twk-figtree;src:url(fonts/Figtree.ttf) format("truetype");font-display:swap;font-weight:300 900}
/* Fix: BuddyBoss grid gives -10px side margins; our bands handle their own gutters. */
.twk-public-body .site-content-grid, .twk-public-body .bb-grid { margin-left: 0 !important; margin-right: 0 !important; }
.twk-public-body .site-content-grid > .bb-grid-cell { padding-left: 0 !important; padding-right: 0 !important; }
/* Fix: BuddyBoss heading color beat our band colors (dark headings on navy). */
.twk-public :is(h1, h2, h3, h4, h5, h6) { color: inherit; }
/* Brand logo in the header in place of the plain site title (public pages). */
.twk-public-body .site-header .site-title a { display: block; width: 240px; height: 32px; background: url(brand/lockup-line-light.svg) left center / contain no-repeat; text-indent: -9999px; overflow: hidden; }
@media (max-width: 800px) { .twk-public-body .site-header .site-title a { width: 180px; height: 26px; } }
/* Header Apply button: compact pill. */
.twk-public-body .site-header .primary-menu > li.twk-apply-btn > a { padding: 8px 18px !important; line-height: 1.2; height: auto; margin-top: 0; align-self: center; }
.twk-public-body .site-header .primary-menu > li.twk-apply-btn { display: flex; align-items: center; }
/* Our footer bottom row (copyright + policy links) must show; some BuddyBoss CSS hides any .footer-bottom. */
.twk-public .site-footer .footer-bottom { display: flex !important; }
/* Apply page: honour the [hidden] attribute (thank-you box, error lines). */
.twk-public [hidden] { display: none !important; }
/* Apply page: side boxes sit beside the form on desktop, not under it. */
@media (min-width: 900px) {
  .twk-public.twk-page-apply .page-body { grid-row: 2 / span 6; }
  .twk-public.twk-page-apply .apply-aside { grid-row: 2; }
  .twk-public.twk-page-apply .apply-aside + .apply-aside { grid-row: 3; }
}
/* Guide pages: Apply box in the middle of the article. */
.twk-public .twk-inline-cta { margin: 36px 0; padding: 24px 27px; }
.twk-public .twk-inline-cta-h { font-family: var(--font-display); font-style: italic; font-size: 25px; line-height: 1.2; margin: 0 0 8px; }
.twk-public .twk-inline-cta p { margin: 0 0 12px; }
.twk-public .twk-inline-cta p:last-child { margin: 0; }
