/* 2026-10-27 — reading pages (/stenogramma/*, /stati/*): thin bar instead of the big site header, like hi-news / hightech.
   Hides on scroll down, returns on scroll up. Menu behind the ☰ button. */
.menu-row, header.rd-site { display: none !important; }
body.ab-has-bar { padding-top: 50px !important; }
@media (min-width: 900px) { body.ab-has-bar { padding-top: 54px !important; } }
.ab-bar { position: fixed; top: 0; left: 0; right: 0; z-index: 9000; height: 50px; box-sizing: border-box; display: flex; align-items: center; gap: 10px; padding: 0 14px;
  background: var(--rd-bg, #fff); color: var(--rd-ink, #111); border-bottom: 1px solid var(--rd-line, #e3efe4); font-family: Manrope, Arial, Helvetica, sans-serif;
  transition: transform .25s ease; will-change: transform; }
.ab-bar.ab-hide { transform: translateY(-100%); }
.ab-bar-brand { font-weight: 800; font-size: 18px; letter-spacing: .03em; color: var(--rd-accent-dark, #08571e); text-decoration: none; white-space: nowrap; }
.ab-bar-brand:hover, .ab-bar-sec:hover { text-decoration: none; }
.ab-bar-sec { flex: 1; min-width: 0; font-size: 13px; color: var(--rd-ink-2, #666); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding-top: 2px; }
.ab-bar-btn { width: 44px; height: 44px; margin-right: -8px; border: 0; background: none; padding: 0; cursor: pointer; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; }
.ab-bar-btn span { display: block; width: 22px; height: 2px; background: var(--rd-ink, #222); border-radius: 2px; transition: transform .2s, opacity .2s; }
.ab-bar.ab-open .ab-bar-btn span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.ab-bar.ab-open .ab-bar-btn span:nth-child(2) { opacity: 0; }
.ab-bar.ab-open .ab-bar-btn span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.ab-menu { position: fixed; top: 50px; left: 0; right: 0; z-index: 8999; display: none; background: var(--rd-bg, #fff); border-bottom: 1px solid var(--rd-line, #e3efe4); box-shadow: 0 12px 30px rgba(0,0,0,.12); padding: 4px 0 10px; max-height: calc(100vh - 50px); overflow: auto; }
.ab-menu.ab-open { display: block; }
.ab-menu a, .ab-menu button { display: block; width: 100%; box-sizing: border-box; text-align: left; padding: 13px 20px; font: 600 17px/1.3 Manrope, Arial, Helvetica, sans-serif; color: var(--rd-ink, #111); text-decoration: none; background: none; border: 0; border-top: 1px solid var(--rd-line, #f0f0f0); cursor: pointer; }
.ab-menu a:first-child { border-top: 0; }
.ab-menu a.ab-tg { color: var(--rd-accent-dark, #08571e); }
.ab-menu a[aria-current="page"] { color: var(--rd-accent-dark, #08571e); }
.ab-backdrop { position: fixed; inset: 50px 0 0; z-index: 8998; display: none; background: rgba(0,0,0,.25); }
.ab-backdrop.ab-open { display: block; }
@media (min-width: 900px) { .ab-bar { padding: 0 24px; height: 54px; } .ab-menu { top: 54px; left: auto; right: 24px; min-width: 260px; border-radius: 0 0 12px 12px; } .ab-backdrop { top: 54px; } .ab-bar-sec { font-size: 14px; } }
