/* «Что нового» в шапке — см. whats-new.js */
.wn {
  position: relative;
}

.wn-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  min-height: 42px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 253, 248, 0.78);
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

.wn-button:hover,
.wn-button[aria-expanded="true"] {
  border-color: rgba(234, 88, 12, 0.52);
  background: rgba(234, 88, 12, 0.08);
}

.wn-button-short {
  display: none;
}

.wn-dot {
  display: none;
  flex: 0 0 auto;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.wn-button.wn-unread .wn-dot {
  display: inline-block;
}

.wn-panel {
  /* top/left/width/max-height ставит whats-new.js от позиции кнопки */
  position: fixed;
  z-index: 2000;
  width: 400px;
  overflow-y: auto;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: #fffdf8;
  box-shadow: 0 18px 40px rgba(31, 42, 36, 0.18);
  text-align: left;
}

.wn-panel[hidden] {
  display: none;
}

.wn-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 15px;
}

.wn-close {
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 999px;
  background: transparent;
  color: var(--ink-soft);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.wn-close:hover {
  background: rgba(31, 42, 36, 0.06);
}

.wn-entry + .wn-entry {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.wn-date {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 6px;
}

.wn-entry ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 6px;
}

.wn-entry li {
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
}

.wn-tag {
  display: inline-block;
  margin-right: 4px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

.wn-tag-added { background: rgba(12, 163, 12, 0.12); color: #1d5e1d; }
.wn-tag-fixed { background: rgba(234, 88, 12, 0.12); color: #9a3412; }
.wn-tag-improved { background: rgba(42, 120, 214, 0.12); color: #1c4f8f; }

.wn-tag-launch { background: #fff0df; color: #9a3412; }

.wn-announcement-title {
  margin: 10px 0 12px;
  font-family: "Fraunces", Georgia, serif;
  font-size: 25px;
  font-weight: 700;
  line-height: 1.15;
  text-wrap: balance;
}

.wn-announcement-image {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 5.2 / 1;
  object-fit: cover;
  object-position: center 94%;
  border: 1px solid var(--line);
  border-radius: 10px;
  margin-bottom: 12px;
}

.wn-announcement-text { margin: 0 0 14px; line-height: 1.5; }

.wn-announcement-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #c2410c;
  color: #fffdf8;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
}

.wn-announcement-cta:hover { background: #9a3412; }
.wn-announcement-cta:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }

.wn-announcement-note {
  margin: 12px 0 4px;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.5;
}

@media (max-width: 768px) {
  .wn-button {
    min-height: 44px;
    padding: 8px 12px;
  }

  .wn-button-label {
    display: none;
  }

  .wn-button-short {
    display: inline;
  }

  .wn-panel {
    width: auto;
  }
}
