/*
 * QuickHey flagship guides: practical handbook layout.
 * Loaded after css/service-flagship.css on guides/ pages only and scoped to .qgd,
 * so nothing leaks into the shared header, footer or other sections.
 */
.qgd { background: #fff; counter-reset: qgd-chapter; }
.qgd-wrap { width: min(100% - 2.5rem, 76rem); margin-inline: auto; }

/* ---------- Handbook header ---------- */
.qgd-hero { position: relative; background: var(--qsf-navy); color: #dfe6f1; padding: clamp(1.75rem, 1rem + 3vw, 3.4rem) 0 clamp(2rem, 1rem + 3vw, 3rem); overflow: hidden; }
.qgd-hero::after { content: ""; position: absolute; inset: auto -6rem -6rem auto; width: 22rem; height: 22rem; border-radius: 50%; background: radial-gradient(circle, rgba(242, 193, 80, .28), rgba(242, 193, 80, 0) 70%); pointer-events: none; }
.qgd-hero .qsf-crumbs ol { margin-bottom: 1.25rem; }
.qgd-hero .qsf-crumbs a, .qgd-hero .qsf-crumbs span, .qgd-hero .qsf-crumbs li { color: #c9d3e3 !important; }
.qgd-hero-inner { position: relative; z-index: 1; max-width: none; }
.qgd-badges { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; }
.qgd-badge { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border-radius: 6px; background: var(--qsf-saffron); color: var(--qsf-navy) !important; font-size: .76rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; text-decoration: none !important; }
.qgd-badge svg { width: 14px; height: 14px; }
.qgd-badge--ghost { background: transparent; border: 1px solid rgba(255, 255, 255, .35); color: #fff !important; }
.qgd-badge--ghost:hover { border-color: var(--qsf-saffron); }
.qgd-hero h1 { margin-top: 1rem; color: #fff !important; font-size: clamp(2rem, 1.3rem + 2.6vw, 3.05rem); line-height: 1.1; }
.qgd-deck { margin-top: 1.15rem !important; font-size: clamp(1.04rem, 1rem + .3vw, 1.2rem); color: #d3dcea; max-width: none; }
.qgd-deck a { color: var(--qsf-saffron) !important; }
.qgd-meta { margin-top: 1.5rem; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.5rem; font-size: .92rem; color: #c9d3e3; }
.qgd-byline { display: flex; align-items: center; gap: .7rem; }
.qgd-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; flex: none; }
.qgd-byline strong { display: block; color: #fff; font-size: .98rem; }
.qgd-byline strong a { color: #fff !important; text-decoration: none; }
.qgd-meta ul { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin: 0; padding: 0; }
.qgd-meta li { display: inline-flex; align-items: center; gap: .35rem; }
.qgd-meta li + li::before { content: "\00B7"; margin-right: .65rem; color: var(--qsf-saffron); font-weight: 700; }

/* ---------- Layout ---------- */
.qgd-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); }
.qgd-main { min-width: 0; max-width: none; }
.qgd-main > * + * { margin-top: 2.25rem; }

/* "What you'll walk away with" box */
.qgd-walk { border: 2px solid var(--qsf-navy); border-radius: 16px; overflow: hidden; scroll-margin-top: 1.5rem; }
.qgd-walk-head { background: var(--qsf-navy); color: #fff; padding: .9rem 1.4rem; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.qgd-walk-head .qgd-label { color: var(--qsf-saffron); }
.qgd-walk-head h2 { color: #fff !important; font-size: clamp(1.2rem, 1.05rem + .6vw, 1.5rem); margin: 0; }
.qgd-walk-body { padding: clamp(1.1rem, 1rem + 1vw, 1.75rem); background: #fffdf6; }
.qgd-walk-body > * + * { margin-top: 1.1rem; }
.qgd-walk .qsf-definition { font-size: 1.04rem; }
.qgd-outcomes { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem 1.25rem; counter-reset: qgd-out; }
.qgd-outcomes li { counter-increment: qgd-out; display: grid; grid-template-columns: 1.8rem minmax(0, 1fr); gap: .55rem; align-items: start; font-weight: 600; color: var(--qsf-navy); font-size: .96rem; }
.qgd-outcomes li::before { content: counter(qgd-out); width: 1.8rem; height: 1.8rem; border-radius: 6px; display: grid; place-items: center; background: var(--qsf-saffron); color: var(--qsf-navy); font-weight: 800; font-size: .85rem; }
.qgd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; margin: 0; }
.qgd-facts div { border: 1px solid var(--qsf-line); border-radius: 10px; padding: .65rem .8rem; background: #fff; }
.qgd-facts dt { font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--qsf-gold); }
.qgd-facts dd { margin: .2rem 0 0; font-weight: 700; color: var(--qsf-navy); font-size: .93rem; line-height: 1.3; }
.qgd-label { font-size: .74rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--qsf-gold); }

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

/* ---------- Chapters (numbered sections) ---------- */
.qgd-chapter { counter-increment: qgd-chapter; scroll-margin-top: 1.5rem; padding-top: 2.25rem; border-top: 1px dashed var(--qsf-line); }
.qgd .qgd-chapter > * + * { margin-top: 1.75rem; }
.qgd-chapter-head { display: grid; grid-template-columns: 3.4rem minmax(0, 1fr); gap: 1rem; align-items: start; }
.qgd-chapter-head::before { content: counter(qgd-chapter, decimal-leading-zero); width: 3.4rem; height: 3.4rem; border-radius: 12px; display: grid; place-items: center; background: var(--qsf-cream); border: 1px solid rgba(178, 134, 31, .35); color: var(--qsf-gold); font-family: var(--font-heading, inherit); font-size: 1.35rem; font-weight: 700; }
.qgd-chapter-head .qgd-label + h2 { margin-top: .2rem; }
.qgd-chapter h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 2rem); line-height: 1.18; }
.qgd-chapter--plain { counter-increment: none; }
.qgd-chapter--plain .qgd-chapter-head { grid-template-columns: minmax(0, 1fr); }
.qgd-chapter--plain .qgd-chapter-head::before { display: none; }
.qgd-answer { font-size: 1.08rem; line-height: 1.6; color: var(--qsf-ink); background: #f6f8fb; border-radius: 12px; padding: 1.15rem 1.3rem; border-left: 4px solid var(--qsf-navy); }
.qgd-answer strong:first-child { color: var(--qsf-navy); }
.qgd .qgd-prose > * + * { margin-top: 1.15rem; }
.qgd-prose h3, .qgd-chapter h3 { font-size: 1.18rem; }
.qgd-prose p { color: #2d3443; }
.qgd-note { font-size: .96rem; color: var(--qsf-muted); border: 1px dashed var(--qsf-line); border-radius: 12px; padding: .9rem 1.1rem; }

/* Numbered steps: vertical handbook timeline */
.qgd-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; position: relative; }
.qgd-steps li { position: relative; display: grid; grid-template-columns: 2.6rem minmax(0, 1fr); gap: 1rem; padding-bottom: 1.15rem; }
.qgd-steps li::after { content: ""; position: absolute; left: 1.25rem; top: 2.6rem; bottom: 0; width: 2px; background: var(--qsf-line); }
.qgd-steps li:last-child { padding-bottom: 0; }
.qgd-steps li:last-child::after { display: none; }
.qgd-step-num { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--qsf-navy); color: var(--qsf-saffron); font-weight: 800; position: relative; z-index: 1; }
.qgd-steps h3 { font-size: 1.05rem; padding-top: .45rem; }
.qgd-steps p { margin-top: .25rem !important; font-size: .97rem; color: var(--qsf-muted); }

/* Tables */
.qgd-table { margin: 0; }
.qgd-chapter > .qgd-table { margin-top: 1.75rem; }
.qgd-table .qsf-table-wrap { border: 1px solid var(--qsf-line); border-radius: 12px; overflow-x: auto; background: #fff; }
.qgd-table .qsf-table { font-size: .95rem; }
.qgd-table .qsf-table caption {
  text-align: left;
  padding: 1rem 1.2rem;
  font-size: .95rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-transform: none;
  line-height: 1.45;
  color: var(--qsf-navy);
  background: var(--qsf-cream);
  caption-side: top;
}
.qgd-table .qsf-table tbody th { white-space: normal; width: 28%; min-width: 0; }

/* Actionable checklists */
.qgd-check { border: 1px solid var(--qsf-line); border-radius: 14px; padding: 1.2rem 1.35rem; background: #fff; box-shadow: 0 1px 0 rgba(16, 24, 40, .03); }
.qgd-check-head { display: flex; align-items: center; gap: .6rem; }
.qgd-check-head .qgd-label { padding: .2rem .55rem; border-radius: 6px; background: var(--qsf-cream); }
.qgd-check h3 { font-size: 1.08rem; margin-top: .55rem; }
.qgd-check ul { list-style: none; padding: 0; margin: .85rem 0 0; display: grid; gap: .55rem; }
.qgd-check li { display: grid; grid-template-columns: 1.4rem minmax(0, 1fr); gap: .6rem; align-items: start; font-size: .98rem; }
.qgd-box { width: 1.25rem; height: 1.25rem; border: 2px solid var(--qsf-gold-2); border-radius: 4px; display: grid; place-items: center; margin-top: .15rem; color: var(--qsf-gold-2); }
.qgd-box svg { width: 14px; height: 14px; }
.qgd-check--bad .qgd-box { border-color: #b4443c; color: #b4443c; }
.qgd-check--bad .qgd-check-head .qgd-label { background: #fbecea; color: #9b3029; }

/* Callouts: tip, warning, honest note */
.qgd-callout { border-radius: 14px; padding: 1.15rem 1.3rem 1.15rem 3.6rem; position: relative; background: #eef5ff; border: 1px solid #c8dbf5; }
.qgd-callout::before { content: "i"; position: absolute; left: 1.15rem; top: 1.15rem; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--qsf-navy); color: #fff; font-weight: 800; font-family: Georgia, serif; }
.qgd-callout--tip { background: #f2f9ef; border-color: #cfe5c4; }
.qgd-callout--tip::before { content: "\2713"; background: #3b7d2a; font-family: inherit; }
.qgd-callout--warn { background: #fff6ea; border-color: #f1d3a6; }
.qgd-callout--warn::before { content: "!"; background: #b0661a; font-family: inherit; }
.qgd-callout h3 { font-size: 1.05rem; }
.qgd-callout p { margin-top: .4rem !important; font-size: .97rem; color: #2d3443; }

/* Cards */
.qgd-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.qgd-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.qgd-card { border: 1px solid var(--qsf-line); border-top: 3px solid var(--qsf-saffron); border-radius: 12px; padding: 1.05rem 1.15rem; display: flex; flex-direction: column; gap: .45rem; background: #fff; }
.qgd-card h3 { font-size: 1.03rem; }
.qgd-card p { font-size: .94rem; color: var(--qsf-muted); }
.qgd-num { font-size: .78rem; font-weight: 800; letter-spacing: .1em; color: var(--qsf-gold); }

/* FAQ and sources */
.qgd .qsf-faq-item summary h3 { font-size: 1.02rem; }
.qgd-sources { font-size: .86rem; color: var(--qsf-muted); }
.qgd-sources ol { margin: .5rem 0 0; padding-left: 1.2rem; display: grid; gap: .25rem; }

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

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

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

/* ---------- Guides hub ---------- */
.qgd-filters { margin-top: 1.6rem; display: flex; flex-wrap: wrap; gap: .5rem; position: relative; z-index: 1; }
.qgd-filters a { padding: .45rem .9rem; border-radius: 6px; border: 1px solid rgba(255, 255, 255, .3); font-size: .88rem; font-weight: 600; text-decoration: none; color: #fff; }
.qgd-filters a span { color: #b8c4d8; font-weight: 500; margin-left: .3rem; }
.qgd-filters a:hover { border-color: var(--qsf-saffron); }
.qgd-filters a[aria-current] { background: var(--qsf-saffron); border-color: var(--qsf-saffron); color: var(--qsf-navy); }
.qgd-filters a[aria-current] span { color: var(--qsf-navy); }
.qgd-list { min-width: 0; display: grid; gap: 1.75rem; }
.qgd-feature { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1.5rem; align-items: center; border: 2px solid var(--qsf-navy); border-radius: 18px; padding: 1rem; background: #fffdf6; }
.qgd-feature img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 12px; }
.qgd-feature h2 { margin-top: .5rem; font-size: clamp(1.3rem, 1.1rem + 1vw, 1.75rem); }
.qgd-feature h2 a { text-decoration: none; color: var(--qsf-navy); }
.qgd-feature p { margin-top: .55rem !important; color: var(--qsf-muted); }
.qgd-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.1rem; }
.qgd-item { display: flex; flex-direction: column; border: 1px solid var(--qsf-line); border-radius: 14px; overflow: hidden; background: #fff; transition: box-shadow .15s, border-color .15s; }
.qgd-item:hover { box-shadow: var(--qsf-shadow); border-color: rgba(178, 134, 31, .45); }
.qgd-item img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--qsf-biscuit); }
.qgd-item-body { padding: .9rem 1rem 1.05rem; display: flex; flex-direction: column; gap: .45rem; flex: 1; }
.qgd-item h2 { font-size: 1.02rem; line-height: 1.3; }
.qgd-item h2 a { text-decoration: none; color: var(--qsf-navy); }
.qgd-item p { font-size: .9rem; color: var(--qsf-muted); }
.qgd-item-meta { margin-top: auto !important; font-size: .8rem !important; color: var(--qsf-muted); display: flex; justify-content: space-between; gap: .5rem; }
.qgd-tag { display: inline-flex; align-self: flex-start; padding: .2rem .55rem; border-radius: 6px; background: var(--qsf-cream); font-size: .74rem; font-weight: 700; color: var(--qsf-navy); text-decoration: none; }
.qgd-tag--new { background: var(--qsf-navy); color: #fff; }
.qgd-pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: .4rem; }
.qgd-pagination a, .qgd-pagination span { min-width: 2.6rem; padding: .55rem .85rem; border-radius: 8px; border: 1px solid var(--qsf-line); text-align: center; font-weight: 700; font-size: .92rem; text-decoration: none; color: var(--qsf-navy); background: #fff; }
.qgd-pagination a:hover { border-color: var(--qsf-gold-2); }
.qgd-pagination [aria-current] { background: var(--qsf-navy); color: #fff; border-color: var(--qsf-navy); }
.qgd-pagination .is-disabled { color: #a3a9b4; background: #f5f6f8; }
.qgd-empty { padding: 2rem; border: 1px dashed var(--qsf-line); border-radius: 16px; text-align: center; color: var(--qsf-muted); }
.qgd-intro { font-size: .95rem; color: var(--qsf-muted); }
.qgd-hub > * + * { margin-top: 2.25rem; }
.qgd-path { margin: .35rem 0 0; padding-left: 1.2rem; display: grid; gap: .3rem; font-size: .95rem; }
.qgd-path a { color: var(--qsf-navy); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1023px) {
  .qgd-layout { grid-template-columns: minmax(0, 1fr); }
  .qgd-sidebar { position: static; max-height: none; overflow: visible; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .qgd-sidebar .qgd-toc { display: none; }
  .qgd-toc-mobile { display: block; }
  .qgd-main { max-width: none; }
  .qgd-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .qgd-sidebar { grid-template-columns: 1fr; }
  .qgd-outcomes, .qgd-cards, .qgd-cards--3, .qgd-grid, .qgd-pager, .qgd-feature { grid-template-columns: 1fr; }
  .qgd-facts { grid-template-columns: 1fr 1fr; }
  .qgd-pager-next { text-align: left; }
  .qgd-chapter-head { grid-template-columns: 2.6rem minmax(0, 1fr); gap: .75rem; }
  .qgd-chapter-head::before { width: 2.6rem; height: 2.6rem; font-size: 1.05rem; }
  .qgd-callout { padding-left: 1.15rem; padding-top: 3.1rem; }
}
@media (prefers-reduced-motion: reduce) { .qgd-item, .qgd-pager a.qgd-pager-card { transition: none; } }
@media print { .qgd-sidebar, .qgd-pager, .qgd-toc-mobile { display: none; } .qgd-layout { grid-template-columns: 1fr; } .qgd-hero { background: #fff; color: #000; } .qgd-hero h1 { color: #000 !important; } }

/* 4 Dec 2026: the solid navy handbook header read as a dark slab.
   The title now sits on the same cream as the rest of the site.
   The featured image is the breadcrumb band above this header. */
.qgd-hero { background: linear-gradient(180deg, #fff 0%, var(--qsf-cream) 100%); color: var(--qsf-ink); }
.qgd-hero::after { display: none; }
.qgd-hero h1 { color: var(--qsf-navy) !important; }
.qgd-deck { color: var(--qsf-muted); }
.qgd-deck a { color: var(--qsf-gold) !important; }
.qgd-meta { color: var(--qsf-muted); }
.qgd-byline strong, .qgd-byline strong a { color: var(--qsf-navy) !important; }
.qgd-badge--ghost { border-color: rgba(3, 38, 78, .28); color: var(--qsf-navy) !important; }
.qgd-badge--ghost:hover { border-color: var(--qsf-gold); }
.qgd-filters a { border-color: rgba(3, 38, 78, .18); color: var(--qsf-navy); background: #fff; }
.qgd-filters a span { color: var(--qsf-muted); }
.qgd-filters a:hover { border-color: var(--qsf-gold); }
.qgd-feature { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.qgd-feature > * { min-width: 0; }
.qgd-feature img, .qgd-item img { max-width: 100%; }
@media (max-width: 767px) {
  .qgd-feature { grid-template-columns: minmax(0, 1fr); }
}

/* Sidebar, 4 Dec 2026: same column as the blog. No inner scroller,
   and the search field keeps its button on one line. */
.qgd-side, .qgd-sidebar .qgd-toc { min-width: 0; }
.qgd-side-title { padding-bottom: .55rem; border-bottom: 1px solid rgba(18, 24, 38, .08); }
.qgd-sidebar .qeb-search { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .45rem; align-items: stretch; }
.qgd-sidebar .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);
}
.qgd-sidebar .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;
}
.qgd-side-list { gap: 0; }
.qgd-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);
  min-width: 0;
}
.qgd-side-list li:last-child a { border-bottom: 0; padding-bottom: 0; }
.qgd-side-list small { flex: none; white-space: nowrap; }
.qgd-toc a { padding: .45rem .35rem; }
.qgd-side-cta h2, .qgd-side-cta p { overflow-wrap: break-word; }
.qgd-side-cta .qsf-btn { white-space: normal; text-align: center; }
@media (max-width: 1023px) {
  .qgd-sidebar > :first-child, .qgd-sidebar .qgd-side-cta { grid-column: 1 / -1; }
}

/* TL;DR, 4 Dec 2026: one sentence, one rate list, then the notes.
   The old box stacked a gold rule, a two-column numbered grid and six
   separate tiles, so the same figures appeared three times. */
.qgd-walk { border-width: 1px; border-color: var(--qsf-line); background: #fff; }
.qgd-walk-body {
  display: grid;
  gap: 1.15rem;
  padding: 1.25rem 1.35rem 1.35rem;
  background: #fff;
}
.qgd-walk-body > * + * { margin-top: 0; }
.qgd-walk .qsf-definition {
  margin: 0 !important;
  padding: 0;
  border: 0;
  max-width: none;
  font-size: .98rem;
  line-height: 1.55;
  color: var(--qsf-muted);
}
.qgd-walk-body > .qgd-facts { order: 2; }
.qgd-walk-body > .qgd-label { order: 3; margin: .15rem 0 0; }
.qgd-walk-body > .qgd-outcomes { order: 4; }
.qgd-facts {
  grid-template-columns: 1fr;
  gap: 0;
  border: 0;
  border-radius: 0;
  border-top: 1px solid var(--qsf-line);
  border-bottom: 1px solid var(--qsf-line);
}
.qgd-facts div {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(8rem, .9fr);
  gap: .35rem 1.25rem;
  align-items: baseline;
  padding: .72rem 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  border-bottom: 1px solid rgba(18, 24, 38, .08);
}
.qgd-facts div:last-child { border-bottom: 0; padding-bottom: .15rem; }
.qgd-facts div:first-child { padding-top: .85rem; }
.qgd-facts dt {
  font-size: .92rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--qsf-navy);
  line-height: 1.35;
}
.qgd-facts dd {
  margin: 0;
  text-align: right;
  font-family: var(--font-heading, inherit);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.qgd-outcomes { grid-template-columns: 1fr; gap: .45rem; }
.qgd-outcomes li { font-weight: 500; font-size: .95rem; align-items: center; color: #2d3443; }
.qgd-outcomes li::before { width: 1.45rem; height: 1.45rem; border-radius: 999px; font-size: .75rem; }
@media (max-width: 767px) {
  .qgd-facts { grid-template-columns: 1fr; }
  .qgd-facts div { grid-template-columns: minmax(0, 1fr); gap: .15rem; }
  .qgd-facts dd { text-align: left; }
}

/* Desktop sidebar stays in the column while the article scrolls.
   A tall sidebar uses a negative top (set in guide-editorial.js) so it
   still moves with the page until its bottom reaches the screen. */
@media (min-width: 1024px) {
  /* overflow-x: clip on .qsf would trap the sticky sidebar inside the page. */
  .qsf.qgd { overflow-x: visible; }
  .qgd-layout { align-items: start; }
  .qgd-sidebar {
    position: sticky;
    top: 1.25rem;
    align-self: start;
    height: max-content;
    z-index: 2;
  }
}
