/* Selected Library Rail concept. Homepage only; existing reader pages keep their chrome. */
@font-face {
  font-family: 'Inter Library';
  src: url('/vendor/inter/InterVariable.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}
.home-page {
  --library-bg: #080a0c;
  --library-muted: #b2b7c3;
  --library-line: #303640;
  --library-gold: #ffcf30;
  background: var(--library-bg);
  color: #f5f5f6;
  font-family: 'Inter Library', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.home-page main, .home-page > .footer { margin-left: 230px; }
.home-page a { text-decoration: none; }
.home-page a:hover { color: var(--library-gold); }
.home-page :focus-visible { outline: 2px solid var(--library-gold); outline-offset: 5px; }
.library-icon { display: inline-block; width: 24px; height: 24px; flex: 0 0 24px; filter: invert(82%) sepia(9%) saturate(281%) hue-rotate(181deg); }
.library-sidebar { position: fixed; inset: 0 auto 0 0; width: 230px; height: 100vh; height: 100dvh; display: flex; flex-direction: column; border-right: 1px solid #252a31; background: #090b0d; z-index: 30; overflow-y: auto; padding: 20px 8px 40px 0; }
.library-brand { display: flex; align-items: flex-start; gap: 12px; margin: 0 14px 25px 20px; color: #f5f5f6; }
.library-brand > img { width: 52px; height: 52px; object-fit: contain; border-radius: 8px; }
.library-brand strong { display: block; font-size: 20px; line-height: 1.4; font-weight: 800; letter-spacing: -.65px; }
.library-brand small { display: block; margin-top: 2px; font-size: 11.5px; line-height: 1.5; color: var(--library-muted); }
.library-nav { display: grid; gap: 7px; }
.library-nav a { display: flex; align-items: center; min-height: 56px; gap: 26px; padding: 13px 18px 13px 26px; border-left: 3px solid transparent; border-radius: 0 6px 6px 0; color: var(--library-muted); font-size: 15px; }
.library-nav a[aria-current="page"] { color: var(--library-gold); background: #282314; border-left-color: var(--library-gold); font-weight: 600; }
.library-nav a:hover { background: #191b20; }
.library-nav a[aria-current="page"] .library-icon { filter: invert(85%) sepia(92%) saturate(1704%) hue-rotate(333deg) brightness(105%); }
.library-nav .list-count { min-width: 19px; font-size: 10px; margin-left: -16px; background: #342a0e; color: var(--library-gold); }
.library-sidebar-bottom { margin: auto 10px 0 20px; padding-top: 46px; }
.library-sidebar-bottom nav { border-top: 1px solid #2b3039; padding-top: 14px; }
.library-sidebar-bottom a { display: flex; align-items: center; gap: 24px; min-height: 41px; padding: 7px 5px; color: var(--library-muted); font-size: 13px; }
.library-sidebar-bottom p { font-size: 11.5px; line-height: 1.55; color: #9da5b4; margin: 34px 5px 0; }
.library-mobile { display: none; }
.library-discovery { padding: 17px 20px 0 18px; max-width: 1660px; margin: auto; }
.library-search { display: flex; align-items: center; width: min(845px, calc(100% - 32px)); margin: 0 16px 16px; height: 42px; background: #191c22; border: 1px solid #4b5463; border-radius: 6px; }
.library-search button { width: 48px; height: 40px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; padding: 0; }
.library-search input { width: 100%; min-width: 0; height: 100%; padding: 0 14px 0 6px; border: 0; background: transparent; color: #f5f5f6; font: inherit; font-size: 14px; }
.library-search input::placeholder { color: #b1b7c5; opacity: 1; }
.library-search:focus-within { border-color: var(--library-gold); }
.library-hero { position: relative; min-height: 307px; overflow: hidden; isolation: isolate; border: 1px solid #38404b; border-radius: 8px; display: flex; align-items: center; }
.library-hero-art { position: absolute; inset: 0; z-index: -2; }
.library-hero-art picture, .library-hero-art img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 58%; }
.library-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(5,10,15,.95) 0%, rgba(5,10,15,.88) 24%, rgba(5,10,15,.55) 46%, rgba(5,10,15,.02) 75%); }
.library-hero-copy { padding: 38px 36px 32px; }
.library-hero .eyebrow { color: var(--library-gold); font-size: 12px; font-weight: 750; letter-spacing: 2px; line-height: 1.5; }
.library-hero h1 { font-size: clamp(40px, 4.4vw, 64px); font-weight: 850; letter-spacing: -2.5px; line-height: 1.08; margin: 9px 0 7px; color: #fff; }
.library-hero-copy p { color: #c6ccd7; font-size: 21px; letter-spacing: -.35px; line-height: 1.32; margin: 0; }
.library-hero-actions { display: flex; align-items: center; gap: 17px; margin-top: 21px; }
.library-primary { display: inline-flex; align-items: center; gap: 14px; min-height: 46px; padding: 10px 22px; border-radius: 6px; background: var(--library-gold); border: 1px solid #ffe274; color: #090a0c; font-size: 16px; font-weight: 750; }
.home-page .library-primary:hover { background: #ffe172; color: #080a0c; }
.library-primary .library-icon { filter: none; }
.library-save { border: 0; padding: 9px; background: none; color: #c8cdd7; display: inline-flex; align-items: center; justify-content: center; min-width: 44px; min-height: 44px; cursor: pointer; flex: 0 0 auto; font: inherit; }
.library-save .library-icon { width: 22px; height: 22px; flex-basis: 22px; }
.library-save:hover, .library-save.saved { color: var(--library-gold); background: #ffffff08; border-radius: 4px; }
.library-save.saved .library-icon { filter: invert(85%) sepia(92%) saturate(1704%) hue-rotate(333deg) brightness(105%); }
.library-save-full { gap: 10px; font-size: 12px; color: #f1f2f6; }
.library-art-caption { position: absolute; bottom: 0; right: 0; padding: 8px 18px; border-radius: 4px 0 0 0; background: #070b12c9; font-size: 11px; color: #c4cad5; }
.library-catalog { margin-top: 38px; }
.library-catalog-head { display: flex; align-items: center; flex-wrap: wrap; gap: 16px 23px; margin-bottom: 20px; }
.library-catalog h2 { margin: 0; font-size: clamp(28px, 2.65vw, 38px); font-weight: 850; letter-spacing: -1.5px; line-height: 1.2; }
.library-toolkit-link { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; line-height: 1.45; padding: 5px 0; text-decoration: underline !important; text-decoration-color: var(--library-gold) !important; text-underline-offset: 6px; }
.library-toolkit-link .library-icon { width: 16px; height: 16px; flex-basis: 16px; }
.library-filters { display: flex; gap: 12px; margin-left: auto; }
.library-filters button { border: 1px solid #414b5a; background: #101318; color: #e1e4ea; min-height: 34px; min-width: 68px; padding: 6px 16px; border-radius: 20px; font: inherit; font-size: 12px; cursor: pointer; }
.library-filters button.active { border-color: var(--library-gold); color: var(--library-gold); background: #080a0c; }
.library-filters button:hover { background: #242321; }
.library-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px 18px; }
.library-card { min-width: 0; }
.library-card[hidden] { display: none; }
.library-card-art { display: block; aspect-ratio: 2.13; border-radius: 6px; overflow: hidden; background: #17202a; }
.library-card-art picture, .library-card-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.library-card-details { display: flex; align-items: flex-start; justify-content: space-between; gap: 4px; padding: 8px 0 0 3px; }
.library-card-details > div { min-width: 0; }
.library-card h3 { margin: 0; font-size: 18px; font-weight: 750; line-height: 1.45; letter-spacing: -.45px; }
.library-card h3 a { color: #f5f5f6; }
.library-card p { margin: 1px 0 0; color: var(--library-muted); font-size: 14px; line-height: 1.5; }
.library-card .library-save { margin-top: -4px; margin-right: -3px; }
.library-art-note { color: #9da5b4; font-size: 11px; margin: 30px 3px 0; }
.library-save-status { padding: 12px 16px; border: 1px solid #796329; border-radius: 5px; color: #ffe58b; font-size: 14px; }
.library-card-art { position: relative; }
.library-card-art-label { position: absolute; right: 0; bottom: 0; padding: 4px 8px; color: #e1e5ec; background: #080a0cde; font-size: 10px; }
.library-catalog-tools { display: flex; align-items: flex-end; gap: 18px; flex-wrap: wrap; padding: 16px 0 6px; border-top: 1px solid #252a31; }
.library-catalog-tools label { color: #bac1cc; font-size: 12px; }
.library-local-search { display: grid; gap: 6px; flex: 1 1 200px; }
.library-local-search input, .library-sort select { background: #12161c; border: 1px solid #3c4654; border-radius: 5px; color: #f2f4f7; font: inherit; min-height: 44px; padding: 9px 12px; }
.library-local-search input { width: 100%; min-width: 0; font-size: 14px; }
.library-local-search input::placeholder { color: #a4adbc; opacity: 1; }
.library-check { display: flex; align-items: center; gap: 7px; min-height: 44px; cursor: pointer; white-space: nowrap; }
.library-check input { width: 17px; height: 17px; accent-color: var(--library-gold); }
.library-sort { display: grid; gap: 6px; flex: 0 1 165px; }
.library-sort select { width: 100%; }
.library-results-bar { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 15px; margin: 4px 0 12px; }
.library-results-bar p { margin: 0; color: #aeb7c6; font-size: 12px; }
.library-results-bar > div { display: flex; gap: 15px; }
.library-results-bar button, .library-card-footer button { min-height: 44px; background: none; color: #e5e9ef; border: 0; font: inherit; font-size: 12px; cursor: pointer; padding: 6px 2px; }
.library-results-bar button:hover, .library-card-footer button:hover { color: var(--library-gold); }
.library-results-bar button:disabled { opacity: .45; cursor: not-allowed; }
.library-results-bar [data-library-random] { color: var(--library-gold); }
.library-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; border-top: 1px solid #252b33; margin-top: 8px; }
.library-card-footer > span { font-size: 10px; letter-spacing: .25px; color: #aab5c5; }
.library-card-footer .library-complete { color: #b6d9bc; }
.library-card-footer button { display: inline-flex; align-items: center; gap: 6px; }
.library-card-footer .library-icon { width: 16px; height: 16px; flex-basis: 16px; }
.library-empty { border: 1px dashed #414b5a; border-radius: 6px; padding: 24px; margin: 8px 0; }
.library-empty h3 { font-size: 20px; margin: 0 0 8px; }
.library-empty p { color: var(--library-muted); font-size: 14px; max-width: 65ch; }
.library-dialog { width: min(700px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); margin: auto; padding: 36px; overflow-y: auto; overscroll-behavior: contain; border: 1px solid #485364; border-radius: 12px; color: #e9edf4; background: #10151c; box-shadow: 0 24px 100px #000b; }
.library-dialog::backdrop { background: #000b; }
.library-dialog-close { position: sticky; float: right; top: 0; display: grid; place-items: center; width: 44px; height: 44px; margin: -20px -20px 0 12px; border: 1px solid #445062; border-radius: 6px; background: #141a23; cursor: pointer; }
.library-dialog h2 { font-size: clamp(25px, 4vw, 36px); line-height: 1.18; letter-spacing: -1px; margin: 12px 0 6px; }
.library-dialog .eyebrow { font-size: 10px; letter-spacing: 1.3px; color: var(--library-gold); }
.library-dialog h3 { font-size: 18px; line-height: 1.4; margin: 23px 0 8px; }
.library-dialog p { color: #c2cad7; font-size: 14px; line-height: 1.65; }
.library-dialog .library-dialog-genre { font-size: 12px; color: #9facbe; margin: 0 0 18px; }
.library-dialog .library-dialog-hook { font-size: 16px; color: #e1e7ef; }
.library-dialog-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; margin: 22px 0; padding: 20px 0; border-block: 1px solid #303b4a; }
.library-dialog-facts dt { font-size: 11px; color: #9facbe; margin-bottom: 5px; }
.library-dialog-facts dd { font-size: 14px; margin: 0; overflow-wrap: anywhere; }
.library-dialog .library-reviewed { font-size: 11px; color: #9eacbf; }
.library-dialog-links { display: flex; align-items: center; flex-wrap: wrap; gap: 15px 20px; margin-top: 22px; }
.library-dialog .library-primary { font-size: 14px; padding: 10px 16px; }
.library-publisher { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; font-size: 12px; color: #e8d890; }
.library-publisher .library-icon { width: 17px; height: 17px; flex-basis: 17px; }
.library-dialog-save { min-height: 44px; margin-top: 14px; padding: 8px 16px; background: #1a2330; border: 1px solid #536077; border-radius: 6px; color: #e6ebf4; font: inherit; font-size: 12px; cursor: pointer; }
.library-dialog-save[aria-pressed="true"] { border-color: var(--library-gold); color: var(--library-gold); }
html:not(.js) .library-catalog-tools, html:not(.js) .library-results-bar > div, html:not(.js) .library-filters, html:not(.js) [data-library-preview] { display: none; }
@media (max-width: 700px) {
  .library-catalog-tools { gap: 8px 16px; }
  .library-local-search { flex-basis: 100%; }
  .library-local-search input { font-size: 16px; }
  .library-sort { flex-basis: 100%; }
  .library-dialog { padding: 24px; }
  .library-dialog-close { margin: -12px -12px 0 8px; }
  .library-dialog-facts { grid-template-columns: 1fr; gap: 14px; }
}
.home-page .section { max-width: 1660px; padding-left: 18px; padding-right: 20px; }
.home-page .section:first-of-type { margin-top: 46px; }
.home-page .band-inner { padding-left: 28px; padding-right: 28px; }
.home-page .footer-inner { padding: 40px 24px; }
.home-page .footer .brand-copy strong { font-size: 23px; }
.home-page .card-grid { gap: 20px; }
.home-page .platform-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 1600px) {
  .library-hero { min-height: 345px; }
  .library-card-art { aspect-ratio: 2; }
}
@media (max-width: 1260px) {
  .library-hero::after { background: linear-gradient(90deg, #050a0ff0 0%, #050a0fd6 44%, #050a0f91 68%, #050a0f08 100%); }
  .library-toolkit-link { order: 3; flex-basis: 100%; }
  .library-catalog-head { gap: 10px 16px; }
  .library-hero h1 { font-size: 52px; }
  .library-card h3 { font-size: 16px; }
  .library-card p { font-size: 12px; }
}
@media (max-width: 1000px) {
  .library-sidebar { width: 200px; }
  .home-page main, .home-page > .footer { margin-left: 200px; }
  .library-brand { margin-left: 14px; gap: 8px; }
  .library-brand > img { width: 44px; height: 44px; }
  .library-brand strong { font-size: 18px; }
  .library-brand small { font-size: 10px; }
  .library-nav a { gap: 16px; padding-left: 20px; }
  .library-hero-copy { padding-left: 24px; }
  .library-hero h1 { font-size: 43px; letter-spacing: -1.8px; }
  .library-hero-copy p { font-size: 18px; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .library-card-art { aspect-ratio: 1.9; }
  .library-filters { margin-left: 0; }
  .library-catalog-head h2 { flex-basis: 100%; }
  .library-toolkit-link { order: initial; }
}
@media (max-width: 700px) {
  .home-page main, .home-page > .footer { margin-left: 0; }
  .library-mobile { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: #090b0d; border-bottom: 1px solid #252a31; }
  .library-mobile .library-brand { margin: 0; align-items: center; }
  .library-mobile .library-brand > img { width: 40px; height: 40px; }
  .library-mobile .library-brand strong { font-size: 19px; }
  .library-mobile .library-brand small { display: none; }
  .library-menu { display: none; align-items: center; gap: 6px; min-height: 44px; background: none; color: #d8dde6; border: 1px solid #343b46; border-radius: 5px; padding: 8px 10px; font: inherit; font-size: 12px; }
  .js .library-menu { display: flex; }
  .library-sidebar { position: static; width: 100%; height: auto; border-right: 0; border-bottom: 1px solid #303640; padding: 8px 0 12px; }
  .js .library-sidebar { display: none; }
  .js .library-sidebar.is-open { display: flex; }
  .library-sidebar > .library-brand { display: none; }
  .library-nav { gap: 1px; }
  .library-nav a { min-height: 48px; padding: 10px 22px; gap: 17px; }
  .library-sidebar-bottom { margin: 0 20px; padding: 12px 0 0; }
  .library-sidebar-bottom nav { display: flex; gap: 20px; }
  .library-sidebar-bottom a { gap: 8px; min-height: 44px; }
  .library-sidebar-bottom p { display: none; }
  .library-discovery { padding: 16px; }
  .library-search { width: 100%; margin: 0 0 16px; height: 46px; }
  .library-search input { font-size: 16px; }
  .library-hero { min-height: 350px; align-items: flex-end; }
  .library-hero-art img { object-position: 65% 40%; }
  .library-hero::after { background: linear-gradient(0deg, #050a0ff5 0%, #050a0fdb 48%, #050a0f15 100%); }
  .library-hero-copy { padding: 95px 20px 43px; width: 100%; }
  .library-hero h1 { font-size: clamp(30px, 8vw, 47px); letter-spacing: -1.2px; margin-top: 8px; }
  .library-hero-copy p { font-size: 16px; line-height: 1.5; }
  .library-hero-copy p br { display: none; }
  .library-hero-actions { gap: 9px; flex-wrap: wrap; margin-top: 18px; }
  .library-primary { font-size: 14px; padding: 10px 14px; gap: 9px; }
  .library-save-full { font-size: 11px; padding: 8px 5px; gap: 6px; }
  .library-art-caption { padding: 6px 12px; font-size: 10px; }
  .library-catalog { margin-top: 27px; }
  .library-catalog-head { gap: 10px; margin-bottom: 16px; }
  .library-catalog h2 { font-size: 29px; letter-spacing: -1px; }
  .library-toolkit-link { font-size: 11px; }
  .library-filters { width: 100%; justify-content: space-between; gap: 8px; margin-top: 7px; }
  .library-filters button { min-width: 0; padding: 8px 16px; min-height: 44px; }
  .library-grid { gap: 20px 14px; }
  .library-card-art { aspect-ratio: 1.5; }
  .library-card h3 { font-size: 15px; line-height: 1.4; }
  .library-card p { font-size: 12px; }
  .library-card-details { padding-left: 0; gap: 0; }
  .library-card .library-save { min-width: 34px; padding: 6px; margin-right: -5px; }
  .library-art-note { margin-top: 24px; }
  .home-page .section { padding-left: 16px; padding-right: 16px; }
  .home-page .section:first-of-type { margin-top: 20px; }
}
@media (max-width: 440px) {
  .library-grid { grid-template-columns: 1fr; gap: 20px; }
  .library-card-art { aspect-ratio: 1.9; }
  .library-card h3 { font-size: 17px; }
  .library-card p { font-size: 13px; }
  .library-card .library-save { min-width: 44px; padding: 9px; }
  .library-filters button { padding-left: 13px; padding-right: 13px; }
  .home-page .platform-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .home-page *, .home-page *::before, .home-page *::after { scroll-behavior: auto; transition: none; }
}
