/*
 * Guide – DQM layout (page-templates/guide-dqm-layout-template.php)
 * Matches the design of /data-quality-metrics/ (page-templates/data-quality-metrics-template.php).
 * Only loaded by that template. Rules marked "DQM" are carried over from the DQM page's inline styles.
 */

/* ---------- DQM: global type + header ---------- */
body { font-size: 18px !important; }
p { line-height: 25px; }
ul li { line-height: 26px; }
strong, b { font-weight: 600; color: var(--dark); }
code { color: var(--primary-color); }

@media (min-width: 1200px) {
    h1.h1_large,
    .guide-dqm-hero .guide-header__title { font-size: 46px; }
    .dqlabs-guide-section h2 { font-size: 24px; }
    h3 { font-size: 18px; }
    /* The theme's inline "h3 { font-size: 35px }" in <head> prints after this file; scope it so DQM's 18px wins */
    .dqlabs-guide-section h3 { font-size: 18px; }
}
.dqlabs-guide-section h3 {
    font-family: var(--content-font) !important;
    letter-spacing: 0;
}

/* ---------- DQM: hero with animated grid ---------- */
.bg-gradient-diagonal { overflow: hidden; position: relative; }
#grid {
    display: grid;
    position: absolute;
    inset: 0;
    grid-template-rows: repeat(auto-fill, 50px);
    grid-template-columns: repeat(auto-fill, 50px);
    z-index: 0;
    pointer-events: none;
}
.cell {
    border: 0.8px solid rgba(164, 171, 178, 0.05);
    background: transparent;
    transition: background-color 0.3s ease;
    z-index: 0;
}
.cell.near-static, .cell.near-hover { background: rgba(164, 171, 178, 0.10); }

/* Guide header (breadcrumb, title, chapter dropdown) sits inside the hero */
.guide-dqm-hero { overflow: visible; }            /* let the chapter dropdown open past the hero */
.guide-dqm-hero > #grid { overflow: hidden; }
.guide-dqm-hero .guide-header { padding: 0; }
.guide-dqm-hero .guide-header__breadcrumbs { margin-bottom: 20px; }
/* Breadcrumb at text-md (body size: 18px desktop / 17px mobile) instead of the partial's text-sm (12px) */
.guide-dqm-hero .guide-header__breadcrumbs.text-sm,
.guide-dqm-hero .guide-header__breadcrumbs.text-sm .item,
.guide-dqm-hero .guide-header__breadcrumbs.text-sm .separator {
    font-size: 18px;
    line-height: 25px;
}
.guide-dqm-hero .guide-header__breadcrumbs .separator { margin: 0 8px; }
@media (max-width: 767px) {
    .guide-dqm-hero .guide-header__breadcrumbs.text-sm,
    .guide-dqm-hero .guide-header__breadcrumbs.text-sm .item,
    .guide-dqm-hero .guide-header__breadcrumbs.text-sm .separator { font-size: 17px; }
}
.guide-dqm-hero .guide-header__title { padding-bottom: 0; margin-bottom: 28px; }
.guide-dqm-hero .guide-header__nav {
    background: transparent;
    padding: 0;
    justify-content: flex-start;
}
.guide-dqm-hero .guide-header__nav-dropdown__header {
    border: 1px solid #e6e9ed;
    border-radius: 10px;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
}
.guide-dqm-hero .guide__nav-btns:empty { display: none; }
/* Single-chapter guide: the chapter dropdown would only list this page */
.guide-dqm-hero--single-chapter .guide-header__nav { display: none; }
.guide-dqm-hero--single-chapter .guide-header__title { margin-bottom: 0; }

/* Image lightbox (Magnific Popup, as on blog posts) */
/* Image popup CSS — exactly as live /data-quality-metrics/ (card images excluded, they don't open) */
button.mfp-close { background: unset; font-size: 28px !important; }
/* No grey box on the ✕ when hovering / clicking (theme button rules add rgb(84,84,84)) */
button.mfp-close:hover,
button.mfp-close:focus,
button.mfp-close:active { background: transparent !important; box-shadow: none !important; }
.dqlabs-guide-section img { cursor: zoom-in; } /* zoom icon (live DQM uses pointer) — user's choice 2026-11-11 */
.dqlabs-guide-section .cta-shortcode img { cursor: auto; }
.mfp-zoom-out-cur, .mfp-zoom-out-cur .mfp-image-holder .mfp-close { cursor: pointer; }

/* ---------- DQM: TOC (same as blog TOC) ---------- */
/* TOC title is a <span> (not <h3>) so the page's heading outline stays as authored; styled like DQM's TOC <h3> */
.guide-dqm-toc-title {
    display: block;
    font-family: "Futura PT", sans-serif;
    font-size: 18px;
    line-height: 21.6px;
    font-weight: 400;
    letter-spacing: 1px;
    color: rgb(26, 26, 26);
    padding-bottom: 15px;
}
.sticky-top { top: 167px; }
#TOC a.active,
#TOC a { border-left: unset; padding: 8px 0; }
.wpttoc-container li { border-bottom: 0; }
#TOC a:hover { padding-left: 4px; }
#TOC a { font-size: 14px; line-height: 20px; transition: padding .3s cubic-bezier(.165, .84, .44, 1); }
#TOC a.active {
    color: #e60000;
    border-left: 0.2rem solid #e60000 !important;
    background: color-mix(in srgb, var(--secondary-color-light) 30%, white);
}
#TOC a.active, #TOC a { padding: 8px 10px; margin-bottom: 5px; }

/* ---------- DQM: tables ---------- */
.single-guide .border-radius { border-radius: 3px; line-height: 25px; }
.dqlabs-card { border-radius: 10px; }
.single-guide table th { color: var(--white); background: var(--secondary-color); }
.single-guide .table-responsive {
    border: 1px solid #e6e9ed;
    border-radius: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    box-shadow: 0 1px 3px rgba(16, 24, 40, .04);
    -webkit-overflow-scrolling: touch;
}
.single-guide table { border: none; margin-bottom: 0; }
.single-guide table th {
    font-weight: 600;
    padding: 14px 18px;
    border: none;
    vertical-align: middle;
    white-space: nowrap;
}
.single-guide table th b { color: inherit; font-weight: 600; }
.single-guide table td {
    padding: 15px;
    border: none;
    border-top: 1px solid #eef0f2;
    vertical-align: top;
    line-height: 25px;
}
.single-guide table tbody tr:first-child td { border-top: none; }
.single-guide table tbody tr:nth-child(even) { background: #f9fafb; }
.single-guide table tbody tr:hover { background: #f4f6f8; }
.single-guide table th,
.single-guide table td { text-align: left; }
.single-guide table td ul { margin: 0; padding-left: 18px; list-style: disc; }
.single-guide table td ul li { margin-bottom: 6px; list-style: disc; text-align: left; }
.single-guide table td ul li:last-child { margin-bottom: 0; }
@media (max-width: 480px) {
    .single-guide table th { padding: 10px 12px; }
    .single-guide table td { padding: 10px 12px; font-size: 14px; }
}

/* ---------- Guide content in the DQM article column ---------- */
/* Section separators, like the <hr class="my-5"> between DQM sections */
.guide-dqm-content > h2 { scroll-margin-top: 150px; }
.guide-dqm-content > h2 ~ h2 {
    border-top: 1px solid var(--bs-border-color, #dee2e6);
    margin-top: 3rem;
    padding-top: 3rem;
}
.guide-dqm-content h2 b,
.guide-dqm-content h3 b { font-weight: inherit; color: inherit; }
.guide-dqm-content h3 { margin-top: 1.5rem; }

/* Images: same rounded, full-width treatment as DQM figures */
.guide-dqm-content img:not(.cta-shortcode img) {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 1.5rem auto .75rem;
    border-radius: 3px;
}
/* Image captions (centred italic paragraph under each image) */
.guide-dqm-content p[style*="text-align: center"] {
    font-size: 14px;
    line-height: 20px;
    color: var(--text-color);
    margin-bottom: 1.5rem;
}

/* "Next-Gen Data Observability" inline card: NOT restyled — it keeps the design from guide.css
   exactly as on live (manager's instruction, 2026-11-11). The rules below only undo this page's
   DQM text sizing / list resets so they don't leak into the card. */
.guide-dqm-content .cta-shortcode .cta-shortcode__icons-list { padding-left: 20px; }

/* User-requested exceptions (2026-11-11), the only intentional changes to the card: */
/* 1. Title at regular weight like the page's other headings (its fw-bold class renders Futura at 700) */
.guide-dqm-content .cta-shortcode__title.fw-bold { font-weight: 400 !important; }
/* 2. Logo the same size as the nav bar logo (87×36 desktop, 84×35 mobile) instead of guide.css's 110px */
.guide-dqm-content .cta-shortcode--large .cta-shortcode__logo { width: 87px; height: auto; }
@media (max-width: 767px) {
    .guide-dqm-content .cta-shortcode--large .cta-shortcode__logo { width: 84px; }
}
@media (min-width: 768px) {
    .guide-dqm-content .cta-shortcode li,
    .guide-dqm-content .cta-shortcode p { font-size: 20px; line-height: 30px; }
}

/* DQM: check-mark list sizing */
.check-list-tick-dark li::before { top: 6px; width: 12px; height: 12px; }
.check-list-tick-dark li { padding-left: 25px; line-height: 25px; }
.guide-dqm-content ul.check-list-tick-dark { padding-left: 0; margin-left: 0; }

.single-guide .guide-content__nav { margin-top: 3rem; }
