/* Insights: the /insights/ hub and every article. Loaded after tools.css, whose building blocks
   (callout, steps, info-cards, tool-table, stat-tiles, checklist, tool-split) articles reuse. */
.insight-hero, .insights-hero { background: radial-gradient(120% 140% at 85% 0%, #17426e 0%, var(--color-primary) 55%); color: var(--color-white); padding: 2.25rem 0 3rem; }
.insight-hero-grid, .insights-hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 2.5rem; align-items: center; }
.insight-hero h1, .insights-hero h1 { color: var(--color-white); font-size: clamp(1.9rem, 4vw, 2.9rem); margin: .2rem 0 .8rem; }
.insight-hero .breadcrumbs ol, .insight-hero .breadcrumbs a, .insights-hero .breadcrumbs ol, .insights-hero .breadcrumbs a { color: rgba(255, 255, 255, .82); }
.insight-dek, .insights-lead { font-size: 1.18rem; color: rgba(255, 255, 255, .9); max-width: 40rem; }
.insight-byline { display: flex; align-items: center; gap: .7rem; margin-top: 1.25rem; font-size: .95rem; color: rgba(255, 255, 255, .82); }
.insight-byline img { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--color-accent); }
.insight-byline a { color: var(--color-white); }
.insight-hero-photo { margin: 0; border-radius: 14px; overflow: hidden; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); aspect-ratio: 16 / 9; }
.insight-hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.insight-body { max-width: 820px; padding-top: 2.5rem; padding-bottom: 3.5rem; font-size: 1.08rem; }
.insight-body > h2, .insight-body section > h2 { margin-top: 2.75rem; }
.insight-body h3 { margin-top: 1.75rem; }
.insight-body p, .insight-body ul:not([class]), .insight-body ol:not([class]) { margin-bottom: 1rem; }
.insight-body ul:not([class]) { list-style: disc; padding-left: 1.3rem; }
.insight-body ol:not([class]) { list-style: decimal; padding-left: 1.4rem; }
.insight-body li + li { margin-top: .35rem; }
.insight-body a:not([class]) { color: var(--color-secondary); }
.insight-body figure { margin: 2rem 0; }
.insight-body figure img { width: 100%; height: auto; border-radius: 12px; box-shadow: 0 14px 34px rgba(10, 46, 82, .14); }
.insight-body figcaption { font-size: .92rem; color: var(--color-muted); margin-top: .6rem; }
.insight-body .tool-split { margin: 2rem 0; }
.insight-body .info-cards, .insight-body .steps, .insight-body .tool-table-wrap, .insight-body .stat-tiles, .insight-body .checklist, .insight-body .callout { margin: 1.5rem 0; }
.insight-body blockquote { margin: 1.5rem 0; padding: 1rem 1.25rem; border-left: 4px solid var(--color-accent); background: var(--color-white); border-radius: 0 10px 10px 0; font-style: italic; }

.insight-takeaways { background: var(--color-white); border: 1px solid var(--color-surface); border-top: 5px solid var(--color-accent); border-radius: 14px; padding: 1.5rem 1.6rem; box-shadow: 0 12px 30px rgba(10, 46, 82, .08); margin-bottom: 2.25rem; }
.insight-takeaways h2 { font-size: 1.35rem; margin: 0 0 .75rem; }
.insight-bottomline { background: #FFF6E3; border-radius: 10px; padding: .9rem 1.1rem; margin-bottom: 1rem; }
.insight-takeaways ul { list-style: none; display: grid; gap: .6rem; }
.insight-takeaways li { position: relative; padding-left: 1.6rem; }
.insight-takeaways li::before { content: ""; position: absolute; left: 0; top: .55rem; width: .7rem; height: .7rem; border-radius: 3px; background: var(--color-accent); transform: rotate(45deg); }

.insight-tools { margin-top: 3rem; }
.insight-tools-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1rem; }
.insight-tool { display: flex; flex-direction: column; background: var(--color-white); border: 1px solid #E6DAC5; border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
.insight-tool:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(10, 46, 82, .13); }
.insight-tool img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.insight-tool > span { display: flex; flex-direction: column; gap: .25rem; padding: .85rem 1rem 1rem; }
.insight-tool-type { font-size: .75rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--color-accent-text); }
.insight-tool-name { font: 600 1.08rem/1.25 var(--font-heading); color: var(--color-primary); }
.insight-tool-desc { font-size: .92rem; color: var(--color-muted); }

.insight-faq details { background: var(--color-white); border: 1px solid var(--color-surface); border-radius: 12px; margin-bottom: .75rem; }
.insight-faq summary { padding: 1rem 3rem 1rem 1.2rem; font-weight: 600; color: var(--color-primary); cursor: pointer; list-style: none; position: relative; }
.insight-faq summary::-webkit-details-marker { display: none; }
.insight-faq summary::after { content: "+"; position: absolute; right: 1.1rem; top: .75rem; font: 400 1.5rem/1 var(--font-body); color: var(--color-accent-text); }
.insight-faq details[open] summary::after { content: "–"; }
.insight-faq-a { padding: 0 1.2rem 1.1rem; }

.insight-author { display: flex; gap: 1.25rem; align-items: flex-start; margin-top: 3rem; padding: 1.4rem 1.5rem; background: var(--color-surface); border-radius: 14px; }
.insight-author img { width: 88px; height: 88px; border-radius: 50%; flex: none; }
.insight-author-name { font: 600 1.2rem var(--font-heading); color: var(--color-primary); }
.insight-author p + p { margin-top: .4rem; }
.insight-author a { color: var(--color-secondary); font-weight: 600; }
.insight-related { margin-top: 1rem; }
.insight-sources ol { list-style: decimal; padding-left: 1.4rem; display: grid; gap: .4rem; font-size: .95rem; word-break: break-word; }
.insight-sources a { color: var(--color-secondary); }
.insight-method { margin-top: 1.25rem; font-size: .95rem; color: var(--color-muted); }

/* Hub */
.insights-list { display: grid; gap: 1.5rem; }
.insight-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); background: var(--color-white); border: 1px solid #E6DAC5; border-radius: 14px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 6px 18px rgba(10, 46, 82, .06); transition: transform .25s ease, box-shadow .25s ease; }
.insight-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(10, 46, 82, .15); }
.insight-card-img { aspect-ratio: 16 / 9; overflow: hidden; }
.insight-card-img img { width: 100%; height: 100%; object-fit: cover; }
.insight-card-body { display: flex; flex-direction: column; gap: .5rem; padding: 1.4rem 1.6rem; justify-content: center; }
.insight-card-meta { font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--color-accent-text); }
.insight-card-title { font: 600 1.45rem/1.25 var(--font-heading); color: var(--color-primary); }
.insight-card-desc { color: var(--color-muted); }
.insight-card-more { font-weight: 600; color: var(--color-secondary); }

@media (max-width: 900px) {
  .insight-hero-grid, .insights-hero-grid, .insight-card { grid-template-columns: minmax(0, 1fr); }
  .insight-hero-photo { order: -1; }
}
@media (max-width: 560px) { .insight-author { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .insight-card, .insight-tool { transition: none; } .insight-card:hover, .insight-tool:hover { transform: none; } }
@media print { .insight-hero-photo, .insight-tools, .cta-strip { display: none !important; } .insight-hero { background: none; color: #000; } .insight-hero h1, .insight-dek { color: #000; } }

/* Above-the-fold widget (partials/insight-widgets/<slug>.njk) */
.insight-hero-grid { align-items: start; }
.insight-widget { color: var(--color-text); }
.iw { background: var(--color-white); border-radius: 16px; padding: 1.25rem 1.3rem 1rem; box-shadow: 0 24px 50px rgba(0, 0, 0, .35); border-top: 5px solid var(--color-accent); }
.iw-badge { display: inline-block; padding: .15rem .6rem; border-radius: 999px; background: #FFF1D2; color: var(--color-accent-text); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.iw-title { font-size: 1.4rem; margin: .45rem 0 .25rem; }
.iw-sub { font-size: .93rem; color: var(--color-muted); margin-bottom: .8rem; }
.iw-form { display: grid; gap: .65rem; }
.iw-row { display: grid; grid-template-columns: 1fr 1fr; gap: .65rem; }
.iw-row-3 { grid-template-columns: 1fr 1fr 1fr; }
.iw-field { display: grid; gap: .25rem; }
.iw-field label { font-size: .85rem; font-weight: 600; }
.iw input[type="number"], .iw input[type="text"] { width: 100%; min-height: 42px; padding: .45rem .6rem; border: 1px solid #CDBFA6; border-radius: 8px; background: #FFFDF8; font: 1rem var(--font-body); color: var(--color-text); }
.iw input:focus { outline: none; border-color: var(--color-secondary); box-shadow: 0 0 0 3px rgba(46, 96, 136, .2); }
.iw-result { margin-top: .85rem; padding: .85rem 1rem; background: #F4F8FB; border-radius: 12px; }
.iw-big span { display: block; font: 600 2.4rem/1 var(--font-heading); color: var(--color-primary); }
.iw-big small { display: block; margin-top: .3rem; font-size: .92rem; color: var(--color-muted); }
.iw-stats { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem .9rem; margin-top: .7rem; font-size: .9rem; color: var(--color-muted); }
.iw-stats b { color: var(--color-primary); font-size: 1.05rem; }
.iw-line { font-size: .95rem; }
.iw-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-top: .85rem; }
.iw-link { font-weight: 600; color: var(--color-secondary); }
.iw-btn { min-height: 40px; padding: .4rem .9rem; border: 1.5px solid var(--color-secondary); border-radius: 8px; background: var(--color-white); color: var(--color-secondary); font: 600 .9rem var(--font-body); cursor: pointer; }
.iw-btn:hover { background: var(--color-secondary); color: var(--color-white); }
.iw-btn-solid { background: var(--color-accent); border-color: var(--color-accent); color: var(--color-primary); }
.iw-btn.is-done { background: #2F7D3A; border-color: #2F7D3A; color: #fff; }
.iw-note { font-size: .8rem; color: var(--color-muted); margin-top: .6rem; }
.iw-vendors { display: grid; gap: .4rem; }
.iw-vhead, .iw-vrow { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: .4rem; }
.iw-vhead span { font-size: .78rem; font-weight: 700; color: var(--color-muted); }
.iw-vresults { display: grid; gap: .45rem; margin-top: .5rem; }
.iw-vresults li { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .6rem; font-size: .9rem; }
.iw-vresults li b { color: var(--color-primary); min-width: 5.5rem; }
.iw-empty, .iw-done { color: var(--color-muted); font-size: .9rem; }
.iw-tally { margin-top: .75rem; }
.iw-tally summary { cursor: pointer; font-weight: 600; color: var(--color-secondary); min-height: 32px; }
.iw-tally table, .iw-grid { width: 100%; border-collapse: collapse; margin-top: .5rem; font-size: .9rem; }
.iw-tally th, .iw-tally td, .iw-grid th, .iw-grid td { padding: .3rem .35rem; text-align: left; border-bottom: 1px solid #EFE6D6; }
.iw-tally input { min-height: 36px; }
.iw-grid thead th { font-size: .75rem; color: var(--color-muted); text-align: center; }
.iw-grid thead th:first-child { text-align: left; }
.iw-grid td { text-align: center; }
.iw-grid input[type="checkbox"], .iw-check input { width: 22px; height: 22px; accent-color: #2F7D3A; }
.iw-checks { gap: .25rem; }
.iw-check { display: flex; gap: .55rem; align-items: flex-start; padding: .35rem .45rem; border-radius: 8px; font-size: .92rem; cursor: pointer; }
.iw-check.is-done { background: #F1F8F2; }
.iw-check input { flex: none; margin-top: .05rem; }
.iw-score { display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: .4rem; }
.iw-score b { font: 600 2.2rem/1 var(--font-heading); color: var(--color-primary); }
.iw-score small { color: var(--color-muted); }
.iw-fixes { list-style: decimal; padding-left: 1.2rem; margin-top: .6rem; display: grid; gap: .25rem; font-size: .9rem; }
.iw-fixes a { color: var(--color-secondary); }
.iw-history { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.iw-history li { display: inline-flex; gap: .35rem; padding: .15rem .55rem; border-radius: 999px; background: var(--color-white); border: 1px solid #D5E2EE; font-size: .82rem; }
.insight-lead-photo { margin: 0 0 2rem; }
.insight-lead-photo img { width: 100%; height: auto; border-radius: 14px; box-shadow: 0 14px 34px rgba(10, 46, 82, .14); }
@media (max-width: 900px) { .insight-widget { order: 0; } }
@media (max-width: 420px) { .iw-row-3 { grid-template-columns: 1fr 1fr; } .iw-vhead, .iw-vrow { grid-template-columns: 1.1fr .9fr .8fr; } }
@media print {
  .insight-page > *:not(.insight-hero), .insight-hero .breadcrumbs, .insight-byline, .iw-actions, .iw-note { display: none !important; }
  .insight-hero-grid { display: block; }
  .iw { box-shadow: none; border: 1px solid #999; margin-top: 1rem; }
}
.iw-more { list-style: none; margin-left: -1.2rem; color: var(--color-muted); }
/* Phones: the widget comes straight after the headline, before the dek and byline. */
@media (max-width: 900px) {
  .insight-hero { padding-top: 1.25rem; }
  .insight-hero-copy { display: contents; }
  .insight-hero-grid { gap: 1rem; }
  .insight-hero-grid .breadcrumbs { order: 1; }
  .insight-hero-grid .eyebrow { order: 2; margin-bottom: 0; }
  .insight-hero-grid h1 { order: 3; font-size: 1.65rem; margin: 0; }
  .insight-widget { order: 4; }
  .insight-dek { order: 5; font-size: 1.05rem; }
  .insight-byline { order: 6; margin-top: 0; }
  .insight-hero .breadcrumbs ol { margin-bottom: 0; }
}
