/* Guides section styles (/guides). Loaded per-page from _GuideLayout and the guides hub,
   matching the way help.css is loaded from _HelpLayout, so it stays out of the sitewide bundle.

   Every colour here resolves to a custom property already defined in main.css, so light and
   dark themes are handled without any additional rules. Written unminified for readability;
   main.css and help.css are minified build output, so minify this too if that step is
   reintroduced. */

/* ---------- breadcrumbs (also usable outside /guides) ---------- */

.breadcrumbs {
    font-size: 13px;
    margin: 0 0 18px;
}

.breadcrumbs ol {
    list-style: none;
    margin: 0;
    padding: 0;
}

.breadcrumbs li {
    display: inline;
    color: var(--bs-secondary-color);
}

.breadcrumbs li + li::before {
    content: "\203A";
    margin: 0 8px;
    color: var(--bs-tertiary-color);
}

.breadcrumbs a {
    color: var(--bs-link-color);
}

.breadcrumbs a:hover {
    color: var(--bs-link-hover-color);
    text-decoration: underline;
}

.breadcrumbs [aria-current="page"] {
    color: var(--bs-body-color);
    font-weight: 600;
}

/* ---------- guide article body ---------- */

.guide-article {
    padding-bottom: 40px;
}

.guide-article h1 {
    color: var(--bs-heading-color);
    font-size: 34px;
    line-height: 41px;
    margin-bottom: 18px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--brand-blue);
    text-transform: none;
}

.guide-article h2 {
    color: var(--bs-heading-color);
    font-size: 24px;
    line-height: 30px;
    margin-top: 34px;
    margin-bottom: 12px;
    text-transform: none;
}

.guide-article h3 {
    color: var(--bs-heading-color);
    font-size: 19px;
    line-height: 25px;
    margin-top: 24px;
    margin-bottom: 10px;
    text-transform: none;
}

.guide-article p {
    line-height: 1.7;
    margin-bottom: 14px;
}

.guide-article ol,
.guide-article ul {
    margin-bottom: 18px;
    padding-left: 24px;
}

.guide-article li {
    line-height: 1.65;
    margin-bottom: 8px;
}

.guide-article picture,
.guide-article img {
    max-width: 100%;
    height: auto;
}

.guide-article figure {
    margin: 22px 0;
}

.guide-article figcaption {
    font-size: 13px;
    color: var(--bs-tertiary-color);
    margin-top: 8px;
}

.guide-article code {
    background-color: var(--bs-tertiary-bg);
    padding: 2px 6px;
    border-radius: 3px;
    font-size: .9em;
    color: var(--bs-link-color);
}

/* ---------- the direct-answer block that opens every guide ---------- */

/* This is the featured-snippet and AI-citation target: it must answer the query outright,
   in the first 100 words, before any product framing. */
.guide-answer {
    background: var(--bs-callout-bg);
    border-left: 4px solid var(--brand-blue);
    border-radius: 6px;
    padding: 18px 22px;
    margin: 0 0 26px;
}

.guide-answer p {
    font-size: 17px;
    line-height: 1.65;
    margin-bottom: 0;
}

.guide-answer p + p {
    margin-top: 10px;
}

/* ---------- honest-scope block ("what this will not do") ---------- */

.guide-limits {
    background: var(--bs-box-bg);
    border: 1px solid var(--bs-box-border);
    border-radius: 6px;
    padding: 16px 20px;
    margin: 24px 0;
}

.guide-limits p:last-child,
.guide-limits ul:last-child {
    margin-bottom: 0;
}

/* ---------- related reading ---------- */

.guide-related {
    border-top: 1px solid var(--bs-border-color);
    margin-top: 10px;
    padding-top: 26px;
}

.guide-related ul {
    list-style: none;
    margin: 0 0 24px;
    padding: 0;
}

.guide-related li {
    margin-bottom: 8px;
    padding-left: 25px;
    position: relative;
    font-weight: 400;
}

.guide-related li::before {
    content: "\F285";
    font-family: bootstrap-icons;
    font-size: 14px;
    color: var(--brand-yellow);
    left: 0;
    position: absolute;
    top: 2px;
}

/* ---------- sidebar ---------- */

.guide-sidebar .widget {
    margin-bottom: 30px;
}

.guide-sidebar .widget h3 {
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 10px;
}

.guide-sidebar .widget .content {
    border-top: 2px solid var(--bs-box-border);
    padding-top: 13px;
}

.guide-sidebar .widget p {
    font-size: 14px;
    line-height: 21px;
}

/* ---------- hub page ---------- */

.guide-hub-lead {
    font-size: 18px;
    line-height: 27px;
    color: var(--bs-secondary-color);
    margin-bottom: 26px;
}

.guide-hub h2 {
    color: var(--bs-heading-color);
    font-size: 24px;
    line-height: 30px;
    margin-top: 34px;
    margin-bottom: 14px;
    text-transform: none;
}

.guide-hub h3 {
    font-size: 18px;
    line-height: 24px;
    margin-bottom: 8px;
    text-transform: none;
}

.guide-hub p {
    line-height: 1.7;
}

.guide-cards {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    list-style: none;
    margin: 0 0 10px;
    padding: 0;
}

.guide-card {
    flex: 1 1 300px;
    background: var(--bs-box-bg);
    border: 1px solid var(--bs-box-border);
    border-radius: 8px;
    padding: 20px 22px;
    transition: border-color .3s, box-shadow .3s;
}

.guide-card:hover {
    border-color: var(--brand-blue);
    box-shadow: 0 2px 12px rgba(0, 0, 0, .08);
}

.guide-card h3 {
    margin-top: 0;
    display: flex;
    align-items: baseline;
    gap: 10px;
}

/* Decorative card icon. Flex on the heading keeps it clear of the text, so a heading
   that wraps to two lines aligns as a block rather than flowing under the glyph. */
.guide-card-icon {
    color: var(--brand-blue);
    font-size: 19px;
    line-height: 1;
    flex: 0 0 auto;
}

.guide-card h3 a {
    color: var(--brand-blue);
    text-decoration: none;
}

.guide-card h3 a:hover {
    color: var(--bs-link-hover-color);
}

.guide-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 0;
}

.guide-card .guide-card-meta {
    display: block;
    margin-top: 10px;
    font-size: 13px;
    color: var(--bs-tertiary-color);
}

@media (max-width: 767.98px) {
    .guide-article h1 {
        font-size: 27px;
        line-height: 34px;
    }

    .guide-article h2 {
        font-size: 21px;
        line-height: 27px;
    }

    .guide-sidebar {
        margin-top: 20px;
    }
}
