@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/manrope-cyrillic.e58febde317b.woff2") format("woff2");
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("fonts/manrope-latin.938c6e8019b6.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --fr-brand:        #FFE60F;
  --fr-on-brand:     #1F1F1F;
  --fr-text:         #1F1F1F;
  --fr-muted:        #757575;
  --fr-muted-on-bg:  #6B6B6B;
  --fr-price:        #FF4400;
  --fr-bg:           #F6F6F6;
  --fr-surface:      #FFFFFF;
  --fr-border:       rgba(0, 0, 0, .08);
  --fr-focus:        #1F1F1F;
  --fr-radius-card:  16px;
  --fr-radius-pill:  20px;
  --fr-radius-img:   12px;
  --fr-tap:          44px;
  --fr-font:         "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--fr-bg); color: var(--fr-text);
  font: 16px/1.45 var(--fr-font); overflow-wrap: anywhere;
  min-height: 100vh; display: flex; flex-direction: column;
}
img { max-width: 100%; height: auto; border-radius: var(--fr-radius-img); }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--fr-focus); outline-offset: 2px; }
.muted { color: var(--fr-muted-on-bg); }
.surface .muted, .card .muted { color: var(--fr-muted); }
.price { color: var(--fr-price); font-weight: 700; font-size: 20px; }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* header */
.site-header {
  background: var(--fr-surface); border-bottom: 1px solid var(--fr-border);
  display: flex; align-items: center; gap: 12px; padding: 0 12px; min-height: 56px;
}
.logo {
  font-weight: 800; font-size: 20px; text-decoration: none; padding: 8px 12px 8px 0;
  display: inline-flex; align-items: center; min-height: var(--fr-tap);
}
.logo span { background: var(--fr-brand); color: var(--fr-on-brand); border-radius: 8px; padding: 0 6px; margin-right: 2px; }
.nav-top { display: none; gap: 4px; margin-left: auto; align-items: center; }
.nav-top a, .tabbar a {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--fr-tap); min-width: var(--fr-tap); padding: 0 12px;
  text-decoration: none; font-weight: 600; border-bottom: 3px solid transparent;
}
.nav-top a[aria-current="page"] { border-bottom-color: var(--fr-brand); }
.header-actions { margin: 0 0 0 auto; }

/* controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: var(--fr-tap); min-width: var(--fr-tap); padding: 0 18px;
  border: 1px solid var(--fr-border); border-radius: var(--fr-radius-pill);
  background: var(--fr-surface); color: var(--fr-text);
  font: inherit; font-weight: 700; text-decoration: none; cursor: pointer;
}
.btn-primary { background: var(--fr-brand); color: var(--fr-on-brand); border-color: var(--fr-brand); }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0; }
.chip {
  display: inline-flex; align-items: center; min-height: var(--fr-tap); padding: 0 16px;
  border-radius: var(--fr-radius-pill); background: var(--fr-surface); border: 1px solid var(--fr-border);
  text-decoration: none; white-space: nowrap; font-weight: 600;
}
.chip[aria-current="true"], .chip.active { background: var(--fr-brand); color: var(--fr-on-brand); border-color: var(--fr-brand); }

/* layout */
.page { flex: 1; width: 100%; max-width: 1400px; margin: 0 auto; padding: 12px 12px 76px; }
.banners > * {
  background: var(--fr-brand); color: var(--fr-on-brand);
  border-radius: var(--fr-radius-card); padding: 10px 14px; margin: 0 0 8px;
}
.surface, .card { background: var(--fr-surface); border-radius: var(--fr-radius-card); padding: 16px; }
.feed-grid { display: grid; gap: 8px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 600px)  { .feed-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px)  { .feed-grid { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1200px) { .feed-grid { grid-template-columns: repeat(5, 1fr); } }
.feed-grid .card { padding: 0; overflow: hidden; }

/* mobile bottom tab bar */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; background: var(--fr-surface); border-top: 1px solid var(--fr-border);
}
.tabbar a { flex: 1; border-bottom: 0; border-top: 3px solid transparent; font-size: 14px; }
.tabbar a[aria-current="page"] { border-top-color: var(--fr-brand); }
@media (min-width: 720px) {
  .nav-top { display: flex; }
  .header-actions { margin-left: 0; }
  .tabbar { display: none; }
  .page { padding-bottom: 24px; }
}

.site-footer { padding: 16px 12px 88px; text-align: center; font-size: 14px; color: var(--fr-muted-on-bg); }
@media (min-width: 720px) { .site-footer { padding-bottom: 16px; } }

/* auth forms */
.auth-card { max-width: 420px; margin: 24px auto; }
.auth-card h1 { margin: 0 0 12px; font-size: 22px; }
.auth-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.auth-form label { font-weight: 600; margin-top: 4px; }
.auth-form input, .auth-form select, .auth-form textarea {
  min-height: var(--fr-tap); padding: 0 12px; font: inherit; color: var(--fr-text);
  background: var(--fr-surface); border: 1px solid var(--fr-muted); border-radius: 12px;
}
.auth-form textarea { padding: 10px 12px; resize: vertical; }
.auth-form .btn { margin-top: 8px; }
.form-error, .warn { color: #B00020; font-weight: 600; }
.form-error ul { list-style: none; margin: 0; padding: 0; }

/* my radars */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.page-head h1 { margin: 0; font-size: 22px; }
.radar-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.radar h2 { margin: 0 0 4px; font-size: 18px; }
.radar p { margin: 4px 0; }
.radar-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.radar-actions form { margin: 0; }

/* feed (TD 7.1, 7.3) */
.feed-filters { margin: 8px 0; }
#feed-poll { display: none; }
.feed-grid .card { display: flex; flex-direction: column; }
.cover { position: relative; display: block; aspect-ratio: 1; background: var(--fr-bg); }
.cover img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 0; }
.cover:focus-visible { outline-offset: -4px; }  /* the card clips overflow: keep the ring inside */
.ph {
  display: flex; align-items: center; justify-content: center; height: 100%; padding: 8px;
  text-align: center; font-size: 14px; color: var(--fr-muted-on-bg);
}
.badge {
  position: absolute; left: 8px; top: 8px; padding: 2px 8px; border-radius: var(--fr-radius-pill);
  background: var(--fr-text); color: var(--fr-surface); font-size: 12px; font-weight: 600;
}
.card-body { flex: 1; display: flex; flex-direction: column; padding: 8px; font-size: 14px; }
.card-body p { margin: 2px 0; }
.card .title {
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2;
  overflow: hidden; font-weight: 600;
}
.card summary { min-height: var(--fr-tap); line-height: var(--fr-tap); cursor: pointer; color: var(--fr-muted); }
.card .open { display: inline-flex; align-items: center; min-height: var(--fr-tap); font-weight: 600; }
.card-actions { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px; margin-top: auto; }
.icon {
  width: var(--fr-tap); height: var(--fr-tap); padding: 0; cursor: pointer;
  border: 1px solid var(--fr-border); border-radius: 50%;
  background: var(--fr-surface); color: var(--fr-text); font: 20px/1 var(--fr-font);
}
.icon[aria-pressed="true"] { background: var(--fr-brand); border-color: var(--fr-brand); color: var(--fr-on-brand); }
.empty { grid-column: 1 / -1; }
.card ~ .empty, .more[hidden] { display: none; }
.more { display: flex; width: max-content; margin: 16px auto 0; }

/* settings */
.settings-block { margin-top: 16px; }
.settings-block h2 { margin-top: 0; font-size: 18px; }
.inline-form { display: inline-block; margin: 0 8px 8px 0; }
.blocked-list { list-style: none; margin: 0; padding: 0; }
.blocked-list li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 0; border-top: 1px solid var(--fr-border); }
