/* /libraries/ (Nov 5 2026, Cris's Library Edition request): the librarian dashboard showcase, the trial and price form,
   and the "who signs in where" line. The dashboard is drawn in HTML from Cris's Nov 5 screenshot of library.newsreel.co,
   with sample numbers. The tabs work like the Classroom page's "How Newsreel Classroom works" tabs. */
.lx { --lx-rule: rgba(var(--ink-rgb), .14); --lx-accent: #C9432A; }
[data-theme="dark"] .lx { --lx-accent: var(--red); }
.lx-wrap { width: min(1152px, calc(100% - 48px)); margin: 0 auto; }
.lx-label { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; line-height: 1.6; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); margin: 0 0 16px; }
.lx-h2 { font-family: 'Bree Serif', serif; font-weight: 400; font-size: clamp(32px, 3.3vw, 48px); line-height: 1.06; letter-spacing: -.015em; color: var(--text); margin: 0; text-wrap: balance; }
.lx-promise { margin: 18px 0 0; font-size: 18px; line-height: 1.6; color: var(--text-2); max-width: 40em; }

/* ---------- the sign-in line under the hero buttons */
.lx-signin { margin: 22px auto 0; font-size: 14.5px; line-height: 1.5; color: var(--text-3); }
.lx-signin a { color: var(--text); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.lx-signin a:hover { color: var(--lx-accent); }
.lx-signin span { margin: 0 2px; color: var(--lx-rule); }

/* ---------- the dashboard showcase */
.lx-dash { padding: 112px 0 120px; }
.lx-fn { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; margin: 44px 0 0; padding: 0; list-style: none; }
.lx-fn button { position: relative; display: flex; flex-direction: column; width: 100%; height: 100%; padding: 16px 2px 2px; border: 0; background: none; color: var(--text-3); text-align: left; font: inherit; cursor: pointer; }
.lx-fn button::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 2px; background: var(--lx-rule); }
.lx-fn button i { position: absolute; z-index: 1; top: 0; left: 0; height: 3px; width: 0; border-radius: 2px; background: var(--red); }
.lx-fn button[aria-selected="true"] i { width: var(--p, 100%); }
.lx-fn b { display: block; font-size: 16px; font-weight: 500; color: var(--text-2); }
.lx-fn span { display: block; margin-top: 3px; font-size: 14px; line-height: 1.4; }
.lx-fn button[aria-selected="true"] b { color: var(--text); }
.lx-fn button:focus-visible { outline: 2px solid var(--text); outline-offset: 4px; }

/* the window: always dark, like the product */
.lx-win { --w-bg: #0E0E10; --w-card: #17171B; --w-line: rgba(255, 255, 255, .08); --w-ink: #F3F3F4; --w-mute: #9C9CA3; --w-dim: #6B6B73; --w-blue: #3B82F6; --w-or: #FF6343;
  position: relative; margin-top: 28px; border-radius: 18px; overflow: hidden; background: var(--w-bg); color: var(--w-ink); border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 30px 80px -20px rgba(0, 0, 0, .45); font-family: 'DM Sans', sans-serif; }
.lx-bar { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 24px; border-bottom: 1px solid var(--w-line); }
.lx-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 7px; background: #000; color: #fff; font: 700 17px/1 'DM Sans', sans-serif; }
.lx-bar strong { font-family: 'Bree Serif', serif; font-weight: 400; font-size: 19px; }
.lx-bar em { margin-left: auto; font-style: normal; font-family: 'IBM Plex Mono', monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--w-dim); }
.lx-bar .lx-av { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #26262B; color: var(--w-mute); font-size: 13px; }
.lx-body { position: relative; padding: 28px 28px 30px; min-height: 452px; }
.lx-hi { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.lx-hi h3 { margin: 0; font-family: 'Bree Serif', serif; font-weight: 400; font-size: 26px; line-height: 1.2; color: var(--w-ink); }
.lx-hi p { margin: 4px 0 0; font-size: 14px; color: var(--w-mute); }
.lx-month { display: flex; align-items: center; gap: 14px; font-family: 'Bree Serif', serif; font-size: 16px; white-space: nowrap; }
.lx-month span { color: var(--w-dim); font-family: 'DM Sans', sans-serif; }

/* scenes: one per tab, cross-faded */
.lx-scene { position: absolute; left: 28px; right: 28px; top: 104px; bottom: 30px; opacity: 0; visibility: hidden; transform: translateY(10px); transition: opacity .45s ease, transform .55s cubic-bezier(.2, .8, .2, 1), visibility 0s .45s; }
.lx-scene[data-scene="who"], .lx-scene[data-scene="share"] { display: flex; flex-direction: column; justify-content: center; }
.lx-scene.is-on { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease .08s, transform .55s cubic-bezier(.2, .8, .2, 1) .08s, visibility 0s; }
.lx-card { border-radius: 14px; border: 1px solid var(--w-line); background: var(--w-card); }
.lx-cap { margin: 0; font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--w-mute); }
.lx-num { font-family: 'IBM Plex Mono', monospace; font-variant-numeric: tabular-nums; }

/* 1. share your link */
.lx-share { padding: 26px 28px; }
.lx-link { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px; }
.lx-code { padding: 12px 18px; border-radius: 10px; border: 1px solid rgba(255, 99, 67, .35); background: rgba(255, 99, 67, .08); color: var(--w-or); font: 500 clamp(15px, 2vw, 22px)/1.2 'IBM Plex Mono', monospace; letter-spacing: .02em; }
.lx-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.lx-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 9px; border: 1px solid var(--w-line); background: transparent; color: var(--w-ink); font: 500 14px/1 'DM Sans', sans-serif; white-space: nowrap; }
.lx-btn svg { width: 15px; height: 15px; }
.lx-btn.is-main { border-color: var(--w-or); background: var(--w-or); color: #1A0D08; }
.lx-btn.is-press { animation: lx-press .5s ease; }
@keyframes lx-press { 40% { transform: scale(.94); } 100% { transform: none; } }
.lx-share p.lx-note { margin: 16px 0 0; font-size: 14px; color: var(--w-mute); }
.lx-toast { position: absolute; right: 28px; top: 0; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 9px; background: #F3F3F4; color: #111; font-size: 13.5px; font-weight: 600; opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
.lx-toast.is-on { opacity: 1; transform: none; }
.lx-flyer { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; margin-top: 18px; }
.lx-flyer > div { padding: 16px 18px; }
.lx-flyer b { display: block; margin-top: 6px; font-size: 14.5px; font-weight: 500; }
.lx-flyer span { display: block; margin-top: 3px; font-size: 13px; color: var(--w-mute); }

/* 2. who is reading */
.lx-say { margin: 0 0 22px; font-size: 19px; color: var(--w-ink); }
.lx-say b { color: var(--w-or); font-weight: 500; }
.lx-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.lx-stat { padding: 22px 20px 20px; }
.lx-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.lx-ico svg { width: 17px; height: 17px; }
.lx-stat p { margin: 18px 0 0; font-size: 14px; color: var(--w-mute); }
.lx-stat strong { display: block; margin-top: 8px; font-size: clamp(30px, 3.6vw, 46px); font-weight: 400; line-height: 1; }
.lx-stat small { display: block; margin-top: 8px; font-size: 12.5px; color: var(--w-dim); }

/* 3. reading patterns */
.lx-tots { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.lx-tots > div { padding: 16px 18px; }
.lx-tots strong { display: block; font-size: clamp(20px, 2.4vw, 28px); font-weight: 400; }
.lx-tots span { display: block; margin-top: 6px; font-size: 13px; color: var(--w-mute); }
.lx-heat-wrap { margin-top: 20px; }
.lx-months { display: grid; grid-template-columns: repeat(12, 1fr); font-size: 11.5px; color: var(--w-dim); margin-bottom: 8px; }
.lx-heat { display: grid; grid-auto-flow: column; grid-template-rows: repeat(7, 1fr); gap: 3px; }
.lx-heat i { display: block; aspect-ratio: 1; border-radius: 2px; background: #1E1E23; transition: background-color .35s ease; }
.lx-heat i.h1 { background: #1D3157; } .lx-heat i.h2 { background: #24477F; } .lx-heat i.h3 { background: #2C62B5; } .lx-heat i.h4 { background: #3B82F6; }
.lx-legend { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--w-dim); }
.lx-key { display: inline-flex; align-items: center; gap: 3px; }
.lx-key i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: #1E1E23; }
.lx-key i:first-of-type { margin-left: 5px; } .lx-key i:last-of-type { margin-right: 5px; }
.lx-key i.h1 { background: #1D3157; } .lx-key i.h2 { background: #24477F; } .lx-key i.h3 { background: #2C62B5; } .lx-key i.h4 { background: #3B82F6; }

/* 4. when they read */
.lx-hours { display: flex; align-items: flex-end; gap: 6px; height: 230px; margin-top: 8px; padding: 0 2px; border-bottom: 1px solid var(--w-line); }
.lx-hours i { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: #2A4F8F; transform: scaleY(0); transform-origin: bottom; transition: transform .7s cubic-bezier(.2, .8, .2, 1); transition-delay: calc(var(--d) * 28ms); }
.lx-hours i.is-peak { background: var(--w-blue); }
.lx-on .lx-hours i { transform: scaleY(1); }
.lx-axis { display: flex; justify-content: space-between; margin-top: 8px; font-size: 12px; color: var(--w-dim); }
.lx-peak { margin: 18px 0 0; font-size: 15px; color: var(--w-mute); }
.lx-peak b { color: var(--w-ink); font-weight: 500; }

/* 5. monthly report */
.lx-rep { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 28px; align-items: center; height: 100%; }
.lx-rep-l p { margin: 12px 0 0; font-size: 15px; line-height: 1.55; color: var(--w-mute); max-width: 26em; }
.lx-rep-l .lx-btn { margin-top: 20px; }
.lx-sheet { padding: 26px 26px 22px; border-radius: 10px; background: #FAFAF7; color: #17130F; box-shadow: 0 24px 60px -18px rgba(0, 0, 0, .6); transform: translateY(26px) rotate(-1.2deg); opacity: 0; transition: transform .8s cubic-bezier(.2, .8, .2, 1) .15s, opacity .5s ease .15s; }
.lx-on .lx-sheet { transform: rotate(-1.2deg); opacity: 1; }
.lx-sheet h4 { color: #17130F; margin: 0; font-family: 'Bree Serif', serif; font-weight: 400; font-size: 20px; }
.lx-sheet > p { margin: 4px 0 0; font-size: 12.5px; color: #6B6258; }
.lx-sheet dl { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px 18px; margin: 18px 0 0; }
.lx-sheet dt { font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: #6B6258; }
.lx-sheet dd { margin: 3px 0 0; font: 400 20px/1 'IBM Plex Mono', monospace; }
.lx-spark { display: flex; align-items: flex-end; gap: 3px; height: 40px; margin-top: 18px; }
.lx-spark i { flex: 1; height: var(--h); border-radius: 2px 2px 0 0; background: #C9432A; opacity: .85; }
.lx-spark-cap { margin: 8px 0 0; font-size: 11.5px; color: #6B6258; }
.lx-sample { margin: 14px 0 0; font-size: 13px; color: var(--text-3); text-align: right; }

/* ---------- the trial and price form */
.lx-start { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 28px 64px; align-items: start; padding: 112px 0 120px; scroll-margin-top: 110px; }
.lx-start > div > p { margin: 14px 0 0; font-size: 18px; line-height: 1.55; color: var(--text-2); max-width: 28em; }
.lx-steps { margin: 26px 0 0; padding: 0; list-style: none; counter-reset: s; display: grid; gap: 12px; }
.lx-steps li { counter-increment: s; display: grid; grid-template-columns: 28px 1fr; gap: 12px; font-size: 15.5px; line-height: 1.5; color: var(--text-2); }
.lx-steps li::before { content: counter(s); display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--lx-rule); font: 500 12.5px/1 'IBM Plex Mono', monospace; color: var(--text-3); }
.lx-q { display: grid; gap: 18px; min-width: 0; padding: 32px; border-radius: 16px; border: 1px solid var(--lx-rule); background: rgba(var(--ink-rgb), .025); }
.lx-q [hidden] { display: none !important; }
.lx-q-step { display: grid; gap: 10px; min-width: 0; }
.lx-q-label { margin: 0; font-size: 15px; font-weight: 600; color: var(--text); }
.lx-q-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.lx-q-grid .lx-full { grid-column: 1 / -1; }
.lx-fl { display: grid; gap: 6px; min-width: 0; }
.lx-fl > span { font-size: 13px; font-weight: 500; color: var(--text-3); }
.lx-q input, .lx-q select { width: 100%; min-height: 50px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(var(--ink-rgb), .28); background: var(--bg); color: var(--text); font: 16px/1.3 'DM Sans', sans-serif; }
.lx-q select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='none' stroke='%23888' stroke-width='1.5'%3E%3Cpath d='M1 1l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; padding-right: 38px; }
.lx-q input::placeholder, .lx-q select:invalid { color: var(--text-3); }
.lx-q input:focus-visible, .lx-q select:focus-visible { outline: 2px solid var(--text); outline-offset: 1px; }
[data-theme="dark"] .lx-q { color-scheme: dark; }
.lx-q-combo { position: relative; }
.lx-q-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 6px); margin: 0; padding: 6px; list-style: none; border-radius: 10px; border: 1px solid rgba(var(--ink-rgb), .2); background: var(--bg); box-shadow: 0 18px 40px -12px rgba(0, 0, 0, .28); max-height: 360px; overflow: auto; }
.lx-q-hit { padding: 10px 12px; border-radius: 7px; cursor: pointer; }
.lx-q-hit strong { display: block; font-weight: 600; font-size: 15.5px; color: var(--text); }
.lx-q-hit span { display: block; margin-top: 2px; font-size: 13.5px; color: var(--text-3); }
.lx-q-hit:hover, .lx-q-hit.is-active { background: rgba(var(--ink-rgb), .08); }
.lx-q-card { padding: 18px 20px; border-radius: 12px; border: 1px solid rgba(var(--ink-rgb), .22); background: var(--bg); animation: lx-rise .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes lx-rise { from { opacity: 0; transform: translateY(8px); } }
.lx-q-card .lx-cap { color: var(--text-3); }
.lx-q-card strong { display: block; margin-top: 8px; font-family: 'Bree Serif', serif; font-weight: 400; font-size: 22px; line-height: 1.2; color: var(--text); }
.lx-q-card > span { display: block; margin-top: 4px; font-size: 14.5px; color: var(--text-3); }
.lx-q-facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--lx-rule); font-size: 14px; color: var(--text-2); }
.lx-q-facts b { font-weight: 600; color: var(--text); }
.lx-q-yes { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 16px; }
.lx-q-note { margin: 14px 0 0; padding: 12px 14px; border-radius: 8px; background: rgba(201, 67, 42, .08); font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.lx-q-note b { color: var(--text); }
.lx-q-note a { color: var(--text); font-weight: 500; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.lx-q-msg a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.lx-q-mini { padding: 0; border: 0; background: none; color: var(--text); font: 500 14.5px/1.4 'DM Sans', sans-serif; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.lx-q-msg { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text-3); }
.lx-q-msg:empty { display: none; }
.lx-q-msg.is-bad { color: #E26A47; }
.lx-q-msg.is-ok { color: #4FA77A; font-weight: 600; }
:root:not([data-theme="dark"]) .lx-q-msg.is-ok { color: #2F7A52; }
:root:not([data-theme="dark"]) .lx-q-msg.is-bad { color: #B23016; }
.lx-q-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.lx-q .btn.is-busy { opacity: .6; cursor: wait; }
.lx-q .btn:focus-visible { outline: 2px solid var(--text); outline-offset: 2px; }
.lx-q-done { text-align: left; animation: lx-rise .45s cubic-bezier(.2, .8, .2, 1); }
.lx-q-done h3 { margin: 0; font-family: 'Bree Serif', serif; font-weight: 400; font-size: 28px; line-height: 1.15; }
.lx-q-done p { margin: 12px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.lx-q-done .lx-q-qid { font-family: 'IBM Plex Mono', monospace; font-size: 13.5px; color: var(--text-3); }
.lx-q-check { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 16px; border-radius: 50%; background: rgba(79, 167, 122, .14); color: #2F7A52; }
[data-theme="dark"] .lx-q-check { color: #4FA77A; }

@media (max-width: 1000px) {
  .lx-fn { grid-template-columns: repeat(5, minmax(150px, 1fr)); overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
  .lx-fn::-webkit-scrollbar { display: none; }
  .lx-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lx-body { min-height: 560px; }
  .lx-start { grid-template-columns: 1fr; gap: 28px; }
}
@media (max-width: 640px) {
  .lx-wrap { width: calc(100% - 40px); }
  .lx-dash, .lx-start { padding: 80px 0; }
  .lx-bar { padding: 0 16px; height: 54px; }
  .lx-bar em { display: none; }
  .lx-bar .lx-av { margin-left: auto; }
  .lx-body { padding: 20px 16px 22px; min-height: 620px; }
  .lx-scene { left: 16px; right: 16px; top: 92px; bottom: 22px; }
  .lx-month { display: none; }
  .lx-btns { margin-left: 0; }
  .lx-code { display: block; max-width: 100%; font-size: 13px; padding: 10px 12px; }
  .lx-flyer { grid-template-columns: 1fr; }
  .lx-flyer > div:nth-child(n+2) { display: none; }
  .lx-tots { grid-template-columns: 1fr 1fr; }
  .lx-tots > div:nth-child(3) { display: none; }
  .lx-hours { gap: 3px; height: 200px; }
  .lx-rep { grid-template-columns: 1fr; align-content: start; gap: 22px; }
  .lx-q { padding: 22px 18px; }
  .lx-q-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .lx-scene, .lx-scene.is-on, .lx-hours i, .lx-sheet, .lx-heat i { transition: none; }
  .lx-q-card, .lx-q-done { animation: none; }
}

/* restructure (Nov 5 2026): what every library gets, as one line under the dashboard promise; the pricing fact beside the form */
.lx-incl { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 20px 0 0; font-size: 15px; color: var(--text-2); }
.lx-incl span { display: inline-flex; align-items: center; gap: 8px; }
.lx-incl svg { color: var(--lx-accent); flex: none; }
.lx-fine { margin: 18px 0 0; font-size: 15.5px; line-height: 1.55; color: var(--text-2); max-width: 30em; }
