/*
 * QuickHey editorial blog layer. Loaded after css/service-flagship.css on blog pages only.
 * Scoped to .qeb so nothing leaks into the header, footer or other sections.
 */
.qeb { background: #fff; }
.qeb-wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }

/* ---------- Article header ---------- */
.qeb-hero { background: linear-gradient(180deg, var(--qsf-cream) 0%, #fff 100%); border-bottom: 1px solid var(--qsf-line); padding: clamp(1.75rem, 1rem + 3vw, 3.25rem) 0 clamp(1.75rem, 1rem + 2vw, 2.5rem); }
.qeb-hero .qsf-crumbs ol { margin-bottom: 1.25rem; }
.qeb-hero-inner { max-width: none; }
.qeb-badge { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .8rem; border-radius: 999px; background: var(--qsf-navy); color: #fff !important; font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; text-decoration: none !important; }
.qeb-badge:hover { background: var(--qsf-gold); }
.qeb-badge--light { background: var(--qsf-biscuit); color: var(--qsf-navy) !important; }
.qeb h1 { margin-top: 1rem; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); line-height: 1.1; }
.qeb-deck { margin-top: 1.15rem !important; font-size: clamp(1.05rem, 1rem + .3vw, 1.22rem); color: var(--qsf-muted); max-width: none; }
.qeb-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; font-size: .92rem; color: var(--qsf-muted); }
.qeb-byline { display: flex; align-items: center; gap: .7rem; }
.qeb-avatar { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--qsf-saffron); color: var(--qsf-navy); font-weight: 800; font-size: .95rem; letter-spacing: .02em; }
.qeb-byline strong { display: block; color: var(--qsf-navy); font-size: .98rem; }
.qeb-byline strong a { text-decoration: none; }
.qeb-meta ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; padding: 0; }
.qeb-meta li + li::before { content: "\00B7"; margin-right: 1rem; color: var(--qsf-gold-2); font-weight: 700; }

/* ---------- Two-column layout ---------- */
.qeb-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(18rem, 22.5rem); gap: clamp(1.5rem, 3vw, 2.75rem); align-items: start; padding: clamp(2rem, 1.5rem + 2vw, 3.25rem) 0 clamp(3rem, 2rem + 3vw, 4.5rem); }
.qeb-article { min-width: 0; max-width: none; }
.qeb .qeb-article > * + * { margin-top: 2.25rem; }

/* Figure */
.qeb-figure { margin: 0; }
.qeb-figure img { width: 100%; border-radius: 18px; aspect-ratio: 16 / 9; object-fit: cover; background: var(--qsf-biscuit); box-shadow: var(--qsf-shadow); }
.qeb-figure figcaption { margin-top: .6rem; font-size: .85rem; color: var(--qsf-muted); }

/* TL;DR */
.qeb-tldr { background: var(--qsf-cream); border: 1px solid rgba(178, 134, 31, .35); border-radius: 18px; padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); scroll-margin-top: 1.5rem; }
.qeb-label { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--qsf-gold); }
.qeb-tldr h2 { margin-top: .35rem; font-size: clamp(1.3rem, 1.1rem + .8vw, 1.65rem); }
.qeb-tldr .qsf-definition { font-size: 1.05rem; }
.qeb-takeaways { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem 1.25rem; }
.qeb-takeaways li { display: flex; gap: .5rem; align-items: flex-start; font-size: .95rem; font-weight: 600; color: var(--qsf-navy); }
.qeb-takeaways svg, .qeb-check li svg { color: var(--qsf-gold-2); margin-top: .2rem; }
.qeb-glance { margin-top: 1.25rem !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }

/* Mobile table of contents */
.qeb-toc-mobile { display: none; border: 1px solid var(--qsf-line); border-radius: 14px; background: #fff; }
.qeb-toc-mobile summary { cursor: pointer; padding: .9rem 1.1rem; font-weight: 700; color: var(--qsf-navy); }
.qeb-toc-mobile ol { margin: 0; padding: 0 1.1rem 1rem 2.2rem; display: grid; gap: .4rem; font-size: .95rem; }

/* Sections and prose */
.qeb-section { scroll-margin-top: 1.5rem; padding-top: 2.25rem; border-top: 1px solid var(--qsf-line); }
.qeb .qeb-section > * + * { margin-top: 1.5rem; }
.qeb-eyebrow { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--qsf-gold); }
.qeb-section .qeb-eyebrow + h2 { margin-top: .35rem; }
.qeb-section h2 { font-size: clamp(1.5rem, 1.2rem + 1.1vw, 2.05rem); line-height: 1.18; }
.qeb-lede { font-size: 1.12rem; color: var(--qsf-ink); padding-left: 1rem; border-left: 4px solid var(--qsf-saffron); }
.qeb .qeb-prose > * + * { margin-top: 1.15rem; }
.qeb-prose h3, .qeb-section h3 { font-size: 1.2rem; }
.qeb-prose p { color: #2d3443; }
.qeb-note { font-size: .97rem; color: var(--qsf-muted); background: #f7f8fa; border-radius: 12px; padding: .9rem 1.1rem; }

/* Tables */
.qeb-table { margin: 0; }
.qeb-table .qsf-table-wrap { border: 1px solid var(--qsf-line); border-radius: 16px; overflow-x: auto; background: #fff; }
.qeb-table .qsf-table { font-size: .93rem; }
.qeb-table .qsf-table tbody th { white-space: normal; min-width: 9rem; }

/* Checklists */
.qeb-check { background: #fff; border: 1px solid var(--qsf-line); border-left: 4px solid var(--qsf-gold-2); border-radius: 14px; padding: 1.2rem 1.35rem; }
.qeb-check--bad { border-left-color: #b4443c; }
.qeb-check--bad li svg { color: #b4443c; }
.qeb-check h3 { font-size: 1.08rem; }
.qeb-check > p { margin-top: .4rem !important; color: var(--qsf-muted); font-size: .95rem; }
.qeb-check ul { list-style: none; padding: 0; margin: .85rem 0 0; display: grid; gap: .6rem; }
.qeb-check li { display: flex; gap: .6rem; align-items: flex-start; font-size: .98rem; }

/* Cards */
.qeb-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.qeb-cards--1 { grid-template-columns: 1fr; }
.qeb-card { background: #fbfbfc; border: 1px solid var(--qsf-line); border-radius: 14px; padding: 1.15rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; }
.qeb-card h3 { font-size: 1.05rem; }
.qeb-card p { font-size: .95rem; color: var(--qsf-muted); }
.qeb-num { font-family: var(--font-heading, inherit); font-size: 1.4rem; color: var(--qsf-gold-2); line-height: 1; }

/* Steps */
.qeb-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: .85rem; counter-reset: none; }
.qeb-steps li { display: grid; grid-template-columns: 2.4rem minmax(0, 1fr); gap: .9rem; align-items: start; }
.qeb-step-num { width: 2.4rem; height: 2.4rem; border-radius: 50%; display: grid; place-items: center; background: var(--qsf-navy); color: #fff; font-weight: 700; }
.qeb-steps h3 { font-size: 1.05rem; }
.qeb-steps p { margin-top: .2rem !important; font-size: .97rem; color: var(--qsf-muted); }

/* Pull-quote callout */
.qeb-callout { position: relative; background: var(--qsf-navy); color: #e3e9f2; border-radius: 18px; padding: 1.5rem 1.6rem 1.5rem 1.6rem; }
.qeb-callout::before { content: "\201C"; position: absolute; top: -.4rem; right: 1.1rem; font-family: Georgia, serif; font-size: 5rem; line-height: 1; color: var(--qsf-saffron); opacity: .5; }
.qeb-callout h3 { color: #fff !important; font-size: 1.12rem; }
.qeb-callout p { margin-top: .5rem !important; color: #d3dcea; }
.qeb-callout a { color: var(--qsf-saffron) !important; }

/* FAQ and sources */
.qeb .qsf-faq-item summary h3 { font-size: 1.02rem; }
.qeb-sources { font-size: .85rem; color: var(--qsf-muted); }

/* Author box */
.qeb-author-box { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1rem; padding: 1.35rem; border: 1px solid var(--qsf-line); border-radius: 18px; background: var(--qsf-cream); }
.qeb-author-box .qeb-avatar { width: 3.4rem; height: 3.4rem; font-size: 1.1rem; }
.qeb-author-box h2 { font-size: 1.15rem; }
.qeb-author-box p { margin-top: .35rem !important; font-size: .95rem; color: var(--qsf-muted); }

/* Previous / next pagination */
.qeb-pager { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.qeb-pager a.qeb-pager-card { display: flex; flex-direction: column; gap: .35rem; padding: 1.1rem 1.25rem; border: 1px solid var(--qsf-line); border-radius: 16px; text-decoration: none; background: #fff; transition: border-color .15s, box-shadow .15s; }
.qeb-pager a.qeb-pager-card:hover { border-color: var(--qsf-gold-2); box-shadow: var(--qsf-shadow); }
.qeb-pager-next { text-align: right; }
.qeb-pager-dir { font-size: .76rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--qsf-gold); }
.qeb-pager-title { font-family: var(--font-heading, inherit); color: var(--qsf-navy); font-size: 1.02rem; line-height: 1.3; }
.qeb-pager-all { grid-column: 1 / -1; text-align: center; font-weight: 700; }

/* ---------- Sidebar ---------- */
.qeb-sidebar { position: static; min-width: 0; max-height: none; overflow: visible; display: grid; gap: .85rem; align-content: start; }
.qeb-side-card { border: 1px solid var(--qsf-line); border-radius: 16px; padding: 1.1rem 1.15rem; background: #fff; }
.qeb-side-title { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--qsf-gold); margin-bottom: .6rem !important; }
.qeb-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; counter-reset: toc; }
.qeb-toc a { display: block; padding: .32rem .6rem; border-left: 2px solid transparent; border-radius: 0 8px 8px 0; font-size: .9rem; line-height: 1.35; color: var(--qsf-muted); text-decoration: none; }
.qeb-toc a:hover { color: var(--qsf-navy); background: var(--qsf-cream); }
.qeb-toc a.is-active { color: var(--qsf-navy); font-weight: 700; border-left-color: var(--qsf-saffron); background: var(--qsf-cream); }
.qeb-side-cta { background: var(--qsf-navy); color: #d3dcea; border: 0; }
.qeb-side-cta .qeb-side-title { color: var(--qsf-saffron); }
.qeb-side-cta h2 { color: #fff !important; font-size: 1.1rem; }
.qeb-side-cta p { margin-top: .45rem !important; font-size: .9rem; }
.qeb-side-cta .qsf-btn { margin-top: .85rem; width: 100%; justify-content: center; }
.qeb-side-cta a.qeb-side-link { display: block; margin-top: .6rem; text-align: center; color: var(--qsf-saffron) !important; font-size: .88rem; font-weight: 700; }
.qeb-side-author { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: .75rem; align-items: center; }
.qeb-side-author p { font-size: .85rem; color: var(--qsf-muted); }
.qeb-side-author strong a { color: var(--qsf-navy); text-decoration: none; }
.qeb-side-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.qeb-side-list a { font-size: .9rem; line-height: 1.35; text-decoration: none; color: var(--qsf-navy); font-weight: 600; }
.qeb-side-list a:hover { color: var(--qsf-gold); }
.qeb-side-list small { display: block; color: var(--qsf-muted); font-size: .78rem; font-weight: 500; }
.qeb-tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.qeb-tags a { padding: .3rem .7rem; border-radius: 999px; background: var(--qsf-cream); border: 1px solid rgba(178, 134, 31, .3); font-size: .82rem; font-weight: 600; text-decoration: none; color: var(--qsf-navy); }
.qeb-tags a:hover, .qeb-tags a[aria-current] { background: var(--qsf-saffron); }

/* ---------- Blog index ---------- */
.qeb-tabs { margin-top: 1.5rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.qeb-tabs a { padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--qsf-line); background: #fff; font-size: .88rem; font-weight: 600; text-decoration: none; color: var(--qsf-navy); }
.qeb-tabs a span { color: var(--qsf-muted); font-weight: 500; margin-left: .25rem; }
.qeb-tabs a:hover { border-color: var(--qsf-gold-2); }
.qeb-tabs a[aria-current] { background: var(--qsf-navy); border-color: var(--qsf-navy); color: #fff; }
.qeb-tabs a[aria-current] span { color: #c7d2e3; }
.qeb-list { min-width: 0; display: grid; gap: 1.75rem; }
.qeb-feature { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 1.5rem; align-items: center; border: 1px solid var(--qsf-line); border-radius: 22px; padding: 1rem; background: var(--qsf-cream); }
.qeb-feature > * { min-width: 0; }
.qeb-feature img { max-width: 100%; }
.qeb-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 16px; }
.qeb-feature h2 { margin-top: .6rem; font-size: clamp(1.35rem, 1.1rem + 1vw, 1.8rem); }
.qeb-feature p { margin-top: .6rem !important; color: var(--qsf-muted); }
.qeb-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.qeb-post { display: flex; flex-direction: column; border: 1px solid var(--qsf-line); border-radius: 18px; overflow: hidden; background: #fff; transition: box-shadow .15s, border-color .15s; }
.qeb-post:hover { box-shadow: var(--qsf-shadow); border-color: rgba(178, 134, 31, .45); }
.qeb-post img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--qsf-biscuit); }
.qeb-post-body { padding: 1rem 1.15rem 1.2rem; display: flex; flex-direction: column; gap: .5rem; flex: 1; }
.qeb-post h2, .qeb-post h3 { font-size: 1.1rem; line-height: 1.3; }
.qeb-post h2 a, .qeb-post h3 a, .qeb-feature h2 a { text-decoration: none; color: var(--qsf-navy); }
.qeb-post p { font-size: .93rem; color: var(--qsf-muted); }
.qeb-post-meta { margin-top: auto !important; font-size: .82rem !important; color: var(--qsf-muted); }
.qeb-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.qeb-pagination a, .qeb-pagination span { min-width: 2.6rem; padding: .55rem .85rem; border-radius: 10px; border: 1px solid var(--qsf-line); text-align: center; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--qsf-navy); background: #fff; }
.qeb-pagination a:hover { border-color: var(--qsf-gold-2); }
.qeb-pagination [aria-current] { background: var(--qsf-navy); color: #fff; border-color: var(--qsf-navy); }
.qeb-pagination .is-disabled { color: #a3a9b4; background: #f5f6f8; }
.qeb-search { display: flex; gap: .4rem; }
.qeb-search input { flex: 1; min-width: 0; padding: .6rem .75rem; border: 1px solid var(--qsf-line); border-radius: 10px; font: inherit; font-size: .92rem; }
.qeb-search button { padding: .6rem .85rem; border: 0; border-radius: 10px; background: var(--qsf-navy); color: #fff; font-weight: 700; cursor: pointer; }
.qeb-empty { padding: 2rem; border: 1px dashed var(--qsf-line); border-radius: 18px; text-align: center; color: var(--qsf-muted); }
.qeb-intro { font-size: .95rem; color: var(--qsf-muted); }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .qeb-layout { grid-template-columns: minmax(0, 1fr); }
  .qeb-sidebar { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qeb-sidebar .qeb-toc { display: none; }
  .qeb-toc-mobile { display: block; }
  .qeb-article { max-width: none; }
}
@media (max-width: 767px) {
  .qeb-sidebar { grid-template-columns: 1fr; }
  .qeb-takeaways, .qeb-cards, .qeb-grid, .qeb-pager, .qeb-feature { grid-template-columns: 1fr; }
  .qeb-glance { grid-template-columns: 1fr 1fr !important; }
  .qeb-pager-next { text-align: left; }
}
@media (prefers-reduced-motion: reduce) { .qeb-post, .qeb-pager a.qeb-pager-card { transition: none; } }
/* Blog hub: reading tracks below the article grid */
.qeb-hub { display: grid; gap: 0; }
.qeb-track { margin: .35rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .95rem; }
.qeb-track a { color: var(--qsf-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Sidebar, 4 Dec 2026: no inner scroller. The column is part of the page,
   so search, categories and the quote card stay fully visible. */
.qeb-side-card, .qeb-sidebar .qeb-toc { min-width: 0; }
.qeb-side-title { padding-bottom: .55rem; border-bottom: 1px solid rgba(18, 24, 38, .08); }
.qeb-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; align-items: stretch; }
.qeb-search input {
  width: 100%; min-width: 0; min-height: 2.75rem; padding: .55rem .8rem;
  border: 1px solid var(--qsf-line); border-radius: 10px; font: inherit; font-size: .92rem;
  background: #fff; color: var(--qsf-ink);
}
.qeb-search button {
  min-height: 2.75rem; padding: 0 .95rem; border: 0; border-radius: 10px;
  background: var(--qsf-navy); color: #fff; font: inherit; font-weight: 700;
  white-space: nowrap; cursor: pointer;
}
.qeb-side-list { gap: 0; }
.qeb-side-list a {
  display: flex; align-items: baseline; justify-content: space-between; gap: .75rem;
  padding: .55rem 0; border-bottom: 1px solid rgba(18, 24, 38, .08);
}
.qeb-side-list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.qeb-side-list small { flex: none; white-space: nowrap; }
.qeb-side-list a[aria-current] { color: var(--qsf-navy); }
.qeb-side-cta h2, .qeb-side-cta p { overflow-wrap: break-word; }
.qeb-side-cta .qsf-btn { white-space: normal; text-align: center; }
@media (max-width: 1023px) {
  .qeb-sidebar > :first-child, .qeb-sidebar .qeb-side-cta { grid-column: 1 / -1; }
}
