:root {
  --guide-ink: #17303d;
  --guide-paper: #f4f2ed;
  --guide-white: #ffffff;
  --guide-blue: #315967;
  --guide-coral: #c85d43;
  --guide-yellow: #e0aa3e;
  --guide-line: #d8d6d0;
  --guide-muted: #5b696d;
  --guide-body: Inter, "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --guide-utility: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; }
body { margin: 0; color: var(--guide-ink); background: var(--guide-paper); font-family: var(--guide-body); line-height: 1.5; }
img { display: block; max-width: 100%; }
button, input, select { font: inherit; }
.visually-hidden { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; }
.library-wrap { width: min(1200px, calc(100% - 40px)); margin-inline: auto; }
.library-breadcrumbs, .library-kicker, .article-control-label { font-family: var(--guide-utility); font-size: .62rem; font-weight: 850; letter-spacing: .1em; text-transform: uppercase; }
.library-breadcrumbs {
  display: none;
  color: rgba(255,255,255,.78);
}
.library-breadcrumbs a { color: inherit; text-decoration: none; }
.library-kicker { color: var(--guide-yellow); }

.library-hero { position: relative; min-height: 360px; overflow: hidden; color: var(--guide-white); background: var(--guide-blue); }
.library-hero__image, .library-hero__shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.library-hero__image { object-fit: cover; }
.library-hero__shade { background: linear-gradient(90deg, rgba(17,35,46,.94) 0%, rgba(25,49,61,.82) 42%, rgba(25,49,61,.28) 74%, rgba(25,49,61,.15) 100%); }
.library-hero__content { position: relative; z-index: 1; min-height: 360px; display: flex; flex-direction: column; justify-content: center; padding-block: 34px 38px; }
.library-hero h1 { max-width: 720px; margin: 20px 0 5px; font-size: clamp(2.9rem, 5.5vw, 5rem); letter-spacing: -.045em; line-height: .95; }
.library-hero__description { max-width: 650px; margin: 8px 0 0; color: rgba(255,255,255,.82); font-size: .91rem; }
.library-hero--empty { min-height: 300px; background: var(--guide-ink); }
.library-hero--empty .library-hero__content { min-height: 300px; }
.library-hero__status { max-width: 650px; margin: 26px 0 0; padding: 14px 0 14px 20px; color: rgba(255,255,255,.86); border-left: 4px solid var(--guide-yellow); font-size: .78rem; }
.library-feature { max-width: 620px; margin-top: auto; padding-top: 36px; }
.library-feature a { color: var(--guide-white); text-decoration: none; }
.library-feature h2 { margin: 8px 0 9px; font-size: clamp(1.3rem, 2.5vw, 2rem); line-height: 1.08; }
.library-feature > span:last-child { font-size: .7rem; font-weight: 750; }
.library-feature a:hover h2, .library-feature a:focus-visible h2 { color: #f0d692; }

.library-section { padding-block: 74px 84px; }
.library-section--white { background: var(--guide-white); }
.library-heading { display: flex; justify-content: space-between; gap: 28px; align-items: end; margin-bottom: 30px; padding-bottom: 20px; border-bottom: 1px solid #aeb5b7; }
.library-heading h2 { margin: 6px 0 0; font-size: clamp(2.35rem, 4vw, 3.4rem); letter-spacing: -.04em; line-height: 1; }
.library-heading p { margin: 0; color: var(--guide-muted); font-size: .75rem; text-align: right; }
.library-heading--simple { display: block; margin-bottom: 38px; }

.top-picks-layout { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(330px, .95fr); gap: 38px; }
.top-pick-lead:only-child { grid-column: 1 / -1; }
.top-pick-lead { display: flex; flex-direction: column; color: var(--guide-ink); text-decoration: none; }
.top-pick-lead img { width: 100%; height: 380px; object-fit: cover; }
.top-pick-lead:only-child img { height: min(460px, 48vw); }
.top-pick-lead__body { padding-top: 17px; }
.top-pick-lead small, .top-pick-row small, .library-article-card small { color: var(--guide-coral); font-family: var(--guide-utility); font-size: .6rem; font-weight: 850; letter-spacing: .09em; text-transform: uppercase; }
.top-pick-lead h3 { max-width: 760px; margin: 8px 0 10px; font-size: clamp(1.65rem, 3vw, 2.45rem); line-height: 1.05; }
.top-pick-lead__body > span { color: var(--guide-muted); font-size: .69rem; }
.top-pick-rail { display: grid; grid-template-rows: repeat(3, 1fr); border-top: 1px solid var(--guide-line); }
.top-pick-row { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; min-height: 150px; padding-block: 14px; color: var(--guide-ink); border-bottom: 1px solid var(--guide-line); text-decoration: none; }
.top-pick-row img { width: 150px; height: 112px; object-fit: cover; }
.top-pick-row span { min-width: 0; }
.top-pick-row strong { display: block; margin: 7px 0 10px; font-size: 1rem; line-height: 1.14; }
.top-pick-row b { color: var(--guide-muted); font-size: .64rem; font-weight: 650; }
.top-pick-lead, .top-pick-row { transition: color .2s ease; }
.top-pick-lead:hover, .top-pick-lead:focus-visible, .top-pick-row:hover, .top-pick-row:focus-visible { color: var(--guide-coral); }

.library-articles { background: var(--guide-paper); }
.article-browser-controls { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 34px; align-items: end; margin-bottom: 36px; padding: 22px 24px; background: var(--guide-white); border: 1px solid var(--guide-line); }
.article-filter, .article-search { min-width: 0; }
.article-control-label { display: block; margin-bottom: 10px; color: var(--guide-coral); }
.article-filter__chips { display: flex; flex-wrap: wrap; gap: 8px; }
.article-filter__chips button, .article-filter__chips a { display: inline-flex; align-items: center; min-height: 34px; padding: 6px 12px; color: var(--guide-ink); background: transparent; border: 1px solid #c9ccca; border-radius: 999px; font-size: .69rem; font-weight: 750; text-decoration: none; cursor: pointer; transition: color .18s ease, background .18s ease, border-color .18s ease; }
.article-filter__chips button:hover, .article-filter__chips button:focus-visible, .article-filter__chips a:hover, .article-filter__chips a:focus-visible { border-color: var(--guide-coral); }
.article-filter__chips button.active, .article-filter__chips a.active { color: var(--guide-white); background: var(--guide-blue); border-color: var(--guide-blue); }
.article-search__field { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 42px; padding: 0 12px; background: var(--guide-white); border: 1px solid #aeb5b7; }
.article-search__field:focus-within { border-color: var(--guide-coral); outline: 2px solid rgba(200,93,67,.14); }
.article-search input { width: 100%; min-width: 0; padding: 9px 0; color: var(--guide-ink); background: transparent; border: 0; outline: 0; font-size: .78rem; }
.article-search b { color: var(--guide-coral); font-size: 1rem; }

.article-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.library-article-card { min-height: 380px; display: flex; flex-direction: column; overflow: hidden; color: var(--guide-ink); background: var(--guide-white); border: 1px solid var(--guide-line); text-decoration: none; transition: transform .24s ease, box-shadow .24s ease; }
.library-article-card:hover, .library-article-card:focus-visible { transform: translateY(-7px); box-shadow: 0 16px 30px rgba(23,48,61,.12); }
.library-article-card img { width: 100%; height: 190px; object-fit: cover; }
.library-article-card__body { flex: 1; display: flex; flex-direction: column; padding: 21px; }
.library-article-card h3 { margin: 8px 0 10px; font-size: 1.25rem; line-height: 1.13; transition: color .2s ease; }
.library-article-card:hover h3, .library-article-card:focus-visible h3 { color: var(--guide-coral); }
.library-article-card p { margin: 0; color: var(--guide-muted); font-size: .73rem; }
.library-article-card__body > span:last-child { margin-top: auto; padding-top: 18px; color: var(--guide-muted); font-size: .66rem; font-weight: 700; }
.library-empty { grid-column: 1 / -1; display: grid; gap: 5px; padding: 42px; color: var(--guide-muted); background: var(--guide-white); border: 1px solid var(--guide-line); text-align: center; }
.library-empty strong { color: var(--guide-ink); font-size: 1.15rem; }

.article-pagination { max-width: 100%; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 7px; margin-top: 42px; }
.article-pagination button, .article-pagination select { min-width: 38px; min-height: 38px; color: var(--guide-ink); background: var(--guide-white); border: 1px solid #bdc2c2; cursor: pointer; }
.article-pagination button { padding-inline: 12px; font-size: .7rem; font-weight: 800; }
.article-pagination button:hover, .article-pagination button:focus-visible, .article-pagination button.active { color: var(--guide-white); background: var(--guide-blue); border-color: var(--guide-blue); }
.article-pagination button:disabled { color: #9aa1a2; background: transparent; border-color: #d5d7d4; cursor: not-allowed; }
.article-pagination__pages { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 5px; }
.article-pagination__ellipsis { padding-inline: 4px; color: var(--guide-muted); }
.article-pagination label { display: flex; align-items: center; gap: 7px; margin-left: 14px; color: var(--guide-muted); font-size: .69rem; }
.article-pagination input { width: 58px; min-height: 38px; padding: 0 8px; color: var(--guide-ink); background: var(--guide-white); border: 1px solid #bdc2c2; text-align: center; }
.article-pagination input:focus { border-color: var(--guide-coral); outline: 2px solid rgba(200,93,67,.14); }

@media (max-width: 900px) {
  .top-picks-layout { grid-template-columns: 1fr; }
  .top-pick-lead img { height: 350px; }
  .article-browser-controls { grid-template-columns: 1fr; }
  .article-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .library-wrap { width: calc(100% - 28px); }
  .library-hero { min-height: 410px; }
  .library-hero__content { min-height: 410px; padding-block: 24px 30px; }
  .library-hero--empty,
  .library-hero--empty .library-hero__content { min-height: 330px; }
  .library-hero__shade { background: linear-gradient(90deg, rgba(17,35,46,.94), rgba(25,49,61,.58)); }
  .library-hero h1 { font-size: 3rem; }
  .library-hero__description { font-size: .8rem; }
  .library-heading { align-items: flex-start; flex-direction: column; }
  .library-heading p { text-align: left; }
  .top-pick-lead img { height: 260px; }
  .top-pick-row { grid-template-columns: 110px 1fr; gap: 13px; }
  .top-pick-row img { width: 110px; height: 92px; }
  .article-browser-controls { padding: 18px; }
  .article-filter__chips { width: 100%; max-width: 100%; flex-wrap: nowrap; overflow-x: auto; padding-bottom: 5px; }
  .article-filter__chips button, .article-filter__chips a { flex: 0 0 auto; }
  .article-card-grid { grid-template-columns: 1fr; }
  .article-pagination { align-items: stretch; }
  .article-pagination__pages { order: 3; width: 100%; justify-content: center; }
  .article-pagination label { order: 4; width: 100%; justify-content: center; margin: 6px 0 0; }
}

@media (prefers-reduced-motion: reduce) {
  .library-article-card, .top-pick-lead, .top-pick-row, .article-filter__chips button, .article-filter__chips a { transition-duration: .01ms !important; }
}
