/* BartaPrerok 1.9.0 — final typography, ticker and footer remediation.
   Kept last in the enqueue chain so older theme styles cannot disable movement. */

/* Only source names within compact category badges are hidden. Full article
   attribution and the original credited sources stay intact. */
.k .source-identity { display: none !important; }

/* Continuous top headlines, smooth bottom progress line and accessible pause. */
.bpr-ticker.tk { position: relative; isolation: isolate; contain: none; background: #f4f0e9; border-top: 1px solid #e6e0d7; border-bottom: 1px solid #ddd7cc; overflow: clip; }
.bpr-ticker .tk-shell { display: flex; align-items: center; gap: clamp(9px, 1.3vw, 17px); min-height: 49px; padding-block: 7px; }
.bpr-ticker .tk-label { position: relative; z-index: 2; flex: 0 0 auto; padding: 7px 12px; border-radius: 3px; font-size: 12px; line-height: 1.4; letter-spacing: 0; background: #af1530; color: #fff; white-space: nowrap; }
.bpr-ticker .tk-label::before { width: 6px; height: 6px; animation: tk-pulse 2s ease-in-out infinite; }
.bpr-ticker .tk-vp { position: relative; overflow: hidden !important; min-width: 0; flex: 1 1 0; max-width: 100%; width: 0; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg,transparent,#000 2%,#000 98%,transparent); mask-image: linear-gradient(90deg,transparent,#000 2%,#000 98%,transparent); }
.bpr-ticker .tk-track { display: flex; width: max-content; max-width: none; gap: 0; transform: translateZ(0); animation-name: bpr-ticker-move !important; animation-duration: var(--bpr-ticker-duration, 26s) !important; animation-timing-function: linear !important; animation-iteration-count: infinite !important; animation-direction: normal !important; animation-fill-mode: none !important; animation-play-state: running; }
.bpr-ticker .tk-g, .bpr-ticker .tk-g[aria-hidden="true"] { display: flex !important; flex: 0 0 auto; align-items: center; min-width: max-content; gap: 0; }
.bpr-ticker .tk-g span { display: inline-flex; align-items: center; flex: none; margin-right: 18px; padding-right: 18px; border-right: 1px solid #c9c3b9; font-size: clamp(12px, 1vw, 14px); font-weight: 550; line-height: 1.6; }
.bpr-ticker .tk-g span::after { display: none; }
.bpr-ticker .tk-g a { text-decoration: none; text-underline-offset: 4px; }
.bpr-ticker .tk-g a:hover, .bpr-ticker .tk-g a:focus-visible { text-decoration: underline; color: #a9132b; }
.bpr-ticker .tk-toggle { z-index: 2; display: inline-grid; place-items: center; flex: 0 0 36px; width: 36px; height: 36px; padding: 0; color: #343943; background: rgba(255,255,255,.65); border: 1px solid #d2ccc2; border-radius: 4px; cursor: pointer; transition: background-color .2s, border-color .2s; }
.bpr-ticker .tk-toggle:hover { background: #fff; border-color: #a9132b; }
.bpr-ticker .tk-icon-play { display: none; }
.bpr-ticker[data-bpr-ticker-paused="true"] .tk-icon-pause { display: none; }
.bpr-ticker[data-bpr-ticker-paused="true"] .tk-icon-play { display: block; }
.bpr-ticker .tk-vp:hover .tk-track,
.bpr-ticker .tk-vp:focus-within .tk-track,
.bpr-ticker[data-bpr-ticker-paused="true"] .tk-track { animation-play-state: paused !important; }
.bpr-ticker::after { content: ''; position: absolute; left: 0; bottom: 0; z-index: 2; height: 2px; width: 140px; opacity: .85; background: linear-gradient(90deg, transparent 0%, #bd1533 45%, #e27c8d 80%, transparent 100%); animation: bpr-ticker-line 7s linear infinite; pointer-events: none; }
.bpr-ticker[data-bpr-ticker-paused="true"]::after { animation-play-state: paused; }
@keyframes bpr-ticker-move { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@keyframes bpr-ticker-line { from { transform: translateX(-140px); } to { transform: translateX(calc(100vw + 140px)); } }

/* Intentional editorial rhythm at both common and in-between breakpoints. */
:root { --page-gutter: clamp(16px, 2.35vw, 36px); }
.hero.w { padding-inline: var(--page-gutter); }
body { font-size: 16px; line-height: 1.68; }
.h { overflow-wrap: anywhere; line-height: 1.45; }
.hero .lead .h { line-height: 1.33; }
.hero .lead .dk, .ar-body { line-height: 1.82; }
.t, .k { letter-spacing: 0; }
.sh h2, .cs .cs-h h2 { line-height: 1.4; }
.cd .h, .desk-copy .h { line-height: 1.46; }

/* Footer: more legible, calmer and structurally consistent even when only a
   few categories exist. No fragile nth-child assumptions. */
.ft { background: #121b28; color: #f1f3f6; }
.ft::before { background: radial-gradient(85% 100% at 0% 0%, rgba(126,27,48,.075), transparent 68%); }
.footer-newsletter { background: #f1ebdf; border-top: 3px solid #ad1631; }
.newsletter-layout { gap: clamp(25px, 5vw, 85px); padding-block: clamp(38px, 4.5vw, 65px); }
.newsletter-heading { padding-left: 24px; border-left: 3px solid #ad1631; }
.newsletter-heading .eyebrow { color: #a51531; font-size: 12px; }
.newsletter-heading h2 { color: #151f2b; font-size: clamp(31px, 3vw, 43px); line-height: 1.25; }
.newsletter-copy > p { font-size: clamp(15px, 1.15vw, 17px); line-height: 1.85; }
.newsletter-copy > small { line-height: 1.65; }
.newsletter-pending { max-width: 58ch; border-left: 3px solid #b5233d; background: #fff; border-radius: 3px; }
.footer-masthead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 22px; align-items: center; padding-block: clamp(36px, 4vw, 60px) clamp(28px, 3vw, 42px); }
.footer-brand-lockup .eyebrow { font-size: 12px; color: #e49aa7; letter-spacing: .14em; }
.footer-wordmark { font-size: clamp(42px, 4vw, 63px); letter-spacing: -.045em; line-height: 1.24; }
.footer-mission { font-size: clamp(15px, 1.12vw, 17px); color: #c9d0d8; line-height: 1.8; }
.footer-top { display: flex; gap: 12px; color: #e5e9ee; font-size: 14px; }
.footer-top b { width: 44px; height: 44px; border: 1px solid #647180; border-radius: 50%; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 22px 28px; padding: 33px 0 40px; }
.footer-section-label { grid-column: 1/-1; font-size: 12px; color: #edabb5; letter-spacing: .1em; margin-bottom: 5px; }
.footer-grid > nav.footer-directory { grid-column: auto; padding: 0 20px 0 0; border: 0; border-right: 1px solid #303c4c; background: none; border-radius: 0; backdrop-filter: none; min-height: 160px; }
.footer-grid > nav.footer-directory:last-of-type { border-right: 0; }
.footer-grid nav.footer-directory h3 { margin: 0 0 14px; color: #f5f6f8; font-size: 16px; font-weight: 700; letter-spacing: 0; }
.footer-grid nav.footer-directory a { padding: 6px 0; color: #bbc5d0; font-size: 15px; line-height: 1.65; }
.footer-grid nav.footer-directory a:hover { color: #fff; text-decoration-color: #e4a1af; }
.footer-social { grid-column: 1/-1; padding-top: 26px; border-top: 1px solid #303c4c; }
.footer-social-copy p { font-size: 14px; line-height: 1.75; }
.footer-social-link { width: 44px; height: 44px; border-radius: 50%; }
.footer-colophon { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; padding-block: 22px 28px; font-size: 13px; line-height: 1.7; color: #abb5c1; border-top: 1px solid #303c4c; }

@media (max-width: 980px) {
  .footer-grid { gap: 22px; }
  .footer-grid > nav.footer-directory { padding-right: 12px; }
}
@media (max-width: 720px) {
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 27px 20px; }
  .footer-grid > nav.footer-directory { grid-column: auto; min-height: 0; border-right: 0; padding: 0; display: block; }
  .footer-grid > nav.footer-directory:last-of-type { grid-column: 1 / -1; border-top: 1px solid #303c4c; padding-top: 20px; }
  .newsletter-layout { grid-template-columns: 1fr; }
}
@media (max-width: 440px) {
  :root { --page-gutter: 16px; }
  .bpr-ticker .tk-shell { min-height: 46px; gap: 8px; }
  .bpr-ticker .tk-label { padding: 6px 8px; font-size: 11px; }
  .bpr-ticker .tk-g span { font-size: 12px; margin-right: 13px; padding-right: 13px; }
  .bpr-ticker .tk-toggle { width: 32px; height: 32px; flex-basis: 32px; }
  .newsletter-heading { padding-left: 18px; }
  .newsletter-layout { padding-block: 35px; gap: 20px; }
  .newsletter-heading h2 { font-size: clamp(29px, 8vw, 36px); }
  .footer-masthead { grid-template-columns: 1fr auto; padding-block: 36px 25px; }
  .footer-wordmark { font-size: clamp(36px, 10vw, 44px); }
  .footer-top b { width: 40px; height: 40px; }
  .footer-grid { grid-template-columns: 1fr; gap: 0; padding: 23px 0 29px; }
  .footer-section-label { margin-bottom: 20px; }
  .footer-grid > nav.footer-directory { padding: 0 0 20px; margin-bottom: 20px; border: 0; border-bottom: 1px solid #303c4c; display: block; grid-column: 1 / -1; }
  .footer-grid > nav.footer-directory:last-of-type { padding-top: 0; border-top: 0; }
  .footer-grid nav.footer-directory h3 { margin-bottom: 9px; }
  .footer-grid nav.footer-directory a { font-size: 15px; padding-block: 7px; }
  .footer-social { padding-top: 22px; }
  .footer-colophon { display: block; font-size: 12px; }
  .footer-colophon span { display: block; margin-bottom: 8px; }
}
@media (max-width: 359px) { :root { --page-gutter: 12px; } .footer-wordmark { font-size: 33px; } }
@media (prefers-reduced-motion: reduce) {
  .bpr-ticker .tk-track,
  .bpr-ticker .tk-label::before,
  .bpr-ticker::after { animation: none !important; transform: none !important; }
  .bpr-ticker .tk-vp { overflow-x: auto !important; -webkit-mask-image: none; mask-image: none; }
  .bpr-ticker .tk-g[aria-hidden="true"] { display: none !important; }
}
@media print { .bpr-ticker { display: none !important; } }

/* The ticker auto-scrolls again (hover or keyboard focus pauses it); the
   decorative underline and any scrollbar are removed. */
.bpr-ticker .tk-vp { scrollbar-width: none; }
.bpr-ticker .tk-vp::-webkit-scrollbar { display: none; }
.bpr-ticker::after { display: none; }
.bpr-ticker .tk-vp:focus-visible { outline: 2px solid #ad1631; outline-offset: 2px; }

/* Preserve a comfortable, named share control when its text is hidden on mobile. */
.bpr-share { min-width: 44px; min-height: 44px; justify-content: center; }
.bpr-comment-form-guest { color: inherit; text-decoration: none; }
.bpr-comment-form-guest .bpr-comment-actions > span:first-child { color: #806b6c; font-size: 11px; }
.bpr-comment-form-guest .bpr-emoji-toggle { display: grid; place-items: center; }

/* BartaPrerok 1.9.2 — content-aware editorial layout and single reader polish */
.cs-compact { padding-bottom: clamp(22px, 3vw, 40px); }
.cs-compact .cs-h { margin-bottom: 16px; }
.cs-compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 28px);
}
.cs-compact-grid.cs-count-1 { grid-template-columns: minmax(0, 760px); }
.cs-compact-story {
  display: grid;
  grid-template-columns: minmax(120px, 32%) minmax(0, 1fr);
  align-items: center;
  gap: clamp(14px, 2vw, 26px);
  min-width: 0;
  padding: 15px;
  background: #fff;
  border: 1px solid #e5e0d8;
  border-radius: 11px;
  transition: border-color .2s, box-shadow .2s;
}
.cs-compact-story:hover { border-color: #c7bbb3; box-shadow: 0 9px 24px rgba(15,22,32,.06); }
.cs-compact-story .im { aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; }
.cs-compact-copy { min-width: 0; }
.cs-compact-story .h {
  font: 750 clamp(17px, 1.48vw, 22px) / 1.49 var(--serif);
  letter-spacing: -.015em;
  overflow-wrap: break-word;
}
.cs-compact-story .t { display: block; margin-top: 9px; font-size: 12px; }
/* Constrain even unusually long headlines without breaking words unnecessarily. */
.ar-wrap { grid-template-columns: minmax(0, 760px) minmax(274px, 328px); justify-content: space-between; gap: clamp(28px, 4vw, 64px); }
.ar h1, .ar-head h1 { max-width: 25ch; font-size: clamp(34px, 3.5vw, 48px); line-height: 1.32; overflow-wrap: break-word; }
.ar-deck { max-width: 64ch; margin-bottom: 17px; }
.ar-meta-strip { gap: 8px; margin-bottom: 15px; }
.ar-meta-pill { font-size: 12px; }
.ar-byline-role { display: inline-block; margin-right: 8px; font: 700 11px/1.3 var(--sans); color: #7a4353; vertical-align: .02em; }
.ar-by { align-items: center; gap: 12px; padding: 15px 17px; }
.ar-av { flex: 0 0 auto; }
.ar-bytx { flex: 1 1 auto; }
.shr { flex: 0 0 auto; }
.ar-body { max-width: 67ch; text-wrap: pretty; line-height: 1.94; }
.ar-body p { margin-bottom: 1.32em; }
.ar-body figcaption { text-align: start; font-size: 14px; line-height: 1.7; }
.ar-body > p:first-child { font-size: inherit; line-height: inherit; color: #1e2630; }
.ar-body p:empty { display: none; }
.ar-aside { max-height: calc(100vh - 100px); overflow-y: auto; scrollbar-width: thin; }
.ar-aside .aa:last-child { border-bottom: 0; }
.aa .h { overflow-wrap: break-word; }
.bpr-engagement { background: #fcfaf7; border-color: #e4dcd2; box-shadow: 0 8px 20px rgba(18,27,40,.045); }
.bpr-reactions { gap: 10px; padding-bottom: 15px; }
.bpr-reaction { min-height: 90px; border-color: #e5ddd5; background: #fff; }
.bpr-reaction[aria-pressed="true"] { box-shadow: none; }
.bpr-reaction-note { margin-bottom: 18px; }
.bpr-engagement-heading h2 { line-height: 1.35; }
/* Related list scales to one or two stories without comically empty grid slots. */
.rgr { grid-template-columns: repeat(auto-fit, minmax(min(245px, 100%), 1fr)); }
.rel .rgr .cd { min-width: 0; }
.rel .rgr .cd .h { font-size: 18px; }
/* Footer columns remain content-driven; remove fixed blank height. */
.footer-grid > nav.footer-directory { min-height: 0; }
.footer-grid { align-items: start; }
@media (max-width: 1150px) {
  .ar-wrap { grid-template-columns: minmax(0, 1fr); }
  .ar { max-width: 820px; }
  .ar-aside { max-height: none; overflow: visible; }
}
@media (max-width: 800px) {
  .cs-compact-grid { grid-template-columns: minmax(0, 1fr); }
  .cs-compact-grid.cs-count-1 { grid-template-columns: minmax(0, 1fr); }
  .ar h1, .ar-head h1 { max-width: none; font-size: clamp(29px, 5.6vw, 40px); }
}
@media (max-width: 560px) {
  .cs-compact-story { grid-template-columns: 102px minmax(0, 1fr); padding: 10px; gap: 12px; }
  .cs-compact-story .h { font-size: 15px; line-height: 1.45; }
  .cs-compact-story .t { font-size: 11px; margin-top: 5px; }
  .cs-compact-story .im { aspect-ratio: 1 / 1; }
  .ar h1, .ar-head h1 { font-size: clamp(28px, 7.25vw, 36px); }
  .ar-by { flex-wrap: wrap; padding: 12px; }
  .ar-bytx { flex: 1; }
  .shr { flex: 1 0 100%; display: flex; justify-content: flex-start; margin: 0; gap: 7px; }
  .shr .ib { width: 40px; height: 40px; box-shadow: none; }
  .ar-meta-pill { font-size: 11px; }
  .ar-body { font-size: 17px; line-height: 1.89; }
  .bpr-reactions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rel .rgr { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .cs-compact-story { transition: none; }
}
