/* =========================================================
   CYFENDERS RESOURCES
   Shared styles for:
   - /resources (Quick Guides + FAQ)
   - /resources/quick-guides/* (Quick Guide pages)
   ========================================================= */


/* =========================
   RESOURCES OVERVIEW PAGE
   ========================= */

/* Constrain FAQ width (page scoped) */
.faq {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

.faq .focus-list {
    max-width: 860px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    width: 100%;
}

.faq .focus-content p {
    max-width: 78ch;
}

.faq .focus-toggle {
    padding-right: 3.25rem !important;
}

/* Vertical rhythm between major sections */
#home main>.container>section {
    margin-bottom: 3.5rem;
}

/* Quick Guides section width aligned to FAQ */
#quick-guides {
    max-width: 860px;
    margin-left: auto;
    margin-right: auto;
}

/* 2-up grid on desktop, 1-up on smaller screens */
.qg-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem 1.1rem;
}

@media (max-width: 991.98px) {
    .qg-grid {
        grid-template-columns: 1fr;
        gap: 0.85rem;
    }
}

.qg-card {
    position: relative;
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 0.9rem;
    background: #fff;
    padding: 1rem 1.1rem;
    box-shadow: 0 0.2rem 1rem rgba(0, 0, 0, 0.04);
    transition: box-shadow 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.qg-card:hover {
    border-color: rgba(0, 0, 0, 0.12);
    box-shadow: 0 0.35rem 1.2rem rgba(0, 0, 0, 0.06);
    transform: translateY(-1px);
}

.qg-card .qg-title {
    margin: 0 0 0.5rem 0;
    font-weight: 700;
    font-size: 1.02rem;
    line-height: 1.28;
    color: #0b4658;
}

.qg-card .qg-title::after {
    content: "";
    display: block;
    width: 56px;
    border-top: 2px solid rgba(11, 70, 88, 0.18);
    margin-top: 0.55rem;
}

.qg-card .qg-desc {
    margin: 0;
    font-size: 0.92rem;
    line-height: 1.45;
    color: rgba(0, 0, 0, 0.62);
    max-width: 62ch;
}

.qg-card a.stretched-link:focus-visible {
    outline: 2px solid rgba(209, 55, 8, 0.55);
    outline-offset: 4px;
    border-radius: 0.6rem;
}


/* =========================
     QUICK GUIDE PAGES
     ========================= */

/* Compact header variant (left aligned) */
.page-header-band.page-header-compact {
    padding: 18px 0;
}

.page-header-compact .qg-header-wrap {
    width: 100%;
    text-align: left;
}

.page-header-compact .page-kicker {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.78);
    margin: 0 0 0.25rem 0;
}

.page-header-compact .page-title {
    margin: 0;
    color: #fff;
    font-size: 1.55rem;
    line-height: 1.15;
}

.page-header-compact .page-accent {
    width: 180px;
    border-top: 2px solid #d13708;
    margin: 10px 0 0 0;
}

@media (max-width: 992px) {
    .page-header-compact .page-title {
        font-size: 1.35rem;
    }
}

@media (max-width: 576px) {
    .page-header-band.page-header-compact {
        padding: 16px 0;
    }

    .page-header-compact .page-title {
        font-size: 1.22rem;
    }

    .page-header-compact .page-accent {
        width: 160px;
    }
}

/* Fill the Bootstrap container width. Do NOT cap the overall page. */
.quick-guide-page .quick-guide {
    max-width: none;
    width: 100%;
    margin-left: 0;
    margin-right: 0;
}

/* Two-column layout: main + recommendations, full container width */
.quick-guide-page .qg-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;
    column-gap: 2rem;
    row-gap: 0.5rem;
    align-items: start;
}

/* Collapse to one column on smaller screens */
@media (max-width: 991.98px) {
    .quick-guide-page .qg-layout {
        grid-template-columns: 1fr;
        row-gap: 0.6rem;
        column-gap: 0;
    }
}

/* Main content area */
.quick-guide-page .qg-main {
    min-width: 0;
}

/* Readability: constrain only the text blocks */
.quick-guide-page .qg-intro {
    font-size: 1.05rem;
    line-height: 1.55;
    color: rgba(0, 0, 0, 0.72);
    max-width: 78ch;
    margin: 0 0 1.25rem 0;
}

.quick-guide-page .qg-content h2 {
    margin-top: 1.75rem;
    margin-bottom: 0.6rem;
    font-size: 1.15rem;
    font-weight: 600;
    color: rgba(0, 0, 0, 0.86);
}

.quick-guide-page .qg-content p {
    max-width: 78ch;
    color: rgba(0, 0, 0, 0.74);
}

/* Sidebar recommendations */
.quick-guide-page .qg-side {
    min-width: 0;
}

.quick-guide-page .qg-rec-card {
    background: rgba(11, 70, 88, 0.03);
    border: 1px solid rgba(11, 70, 88, 0.14);
    border-radius: 0.9rem;
    padding: 1rem 1.05rem;
}

.quick-guide-page .qg-rec-title {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.55);
    margin: 0 0 0.75rem 0;
}

.quick-guide-page .qg-rec-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.quick-guide-page .qg-rec-item+.qg-rec-item {
    margin-top: 0.85rem;
    padding-top: 0.85rem;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.quick-guide-page .qg-rec-link {
    display: block;
    text-decoration: none;
    color: #0b4658;
    font-weight: 700;
    line-height: 1.25;
}

.quick-guide-page .qg-rec-link:hover {
    text-decoration: underline;
}

.quick-guide-page .qg-rec-desc {
    margin: 0.35rem 0 0 0;
    font-size: 0.9rem;
    line-height: 1.4;
    color: rgba(0, 0, 0, 0.62);
}

/* Previous / Next bar spans full width (main + sidebar) */
.quick-guide-page .qg-pager {
    grid-column: 1 / -1;
    margin-top: 2.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid rgba(0, 0, 0, 0.10);

    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.25rem;
    /* explicit gap between the two button blocks */
}

@media (max-width: 991.98px) {
    .quick-guide-page .qg-pager {
        flex-direction: column;
    }
}

/* Each side takes half width, preserves spacing between them */
.quick-guide-page .qg-prev,
.quick-guide-page .qg-next {
    flex: 1 1 0;
    min-width: 0;
}

.quick-guide-page .qg-next {
    text-align: right;
}

@media (max-width: 991.98px) {
    .quick-guide-page .qg-next {
        text-align: left;
    }
}

/* Mobile: make Previous / Next buttons full-width and left-aligned */
@media (max-width: 575.98px) {
    .quick-guide-page .qg-prev,
    .quick-guide-page .qg-next {
        width: 100%;
        text-align: left;
    }

    .quick-guide-page .qg-pager .qg-nav-btn,
    .quick-guide-page .qg-pager a.btn {
        width: 100%;
        text-align: left;
    }
}

/* Label above button */
.quick-guide-page .qg-nav-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: rgba(0, 0, 0, 0.50);
    margin-bottom: 0.45rem;
}

/* Primary-button-like styling scoped to pager */
.quick-guide-page .qg-pager .qg-nav-btn {
    text-align: left;
    line-height: 1.25;
    box-shadow: 0 0.2rem 0.9rem rgba(0, 0, 0, 0.05);
    transition: transform 120ms ease, box-shadow 120ms ease, filter 120ms ease;
}

.quick-guide-page .qg-pager .qg-nav-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 0.35rem 1.15rem rgba(0, 0, 0, 0.07);
    filter: brightness(1.02);
}

.quick-guide-page .qg-pager .qg-nav-btn:focus-visible {
    outline: 2px solid rgba(209, 55, 8, 0.55);
    outline-offset: 4px;
}

.quick-guide-page .qg-next .qg-nav-btn {
    text-align: right;
}

.quick-guide-page .qg-back {
    grid-column: 1 / -1;
    margin-top: 0.125rem;
}

.quick-guide-page .qg-back a {
    text-decoration: none;
    font-size: 0.95rem;
}

.quick-guide-page .qg-back a:hover {
    text-decoration: underline;
}

.anchor-target {
    scroll-margin-top: 227px;
}

.faq-anchor-target {
    scroll-margin-top: 70px !important;
}
/* ------------------------------------------------------------
   Quick Guides: mobile pager adjustments
   ------------------------------------------------------------ */
@media (max-width: 575.98px) {
  .quick-guide-page .qg-prev,
  .quick-guide-page .qg-next {
    width: 100%;
    text-align: left;
  }

  .quick-guide-page .qg-pager .qg-nav-btn,
  .quick-guide-page .qg-pager a.btn {
    width: 100%;
    text-align: left;
  }
}

/* Quick Guides: keep CTA action aligned right, including on mobile */
@media (max-width: 768px) {
  .quick-guide-page .cta-box > div:last-child {
    justify-content: flex-end;
  }
}

/* ------------------------------------------------------------
   Quick Guides: mobile pager adjustments
   ------------------------------------------------------------ */
@media (max-width: 575.98px) {
  .quick-guide-page .qg-prev,
  .quick-guide-page .qg-next {
    width: 100%;
    text-align: left;
  }

  .quick-guide-page .qg-pager .qg-nav-btn,
  .quick-guide-page .qg-pager a.btn {
    width: 100%;
    text-align: left;
  }
}

/* Quick Guides: keep CTA action aligned right (including on small screens) */
.quick-guide-page .cta-box > div:last-child {
  justify-content: flex-end;
}

@media (max-width: 768px) {
  .quick-guide-page .cta-box > div:last-child {
    justify-content: flex-end;
  }
}
