.oj-guides-categories .cb-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 576px) {
    .oj-guides-categories .cb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .oj-guides-categories .cb-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.oj-guides-category-card .cb-card__thumb img {
    width: 100%;
    height: auto;
    object-fit: cover;
}

.oj-guides-listing .cb-grid {
    display: grid;
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .oj-guides-listing .cb-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .oj-guides-listing .cb-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.oj-guide-doc-type {
    font-size: 0.85rem;
    color: #666;
    margin-top: 0.25rem;
}

.oj-guide-single.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.oj-guide-header .oj-guide-title {
    margin-bottom: 0.25rem;
}

.oj-guide-meta {
    font-size: 0.9rem;
    color: #777;
    margin-bottom: 1.5rem;
}

.oj-guide-summary {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
}

.oj-guide-download {
    margin-top: 1rem;
    margin-bottom: 2rem;
}

.oj-guide-download-button {
    display: inline-flex;
    width: 100%;
    justify-content: center;
}

@media (min-width: 768px) {
    .oj-guide-download-button {
        width: auto;
        padding-left: 2.5rem;
        padding-right: 2.5rem;
    }
}

.oj-guide-faq {
    margin-top: 2.5rem;
    border-top: 1px solid #e1e1e1;
    padding-top: 1.5rem;
}

.oj-guide-faq h2 {
    margin-bottom: 1rem;
}

.oj-guide-faq-item {
    margin-bottom: 0.75rem;
    border-radius: 4px;
    padding: 0.4rem 0.6rem;
    background: #f9fafb;
}

.oj-guide-faq-question {
    cursor: pointer;
    font-weight: 600;
}

.oj-guide-faq-answer {
    margin-top: 0.4rem;
    font-size: 0.95rem;
    color: #444;
}

.oj-guide-faq-table td.oj-guide-faq-remove-col {
    width: 60px;
    text-align: center;
}

.oj-guides-search-field.form-control {
    max-width: 260px;
}


/* Full-width stacked layout for categories and guides lists */
.oj-guides-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.oj-guides-row {
    width: 100%;
}

/* Category cards: image left, content right; stack on mobile */
.oj-guides-category-card.oj-guides-row {
    display: flex;
    gap: 1rem;
    align-items: center;
}

.oj-guides-category-card .cb-card__thumb {
    flex: 0 0 240px;
}

@media (max-width: 767.98px) {
    .oj-guides-category-card.oj-guides-row {
        flex-direction: column;
        align-items: stretch;
    }
    .oj-guides-category-card .cb-card__thumb {
        flex: 0 0 auto;
    }
}



/* v1.6.1 adjustments */
/* Guide rows: content left, CTA right */
.oj-guide-card .oj-guide-row-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.oj-guide-card .oj-guide-row-main {
    flex: 1 1 auto;
    min-width: 0;
}

.oj-guide-card .oj-guide-row-cta {
    flex: 0 0 auto;
}

.oj-guide-card .oj-guide-row-cta .cb-btn {
    width: auto;
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .oj-guide-card .oj-guide-row-body {
        flex-direction: column;
        align-items: stretch;
    }
    .oj-guide-card .oj-guide-row-cta .cb-btn {
        width: 100%;
        text-align: center;
    }
}


/* v1.7.4 layout fixes */
.oj-guides-stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.oj-guide-row-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
}

.oj-guide-row-main {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left;
}

.oj-guide-row-cta {
    flex: 0 0 auto;
}

.oj-guide-row-cta .cb-btn {
    white-space: nowrap;
}

@media (max-width: 767.98px) {
    .oj-guide-row-body {
        flex-direction: column;
        align-items: stretch;
    }
    .oj-guide-row-cta .cb-btn {
        width: 100%;
        text-align: center;
    }
}


/* v1.7.6 design tweaks */

/* Category icons centered and smaller */
.oj-guides-category-card .cb-card__thumb {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.oj-guides-category-card .cb-card__thumb img {
    width: 50%;
    max-width: 180px;
    height: auto;
    object-fit: contain;
    display: block;
}
.oj-guides-category-card .cb-card__body,
.oj-guides-category-card .cb-card__title {
    text-align: center;
}

/* Guides list row: HARD override theme centering */
.oj-guide-card .oj-guide-row-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    width: 100%;
}
.oj-guide-card .oj-guide-row-main {
    flex: 1 1 auto;
    min-width: 0;
    text-align: left !important;
}
.oj-guide-card .oj-guide-row-main * {
    text-align: left !important;
}
.oj-guide-card .oj-guide-row-cta {
    flex: 0 0 auto;
}
.oj-guide-card .oj-guide-row-cta .cb-btn {
    white-space: nowrap;
}

/* Mobile */
@media (max-width: 767.98px) {
    .oj-guide-card .oj-guide-row-body {
        flex-direction: column;
        align-items: stretch;
    }
    .oj-guide-card .oj-guide-row-cta .cb-btn {
        width: 100%;
        text-align: center;
    }
    .oj-guides-category-card .cb-card__thumb img {
        width: 60%;
    }
}


/* v1.7.7 layout: robust guide rows (long titles + multiple buttons) */
.oj-guide-card .oj-guide-row-body {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    column-gap: 1.25rem;
    width: 100%;
}

.oj-guide-card .oj-guide-row-main {
    min-width: 0; /* allows wrapping instead of pushing buttons off */
    text-align: left !important;
}

.oj-guide-card .oj-guide-row-main .cb-card__title,
.oj-guide-card .oj-guide-row-main .cb-card__title a {
    text-align: left !important;
}

/* Actions area: ready for 2 buttons */
.oj-guide-card .oj-guide-row-actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
}

.oj-guide-card .oj-guide-row-actions .cb-btn {
    white-space: nowrap;
}

/* Mobile: stack, buttons full width */
@media (max-width: 767.98px) {
    .oj-guide-card .oj-guide-row-body {
        grid-template-columns: 1fr;
        row-gap: 0.75rem;
    }
    .oj-guide-card .oj-guide-row-actions {
        justify-content: stretch;
    }
    .oj-guide-card .oj-guide-row-actions .cb-btn {
        width: 100%;
        text-align: center;
    }
}


/* If theme swaps logo via classes */
body.oj-guides-page .logo svg use[href*="logo-white"] {
    opacity: 1;
}


/* v1.8.2 – white header ONLY on Guides pages */
body.oj-guides-page .position-absolute.top-0.w-100.hidden-mobile,
body.oj-guides-page .position-absolute.w-100.d-flex.hidden-desktop {
    color: #ffffff !important;
}

body.oj-guides-page .position-absolute.top-0.w-100.hidden-mobile a.nav-link,
body.oj-guides-page .position-absolute.w-100.d-flex.hidden-desktop a.nav-link {
    color: #ffffff !important;
}

body.oj-guides-page .position-absolute.top-0.w-100.hidden-mobile a.nav-link:hover,
body.oj-guides-page .position-absolute.w-100.d-flex.hidden-desktop a.nav-link:hover {
    opacity: 1;
}

body.oj-guides-page a.logo svg use[xlink\:href*="logo-white"] {
    opacity: 1;
}


body.oj-guides-page a.logo svg use[xlink\:href*="logo-white"],
body.oj-guides-page a.logo--mobile svg use[xlink\:href*="logo-white"] {
    opacity: 1 !important;
}


/* v1.8.5 – header white on Guides pages (safe scope) */
body.oj-guides-page .position-absolute.top-0.w-100.hidden-mobile a.nav-link,
body.oj-guides-page .position-absolute.w-100.d-flex.hidden-desktop a.nav-link {
    color: #ffffff !important;
}

/* Mobile logo: show only white variant */
body.oj-guides-page a.logo--mobile svg:first-child { display: none !important; }
body.oj-guides-page a.logo--mobile svg:last-child { display: block !important; }


/* v1.8.6 – logo handling (safe) */
/* Mobile: if two SVGs exist, hide first (logo) and show second (logo-white) on Guides pages */
body.oj-guides-page a.logo--mobile svg:first-child { display: none; }
body.oj-guides-page a.logo--mobile svg:nth-child(2) { display: inline-block; }


/* v1.8.6 – guide row layout (long titles + actions) */
.oj-guide-card .oj-guide-row-body{
  display:grid;
  grid-template-columns: 1fr auto;
  align-items:center;
  column-gap:1.25rem;
  width:100%;
}
.oj-guide-card .oj-guide-row-main{ min-width:0; text-align:left !important; }
.oj-guide-card .oj-guide-row-main *{ text-align:left !important; }
.oj-guide-card .oj-guide-row-actions{
  display:flex;
  gap:0.75rem;
  align-items:center;
  justify-content:flex-end;
  flex-wrap:wrap;
}
.oj-guide-card .oj-guide-row-actions .cb-btn{ white-space:nowrap; }
@media (max-width: 767.98px){
  .oj-guide-card .oj-guide-row-body{ grid-template-columns:1fr; row-gap:0.75rem; }
  .oj-guide-card .oj-guide-row-actions{ justify-content:stretch; }
  .oj-guide-card .oj-guide-row-actions .cb-btn{ width:100%; text-align:center; }
}


/* v1.9.0 – single guide: split content + download on the right */
.oj-guide-content-grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 2rem;
  align-items: start;
}

.oj-guide-download-card{
  position: sticky;
  top: 110px;
  padding: 1.25rem;
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  box-shadow: 0 6px 24px rgba(0,0,0,.06);
}

.oj-guide-download-button.cb-btn{
  display: block;
  width: 100%;
  padding: 14px 16px;
  font-size: 16px;
  text-align: center;
}

.oj-guide-download-meta{
  margin-top: .75rem;
  font-size: 13px;
  opacity: .75;
  word-break: break-word;
}

@media (max-width: 991.98px){
  .oj-guide-content-grid{
    grid-template-columns: 1fr;
  }
  .oj-guide-download-card{
    position: static;
  }
}
