/* LFMA typography restyle (deploy3 proposal).
   Sober financial-institution look. No decorative stripes or running lines.
   Accent: existing site navy/blue only. Logo and images unchanged. */
:root {
  --font-body: "Noto Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-heading: "Noto Serif", Georgia, "Times New Roman", serif;
  --accent: #15233d;
  --accent-soft: #8aa0c4;
  --radius: 8px;
  --shadow: 0 8px 24px rgba(21, 35, 61, 0.07);
}

html { -webkit-font-smoothing: antialiased; }
body { font-family: var(--font-body); }

h1, h2, .brand-name, .hero h1, .foot-brand, .doc h1, .doc h2, .doc h3, .stat b, .toc h2 {
  font-family: var(--font-heading);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.hero h1 { font-family: var(--font-heading); line-height: 1.06; }
.brand-name { font-weight: 700; letter-spacing: 0.06em; font-size: 18px; }
.brand-sub { font-family: var(--font-body); }

/* Blue accent in place of gold — light backgrounds */
.kicker,
.section-label,
.doc .kicker {
  color: var(--navy);
  font-family: var(--font-body);
  font-weight: 700;
}
.menu a:hover,
.menu-drop-btn:hover,
.menu-drop-btn:focus-visible,
.submenu a:hover,
.submenu a:focus,
.doc-toc a:hover,
.toc a:hover,
.member-link:hover {
  color: var(--navy);
}
.link-card:hover { border-color: var(--navy); }
.gold-link { color: var(--navy); }
.gold-link:hover { color: var(--navy-2); }

.btn {
  border-radius: 4px;
  letter-spacing: 0.02em;
  font-weight: 600;
  font-size: 14px;
}
.btn-dark:hover { background: var(--navy-2); }
.logo-mark { border-radius: 8px; }

.card, .ncard, .link-card, .ethics-card, .pres-box, article.single, .doc-toc, .toc, .submenu, .stats {
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.filters button { border-radius: 4px; }
.ncard h2, .ncard h3 { font-family: var(--font-body); font-weight: 600; letter-spacing: 0; }
.news-wrap h1, article.single h1 { font-family: var(--font-heading); font-weight: 600; }

article.single .src {
  border-left-color: var(--navy);
  background: #eef1f6;
}
:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

/* Keep chrome clean: no decorative bars or background motifs */
header.site::before,
footer::before,
.kicker::after,
.section-label::after {
  content: none !important;
  display: none !important;
  background: none !important;
}
.hero { background-image: none; }
.about-cols h3 { border-image: none; }


/* Narių įmokos (deploy4): outlined menu button + fees block. Navy only. */
.menu a.menu-fees {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.02em;
  line-height: 1.2;
  padding: 7px 12px;
  min-height: 36px;
  border: 1.5px solid var(--navy);
  border-radius: 4px;
  background: transparent;
  white-space: nowrap;
  text-decoration: none;
}
.menu a.menu-fees:hover,
.menu a.menu-fees:focus-visible {
  color: #fff;
  background: var(--navy);
}

#kontaktai,
#nariu-imokos { scroll-margin-top: calc(var(--header-h, 68px) + 12px); }
.fees-row { margin-top: clamp(32px, 5vw, 52px); }
#nariu-imokos.fees-card { max-width: none; }
#contact-rekvizitai {
  color: #1a5fd6;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 2px;
}
#contact-rekvizitai:hover { color: #0f47a8; }
#contact-iban .contact-iban-value,
#contact-iban .contact-iban-bank {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.fees-highlight {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  margin: 0 0 22px;
  padding: 18px 20px;
  background: #eef1f6;
  border-radius: 8px;
}
.fees-highlight .fees-k {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted, #5c6b80);
  margin-bottom: 4px;
}
.fees-highlight strong {
  display: block;
  color: var(--navy);
  font-size: 22px;
  font-weight: 700;
  font-family: var(--font-heading);
  letter-spacing: -0.01em;
}
.fees-list { margin: 0; padding: 0; }
.fees-list > div {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 8px 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line, #e2e7ef);
  align-items: start;
}
.fees-list > div:first-child { padding-top: 0; }
.fees-list dt {
  margin: 0;
  color: var(--muted, #5c6b80);
  font-size: 14px;
  font-weight: 600;
}
.fees-list dd {
  margin: 0;
  color: var(--navy);
  font-weight: 600;
  word-break: break-word;
}
.fees-iban {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.fees-iban-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.fees-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--navy);
  border-radius: 4px;
  padding: 4px 10px;
  min-height: 32px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}
.fees-copy:hover,
.fees-copy:focus-visible,
.fees-copy.is-copied {
  background: var(--navy);
  color: #fff;
}
.fees-note { margin-top: 18px; }
.fees-note a { color: var(--navy); font-weight: 700; text-decoration: none; }
.fees-note a:hover { text-decoration: underline; }

/* Extra header item: open the mobile menu a bit earlier so the bar does not overflow. */
@media (max-width: 1080px) {
  header.site { z-index: 70; background: #fff; }
  .nav-tools { margin-left: auto; }
  .menu-toggle { display: flex; position: relative; z-index: 80; }
  .menu {
    display: none;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    width: 100vw !important;
    max-width: none !important;
    height: 100dvh !important;
    margin: 0 !important;
    background: #ffffff !important;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
    gap: 0;
    padding: calc(var(--header-h, 68px) + env(safe-area-inset-top) + 8px) 0 calc(20px + env(safe-area-inset-bottom));
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 65;
    box-shadow: none;
    border: 0;
  }
  .menu.open { display: flex !important; }
  .menu a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 58px;
    padding: 0 20px;
    border-bottom: 1px solid var(--line, #e2e7ef);
    font-size: 18px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--navy);
    text-align: center;
    box-sizing: border-box;
  }
  .menu a.menu-cta {
    margin: 8px 20px 0;
    width: calc(100% - 40px);
    min-height: 58px;
    font-size: 18px;
    font-weight: 700;
    color: var(--navy) !important;
    border-bottom: 0;
  }
  .menu a.menu-fees {
    margin: 12px 20px 0;
    width: calc(100% - 40px);
    min-height: 52px;
    padding: 0 16px;
    font-size: 16px;
    border: 1.5px solid var(--navy);
    border-radius: 4px;
    background: transparent;
    color: var(--navy);
  }
  .menu a.menu-fees:hover,
  .menu a.menu-fees:focus-visible {
    color: #fff;
    background: var(--navy);
  }
  .menu-drop { flex-wrap: wrap; width: 100%; border-bottom: 1px solid var(--line, #e2e7ef); }
  .menu-drop-link {
    flex: 1; display: flex; align-items: center; justify-content: center;
    min-height: 58px; padding: 0 8px 0 20px; font-size: 18px; font-weight: 600;
    border-bottom: 0 !important;
  }
  .menu-drop-btn { min-width: 58px; min-height: 58px; margin: 0; }
  .menu-drop:hover .submenu { display: none; }
  .menu-drop.is-open .submenu,
  .menu-drop.is-open:hover .submenu,
  .menu-drop.is-open:focus-within .submenu { display: block; }
  .submenu {
    position: static; width: 100%; border: 0; border-radius: 0;
    box-shadow: none; background: #f3f5f9; padding: 0;
  }
  .submenu a {
    display: flex; align-items: center; justify-content: center;
    min-height: 48px; padding: 0 20px !important; font-size: 16px;
    font-weight: 500; border-bottom: 1px solid var(--line, #e2e7ef); white-space: normal;
  }
}

@media (max-width: 560px) {
  .fees-highlight,
  .fees-list > div { grid-template-columns: 1fr; }
  .fees-highlight strong { font-size: 20px; }
}


/* deploy7: navy outlines on key cards; red left bar on topics and highlights.
   Text unchanged. rekvizitai.lt link stays blue, normal weight, underlined. */
:root {
  --accent-red: #c8102e;
}

#kontaktai .contact-fees,
#naujienos .ncard,
#naujienos .news-grid .card,
#svietimas .card,
.pres-box,
.about-split > div,
.about-cols > div,
.stats {
  border: 2px solid var(--navy);
  border-radius: var(--radius);
  background: var(--card, #fff);
}

.about-cols > div {
  padding: 18px 20px;
}

.about-split > div {
  padding: 20px 22px;
}

/* Topic marker: continuous red bar on section label + heading */
section .section-label {
  border-left: 4px solid var(--accent-red);
  padding-left: 14px;
  margin-bottom: 0;
}
section .section-label + h2 {
  border-left: 4px solid var(--accent-red);
  padding-left: 14px;
  padding-top: 8px;
  margin-top: 0;
}

/* Highlighted paragraphs */
.hero .lead,
.about-split > div > p:first-child,
.fees-highlight,
.fees-note,
#nariai > .wrap > p.muted,
#svietimas .card > p.muted:first-of-type {
  border-left: 4px solid var(--accent-red);
  padding-left: 14px;
}

.fees-highlight {
  border-radius: 0 8px 8px 0;
}


/* deploy8: combined Kontaktai + Narių įmokos, no contact form. */
.contact-fees {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  align-items: stretch;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.contact-fees > .card {
  border: 0;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  padding: 28px 32px;
}
.contact-fees .contact-card {
  border-right: 1px solid var(--line, #e2e7ef);
}
.contact-fees h3 {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--navy);
  margin: 0 0 18px;
  padding-left: 12px;
  border-left: 4px solid var(--accent-red, #c8102e);
}
.contact-card p {
  margin: 0 0 10px;
  line-height: 1.55;
}
.contact-card p:last-child { margin-bottom: 0; }
.contact-card a:not(#contact-rekvizitai) {
  color: var(--navy);
  text-decoration: none;
}
.contact-card a:not(#contact-rekvizitai):hover { text-decoration: underline; }

@media (max-width: 820px) {
  .contact-fees { grid-template-columns: 1fr; }
  .contact-fees .contact-card {
    border-right: 0;
    border-bottom: 1px solid var(--line, #e2e7ef);
  }
  .contact-fees > .card { padding: 22px 20px; }
}

/* t197u: no bold anywhere on the site */
body, body *, b, strong, h1, h2, h3, h4, h5, h6, th, .btn, button { font-weight: 400 !important; }

/* deploy9 t237u: outlined (bordered) buttons that were not rounded become pills, like nariai.lfma.lt member-zone. Filled, already-round, cards and inputs unchanged. */
.btn-ghost,
.filters button,
.menu a.menu-fees,
.fees-copy {
  border-radius: 999px;
}
@media (max-width: 1080px) {
  .menu a.menu-fees {
    border-radius: 999px;
  }
}

/* ========================================================================
   deploy10 (t245u): compact hero so the stats block is above the fold
   on typical laptop screens (~1024–1366 × 600–700), plus public-site
   mobile/tablet polish. Design stays the same; only spacing and type
   scale are tightened. */
.hero {
  padding: clamp(12px, 2vw + 1.2vh, 44px) 0 8px;
}
.hero h1 {
  font-size: clamp(26px, 2.2vw + 2.2vh, 52px);
  line-height: 1.12;
  margin: 6px 0 10px;
  max-width: 18ch;
  letter-spacing: -0.015em;
}
.hero .lead {
  font-size: clamp(15px, 1.1vw + 0.4vh, 17px);
  line-height: 1.5;
  margin: 0;
  max-width: 62ch;
}
.hero-actions {
  margin-top: clamp(12px, 1.8vh, 20px);
  gap: 8px;
}
.hero-actions .btn {
  min-height: 42px;
  padding: 10px 18px;
}
.stats {
  margin: clamp(12px, 2.2vh, 24px) 0 0;
}
.stat {
  padding: clamp(10px, 1.4vh, 16px) 8px;
}
.stat b {
  font-size: clamp(22px, 1.6vw + 1.2vh, 30px);
  line-height: 1.15;
  margin-bottom: 2px;
}
.stat span {
  display: block;
  font-size: 10px;
  letter-spacing: 0.06em;
  line-height: 1.3;
  padding: 0 2px;
  overflow-wrap: anywhere;
  hyphens: auto;
}

@media (max-height: 700px) and (min-width: 821px) {
  :root { --header-h: 60px; }
  .hero { padding: 10px 0 4px; }
  .hero h1 { margin: 4px 0 8px; }
  .hero-actions { margin-top: 12px; }
  .hero-actions .btn { min-height: 40px; padding: 8px 16px; }
  .stats { margin-top: 12px; }
  .stat { padding: 10px 8px; }
}

@media (max-width: 980px) {
  .stats { grid-template-columns: 1fr 1fr; }
  .stat { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .stat:nth-child(2n) { border-right: 0; }
  .stat:nth-child(n+3) { border-bottom: 0; }
}

/* Overflow and tap-target polish (public site) */
#contact-iban .contact-iban-value,
#contact-iban .contact-iban-bank,
.fees-iban,
.fees-iban-row,
.fees-list dd {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}
.fees-iban-row {
  align-items: flex-start;
}
.member-link,
.link-card,
.link-card span,
.ncard p,
.ncard h2,
article.single,
article.single p,
article.single li,
.doc-section,
.doc-section p,
.person,
.ethics-card {
  overflow-wrap: anywhere;
  word-break: break-word;
  min-width: 0;
}
.ethics-card { align-items: flex-start; }
.filters button {
  min-height: 44px;
  padding: 8px 14px;
}
article.single img,
article.single img.hero,
.ncard img {
  max-width: 100%;
  height: auto;
}

@media (max-width: 768px) {
  section { padding: clamp(28px, 8vw, 48px) 0; }
  .news-wrap { padding: 24px 0 40px; }
  article.single { padding: 18px 16px; margin: 16px auto 0; }
  .card, .ncard, .link-card, .ethics-card, .pres-box { max-width: 100%; }
  .person { align-items: flex-start; }
}

@media (max-width: 560px) {
  .hero { padding: 16px 0 8px; }
  .hero h1 { font-size: clamp(26px, 8vw, 32px); line-height: 1.15; max-width: none; }
  .hero-actions { margin-top: 14px; }
  .hero-actions .btn { min-height: 44px; }
  .stats { margin-top: 16px; }
  .stat { padding: 12px 8px; }
  .fees-iban-row { flex-direction: column; align-items: flex-start; gap: 8px; }
  .fees-copy { min-height: 44px; }
  .contact-fees > .card { padding: 18px 16px; }
  .brand-name { font-size: 16px; }
  .logo-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .menu-toggle { width: 44px; height: 44px; border-radius: 10px; }
}

@media (max-width: 380px) {
  .hero h1 { font-size: 24px; }
}

/* Allow the title to sit on two lines (16ch made three lines at large type). */
.hero h1 { max-width: min(32rem, 100%); }

/* Override naujienos.css mobile nowrap+scroll so category pills wrap cleanly. */
@media (max-width: 600px) {
  .filters {
    display: flex;
    flex-wrap: wrap;
    overflow-x: visible;
    overflow-y: visible;
    padding-bottom: 0;
    gap: 8px;
    max-width: 100%;
  }
  .filters button {
    flex: 0 1 auto;
    white-space: nowrap;
    min-height: 44px;
  }
}

/* ========================================================================
   deploy14 (t267u): slightly larger gaps in the home hero —
   kicker↔H1, H1↔lead, lead↔buttons, buttons↔stats (~+50%).
   Stats stay above the fold on a typical 1280×800 desktop;
   mobile spacing scales the same way. */
.hero h1 {
  margin: 9px 0 15px;
}
.hero-actions {
  margin-top: clamp(18px, 2.7vh, 30px);
}
.stats {
  margin: clamp(18px, 3.3vh, 36px) 0 0;
}

@media (max-height: 700px) and (min-width: 821px) {
  .hero h1 { margin: 6px 0 12px; }
  .hero-actions { margin-top: 18px; }
  .stats { margin-top: 18px; }
}

@media (max-width: 560px) {
  .hero-actions { margin-top: 21px; }
  .stats { margin-top: 24px; }
}


/* ========================================================================
   deploy17 (t277u): larger home hero spacing than deploy14; remove navy
   frames (remeliai) from home blocks; use the same shadow + radius as
   inner-page cards; on hover the block lifts (translateY -4px) with a
   slightly stronger shadow. Respects prefers-reduced-motion. */

/* Hero: bigger top padding and gaps (kicker↔H1, H1↔lead, lead↔buttons,
   buttons↔stats). Stats stay above the fold on a typical 1280×800 desktop. */
.hero {
  padding: clamp(22px, 3.2vw + 2.2vh, 68px) 0 20px;
}
.hero h1 {
  margin: 14px 0 24px;
}
.hero-actions {
  margin-top: clamp(28px, 4.2vh, 48px);
}
.stats {
  margin: clamp(28px, 5.1vh, 56px) 0 0;
}

@media (max-height: 700px) and (min-width: 821px) {
  .hero { padding: 16px 0 10px; }
  .hero h1 { margin: 10px 0 18px; }
  .hero-actions { margin-top: 26px; }
  .stats { margin-top: 26px; }
}

@media (max-width: 560px) {
  .hero { padding: 24px 0 16px; }
  .hero-actions { margin-top: 30px; }
  .stats { margin-top: 36px; }
}

/* Home blocks: drop the 2px navy outline. Match inner-page cards
   (article.single, /naujienos/ .ncard): 1px line, var(--radius), var(--shadow).
   Higher specificity so this wins over the index.html inline <style>. */
#apie .pres-box,
#apie .about-split > div,
#apie .about-cols > div,
#naujienos .ncard,
#naujienos .news-grid .card,
#svietimas .card,
#taryba .ethics-card,
#nariai .card,
#istekliai .link-card,
#kontaktai .contact-fees,
.hero .stats,
.stats {
  border: 1px solid var(--line, #e2e7ef);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  background: var(--card, #fff);
}

/* Inner split of Kontaktai + Narių įmokos stays borderless; the outer
   .contact-fees box carries the shadow. */
#kontaktai .contact-fees > .card {
  border: 0;
  box-shadow: none;
  border-radius: 0;
}

/* Hover lift on home cards/blocks */
#apie .pres-box,
#apie .about-split > div,
#apie .about-cols > div,
#naujienos .ncard,
#naujienos .news-grid .card,
#svietimas .card,
#taryba .ethics-card,
#nariai .card,
#istekliai .link-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

@media (hover: hover) {
  #apie .pres-box:hover,
  #apie .about-split > div:hover,
  #apie .about-cols > div:hover,
  #naujienos .ncard:hover,
  #naujienos .news-grid .card:hover,
  #svietimas .card:hover,
  #taryba .ethics-card:hover,
  #nariai .card:hover,
  #istekliai .link-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 36px rgba(21, 35, 61, 0.14);
  }
  /* Do not re-introduce a dark frame on hover (inline style did this). */
  #istekliai .link-card:hover {
    border-color: var(--line, #e2e7ef);
  }
}

@media (prefers-reduced-motion: reduce) {
  #apie .pres-box,
  #apie .about-split > div,
  #apie .about-cols > div,
  #naujienos .ncard,
  #naujienos .news-grid .card,
  #svietimas .card,
  #taryba .ethics-card,
  #nariai .card,
  #istekliai .link-card,
  .link-card {
    transition: none;
    transform: none;
  }
  #apie .pres-box:hover,
  #apie .about-split > div:hover,
  #apie .about-cols > div:hover,
  #naujienos .ncard:hover,
  #naujienos .news-grid .card:hover,
  #svietimas .card:hover,
  #taryba .ethics-card:hover,
  #nariai .card:hover,
  #istekliai .link-card:hover,
  .link-card:hover {
    transform: none;
  }
}


/* ========================================================================
   deploy18 (t278u, t279u, t280u): home stats boxes ~2× taller on desktop
   and ~1.5–2× on mobile. Number and label scale ~1.5×, stay vertically
   centred, and use font-weight 400 (not bold). Width unchanged. */

.hero .stats .stat,
.stats .stat {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  box-sizing: border-box;
  /* ~2× the deploy17 padding (clamp(10px, 1.4vh, 16px)), plus a little
     extra so the whole cell lands near 2× height once type is scaled. */
  padding: clamp(32px, 4.4vh, 52px) 8px;
}

.hero .stats .stat b,
.stats .stat b {
  font-size: clamp(32px, 2.4vw + 1.8vh, 46px); /* ~1.45–1.53× of 22–30 */
  line-height: 1.15;
  margin-bottom: 4px;
  font-weight: 400 !important;
}

.hero .stats .stat span,
.stats .stat span {
  font-size: 15px; /* 1.5× of 10px */
  letter-spacing: 0.06em;
  line-height: 1.3;
  font-weight: 400 !important;
}

@media (max-height: 700px) and (min-width: 821px) {
  .hero .stats .stat,
  .stats .stat {
    padding: 24px 8px;
  }
}

@media (max-width: 560px) {
  .hero .stats .stat,
  .stats .stat {
    padding: 26px 8px; /* ~2× of the previous 12px */
  }
  .hero .stats .stat b,
  .stats .stat b {
    font-size: 33px; /* 1.5× of the 22px mobile size */
  }
  .hero .stats .stat span,
  .stats .stat span {
    font-size: 15px;
  }
}


/* ========================================================================
   deploy18 (t281u): remove the SECOND red stripe that sits inside home
   content boxes, under the section-label + h2 topic bar. Those boxes
   already use the home-card look (soft shadow, radius, hover lift).
   The hero lead bar and the section-label + h2 topic bars stay.
   Inner pages (naujienos, etikos-kodeksas) have no red bars. */
#apie .about-split > div > p:first-child,
#nariai > .wrap > p.muted,
#svietimas .card > p.muted:first-of-type,
.fees-highlight,
.fees-note {
  border-left: 0;
  padding-left: 0;
}
