/*
 * Q-Lana Ghost theme styles.
 *
 * Ported from blog-cms/src/render/{chrome,listing,article}.ts so the Ghost blog
 * is visually identical to the 42 hand-built static pages. Generated by
 * tools/extract-theme-css.mjs — see that script before editing by hand.
 */

:root {
  --sapphire: #2E539F; --sapphire-700: #264583; --sapphire-50: #EEF2F9; --sapphire-800: #1E3668;
  --java: #5CC3BC; --java-50: #ECF8F7; --java-700: #26716B;
  --sunglow: #FFC849; --sunglow-50: #FFF8E7; --sunglow-700: #956A0D;
  --plum-50: #F4ECF7; --plum-700: #5C3870;
  --terracotta: #C76E4F; --terracotta-50: #FCEFE9; --terracotta-700: #8C4630;
  --slate: #2C3E50; --steel: #7F8C8D; --mist: #F4F6F8; --canvas: #FFFFFF;
  --gray-200: #E5E9ED; --neutral-200: #CBD2D9; --sapphire-100: #D8E0EE;
  --forest-50: #E8F1EA; --forest-700: #2A5637;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'Segoe UI', Arial, sans-serif; color: var(--slate); background: var(--canvas); line-height: 1.5; -webkit-font-smoothing: antialiased; }
a { color: var(--sapphire); text-decoration: none; }
a:hover { text-decoration: underline; }
.container { max-width: 1280px; margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: 940px; margin: 0 auto; padding: 0 32px; }

/* Header */
header { border-bottom: 1px solid var(--gray-200); background: var(--canvas); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.logo { font-weight: 700; font-size: 22px; color: var(--sapphire); letter-spacing: 0.02em; }
.logo .accent { color: var(--java-700); }
.logo .next { color: var(--steel); font-weight: 500; font-size: 13px; letter-spacing: 0.12em; margin-left: 10px; text-transform: uppercase; }
.main-nav { display: flex; gap: 28px; list-style: none; align-items: center; }
.main-nav > li { position: relative; }
.main-nav > li > a { color: var(--slate); font-size: 15px; font-weight: 500; display: block; padding: 24px 0; }
.main-nav > li > a:hover { color: var(--sapphire); text-decoration: none; }
.main-nav > li > a.is-current { color: var(--sapphire); }
.has-dropdown > a::after { content: ' \25BE'; font-size: 9px; opacity: 0.55; padding-left: 2px; }
.dropdown { display: none; position: absolute; top: 100%; left: -16px; background: var(--canvas); border: 1px solid var(--gray-200); border-top: 2px solid var(--java); min-width: 220px; padding: 8px 0; list-style: none; z-index: 20; }
.dropdown li a { display: block; padding: 10px 20px; color: var(--slate); font-size: 14px; font-weight: 500; }
.dropdown li a:hover { background: var(--mist); color: var(--sapphire); text-decoration: none; }
.dropdown li a.is-current { color: var(--sapphire); background: var(--mist); }
.has-dropdown:hover > .dropdown, .has-dropdown:focus-within > .dropdown { display: block; }

/* Breadcrumb */
.audience-bar { border-bottom: 1px solid var(--gray-200); background: var(--canvas); }
.breadcrumb { font-size: 13px; color: var(--steel); padding: 14px 0; letter-spacing: 0.02em; }
.breadcrumb a { color: var(--steel); }
.breadcrumb a:hover { color: var(--sapphire); }
.breadcrumb .sep { margin: 0 8px; opacity: 0.6; }
.breadcrumb .current { color: var(--sapphire); font-weight: 600; }

/* Section strip */
.section-strip { background: var(--sapphire); color: var(--canvas); }
.section-strip-inner { display: flex; align-items: baseline; gap: 18px; padding: 22px 0; }
.section-strip .num { font-size: 13px; font-weight: 700; letter-spacing: 0.16em; color: var(--sunglow); }
.section-strip .name { font-size: 22px; font-weight: 600; }

/* Footer */
footer { background: var(--slate); color: var(--mist); padding: 36px 0; font-size: 13px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-meta { color: var(--steel); }
.footer-policies { border-top: 1px solid rgba(255,255,255,0.12); margin-top: 24px; padding-top: 18px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; font-size: 12px; width: 100%; }
.footer-policies a { color: var(--steel, #7F8C8D); text-decoration: none; }
.footer-policies a:hover { color: var(--mist, #F4F6F8); text-decoration: underline; }
.footer-policies .sep { color: rgba(255,255,255,0.25); margin: 0 8px; }

@media (max-width: 720px) {
  .container, .container-narrow { padding: 0 22px; }
  .header-inner { height: auto; padding: 14px 0; flex-wrap: wrap; gap: 10px; }
  .main-nav { gap: 14px; flex-wrap: wrap; }
  .main-nav > li > a { padding: 8px 0; font-size: 14px; }
}

/* ------------------------------------------------ listing (index, tag) --- */

/* Hero */
.hero { padding: 56px 0 40px; background: var(--canvas); }
.hero .eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.10em; text-transform: uppercase; color: var(--java-700); margin-bottom: 16px; }
.hero h1 { font-size: 48px; line-height: 1.1; font-weight: 700; color: var(--sapphire); margin-bottom: 18px; letter-spacing: -0.01em; max-width: 880px; }
.hero .lede { font-size: 19px; line-height: 1.55; color: var(--slate); max-width: 820px; }

/* Featured article */
.featured-wrap { padding: 24px 0 56px; }
.featured-card { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 0; background: var(--sapphire-50); border: 1px solid var(--sapphire); border-radius: 8px; overflow: hidden; }
.featured-visual { background: var(--sapphire); color: var(--canvas); padding: 48px 44px; display: flex; flex-direction: column; justify-content: space-between; min-height: 320px; }
.featured-visual .featured-tag { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--sunglow); }
.featured-visual .series-badge { font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; color: rgba(255,255,255,0.85); margin-top: 12px; }
.featured-visual .featured-num { font-size: 96px; font-weight: 700; line-height: 1; color: rgba(255,255,255,0.18); margin-top: 24px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.featured-content { padding: 44px 44px; display: flex; flex-direction: column; justify-content: center; }
.featured-content .topic-chip { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.10em; text-transform: uppercase; padding: 4px 12px; border-radius: 12px; background: var(--sunglow-50); color: var(--sunglow-700); margin-bottom: 14px; align-self: flex-start; }
.featured-content h2 { font-size: 28px; line-height: 1.2; color: var(--sapphire); font-weight: 700; margin-bottom: 14px; letter-spacing: -0.005em; }
.featured-content .deck { font-size: 16px; line-height: 1.6; color: var(--slate); margin-bottom: 20px; }
.featured-content .meta { font-size: 13px; color: var(--steel); margin-bottom: 22px; }
.featured-content .meta strong { color: var(--slate); font-weight: 600; }
.featured-content .meta .dot { margin: 0 8px; opacity: 0.6; }
.featured-content .read-cta { display: inline-flex; align-items: center; gap: 10px; background: var(--java-700); color: white; font-size: 14px; font-weight: 600; padding: 11px 22px; border-radius: 4px; align-self: flex-start; transition: background 150ms ease; }
.featured-content .read-cta:hover { background: var(--sapphire); text-decoration: none; }
.featured-content .read-cta::after { content: ' \2192'; }
@media (max-width: 880px) { .featured-card { grid-template-columns: 1fr; } .featured-visual { min-height: 200px; padding: 32px 28px; } .featured-content { padding: 32px 28px; } }

/* Search + filter bar */
.toolbar { background: var(--mist); border-top: 1px solid var(--gray-200); border-bottom: 1px solid var(--gray-200); padding: 24px 0; position: sticky; top: 72px; z-index: 50; }
.toolbar-inner { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1 1 320px; max-width: 460px; }
.search-wrap input { width: 100%; padding: 11px 14px 11px 38px; border: 1px solid var(--neutral-200); border-radius: 4px; background: var(--canvas); color: var(--slate); font-family: inherit; font-size: 14px; transition: border-color 150ms ease, box-shadow 150ms ease; }
.search-wrap input:focus { outline: none; border-color: var(--sapphire); box-shadow: 0 0 0 3px rgba(46, 83, 159, 0.12); }
.search-wrap::before { content: '\1F50D'; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-size: 14px; opacity: 0.5; pointer-events: none; }
.filter-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 8px 14px; border: 1px solid var(--neutral-200); background: var(--canvas); color: var(--slate); border-radius: 20px; cursor: pointer; font-family: inherit; transition: background 120ms ease, border-color 120ms ease, color 120ms ease; }
.chip:hover { border-color: var(--sapphire); color: var(--sapphire); }
.chip.active { background: var(--sapphire); border-color: var(--sapphire); color: var(--canvas); }
.chip .count { font-weight: 600; opacity: 0.6; margin-left: 4px; font-size: 11px; }
.chip.active .count { opacity: 0.85; }
@media (max-width: 720px) { .toolbar { position: static; } }

/* Articles section */
.articles-section { padding: 56px 0 72px; }
.articles-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 28px; }
.articles-header h2 { font-size: 22px; color: var(--sapphire); font-weight: 700; letter-spacing: -0.005em; }
.articles-header .count-label { font-size: 13px; color: var(--steel); font-weight: 600; letter-spacing: 0.04em; }
.articles-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.article-card { background: var(--canvas); border: 1px solid var(--gray-200); border-radius: 8px; padding: 26px 26px 24px 26px; display: flex; flex-direction: column; transition: border-color 150ms ease, box-shadow 150ms ease; position: relative; }
.article-card::before { content: ''; position: absolute; top: 0; left: 26px; right: 26px; height: 3px; border-radius: 0 0 3px 3px; background: var(--sapphire); }
.article-card.topic-risk::before { background: var(--sapphire); }
.article-card.topic-cc::before { background: var(--sunglow); }
.article-card.topic-lp::before { background: var(--java); }
.article-card.topic-platform::before { background: var(--plum-700); }
.article-card:hover { border-color: var(--sapphire); box-shadow: 0 4px 14px rgba(46, 83, 159, 0.08); text-decoration: none; }
.article-card .a-tag { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 3px 10px; border-radius: 10px; margin-top: 14px; margin-bottom: 12px; align-self: flex-start; }
.article-card.topic-risk .a-tag { background: var(--sapphire-50); color: var(--sapphire-700); }
.article-card.topic-cc .a-tag { background: var(--sunglow-50); color: var(--sunglow-700); }
.article-card.topic-lp .a-tag { background: var(--java-50); color: var(--java-700); }
.article-card.topic-platform .a-tag { background: var(--plum-50); color: var(--plum-700); }
.article-card h3 { font-size: 18px; line-height: 1.3; color: var(--sapphire); font-weight: 700; margin-bottom: 10px; }
.article-card .deck { font-size: 14px; color: var(--slate); line-height: 1.55; margin-bottom: 18px; flex-grow: 1; }
.article-card .series { font-size: 11px; color: var(--steel); font-weight: 600; letter-spacing: 0.06em; margin-bottom: 8px; text-transform: uppercase; }
.article-card .meta { font-size: 12px; color: var(--steel); padding-top: 14px; border-top: 1px solid var(--gray-200); display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.article-card .meta .author { font-weight: 600; color: var(--slate); }
.article-card .meta .read-time { font-style: italic; }
.empty-state { text-align: center; padding: 48px 0; color: var(--steel); font-size: 15px; display: none; }
.empty-state.visible { display: block; }
@media (max-width: 1024px) { .articles-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) { .articles-grid { grid-template-columns: 1fr; } }

/* Cross-ref strip */
.crossref { background: var(--mist); padding: 72px 0; }
.crossref h2 { font-size: 28px; color: var(--sapphire); font-weight: 700; margin-bottom: 8px; letter-spacing: -0.005em; }
.crossref .lede { font-size: 16px; color: var(--steel); margin-bottom: 32px; max-width: 720px; }
.crossref-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.crossref-card { background: var(--canvas); border: 1px solid var(--gray-200); border-radius: 6px; padding: 24px 22px; display: block; color: var(--slate); transition: border-color 150ms ease, box-shadow 150ms ease; }
.crossref-card:hover { border-color: var(--sapphire); box-shadow: 0 4px 14px rgba(46, 83, 159, 0.06); text-decoration: none; }
.crossref-card .label { font-size: 10px; font-weight: 700; letter-spacing: 0.14em; color: var(--steel); text-transform: uppercase; margin-bottom: 10px; }
.crossref-card h4 { font-size: 16px; color: var(--sapphire); font-weight: 700; margin-bottom: 8px; line-height: 1.3; }
.crossref-card p { font-size: 13px; color: var(--slate); line-height: 1.55; margin-bottom: 12px; }
.crossref-card .arrow { font-size: 12px; font-weight: 700; color: var(--java-700); letter-spacing: 0.04em; }
.crossref-card .arrow::after { content: ' \2192'; }
@media (max-width: 1024px) { .crossref-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .crossref-grid { grid-template-columns: 1fr; } }

/* Newsletter */
.newsletter { background: var(--sapphire); color: white; padding: 64px 0; }
.newsletter-inner { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.newsletter h3 { font-size: 26px; font-weight: 700; color: white; margin-bottom: 10px; line-height: 1.25; max-width: 520px; }
.newsletter p { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.6; max-width: 520px; }
.newsletter-form { display: flex; gap: 10px; flex-wrap: wrap; }
.newsletter-form input { flex: 1 1 240px; padding: 13px 14px; border: none; border-radius: 4px; font-family: inherit; font-size: 14px; background: white; color: var(--slate); }
.newsletter-form input:focus { outline: 3px solid var(--sunglow); outline-offset: 1px; }
.newsletter-form button { background: var(--sunglow); color: var(--slate); font-size: 14px; font-weight: 700; padding: 13px 24px; border: none; border-radius: 4px; cursor: pointer; font-family: inherit; transition: background 150ms ease; letter-spacing: 0.04em; }
.newsletter-form button:hover { background: white; }
@media (max-width: 880px) { .newsletter-inner { grid-template-columns: 1fr; gap: 24px; } }

/* Engagement bundle */
.continue-strip { background: var(--sapphire-50); padding: 56px 0; border-top: 1px solid var(--sapphire-100, #D8E0EE); }
.continue-strip .ct-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--sapphire-700); margin-bottom: 8px; }
.continue-strip h3 { font-size: 24px; color: var(--sapphire); font-weight: 700; margin-bottom: 22px; letter-spacing: -0.005em; }
.continue-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.continue-card { background: var(--canvas); border: 1px solid var(--gray-200); border-radius: 6px; padding: 22px 24px; display: flex; gap: 18px; align-items: center; transition: border-color 150ms ease, box-shadow 150ms ease; color: var(--slate); }
.continue-card:hover { border-color: var(--sapphire); box-shadow: 0 4px 14px rgba(46, 83, 159, 0.08); text-decoration: none; }
.continue-card .ct-icon { width: 48px; height: 48px; border-radius: 50%; background: var(--sapphire-50); color: var(--sapphire-700); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; flex-shrink: 0; }
.continue-card.ct-self .ct-icon { background: var(--java-50); color: var(--java-700); }
.continue-card.ct-talk .ct-icon { background: var(--sunglow-50); color: var(--sunglow-700); }
.continue-card .ct-body h4 { font-size: 16px; color: var(--sapphire); font-weight: 700; margin-bottom: 4px; line-height: 1.3; }
.continue-card .ct-body p { font-size: 13px; color: var(--steel); line-height: 1.5; margin: 0; }
.continue-card .ct-arrow { margin-left: auto; color: var(--sapphire); font-size: 18px; font-weight: 700; }
@media (max-width: 720px) { .continue-grid { grid-template-columns: 1fr; } }

.inline-nl { padding: 44px 0; border-top: 4px solid var(--sapphire-700); }
.inline-nl.nl-sme { background: var(--sapphire-50); border-top-color: var(--sapphire-700); }
.inline-nl-inner { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.inline-nl .nl-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 6px; }
.inline-nl.nl-sme .nl-eyebrow { color: var(--sapphire-700); }
.inline-nl h3 { font-size: 22px; color: var(--slate); font-weight: 700; line-height: 1.3; margin-bottom: 8px; }
.inline-nl p { font-size: 14px; color: var(--slate); line-height: 1.55; max-width: 540px; margin-bottom: 0; }
.inline-nl form { display: flex; gap: 10px; flex-wrap: wrap; }
.inline-nl input { flex: 1 1 220px; padding: 12px 14px; border: 1px solid var(--neutral-200); border-radius: 4px; font-family: inherit; font-size: 14px; background: var(--canvas); color: var(--slate); }
.inline-nl button { color: white; font-size: 13px; font-weight: 700; padding: 12px 22px; border: none; border-radius: 4px; cursor: pointer; font-family: inherit; transition: opacity 150ms ease; letter-spacing: 0.04em; text-transform: uppercase; }
.inline-nl.nl-sme button { background: var(--sapphire-700); }
.inline-nl button:hover { opacity: 0.88; }
@media (max-width: 880px) { .inline-nl-inner { grid-template-columns: 1fr; gap: 18px; } }

.brand-anchor { background: var(--sapphire-50); padding: 36px 0; border-top: 1px solid var(--sapphire-100, #D8E0EE); border-bottom: 1px solid var(--sapphire-100, #D8E0EE); text-align: center; }
.brand-anchor .ba-line1 { font-size: 20px; font-weight: 700; color: var(--sapphire-700); letter-spacing: 0.02em; line-height: 1.3; }
.brand-anchor .ba-line2 { font-size: 17px; color: var(--slate); margin-top: 8px; font-style: italic; letter-spacing: 0.01em; line-height: 1.4; }

.engage-bar { background: var(--sapphire-800, #1E3668); color: white; padding: 32px 0; }
.engage-bar-inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.engage-action { display: flex; align-items: center; gap: 14px; padding: 6px 18px 6px 0; border-right: 1px solid rgba(255,255,255,0.18); color: white; transition: opacity 150ms ease; }
.engage-action:last-child { border-right: none; }
.engage-action:hover { opacity: 0.85; text-decoration: none; }
.engage-action .ea-icon { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,0.10); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; color: var(--sunglow); }
.engage-action .ea-text strong { display: block; font-size: 14px; font-weight: 700; color: white; margin-bottom: 2px; }
.engage-action .ea-text span { font-size: 12px; color: rgba(255,255,255,0.7); display: block; line-height: 1.4; }
@media (max-width: 880px) { .engage-bar-inner { grid-template-columns: 1fr; gap: 16px; } .engage-action { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.14); padding: 14px 0; } .engage-action:last-child { border-bottom: none; } }

@media (max-width: 1024px) { .hero h1 { font-size: 38px; } .hero .lede { font-size: 17px; } }
@media (max-width: 720px) { .hero { padding: 36px 0 24px; } .hero h1 { font-size: 30px; } }

/* ---------------------------------------------------------- article --- */

.qlana-article { max-width: 760px; margin: 0 auto; padding: 48px 32px; }
.qlana-article h1 { font-size: 38px; line-height: 1.2; color: var(--sapphire); font-weight: 700; margin-bottom: 14px; letter-spacing: -0.005em; }
.qlana-article .excerpt { font-size: 18px; color: var(--slate); line-height: 1.55; margin-bottom: 20px; }
.qlana-article .meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--steel); border-bottom: 1px solid var(--gray-200); padding-bottom: 16px; margin-bottom: 28px; }
.qlana-article .meta .author { font-weight: 600; color: var(--slate); }
.qlana-article .meta .rt { font-style: italic; }
.qlana-article img.cover { width: 100%; border-radius: 8px; margin-bottom: 28px; }
.qlana-article .body { font-size: 16px; line-height: 1.75; color: var(--slate); }
.qlana-article .body p { margin-bottom: 18px; }
.qlana-article .body h2 { font-size: 24px; color: var(--sapphire); margin: 32px 0 14px; font-weight: 700; }
.qlana-article .body h3 { font-size: 19px; color: var(--sapphire); margin: 24px 0 10px; font-weight: 700; }
.qlana-article .body ul, .qlana-article .body ol { margin: 0 0 18px 22px; }
.qlana-article .body li { margin-bottom: 8px; }
.qlana-article .body a { color: var(--sapphire); text-decoration: underline; }
.qlana-article .body img { max-width: 100%; height: auto; border-radius: 6px; }
.qlana-article .body blockquote { border-left: 3px solid var(--java); padding-left: 18px; margin: 0 0 18px; color: var(--steel); font-style: italic; }
.qlana-article .topic-bar { height: 4px; width: 64px; border-radius: 2px; margin-bottom: 18px; }
.qlana-article .topic-chip { display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; padding: 4px 12px; border-radius: 10px; margin-bottom: 14px; }
.qlana-article .series { font-size: 12px; color: var(--steel); font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 10px; }
.qlana-article .back { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--gray-200); }

/* Related articles */
.related { background: var(--mist); padding: 56px 0; }
.related h2 { font-size: 20px; color: var(--sapphire); font-weight: 700; margin-bottom: 20px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.related-card { background: var(--canvas); border: 1px solid var(--gray-200); border-radius: 6px; padding: 20px 22px; display: block; color: var(--slate); transition: border-color 150ms ease, box-shadow 150ms ease; }
.related-card:hover { border-color: var(--sapphire); box-shadow: 0 4px 14px rgba(46, 83, 159, 0.06); text-decoration: none; }
.related-card .label { font-size: 10px; font-weight: 700; letter-spacing: 0.12em; color: var(--steel); text-transform: uppercase; margin-bottom: 8px; }
.related-card h4 { font-size: 15px; color: var(--sapphire); font-weight: 700; line-height: 1.35; }
@media (max-width: 880px) { .related-grid { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .qlana-article { padding: 32px 22px; } .qlana-article h1 { font-size: 28px; } }

/* -------------------------------------------- Ghost-specific additions --- */

/* Topic colours for the article header (was TOPIC_COLOR in article.ts) */
.qlana-article.topic-risk .topic-bar { background: #2E539F; }
.qlana-article.topic-risk .topic-chip { background: #EEF2F9; color: #264583; }
.qlana-article.topic-cc .topic-bar { background: #FFC849; }
.qlana-article.topic-cc .topic-chip { background: #FFF8E7; color: #956A0D; }
.qlana-article.topic-lp .topic-bar { background: #5CC3BC; }
.qlana-article.topic-lp .topic-chip { background: #ECF8F7; color: #26716B; }
.qlana-article.topic-platform .topic-bar { background: #5C3870; }
.qlana-article.topic-platform .topic-chip { background: #F4ECF7; color: #5C3870; }
/* Fallback matches normalizeTopic()'s default of "risk". */
.qlana-article .topic-bar { background: #2E539F; }
.qlana-article .topic-chip { background: #EEF2F9; color: #264583; }

/* The topic chips in the toolbar are links now, not buttons. */
.filter-chips .chip { text-decoration: none; display: inline-block; }
.filter-chips .chip:hover { text-decoration: none; }
.search-wrap input[readonly] { cursor: pointer; background: var(--canvas); }

/* Pagination */
.qlana-pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 40px; padding-top: 28px; border-top: 1px solid var(--gray-200); }
.qp-link { font-size: 13px; font-weight: 700; letter-spacing: 0.04em; padding: 10px 18px; border: 1px solid var(--neutral-200); border-radius: 4px; color: var(--sapphire); background: var(--canvas); transition: border-color 150ms ease, box-shadow 150ms ease; }
.qp-link:hover { border-color: var(--sapphire); text-decoration: none; box-shadow: 0 4px 14px rgba(46, 83, 159, 0.08); }
.qp-link.is-disabled { color: var(--steel); opacity: 0.45; }
.qp-status { font-size: 13px; color: var(--steel); font-weight: 600; }

/* Ghost's editor cards need a little help inside .body */
.qlana-article .body figure { margin: 0 0 18px; }
.qlana-article .body figure img { max-width: 100%; height: auto; border-radius: 6px; }
.qlana-article .body figcaption { font-size: 13px; color: var(--steel); text-align: center; margin-top: 8px; }
.qlana-article .body .kg-bookmark-card { border: 1px solid var(--gray-200); border-radius: 6px; margin-bottom: 18px; }

/*
 * Koenig wide and full-bleed images. Required by Ghost (gscan errors without
 * them) because the editor offers both widths and they would otherwise render
 * at body width, silently ignoring the author's choice.
 *
 * .body is 760px inside a centred column, so widen with negative margins rather
 * than changing the container.
 */
.qlana-article .body .kg-width-wide { margin-left: -60px; margin-right: -60px; max-width: none; }
.qlana-article .body .kg-width-wide img { width: 100%; }
.qlana-article .body .kg-width-full { margin-left: calc(50% - 50vw); margin-right: calc(50% - 50vw); max-width: 100vw; width: 100vw; }
.qlana-article .body .kg-width-full img { width: 100%; border-radius: 0; }
@media (max-width: 900px) {
  .qlana-article .body .kg-width-wide { margin-left: 0; margin-right: 0; }
}

