/*
  DigitallyLearn (Hub template) (taxonomy-exam_structure.php).
  Newsroom palette via tokens. Cream-and-ink editorial landing-page look.
  Loaded only on is_tax('exam_structure') via dl-modern-loader.php.

  Section roster (in render order):
    .dl-hub-hero          (with .dl-hub-specimen)
    .dl-hub-trust         (4-stat band)
    .dl-hub-pillars       (4-card "What you'll find here")
    .dl-hub-howto         (3-step revision rhythm)
    .dl-hub-subareas      (icon card grid, only if has children)
    .dl-hub-matrix        (coverage matrix table, only if has children)
    .dl-hub-sample        (specimen lesson with PYQ-anchor callout)
    .dl-hub-pyqchart      (PYQ frequency CSS bar chart, only if dl_hub_pyq_chart meta)
    .dl-hub-featured      (deep-dive on dark, only if a curated post exists)
    .dl-hub-crosssell     (Test Series + Daily CA cards)
    .dl-hub-recent        (latest editorial posts, 3-up; only if posts exist)
    .dl-hub-crosspaper    (only if has parent)
    .dl-hub-testimonial   (single quote)
    .dl-hub-faq           (accordion)
    .dl-hub-siblings      (peer pills, only if has parent)
    .dl-hub-cta           (final newsletter band)
    .dl-hub-stickybar     (persistent bottom newsletter bar)
*/

/* Strip Astra archive chrome on hub pages.
   Body bg matches the footer (dark) so any below-footer bleed-through
   (#page padding, etc.) renders dark instead of cream. The hero section
   paints its own paper-warm background, so this does not affect content. */
body.dl-hub-active { background: var(--dl-bg-dark); }

/* Hide Astra parent-theme scroll-to-top: its base SVG points down
   (Astra rotates via CSS that we no longer load). We do not actively
   use it on hub surfaces; if a back-to-top is wanted later, build a
   brand-correct one in dl-footer.php with proper styling. */
body.dl-hub-active #ast-scroll-top { display: none; }
body.dl-hub-active #page,
body.dl-hub-active #content,
body.dl-hub-active .site-content,
body.dl-hub-active main.site-main,
body.dl-hub-active #primary,
body.dl-hub-active .content-area,
body.dl-hub-active .ast-container,
body.dl-hub-active .ast-container-fluid,
body.dl-hub-active .ast-plain-container,
body.dl-hub-active .ast-separate-container,
body.dl-hub-active .ast-full-width-primary-sidebar,
body.dl-hub-active .ast-no-sidebar {
    max-width: none; width: 100%;
    padding: 0; margin: 0;
    background: transparent; box-shadow: none;
    display: block; flex-direction: row; float: none;
}
body.dl-hub-active #secondary,
body.dl-hub-active .widget-area { display: none; }
body.dl-hub-active .entry-header,
body.dl-hub-active .entry-title,
body.dl-hub-active .ast-archive-description,
body.dl-hub-active .ast-archive-header,
body.dl-hub-active .page-header { display: none; }

/* ---------- shared scaffolding ---------- */
.dl-hub { color: var(--dl-ink-soft); font-family: var(--dl-font-body); }
.dl-hub * { box-sizing: border-box; }

/*
  Astra parent theme styles `.entry-content a` and `.site-content a` with
  text-decoration:underline + var(--ast-link-color), which leaks into our
  hub cards (buttons read as black-on-red, dark-section titles vanish).
  Force inheritance at component scope so child colors win.
  Per feedback_astra_overrides_need_important.md (BINDING).
*/
/* Exclude `.dl-hub-btn` so button color rules win. The inherit rule needs
   high specificity to beat Astra defaults on surfaces where Astra still
   loads, but `:not(.dl-hub-btn)` keeps buttons out of the override so
   `.dl-hub-btn--primary { color: var(--dl-paper) }` resolves. */
.dl-hub a:not(.dl-hub-btn),
.dl-hub a:not(.dl-hub-btn):link,
.dl-hub a:not(.dl-hub-btn):visited,
.dl-hub a:not(.dl-hub-btn):hover,
.dl-hub a:not(.dl-hub-btn):focus,
.dl-hub a:not(.dl-hub-btn):active {
    color: inherit;
    text-decoration: none;
}
.dl-hub a.dl-hub-btn { text-decoration: none; }
/* Section-level color floors so children of <a> wrappers render correctly */
.dl-hub-section--paper,
.dl-hub-section--paper-warm,
.dl-hub-trust,
.dl-hub-hero,
.dl-hub-siblings-section { color: var(--dl-ink-soft); }
.dl-hub-section--ink,
.dl-hub-section--dark { color: var(--dl-on-dark); }
.dl-hub-section--ink h2,
.dl-hub-section--ink h3,
.dl-hub-section--ink h4,
.dl-hub-section--dark h2,
.dl-hub-section--dark h3,
.dl-hub-section--dark h4 { color: var(--dl-paper); }
.dl-hub-container { max-width: var(--dl-container-wide); margin: 0 auto; padding: 0 var(--dl-space-6); }
.dl-hub-container--narrow { max-width: 880px; margin: 0 auto; padding: 0 var(--dl-space-6); }
.dl-hub-eb {
    display: inline-block;
    font-size: var(--dl-text-xs);
    font-weight: 700;
    color: var(--dl-accent);
    text-transform: uppercase;
    letter-spacing: var(--dl-tracking-wider);
}
.dl-hub-mono { font-family: 'JetBrains Mono', ui-monospace, 'SF Mono', Consolas, monospace; font-variant-numeric: tabular-nums; }
.dl-hub-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    padding: 12px 20px; font-size: var(--dl-text-base); font-weight: 600;
    border-radius: var(--dl-radius-md);
    transition: background var(--dl-duration-fast) var(--dl-ease),
                border-color var(--dl-duration-fast) var(--dl-ease),
                transform 150ms;
    min-height: 44px; text-decoration: none;
}
.dl-hub-btn--primary { background: var(--dl-accent); color: var(--dl-paper); border: 1px solid var(--dl-accent); }
.dl-hub-btn--primary:hover { background: var(--dl-accent-hover); border-color: var(--dl-accent-hover); }
.dl-hub-btn--ghost { background: transparent; color: var(--dl-ink); border: 1px solid var(--dl-line-strong); }
.dl-hub-btn--ghost:hover { border-color: var(--dl-ink); }
.dl-hub-btn--sm { padding: 9px 16px; min-height: 36px; font-size: 13px; }

/* ---------- 1. HERO ---------- */
.dl-hub-hero {
    background: var(--dl-paper-warm);
    border-bottom: 1px solid var(--dl-line);
    padding: var(--dl-space-16) 0 var(--dl-space-20);
}
.dl-hub-crumb {
    font-size: var(--dl-text-sm);
    color: var(--dl-ink-mute);
    margin-bottom: var(--dl-space-6);
    display: flex; align-items: center; gap: var(--dl-space-1);
    flex-wrap: wrap;
}
.dl-hub-crumb a {
    color: var(--dl-ink-mute);
    text-decoration: none;
    display: inline-block;
    padding: 12px var(--dl-space-2);
    margin: -12px 0;
    min-height: 44px;
    line-height: 20px;
    transition: color var(--dl-duration-fast) var(--dl-ease);
}
.dl-hub-crumb a:hover { color: var(--dl-accent); }
.dl-hub-crumb-sep { color: var(--dl-ink-faint); padding: 0 var(--dl-space-1); }
.dl-hub-crumb-current { color: var(--dl-ink); font-weight: 600; padding: 12px var(--dl-space-2); }

.dl-hub-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: var(--dl-space-12);
    align-items: center;
}
.dl-hub-hero-text { min-width: 0; }
.dl-hub-hero-visual { min-width: 0; position: relative; }
.dl-hub-eyebrow {
    display: inline-block;
    font-size: var(--dl-text-xs);
    font-weight: 700;
    color: var(--dl-accent);
    text-transform: uppercase;
    letter-spacing: var(--dl-tracking-wider);
    margin-bottom: var(--dl-space-3);
}
.dl-hub-title {
    font-family: var(--dl-font-display);
    font-size: clamp(40px, 5.5vw, 60px);
    font-weight: 700;
    letter-spacing: var(--dl-tracking-tight);
    line-height: var(--dl-lh-tight);
    color: var(--dl-ink);
    margin: 0 0 var(--dl-space-4) 0;
}
.dl-hub-title em {
    font-style: italic;
    color: var(--dl-accent);
    font-weight: 600;
}
.dl-hub-intro {
    font-size: 20px;
    color: var(--dl-ink-soft);
    line-height: var(--dl-lh-relaxed);
    max-width: 560px;
    margin: 0 0 var(--dl-space-6) 0;
}
.dl-hub-hero-ctas {
    display: flex; gap: var(--dl-space-3); flex-wrap: wrap;
    margin-bottom: var(--dl-space-8);
}
.dl-hub-stats {
    display: flex; align-items: center; gap: var(--dl-space-6);
    font-size: var(--dl-text-sm); color: var(--dl-ink-mute);
    border-top: 1px solid var(--dl-line);
    padding-top: var(--dl-space-4);
    flex-wrap: wrap;
}
.dl-hub-stat strong { color: var(--dl-ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.dl-hub-stat-sep { color: var(--dl-ink-faint); }

/* ---------- specimen card ---------- */
.dl-hub-specimen {
    background: var(--dl-paper);
    border: 1px solid var(--dl-line);
    border-radius: var(--dl-radius-lg);
    padding: var(--dl-space-6);
    box-shadow: 0 18px 40px rgba(15,15,15,0.07);
    position: relative;
}
.dl-hub-specimen::before {
    content: '';
    position: absolute;
    top: var(--dl-space-5);
    bottom: var(--dl-space-5);
    left: -1px;
    width: 3px;
    background: var(--dl-accent);
    border-top-right-radius: 2px;
    border-bottom-right-radius: 2px;
}
.dl-hub-specimen-meta {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    font-size: var(--dl-text-xs);
    text-transform: uppercase;
    letter-spacing: var(--dl-tracking-wider);
    color: var(--dl-ink-mute);
    margin-bottom: var(--dl-space-3);
    font-weight: 600;
}
.dl-hub-specimen-section { color: var(--dl-accent); font-weight: 700; }
.dl-hub-specimen-title {
    font-family: var(--dl-font-display);
    font-size: var(--dl-text-xl);
    font-weight: 700;
    line-height: var(--dl-lh-snug);
    color: var(--dl-ink);
    margin: 0 0 var(--dl-space-3) 0;
    letter-spacing: var(--dl-tracking-tight);
}
.dl-hub-specimen-rule {
    border: 0;
    border-top: 1px solid var(--dl-line);
    margin: 0 0 var(--dl-space-3) 0;
}
.dl-hub-specimen-sample {
    font-size: var(--dl-text-sm);
    color: var(--dl-ink-soft);
    line-height: var(--dl-lh-relaxed);
    margin: 0 0 var(--dl-space-4) 0;
}
.dl-hub-specimen-topics { list-style: none; margin: 0 0 var(--dl-space-4) 0; padding: 0; }
.dl-hub-specimen-topics li {
    display: flex; align-items: center; gap: var(--dl-space-2);
    font-size: var(--dl-text-sm); color: var(--dl-ink);
    padding: var(--dl-space-2) 0;
    border-bottom: 1px dashed var(--dl-line);
}
.dl-hub-specimen-topics li:last-child { border-bottom: 0; }
.dl-hub-specimen-bullet {
    width: 5px; height: 5px;
    background: var(--dl-accent);
    display: inline-block;
    flex-shrink: 0;
    transform: rotate(45deg);
}
.dl-hub-specimen-footer {
    display: flex; justify-content: space-between; align-items: baseline;
    padding-top: var(--dl-space-3);
    border-top: 1px solid var(--dl-line);
    font-size: var(--dl-text-xs);
    color: var(--dl-ink-mute);
}
.dl-hub-specimen-tag {
    background: var(--dl-accent-soft);
    color: var(--dl-accent);
    padding: 4px var(--dl-space-2);
    border-radius: var(--dl-radius-sm);
    font-weight: 600;
    letter-spacing: var(--dl-tracking-snug);
}
.dl-hub-specimen-est { font-style: italic; color: var(--dl-ink-faint); }

/* ---------- 2. TRUST STRIP ---------- */
.dl-hub-trust {
    background: var(--dl-paper);
    border-bottom: 1px solid var(--dl-line);
    padding: var(--dl-space-6) 0;
}
.dl-hub-trust-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--dl-space-6);
    align-items: center;
}
.dl-hub-trust-item {
    text-align: center;
    padding: 0 var(--dl-space-3);
    border-right: 1px solid var(--dl-line);
}
.dl-hub-trust-item:last-child { border-right: 0; }
.dl-hub-trust-num {
    font-family: var(--dl-font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--dl-ink);
    line-height: 1;
    margin-bottom: 6px;
}
.dl-hub-trust-label {
    font-size: 12px;
    color: var(--dl-ink-mute);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 600;
}

/* ---------- shared section pattern ---------- */
.dl-hub-section { padding: var(--dl-space-20) 0; border-bottom: 1px solid var(--dl-line); }
.dl-hub-section--paper { background: var(--dl-paper); }
.dl-hub-section--paper-warm { background: var(--dl-paper-warm); }
.dl-hub-section--ink { background: var(--dl-bg-newsletter); color: var(--dl-on-dark); }
.dl-hub-section--dark { background: var(--dl-bg-dark); color: var(--dl-on-dark); }
.dl-hub-section-title {
    font-family: var(--dl-font-display);
    font-size: clamp(32px, 3.5vw, 44px);
    font-weight: 700;
    letter-spacing: var(--dl-tracking-tight);
    color: var(--dl-ink);
    margin: 0;
    line-height: var(--dl-lh-tight);
}
.dl-hub-section--ink .dl-hub-section-title,
.dl-hub-section--dark .dl-hub-section-title { color: var(--dl-paper); }
.dl-hub-head--two-col {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--dl-space-12);
    align-items: end;
    margin-bottom: var(--dl-space-12);
}
.dl-hub-head--two-col p {
    font-size: var(--dl-text-lg);
    color: var(--dl-ink-mute);
    line-height: var(--dl-lh-base);
    margin: 0;
}
.dl-hub-section--ink .dl-hub-head--two-col p,
.dl-hub-section--dark .dl-hub-head--two-col p { color: rgba(247,245,240,0.65); }
.dl-hub-head--center {
    text-align: center;
    max-width: 720px;
    margin: 0 auto var(--dl-space-12);
}
.dl-hub-head--center h2 { margin-bottom: var(--dl-space-3); }
.dl-hub-head--center p {
    font-size: var(--dl-text-lg);
    color: var(--dl-ink-mute);
    line-height: var(--dl-lh-base);
    margin: 0;
}
.dl-hub-head--lead { max-width: 760px; margin-bottom: var(--dl-space-12); }
.dl-hub-head--lead h2 { margin-bottom: var(--dl-space-3); }
.dl-hub-head--lead p {
    font-size: var(--dl-text-lg);
    color: var(--dl-ink-mute);
    line-height: var(--dl-lh-base);
    margin: 0;
}

/* ---------- 3. PILLARS ---------- */
.dl-hub-pillars-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--dl-space-6);
}
.dl-hub-pillar {
    background: var(--dl-paper);
    border: 1px solid var(--dl-line);
    border-radius: var(--dl-radius-lg);
    padding: var(--dl-space-6);
    transition: transform var(--dl-duration-base) var(--dl-ease),
                border-color var(--dl-duration-base) var(--dl-ease),
                box-shadow var(--dl-duration-base) var(--dl-ease);
    text-decoration: none; color: inherit; display: block;
}
.dl-hub-pillar:hover {
    transform: translateY(-3px);
    border-color: var(--dl-line-strong);
    box-shadow: 0 12px 32px rgba(15,15,15,0.07);
}
.dl-hub-pillar-num {
    font-family: var(--dl-font-display);
    font-size: 14px;
    font-weight: 700;
    color: var(--dl-accent);
    letter-spacing: 0.04em;
    margin-bottom: var(--dl-space-4);
}
.dl-hub-pillar h3 {
    font-family: var(--dl-font-display);
    font-size: var(--dl-text-xl);
    font-weight: 700;
    color: var(--dl-ink);
    margin: 0 0 var(--dl-space-2);
    line-height: var(--dl-lh-snug);
}
.dl-hub-pillar p {
    font-size: var(--dl-text-sm);
    color: var(--dl-ink-mute);
    line-height: var(--dl-lh-base);
    margin: 0 0 var(--dl-space-4);
}
.dl-hub-pillar-cta {
    font-size: var(--dl-text-sm);
    color: var(--dl-accent);
    font-weight: 600;
}

/* ---------- 4. HOW-TO ---------- */
.dl-hub-howto-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--dl-space-8);
    counter-reset: dl-step;
}
.dl-hub-howto-step {
    background: var(--dl-paper-warm);
    border: 1px solid var(--dl-line);
    border-radius: var(--dl-radius-lg);
    padding: var(--dl-space-10) var(--dl-space-6) var(--dl-space-6);
    position: relative;
    counter-increment: dl-step;
}
.dl-hub-section--paper .dl-hub-howto-step { background: var(--dl-paper-warm); }
.dl-hub-howto-step::before {
    content: counter(dl-step);
    position: absolute;
    top: -22px; left: var(--dl-space-6);
    width: 44px; height: 44px;
    background: var(--dl-accent);
    color: var(--dl-paper);
    display: flex; align-items: center; justify-content: center;
    font-family: var(--dl-font-display);
    font-weight: 700;
    font-size: 20px;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(200,16,46,0.25);
}
.dl-hub-howto-step h3 {
    font-family: var(--dl-font-display);
    font-size: var(--dl-text-xl);
    color: var(--dl-ink);
    margin: 0 0 var(--dl-space-3);
    line-height: var(--dl-lh-snug);
}
.dl-hub-howto-step p {
    font-size: var(--dl-text-base);
    color: var(--dl-ink-mute);
    line-height: var(--dl-lh-base);
    margin: 0 0 var(--dl-space-3);
}
.dl-hub-howto-step a {
    font-size: var(--dl-text-sm);
    color: var(--dl-accent);
    font-weight: 600;
    text-decoration: none;
}

/* ---------- 5. SUB-AREAS GRID ---------- */
.dl-hub-grid {
    display: grid;
    gap: var(--dl-space-6);
    grid-template-columns: repeat(3, 1fr);
}
.dl-hub-card {
    display: block;
    background: var(--dl-paper);
    border: 1px solid var(--dl-line);
    border-radius: var(--dl-radius-lg);
    padding: var(--dl-space-6);
    text-decoration: none;
    color: inherit;
    transition: transform var(--dl-duration-base) var(--dl-ease),
                border-color var(--dl-duration-base) var(--dl-ease),
                box-shadow var(--dl-duration-base) var(--dl-ease);
}
.dl-hub-card:hover {
    transform: translateY(-3px);
    border-color: var(--dl-line-strong);
    box-shadow: 0 12px 32px rgba(15,15,15,0.07);
}
.dl-hub-card:hover .dl-hub-card-icon {
    color: var(--dl-accent);
    border-color: var(--dl-accent);
    background: var(--dl-accent-soft);
}
.dl-hub-card-icon {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 52px; height: 52px;
    margin-bottom: var(--dl-space-4);
    border-radius: var(--dl-radius-md);
    color: var(--dl-ink);
    background: var(--dl-paper-warm);
    border: 1px solid var(--dl-line);
    transition: color var(--dl-duration-base) var(--dl-ease),
                background var(--dl-duration-base) var(--dl-ease),
                border-color var(--dl-duration-base) var(--dl-ease);
}
.dl-hub-card-icon svg { width: 28px; height: 28px; }
.dl-hub-card-name {
    font-family: var(--dl-font-display);
    font-size: var(--dl-text-xl);
    font-weight: 700;
    color: var(--dl-ink);
    margin-bottom: var(--dl-space-2);
}
.dl-hub-card-desc {
    font-size: var(--dl-text-sm);
    color: var(--dl-ink-mute);
    line-height: var(--dl-lh-base);
    margin: 0 0 var(--dl-space-4) 0;
}
.dl-hub-card-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--dl-space-3);
    border-top: 1px solid var(--dl-line);
    font-size: var(--dl-text-xs);
    color: var(--dl-ink-mute);
}
.dl-hub-card-meta strong { color: var(--dl-ink); font-variant-numeric: tabular-nums; }
.dl-hub-card-cta { color: var(--dl-accent); font-weight: 600; }

/* ---------- 6. COVERAGE MATRIX ---------- */
.dl-hub-matrix-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--dl-paper);
    border: 1px solid var(--dl-line);
    border-radius: var(--dl-radius-lg);
    overflow: hidden;
}
.dl-hub-matrix-table thead th {
    text-align: left;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--dl-ink-mute);
    font-weight: 700;
    padding: var(--dl-space-4) var(--dl-space-5);
    background: var(--dl-paper-warm);
    border-bottom: 1px solid var(--dl-line);
}
.dl-hub-matrix-table tbody td {
    padding: var(--dl-space-5);
    border-bottom: 1px solid var(--dl-line);
    font-size: var(--dl-text-base);
    color: var(--dl-ink);
}
.dl-hub-matrix-table tbody tr:last-child td { border-bottom: 0; }
.dl-hub-matrix-table tbody tr:hover { background: var(--dl-paper-warm); }
.dl-hub-matrix-table .cell-name { font-family: var(--dl-font-display); font-weight: 700; }
.dl-hub-matrix-table .cell-name a { color: var(--dl-ink); text-decoration: none; }
.dl-hub-matrix-table .cell-name a:hover { color: var(--dl-accent); }
.dl-hub-matrix-table .cell-name small {
    display: block;
    font-family: var(--dl-font-body);
    font-size: 12px;
    font-weight: 400;
    color: var(--dl-ink-mute);
    margin-top: 2px;
}
.dl-hub-matrix-table .num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
}
.dl-hub-matrix-bar {
    height: 4px;
    background: var(--dl-paper-warm);
    border-radius: 2px;
    overflow: hidden;
    max-width: 120px;
    margin-top: 6px;
}
.dl-hub-matrix-bar-fill { height: 100%; background: var(--dl-accent); border-radius: 2px; }
.dl-hub-matrix-table .cell-updated { font-size: 13px; color: var(--dl-ink-mute); }
.dl-hub-matrix-table .cell-cta { text-align: right; }
.dl-hub-matrix-table .cell-cta a { color: var(--dl-accent); font-size: 13px; font-weight: 600; text-decoration: none; }

/* ---------- 7. SAMPLE LESSON ---------- */
.dl-hub-sample-card {
    background: var(--dl-paper);
    border: 1px solid var(--dl-line-strong);
    border-radius: var(--dl-radius-lg);
    box-shadow: 0 16px 40px rgba(15,15,15,0.06);
    overflow: hidden;
}
.dl-hub-sample-head {
    background: var(--dl-bg-newsletter);
    color: var(--dl-on-dark);
    padding: var(--dl-space-4) var(--dl-space-8);
    display: flex; justify-content: space-between; align-items: center;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-weight: 600;
}
.dl-hub-sample-head .dl-hub-sample-pill {
    background: var(--dl-accent);
    color: var(--dl-paper);
    padding: 4px var(--dl-space-2);
    border-radius: var(--dl-radius-sm);
    letter-spacing: 0.06em;
}
.dl-hub-sample-body { padding: var(--dl-space-8) var(--dl-space-10) var(--dl-space-6); }
.dl-hub-sample-body h3 {
    font-family: var(--dl-font-display);
    font-size: 28px;
    font-weight: 700;
    color: var(--dl-ink);
    margin: 0 0 var(--dl-space-4);
    line-height: var(--dl-lh-snug);
}
.dl-hub-sample-body > p {
    font-size: var(--dl-text-md);
    color: var(--dl-ink-soft);
    line-height: 1.7;
    margin: 0 0 var(--dl-space-5);
}
.dl-hub-sample-body h4 {
    font-family: var(--dl-font-display);
    font-size: 17px;
    font-weight: 700;
    color: var(--dl-ink);
    margin: var(--dl-space-6) 0 var(--dl-space-3);
}
.dl-hub-sample-body ul { padding-left: 22px; margin: 0 0 var(--dl-space-5); }
.dl-hub-sample-body ul li {
    font-size: var(--dl-text-base);
    color: var(--dl-ink-soft);
    margin-bottom: var(--dl-space-2);
    line-height: var(--dl-lh-base);
}
.dl-hub-sample-pyq {
    background: var(--dl-accent-soft);
    border-left: 3px solid var(--dl-accent);
    padding: var(--dl-space-4) var(--dl-space-5);
    border-radius: 0 6px 6px 0;
    margin: var(--dl-space-6) 0;
}
.dl-hub-sample-pyq-label {
    font-size: 11px;
    color: var(--dl-accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    margin-bottom: 6px;
}
.dl-hub-sample-pyq p {
    font-family: var(--dl-font-display);
    font-size: 17px;
    color: var(--dl-ink);
    line-height: var(--dl-lh-snug);
    margin: 0;
}
.dl-hub-sample-pyq-tag {
    font-weight: 400;
    color: var(--dl-ink-mute);
    font-size: 13px;
    display: block;
    margin-top: 6px;
}
.dl-hub-sample-foot {
    background: var(--dl-paper-warm);
    padding: var(--dl-space-5) var(--dl-space-10);
    border-top: 1px solid var(--dl-line);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--dl-space-4);
}
.dl-hub-sample-foot p {
    font-size: var(--dl-text-sm);
    color: var(--dl-ink-mute);
    margin: 0;
}

/* ---------- 8. PYQ FREQUENCY CHART ---------- */
.dl-hub-pyqchart-card {
    background: var(--dl-paper-warm);
    border: 1px solid var(--dl-line);
    border-radius: var(--dl-radius-lg);
    padding: var(--dl-space-8) var(--dl-space-10);
}
.dl-hub-pyqchart-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.14em;
    color: var(--dl-ink-mute);
    font-weight: 600;
    margin-bottom: var(--dl-space-6);
    padding-bottom: var(--dl-space-3);
    border-bottom: 1px solid var(--dl-line);
}
.dl-hub-pyqchart-bars { display: flex; flex-direction: column; gap: var(--dl-space-3); }
.dl-hub-pyqchart-row {
    display: grid;
    grid-template-columns: 220px 1fr 60px;
    gap: var(--dl-space-4);
    align-items: center;
}
.dl-hub-pyqchart-label { font-size: var(--dl-text-base); color: var(--dl-ink); font-weight: 500; }
.dl-hub-pyqchart-bar {
    height: 22px;
    background: var(--dl-paper);
    border: 1px solid var(--dl-line);
    border-radius: var(--dl-radius-md);
    overflow: hidden;
    position: relative;
}
.dl-hub-pyqchart-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--dl-accent) 0%, #e63a55 100%);
    border-radius: var(--dl-radius-md);
}
.dl-hub-pyqchart-num {
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--dl-ink);
    text-align: right;
    font-size: var(--dl-text-base);
}
.dl-hub-pyqchart-foot {
    margin-top: var(--dl-space-6);
    padding-top: var(--dl-space-4);
    border-top: 1px solid var(--dl-line);
    display: flex;
    justify-content: space-between;
    font-size: var(--dl-text-sm);
    color: var(--dl-ink-mute);
    flex-wrap: wrap;
    gap: var(--dl-space-3);
}
.dl-hub-pyqchart-foot strong { color: var(--dl-ink); }
.dl-hub-pyqchart-foot a { color: var(--dl-accent); font-weight: 600; text-decoration: none; }

/* ---------- 9. FEATURED DEEP-DIVE ---------- */
.dl-hub-featured-grid {
    display: grid;
    grid-template-columns: 1.3fr 1fr;
    gap: var(--dl-space-12);
    align-items: center;
}
.dl-hub-section--ink .dl-hub-eb { color: var(--dl-paper-warm); opacity: 0.7; }
.dl-hub-featured h2 {
    font-family: var(--dl-font-display);
    font-size: clamp(34px, 4vw, 50px);
    color: var(--dl-paper);
    line-height: 1.15;
    margin: var(--dl-space-4) 0 var(--dl-space-4);
}
.dl-hub-featured-lede {
    font-size: 18px;
    color: rgba(247,245,240,0.75);
    line-height: var(--dl-lh-relaxed);
    margin: 0 0 var(--dl-space-6);
    max-width: 520px;
}
.dl-hub-featured-meta {
    display: flex; gap: var(--dl-space-4);
    font-size: var(--dl-text-sm);
    color: rgba(247,245,240,0.6);
    margin-bottom: var(--dl-space-6);
}
.dl-hub-featured-thumb {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #2a2421, #15110f);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--dl-radius-lg);
    position: relative;
    overflow: hidden;
    box-shadow: 0 28px 64px rgba(0,0,0,0.5);
}
.dl-hub-featured-thumb::before {
    content: "";
    position: absolute;
    top: var(--dl-space-6);
    left: var(--dl-space-6);
    right: var(--dl-space-6);
    height: 3px;
    background: var(--dl-accent);
}
.dl-hub-featured-thumb-content {
    position: absolute;
    inset: var(--dl-space-6);
    display: flex;
    flex-direction: column;
    padding: 38px 0 var(--dl-space-5);
}
.dl-hub-featured-thumb-tag {
    font-size: 11px;
    color: rgba(247,245,240,0.5);
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: var(--dl-space-3);
}
.dl-hub-featured-thumb-title {
    font-family: var(--dl-font-display);
    color: var(--dl-paper);
    font-size: 24px;
    line-height: var(--dl-lh-snug);
}
.dl-hub-featured-thumb-bottom {
    margin-top: auto;
    font-size: 11px;
    color: rgba(247,245,240,0.4);
    padding-top: var(--dl-space-4);
    border-top: 1px solid rgba(247,245,240,0.1);
}
.dl-hub-featured-thumb-img {
    width: 100%; height: 100%;
    object-fit: cover; display: block;
}

/* ---------- 10. CROSS-SELL ---------- */
.dl-hub-crosssell-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--dl-space-6);
}
.dl-hub-crosssell-card {
    background: var(--dl-paper-warm);
    border: 1px solid var(--dl-line);
    border-radius: var(--dl-radius-lg);
    padding: var(--dl-space-8);
    transition: border-color var(--dl-duration-base) var(--dl-ease),
                box-shadow var(--dl-duration-base) var(--dl-ease);
    display: block;
    color: inherit;
    text-decoration: none;
}
.dl-hub-crosssell-card:hover {
    border-color: var(--dl-accent);
    box-shadow: 0 12px 32px rgba(15,15,15,0.06);
}
.dl-hub-crosssell-tag {
    display: inline-block;
    font-size: 11px;
    color: var(--dl-accent);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-weight: 700;
    margin-bottom: var(--dl-space-4);
}
.dl-hub-crosssell-card h3 {
    font-family: var(--dl-font-display);
    font-size: 24px;
    color: var(--dl-ink);
    margin: 0 0 var(--dl-space-3);
    line-height: var(--dl-lh-snug);
}
.dl-hub-crosssell-card p {
    font-size: var(--dl-text-base);
    color: var(--dl-ink-mute);
    line-height: var(--dl-lh-base);
    margin: 0 0 var(--dl-space-5);
}
.dl-hub-crosssell-card .arrow {
    font-size: var(--dl-text-sm);
    color: var(--dl-accent);
    font-weight: 600;
}

/* ---------- 11. RECENT POSTS ---------- */
.dl-hub-recent-head {
    display: flex;
    justify-content: space-between;
    align-items: end;
    margin-bottom: var(--dl-space-12);
    flex-wrap: wrap;
    gap: var(--dl-space-4);
}
.dl-hub-recent-link {
    font-size: var(--dl-text-sm);
    color: var(--dl-accent);
    font-weight: 600;
    text-decoration: none;
}
.dl-hub-recent-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--dl-space-6);
}
.dl-hub-post {
    background: var(--dl-paper);
    border: 1px solid var(--dl-line);
    border-radius: var(--dl-radius-lg);
    overflow: hidden;
    transition: transform var(--dl-duration-base) var(--dl-ease),
                border-color var(--dl-duration-base) var(--dl-ease),
                box-shadow var(--dl-duration-base) var(--dl-ease);
    display: block; color: inherit; text-decoration: none;
}
.dl-hub-post:hover {
    transform: translateY(-3px);
    border-color: var(--dl-line-strong);
    box-shadow: 0 12px 32px rgba(15,15,15,0.07);
}
.dl-hub-post-thumb {
    aspect-ratio: 1200 / 630;
    background: linear-gradient(135deg, var(--dl-paper-soft), var(--dl-line));
    position: relative;
    overflow: hidden;
}
.dl-hub-post-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dl-hub-post-body { padding: var(--dl-space-5) var(--dl-space-5) var(--dl-space-6); }
.dl-hub-post-cat {
    font-size: 11px;
    color: var(--dl-accent);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: var(--dl-space-3);
}
.dl-hub-post-title {
    font-family: var(--dl-font-display);
    font-size: var(--dl-text-lg);
    line-height: var(--dl-lh-snug);
    color: var(--dl-ink);
    margin: 0 0 var(--dl-space-2);
    font-weight: 700;
}
.dl-hub-post-excerpt {
    font-size: var(--dl-text-sm);
    color: var(--dl-ink-mute);
    line-height: var(--dl-lh-base);
    margin: 0 0 var(--dl-space-3);
}
.dl-hub-post-meta {
    font-size: 12px;
    color: var(--dl-ink-faint);
    font-variant-numeric: tabular-nums;
}

/* ---------- 12. CROSS-PAPER ---------- */
.dl-hub-crosspaper-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--dl-space-5);
}
.dl-hub-crosspaper-card {
    background: rgba(247,245,240,0.04);
    border: 1px solid rgba(247,245,240,0.12);
    border-radius: var(--dl-radius-md);
    padding: var(--dl-space-6);
    transition: border-color var(--dl-duration-base) var(--dl-ease),
                background var(--dl-duration-base) var(--dl-ease);
    display: block; color: inherit; text-decoration: none;
}
.dl-hub-crosspaper-card:hover { border-color: var(--dl-accent); background: rgba(247,245,240,0.06); }
.dl-hub-crosspaper-tag {
    display: inline-block;
    font-family: 'JetBrains Mono', ui-monospace, monospace;
    font-size: 11px;
    color: var(--dl-accent);
    font-weight: 600;
    letter-spacing: 0.06em;
    margin-bottom: var(--dl-space-3);
    padding: 3px var(--dl-space-2);
    background: rgba(200,16,46,0.1);
    border-radius: 3px;
}
.dl-hub-crosspaper-card h4 {
    font-family: var(--dl-font-display);
    font-size: 18px;
    color: var(--dl-paper);
    margin: 0 0 var(--dl-space-2);
    line-height: var(--dl-lh-snug);
}
.dl-hub-crosspaper-card p {
    font-size: 13px;
    color: rgba(247,245,240,0.6);
    margin: 0 0 var(--dl-space-3);
    line-height: 1.55;
}
.dl-hub-crosspaper-card-cta { font-size: 13px; color: var(--dl-paper); font-weight: 600; }

/* ---------- 13. TESTIMONIAL ---------- */
.dl-hub-testimonial { text-align: center; }
.dl-hub-testimonial blockquote {
    font-family: var(--dl-font-display);
    font-size: clamp(24px, 2.6vw, 32px);
    font-weight: 500;
    line-height: 1.4;
    color: var(--dl-ink);
    max-width: 780px;
    margin: 0 auto var(--dl-space-6);
    font-style: italic;
    letter-spacing: var(--dl-tracking-snug);
}
.dl-hub-testimonial blockquote::before {
    content: open-quote;
    font-size: 80px;
    line-height: 0;
    color: var(--dl-accent);
    display: block;
    height: 30px;
}
.dl-hub-testimonial cite {
    display: block;
    font-style: normal;
    font-size: var(--dl-text-sm);
    color: var(--dl-ink-mute);
}
.dl-hub-testimonial cite strong { color: var(--dl-ink); font-weight: 600; }

/* ---------- 14. FAQ ---------- */
.dl-hub-faq-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: var(--dl-space-16);
    align-items: start;
}
.dl-hub-faq-head h2 { margin-bottom: 0; }
.dl-hub-faq-head p {
    font-size: var(--dl-text-lg);
    color: var(--dl-ink-mute);
    line-height: var(--dl-lh-base);
    margin: var(--dl-space-4) 0 0;
}
.dl-hub-faq-list details {
    border-bottom: 1px solid var(--dl-line);
    padding: var(--dl-space-5) 0;
}
.dl-hub-faq-list details:first-child { border-top: 1px solid var(--dl-line); }
.dl-hub-faq-list summary {
    font-family: var(--dl-font-display);
    font-size: var(--dl-text-lg);
    font-weight: 600;
    color: var(--dl-ink);
    cursor: pointer;
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: var(--dl-space-4);
}
.dl-hub-faq-list summary::-webkit-details-marker { display: none; }
.dl-hub-faq-list summary::after {
    content: "+";
    font-family: var(--dl-font-body);
    color: var(--dl-accent);
    font-weight: 400;
    font-size: 24px;
}
.dl-hub-faq-list details[open] summary::after { content: "-"; }
.dl-hub-faq-list p {
    font-size: var(--dl-text-base);
    color: var(--dl-ink-soft);
    line-height: var(--dl-lh-relaxed);
    margin: var(--dl-space-3) 0 0;
}

/* ---------- 15. SIBLINGS ---------- */
.dl-hub-siblings-section { padding: var(--dl-space-16) 0; background: var(--dl-paper); border-bottom: 1px solid var(--dl-line); }
.dl-hub-siblings-label {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    color: var(--dl-ink-mute);
    font-weight: 600;
    margin-bottom: var(--dl-space-5);
}
.dl-hub-pills {
    display: flex; flex-wrap: wrap; gap: var(--dl-space-2);
}
.dl-hub-pill {
    display: inline-flex;
    align-items: center;
    padding: var(--dl-space-3) var(--dl-space-5);
    background: var(--dl-paper-warm);
    border: 1px solid var(--dl-line);
    border-radius: var(--dl-radius-pill);
    font-size: var(--dl-text-sm);
    color: var(--dl-ink);
    font-weight: 500;
    text-decoration: none;
    transition: border-color var(--dl-duration-fast) var(--dl-ease),
                color var(--dl-duration-fast) var(--dl-ease);
    min-height: 44px;
    line-height: 28px;
}
.dl-hub-pill:hover { border-color: var(--dl-accent); color: var(--dl-accent); }

/* ---------- 16. FINAL CTA ---------- */
.dl-hub-cta { text-align: center; padding: var(--dl-space-20) 0; }
.dl-hub-cta h2 {
    font-family: var(--dl-font-display);
    font-size: clamp(32px, 4vw, 50px);
    color: var(--dl-paper);
    margin: 0 0 var(--dl-space-4) 0;
    line-height: var(--dl-lh-tight);
}
.dl-hub-cta p {
    font-size: var(--dl-text-lg);
    color: rgba(247,245,240,0.7);
    max-width: 560px;
    margin: 0 auto var(--dl-space-8) auto;
}
.dl-hub-cta-form {
    display: flex; gap: var(--dl-space-2);
    max-width: 480px; margin: 0 auto;
    flex-wrap: wrap; justify-content: center;
}
.dl-hub-cta-input {
    flex: 1 1 240px;
    padding: var(--dl-space-3) var(--dl-space-4);
    border: 1px solid var(--dl-line-on-dark);
    background: rgba(247,245,240,0.06);
    color: var(--dl-on-dark);
    border-radius: var(--dl-radius-md);
    font-size: var(--dl-text-base);
    min-height: 44px;
}
.dl-hub-cta-input::placeholder { color: rgba(247,245,240,0.5); }
.dl-hub-cta-input:focus {
    outline: 2px solid var(--dl-accent);
    outline-offset: 2px;
    background: rgba(247,245,240,0.10);
}
.dl-hub-cta-button {
    padding: var(--dl-space-3) var(--dl-space-6);
    background: var(--dl-accent);
    color: var(--dl-paper);
    border: 1px solid var(--dl-accent);
    border-radius: var(--dl-radius-md);
    font-size: var(--dl-text-base);
    font-weight: 600;
    cursor: pointer;
    min-height: 44px;
    transition: background var(--dl-duration-fast) var(--dl-ease),
                border-color var(--dl-duration-fast) var(--dl-ease);
}
.dl-hub-cta-button:hover {
    background: var(--dl-accent-hover);
    border-color: var(--dl-accent-hover);
}

/* ---------- 17. STICKY BOTTOM BAR ---------- */
.dl-hub-stickybar {
    position: fixed;
    bottom: 0; left: 0; right: 0;
    background: var(--dl-bg-newsletter);
    color: var(--dl-on-dark);
    padding: var(--dl-space-4) 0;
    box-shadow: 0 -8px 24px rgba(0,0,0,0.18);
    z-index: 90;
}
.dl-hub-stickybar-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: var(--dl-space-4); flex-wrap: wrap;
}
.dl-hub-stickybar-text {
    font-size: var(--dl-text-sm);
    color: rgba(247,245,240,0.85);
}
.dl-hub-stickybar-text strong { color: var(--dl-paper); font-weight: 600; }
.dl-hub-stickybar-form { display: flex; gap: var(--dl-space-2); }
.dl-hub-stickybar-form input {
    padding: var(--dl-space-3) var(--dl-space-4);
    border: 1px solid var(--dl-line-on-dark);
    background: rgba(247,245,240,0.06);
    color: var(--dl-on-dark);
    border-radius: var(--dl-radius-md);
    font-size: var(--dl-text-sm);
    min-width: 200px;
    min-height: 40px;
}
.dl-hub-stickybar-form input::placeholder { color: rgba(247,245,240,0.5); }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
    .dl-hub-hero-grid,
    .dl-hub-head--two-col,
    .dl-hub-recent-head,
    .dl-hub-featured-grid,
    .dl-hub-faq-grid,
    .dl-hub-section--matrix-head { grid-template-columns: 1fr; gap: var(--dl-space-8); }
    .dl-hub-pillars-grid,
    .dl-hub-howto-grid { grid-template-columns: repeat(2, 1fr); }
    .dl-hub-grid,
    .dl-hub-recent-grid,
    .dl-hub-crosspaper-grid { grid-template-columns: repeat(2, 1fr); }
    .dl-hub-crosssell-grid { grid-template-columns: 1fr; }
    .dl-hub-pyqchart-row { grid-template-columns: 1fr 60px; }
    .dl-hub-pyqchart-row .dl-hub-pyqchart-bar { grid-column: 1 / -1; }
    .dl-hub-pyqchart-row .dl-hub-pyqchart-num { grid-row: 1; grid-column: 2; }
    .dl-hub-stickybar-form input { min-width: 180px; }
    .dl-hub-hero-visual { max-width: 480px; }
}
@media (max-width: 768px) {
    .dl-hub-matrix-table thead { display: none; }
    .dl-hub-matrix-table tbody td { display: block; padding: 8px var(--dl-space-5); border-bottom: 0; }
    .dl-hub-matrix-table tbody td.cell-name { padding-top: var(--dl-space-5); font-size: 18px; }
    .dl-hub-matrix-table tbody tr {
        border-bottom: 1px solid var(--dl-line);
        padding-bottom: var(--dl-space-3);
        display: block;
    }
    .dl-hub-matrix-table tbody tr:last-child { border-bottom: 0; }
}
@media (max-width: 600px) {
    .dl-hub-pillars-grid,
    .dl-hub-howto-grid,
    .dl-hub-grid,
    .dl-hub-recent-grid,
    .dl-hub-crosspaper-grid { grid-template-columns: 1fr; }
    .dl-hub-trust-row { grid-template-columns: 1fr 1fr; gap: var(--dl-space-4) 0; }
    .dl-hub-trust-item { border-right: 0; padding: var(--dl-space-3) 0; border-bottom: 1px solid var(--dl-line); }
    .dl-hub-trust-item:last-child { border-bottom: 0; }
    .dl-hub-hero { padding: var(--dl-space-10) 0 var(--dl-space-12); }
    .dl-hub-section { padding: var(--dl-space-12) 0; }
    .dl-hub-siblings-section { padding: var(--dl-space-10) 0; }
    .dl-hub-cta-form,
    .dl-hub-stickybar-form { flex-direction: column; width: 100%; }
    .dl-hub-stickybar-form input { width: 100%; min-width: 0; }
    .dl-hub-featured-thumb { aspect-ratio: 16/10; }
    .dl-hub-sample-body { padding: var(--dl-space-6); }
    .dl-hub-sample-foot { padding: var(--dl-space-4) var(--dl-space-6); }
    .dl-hub-pyqchart-card { padding: var(--dl-space-6); }
}
