/* Голонет: стили только публичного сайта. Токены и компоненты — в holonet-ui.css (подключается раньше). */

/* ===== Герой главной ===== */
.hn-hero .hn-lead { margin-bottom: 1.2em; }
.hn-hero p:not(.hn-lead):not(.hn-kicker) { color: var(--hn-muted); max-width: 66ch; }
.hn-hero h1 { font-size: clamp(2.4rem, 7vw, 4rem); }

/* ===== Лента, цитата, планета ===== */
.holonet-list { display: grid; gap: 16px; list-style: none; margin: 0; padding: 0; }
.holonet-item {
  background: var(--hn-panel);
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-radius);
  padding: 18px 20px;
}
.holonet-item .hn-badge { margin-bottom: .6em; }
.holonet-item h3 { margin: 0 0 4px; }
.holonet-item p { color: var(--hn-muted); margin: 0; }

.quote {
  margin: 0;
  padding: 0 0 0 16px;
  border-left: 2px solid var(--hn-gold);
}
.quote p { font-size: 1.1rem; margin: 0 0 .4em; color: var(--hn-text); max-width: 60ch; }
.quote footer { font-size: .9rem; color: var(--hn-muted); }

.planet-name { font-size: 1.2rem; margin: 0 0 6px; }

/* ===== Хронология ===== */
.timeline {
  list-style: none;
  margin: 0 0 20px;
  padding: 0 0 0 20px;
  border-left: 1px solid var(--hn-line);
}
.t-item { position: relative; padding: 0 0 28px 16px; }
.t-item::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 6px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--hn-bg);
  border: 2px solid var(--hn-gold);
}
.t-item time {
  display: block;
  font: 500 .85rem/1.3 var(--hn-mono);
  color: var(--hn-muted);
  margin-bottom: 2px;
}
.t-item h3 { margin: 0 0 4px; }
.t-item p { color: var(--hn-muted); margin: 0; }
.timeline > li.t-item { list-style: none; }

/* ===== Бегущая строка (JS заполняет #ticker) ===== */
.ticker-bar {
  border-top: 1px solid var(--hn-line);
  background: var(--hn-panel);
  overflow: hidden;
  white-space: nowrap;
}
.ticker-track { overflow: hidden; padding: 10px 0; }
.ticker {
  margin: 0;
  display: inline-block;
  padding-left: 100%;
  color: var(--hn-muted);
  font: 500 .85rem/1.4 var(--hn-mono);
  animation: ticker 90s linear infinite;
}
.ticker:empty { display: none; }
@keyframes ticker {
  from { transform: translateX(0); }
  to   { transform: translateX(-100%); }
}

/* ===== Счётчик в подвале ===== */
.counter { font-family: var(--hn-mono); color: var(--hn-text); font-variant-numeric: tabular-nums; }

/* ===== 404 ===== */
.not-found { text-align: center; padding: 56px 16px; }
.not-found img { margin: 0 auto 24px; width: 120px; height: 120px; }
.not-found h1 { font-size: clamp(1.6rem, 4vw, 2.2rem); }
.not-found .hn-actions { justify-content: center; }

/* ===== Герой «Передача из архива» ===== */
.holo-card { display: grid; gap: 20px; align-items: center; }
.holo-card img { width: 120px; height: 120px; }
@media (min-width: 720px) { .holo-card { grid-template-columns: 1fr auto; } }

/* ===== Пасхалка-подпись на главной (виднее на светлом фоне) ===== */
.hn-hero .fx-joke { text-align: left; }

/* ===== Мелочи адаптивности ===== */
@media (max-width: 380px) {
  .hn-brand__name { font-size: 1.05rem; }
}

/* ===== Печать ===== */
@media print {
  body { background: #fff; color: #000; }
  .hn-nav, .hn-footer, .ticker-bar, .hn-toggle, .hn-toasts, #fx-ui { display: none !important; }
  .hn-card, .holonet-item { box-shadow: none; background: #fff; border-color: #999; color: #000; }
  h1, h2, h3 { color: #000; }
  a { color: #000; }
}

.list-clean { list-style: none; margin: 0; padding: 0; }

/* ===== Шапка на мобильном: одна строка, меню-бургер (≤ 64 px в закрытом виде) ===== */
.hn-navcheck { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.hn-burger {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--hn-line);
  border-radius: var(--hn-radius-sm);
  background: var(--hn-panel);
  color: var(--hn-text);
  font: 600 .9rem/1 var(--hn-font);
  cursor: pointer;
}
.hn-burger i { display: block; width: 18px; height: 2px; border-radius: 2px; background: currentColor; box-shadow: 0 -6px 0 currentColor, 0 6px 0 currentColor; }
#site-nav:focus-visible ~ .hn-burger { outline: 2px solid var(--hn-focus); outline-offset: 3px; }
#site-nav:checked ~ .hn-burger { border-color: var(--hn-accent); color: var(--hn-accent); }
@media (max-width: 959px) {
  .hn-nav__inner { padding-top: 8px; padding-bottom: 8px; gap: 0 12px; align-items: center; }
  .hn-burger { display: inline-flex; order: 3; }
  .hn-nav__tools { order: 2; margin-left: auto; }
  .hn-nav__links {
    display: none; order: 4; width: 100%; flex-direction: column; align-items: stretch; gap: 0;
    padding: 4px 0 12px; border-top: 1px solid var(--hn-line);
  }
  .hn-nav__links a { min-height: 48px; border-bottom: 1px solid var(--hn-line); }
  #site-nav:checked ~ .hn-nav__links { display: flex; }
}
@media (min-width: 960px) { .hn-navcheck, .hn-burger { display: none; } }
@media (max-width: 639px) {
  .pg-login { padding: 0 10px; }
  .pg-login span { display: none; }
}
@media (max-width: 959px) {
  .hn-burger { min-width: 44px; padding: 0 10px; justify-content: center; }
  .hn-burger span { display: none; }
}
@media (max-width: 420px) { .hn-brand__name small { display: none; } }

.site-cookie {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  padding: 12px var(--hn-gutter, 16px); pointer-events: none;
}
.site-cookie__in {
  max-width: 640px; margin: 0 auto; pointer-events: auto;
  display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between;
}
.site-cookie[hidden] { display: none !important; }
