/* ============================================
   ARCHFRONTLINE — DESIGN SYSTEM
   Pagal: ArchFrontline_Brandbook_0505.pdf
   ============================================ */

/* ============================================
   1. ŠRIFTAI (@font-face)
   RM Neue — pirminė tipografija
   ============================================ */
@font-face {
  font-family: 'RM Neue';
  src: url('../fonts/RMNeue-Light.otf') format('opentype');
  font-weight: 300;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RM Neue';
  src: url('../fonts/RMNeue-Regular.otf') format('opentype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RM Neue';
  src: url('../fonts/RMNeue-Italic.otf') format('opentype');
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RM Neue';
  src: url('../fonts/RMNeue-SemiBold.otf') format('opentype');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RM Neue';
  src: url('../fonts/RMNeue-SemiBoldItalic.otf') format('opentype');
  font-weight: 600;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RM Neue';
  src: url('../fonts/RMNeue-Bold.otf') format('opentype');
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'RM Neue';
  src: url('../fonts/RMNeue-BoldItalic.otf') format('opentype');
  font-weight: 700;
  font-style: italic;
  font-display: swap;
}

@font-face {
  font-family: 'RM Neue';
  src: url('../fonts/RMNeue-LightItalic.otf') format('opentype');
  font-weight: 300;
  font-style: italic;
  font-display: swap;
}

/* ============================================
   2. SPALVŲ SISTEMA (CSS Custom Properties)
   Brandbook p.8: Primary + Additional colours
   ============================================ */
:root {
  /* --- Pirminės spalvos --- */
  --af-dark-blue: #140046;
  --af-light-grey: #f6f7f7;

  /* --- Papildomos spalvos --- */
  --af-violet: #cba5ff;
  --af-violet-light-1: #dcc8ff;
  --af-violet-light-2: #ebdcff;

  /* --- Interakcijų spalvos (hover/active) --- */
  --af-dark-blue-hover: #1e0060;
  --af-dark-blue-active: #0e0030;
  --af-violet-hover: #b88aff;
  --af-violet-active: #a070f0;
  --af-error-hover: #a93226;
  --af-error-active: #8e2720;

  /* --- Funkcinės spalvos --- */
  --af-white: #ffffff;
  --af-black: #000000;
  --af-error: #c0392b;
  --af-success: #1a7a3a;
  --af-warning: #8a6d00;

  /* --- Verdict spalvos (factcheck) --- */
  --verdict-true-bg: #d4edda;
  --verdict-true-text: #155724;
  --verdict-false-bg: #f8d7da;
  --verdict-false-text: #721c24;
  --verdict-partial-bg: #fff3cd;
  --verdict-partial-text: #856404;

  /* --- Tema: Light (numatytoji) --- */
  --bg: var(--af-white);
  --bg-secondary: var(--af-light-grey);
  --bg-tertiary: #eaeaec;
  --bg-accent: var(--af-violet-light-2);
  --bg-accent-strong: var(--af-violet-light-1);

  --text: var(--af-dark-blue);
  --text-secondary: #4a3d6b;
  --text-tertiary: #6b6385;
  --text-on-dark: var(--af-light-grey);
  --text-accent: var(--af-violet);

  --border: #d0cdd8;
  --border-light: #e6e4ec;

  --accent: var(--af-dark-blue);
  --accent-light: var(--af-violet-light-2);

  --shadow: rgba(20, 0, 70, 0.06);
  --shadow-md: 0 4px 12px rgba(20, 0, 70, 0.1);
  --shadow-strong: rgba(20, 0, 70, 0.12);
  --shadow-xl: 0 8px 30px rgba(20, 0, 70, 0.15);

  /* --- Tipografija --- */
  --font-display: 'RM Neue', 'Georgia', serif;
  --font-body: 'RM Neue', 'Georgia', serif;
  --font-ui: 'RM Neue', -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Courier New', monospace;

  /* --- Dydžiai --- */
  --base-size: 18px;
  --content-width: 660px;
  --page-width: 1200px;
  --radius: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;

  /* --- Breakpoints (reference only — use in @media) --- */
  /* --bp-sm: 480px;  */
  /* --bp-md: 768px;  */
  /* --bp-lg: 1024px; */
  /* --bp-xl: 1200px; */

  /* --- Transitions --- */
  --duration-fast: 0.15s;
  --duration-normal: 0.3s;
  --duration-slow: 0.5s;
  --ease-default: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-out: cubic-bezier(0, 0, 0.2, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --transition: var(--duration-slow) var(--ease-out);
  --transition-fast: var(--duration-fast) var(--ease-default);
  --transition-normal: var(--duration-normal) var(--ease-default);

  /* --- Z-index scale --- */
  --z-base: 0;
  --z-dropdown: 100;
  --z-sticky: 110;
  --z-overlay: 150;
  --z-modal: 200;
  --z-toast: 300;

  /* --- Logo constraints (Brandbook p.5) --- */
  --logo-min-width: 150px;
  --logo-exclusion-zone: 62px;

  /* --- Spacing scale (geometric 2x + 12px half-step) --- */
  --space-1: 4px;
  --space-2: 8px;
  --space-half: 12px;
  --space-3: 16px;
  --space-4: 32px;
  --space-5: 64px;
  --space-6: 128px;

  /* --- Tipografijos skalė --- */
  --text-xs: calc(var(--base-size) - 7px);
  --text-sm: calc(var(--base-size) - 5px);
  --text-base: var(--base-size);
  --text-lg: calc(var(--base-size) + 2px);
  --text-xl: calc(var(--base-size) + 6px);
  --text-2xl: calc(var(--base-size) + 10px);
  --text-3xl: calc(var(--base-size) + 16px);
  --text-4xl: calc(var(--base-size) + 24px);
  --text-5xl: calc(var(--base-size) + 34px);

  /* --- Line heights --- */
  --leading-tight: 1.2;
  --leading-snug: 1.35;
  --leading-normal: 1.6;
  --leading-relaxed: 1.75;

  /* --- Letter spacing --- */
  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.03em;
  --tracking-wider: 0.05em;
  --tracking-widest: 0.08em;

  /* --- Graphic element (scale motif) --- */
  --scale-bar-color: var(--af-dark-blue);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 0;
  font-family: var(--font-ui);
  font-size: var(--base-size);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

/* ============================================
   3. DARK MODE
   Brandbook: negative versija ant tamsaus fono
   ============================================ */
[data-theme="dark"] {
  --bg: #0c0020;
  --bg-secondary: #170035;
  --bg-tertiary: #22004a;
  --bg-accent: rgba(203, 165, 255, 0.1);
  --bg-accent-strong: rgba(203, 165, 255, 0.18);

  --text: var(--af-light-grey);
  --text-secondary: #b0a8c4;
  --text-tertiary: #9189a8;
  --text-on-dark: var(--af-light-grey);
  --text-accent: var(--af-violet);

  --border: #2e2250;
  --border-light: #221840;

  --accent: var(--af-light-grey);
  --accent-light: rgba(203, 165, 255, 0.12);

  --verdict-true-bg: rgba(26, 122, 58, 0.15);
  --verdict-true-text: #6fcf97;
  --verdict-false-bg: rgba(192, 57, 43, 0.15);
  --verdict-false-text: #f0a0a0;
  --verdict-partial-bg: rgba(138, 109, 0, 0.15);
  --verdict-partial-text: #f0d060;

  --shadow: rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
  --shadow-strong: rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 8px 30px rgba(0, 0, 0, 0.45);

  --scale-bar-color: var(--af-light-grey);
}

/* ============================================
   4. FONT SIZE PREFERENCES
   ============================================ */
[data-font-size="small"]  { --base-size: 16px; }
[data-font-size="medium"] { --base-size: 18px; }
[data-font-size="large"]  { --base-size: 20px; }
[data-font-size="xlarge"]  { --base-size: 22px; }

/* ============================================
   5. GRAFINIS ELEMENTAS — „SVARSTYKLĖS"
   Brandbook p.15-18: 4 augantys stačiakampiai

   Naudojimas HTML:

   Horizontalūs barai (numatytasis):
   <svg class="af-scale" ...><use href="#af-scale-h"/></svg>

   Vertikalūs barai:
   <svg class="af-scale af-scale-v" ...><use href="#af-scale-v"/></svg>

   Dydžiai: .af-scale-sm / (default) / .af-scale-lg / .af-scale-xl
   Spalva: .af-scale-light (baltam ant tamsaus fono)

   SVG sprite (įdėti į <body> pradžią):

   <svg xmlns="http://www.w3.org/2000/svg" style="display:none">
     <symbol id="af-scale-h" viewBox="0 0 277 20">
       <rect x="0"     y="0" width="5.75"  height="19.94"/>
       <rect x="85.4"  y="0" width="8.74"  height="19.94"/>
       <rect x="168.29" y="0" width="16.74" height="19.94"/>
       <rect x="253.11" y="0" width="20.89" height="19.94"/>
     </symbol>
     <symbol id="af-scale-v" viewBox="0 0 20 277">
       <rect x="0" y="0"      width="19.94" height="5.75"/>
       <rect x="0" y="85.4"   width="19.94" height="8.74"/>
       <rect x="0" y="168.29" width="19.94" height="16.74"/>
       <rect x="0" y="253.11" width="19.94" height="20.89"/>
     </symbol>
   </svg>
   ============================================ */

/* --- Bazinis scale elementas --- */
.af-scale {
  display: block;
  width: 132px;
  height: 20px;
  fill: var(--scale-bar-color);
  flex-shrink: 0;
}

/* Vertikali orientacija */
.af-scale-v {
  width: 20px;
  height: 132px;
}

/* --- Dydžiai (proporcinis scale'inimas, brandbook p.16) --- */
.af-scale-xs {
  width: 66px;
  height: 10px;
}
.af-scale-xs.af-scale-v {
  width: 10px;
  height: 66px;
}

.af-scale-sm {
  width: 96px;
  height: 14px;
}
.af-scale-sm.af-scale-v {
  width: 14px;
  height: 96px;
}

/* default = 132×20, nereikia klasės */

.af-scale-lg {
  width: 180px;
  height: 27px;
}
.af-scale-lg.af-scale-v {
  width: 27px;
  height: 180px;
}

.af-scale-xl {
  width: 240px;
  height: 36px;
}
.af-scale-xl.af-scale-v {
  width: 36px;
  height: 240px;
}

/* --- Spalvos --- */
.af-scale-light {
  fill: var(--af-light-grey);
}

.af-scale-violet {
  fill: var(--af-violet);
}

/* Dark mode automatinis invertavimas */
[data-theme="dark"] .af-scale {
  fill: var(--af-light-grey);
}

[data-theme="dark"] .af-scale-light {
  fill: var(--af-light-grey);
}

/* ============================================
   6. RĖMELIO KOMPONENTAS
   Brandbook p.16-17: Scale motifas kaip rėmelis

   Naudojimas:
   <div class="af-frame">
     <svg class="af-frame-corner af-frame-tl"><use href="#af-scale-h"/></svg>
     <svg class="af-frame-corner af-frame-br"><use href="#af-scale-h"/></svg>
     ...turinys...
   </div>

   Kampai: .af-frame-tl (top-left), .af-frame-tr, .af-frame-bl, .af-frame-br
   Vertikalūs kampai: pridėti .af-scale-v ir naudoti #af-scale-v
   ============================================ */

.af-frame {
  position: relative;
  padding: var(--space-4);
}

/* Kampiniai scale elementai */
.af-frame-corner {
  position: absolute;
  fill: var(--scale-bar-color);
  width: 132px;
  height: 20px;
  pointer-events: none;
}

/* Top-left — numatytoji pozicija */
.af-frame-tl {
  top: 0;
  left: 0;
}

/* Top-right */
.af-frame-tr {
  top: 0;
  right: 0;
}

/* Bottom-left */
.af-frame-bl {
  bottom: 0;
  left: 0;
}

/* Bottom-right */
.af-frame-br {
  bottom: 0;
  right: 0;
}

/* Vertikalūs kampai — override dydžiai */
.af-frame-corner.af-scale-v {
  width: 20px;
  height: 132px;
}

/* Dark mode */
[data-theme="dark"] .af-frame-corner {
  fill: var(--af-light-grey);
}

/* --- Frame dydžių variantai --- */
.af-frame-sm { padding: var(--space-3); }
.af-frame-sm .af-frame-corner {
  width: 96px;
  height: 14px;
}
.af-frame-sm .af-frame-corner.af-scale-v {
  width: 14px;
  height: 96px;
}

.af-frame-lg { padding: var(--space-5); }
.af-frame-lg .af-frame-corner {
  width: 180px;
  height: 27px;
}
.af-frame-lg .af-frame-corner.af-scale-v {
  width: 27px;
  height: 180px;
}

/* --- Naudojimo paternai --- */

/* Citatos blokas: kampai viršuje ir apačioje, centruotas tekstas */
.af-frame-quote {
  text-align: center;
  padding: var(--space-5) var(--space-4);
}

/* Hero sekcija: tik viršutinis kairys + apatinis dešinys */
.af-frame-hero {
  padding: var(--space-5) var(--space-4);
}

/* Compact: kortelėms ir mažiems elementams */
.af-frame-compact {
  padding: var(--space-3);
  padding-top: calc(20px + var(--space-3));
}

/* Vertikalus kraštas: barai palei šoną (brandbook p.15 dešinė) */
.af-frame-side-left {
  padding-left: calc(20px + var(--space-3));
}

.af-frame-side-left > .af-frame-corner.af-scale-v {
  top: 0;
  left: 0;
  bottom: 0;
  height: 100%;
}

.af-frame-side-right {
  padding-right: calc(20px + var(--space-3));
}

.af-frame-side-right > .af-frame-corner.af-scale-v {
  top: 0;
  right: 0;
  bottom: 0;
  height: 100%;
}

/* ============================================
   7. TIPOGRAFIJOS KOMPONENTAI
   ============================================ */

/* Antraštės — optical spacing: didesnis šriftas → glaudesni tarpai */
.af-headline-1 {
  font-family: var(--font-display);
  font-size: var(--text-5xl);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.03em;
  word-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-3);
}

.af-headline-2 {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.025em;
  word-spacing: -0.015em;
  color: var(--text);
  margin-bottom: var(--space-half);
}

.af-headline-3 {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: var(--space-half);
}

.af-headline-4 {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.af-headline-5 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: var(--space-2);
}

/* Kai antraštė eina po kitos antraštės — sumažinti tarpą */
.af-headline-1 + .af-headline-2,
.af-headline-1 + .af-headline-3,
.af-headline-2 + .af-headline-3,
.af-headline-2 + .af-headline-4,
.af-headline-3 + .af-headline-4,
.af-headline-3 + .af-headline-5,
.af-headline-4 + .af-headline-5 {
  margin-top: calc(var(--space-2) * -1);
}

/* Kai po antraštės eina body/meta — optimalus tarpas */
.af-headline-1 + .af-body,
.af-headline-1 + .af-meta,
.af-headline-1 + .af-body-sm { margin-top: var(--space-3); }

.af-headline-2 + .af-body,
.af-headline-2 + .af-meta,
.af-headline-2 + .af-body-sm { margin-top: var(--space-half); }

.af-headline-3 + .af-body,
.af-headline-4 + .af-body,
.af-headline-5 + .af-body { margin-top: var(--space-2); }

/* Body tekstas */
.af-body {
  font-family: var(--font-body);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--text);
}

.af-body-sm {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* UI tekstas */
.af-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
}

.af-category-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--af-dark-blue);
}

.af-category-label::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--af-violet);
  flex-shrink: 0;
}

.af-meta {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--text-tertiary);
}

/* Byline — autoriaus blokas po antrašte */
.af-byline {
  display: flex;
  align-items: center;
  gap: var(--space-half);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

.af-byline--flat {
  border: none;
  padding: 0;
}

.af-byline-photo {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  filter: saturate(0.35) brightness(0.92) contrast(1.08) sepia(0.15) hue-rotate(200deg);
  flex-shrink: 0;
}

.af-byline-info {
  flex: 1;
  min-width: 0;
}

.af-byline-name {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.af-byline-name a {
  color: inherit;
  text-decoration: none;
}

.af-byline-name a:hover {
  text-decoration: underline;
}

.af-byline-role {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: 2px;
}

.af-byline-meta {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--space-half);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.af-byline-reading {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.af-byline-meta > span + span::before {
  content: '·';
  margin-right: var(--space-half);
}

/* Nav tekstas */
.af-nav-link {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.af-nav-link:hover,
.af-nav-link.active {
  color: var(--text);
}

/* Citatos */
.af-blockquote {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  line-height: var(--leading-snug);
  color: var(--text);
  margin: 0;
  padding: var(--space-4) 0;
  text-align: center;
}

/* ============================================
   8. KOMPONENTAI — MYGTUKAI
   ============================================ */

.af-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-half) var(--space-3);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
  line-height: 1;
}

.af-btn-primary {
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
}

.af-btn-primary:hover {
  background: var(--af-dark-blue-hover);
}

[data-theme="dark"] .af-btn-primary {
  background: var(--af-light-grey);
  color: var(--af-dark-blue);
}

[data-theme="dark"] .af-btn-primary:hover {
  background: var(--af-white);
}

.af-btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.af-btn-secondary:hover {
  border-color: var(--text);
}

.af-btn-accent {
  background: var(--af-violet);
  color: var(--af-dark-blue);
}

.af-btn-accent:hover {
  background: var(--af-violet-hover);
}

.af-btn-ghost {
  background: transparent;
  color: var(--text-secondary);
  padding: var(--space-2) var(--space-3);
}

.af-btn-ghost:hover {
  color: var(--text);
  background: var(--bg-secondary);
}

.af-btn-sm {
  font-size: var(--text-xs);
  padding: var(--space-2) var(--space-3);
}

.af-btn-lg {
  font-size: var(--text-sm);
  padding: var(--space-3) var(--space-4);
}

/* ============================================
   9. KOMPONENTAI — KORTELĖS
   ============================================ */

.af-card {
  background: var(--bg);
  border-radius: var(--radius);
  overflow: hidden;
}

.af-card-image {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.af-card-image--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-secondary) 0%, var(--bg-tertiary) 100%);
  color: var(--text-tertiary);
  overflow: hidden;
}
.af-card-image--placeholder svg {
  width: 28%;
  max-width: 72px;
  min-width: 32px;
  height: auto;
  opacity: 0.5;
}

.af-card-body {
  padding: var(--space-3);
}

.af-card-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--af-dark-blue);
  margin-bottom: var(--space-1);
}

.af-card-category::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--af-violet);
  flex-shrink: 0;
}

h1.af-card-title, h2.af-card-title, h3.af-card-title,
h1.af-card-meta, h2.af-card-meta, h3.af-card-meta,
h2.af-thread-list-title,
h2.af-newsletter-title {
  margin-top: 0;
}

.af-card-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--text);
  margin-bottom: var(--space-2);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.2s;
}

.af-card:hover .af-card-title {
  text-decoration-color: currentColor;
}

.af-card-excerpt {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
  margin-bottom: var(--space-2);
}

.af-card-meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

/* Kortelė su rėmeliu (brandbook stilius)
   HTML:
   <div class="af-card af-card-framed">
     <svg class="af-frame-corner af-frame-tl"><use href="#af-scale-h"/></svg>
     <svg class="af-frame-corner af-frame-br"><use href="#af-scale-h"/></svg>
     <div class="af-card-body">...</div>
   </div>
*/
.af-card-framed {
  position: relative;
  background: var(--bg-secondary);
  padding: var(--space-4);
  padding-top: calc(20px + var(--space-3));
}

.af-card-framed > .af-frame-corner {
  width: 96px;
  height: 14px;
}

.af-card-framed > .af-frame-corner.af-scale-v {
  width: 14px;
  height: 96px;
}

/* ============================================
   10. KOMPONENTAI — TAGS / BADGES
   ============================================ */

.af-tag {
  display: inline-block;
  padding: var(--space-1) var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  border-radius: var(--radius);
  text-transform: uppercase;
}

.af-tag-default {
  background: var(--bg-secondary);
  color: var(--text-secondary);
}

.af-tag-accent {
  background: var(--af-violet-light-2);
  color: var(--af-dark-blue);
}

.af-tag-strong {
  background: var(--af-violet);
  color: var(--af-dark-blue);
}

.af-tag-dark {
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
}

.af-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  width: 18px;
  height: 18px;
  padding: 0;
  font-family: var(--font-ui);
  font-size: 10px;
  font-weight: 700;
  border-radius: 2px;
  background: var(--af-error);
  color: var(--af-white);
}

.af-badge-sm {
  min-width: 14px;
  width: 14px;
  height: 14px;
  font-size: 8px;
}

/* ============================================
   11. KOMPONENTAI — INFOGRAFIKOS
   Brandbook p.9-10: Violet spalvų skalė
   ============================================ */

.af-chart-bar {
  height: 32px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  padding: 0 var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--af-dark-blue);
}

.af-chart-bar-1 { background: var(--af-violet-light-2); }
.af-chart-bar-2 { background: var(--af-violet-light-1); }
.af-chart-bar-3 { background: var(--af-violet); }
.af-chart-bar-4 { background: var(--af-dark-blue); color: var(--af-light-grey); }

.af-stat-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  color: var(--text);
}

.af-stat-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  margin-top: var(--space-1);
}

/* ============================================
   12. AUTORIŲ PORTRETAI
   Brandbook p.14: Cool/blue filtras
   ============================================ */

.af-author-photo {
  border-radius: var(--radius);
  object-fit: cover;
  filter: saturate(0.35) brightness(0.92) contrast(1.08) sepia(0.15) hue-rotate(200deg);
  transition: filter 0.3s;
}

.af-author-photo:hover {
  filter: saturate(0.5) brightness(0.96) contrast(1.04) sepia(0.08) hue-rotate(200deg);
}

.af-author-photo-sm { width: 36px; height: 36px; }
.af-author-photo-md { width: 48px; height: 48px; }
.af-author-photo-lg { width: 80px; height: 80px; }
.af-author-photo-xl { width: 120px; height: 120px; }

.af-avatar-frame {
  position: relative;
  display: inline-block;
  padding: 6px;
  flex-shrink: 0;
}

.af-avatar-frame::before,
.af-avatar-frame::after {
  content: '';
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--af-dark-blue);
}

.af-avatar-frame::before { top: 0; left: 0; }
.af-avatar-frame::after { top: 0; right: 0; }

.af-avatar-frame-bl,
.af-avatar-frame-br {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--af-dark-blue);
}

.af-avatar-frame-bl { bottom: 0; left: 0; }
.af-avatar-frame-br { bottom: 0; right: 0; }

.af-avatar-frame-sm { padding: 4px; }
.af-avatar-frame-sm::before,
.af-avatar-frame-sm::after,
.af-avatar-frame-sm .af-avatar-frame-bl,
.af-avatar-frame-sm .af-avatar-frame-br {
  width: 6px;
  height: 6px;
}

[data-theme="dark"] .af-avatar-frame::before,
[data-theme="dark"] .af-avatar-frame::after,
[data-theme="dark"] .af-avatar-frame .af-avatar-frame-bl,
[data-theme="dark"] .af-avatar-frame .af-avatar-frame-br {
  background: var(--af-violet);
}

.af-author-initials {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1;
  filter: none;
}

.af-author-initials:hover {
  filter: none;
}

.af-author-initials.af-author-photo-sm { font-size: 13px; }
.af-author-initials.af-author-photo-md { font-size: 17px; }
.af-author-initials.af-author-photo-lg { font-size: 28px; }
.af-author-initials.af-author-photo-xl { font-size: 40px; }

[data-theme="dark"] .af-author-initials {
  background: var(--af-violet-light-2);
  color: var(--af-dark-blue);
}

/* ============================================
   13. SEPARATORIAI / LINIJOS
   ============================================ */

.af-divider {
  border: none;
  border-top: 1px solid var(--border-light);
  margin: var(--space-4) 0;
}

.af-divider-strong {
  border: none;
  border-top: 2px solid var(--af-dark-blue);
  margin: var(--space-4) 0;
}

[data-theme="dark"] .af-divider-strong {
  border-top-color: var(--af-light-grey);
}

@media (max-width: 768px) {
  .af-divider,
  .af-divider-strong {
    margin: var(--space-3) 0;
  }
}

/* ============================================
   14. DARK BACKGROUND SEKCIJOS
   Brandbook: Dark blue fonas + light grey tekstas
   ============================================ */

.af-section-dark {
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
  --scale-bar-color: var(--af-light-grey);
  position: relative;
  overflow: hidden;
}

.af-section-dark > .af-scale-vertical {
  position: absolute;
  right: var(--space-4);
  top: 0;
  bottom: 0;
  color: rgba(246, 247, 247, 0.06);
  pointer-events: none;
}

.af-section-dark .af-card-category,
.af-section-dark .af-category-label {
  color: var(--af-violet);
}

[data-theme="dark"] .af-card-category,
[data-theme="dark"] .af-category-label {
  color: var(--af-violet);
}

.af-section-dark .af-card-title,
.af-section-dark .af-headline-1,
.af-section-dark .af-headline-2,
.af-section-dark .af-headline-3,
.af-section-dark .af-headline-4,
.af-section-dark .af-headline-5 {
  color: var(--af-light-grey);
}

.af-section-dark .af-card-excerpt,
.af-section-dark .af-meta,
.af-section-dark .af-body-sm {
  color: var(--text-secondary);
}

/* Violet akcentinis fonas */
.af-section-accent {
  background: var(--af-violet-light-2);
  color: var(--af-dark-blue);
}

/* ============================================
   15. LOGO KOMPONENTAS
   Brandbook p.5: min 150px plotis, 62px exclusion zone
   ============================================ */

.af-logo {
  display: inline-block;
  height: 28px;
  width: auto;
  min-width: var(--logo-min-width);
}

.af-logo-sm { height: 20px; min-width: auto; }
.af-logo-lg { height: 40px; }

.af-logo-negative {
  filter: brightness(0) invert(1);
}

.af-logo-wrap {
  padding: var(--logo-exclusion-zone);
}

/* ============================================
   16. UTILITY KLASĖS
   ============================================ */

.af-text-dark-blue { color: var(--af-dark-blue); }
.af-text-violet { color: var(--af-violet); }
.af-text-secondary { color: var(--text-secondary); }
.af-text-tertiary { color: var(--text-tertiary); }

.af-bg-dark-blue { background-color: var(--af-dark-blue); }
.af-bg-light-grey { background-color: var(--af-light-grey); }
.af-bg-violet { background-color: var(--af-violet); }
.af-bg-violet-1 { background-color: var(--af-violet-light-1); }
.af-bg-violet-2 { background-color: var(--af-violet-light-2); }

.af-font-display { font-family: var(--font-display); }
.af-font-body { font-family: var(--font-body); }
.af-font-ui { font-family: var(--font-ui); }

.af-weight-light { font-weight: 300; }
.af-weight-regular { font-weight: 400; }
.af-weight-semibold { font-weight: 600; }
.af-weight-bold { font-weight: 700; }

/* ============================================
   17. SKELETON (LOADING STATE)
   Pritaikytas prie AF spalvų
   ============================================ */

/* Base shimmer — naudoti tiesiogiai arba kaip modifierį */
.af-skeleton {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: af-shimmer 1.8s ease-in-out infinite;
  border-radius: var(--radius);
  color: transparent !important;
}

@keyframes af-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Skeleton line — teksto placeholder'is */
.af-skeleton-line {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: af-shimmer 1.8s ease-in-out infinite;
  border-radius: 3px;
  height: 1em;
}

.af-skeleton-line-sm { height: 0.75em; }
.af-skeleton-line-lg { height: 1.25em; }

/* --- Card skeleton --- */
.af-card.is-skeleton { pointer-events: none; }

.af-card.is-skeleton .af-card-image,
.af-card.is-skeleton > img {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: af-shimmer 1.8s ease-in-out infinite;
}

.af-card.is-skeleton .af-card-category,
.af-card.is-skeleton .af-card-title,
.af-card.is-skeleton .af-card-excerpt,
.af-card.is-skeleton .af-card-meta {
  color: transparent !important;
}

.af-card.is-skeleton .af-card-category { background: var(--bg-tertiary); width: 40%; border-radius: 3px; }
.af-card.is-skeleton .af-card-category::before { display: none; }
.af-card.is-skeleton .af-card-title { background: var(--bg-tertiary); border-radius: 3px; text-decoration: none; }
.af-card.is-skeleton .af-card-excerpt { background: var(--bg-tertiary); border-radius: 3px; }
.af-card.is-skeleton .af-card-meta span { background: var(--bg-tertiary); border-radius: 3px; display: inline-block; min-width: 60px; }

/* --- Byline skeleton --- */
.af-byline.is-skeleton { pointer-events: none; }

.af-byline.is-skeleton .af-byline-photo,
.af-byline.is-skeleton .af-author-photo {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: af-shimmer 1.8s ease-in-out infinite;
}

.af-byline.is-skeleton .af-byline-name,
.af-byline.is-skeleton .af-byline-role {
  color: transparent !important;
  background: var(--bg-tertiary);
  border-radius: 3px;
  display: inline-block;
}

.af-byline.is-skeleton .af-byline-name { min-width: 140px; }
.af-byline.is-skeleton .af-byline-role { min-width: 200px; }

.af-byline.is-skeleton .af-byline-meta span {
  color: transparent !important;
  background: var(--bg-tertiary);
  border-radius: 3px;
  display: inline-block;
  min-width: 40px;
}

/* --- Author card skeleton --- */
.af-author-card.is-skeleton { pointer-events: none; }

.af-author-card.is-skeleton .af-author-photo {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: af-shimmer 1.8s ease-in-out infinite;
}

.af-author-card.is-skeleton .af-author-card-name,
.af-author-card.is-skeleton .af-author-card-role,
.af-author-card.is-skeleton .af-author-card-bio {
  color: transparent !important;
  background: var(--bg-tertiary);
  border-radius: 3px;
}

/* --- User item skeleton (following, topics) --- */
.af-user-item.is-skeleton { pointer-events: none; }
.af-user-item.is-skeleton:hover { background: none; }

.af-user-item.is-skeleton span {
  color: transparent !important;
  background: var(--bg-tertiary);
  border-radius: 3px;
  display: inline-block;
  min-width: 160px;
  min-height: 1em;
}

/* --- Thread item skeleton --- */
.af-thread-item.is-skeleton { pointer-events: none; }

.af-thread-item.is-skeleton .af-thread-number {
  color: transparent !important;
  background: var(--bg-tertiary);
  border-radius: 3px;
  min-width: 20px;
  max-width: 20px;
}

.af-thread-item.is-skeleton .af-thread-item-title {
  color: transparent !important;
  background: var(--bg-tertiary);
  border-radius: 3px;
}

.af-thread-item.is-skeleton .af-thread-item-meta {
  color: transparent !important;
  background: var(--bg-tertiary);
  border-radius: 3px;
  display: inline-block;
  min-width: 120px;
}

/* --- Debate skeleton --- */
.af-debate-side.is-skeleton { pointer-events: none; }

.af-debate-side.is-skeleton .af-debate-position {
  color: transparent !important;
  background: var(--bg-tertiary);
  border-radius: 3px;
  display: inline-block;
}

.af-debate-side.is-skeleton .af-author-photo {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: af-shimmer 1.8s ease-in-out infinite;
}

.af-debate-side.is-skeleton .af-debate-author-name,
.af-debate-side.is-skeleton .af-debate-author-role,
.af-debate-side.is-skeleton .af-debate-text {
  color: transparent !important;
  background: var(--bg-tertiary);
  border-radius: 3px;
}

/* --- Author grid item skeleton --- */
.hp-author-item.is-skeleton { pointer-events: none; }

.hp-author-item.is-skeleton .af-author-photo,
.hp-author-item.is-skeleton .af-author-initials {
  background: linear-gradient(90deg, var(--bg-tertiary) 25%, var(--bg-secondary) 50%, var(--bg-tertiary) 75%);
  background-size: 200% 100%;
  animation: af-shimmer 1.8s ease-in-out infinite;
  color: transparent !important;
}

.hp-author-item.is-skeleton .af-author-card-name,
.hp-author-item.is-skeleton .af-author-card-role,
.hp-author-item.is-skeleton .af-card-meta {
  color: transparent !important;
  background: var(--bg-tertiary);
  border-radius: 3px;
  display: inline-block;
}

.hp-author-item.is-skeleton .af-author-card-name { min-width: 130px; }
.hp-author-item.is-skeleton .af-author-card-role { min-width: 160px; }
.hp-author-item.is-skeleton .af-card-meta { min-width: 80px; }

/* ============================================
   18. FORMOS ELEMENTAI
   ============================================ */

.af-input,
.af-textarea,
.af-select {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-half);
  width: 100%;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  outline: none;
}

.af-input:hover,
.af-textarea:hover,
.af-select:hover {
  border-color: var(--text-tertiary);
}

.af-input:focus,
.af-textarea:focus,
.af-select:focus {
  border-color: var(--af-dark-blue);
  box-shadow: 0 0 0 3px var(--af-violet-light-2);
}

[data-theme="dark"] .af-input:focus,
[data-theme="dark"] .af-textarea:focus,
[data-theme="dark"] .af-select:focus {
  border-color: var(--af-violet);
  box-shadow: 0 0 0 3px rgba(203, 165, 255, 0.2);
}

.af-input::placeholder,
.af-textarea::placeholder {
  color: var(--text-tertiary);
}

.af-input-sm {
  font-size: var(--text-sm);
  padding: var(--space-1) var(--space-2);
}

.af-textarea {
  min-height: 120px;
  resize: vertical;
}

.af-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238a82a0' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right var(--space-half) center;
  padding-right: var(--space-4);
}

.af-field-label {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.af-field-hint {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

.af-field-error {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--af-error);
  margin-top: var(--space-1);
}

.af-input-error,
.af-textarea-error {
  border-color: var(--af-error);
}

.af-input-error:focus,
.af-textarea-error:focus {
  box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.15);
}

/* ============================================
   19. GRID / LAYOUT
   ============================================ */

.af-container {
  width: 100%;
  max-width: var(--page-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-3);
  padding-right: var(--space-3);
  box-sizing: border-box;
}

.af-container-narrow {
  max-width: var(--content-width);
}

.af-grid {
  display: grid;
  gap: var(--space-3);
}

.af-grid-2 { grid-template-columns: repeat(2, 1fr); }
.af-grid-3 { grid-template-columns: repeat(3, 1fr); }
.af-grid-4 { grid-template-columns: repeat(4, 1fr); }

.af-grid-article {
  grid-template-columns: 1fr minmax(0, var(--content-width)) 1fr;
}

.af-grid-sidebar {
  grid-template-columns: 1fr 300px;
  gap: var(--space-4);
}

@media (max-width: 1024px) {
  .af-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .af-grid-sidebar { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .af-grid-2,
  .af-grid-3,
  .af-grid-4 {
    grid-template-columns: 1fr;
  }

  .af-container {
    padding-left: var(--space-3);
    padding-right: var(--space-3);
  }
}

@media (max-width: 480px) {
  .af-container {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
}

/* ============================================
   20. ACCESSIBILITY — FOCUS & MOTION
   ============================================ */

*:focus-visible {
  outline: 2px solid var(--af-violet);
  outline-offset: 2px;
}

[data-theme="dark"] *:focus-visible {
  outline-color: var(--af-violet);
}

.af-btn:focus-visible {
  outline: 2px solid var(--af-violet);
  outline-offset: 2px;
  box-shadow: 0 0 0 4px var(--af-violet-light-2);
}

[data-theme="dark"] .af-btn:focus-visible {
  box-shadow: 0 0 0 4px rgba(203, 165, 255, 0.25);
}

.af-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --- 10b. Language-aware content --- */
[data-lang="lt"] { display: none; }
html[lang="lt"] [data-lang="lt"] { display: initial; }
html[lang="lt"] [data-lang="en"] { display: none; }

.af-skip-link {
  position: absolute;
  top: -100%;
  left: var(--space-3);
  z-index: var(--z-toast);
  padding: var(--space-2) var(--space-3);
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  border-radius: var(--radius);
  text-decoration: none;
}

.af-skip-link:focus {
  top: var(--space-2);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============================================
   21. SELECTION & MISC
   ============================================ */

::selection {
  background: var(--af-violet-light-1);
  color: var(--af-dark-blue);
}

[data-theme="dark"] ::selection {
  background: rgba(203, 165, 255, 0.35);
  color: var(--af-light-grey);
}

.af-line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.af-line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.af-line-clamp-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ============================================
   22. PRINT
   ============================================ */

@media print {
  :root {
    --bg: #fff;
    --text: #000;
    --text-secondary: #333;
    --border: #ccc;
  }

  .af-section-dark {
    background: #fff !important;
    color: #000 !important;
  }

  .af-btn,
  .af-skeleton,
  .af-skip-link,
  .af-header,
  .af-cookie-banner,
  .af-back-to-top,
  .af-mobile-menu,
  .af-lightbox-overlay,
  .af-bottom-bar,
  .af-reading-progress,
  .af-search-modal-overlay {
    display: none !important;
  }

  .af-author-photo {
    filter: grayscale(1);
  }

  a[href]::after {
    content: " (" attr(href) ")";
    font-size: var(--text-xs);
    color: #666;
  }
}

/* ============================================
   23. TEXT LINKS
   Skill: „Apie tai plačiau rašėme čia" tipo
   inline nuorodos straipsnio viduje
   ============================================ */

/* Inline link straipsnio body tekste */
.af-link {
  color: var(--af-dark-blue);
  text-decoration: underline;
  text-decoration-color: var(--af-violet);
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color var(--transition-fast), background-color var(--transition-fast);
}

.af-link:hover {
  text-decoration-color: var(--af-dark-blue);
  text-decoration-thickness: 2.5px;
}

[data-theme="dark"] .af-link {
  color: var(--af-violet-light-1);
}

[data-theme="dark"] .af-link:hover {
  text-decoration-color: var(--af-light-grey);
}

/* Standalone link — „Skaityti daugiau" tipo */
.af-link-standalone {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  letter-spacing: var(--tracking-wide);
  transition: gap var(--transition-fast);
}

.af-link-standalone::after {
  content: '→';
  transition: transform var(--transition-fast);
}

.af-link-standalone:hover::after {
  transform: translateX(3px);
}

/* Nav link — footer variantas (ant tamsaus fono) */
.af-link-footer {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(246, 247, 247, 0.7);
  padding: 3px 0;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.af-link-footer:hover {
  color: var(--af-light-grey);
}

/* ============================================
   24. ICON BUTTONS
   Header, toolbar, back-to-top
   ============================================ */

.af-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: none;
  color: var(--text-secondary);
  font-size: 16px;
  cursor: pointer;
  position: relative;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.af-icon-btn:hover {
  background: var(--bg-secondary);
  color: var(--text);
}


.af-icon-btn-sm {
  width: 28px;
  height: 28px;
  font-size: 13px;
}

.af-icon-btn-lg {
  width: 44px;
  height: 44px;
  font-size: 20px;
}

/* Filled variant — back-to-top, FAB */
.af-icon-btn-filled {
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
  box-shadow: 0 4px 12px var(--shadow);
}

.af-icon-btn-filled:hover {
  background: var(--af-dark-blue-hover);
  color: var(--af-light-grey);
}

[data-theme="dark"] .af-icon-btn-filled {
  background: var(--af-light-grey);
  color: var(--af-dark-blue);
}

/* ============================================
   24b. FOLLOW BUTTON
   Category / topic page "Follow this section" toggle
   ============================================ */

.af-follow-row {
  margin-top: var(--space-3);
}

.af-follow-btn.is-following {
  background: var(--text);
  color: var(--bg);
  border-color: var(--text);
}

/* ============================================
   25. ACTION PILLS
   Share, Save, Cite — straipsnio pabaigoje
   ============================================ */

.af-action-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-half);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
  text-decoration: none;
}

.af-action-pill:hover {
  background: var(--bg-secondary);
  color: var(--text);
  border-color: var(--text-tertiary);
}

.af-action-pill .af-icon {
  font-size: 14px;
}

.af-action-pill-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-half);
  padding: var(--space-3) 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}

/* ============================================
   26. TOGGLE / FOLLOW BUTTON
   Temos sekimas, bookmark — keičia būseną
   Skill: bookmark triggerina registraciją
   ============================================ */

.af-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-3);
  border: 1px solid var(--text);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  background: none;
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.af-toggle-btn:hover {
  background: var(--text);
  color: var(--bg);
}

.af-toggle-btn.active {
  background: var(--text);
  color: var(--bg);
}

/* Bookmark — personal action, visually distinct from share (social) buttons.
   Hover fills icon with brand dark blue, click persists the filled state. */
.af-bookmark-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: none;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), transform var(--transition-fast);
}

.af-bookmark-btn .af-bookmark-filled { display: none; }

.af-bookmark-btn:hover,
.af-bookmark-btn.saved,
.af-bookmark-btn.is-saved,
.af-bookmark-btn[aria-pressed="true"] {
  color: var(--af-dark-blue);
  border-color: var(--af-dark-blue);
}

.af-bookmark-btn:hover .af-bookmark-outline,
.af-bookmark-btn.saved .af-bookmark-outline,
.af-bookmark-btn.is-saved .af-bookmark-outline,
.af-bookmark-btn[aria-pressed="true"] .af-bookmark-outline { display: none; }
.af-bookmark-btn:hover .af-bookmark-filled,
.af-bookmark-btn.saved .af-bookmark-filled,
.af-bookmark-btn.is-saved .af-bookmark-filled,
.af-bookmark-btn[aria-pressed="true"] .af-bookmark-filled { display: inline; }

[data-theme="dark"] .af-bookmark-btn {
  border-color: rgba(246, 247, 247, 0.2);
  color: rgba(246, 247, 247, 0.7);
}

[data-theme="dark"] .af-bookmark-btn:hover,
[data-theme="dark"] .af-bookmark-btn.saved,
[data-theme="dark"] .af-bookmark-btn.is-saved,
[data-theme="dark"] .af-bookmark-btn[aria-pressed="true"] {
  color: var(--af-light-grey);
  border-color: var(--af-light-grey);
}

/* ============================================
   27. NEWSLETTER CTA
   Skill: engagement pamatas, natūrali integracija
   tarp turinio blokų
   ============================================ */

.af-newsletter {
  display: grid;
  grid-template-columns: 1fr 340px;
  max-width: 900px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border);
}

.af-newsletter-content {
  padding: var(--space-5) var(--space-4);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.af-newsletter-visual {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

.af-newsletter-visual img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.35) brightness(0.92) contrast(1.08) sepia(0.15) hue-rotate(200deg);
}

.af-newsletter-visual .af-scale-frame {
  color: var(--af-dark-blue);
}

[data-theme="dark"] .af-newsletter-visual .af-scale-frame {
  color: rgba(246, 247, 247, 0.5);
}

.af-newsletter-visual .af-scale-frame {
  z-index: 2;
}

.af-newsletter-visual-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--bg) 0%, transparent 30%);
  z-index: 1;
}

[data-theme="dark"] .af-newsletter-visual-overlay {
  background: linear-gradient(90deg, var(--bg) 0%, rgba(18, 18, 16, 0.3) 30%);
}

.af-newsletter-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--af-dark-blue);
  margin-bottom: var(--space-3);
}
[data-theme="dark"] .af-newsletter-label {
  color: var(--af-violet);
}

.af-newsletter-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: var(--space-half);
}

.af-newsletter-desc {
  font-family: var(--font-body);
  font-size: 17px;
  color: var(--text-secondary);
  line-height: var(--leading-normal);
  margin-bottom: var(--space-4);
  max-width: 380px;
}

.af-newsletter-form {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  max-width: 480px;
}

.af-newsletter-form-row {
  display: flex;
  gap: var(--space-2);
}

.af-newsletter-field {
  flex: 1;
  position: relative;
}

.af-newsletter-input {
  width: 100%;
  box-sizing: border-box;
  padding: 20px var(--space-3) 8px;
  border: 1px solid var(--border);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast);
}

.af-newsletter-input:focus {
  border-color: var(--af-dark-blue);
}

.af-newsletter-input.has-error {
  border-color: var(--af-error);
}

.af-newsletter-field label {
  position: absolute;
  left: var(--space-3);
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  pointer-events: none;
  transition: top 0.2s ease, transform 0.2s ease, font-size 0.2s ease, color 0.2s ease;
  transform-origin: left center;
}

.af-newsletter-input:focus ~ label,
.af-newsletter-input:not(:placeholder-shown) ~ label {
  top: 8px;
  transform: translateY(0);
  font-size: 10px;
  color: var(--af-dark-blue);
  letter-spacing: 0.03em;
}

[data-theme="dark"] .af-newsletter-input:focus ~ label,
[data-theme="dark"] .af-newsletter-input:not(:placeholder-shown) ~ label {
  color: var(--af-violet);
}

.af-newsletter-submit {
  padding: var(--space-half) var(--space-4);
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
  border: none;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  cursor: pointer;
  transition: opacity var(--transition-fast);
  white-space: nowrap;
}

.af-newsletter-submit:hover {
  opacity: 0.85;
}

[data-theme="dark"] .af-newsletter-submit {
  background: var(--af-light-grey);
  color: var(--af-dark-blue);
}

.af-newsletter-fine {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-half);
}

.af-newsletter-fine.has-error {
  color: var(--af-error);
  font-size: var(--text-sm);
  font-weight: 500;
}

.af-newsletter-consent {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-secondary);
  margin: var(--space-2) 0;
}

.af-newsletter-consent input[type="checkbox"] {
  margin-top: 3px;
  flex-shrink: 0;
}

/* Section wrapper used wherever newsletter-form partial is included */
.hp-newsletter-section {
  padding: var(--space-5) 0;
}

.hp-newsletter-section .af-layout-horizontal {
  max-width: 85%;
  aspect-ratio: auto;
}

.hp-newsletter-section .af-newsletter-title {
  font-size: var(--text-2xl);
}

.hp-newsletter-section .af-newsletter-desc {
  font-size: var(--text-sm);
}

.hp-newsletter-section .af-layout-photo-col {
  position: relative;
}

.hp-newsletter-section .af-layout-photo {
  position: absolute;
  inset: 0;
  object-position: center;
}

@media (max-width: 768px) {
  .af-newsletter {
    grid-template-columns: 1fr;
  }

  .af-newsletter-visual {
    min-height: 200px;
    order: -1;
  }

  .af-newsletter-visual-overlay {
    background: linear-gradient(0deg, var(--bg) 0%, transparent 40%);
  }

  .af-newsletter-content {
    padding: var(--space-4) var(--space-3);
  }

  .hp-newsletter-section {
    padding: var(--space-4) 0;
  }

  .hp-newsletter-section .af-layout-horizontal {
    max-width: 100%;
  }

  .hp-newsletter-section .af-layout-photo-col {
    display: none;
  }

  .hp-newsletter-section .af-layout-content {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  .af-newsletter-form-row {
    flex-direction: column;
  }

  .af-newsletter-submit {
    width: 100%;
  }
}

/* ============================================
   28. EXPERT QUOTE
   Skill: kvėpavimo taškas tekste, kredibilumas
   Nuotrauka + vardas + pareigos + citata
   ============================================ */

.af-expert-quote {
  margin: 2em 0;
  padding: var(--space-4) 0;
  position: relative;
}

.af-expert-quote-text {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 400;
  font-style: italic;
  line-height: var(--leading-snug);
  color: var(--text);
  margin-bottom: var(--space-3);
}

.af-expert-quote-text::before { content: '\201C'; }
.af-expert-quote-text::after { content: '\201D'; }

.af-expert-quote-attribution {
  display: flex;
  align-items: center;
  gap: var(--space-half);
  padding-top: var(--space-half);
  border-top: 1px solid var(--border-light);
}

.af-expert-quote-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  object-fit: cover;
  filter: saturate(0.35) brightness(0.92) contrast(1.08) sepia(0.15) hue-rotate(200deg);
}

.af-expert-quote-name {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.af-expert-quote-role {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

/* ============================================
   29. PULL QUOTE
   Skill: didelis šriftas, pertraukia ilgą tekstą
   Cituojamas pats autorius, ne ekspertas
   ============================================ */

.af-pullquote {
  margin: 2em 0;
  padding: var(--space-5) var(--space-4);
  text-align: center;
}

.af-pullquote-scale {
  display: flex;
  justify-content: center;
  gap: clamp(32px, 8vw, 80px);
}

.af-pullquote-scale .bar {
  background: var(--af-dark-blue);
  height: auto;
  flex-shrink: 0;
}

.af-pullquote-scale .bar-1 { width: 5.75px; height: 14px; }
.af-pullquote-scale .bar-2 { width: 8.74px; height: 14px; }
.af-pullquote-scale .bar-3 { width: 16.74px; height: 14px; }
.af-pullquote-scale .bar-4 { width: 20.89px; height: 14px; }

.af-pullquote-scale-top {
  margin-bottom: var(--space-4);
}

.af-pullquote-scale-bottom {
  margin-top: var(--space-4);
}

[data-theme="dark"] .af-pullquote-scale .bar {
  background: var(--af-light-grey);
  opacity: 0.3;
}

.af-pullquote-text {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 400;
  font-style: italic;
  line-height: var(--leading-relaxed);
  letter-spacing: -0.01em;
  color: var(--text);
  max-width: 600px;
  margin: 0 auto;
}

.af-pullquote-author {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-tertiary);
  margin-top: var(--space-3);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
}

/* ============================================
   30. KEY TAKEAWAYS
   Skill: esmė prieš gilinimąsi, 3-5 punktai
   ============================================ */

.af-takeaways {
  margin: 2em 0;
  padding: var(--space-3) 0;
}

[data-theme="dark"] .af-takeaways {
}

.af-takeaways-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.af-takeaways-list {
  list-style: none;
  counter-reset: takeaway;
}

.af-takeaways-item {
  counter-increment: takeaway;
  display: flex;
  gap: var(--space-half);
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-light);
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

.af-takeaways-item:last-child { border-bottom: none; }

.af-takeaways-item::before {
  content: counter(takeaway, upper-roman);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--af-violet);
  min-width: 28px;
  flex-shrink: 0;
}

/* ============================================
   31. FACTCHECK
   Skill: teiginys + verdiktas + paaiškinimas
   ============================================ */

.af-factcheck {
  margin: 2em 0;
  padding: var(--space-4);
  background: var(--bg-secondary);
}

.af-factcheck-header {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

.af-factcheck-claim {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  font-style: italic;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-3);
  padding-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-light);
}

.af-factcheck-verdict {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  padding: var(--space-1) var(--space-2);
  margin-bottom: var(--space-half);
}

.af-factcheck-verdict-true  { background: var(--verdict-true-bg); color: var(--verdict-true-text); }
.af-factcheck-verdict-false { background: var(--verdict-false-bg); color: var(--verdict-false-text); }
.af-factcheck-verdict-partial { background: var(--verdict-partial-bg); color: var(--verdict-partial-text); }

.af-factcheck-explanation {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* ============================================
   32. TIMELINE
   Skill: „Kaip čia atėjome" kontekstas
   ============================================ */

.af-timeline {
  margin: 2em 0;
  padding: 0;
  list-style: none;
}

.af-timeline-item {
  display: flex;
  gap: var(--space-3);
  padding-bottom: var(--space-4);
  position: relative;
}

/* Vertikali linija */
.af-timeline-item::before {
  content: '';
  position: absolute;
  left: 5px;
  top: 12px;
  bottom: 0;
  width: 1px;
  background: var(--border);
}

.af-timeline-item:last-child::before { display: none; }

.af-timeline-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--af-dark-blue);
  flex-shrink: 0;
  margin-top: 6px;
  position: relative;
  z-index: 1;
}

[data-theme="dark"] .af-timeline-dot {
  background: var(--af-violet);
}

.af-timeline-content { flex: 1; }

.af-timeline-date {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-tertiary);
  text-transform: uppercase;
  letter-spacing: var(--tracking-wider);
  margin-bottom: var(--space-1);
}

.af-timeline-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-1);
}

.af-timeline-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* ============================================
   33. CONTEXT BOX
   Skill: background neįsigilinusiam skaitytojui
   „Kas yra X ir kodėl tai svarbu"
   ============================================ */

.af-context-box {
  margin: 2em 0;
  padding: var(--space-4);
  border: 2px solid var(--af-violet);
  position: relative;
}

.af-context-box-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--af-dark-blue);
  position: absolute;
  top: 0;
  left: var(--space-3);
  transform: translateY(-50%);
  padding: 0 var(--space-2);
  background: var(--bg);
  margin: 0;
}

.af-context-box-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
}

/* ============================================
   34. EXPERT OPINION
   Wireframe: diskusijų formatas, border-left spalva
   ============================================ */

.af-expert-opinion {
  margin: 2em 0;
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-left: 3px solid var(--border);
  position: relative;
}

.af-expert-opinion:nth-child(odd) {
  border-left-color: var(--af-dark-blue);
}

[data-theme="dark"] .af-expert-opinion:nth-child(odd) {
  border-left-color: var(--af-light-grey);
}

.af-expert-opinion-header {
  display: flex;
  align-items: center;
  gap: var(--space-half);
  margin-bottom: var(--space-3);
}

.af-expert-opinion-name {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
}

.af-expert-opinion-credentials {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.af-expert-opinion-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

/* ============================================
   35. STATE OF PLAY
   Summary + key facts skaičiai
   ============================================ */

.af-sop {
  padding: var(--space-4);
  background: var(--bg-secondary);
  border-left: 3px solid var(--af-dark-blue);
}

[data-theme="dark"] .af-sop {
  border-left-color: var(--af-light-grey);
}

.af-sop-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--space-1);
}

.af-sop-updated {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-bottom: var(--space-half);
}

.af-sop-text {
  font-family: var(--font-body);
  font-size: 17px;
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.af-sop-facts {
  display: flex;
  gap: var(--space-4);
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border-light);
}

.af-sop-fact { text-align: center; }

.af-sop-fact-number {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 700;
  line-height: 1;
}

.af-sop-fact-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* ============================================
   36. TABLE OF CONTENTS
   Navigacija ilgame straipsnyje
   ============================================ */

.af-toc {
  background: var(--bg-secondary);
  padding: var(--space-4);
  border-left: 3px solid var(--af-dark-blue);
}

[data-theme="dark"] .af-toc {
  border-left-color: var(--af-light-grey);
}

.af-toc-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--space-half);
}

.af-toc-list {
  list-style: none;
  counter-reset: toc;
}

.af-toc-item {
  counter-increment: toc;
  padding: 6px 0;
  border-bottom: 1px solid var(--border-light);
}

.af-toc-item:last-child { border-bottom: none; }

.af-toc-link {
  display: flex;
  gap: var(--space-2);
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.af-toc-link:hover { color: var(--text-secondary); }

.af-toc-link::before {
  content: counter(toc, decimal-leading-zero);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  min-width: 24px;
  padding-top: 4px;
}

/* ============================================
   37. CITATION BOX
   Dokumento citavimas, monospace, copy mygtukas
   ============================================ */

.af-cite {
  margin: 2em 0;
  padding: var(--space-3);
  border: 1px dashed var(--border);
}

.af-cite-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.af-cite-text {
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  line-height: var(--leading-normal);
}

.af-cite-copy {
  margin-top: var(--space-2);
  padding: var(--space-1) var(--space-half);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  border: 1px solid var(--border);
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.af-cite-copy:hover {
  background: var(--bg-secondary);
}

/* ============================================
   38. STATS BLOCK
   Skill: didelis skaičius + kontekstas
   ============================================ */

.af-stats-row {
  display: flex;
  gap: var(--space-4);
  padding: var(--space-4);
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
}

.af-stats-item { text-align: center; flex: 1; }

.af-stats-number {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.025em;
  margin-bottom: var(--space-1);
}

.af-stats-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  opacity: 0.7;
  letter-spacing: var(--tracking-wide);
}

/* ============================================
   39. BREADCRUMB
   ============================================ */

.af-breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.af-breadcrumb a {
  color: var(--text-tertiary);
  text-decoration: none;
  transition: color var(--transition-fast);
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

.af-breadcrumb a:hover { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

.af-breadcrumb-separator::before { content: '/'; }

.af-breadcrumb-current {
  color: var(--text);
  font-weight: 600;
}

/* ============================================
   40. NEXT ARTICLE CTA
   Skill: grįžtamasis turinys, skaitymo srautas
   ============================================ */

.af-next-article {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-3);
  text-align: center;
}

.af-next-article-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--space-half);
}

.af-next-article-title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: var(--leading-snug);
  margin-bottom: var(--space-2);
  cursor: pointer;
  transition: color var(--transition-fast);
}

.af-next-article-title:hover {
  color: var(--text-secondary);
}

.af-next-article-author {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ============================================
   41. THREAD LIST
   Susiję straipsniai temoje
   ============================================ */

.af-thread-list {
  border-top: 2px solid var(--af-dark-blue);
  padding-top: var(--space-3);
}

[data-theme="dark"] .af-thread-list {
  border-top-color: var(--af-light-grey);
}

.af-thread-list-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.af-thread-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
  align-items: baseline;
  text-decoration: none;
}

.af-thread-item:hover .af-thread-item-title {
  color: var(--text-secondary);
}

.af-thread-number {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  min-width: 28px;
}

.af-thread-item-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
  transition: color var(--transition-fast);
}

.af-thread-item-meta {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

/* ============================================
   42. FOOTER
   ============================================ */

/* --- Bendras vertikalių juostelių komponentas ---
   Brandbook p.15: 4 vertikalios storėjančios juostelės.
   Naudojamas footer, hero ir kitur kaip dekoratyvinis elementas. */

.af-scale-vertical {
  display: flex;
  align-items: stretch;
  gap: clamp(12px, 3vw, 32px);
}

.af-scale-vertical .bar {
  background: currentColor;
  flex-shrink: 0;
}

.af-scale-vertical .bar-1 { width: 5.75px; }
.af-scale-vertical .bar-2 { width: 8.74px; }
.af-scale-vertical .bar-3 { width: 16.74px; }
.af-scale-vertical .bar-4 { width: 20.89px; }

.af-footer {
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
  margin-top: var(--space-5);
}

.af-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
}

.af-footer-inner > .af-scale-vertical {
  align-self: stretch;
  margin-top: var(--space-2);
  margin-bottom: var(--space-2);
  color: rgba(246, 247, 247, 0.08);
  pointer-events: none;
  flex-shrink: 0;
}

.af-footer-brand {
  max-width: 360px;
}

.af-footer-brand .af-logo {
  height: 67px;
  display: block;
  margin-bottom: var(--space-3);
}

.af-footer-description {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: rgba(246, 247, 247, 0.7);
  margin-bottom: var(--space-4);
}

.af-footer-copy {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: rgba(246, 247, 247, 0.6);
}

.af-footer-links {
  display: flex;
  gap: var(--space-5);
}

.af-footer-col-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: rgba(246, 247, 247, 0.65);
  margin-bottom: var(--space-2);
}

@media (max-width: 768px) {
  .af-footer-inner {
    flex-direction: column;
    gap: var(--space-4);
  }

  .af-footer-links {
    flex-direction: column;
    gap: var(--space-4);
  }

  .af-footer .af-scale-vertical {
    display: none;
  }
}

/* ============================================
   43. TOOLTIP
   ============================================ */

.af-tooltip {
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-2);
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: var(--z-dropdown);
}

.af-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--af-dark-blue);
}

*:hover > .af-tooltip {
  opacity: 1;
}

.af-tooltip-bottom {
  bottom: auto;
  top: calc(100% + 8px);
}

.af-tooltip-bottom::after {
  top: auto;
  bottom: 100%;
  border-top-color: transparent;
  border-bottom-color: var(--af-dark-blue);
}

.af-icon-btn[aria-label]:not(.af-back-to-top),
.af-font-size-toggle[aria-label],
.af-lang-switcher-btn[aria-label],
.af-search-modal-close[aria-label],
.af-header-hamburger[aria-label],
.af-share-btn[aria-label],
.af-bookmark-btn[aria-label] {
  position: relative;
}

.af-icon-btn[aria-label]::after,
.af-font-size-toggle[aria-label]::after,
.af-lang-switcher-btn[aria-label]::after,
.af-search-modal-close[aria-label]::after,
.af-header-hamburger[aria-label]::after,
.af-share-btn[aria-label]::after,
.af-bookmark-btn[aria-label]::after {
  content: attr(aria-label);
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  padding: var(--space-1) var(--space-2);
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  white-space: nowrap;
  border-radius: var(--radius-md);
  pointer-events: none;
  opacity: 0;
  transition: opacity var(--transition-fast);
  z-index: var(--z-dropdown);
}

.af-icon-btn[aria-label]:hover::after,
.af-font-size-toggle[aria-label]:hover::after,
.af-lang-switcher-btn[aria-label]:hover::after,
.af-search-modal-close[aria-label]:hover::after,
.af-header-hamburger[aria-label]:hover::after,
.af-share-btn[aria-label]:hover::after,
.af-bookmark-btn[aria-label]:hover::after {
  opacity: 1;
}

.af-share-btn[aria-label]::after,
.af-bookmark-btn[aria-label]::after {
  bottom: auto;
  top: calc(100% + 8px);
}

.af-bookmark-btn.af-bookmark-flash::after {
  opacity: 1;
}

/* ============================================
   44. READING PROGRESS BAR
   Skill: rodo kiek straipsnio liko
   ============================================ */

.af-reading-progress {
  position: fixed;
  top: 56px;
  left: 0;
  height: 2px;
  background: var(--af-dark-blue);
  z-index: var(--z-sticky);
  transition: width 0.1s linear;
  width: 0%;
}

[data-theme="dark"] .af-reading-progress {
  background: var(--af-violet);
}

/* ============================================
   45. DESTRUCTIVE BUTTON + DISABLED STATES
   QA §8: mygtukai turi destructive + disabled
   ============================================ */

.af-btn-destructive {
  background: var(--af-error);
  color: var(--af-white);
}

.af-btn-destructive:hover {
  background: var(--af-error-hover);
}

.af-btn:disabled,
.af-btn[aria-disabled="true"] {
  opacity: 0.5;
  pointer-events: none;
  cursor: not-allowed;
}

/* ============================================
   46. LEAD PARAGRAPH
   QA §2: atskiras stilius nuo body
   ============================================ */

.af-lead {
  font-family: var(--font-body);
  font-size: var(--text-xl);
  font-weight: 400;
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

/* ============================================
   47. HEADLINE 6 + CAPTION
   QA §2: bent 6 antraščių lygiai
   ============================================ */

.af-headline-6 {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-snug);
  letter-spacing: var(--tracking-wide);
  text-transform: uppercase;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.af-caption {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: var(--leading-normal);
}

/* ============================================
   48. FIGURE + FIGCAPTION
   QA §3: inline image + caption + credit
   ============================================ */

.af-figure {
  margin: 2em 0;
}

.af-figure img {
  width: 100%;
  display: block;
}

.af-figure-full {
  margin-left: calc(-1 * var(--space-4));
  margin-right: calc(-1 * var(--space-4));
}

.af-figcaption {
  display: flex;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-2);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  line-height: var(--leading-normal);
}

.af-figcaption-credit {
  flex-shrink: 0;
  font-style: italic;
}

.af-figcaption-credit a {
  color: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
  text-decoration-color: var(--border);
  transition: text-decoration-color var(--transition-fast);
}

.af-figcaption-credit a:hover {
  text-decoration-color: currentColor;
}

/* ============================================
   49. LIST STYLING
   QA §3: sąrašai su pakankamais tarpais
   ============================================ */

.af-list {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
  color: var(--text);
  padding-left: 1.5em;
  margin: 1em 0;
}

.af-list li {
  margin-bottom: 0.5em;
}

.af-list li:last-child {
  margin-bottom: 0;
}

.af-list-ordered {
  list-style-type: decimal;
}

.af-list-unordered {
  list-style-type: disc;
}

/* ============================================
   50. CHECKBOX + RADIO
   QA §8: formos elementai padengti
   ============================================ */

.af-checkbox,
.af-radio {
  display: flex;
  align-items: flex-start;
  gap: var(--space-2);
  cursor: pointer;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.4;
}

.af-checkbox input,
.af-radio input {
  appearance: none;
  width: 18px;
  height: 18px;
  border: 1.5px solid var(--border);
  background: var(--bg);
  flex-shrink: 0;
  margin-top: 1px;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), box-shadow var(--transition-fast);
}

.af-checkbox input {
  border-radius: var(--radius);
}

.af-radio input {
  border-radius: 50%;
}

.af-checkbox input:checked,
.af-radio input:checked {
  background: var(--af-dark-blue);
  border-color: var(--af-dark-blue);
}

[data-theme="dark"] .af-checkbox input:checked,
[data-theme="dark"] .af-radio input:checked {
  background: var(--af-violet);
  border-color: var(--af-violet);
}

.af-checkbox input:checked::after {
  content: '';
  display: block;
  width: 5px;
  height: 9px;
  border: solid var(--af-white);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  margin: 1px auto 0;
}

.af-radio input:checked::after {
  content: '';
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--af-white);
  margin: 3px auto 0;
}

.af-checkbox input:focus-visible,
.af-radio input:focus-visible {
  outline: 2px solid var(--af-violet);
  outline-offset: 2px;
}

/* ============================================
   51. CARD VARIANTS
   QA §3: hero, sub-hero, compact
   ============================================ */

.af-card-hero {
  display: grid;
  grid-template-rows: auto 1fr;
}

.af-card-hero .af-card-image {
  aspect-ratio: 21 / 9;
}

.af-card-hero .af-card-title {
  font-size: var(--text-3xl);
  letter-spacing: -0.02em;
}

.af-card-hero .af-card-excerpt {
  font-size: var(--text-base);
}

.af-card-hero .af-card-body {
  padding: var(--space-4);
}

.af-card-subhero {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

@media (max-width: 768px) {
  .af-card-subhero {
    grid-template-columns: 1fr;
  }
}

.af-card-subhero .af-card-image {
  aspect-ratio: 4 / 3;
  height: 100%;
}

.af-card-subhero .af-card-title {
  font-size: var(--text-2xl);
  letter-spacing: -0.01em;
}

.af-card-subhero .af-card-excerpt {
  font-size: var(--text-base);
}

.af-card-subhero .af-card-body {
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.af-card-compact {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
}

.af-card-compact .af-card-image {
  width: 120px;
  aspect-ratio: 1;
  flex-shrink: 0;
  border-radius: var(--radius);
}

.af-card-compact .af-card-body {
  padding: 0;
  flex: 1;
}

.af-card-compact .af-card-title {
  font-size: var(--text-base);
}

/* ============================================
   52. AUTHOR CARD
   QA §3: nuotrauka + bio + ekspertizė
   ============================================ */

.af-author-card {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4);
  background: var(--bg-secondary);
}

.af-author-card-info {
  flex: 1;
}

.af-author-card-name {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-1);
}

.af-author-card-role {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--af-violet);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.af-author-card-bio {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.af-author-card-expertise {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin-top: var(--space-2);
}

.af-author-card-expertise .af-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--af-dark-blue);
  background: transparent;
  padding-left: 0;
}

.af-author-card-expertise .af-tag::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--af-violet);
  flex-shrink: 0;
}

/* ============================================
   53. PAGINATION
   QA §3: pagination arba load more
   ============================================ */

.af-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-1);
  padding: var(--space-4) 0;
}

.af-pagination-item {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  border-radius: var(--radius);
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.af-pagination-item:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

.af-pagination-item:active {
  transform: scale(0.95);
}

.af-pagination-item:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

.af-pagination-item.active {
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
}

[data-theme="dark"] .af-pagination-item.active {
  background: var(--af-light-grey);
  color: var(--af-dark-blue);
}

.af-pagination-ellipsis {
  width: 36px;
  text-align: center;
  color: var(--text-tertiary);
}

.af-load-more {
  display: block;
  width: 100%;
  max-width: 300px;
  margin: var(--space-4) auto;
  padding: var(--space-half) var(--space-4);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  letter-spacing: var(--tracking-wide);
  color: var(--text);
  background: none;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.af-load-more:hover {
  border-color: var(--text);
  background: var(--bg-secondary);
}

/* ============================================
   54. VALIDATION STATES
   QA §8: success + warning messages
   ============================================ */

.af-input-success {
  border-color: var(--af-success);
}

.af-input-success:focus {
  box-shadow: 0 0 0 3px rgba(26, 122, 58, 0.15);
}

.af-field-success {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--af-success);
  margin-top: var(--space-1);
}

.af-field-warning {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--af-warning);
  margin-top: var(--space-1);
}

/* ============================================
   55. DROP CAP
   QA §2: sprendimas — taip, optional per klasę
   ============================================ */

.af-dropcap::first-letter {
  float: left;
  font-family: var(--font-display);
  font-size: 3.8em;
  font-weight: 700;
  line-height: 0.8;
  padding-right: 0.08em;
  margin-top: 0.05em;
  color: var(--text);
}

/* ============================================
   56. LITHUANIAN TYPOGRAPHY HELPERS
   QA §2: „…" kabutės, orphan control
   ============================================ */

.af-lt-quotes q::before { content: '\201E'; }
.af-lt-quotes q::after { content: '\201C'; }

.af-no-orphans {
  text-wrap: pretty;
  overflow-wrap: break-word;
  hyphens: auto;
  -webkit-hyphens: auto;
}

/* ============================================
   57. VISITED + ACTIVE LINK STATES
   QA §5: visited states aprašyti
   Accessibility: aiškus skirtumas tarp visited ir unvisited
   ============================================ */

.af-link:visited {
  text-decoration-color: var(--af-violet-light-1);
}

.af-link:active {
  text-decoration-color: var(--af-dark-blue);
  text-decoration-thickness: 2.5px;
  background-color: var(--af-violet-light-2);
}

[data-theme="dark"] .af-link:visited {
  text-decoration-color: rgba(203, 165, 255, 0.4);
}

.af-link-standalone:visited { color: var(--text-secondary); }
.af-link-standalone:active { opacity: 0.7; }

.af-nav-link:active { opacity: 0.7; }

.af-link-footer:visited { color: rgba(246, 247, 247, 0.55); }
.af-link-footer:active { opacity: 0.7; }

/* ============================================
   58. BUTTON ACTIVE STATES
   QA §5: active states — vizualus paspaudimo feedbackas
   ============================================ */

.af-btn-primary:active {
  transform: scale(0.97);
  background: var(--af-dark-blue-active);
}

[data-theme="dark"] .af-btn-primary:active {
  background: var(--bg-tertiary);
}

.af-btn-secondary:active {
  transform: scale(0.97);
  background: var(--bg-secondary);
}

.af-btn-accent:active {
  transform: scale(0.97);
  background: var(--af-violet-active);
}

.af-btn-ghost:active {
  background: var(--bg-tertiary);
}

.af-btn-destructive:active {
  transform: scale(0.97);
  background: var(--af-error-active);
}

.af-icon-btn:active {
  transform: scale(0.92);
}

.af-action-pill:active {
  transform: scale(0.96);
  background: var(--bg-tertiary);
}

.af-toggle-btn:active {
  transform: scale(0.97);
}

.af-bookmark-btn:active {
  transform: scale(0.9);
}

.af-load-more:active {
  transform: scale(0.98);
  background: var(--bg-tertiary);
}

/* --- Tap highlight: heading links & nav targets --- */
.af-card-title:active,
.af-card:active .af-card-title {
  background-color: var(--af-violet-light-2);
}

[data-theme="dark"] .af-card-title:active,
[data-theme="dark"] .af-card:active .af-card-title {
  background-color: rgba(160, 112, 240, 0.15);
}

/* ============================================
   59. ENHANCED HOVER STATES
   Accessibility: aiškesni hoveriai — ne tik spalva,
   bet ir papildomi vizualiniai signalai
   ============================================ */

.af-link-standalone:hover {
  color: var(--af-dark-blue);
}

[data-theme="dark"] .af-link-standalone:hover {
  color: var(--af-light-grey);
}

.af-nav-link:hover {
  text-decoration: underline;
  text-underline-offset: 6px;
  text-decoration-thickness: 2px;
}

.af-link-footer:hover {
  color: var(--af-light-grey);
  text-decoration: underline;
  text-underline-offset: 3px;
}


.af-thread-item:hover {
  background: var(--bg-secondary);
  margin-left: calc(-1 * var(--space-2));
  margin-right: calc(-1 * var(--space-2));
  padding-left: var(--space-2);
  padding-right: var(--space-2);
  border-radius: var(--radius);
}

.af-toc-link:hover {
  text-decoration: underline;
}

/* duplicate .af-pagination-item:hover removed — merged into primary block above */

/* ============================================
   60. FONT SIZE SELECTOR
   Vartotojas gali keisti teksto dydį.
   Naudojimas: pridėti ant <html> arba <body>
   data-font-size="small|medium|large|xlarge"
   ============================================ */

.af-font-size-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 10px;
  border: 1px solid transparent;
  border-radius: 50%;
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 15px;
  line-height: 1;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  user-select: none;
  white-space: nowrap;
}

.af-font-size-toggle:hover {
  background: var(--bg-secondary);
  color: var(--text);
}


/* ============================================
   61. FOOTNOTES / ENDNOTES
   QA §3: akademinis stilius analitiniam portalui
   ============================================ */

.af-footnote-ref {
  font-family: var(--font-ui);
  font-size: 0.75em;
  font-weight: 600;
  color: var(--af-violet);
  text-decoration: none;
  vertical-align: super;
  line-height: 0;
  padding: 0 2px;
  cursor: pointer;
}

.af-footnote-ref:hover {
  color: var(--af-dark-blue);
  text-decoration: underline;
}

[data-theme="dark"] .af-footnote-ref:hover {
  color: var(--af-light-grey);
}

.af-footnotes {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.af-footnotes-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

.af-footnote-item {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-2);
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal);
  color: var(--text-secondary);
}

.af-footnote-number {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--af-violet);
  min-width: 20px;
  flex-shrink: 0;
  padding-top: 2px;
}

.af-footnote-back {
  color: var(--af-violet);
  text-decoration: none;
  font-size: 0.85em;
  margin-left: var(--space-1);
}

.af-footnote-back:hover {
  text-decoration: underline;
}

/* ============================================
   62. SCALE FRAMES (Brandbook p.15–17)
   Graduated rectangles as brand markers
   ============================================ */

.af-scale-frame {
  position: absolute;
  display: flex;
  gap: 0;
  pointer-events: none;
}

.af-scale-frame-bar {
  background: currentColor;
}

.af-scale-frame--h {
  flex-direction: row;
  align-items: center;
  height: 14px;
}

.af-scale-frame--h .af-scale-frame-bar { height: 100%; }
.af-scale-frame--h .af-scale-frame-bar:nth-child(1) { width: 4px; }
.af-scale-frame--h .af-scale-frame-bar:nth-child(2) { width: 6px; }
.af-scale-frame--h .af-scale-frame-bar:nth-child(3) { width: 12px; }
.af-scale-frame--h .af-scale-frame-bar:nth-child(4) { width: 16px; }

.af-scale-frame--h .af-scale-frame-gap {
  flex: 1;
}

.af-scale-frame--v {
  flex-direction: column;
  align-items: center;
  width: 14px;
}

.af-scale-frame--v .af-scale-frame-bar { width: 100%; }
.af-scale-frame--v .af-scale-frame-bar:nth-child(1) { height: 4px; }
.af-scale-frame--v .af-scale-frame-bar:nth-child(2) { height: 6px; }
.af-scale-frame--v .af-scale-frame-bar:nth-child(3) { height: 12px; }
.af-scale-frame--v .af-scale-frame-bar:nth-child(4) { height: 16px; }

.af-scale-frame--v .af-scale-frame-gap {
  flex: 1;
}

/* ============================================
   63. EMPTY / ERROR / 404 STATES
   QA §8: branded state komponentai
   ============================================ */

/* --- 404 Page (full-page, branded) --- */

.af-404 {
  position: relative;
  width: 100%;
  min-height: 520px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
}

.af-404-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.6) brightness(0.45);
}

.af-404-overlay {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: var(--space-5) var(--space-4);
  background: linear-gradient(0deg, rgba(20, 0, 70, 0.85) 0%, transparent 100%);
  color: var(--af-light-grey);
}

.af-404-scale-frame {
  position: absolute;
  z-index: 2;
}

.af-404-scale-frame--tl {
  top: var(--space-3);
  left: var(--space-3);
}

.af-404-scale-frame--br {
  bottom: var(--space-3);
  right: var(--space-3);
}

.af-404-code {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--af-violet);
  margin-bottom: var(--space-2);
}

.af-404-title {
  font-family: var(--font-display);
  font-size: var(--text-4xl);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--space-half);
  max-width: 500px;
}

.af-404-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal, 1.6);
  color: rgba(246, 247, 247, 0.7);
  margin-bottom: var(--space-4);
  max-width: 440px;
}

.af-404-search {
  display: flex;
  gap: var(--space-2);
  max-width: 400px;
  margin-bottom: var(--space-3);
}

.af-404-search input {
  flex: 1;
  padding: 10px 16px;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: var(--af-light-grey);
  outline: none;
  transition: border-color var(--transition-fast);
}

.af-404-search input::placeholder {
  color: rgba(246, 247, 247, 0.4);
}

.af-404-search input:focus {
  border-color: var(--af-violet);
}

.af-404-search button {
  padding: 10px 20px;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  background: var(--af-violet);
  color: var(--af-dark-blue);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.af-404-search button:hover {
  background: var(--af-violet-light-1);
}

.af-404-topics {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
}

.af-404-topic {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  padding: 5px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: rgba(246, 247, 247, 0.7);
  text-decoration: none;
  transition: border-color var(--transition-fast), color var(--transition-fast), background-color var(--transition-fast);
}

.af-404-topic:hover {
  border-color: var(--af-violet);
  color: var(--af-light-grey);
  background: rgba(203, 165, 255, 0.1);
}

/* --- Empty state (inline, branded) --- */

.af-empty-state {
  position: relative;
  overflow: hidden;
  padding: 0;
  max-width: 480px;
}

.af-empty-state-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: saturate(0.5) brightness(0.9);
}

.af-empty-state-body {
  padding: var(--space-4);
  border: 1px solid var(--border-light);
  border-top: none;
  position: relative;
}

.af-empty-state-scale-frame {
  position: absolute;
  z-index: 2;
}

.af-empty-state-scale-frame--tr {
  top: var(--space-2);
  right: var(--space-2);
}

.af-empty-state-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.af-empty-state-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal, 1.6);
  color: var(--text-secondary);
  margin-bottom: var(--space-4);
}

/* --- Error state (inline, branded) --- */

.af-error-state {
  position: relative;
  overflow: hidden;
  max-width: 480px;
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
}

.af-error-state-image {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
  filter: saturate(0.3) brightness(0.3);
}

.af-error-state-body {
  padding: var(--space-4);
  position: relative;
}

.af-error-state-scale-frame {
  position: absolute;
  z-index: 2;
}

.af-error-state-scale-frame--bl {
  bottom: var(--space-2);
  left: var(--space-2);
  right: var(--space-2);
}

.af-error-state-label {
  font-family: var(--font-mono);
  font-size: var(--text-xs);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--af-error);
  margin-bottom: var(--space-2);
}

.af-error-state-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--af-light-grey);
  margin-bottom: var(--space-2);
}

.af-error-state-text {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: var(--leading-normal, 1.6);
  color: rgba(246, 247, 247, 0.6);
  margin-bottom: var(--space-4);
}

.af-error-state .af-btn {
  background: transparent;
  color: var(--af-light-grey);
  border: 1px solid rgba(246, 247, 247, 0.3);
}

.af-error-state .af-btn:hover {
  border-color: var(--af-violet);
  background: rgba(203, 165, 255, 0.1);
}

/* ============================================
   64. EDITOR'S PICKS
   QA §3: redaktoriaus atrinkti straipsniai
   ============================================ */

.af-editors-picks {
  padding: var(--space-4);
  border: 1px solid var(--border);
}

.af-editors-picks-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

.af-editors-picks-item {
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--border-light);
}

.af-editors-picks-item:last-child {
  border-bottom: none;
}

.af-editors-picks-item a {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  transition: color var(--transition-fast);
}

.af-editors-picks-item a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
}

.af-editors-picks-meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  margin-top: var(--space-1);
}

/* ============================================
   65. DEBATE / SPLIT OPINION LAYOUT
   QA §3: du autoriai, priešingos pozicijos
   ============================================ */

.af-debate {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin: 2em 0;
}

.af-debate-side {
  padding: var(--space-4);
}

.af-debate-side:first-child {
  border-right: 1px solid var(--border-light);
}

.af-debate-position {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  margin-bottom: var(--space-3);
}

.af-debate-side:first-child .af-debate-position {
  color: var(--af-dark-blue);
}

.af-debate-side:last-child .af-debate-position {
  color: var(--text-tertiary);
}

[data-theme="dark"] .af-debate-side:first-child .af-debate-position {
  color: var(--af-light-grey);
}

.af-debate-author {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  margin-bottom: var(--space-3);
}

.af-debate-author-name {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
}

.af-debate-author-role {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.af-debate-text {
  font-family: var(--font-body);
  font-size: var(--text-base);
  line-height: var(--leading-normal);
}

@media (max-width: 768px) {
  .af-debate {
    grid-template-columns: 1fr;
  }
  .af-debate-side:first-child {
    border-right: none;
    border-bottom: 1px solid var(--border-light);
  }
}

/* ============================================
   66. TAGS CLOUD / TAG GROUP
   QA §3: archyvo filtravimas pagal temas
   ============================================ */

.af-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.af-tag-cloud .af-tag {
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
}

.af-tag-cloud .af-tag:hover {
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
}

[data-theme="dark"] .af-tag-cloud .af-tag:hover {
  background: var(--af-light-grey);
  color: var(--af-dark-blue);
}

.af-tag-cloud .af-tag.active {
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
}

[data-theme="dark"] .af-tag-cloud .af-tag.active {
  background: var(--af-light-grey);
  color: var(--af-dark-blue);
}

/* ============================================
   67. SEARCH INTERFACE
   QA §3: paieškos sąsaja + filtrai
   ============================================ */

.af-search-bar {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-4);
}

.af-search-input {
  flex: 1;
  font-family: var(--font-body);
  font-size: var(--text-lg);
  padding: var(--space-half) var(--space-3);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  outline: none;
  transition: border-color var(--transition-fast);
}

.af-search-input:focus {
  border-color: var(--af-dark-blue);
}

[data-theme="dark"] .af-search-input:focus {
  border-color: var(--af-violet);
}

.af-search-input::placeholder {
  color: var(--text-tertiary);
}

.af-search-filters {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  margin-bottom: var(--space-4);
}

.af-search-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: var(--space-2) var(--space-half);
  border: 1px solid var(--border);
  border-radius: 20px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.af-search-filter:hover {
  border-color: var(--text-tertiary);
  background: var(--bg-secondary);
}

.af-search-filter.active {
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
  border-color: var(--af-dark-blue);
}

[data-theme="dark"] .af-search-filter.active {
  background: var(--af-light-grey);
  color: var(--af-dark-blue);
  border-color: var(--af-light-grey);
}

.af-search-results-count {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  margin-bottom: var(--space-3);
}

/* ============================================
   68. SEARCH MODAL (overlay)
   Overlay paieška su popular topics, rezultatais, empty state
   ============================================ */

.af-search-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 0, 70, 0.5);
  backdrop-filter: blur(8px);
  z-index: 999;
  display: flex;
  justify-content: center;
  padding-top: 10vh;
}

.af-search-modal {
  width: 100%;
  max-width: 680px;
  max-height: 70vh;
  background: var(--bg);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.af-search-modal-header {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-4) var(--space-3);
}

.af-search-modal-header svg {
  width: 22px;
  height: 22px;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.af-search-modal-input {
  flex: 1;
  border: none;
  outline: none;
  background: none;
  font-family: var(--font-body);
  font-size: var(--text-xl);
  color: var(--text);
}

.af-search-modal-input:focus-visible {
  outline: 2px solid var(--af-violet);
  outline-offset: 2px;
  border-radius: var(--radius);
}

.af-search-modal-input::placeholder {
  color: var(--text-tertiary);
}

.af-search-modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: none;
  color: var(--text-tertiary);
  cursor: pointer;
  border-radius: 50%;
  flex-shrink: 0;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.af-search-modal-close:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

.af-search-modal-close svg {
  width: 18px;
  height: 18px;
}

.af-search-modal-body {
  padding: 0 var(--space-4) var(--space-4);
  border-top: 1px solid var(--border-light);
  overflow-y: auto;
  flex: 1;
}

.af-search-modal-body:focus-visible {
  outline: 2px solid var(--af-violet);
  outline-offset: -2px;
}

.af-search-modal-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  padding: var(--space-3) 0 var(--space-half);
}

.af-search-modal-topics {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  padding-top: var(--space-half);
}

.af-search-modal-topic {
  padding: 8px 18px;
  border-radius: 20px;
  border: none;
  background: var(--bg-secondary);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.af-search-modal-topic:hover {
  background: var(--bg-tertiary);
}

.af-search-modal-result {
  display: block;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
  text-decoration: none;
  color: inherit;
  transition: background var(--transition-fast);
}

.af-search-modal-result:last-child {
  border-bottom: none;
}

.af-search-modal-result-category {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 4px;
}

.af-search-modal-result-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  line-height: var(--leading-snug);
}

.af-search-modal-result-title .af-search-modal-result-type {
  font-weight: 400;
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.af-search-modal-result:hover .af-search-modal-result-title,
.af-search-modal-result.is-active .af-search-modal-result-title {
  color: var(--af-dark-blue);
}

.af-search-modal-result:visited .af-search-modal-result-title {
  color: var(--text-secondary);
}

.af-search-modal-result.is-active {
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.af-search-modal-empty {
  text-align: center;
  padding: var(--space-5) var(--space-3);
}

.af-search-modal-empty-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.af-search-modal-empty-text {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
  max-width: 360px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .af-search-modal-overlay {
    padding-top: 0;
  }

  .af-search-modal {
    max-width: 100%;
    max-height: 100vh;
    border-radius: 0;
    height: 100%;
  }

  .af-search-modal-header {
    padding: var(--space-3);
  }

  .af-search-modal-input {
    font-size: var(--text-lg);
  }

  .af-search-modal-body {
    padding: 0 var(--space-3) var(--space-3);
  }

  .af-search-modal-result-title {
    font-size: var(--text-base);
  }
}

/* ============================================
   69. GOOGLE SSO BUTTON
   QA §9: login/register flow
   ============================================ */

.af-sso-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  width: 100%;
  max-width: 320px;
  padding: var(--space-half) var(--space-4);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast), transform var(--transition-fast);
  text-decoration: none;
}

.af-sso-btn:hover {
  border-color: var(--text-tertiary);
  box-shadow: 0 2px 8px var(--shadow);
}

.af-sso-btn:active {
  transform: scale(0.98);
}

.af-sso-btn svg,
.af-sso-btn img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.af-auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  margin: var(--space-3) 0;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.af-auth-divider::before,
.af-auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border-light);
}

/* ============================================
   70. SAVED ARTICLES / READING LIST
   QA §9: saved articles library, remind
   ============================================ */

.af-saved-item {
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--border-light);
  align-items: flex-start;
}

.af-saved-item-content {
  flex: 1;
}

.af-saved-item-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-1);
}

.af-saved-item-meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.af-saved-item-actions {
  display: flex;
  gap: var(--space-1);
  flex-shrink: 0;
}

.af-remind-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: var(--space-1) var(--space-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--text-secondary);
  background: none;
  cursor: pointer;
  transition: border-color var(--transition-fast), background-color var(--transition-fast), color var(--transition-fast);
}

.af-remind-btn:hover {
  border-color: var(--text-tertiary);
  background: var(--bg-secondary);
}

.af-remind-btn.active {
  background: var(--af-violet-light-2);
  border-color: var(--af-violet);
  color: var(--af-dark-blue);
}

/* ============================================
   71. AUDIO PLAYER (stub)
   QA §3: audio versijų palaikymas
   ============================================ */

.af-audio-player {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  background: var(--bg-secondary);
  border-radius: var(--radius);
}

.af-audio-play-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: none;
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
  font-size: 18px;
  cursor: pointer;
  flex-shrink: 0;
  transition: background var(--transition-fast);
}

.af-audio-play-btn:hover {
  background: var(--af-dark-blue-hover);
}

[data-theme="dark"] .af-audio-play-btn {
  background: var(--af-light-grey);
  color: var(--af-dark-blue);
}

.af-audio-info {
  flex: 1;
  min-width: 0;
}

.af-audio-title {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: 2px;
}

.af-audio-meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.af-audio-progress {
  width: 100%;
  height: 4px;
  background: var(--border-light);
  border-radius: 2px;
  margin-top: var(--space-2);
  overflow: hidden;
}

.af-audio-progress-bar {
  height: 100%;
  background: var(--af-dark-blue);
  border-radius: 2px;
  width: 0%;
}

[data-theme="dark"] .af-audio-progress-bar {
  background: var(--af-violet);
}

/* ============================================
   72. BRANDBOOK LAYOUT KOMPOZICIJOS
   Brandbook p.17-18: trys layout formatai —
   Vertical, Square, Horizontal.
   Graphic element (scale) + photo + text.
   ============================================ */

/* --- Bendri layout stiliai --- */
/* --- Brandbook p.18 layout system ---
   4 atskiri stačiakampiai (scale bars) su vienodais
   tarpais. Pirmas kairėje, paskutinis dešinėje.
   Nuotrauka neina iki kraštų — matosi fonas. */

.af-layout {
  position: relative;
  overflow: hidden;
}

.af-layout-bar-row {
  display: flex;
  justify-content: space-between;
  flex-shrink: 0;
}

.af-bar {
  background: var(--af-dark-blue);
}

/* Tikslios proporcijos iš logo viewBox (281.65 x 23.23):
   plotis: 5.75, 8.74, 16.74, 20.89
   aukštis: 19.94
   Visos reikšmės — % nuo konteinerio pločio */
.af-bar-1 { width: 1.02%; aspect-ratio: 5.75 / 19.94; }
.af-bar-2 { width: 1.55%; aspect-ratio: 8.74 / 19.94; }
.af-bar-3 { width: 2.97%; aspect-ratio: 16.74 / 19.94; }
.af-bar-4 { width: 3.71%; aspect-ratio: 20.89 / 19.94; }

[data-theme="dark"] .af-bar {
  background: var(--af-light-grey);
}

/* --- VERTICAL layout (p.18 kairė) ---
   3 eilutės stačiakampių: virš nuotraukos,
   tarp nuotraukos ir teksto, po tekstu.
   Nuotrauka su margin — pilkas fonas matosi šonuose. */

.af-layout-vertical {
  max-width: 300px;
  aspect-ratio: 3/5;
  background: var(--bg-tertiary);
  display: flex;
  flex-direction: column;
}

.af-layout-vertical .af-layout-photo {
  flex: 0 0 45%;
  object-fit: cover;
  display: block;
  margin-left: 1.02%;
  margin-right: 3.71%;
}

.af-layout-vertical .af-layout-text-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: var(--space-3) var(--space-3) var(--space-1);
  margin-left: 1.02%;
  margin-right: 3.71%;
}

.af-layout-vertical .af-layout-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
}

.af-layout-vertical .af-layout-body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
  margin-top: auto;
}

/* --- SQUARE layout (p.18 vidurinė) ---
   Akcentinis fonas, 2 bar eilutės viršuje/apačioje,
   centruota citata su margin pagal bar kraštus. */

.af-layout-square {
  max-width: 300px;
  background: var(--bg-tertiary);
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
}

[data-theme="dark"] .af-layout-square {
  background: var(--bg-secondary);
}

.af-layout-square .af-layout-quote-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-2) var(--space-3);
  margin-left: 1.02%;
  margin-right: 3.71%;
  min-height: 0;
}

.af-layout-square .af-layout-quote {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
  color: var(--text);
  text-align: center;
}

.af-layout-square .af-layout-body-area {
  padding: 0 var(--space-3) var(--space-1);
  margin-left: 1.02%;
  margin-right: 3.71%;
}

.af-layout-square .af-layout-body {
  font-family: var(--font-body);
  font-size: var(--text-sm);
  line-height: 1.6;
  color: var(--text-secondary);
}

/* --- HORIZONTAL layout (p.18 dešinė) ---
   Tamsiai mėlynas fonas, šviesūs bar elementai.
   Kairėje tekstas, dešinėje nuotrauka su margin. */

.af-layout-horizontal {
  max-width: 600px;
  aspect-ratio: 16 / 9;
  background: var(--bg-tertiary);
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.af-layout-horizontal .af-bar-1 { width: 0.68%; aspect-ratio: 5.75 / 19.94; }
.af-layout-horizontal .af-bar-3 { width: 1.98%; aspect-ratio: 16.74 / 19.94; }
.af-layout-horizontal .af-bar-4 { width: 2.47%; aspect-ratio: 20.89 / 19.94; }

.af-layout-horizontal .af-layout-bar-row {
  justify-content: flex-start;
}
.af-layout-horizontal .af-layout-bar-row .af-bar-3 {
  margin-left: calc(49.105% - 0.68% - 1.98%);
}
.af-layout-horizontal .af-layout-bar-row .af-bar-4 {
  margin-left: auto;
}

.af-layout-horizontal .af-layout-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 0;
  margin-left: 0.68%;
  margin-right: 2.47%;
}

.af-layout-horizontal .af-layout-text-col {
  display: flex;
  flex-direction: column;
  padding: var(--space-3) var(--space-3) var(--space-2);
}

.af-layout-horizontal .af-layout-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.2;
  color: var(--af-dark-blue);
  margin-bottom: var(--space-2);
}

.af-layout-horizontal .af-layout-body {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  line-height: 1.6;
  color: var(--af-dark-blue);
}

.af-layout-horizontal .af-layout-meta {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  color: var(--af-dark-blue);
  opacity: 0.6;
  margin-top: auto;
}

.af-layout-horizontal .af-layout-photo-col {
  min-height: 0;
}

.af-layout-horizontal .af-layout-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

@media (max-width: 480px) {
  .af-layout-horizontal .af-layout-content {
    grid-template-columns: 1fr;
  }
  .af-layout-horizontal .af-layout-photo-col {
    aspect-ratio: 4/3;
  }
}

/* ============================================
   73. SVG IKONŲ SISTEMA
   Minimalistinės stroke ikonos (1.5px), serif
   portalo tonui. Naudojamos vietoj emoji.
   ============================================ */

.af-icon-svg {
  width: 1em;
  height: 1em;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
  vertical-align: -0.125em;
  flex-shrink: 0;
}

.af-icon-svg-sm { width: 16px; height: 16px; }
.af-icon-svg-md { width: 20px; height: 20px; }
.af-icon-svg-lg { width: 24px; height: 24px; }

/* ============================================
   74. SHARE MYGTUKAI
   Minimalus share bar — copy link, email, X
   ============================================ */

.af-share {
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.af-share-label {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
  margin-right: var(--space-1);
}

.af-share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: none;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast), border-color var(--transition-fast), background-color var(--transition-fast);
}

.af-share-btn:hover {
  color: var(--text);
  border-color: var(--text-tertiary);
  background: var(--bg-secondary);
}

.af-share-btn:active {
  transform: scale(0.92);
}

.af-share-btn:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 2px;
}

[data-theme="dark"] .af-share-label,
.af-share-dark .af-share-label {
  color: rgba(246, 247, 247, 0.6);
}

[data-theme="dark"] .af-share-btn,
.af-share-dark .af-share-btn {
  border-color: rgba(246, 247, 247, 0.2);
  color: rgba(246, 247, 247, 0.7);
}

[data-theme="dark"] .af-share-btn:hover,
.af-share-dark .af-share-btn:hover {
  color: var(--af-light-grey);
  border-color: rgba(246, 247, 247, 0.4);
  background: rgba(246, 247, 247, 0.1);
}

@media (max-width: 768px) {
  .af-share-btn {
    width: 44px;
    height: 44px;
  }
  .af-bookmark-btn {
    width: 44px;
    height: 44px;
  }
}

/* ============================================
   75. HEADER SCROLL TRANSITION
   Vienas headeris — logo tekstas smooth išnyksta,
   lieka tik grafikos elementai (4 stačiakampiai)
   ============================================ */

.af-header-logo-wrap {
  display: grid;
  flex-shrink: 0;
  min-height: 44px;
  align-content: center;
}

.af-header-logo-wrap > * {
  grid-area: 1 / 1;
  align-self: center;
}

.af-header-logo {
  height: 32px;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}

.af-header-sticky-mark {
  height: 8.5px;
  width: auto;
  opacity: 0;
  color: var(--af-dark-blue);
  transition: opacity 0.3s ease;
}

.af-header-logo-negative { display: none; }
[data-theme="dark"] .af-header-logo-positive { display: none; }
[data-theme="dark"] .af-header-logo-negative { display: block; }

[data-theme="dark"] .af-header-sticky-mark {
  color: var(--af-light-grey);
}

.af-header.is-scrolled {
  box-shadow: 0 1px 4px var(--shadow);
}

.af-header.is-scrolled .af-header-logo {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.af-header.is-scrolled .af-header-sticky-mark {
  opacity: 1;
  transition: opacity 0.2s ease;
}

.af-header.is-scrolled .af-header-nav {
  gap: var(--space-3);
}

.af-header.is-scrolled .af-header-nav a {
  font-size: var(--text-sm);
  padding: var(--space-1) 0;
}

/* ============================================
   76. COOKIE CONSENT BOX
   GDPR, kairėje apatinėje pusėje — box tipo
   ============================================ */

.af-cookie-banner {
  display: block;
  position: fixed;
  bottom: var(--space-4);
  left: var(--space-4);
  z-index: 999;
  width: 400px;
  max-width: calc(100vw - var(--space-4) * 2);
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
  border-radius: var(--radius-lg, 12px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.28), 0 2px 8px rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.af-cookie-main {
  padding: var(--space-4);
}

.af-cookie-text {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(246, 247, 247, 0.8);
  line-height: 1.5;
  margin-bottom: var(--space-3);
}

.af-cookie-text a {
  color: var(--af-violet);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.af-cookie-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.af-cookie-accept,
.af-cookie-decline {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  padding: 10px 20px;
  background: var(--af-light-grey);
  color: var(--af-dark-blue);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  transition: opacity var(--transition-fast);
  width: 100%;
}

.af-cookie-accept:hover,
.af-cookie-decline:hover { opacity: 0.9; }

.af-cookie-settings-btn {
  display: block;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  padding: 10px 20px;
  background: none;
  color: rgba(246, 247, 247, 0.85);
  border: 1px solid rgba(246, 247, 247, 0.4);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color var(--transition-fast), color var(--transition-fast);
  width: 100%;
  text-align: center;
  text-decoration: none;
  box-sizing: border-box;
}

.af-cookie-settings-btn:hover {
  border-color: rgba(246, 247, 247, 0.6);
  color: var(--af-light-grey);
}

@media (max-width: 480px) {
  .af-cookie-banner {
    bottom: 0;
    left: 0;
    width: 100%;
    max-width: 100%;
    border-radius: 12px 12px 0 0;
  }
}

/* ── Cookie snackbar (post-dismiss notification) ── */

.af-cookie-snackbar {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + var(--space-4)));
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  z-index: 1001;
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  max-width: 480px;
}

.af-cookie-snackbar.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.af-cookie-snackbar a {
  color: var(--bg);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
}

.af-cookie-snackbar a:hover {
  opacity: 0.8;
}

.af-cookie-snackbar-close {
  background: none;
  border: none;
  color: var(--bg);
  font-size: var(--text-xl);
  cursor: pointer;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  opacity: 0.7;
  flex-shrink: 0;
}

.af-cookie-snackbar-close:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .af-cookie-snackbar {
    left: var(--space-3);
    right: var(--space-3);
    transform: translateX(0) translateY(calc(100% + var(--space-4)));
    max-width: none;
  }
  .af-cookie-snackbar.is-visible {
    transform: translateX(0) translateY(0);
  }
}

/* ── Generic snackbar (reusable toast notification) ── */

.af-snackbar {
  position: fixed;
  bottom: var(--space-4);
  left: 50%;
  transform: translateX(-50%) translateY(calc(100% + var(--space-4)));
  z-index: var(--z-toast, 300);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  padding: var(--space-3) var(--space-4);
  background: var(--text);
  color: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: transform 0.3s ease, opacity 0.3s ease;
  pointer-events: none;
  white-space: nowrap;
}

.af-snackbar.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.af-snackbar-close {
  background: none;
  border: none;
  color: var(--bg);
  opacity: 0.7;
  cursor: pointer;
  padding: var(--space-2);
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  font-size: var(--text-xl);
  flex-shrink: 0;
  transition: opacity var(--transition-fast);
}

.af-snackbar-close:hover {
  opacity: 1;
}

@media (max-width: 480px) {
  .af-snackbar {
    left: var(--space-3);
    right: var(--space-3);
    transform: translateX(0) translateY(calc(100% + var(--space-4)));
    max-width: none;
    white-space: normal;
  }
  .af-snackbar.is-visible {
    transform: translateX(0) translateY(0);
  }
}

/* ============================================
   77. RELATED ARTICLES
   Straipsnio pabaigoje — 2-3 kortelės
   ============================================ */

.af-related {
  margin-top: var(--space-5);
  padding-top: var(--space-4);
  border-top: 1px solid var(--border-light);
}

.af-related-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--space-4);
}

.af-related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.af-related-item {
  text-decoration: none;
  color: inherit;
  transition: opacity var(--transition-fast);
}

.af-related-item:hover { opacity: 1; }

.af-related-item img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  margin-bottom: var(--space-2);
}

.af-related-item-category {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--af-dark-blue);
  margin-bottom: var(--space-1);
}

.af-related-item-category::before {
  content: '';
  width: 8px;
  height: 8px;
  background: var(--af-violet);
  flex-shrink: 0;
}

.af-related-item-title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 600;
  line-height: var(--leading-snug);
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
  transition: text-decoration-color 0.2s;
}

.af-related-item:hover .af-related-item-title {
  text-decoration-color: currentColor;
}

@media (max-width: 768px) {
  .af-related-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================================
   78. IMAGE LIGHTBOX
   Straipsnio nuotraukos padidinimas
   ============================================ */

.af-lightbox-trigger {
  cursor: zoom-in;
  transition: opacity var(--transition-fast);
}

.af-lightbox-trigger:hover { opacity: 0.92; }

.af-lightbox-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(20, 0, 70, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: zoom-out;
  padding: var(--space-4);
}

.af-lightbox-overlay img {
  max-width: 100%;
  max-height: 90vh;
  object-fit: contain;
}

.af-lightbox-close {
  position: absolute;
  top: var(--space-3);
  right: var(--space-3);
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid rgba(246, 247, 247, 0.3);
  border-radius: var(--radius);
  color: var(--af-light-grey);
  cursor: pointer;
  font-size: 20px;
  transition: border-color var(--transition-fast);
}

.af-lightbox-close:hover {
  border-color: var(--af-light-grey);
}

.af-lightbox-caption {
  position: absolute;
  bottom: var(--space-4);
  left: var(--space-4);
  right: var(--space-4);
  text-align: center;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: rgba(246, 247, 247, 0.7);
}

/* ============================================
   79. SITE HEADER
   Pagrindinis svetainės headeris — desktop + mobile
   ============================================ */

.af-header {
  position: sticky;
  top: 0;
  z-index: var(--z-sticky);
  border-bottom: 1px solid var(--border-light);
  background: var(--bg);
  transition: box-shadow 0.4s ease;
}

.af-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--page-width);
  margin: 0 auto;
  padding: var(--space-4) var(--space-3);
}

@media (max-width: 768px) {
  .af-header {
    overflow-x: hidden;
  }
  .af-header-inner {
    padding-top: var(--space-half);
    padding-bottom: var(--space-half);
  }
}

@media (max-width: 480px) {
  .af-header-inner,
  .af-header.is-scrolled .af-header-inner {
    padding-left: var(--space-2);
    padding-right: var(--space-2);
  }
}

.af-header-nav {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  transition: gap 0.4s ease;
}

.af-header-nav ul {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  list-style: none;
  margin: 0;
  padding: 0;
}

.af-header-nav a {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 4px;
  text-decoration-thickness: 1.5px;
  transition: color var(--transition-fast), text-decoration-color var(--transition-fast);
}

.af-header-nav a:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}

.af-header-nav a.active {
  color: var(--text);
  text-decoration-color: currentColor;
}

.af-header-actions {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.af-header-actions .af-icon-btn {
  color: var(--text-secondary);
}

.af-header-dark .af-icon-btn,
.af-section-dark .af-icon-btn {
  color: rgba(246,247,247,0.7);
}

.af-header-dark .af-icon-btn:hover,
.af-section-dark .af-icon-btn:hover {
  background: rgba(246,247,247,0.1);
  color: var(--af-light-grey);
}

.af-header-dark .af-lang-switcher-btn,
.af-section-dark .af-lang-switcher-btn {
  color: rgba(246,247,247,0.7);
}

.af-header-dark .af-lang-switcher-btn:hover,
.af-section-dark .af-lang-switcher-btn:hover {
  background: rgba(246,247,247,0.1);
  color: var(--af-light-grey);
}

.af-header-dark .af-font-size-toggle,
.af-section-dark .af-font-size-toggle {
  color: rgba(246,247,247,0.7);
}

.af-header-dark .af-font-size-toggle:hover,
.af-section-dark .af-font-size-toggle:hover {
  color: var(--af-light-grey);
  background: rgba(246,247,247,0.1);
}

/* --- Language Switcher --- */

.af-lang-switcher {
  position: relative;
}

.af-lang-switcher-btn {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 6px 10px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.af-lang-switcher-btn:hover {
  background: var(--bg-secondary);
  color: var(--text);
}

.af-lang-switcher-btn svg {
  width: 12px;
  height: 12px;
  transition: transform 0.15s;
}

.af-lang-switcher.is-open .af-lang-switcher-btn svg {
  transform: rotate(180deg);
}

.af-lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 120px;
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 100;
}

.af-lang-switcher.is-open .af-lang-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.af-lang-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  cursor: pointer;
  transition: background 0.1s;
}

.af-lang-option:hover {
  background: var(--bg-secondary);
}

.af-lang-option + .af-lang-option {
  border-top: 1px solid var(--border-light);
}

.af-lang-option.is-active {
  background: var(--bg-secondary);
}

.af-lang-option-check {
  width: 14px;
  height: 14px;
  color: var(--text-tertiary);
}

.af-header-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  position: relative;
}

.af-header-hamburger-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--af-error);
  border-radius: 2px;
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 700;
  color: var(--af-light-grey);
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ============================================
   80. MOBILE MENU (hamburger slide-in)
   ============================================ */

.af-mobile-menu {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 200;
  background: var(--bg);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
}

.af-mobile-menu.active {
  transform: translateX(0);
}

.af-mobile-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(20, 0, 70, 0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease-out;
}

.af-mobile-menu-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

.af-mobile-menu-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.af-mobile-menu-header .af-header-logo {
  height: 28px;
}

.af-mobile-menu-close {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
}

.af-mobile-menu-search {
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border-light);
}

.af-mobile-menu-search input {
  width: 100%;
  padding: 10px 14px 10px 40px;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text);
  background: var(--bg-secondary);
  border: none;
  border-radius: var(--radius-lg);
  outline: none;
}

.af-mobile-menu-search input:focus-visible {
  outline: 2px solid var(--af-violet);
  outline-offset: 2px;
}

.af-mobile-menu-search input::placeholder {
  color: var(--text-tertiary);
}

.af-mobile-menu-search-wrap {
  position: relative;
}

.af-mobile-menu-search-wrap .af-icon-svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-tertiary);
}

.af-mobile-menu-nav {
  padding: var(--space-3) var(--space-4);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  flex: 1;
}

.af-mobile-menu-nav a {
  font-family: var(--font-ui);
  font-size: var(--text-base);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text);
  text-decoration: none;
  padding: var(--space-2) 0;
  transition: color var(--transition-fast);
}

.af-mobile-menu-nav a:hover { color: var(--text-secondary); }

.af-mobile-menu-divider {
  height: 1px;
  background: var(--border-light);
  margin: var(--space-2) 0;
}

.af-mobile-menu-controls {
  padding: var(--space-2) var(--space-4);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.af-mobile-menu-control-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.af-mobile-menu-control-label {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-wide);
  color: var(--text-secondary);
}

.af-mobile-menu-theme-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-light);
  border-radius: 20px;
  cursor: pointer;
}

.af-mobile-menu-lang {
  display: flex;
  gap: 0;
}

.af-mobile-menu-lang button {
  padding: 8px 16px;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: background-color var(--transition-fast), color var(--transition-fast);
  background: none;
  color: var(--text-secondary);
}

.af-mobile-menu-lang button:first-child {
  border-radius: var(--radius) 0 0 var(--radius);
  border-right: none;
}

.af-mobile-menu-lang button:last-child {
  border-radius: 0 var(--radius) var(--radius) 0;
}

.af-mobile-menu-lang button.active {
  background: var(--af-dark-blue);
  color: var(--af-light-grey);
  border-color: var(--af-dark-blue);
}

.af-mobile-menu-lang-select {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 300;
  color: var(--text-secondary);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 6px 10px;
}

.af-header-mobile-actions {
  display: none;
  align-items: center;
  gap: 2px;
}

@media (max-width: 1024px) {
  .af-header-mobile-actions { display: flex; }
}

.af-mobile-lang-select {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: none;
  border: none;
  padding: 6px 4px;
  cursor: pointer;
}

.af-mobile-lang-switch {
  display: flex;
  gap: var(--space-1);
}

.af-mobile-lang-switch button {
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 300;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius);
  padding: 6px 10px;
  min-height: 44px;
  min-width: 44px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.af-mobile-lang-switch button.is-active {
  background: var(--bg-secondary);
  border-color: var(--border-light);
  color: var(--text);
}

.af-mobile-menu-footer {
  padding: var(--space-3) var(--space-4);
  border-top: 1px solid var(--border-light);
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}

.af-mobile-menu-footer a {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) 0;
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-secondary);
  text-decoration: none;
}

.af-mobile-menu-footer a:hover { color: var(--text); }

/* ============================================
   81. TOPIC TABS (horizontal swipeable)
   Horizontalus temų filtras — apačioje mobile,
   galima naudoti ir desktop kontekste
   ============================================ */

.af-topic-tabs {
  display: flex;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 0;
  background: var(--bg-secondary);
  border-top: 1px solid var(--border-light);
}

.af-topic-tabs::-webkit-scrollbar { display: none; }

.af-topic-tabs:focus-visible {
  outline: 2px solid var(--af-violet);
  outline-offset: -2px;
}

.af-topic-tab {
  flex-shrink: 0;
  padding: 14px var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-secondary);
  text-decoration: none;
  white-space: nowrap;
  border: none;
  background: none;
  cursor: pointer;
  transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast);
  border-bottom: 2px solid transparent;
}

.af-topic-tab:hover { color: var(--text); }

.af-topic-tab.active {
  color: var(--text);
  background: var(--bg);
  border-bottom-color: var(--af-dark-blue);
}

.af-bottom-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: var(--bg);
  border-top: 1px solid var(--border-light);
}

.af-bottom-bar .af-topic-tabs {
  border-top: 1px solid var(--border);
}

.af-bottom-bar-tabs {
  display: flex;
  justify-content: space-around;
  padding: 8px 0 4px;
}

.af-bottom-bar-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  padding: 4px 16px;
  background: none;
  border: none;
  color: var(--text-tertiary);
  font-family: var(--font-ui);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: color var(--transition-fast);
  position: relative;
  -webkit-tap-highlight-color: transparent;
}

.af-bottom-bar-tab svg {
  width: 24px;
  height: 24px;
}

.af-bottom-bar-tab.is-active {
  color: var(--text);
}

.af-bottom-bar-tab .af-badge {
  position: absolute;
  top: 0;
  right: 4px;
}

/* ============================================
   82a. HEADER TOOLTIP BELOW POSITIONING
   Header'yje tooltip'ai rodomi PO ikona
   ============================================ */

.af-header .af-icon-btn[aria-label]::after,
.af-header .af-font-size-toggle[aria-label]::after,
.af-header .af-lang-switcher-btn[aria-label]::after {
  bottom: auto;
  top: calc(100% + 8px);
}

/* ============================================
   82b. DARK / LIGHT MODE ICON TOGGLE
   Moon/sun perjungimas pagal temą
   ============================================ */

.af-icon-dark-mode { display: block; }
.af-icon-light-mode { display: none; }
[data-theme="dark"] .af-icon-dark-mode { display: none; }
[data-theme="dark"] .af-icon-light-mode { display: block; }

/* ============================================
   82c. HEADER LOGO LINK WRAPPER
   Logo kaip nuoroda be underline
   ============================================ */

.af-header-logo-wrap {
  text-decoration: none;
}

/* ============================================
   82d. BACK TO TOP BUTTON
   Fiksuotas mygtukas grįžti į viršų
   ============================================ */

.af-back-to-top {
  position: fixed;
  bottom: var(--space-4);
  right: var(--space-4);
  z-index: 90;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateY(8px);
}

.af-back-to-top.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

/* ============================================
   82e. USER DROPDOWN MENU
   Vartotojo meniu su followed topics, saved articles
   ============================================ */

.af-user-menu {
  position: relative;
}

.af-user-menu.is-open .af-user-dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.af-user-menu.is-open .af-user-badge {
  opacity: 0;
}

.af-user-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 300px;
  max-width: calc(100vw - var(--space-3) * 2);
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: var(--space-2) 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s, transform 0.15s, visibility 0.15s;
  z-index: 100;
}

.af-user-badge {
  position: absolute;
  top: 4px;
  right: 2px;
  transition: opacity 0.15s;
}

.af-user-section-label {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
}

.af-user-group-label {
  padding: var(--space-1) var(--space-3) 0;
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-tertiary);
}

.af-badge-count {
  font-weight: 400;
  color: var(--text-tertiary);
}

.af-user-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background 0.1s;
}

.af-user-item:hover {
  background: var(--bg-secondary);
}

.af-user-item-title {
  font-weight: 600;
  margin-bottom: 2px;
}

.af-user-item-desc {
  font-size: var(--text-xs);
  color: var(--text-tertiary);
}

.af-user-divider {
  border-top: 1px solid var(--border-light);
  margin: var(--space-2) 0;
}

.af-user-action {
  justify-content: flex-start;
  gap: var(--space-2);
}

.af-user-logout-form {
  margin: 0;
}

button.af-user-item {
  width: 100%;
  background: none;
  border: 0;
  text-align: left;
}

/* Guest / authenticated state toggle */
[data-auth="guest"] { display: none; }
[data-auth="user"] { display: contents; }
body.is-guest [data-auth="guest"] { display: contents; }
body.is-guest [data-auth="user"] { display: none; }
body.is-guest .af-user-badge { display: none; }

.af-user-signin {
  display: block;
  width: 100%;
  padding: var(--space-2) var(--space-3);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  font-weight: 600;
  text-align: center;
  color: var(--bg);
  background: var(--text);
  border: none;
  border-radius: var(--radius);
  cursor: pointer;
  text-decoration: none;
  transition: opacity var(--transition-fast);
}

.af-user-signin:hover {
  opacity: 0.85;
}

.af-user-guest-hint {
  font-family: var(--font-body);
  font-size: var(--text-xs);
  color: var(--text-tertiary);
  text-align: center;
  line-height: 1.4;
  padding: 0 var(--space-3) var(--space-2);
}

/* ============================================
   82f. WHITE FOOTER (theme-aware)
   Šviesus footeris su logo, nav, legal
   ============================================ */

.af-footer-white {
  background: var(--bg);
  color: var(--text);
  padding: var(--space-6) 0 var(--space-4);
}

.af-footer-white .af-footer-brand {
  margin-bottom: var(--space-5);
  max-width: none;
}

.af-footer-white .af-footer-logo {
  width: 400px;
  max-width: 100%;
  display: block;
}

.af-footer-white .af-footer-logo-positive { display: block; }
.af-footer-white .af-footer-logo-negative { display: none; }
[data-theme="dark"] .af-footer-white .af-footer-logo-positive { display: none; }
[data-theme="dark"] .af-footer-white .af-footer-logo-negative { display: block; }

@media (max-width: 768px) {
  .af-footer-white {
    padding-top: var(--space-5);
  }
  .af-footer-white .af-footer-brand {
    margin-bottom: var(--space-4);
  }
}

.af-footer-nav {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: var(--space-5);
}

.af-footer-nav-title {
  font-family: var(--font-ui);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: var(--tracking-widest);
  color: var(--text-tertiary);
  margin-bottom: var(--space-2);
}

.af-footer-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.af-footer-nav a {
  display: block;
  padding: var(--space-1) 0;
  font-family: var(--font-ui);
  font-size: var(--text-base);
  color: var(--text-secondary);
  text-decoration: none;
}

.af-footer-nav a:hover {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1.5px;
}

.af-footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-top: 1px solid var(--border-light);
  padding-top: var(--space-3);
  margin-top: var(--space-5);
  font-family: var(--font-ui);
  font-size: var(--text-sm);
  color: var(--text-tertiary);
}

.af-footer-legal {
  display: flex;
  gap: var(--space-3);
}

.af-footer-legal a {
  color: var(--text-tertiary);
  text-decoration: none;
}

.af-footer-legal a:hover {
  color: var(--text-secondary);
  text-decoration: underline;
  text-underline-offset: 3px;
}

@media (max-width: 768px) {
  .af-footer-nav {
    grid-template-columns: 1fr;
  }
  .af-footer-bottom {
    flex-direction: column;
    gap: var(--space-2);
    align-items: flex-start;
  }
  .af-footer-legal {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-1) var(--space-3);
    width: 100%;
  }
}

/* ============================================
   82g. NEWSLETTER SUBMIT LOADER
   Animuotas loading indikatorius
   ============================================ */

.af-submit-loader {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 14px;
}

.af-submit-loader span {
  display: block;
  background: currentColor;
  animation: af-loader-pulse 0.8s ease-in-out infinite;
}

.af-submit-loader span:nth-child(1) { width: 4px; height: 8px; animation-delay: 0s; }
.af-submit-loader span:nth-child(2) { width: 6px; height: 10px; animation-delay: 0.15s; }
.af-submit-loader span:nth-child(3) { width: 10px; height: 14px; animation-delay: 0.3s; }

@keyframes af-loader-pulse {
  0%, 100% { opacity: 0.3; transform: scaleY(0.6); }
  50% { opacity: 1; transform: scaleY(1); }
}

/* ============================================
   83. RESPONSIVE TYPOGRAPHY
   Antraštės mažėja mobile
   ============================================ */

@media (max-width: 768px) {
  :root {
    --text-4xl: clamp(28px, 6vw, 36px);
    --text-3xl: clamp(24px, 5vw, 30px);
    --text-2xl: clamp(20px, 4.5vw, 24px);
    --text-xl: clamp(18px, 4vw, 20px);
  }

  .af-headline-1 { font-size: var(--text-4xl); }
  .af-headline-2 { font-size: var(--text-3xl); }
  .af-headline-3 { font-size: var(--text-2xl); }
}

/* ============================================
   84. RESPONSIVE GRID GAP
   ============================================ */

@media (max-width: 768px) {
  .af-grid { gap: var(--space-2); }
  .af-grid-sidebar { gap: var(--space-3); }
}

/* ============================================
   85. RESPONSIVE HEADER — mobile breakpoint
   ============================================ */

@media (max-width: 1024px) {
  .af-header-nav { display: none; }
  .af-header-actions { display: none; }
  .af-header-hamburger { display: flex; }
  .af-bottom-bar { display: block; }
  .af-back-to-top { display: none !important; }
  body { padding-bottom: 56px; }
}

/* ============================================
   86. RESPONSIVE UTILITIES
   ============================================ */

.af-hidden-mobile { display: initial; }
.af-show-mobile { display: none; }

@media (max-width: 768px) {
  .af-hidden-mobile { display: none !important; }
  .af-show-mobile { display: initial !important; }
}

.af-hidden-tablet { display: initial; }
.af-show-tablet { display: none; }

@media (max-width: 1024px) {
  .af-hidden-tablet { display: none !important; }
  .af-show-tablet { display: initial !important; }
}

/* ============================================
   87. UTILITY CLASSES
   ============================================ */

.u-flex-fill { flex: 1; }
.u-mt-auto { margin-top: auto; padding-top: var(--space-2); }

/* ============================================
   88. COMPONENT MODIFIERS (inline-style replacements)
   ============================================ */

.af-container--page-top { padding-top: var(--space-3); }

.af-empty-state-body--standalone { border-top: 1px solid var(--border-light); }

.af-byline-reading--inline {
  white-space: nowrap;
  font-size: var(--text-sm);
}

.af-font-size-toggle--mini {
  pointer-events: none;
  min-width: 20px;
  width: 20px;
  height: 20px;
  padding: 0;
  border: none;
  border-radius: 0;
  font-size: 16px;
  font-weight: 450;
}

.af-svg-sprite { display: none; }

.af-user-signin-wrap { padding: var(--space-3); }
