/* ==========================================================================================================
   /libraries in the Classroom Home frame (Nov 16 2026). Same frame as newsreel.co/classroom/: words left and one
   moving visual right (here the librarian dashboard, not dots), one type scale (Bree 68/40/24, DM Sans 18/16/14),
   sans figures, hairline sections, one red action plus a text link, one closing section with the form in a card.
   Round 1 of review (Jack: "it's busy"): a minimalist designer, a glitch hunter and a mobile coder. Three dashboard
   tabs, the dashboard's inner boxes and extra reds gone, one red action per screen, the film and press logos gone,
   phones get one still dashboard scene and the form first in the close.
   Loaded after libraries.css; everything is scoped to main.lf.
   ========================================================================================================== */
.lf { --lf-2: #CCCCCC; --lf-3: #A3A3A3; --lf-4: #8A8A8A; --lf-line: rgba(255, 255, 255, .10);
  --lf-gx: 24px; --lf-sec: clamp(88px, 10vw, 128px); --lf-nav: 81px;
  --lx-rule: rgba(255, 255, 255, .14); --lx-accent: var(--red);        /* the tab row left section.lx, which set these */
  background: #050505; color: #fff; display: block; }
@media (max-width: 640px) { .lf { --lf-gx: 20px; --lf-sec: 88px; --lf-nav: 77px; } }
.lf h1, .lf h2, .lf h3 { color: #fff; }
.lf h2 { text-wrap: balance; }
.lf p { text-wrap: pretty; }

/* the nav's Download button is for readers; this page has one action (as on /classroom/) */
body:has(main.lf) .nav .nav-cta a.btn { display: none !important; }

/* the red action and the quiet text link, as on /classroom/ */
.lf .lf-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 26px; border-radius: 8px;
  background: var(--red); color: #14100E; font: 500 16px/1 'DM Sans', sans-serif; letter-spacing: 0; text-transform: none; text-decoration: none; border: 0; }
.lf .lf-btn:hover { filter: brightness(1.06); }
.lf .lf-link { color: #fff; font: 400 16px/1.5 'DM Sans', sans-serif; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.lf .lf-link:hover { color: var(--lf-2); }
.lf .lf-sub { margin: 20px 0 0; font-size: 18px; line-height: 1.55; color: var(--lf-2); max-width: 30em; text-align: left; }
.lf .lf-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; margin-top: 28px; }

/* ---- 1. the opener: words left, the dashboard right ---- */
.lf .lf-hero { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); column-gap: clamp(24px, 3vw, 48px); align-items: center;
  box-sizing: border-box; max-width: 1360px; margin: 0 auto; min-height: 100vh; min-height: 100svh;
  padding: calc(var(--lf-nav) + clamp(24px, 3vw, 48px)) var(--lf-gx) clamp(48px, 5vw, 72px); }
.lf .lf-text h1 { margin: 0; font-family: 'Bree Serif', serif; font-weight: 400; font-size: clamp(40px, 4.6vw, 68px); line-height: 1.02; letter-spacing: -.025em; text-align: left; }
.lf .lf-text .lx-signin { margin: 18px 0 0; text-align: left; font-size: 14px; color: var(--lf-4); }
.lf .lf-text .lx-signin a { white-space: nowrap; color: var(--lf-4) !important; text-decoration-color: rgba(255, 255, 255, .18); }
.lf .lf-text .lx-signin a:hover { color: #fff !important; }

/* the dashboard: three tabs, labels only; no greeting row, tags, flyer cards or second buttons. Round 4 (Jack: "sad colors")
   gives it back the product's own colours: red progress bars, the red link and button, the coloured stat icons, a warm glow */
.lf .lf-dash { position: relative; isolation: isolate; }
.lf .lf-dash::before { content: ''; position: absolute; z-index: -1; inset: 18% 8% 6%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 99, 67, .26), rgba(255, 99, 67, 0)); filter: blur(30px); }
.lf .lf-dash .lx-wrap { width: auto; margin: 0; }
.lf .lf-dash .lx-fn { margin: 0; gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); overflow: visible; padding: 0; }
.lf .lf-dash .lx-fn button { min-height: 44px; padding: 12px 2px 6px; }
.lf .lf-dash .lx-fn button span { display: none; }
.lf .lf-dash .lx-fn button b { font-size: 14px; font-weight: 500; }
.lf .lf-dash .lx-win { margin-top: 16px; }
.lf .lx-hi, .lf .lx-bar em, .lf .lx-av, .lf .lx-flyer, .lf .lx-btns .lx-btn:not(.is-main) { display: none; }
.lf .lf-dash .lx-body { min-height: 380px; }
.lf .lf-dash .lx-scene { top: 28px; }
.lf .lx-share { padding: 0; border: 0; background: none; }
.lf .lx-btns { margin-left: 0; }
.lf .lx-btns { position: relative; }
.lf .lx-toast { top: auto; right: auto; left: 0; bottom: calc(100% + 8px); white-space: nowrap; }
.lf .lx-code { font-size: 18px; }
/* figures in sans, as on /classroom/ (libraries.css sets them in IBM Plex Mono) */
.lf .lx-num, .lf .lx-sheet dd { font-family: 'DM Sans', sans-serif; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.lf .lx-sample { font-size: 14px; color: var(--lf-4); }
@media (max-width: 1000px) {
  .lf .lf-hero { grid-template-columns: minmax(0, 1fr); min-height: 0; padding-top: calc(var(--lf-nav) + 40px); }
  .lf .lf-text { text-align: center; }
  .lf .lf-text h1, .lf .lf-text .lf-sub, .lf .lf-text .lx-signin { text-align: center; margin-inline: auto; }
  .lf .lf-text .lf-cta { justify-content: center; }
  .lf .lf-dash { margin-top: 40px; }
  .lf .lf-dash .lx-body { min-height: 480px; }
}
@media (max-width: 640px) {
  .lf .lf-text .lf-cta { flex-direction: column; align-items: stretch; gap: 6px; }
  .lf .lf-text .lf-cta .lf-link { text-align: center; padding: 10px 0; }
  .lf .lf-text h1 { font-size: 36px; text-wrap: balance; }           /* the /classroom/ phone size */
  .lf .lf-text .lx-signin { display: none; }                          /* the phone menu's Log in has both sign-ins */
  /* phones: one still scene (This month); libraries.js opens it once and runs no clock */
  .lf .lf-dash .lx-fn { display: none; }
  .lf .lf-dash .lx-win { margin-top: 0; }
  .lf .lf-dash .lx-body { min-height: 0; }
  .lf .lf-dash .lx-scene { display: none; }
  .lf .lf-dash #lx-s-who { display: block; position: static; opacity: 1; visibility: visible; transform: none; }
  .lf .lx-stat small { display: none; }
  .lf .lx-sample { text-align: center; }
}

/* ---- 1b. recent stories: one slow row of real Newsreel stories under the opener ---- */
.lf .lf-news { padding-block: clamp(48px, 5vw, 72px); border-top: 1px solid var(--lf-line); overflow: hidden; }
.lf .lf-news-cap { width: min(1152px, calc(100% - 2 * var(--lf-gx))); margin: 0 auto 24px; font-size: 14px; color: var(--lf-3); }
.lf .lf-news-view { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.lf .lf-news-track { display: flex; gap: 20px; width: max-content; margin: 0; padding: 0; list-style: none; animation: lf-roll 80s linear infinite; }
.lf .lf-news-view:hover .lf-news-track { animation-play-state: paused; }
@keyframes lf-roll { to { transform: translateX(calc(-50% - 10px)); } }   /* one set of eight: half the track plus half a gap */
.lf .lf-card { flex: none; width: 280px; }
.lf .lf-card img { display: block; width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: cover; border-radius: 10px; background: #111; }
.lf .lf-card span { display: block; margin-top: 14px; font-size: 13px; font-weight: 500; letter-spacing: .02em; color: var(--red); }
.lf .lf-card b { display: block; margin-top: 6px; font-family: 'Bree Serif', serif; font-weight: 400; font-size: 18px; line-height: 1.3; color: #fff; }
@media (max-width: 640px) { .lf .lf-card { width: 220px; } .lf .lf-card b { font-size: 16px; } }
@media (prefers-reduced-motion: reduce) { .lf .lf-news-track { animation: none; } .lf .lf-news-view { overflow-x: auto; } .lf .lf-card[aria-hidden] { display: none; } }

/* ---- 1c. what patrons read (Jack: "show what an article looks like and how it works", from Cris's Classroom story).
   One real story in a phone, as the app shows it: a light scroll page, a picture with its source on every part, the
   author's quiz and poll at the end. The list beside it names each part and follows the screen. ---- */
.lf .lf-look { overflow-x: clip; }                                  /* the glow is wider than the phone */
.lf .lf-look-in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
.lf .lf-look-text p { margin: 18px 0 0; max-width: 30em; font-size: 18px; line-height: 1.6; color: var(--lf-2); }
.lf .lf-phone { position: relative; isolation: isolate; justify-self: center; width: 340px; max-width: 100%; }
.lf .lf-phone::before { content: ''; position: absolute; z-index: -1; inset: 10% -18% 4%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 99, 67, .24), rgba(255, 99, 67, 0)); filter: blur(30px); }
.lf .lf-screen { position: relative; box-sizing: border-box; height: clamp(540px, calc(100svh - 140px), 660px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none;
  background: #fff; color: #0B0B0C; border: 10px solid #1C1C1F; border-radius: 46px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .10), 0 30px 80px rgba(0, 0, 0, .55); }
.lf .lf-screen::-webkit-scrollbar { display: none; }
.lf .lf-screen:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
.lf .lf-sbar { position: sticky; top: 0; z-index: 2; height: 56px; display: flex; align-items: center; padding: 0 14px;
  background: linear-gradient(#fff 74%, rgba(255, 255, 255, 0)); }
.lf .lf-back { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; box-shadow: 0 2px 10px rgba(0, 0, 0, .14); }
.lf .lf-back svg { width: 18px; height: 18px; fill: none; stroke: #0B0B0C; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.lf .lf-story { padding: 0 18px 28px; font-family: 'DM Sans', sans-serif; text-align: left; }
.lf .lf-part + .lf-part { margin-top: 30px; }
.lf .lf-media { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: #EDEDF0; }
.lf .lf-media img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; }
.lf .lf-media figcaption { position: absolute; left: 8px; bottom: 8px; padding: 3px 7px; border-radius: 6px; background: rgba(11, 11, 12, .82);
  color: #fff; font-size: 11px; line-height: 1.35; }
.lf .lf-story .lf-st-h { margin: 14px 0 8px; font-family: 'Bree Serif', serif; font-weight: 400; font-size: 23px; line-height: 1.18; letter-spacing: -.01em; color: #0B0B0C; }
.lf .lf-story p { margin: 0; max-width: none; font-size: 15px; line-height: 1.5; color: #26262B; }
.lf .lf-story .lf-dek { color: #5F5F66; }
.lf .lf-by { display: flex; align-items: center; gap: 8px; margin: 14px 0 18px !important; font-size: 13px !important; font-weight: 500; color: #0B0B0C !important; }
.lf .lf-by img { width: 24px; height: 24px; border-radius: 50%; }
.lf .lf-story h4 { margin: 14px 0 6px; font-family: 'Bree Serif', serif; font-weight: 400; font-size: 18px; line-height: 1.25; color: #0B0B0C; }
.lf .lf-quiz, .lf .lf-poll { padding: 16px; border: 1px solid #E4E4E8; border-radius: 14px; }
.lf .lf-poll { margin-top: 14px; }
.lf .lf-tag { font-size: 12px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: #C23B1E; }   /* the red, darkened to 5:1 on white */
.lf .lf-story .lf-q { margin: 6px 0 12px; font-weight: 500; color: #0B0B0C; }
.lf .lf-opts { display: grid; gap: 8px; }
.lf .lf-opts-2 { grid-template-columns: 1fr 1fr; }
.lf .lf-opts button { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; padding: 10px 14px;
  border: 1px solid #D6D6DC; border-radius: 10px; background: #fff; color: #0B0B0C; font: 500 15px/1.2 'DM Sans', sans-serif; text-align: left; cursor: pointer;
  transition: background-color .25s, border-color .25s, color .25s, transform .2s; }
.lf .lf-opts-2 button { justify-content: center; }
.lf .lf-opts button:hover { border-color: #8E8E96; }
.lf .lf-opts button.tap { transform: scale(.96); border-color: #0B0B0C; }
.lf .lf-opts button.ok { background: #E7F5EC; border-color: #2E8B57; color: #17533A; }
.lf .lf-opts button.ok::after { content: '\2713'; font-weight: 700; }
.lf .lf-opts button.no { background: #FDEDE9; border-color: #D9472B; color: #9A2E16; }
.lf .lf-opts button.pick { background: #0B0B0C; border-color: #0B0B0C; color: #fff; }
/* the parts list */
.lf .lf-parts { counter-reset: lfp; list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--lf-line); }
.lf .lf-parts li { counter-increment: lfp; border-bottom: 1px solid var(--lf-line); }
.lf .lf-parts button { display: grid; grid-template-columns: 26px minmax(0, 1fr); column-gap: 10px; width: 100%; min-height: 44px; padding: 12px 0;
  border: 0; background: none; text-align: left; cursor: pointer; font: inherit; color: var(--lf-4); }
.lf .lf-parts button::before { content: counter(lfp); grid-row: 1 / span 2; font: 700 14px/1.6 'DM Sans', sans-serif; color: var(--lf-4); transition: color .3s; }
.lf .lf-parts b { font-size: 16px; font-weight: 500; line-height: 1.4; color: var(--lf-3); transition: color .3s; }
.lf .lf-parts span { font-size: 14px; line-height: 1.45; color: var(--lf-4); }
.lf .lf-parts button:hover b, .lf .lf-parts button[aria-current] b { color: #fff; }
.lf .lf-parts button[aria-current]::before { color: var(--red); }
.lf .lf-parts button[aria-current] span { color: var(--lf-2); }
.lf .lf-parts button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .lf .lf-opts button, .lf .lf-parts b { transition: none; } }
@media (hover: none) { .lf .lf-screen { overflow-y: hidden; } }      /* touch: the page scrolls past the phone; the list and the tour move it */
@media (max-width: 900px) {
  .lf .lf-look-in { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .lf .lf-look-text { display: contents; }
  .lf .lf-look-text h2 { order: 1; } .lf .lf-look-text > p { order: 2; } .lf .lf-phone { order: 3; margin-top: 40px; } .lf .lf-parts { order: 4; }
  .lf .lf-parts { display: grid; grid-template-columns: 1fr 1fr; column-gap: 20px; margin-top: 36px; border-top: 0; }
  .lf .lf-parts li { border-top: 1px solid var(--lf-line); border-bottom: 0; }
  .lf .lf-parts span { display: none; }
  .lf .lf-parts button::before { grid-row: auto; }
}
@media (max-width: 640px) {
  .lf .lf-phone { width: 300px; }
  .lf .lf-screen { height: 560px; border-width: 8px; border-radius: 40px; }
  .lf .lf-parts { column-gap: 14px; }
  .lf .lf-parts b { font-size: 15px; }
}

/* ---- sections ---- */
.lf .lf-sec { padding-block: var(--lf-sec); border-top: 1px solid var(--lf-line); }
.lf .lf-wrap { width: min(1152px, calc(100% - 2 * var(--lf-gx))); margin: 0 auto; }
.lf .lf-two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: center; }
@media (max-width: 900px) { .lf .lf-two { grid-template-columns: minmax(0, 1fr); } }
.lf .lf-sec h2, .lf .lf-close h2 { font-family: 'Bree Serif', serif; font-weight: 400; font-size: clamp(30px, 3.1vw, 40px); line-height: 1.1; letter-spacing: -.015em; text-align: left; margin: 0; }

/* ---- 2. why libraries: two rows, each statement beside its number as dots (round 5, Jack: "dot stats next to it") ---- */
.lf .lf-why .lf-row + .lf-row { margin-top: clamp(64px, 7vw, 96px); }
.lf .lf-why .lf-two { align-items: center; }
.lf .lf-why p { margin: 18px 0 0; max-width: 30em; font-size: 18px; line-height: 1.6; color: var(--lf-2); }
.lf .lf-why em { font-style: normal; color: inherit; }
.lf .lf-why .lf-col a { color: inherit !important; text-decoration: underline; text-underline-offset: 3px; }   /* readability.css colours links with !important */
.lf .lf-stat { display: flex; align-items: flex-end; gap: clamp(24px, 3vw, 40px); margin: 0; }
.lf .lf-dv { display: grid; grid-template-columns: repeat(10, 12px); gap: 6px; flex: none; }
.lf .lf-dv i { width: 12px; height: 12px; border-radius: 50%; background: #2A2A2E; }
.lf .lf-dv i.on { background: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .lf .lf-dv i { transform: scale(.3); opacity: 0; transition: transform .35s ease, opacity .35s ease; transition-delay: calc(var(--d) * 9ms); }
  .lf .lf-dv.in i { transform: none; opacity: 1; }
}
.lf .lf-stat figcaption { display: flex; flex-direction: column; gap: 8px; max-width: 16em; }
.lf .lf-stat b { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.03em; color: #fff; }
.lf .lf-stat span { font-size: 16px; line-height: 1.45; color: var(--lf-2); }
.lf .lf-stat a { margin-top: 4px; font-size: 14px; color: var(--lf-3) !important; text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .18); text-underline-offset: 3px; }
@media (max-width: 900px) { .lf .lf-why .lf-two { row-gap: 32px; } }
@media (max-width: 520px) { .lf .lf-dv { grid-template-columns: repeat(10, 9px); gap: 4px; } .lf .lf-dv i { width: 9px; height: 9px; } .lf .lf-stat b { font-size: 36px; } .lf .lf-stat span { font-size: 15px; } }

/* ---- 3. proof: the figure and the award, beside the director's words. Round 6 (Jack: "add a bit more color"): the figure
   in red, the NAMLE logo in its own colours, a red quotation mark ---- */
.lf .lf-proof .lf-two { align-items: start; }
.lf .lf-fig { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.lf .lf-fig b { font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -.03em; color: var(--red); }
.lf .lf-fig span { font-size: 18px; color: var(--lf-2); }
.lf .lf-award { display: flex; align-items: center; gap: 14px; margin: 32px 0 0; max-width: 30em; font-size: 14px; line-height: 1.5; color: var(--lf-3); }
.lf .lf-award img { flex: none; height: 28px; width: auto; }
.lf .lf-quote { margin: 0; }
.lf .lf-qmark { display: block; height: 34px; margin-bottom: 10px; font-family: 'Bree Serif', serif; font-size: 80px; line-height: .9; color: var(--red); }
.lf .lf-quote .lib-quote-text { margin: 0; padding: 0; border: 0; font-family: 'Bree Serif', serif; font-size: 24px; line-height: 1.35; color: #fff; text-align: left; }
.lf .lf-quote .lib-quote-cite { display: block; margin-top: 20px; font-size: 14px; font-weight: 500; color: #fff; text-align: left; }
.lf .lf-quote .lib-quote-cite span { display: block; margin-top: 2px; font-size: 14px; font-weight: 400; color: var(--lf-3) !important; }

/* ---- 4. FAQ: heading left, questions right ---- */
.lf .lf-faq .container { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); column-gap: clamp(32px, 4vw, 64px); align-items: start;
  width: min(1152px, calc(100% - 2 * var(--lf-gx))); max-width: none; margin: 0 auto; padding: 0; }
.lf .lf-faq h2 { grid-column: 1; grid-row: 1 / span 12; }
.lf .lf-faq .faq-item { grid-column: 2; padding: 6px 0; }
.lf .lf-faq .faq-question { min-height: 44px; padding: 12px 0; }
.lf .lf-faq .faq-answer { visibility: hidden; transition: max-height .4s cubic-bezier(.16, 1, .3, 1), visibility 0s .4s; }
.lf .lf-faq .faq-item.open .faq-answer { visibility: visible; transition-delay: 0s; padding-bottom: 12px; }
.lf .lf-faq .faq-answer a { color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 900px) { .lf .lf-faq .container { grid-template-columns: minmax(0, 1fr); } .lf .lf-faq h2 { grid-row: auto; margin-bottom: 20px; } .lf .lf-faq .faq-item { grid-column: 1; } }

/* ---- 5. one closing section: the close left, the trial form in a card right ---- */
.lf .lf-end { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 4vw, 64px); align-items: start;
  width: min(1152px, calc(100% - 2 * var(--lf-gx))); margin: 0 auto; padding-block: var(--lf-sec); border-top: 1px solid var(--lf-line); }
.lf .lf-close .lf-sub { margin-top: 16px; max-width: 28em; }
.lf .lf-close .lx-incl { flex-direction: column; gap: 10px; margin: 24px 0 0; font-size: 16px; color: var(--lf-2); }
.lf .lf-close .lx-incl svg { color: var(--lf-3); }
.lf .lf-close .lf-cta { margin-top: 32px; }
.lf .lf-contact { display: flex; flex-direction: column; gap: 2px; margin: 40px 0 0; padding-top: 24px; border-top: 1px solid var(--lf-line); font-size: 14px; color: var(--lf-3); }
.lf .lf-contact b { font-weight: 500; color: #fff; }
.lf .lf-contact a { width: fit-content; margin-top: 4px; color: #fff !important; text-decoration: underline; text-underline-offset: 3px; }
.lf .lf-formcard { padding: clamp(24px, 3vw, 36px); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; background: #0B0B0B; }
.lf .lf-formcard .lx-start { display: block; width: auto; margin: 0; padding: 0; }
.lf .lf-formcard .lx-start .lx-label { display: none; }
.lf .lf-formcard .lx-start .lx-h2 { font-family: 'Bree Serif', serif; font-weight: 400; font-size: 24px; line-height: 1.15; margin: 0; }
.lf .lf-formcard .lx-start > div > p { font-size: 15.5px; max-width: none; }
.lf .lf-formcard .lx-q { margin-top: 24px; padding: 0; border: 0; background: none; }
.lf .lx-q .btn-primary { font: 500 16px/1 'DM Sans', sans-serif; letter-spacing: 0; text-transform: none; }
:root:not([data-theme="dark"]) .lf .lx-q-msg.is-bad { color: #E26A47; }      /* main.lf stays dark in the light theme */
:root:not([data-theme="dark"]) .lf .lx-q-msg.is-ok { color: #4FA77A; }
@media (max-width: 900px) { .lf .lf-end { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  /* phones: the closing headline, then the form, then the rest of the close */
  .lf .lf-end { display: flex; flex-direction: column; gap: 0; }
  .lf .lf-close { display: contents; }
  .lf .lf-close h2 { order: -2; margin-bottom: 24px; }
  .lf .lf-formcard { order: -1; padding: 20px; margin-bottom: 48px; }
}
