/* ============================================================
   LEXNOMIK — Listen / Print tools for articles and news listings
   assets/css/readtools.css  — loaded by public/features/read-tools.php
   ============================================================ */
.lx-rt { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0 6px; }
.lx-rt-btn {
  display: inline-flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 14px; border-radius: 999px;
  border: 1px solid #c9c3ad; background: #fff; color: #0f2240; cursor: pointer;
  font: 600 13.5px var(--font-ui, "DM Sans", system-ui, sans-serif); transition: border-color .15s, background .15s;
}
.lx-rt-btn:hover { border-color: #c8a84b; background: #fffaf0; }
.lx-rt-btn[aria-pressed="true"] { background: #0f2240; border-color: #0f2240; color: #fff; }
.lx-rt-btn:focus-visible, .lx-rt-bar button:focus-visible, .lx-rt-bar select:focus-visible { outline: 3px solid #1a3a5c; outline-offset: 2px; }

/* the paragraph / story being read */
.lx-rt-reading { background: #fff3c4; box-shadow: -8px 0 0 #fff3c4, 8px 0 0 #fff3c4; border-radius: 3px; transition: background .2s; }

/* floating player while reading */
.lx-rt-bar {
  position: fixed; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); transform: translate(-50%, 160%); z-index: 9000;
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 24px); padding: 8px 10px 8px 16px;
  background: #0f2240; color: #fff; border-radius: 999px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
  transition: transform .35s cubic-bezier(.2, .9, .3, 1.1); font: 600 13px var(--font-ui, "DM Sans", system-ui, sans-serif);
  visibility: hidden;
}
.lx-rt-bar.is-open { transform: translate(-50%, 0); visibility: visible; }
.lx-rt-bar .lx-rt-pos { opacity: .85; white-space: nowrap; font-weight: 500; }
.lx-rt-bar button, .lx-rt-bar select {
  height: 34px; border-radius: 999px; border: 0; background: rgba(255, 255, 255, .14); color: #fff; padding: 0 12px; cursor: pointer;
  font: 600 13px var(--font-ui, "DM Sans", system-ui, sans-serif);
}
.lx-rt-bar button:hover, .lx-rt-bar select:hover { background: rgba(255, 255, 255, .26); }
.lx-rt-bar select option { color: #111; }
.lx-rt-bar .lx-rt-stop { background: #c8a84b; color: #0f2240; }

@media (max-width: 520px) { .lx-rt-bar .lx-rt-pos { display: none; } }
@media (prefers-reduced-motion: reduce) { .lx-rt-bar, .lx-rt-reading { transition: none; } }

/* ---------- PRINT / SAVE AS PDF ---------- */
@media print {
  .site-header, .site-footer, .mobile-nav-drawer, .breadcrumb, .article-sidebar, .article-share-row, .article-tags-row,
  .lx-rt, .lx-rt-bar, .lx-pop, .lx-fest-ribbon, .lx-fest-embers, .lx-splash, .lx-consent, .pagination,
  .card-image, .card-tags, .article-featured-image, [data-lx-noprint] { display: none !important; }
  body { background: #fff !important; color: #000 !important; }
  .lx-rt-reading { background: none !important; box-shadow: none !important; }

  /* article: one clean reading column */
  .article-layout { display: block !important; }
  .article-main { max-width: none !important; width: 100% !important; padding: 0 !important; margin: 0 !important; font-family: Georgia, "Times New Roman", serif; font-size: 12pt; line-height: 1.55; }
  .article-main::before { content: "LEXNOMIK · Legal Intelligence"; display: block; font: 700 9pt Arial, sans-serif; letter-spacing: .14em; color: #555; border-bottom: 2px solid #000; padding-bottom: 6pt; margin-bottom: 14pt; }
  .article-main::after  { content: "Printed from " attr(data-lx-url) " · For general information only, not legal advice."; display: block; font: 9pt Arial, sans-serif; color: #555; border-top: 1px solid #999; padding-top: 6pt; margin-top: 18pt; }
  .article-title { font-size: 22pt !important; line-height: 1.2; color: #000 !important; }
  .article-body a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #444; word-break: break-all; }
  .article-body h2, .article-body h3 { break-after: avoid; }
  .article-body p, .article-body li, .article-body blockquote { orphans: 3; widows: 3; }
  .article-body table { break-inside: avoid; }

  /* listings: a two-column newspaper-style page */
  .cards-grid { display: block !important; column-count: 2; column-gap: 24pt; }
  .content-card { break-inside: avoid; box-shadow: none !important; border: 0 !important; border-bottom: 1px solid #bbb !important; border-radius: 0 !important; margin: 0 0 10pt !important; padding: 0 0 8pt !important; background: none !important; }
  .content-card .card-title { font-size: 12.5pt !important; }
  .content-card a { color: #000 !important; text-decoration: none !important; }
}
