:root {
  --paper: #f4f0e7;
  --ink: #1c1b18;
  --muted: #6c6961;
  --line: #bdb7aa;
  --soft-line: #d9d3c7;
  --blue: #b8d3dd;
  --blue-ink: #274651;
  --red: #8b3128;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input { font: inherit; }
button { color: inherit; }
.paper-rule { height: 5px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--ink); opacity: .72; }
.telegram-head { width: min(1100px, calc(100% - 36px)); margin: 24px auto 0; }
.masthead { display: grid; grid-template-columns: 150px 1fr auto; align-items: center; gap: 28px; padding: 22px 8px 15px; }
.brand-mark { width: 140px; height: 90px; display: grid; place-items: center; transform: rotate(-1deg); }
.brand-mark svg { width: 130px; height: 84px; overflow: visible; }
.fox-ink { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linejoin: round; stroke-linecap: round; }
.fox-cut { fill: none; stroke: var(--ink); stroke-width: 3; stroke-linecap: round; opacity: .82; }
.fox-eye { fill: var(--ink); }
.brand-copy { text-align: center; }
.brand-kicker { font: 700 14px/1.4 "Courier New", monospace; letter-spacing: .08em; }
.brand-kicker span { color: var(--red); padding: 0 6px; }
h1, h2, p { margin: 0; }
h1 { margin-top: 4px; font-size: clamp(2.1rem, 5vw, 4.1rem); line-height: .96; font-weight: 700; letter-spacing: -.05em; }
.brand-copy p { margin-top: 12px; font-size: .98rem; color: var(--muted); }
.language-switch { align-self: start; display: flex; gap: 6px; align-items: center; font: 700 13px/1 "Courier New", monospace; white-space: nowrap; }
.lang-button { border: 0; padding: 6px 3px; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
.lang-button:not(.active) { color: var(--muted); text-decoration: none; }
.date-strip { display: flex; justify-content: center; gap: 32px; padding: 10px 0 13px; font-size: .86rem; }
.date-strip span { display: flex; gap: 7px; }
.date-strip b { font-weight: 700; }
.date-strip time { color: var(--muted); }
.page-shell { width: min(980px, calc(100% - 36px)); margin: 0 auto; }
.ticker { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 14px; margin: 18px 0 24px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); min-height: 38px; overflow: hidden; }
.ticker-label { padding: 7px 12px; background: var(--blue); color: var(--blue-ink); font-weight: 700; white-space: nowrap; }
.ticker-window { min-width: 0; overflow: hidden; white-space: nowrap; }
.ticker-track { display: inline-flex; gap: 44px; animation: ticker 28s linear infinite; padding-inline-start: 100%; }
.ticker-track span::before { content: "✦"; color: var(--red); margin-inline-end: 10px; }
@keyframes ticker { to { transform: translateX(-100%); } }
.directory-intro { max-width: 700px; margin: 0 auto 22px; text-align: center; }
.eyebrow { font: 700 12px/1.2 "Courier New", monospace; color: var(--red); text-transform: uppercase; letter-spacing: .06em; }
.directory-intro h2 { margin-top: 11px; font-size: clamp(1.8rem, 4vw, 3rem); letter-spacing: -.04em; }
.directory-intro > p:not(.eyebrow) { margin: 12px auto 22px; color: var(--muted); font-size: 1.03rem; line-height: 1.7; }
.search-box { display: flex; align-items: center; gap: 10px; width: min(510px, 100%); margin: 0 auto; padding: 5px 13px; border: 1px solid var(--ink); background: color-mix(in srgb, var(--paper) 85%, white); }
.search-box:focus-within { outline: 2px solid var(--blue); outline-offset: 3px; }
.search-icon { font-size: 1.55rem; line-height: 1; transform: rotate(-20deg); }
.search-box input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); padding: 8px 0; }
.search-box kbd { padding: 2px 7px; border: 1px solid var(--line); color: var(--muted); font: 12px "Courier New", monospace; }
.category-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; margin-bottom: 20px; }
.category-nav button { border: 1px solid var(--line); background: transparent; padding: 7px 12px; cursor: pointer; font-size: .9rem; }
.category-nav button:hover, .category-nav button.active { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.category { margin: 0 0 25px; scroll-margin-top: 20px; }
.category-heading { display: flex; align-items: baseline; gap: 9px; border-bottom: 2px solid var(--ink); padding-bottom: 5px; margin-bottom: 0; }
.category-heading h3 { font-size: 1.45rem; }
.category-heading small { color: var(--muted); font: 12px "Courier New", monospace; }
.entry { border-bottom: 1px solid var(--soft-line); }
.entry summary { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 9px 5px; cursor: pointer; list-style: none; }
.entry summary::-webkit-details-marker { display: none; }
.entry summary::after { content: "+"; color: var(--red); font: 20px "Courier New", monospace; }
.entry[open] summary::after { content: "−"; }
.entry summary:hover .entry-name { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.entry-main { min-width: 0; }
.entry-name { display: block; font-size: 1.12rem; font-weight: 700; }
.entry-url { display: block; margin-top: 4px; overflow: hidden; color: var(--muted); direction: ltr; text-align: start; text-overflow: ellipsis; white-space: nowrap; font: 12px "Courier New", monospace; }
.entry-detail { margin: 0 30px 10px 5px; padding: 8px 12px; border-inline-start: 3px solid var(--blue); background: color-mix(in srgb, var(--paper) 85%, white); color: var(--muted); line-height: 1.7; font-size: .96rem; }
.entry-detail a { color: var(--blue-ink); font-weight: 700; }
.promo summary { background: var(--blue); color: var(--blue-ink); }
.promo summary::after { color: var(--blue-ink); }
.empty { padding: 17px 5px; color: var(--muted); font-style: italic; border-bottom: 1px solid var(--soft-line); }
.no-results { padding: 42px 10px; text-align: center; color: var(--muted); border-block: 1px solid var(--line); }
.site-footer { display: flex; justify-content: space-between; gap: 15px; width: min(980px, calc(100% - 36px)); margin: 32px auto 0; padding: 15px 0 22px; border-top: 1px solid var(--ink); color: var(--muted); font-size: .82rem; }
html[dir="ltr"] .entry-detail { margin: 0 5px 15px 38px; }
html[dir="ltr"] .brand-kicker { letter-spacing: .04em; }
@media (max-width: 680px) {
  .telegram-head, .page-shell, .site-footer { width: min(100% - 24px, 980px); }
  .masthead { grid-template-columns: 1fr auto; gap: 7px 14px; padding-inline: 0; }
  .brand-mark { width: 92px; height: 70px; grid-row: span 2; }
  .brand-mark svg { width: 90px; height: 64px; }
  .brand-copy { text-align: start; }
  .brand-kicker { font-size: 10px; }
  .brand-copy p { font-size: .82rem; margin-top: 7px; }
  h1 { font-size: 2.35rem; }
  .language-switch { grid-column: 2; justify-self: end; font-size: 11px; }
  .date-strip { justify-content: space-between; gap: 10px; font-size: .72rem; }
  .date-strip span { display: block; }
  .date-strip b { display: block; margin-bottom: 4px; }
  .ticker { margin-bottom: 34px; }
  .ticker-label { font-size: .83rem; padding-inline: 8px; }
  .category-heading h3 { font-size: 1.22rem; }
  .entry-name { font-size: 1rem; }
  .site-footer { display: block; line-height: 1.9; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .ticker-track { animation: none; padding-inline-start: 0; } }
