/* The library treatment is intentionally isolated from topic and article pages. */
.news-library-page { background: #f7f8fc; }
.news-library-page main { background: radial-gradient(circle at 91% 13%, #e8eeff 0, transparent 32%), radial-gradient(circle at 12% 38%, #fff0f6 0, transparent 26%), #f7f8fc; }
.news-library-page .insights-library-hero { position: relative; isolation: isolate; min-height: 515px; display: grid; align-items: center; overflow: hidden; padding-block: 86px; color: #f8f8ff; background: #080d19; }
.news-library-page .insights-library-banner, .news-library-page .insights-library-scrim { position: absolute; inset: 0; width: 100%; height: 100%; }
.news-library-page .insights-library-banner { z-index: -2; object-fit: cover; object-position: center; }
.news-library-page .insights-library-scrim { z-index: -1; background: linear-gradient(90deg, #050912 4%, #091125ed 39%, #091125a3 63%, #050a15b8), linear-gradient(0deg, #050914a8, transparent 45%); }
.news-library-page .insights-library-hero-copy { max-width: min(1180px, calc(100% - 48px)); margin-inline: auto; }
.news-library-page .insights-library-hero h1 { max-width: 730px; margin: 12px 0 18px; color: #fff; font-size: clamp(48px, 6.7vw, 88px); line-height: .95; letter-spacing: -.066em; }
.news-library-page .insights-library-hero h1 span { color: #d8d0ff; }
.news-library-page .insights-library-hero > .insights-shell > p:not(.insights-eyebrow, .insights-concept-label) { max-width: 605px; color: #dde5fb; font-size: 16px; line-height: 1.8; }
.news-library-page .insights-eyebrow { color: #c9c4ff; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.news-library-page .insights-section-label { color: #635182; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.news-library-page .insights-concept-label { display: inline-flex; margin: 16px 0 0; padding: 5px 8px; border: 1px solid #c4b9ff78; border-radius: 999px; color: #e2dcff; background: #111d38b3; font-size: 10px; font-weight: 760; letter-spacing: .05em; text-transform: uppercase; }
.news-library-page .reader-utility { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; }
.news-library-page .reader-utility a { min-height: 44px; display: inline-flex; align-items: center; color: #e9e7ff; font-size: 12px; font-weight: 750; text-decoration: underline; text-decoration-color: #b3a8f880; text-underline-offset: 4px; }
.news-library-page .insights-hub { padding: 34px 0 94px; }
.news-library-page .insight-topic-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.news-library-page .insight-topic-links a { min-height: 44px; display: inline-flex; align-items: center; padding: 5px 10px; border: 1px solid #c6cfea; border-radius: 999px; color: #26365b; background: #fff; font-size: 11px; font-weight: 760; text-decoration: none; }
.news-library-page .insight-topic-links a[aria-current='page'] { color: #fff; border-color: #243c83; background: #243c83; }
.news-library-page .reader-machine-panel { margin: 24px 0 42px; border: 1px solid #bcc8ea; border-left: 4px solid #4d66c6; border-radius: 14px; background: linear-gradient(120deg, #e9effd, #f9f4fb); box-shadow: 0 12px 32px #24315212; }
.news-library-page .reader-machine-panel summary { min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 12px 23px; cursor: pointer; color: #172343; font-size: 14px; font-weight: 820; list-style: none; }
.news-library-page .reader-machine-panel summary::-webkit-details-marker { display: none; }
.news-library-page .reader-machine-panel summary::after { content: '+'; flex: 0 0 auto; color: #3f58ac; font-size: 20px; font-weight: 500; line-height: 1; }
.news-library-page .reader-machine-panel[open] summary::after { content: '−'; }
.news-library-page .reader-machine-panel summary:focus-visible { outline: 3px solid #526cd2; outline-offset: -3px; }
.news-library-page .reader-machine-panel summary small { color: #5d6e94; font-size: 10px; font-weight: 760; letter-spacing: .075em; text-transform: uppercase; }
.news-library-page .reader-machine-content { display: grid; grid-template-columns: minmax(260px, .82fr) minmax(340px, 1.18fr); gap: 18px 40px; padding: 0 23px 23px; }
.news-library-page .insights-library-header h2 { margin: 7px 0 0; color: #172343; font-size: clamp(27px, 3.2vw, 42px); line-height: 1.04; letter-spacing: -.05em; }
.news-library-page .reader-machine-content > p:not(.reader-machine-command), .news-library-page .insights-library-header > p { margin: 0; color: #4a5875; font-size: 13px; line-height: 1.75; }
.news-library-page .reader-machine-content nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.news-library-page .reader-machine-panel a { min-height: 58px; display: grid; align-content: center; gap: 3px; padding: 9px 11px; border: 1px solid #c4cdec; border-radius: 8px; color: #253b80; background: #ffffffb8; font-size: 12px; font-weight: 770; text-decoration: none; }
.news-library-page .reader-machine-panel code { color: #607093; font-size: 10px; font-weight: 650; overflow-wrap: anywhere; }
.news-library-page .reader-machine-command { grid-column: 1 / -1; margin: 0; color: #53668e; font-size: 11px; overflow-wrap: anywhere; }
.news-library-page .insights-library-header { display: grid; grid-template-columns: minmax(0, 1fr) minmax(230px, .55fr); gap: 32px; align-items: end; margin-bottom: 22px; }
.news-library-page .insights-library-header > p { max-width: 390px; margin-bottom: 3px; }
.news-library-page .reader-filter { display: grid; grid-template-columns: minmax(190px, 1.2fr) repeat(4, minmax(126px, .66fr)); gap: 13px; align-items: end; padding: 20px; margin: 0 0 25px; border: 1px solid #c4cee6; border-radius: 14px; background: #fff; box-shadow: 0 10px 28px #1c2a4c0d; }
.news-library-page .reader-filter[hidden], .news-library-page [data-insight-entry][hidden], .news-library-page [data-insight-group][hidden], .news-library-page .reader-empty[hidden] { display: none; }
.news-library-page .reader-filter label { display: grid; gap: 7px; min-width: 0; color: #384766; font-size: 11px; font-weight: 800; }
.news-library-page .reader-filter :is(input, select, button) { min-width: 0; min-height: 44px; border: 1px solid #afbddb; border-radius: 8px; padding: 9px 10px; color: #182545; background: #fff; font: inherit; font-size: 13px; }
.news-library-page .reader-filter button { cursor: pointer; font-size: 11px; font-weight: 800; }
.news-library-page .reader-filter button:hover { border-color: #506ac6; background: #eff2ff; }
.news-library-page .reader-filter-actions { display: flex; flex-wrap: wrap; gap: 8px; grid-column: 1 / -1; }
.news-library-page .reader-filter-actions button { padding-inline: 13px; }
.news-library-page .reader-filter p { grid-column: 1 / -1; margin: 0; color: #53617d; font-size: 12px; }
.news-library-page .reader-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; border: 0; }
.news-library-page .reader-grid .insight-card { min-width: 0; display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border: 1px solid #cbd3e7; border-radius: 15px; background: #fff; box-shadow: 0 10px 28px #15223a0b; }
.news-library-page .reader-grid .insight-card-featured { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(280px, .88fr); }
.news-library-page .reader-grid .insight-card-art { position: relative; min-width: 0; }
.news-library-page .reader-grid .insight-card-image { display: block; height: 100%; min-height: 215px; }
.news-library-page .reader-grid .insight-card-image img { display: block; width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.news-library-page .reader-grid .insight-card-copy { padding: 20px; }
.news-library-page .reader-grid .insight-card-featured .insight-card-copy { padding: clamp(24px, 3vw, 38px); }
.news-library-page .reader-grid .insight-current-focus { margin: 0 0 10px; color: #9b5e24; font-size: 10px; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.news-library-page .reader-grid .insight-meta { display: flex; flex-wrap: wrap; gap: 6px 11px; color: #5c6880; font-size: 10px; line-height: 1.5; }
.news-library-page .reader-grid .insight-kind { color: #344f9e; font-weight: 840; letter-spacing: .055em; text-transform: uppercase; }
.news-library-page .reader-grid .article-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
.news-library-page .reader-grid .article-tags a { min-height: 44px; display: inline-flex; align-items: center; padding: 4px 7px; border: 1px solid #d3d9ec; border-radius: 999px; color: #3f548d; background: #f5f7fd; font-size: 10px; font-weight: 720; text-decoration: none; }
.news-library-page .reader-grid h3 { margin: 14px 0 9px; color: #17223e; font-size: clamp(23px, 2.6vw, 31px); line-height: 1.12; letter-spacing: -.04em; }
.news-library-page .reader-grid h3 a { color: inherit; text-decoration: none; }
.news-library-page .reader-grid .insight-card-copy > p { margin: 0; color: #4b5870; font-size: 13px; line-height: 1.72; }
.news-library-page .insight-card-utilities { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 16px; }
.news-library-page .insight-card-utilities a, .news-library-page .insight-read-link { min-height: 44px; display: inline-flex; align-items: center; color: #3853a4; font-size: 11px; font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.news-library-page .insight-read-link { margin-top: 15px; color: #1e3f9e; }
.news-library-page .reader-grid[data-curated='false'] .insight-card-featured { grid-column: auto; display: flex; }
.news-library-page .reader-grid[data-curated='false'] .insight-current-focus { display: none; }
.news-library-page .reader-grid[data-view='list'] { grid-template-columns: 1fr; }
.news-library-page .reader-grid[data-view='list'] .insight-card, .news-library-page .reader-grid[data-view='list'] .insight-card-featured { display: grid; grid-template-columns: minmax(200px, .45fr) minmax(0, 1fr); }
.news-library-page .reader-grid[data-view='list'] .insight-card-image { min-height: 100%; }
.news-library-page .reader-empty { margin: 24px 0 80px; padding: 25px; border: 1px solid #bfcbea; border-radius: 12px; color: #394a70; background: #edf2ff; }
.news-library-page :is(.insight-topic-links a, .reader-machine-panel a, .reader-filter :is(input, select, button), .reader-grid a):focus-visible { outline: 3px solid #526cd2; outline-offset: 3px; }

/* Article utilities keep their small previous refinements on article routes. */
.article-toc summary { padding: 0 0 12px; min-height: 44px; color: #3b4867; cursor: pointer; font-size: 12px; font-weight: 800; }
.article-toc details:not([open]) summary { padding-bottom: 0; }
.article-page .article-source-note { margin-top: 14px; font-size: 12px; color: #b9c3da; }
.article-reading .article-takeaways { margin-bottom: 14px; border-color: #647cc6; background: #eff3fc; border-radius: 0 12px 12px 0; }
.article-page :is(.article-section, .article-sources, .article-takeaways) { scroll-margin-top: 110px; }
.article-reading .article-rangoon-connection { margin-top: 48px; padding: 24px; border: 1px solid #ccd5e8; border-radius: 12px; background: #f4f6fc; }
.article-related-list > a { transition: border-color .2s, box-shadow .2s; }
.article-related-list > a:hover { border-color: #738dcc; box-shadow: 0 12px 28px #263a6812; }
.article-toc summary:focus-visible { outline: 3px solid #648bdd; outline-offset: 4px; }
.article-page .article-quick-links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 26px; }
.article-page .article-quick-links a { min-height: 44px; display: inline-flex; align-items: center; color: #d9ddff; font-size: 12px; font-weight: 750; text-decoration: underline; text-decoration-color: #8b97c980; text-underline-offset: 5px; }
.article-page .article-quick-links a:hover { color: #fff; text-decoration-color: #cca0ef; }
.article-page .article-quick-links a:focus-visible { outline: 3px solid #648bdd; outline-offset: 4px; }

@media (max-width: 860px) {
  .news-library-page .reader-filter { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .news-library-page .reader-filter label:first-child { grid-column: 1 / -1; }
}
@media (max-width: 740px) {
  .news-library-page .insights-library-hero { min-height: 510px; padding-block: 76px 58px; }
  .news-library-page .insights-library-banner { object-position: 64% center; }
  .news-library-page .insights-library-scrim { background: linear-gradient(90deg, #050914f2 0, #091125db 67%, #0509149e), linear-gradient(0deg, #050914c4, transparent 58%); }
  .news-library-page .insights-library-hero-copy { max-width: min(100% - 36px, 1180px); }
  .news-library-page .insights-library-hero h1 { font-size: clamp(44px, 13.5vw, 64px); }
  .news-library-page .insights-library-hero > .insights-shell > p:not(.insights-eyebrow, .insights-concept-label) { font-size: 14px; }
  .news-library-page .reader-machine-content, .news-library-page .insights-library-header { grid-template-columns: 1fr; gap: 18px; }
  .news-library-page .reader-machine-content { padding: 0 17px 17px; }
  .news-library-page .reader-machine-panel summary { padding-inline: 17px; }
  .news-library-page .reader-machine-content nav { grid-template-columns: 1fr; }
  .news-library-page .reader-filter { grid-template-columns: repeat(2, minmax(0, 1fr)); padding: 16px; }
  .news-library-page .reader-filter label:first-child { grid-column: 1 / -1; }
  .news-library-page .reader-grid, .news-library-page .reader-grid[data-view='list'] { grid-template-columns: 1fr; }
  .news-library-page .reader-grid .insight-card-featured, .news-library-page .reader-grid[data-view='list'] .insight-card, .news-library-page .reader-grid[data-view='list'] .insight-card-featured { display: flex; }
  .news-library-page .reader-grid .insight-card-image, .news-library-page .reader-grid[data-view='list'] .insight-card-image { min-height: 0; height: auto; }
  .news-library-page .reader-grid .insight-card-copy, .news-library-page .reader-grid .insight-card-featured .insight-card-copy { padding: 20px; }
  .article-reading .article-rangoon-connection { grid-template-columns: 1fr; padding: 20px; }
}
@media (max-width: 420px) { .news-library-page .reader-filter { grid-template-columns: 1fr; } }
@media (max-width: 320px) { .news-library-page .reader-machine-panel summary { align-items: flex-start; flex-wrap: wrap; gap: 4px 10px; } .news-library-page .reader-machine-panel summary small { min-width: 0; } }
@media (prefers-reduced-motion: reduce) { .article-related-list > a { transition: none; } }
@media (forced-colors: active) {
  .news-library-page .insights-library-hero, .news-library-page .reader-machine-panel, .news-library-page .reader-grid .insight-card, .news-library-page .reader-filter { color: CanvasText; background: Canvas; border-color: CanvasText; box-shadow: none; }
  .news-library-page :is(.insights-library-hero h1, .insights-library-hero > .insights-shell > p:not(.insights-eyebrow, .insights-concept-label), .reader-machine-panel h2, .insights-library-header h2, .reader-grid h3, .reader-grid .insight-card-copy > p) { color: CanvasText; }
  .news-library-page .insights-library-banner, .news-library-page .insights-library-scrim { display: none; }
}
