/* Zalozka Podpora (prototyp-zahlavi/views.js): prehled, novinky, historie aktualizaci, registrace Start.
   Vlastnik: balik 3F (*MiscTab, *SupportSubTab, *UpdatesSubTab, FsRegistrationSubTab). Navody a clanek jsou v navody.css. Vse pod .rd. */

/* ---------- Podpora (3F) ---------- */
.rd .support-page p:where(:not(.rd-legacy *)) {
  margin: 0;
}

.rd .support-page p a:where(:not(.rd-legacy *)),
.rd .servis-box li a {
  color: var(--accent-link);
  font-weight: 600;
}

.rd .support-page p a:where(:not(.rd-legacy *)):hover,
.rd .servis-box li a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .support-sec + .support-sec,
.rd .support-cols + .support-sec {
  margin-top: 56px;
}

.rd .support-sec[id] {
  scroll-margin-top: 90px;
}

.rd .sec-head h1,
.rd .sec-head h2 {
  margin: 0 0 6px;
  font-size: 24px;
  line-height: 1.3;
  color: var(--navy);
}

.rd .sec-head p {
  max-width: 720px;
  font-size: 14px;
  line-height: 22px;
  color: var(--body-text);
}

.rd .support-empty {
  padding: 20px 0;
  font-size: 14px;
  color: var(--muted-text-color);
}

/* rozcestnik prehledu */
.rd .help-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rd .help-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
  transition: border-color .2s, box-shadow .2s;
}

.rd .help-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.rd .help-card .ico,
.rd .contact-item .ico {
  display: grid;
  place-items: center;
  flex: none;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  border-radius: var(--radius-lg);
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
  color: var(--accent-link);
}

.rd .help-card h3 {
  margin: 0 0 6px;
  font-size: 16px;
  color: var(--navy);
}

.rd .help-card p {
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
}

.rd .help-card .more {
  margin-top: auto;
  padding-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-link);
}

/* posledni novinky a aktualizace */
.rd .support-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-top: 40px;
}

.rd .support-cols > div {
  min-width: 0;
}

.rd .support-cols h2 {
  margin: 0 0 14px;
  font-size: 18px;
  color: var(--navy);
}

.rd .news-list {
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.rd .news-list a {
  display: block;
  padding: 10px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 14px;
  line-height: 21px;
  color: var(--primary-text-color);
}

.rd .news-list a:hover {
  color: var(--accent-link);
}

.rd .timeline {
  margin: 0 0 14px;
  padding: 0 0 0 18px;
  border-left: 2px solid var(--border-color);
  list-style: none;
}

.rd .timeline li {
  position: relative;
  padding: 0 0 16px 4px;
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
  overflow-wrap: anywhere;
}

.rd .timeline li::before {
  content: "";
  position: absolute;
  left: -25px;
  top: 4px;
  width: 10px;
  height: 10px;
  border: 2px solid var(--accent);
  border-radius: 50%;
  background: #fff;
}

.rd .timeline time {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
}

.rd .support-more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-link);
}

.rd .support-more:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .support-cols .support-note {
  margin-top: 18px;
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
}

/* Servis / podpora v cene */
.rd .servis-box {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 30px;
  margin-top: 40px;
  padding: 28px 30px;
  border-radius: var(--radius-lg);
  background: var(--light-gray-color);
}

.rd .servis-box h2 {
  margin: 0 0 6px;
  font-size: 20px;
  color: var(--navy);
}

.rd .servis-box > div > p,
.rd .servis-box li {
  font-size: 13px;
  line-height: 20px;
  color: var(--body-text);
}

.rd .servis-box ul {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.rd .servis-box li b {
  display: block;
  margin-bottom: 4px;
  font-size: 14px;
  color: var(--navy);
}

/* filtry: stitky novinek, roky aktualizaci */
.rd .support-page .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.rd .support-page .chip {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 16px;
  border: 1px solid var(--border-color);
  border-radius: 22px;
  background: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--primary-text-color);
  cursor: pointer;
}

.rd .support-page .chip:hover {
  border-color: var(--navy);
}

.rd .support-page .chip.on {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

/* novinky */
.rd .news-tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-link);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .2px;
}

.rd .news-featured {
  position: relative;
  display: block;
  margin: 26px 0 20px;
  padding: 28px 32px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  background: #fff;
  color: var(--navy);
  transition: border-color .15s, box-shadow .15s;
}

.rd .news-featured:hover {
  border-color: var(--accent);
  box-shadow: 0 6px 20px rgba(31, 40, 61, .06);
}

.rd .news-featured h3 {
  max-width: 720px;
  margin: 12px 0 8px;
  font-size: 22px;
  line-height: 1.3;
  color: var(--navy);
}

.rd .news-featured p {
  max-width: 720px;
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 22px;
  color: var(--body-text);
}

.rd .news-featured .more {
  font-size: 14px;
  font-weight: 600;
  color: var(--accent-link);
}

.rd .news-featured:hover .more {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.rd .news-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: inherit;
  transition: border-color .15s, box-shadow .15s, transform .15s;
}

.rd .news-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
  transform: translateY(-2px);
}

.rd .news-card .news-tag {
  align-self: flex-start;
}

.rd .news-card h3 {
  flex: 1;
  margin: 0;
  font-size: 15px;
  line-height: 22px;
  color: var(--navy);
}

.rd .news-card .more {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-link);
}

.rd .subscribe {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 30px;
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--light-gray-color);
}

.rd .subscribe span {
  font-size: 13.5px;
  line-height: 21px;
  color: var(--body-text);
}

.rd .subscribe b {
  display: block;
  font-size: 15px;
  color: var(--navy);
}

.rd .subscribe .btn {
  flex: none;
  min-width: 190px;
  height: 44px;
}

/* filtr novinek: textove zalozky s podtrzenim, at se nepleti s pilulkami podsekci */
.rd .news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 26px;
  margin: 22px 0 0;
  border-bottom: 1px solid var(--border-color);
}

.rd .news-filter button {
  margin-bottom: -1px;
  padding: 0 0 10px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 500;
  color: var(--body-text);
  cursor: pointer;
}

.rd .news-filter button:hover {
  color: var(--navy);
}

.rd .news-filter button.on {
  border-bottom-color: var(--accent);
  color: var(--navy);
  font-weight: 600;
}

.rd .news-filter small {
  margin-left: 2px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted-text-color);
}

/* radek podpory: podsekce vlevo, zpravodaj vpravo ve stejne "pilulce" jako podsekce */
.rd .tab-content.support-page {
  padding-top: 30px;
}

.rd .support-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 34px;
}

.rd .support-top .sub-nav {
  flex: none;
  margin: 0;
}

.rd .subscribe-pill {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 4px 18px;
  border-radius: 26px;
  background: var(--light-gray-color);
}

.rd .subscribe-pill .ico {
  flex: none;
  color: var(--accent-link);
}

.rd .subscribe-pill span {
  font-size: 12.5px;
  line-height: 17px;
  color: var(--body-text);
}

.rd .subscribe-pill b {
  color: var(--navy);
}

.rd .subscribe-pill small {
  display: block;
  font-size: 11.5px;
  color: var(--muted-text-color);
}

.rd .subscribe-pill a {
  flex: none;
  padding: 10px 20px;
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.rd .subscribe-pill a:hover {
  color: var(--accent-link);
}

@media (max-width: 1100px) {
  .rd .support-top {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

@media (max-width: 700px) {
  .rd .support-top .sub-nav,
  .rd .subscribe-pill {
    align-self: stretch;
  }

  .rd .subscribe-pill small {
    display: none;
  }
}

/* historie aktualizaci */
.rd .upd-list {
  position: relative;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.rd .upd-list::before {
  content: "";
  position: absolute;
  left: 111px;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background: var(--light-gray-color);
}

.rd .upd {
  position: relative;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 34px;
  padding: 0 0 22px;
}

.rd .upd::before {
  content: "";
  position: absolute;
  left: 106px;
  top: 5px;
  width: 12px;
  height: 12px;
  border: 2px solid #b9bdc8;
  border-radius: 50%;
  background: #fff;
}

.rd .upd.ver::before {
  border-color: var(--accent);
  background: var(--accent);
}

.rd .upd.forms::before,
.rd .upd.prog::before {
  border-color: var(--accent);
}

.rd .upd time {
  padding-top: 1px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  text-align: right;
}

.rd .upd-kind {
  display: inline-block;
  margin-bottom: 6px;
  padding: 2px 10px;
  border-radius: 12px;
  background: var(--light-gray-color);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--body-text);
}

.rd .upd.ver .upd-kind {
  background: var(--accent);
  color: var(--accent-text);
}

.rd .upd.prog .upd-kind {
  background: var(--navy);
  color: #fff;
}

.rd .upd.forms .upd-kind {
  background: var(--accent-soft);
  color: var(--accent-link);
}

.rd .upd-text {
  font-size: 14px;
  line-height: 22px;
  overflow-wrap: anywhere;
}

.rd .upd-text p + p {
  margin-top: 6px;
}

.rd .upd-text.clamp {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.rd .upd-text.clamp p + p {
  margin-top: 0;
}

.rd .clamp-toggle {
  margin-top: 4px;
  padding: 0;
  border: 0;
  background: none;
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-link);
  cursor: pointer;
}

/* pruh s kontakty (Návody a FAQ) */
.rd .help-strip {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 30px;
  align-items: center;
  margin-top: 36px;
  padding: 24px 28px;
  border-radius: var(--radius-lg);
  background: var(--navy);
  color: #fff;
}

.rd .help-strip h3 {
  margin: 0 0 4px;
  font-size: 18px;
}

.rd .help-strip p {
  font-size: 13.5px;
  color: #cfd3dc;
}

.rd .help-strip a {
  font-size: 17px;
  font-weight: 600;
  color: #fff;
}

.rd .help-strip a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .help-strip a small {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: #9aa1b2;
}

/* technicka podpora */
.rd .contact-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 26px;
}

.rd .contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  background: #fff;
  color: inherit;
}

.rd a.contact-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-card);
}

.rd .contact-item .ico {
  margin: 0;
}

.rd .contact-item > span:last-child {
  min-width: 0;
}

.rd .contact-item small {
  display: block;
  font-size: 12px;
  line-height: 18px;
  color: var(--muted-text-color);
}

.rd .contact-item b {
  display: block;
  font-size: 17px;
  line-height: 24px;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.rd .tech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 30px;
}

.rd .tech-card {
  padding: 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--light-gray-color);
}

.rd .tech-card h3 {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.35;
  color: var(--navy);
}

.rd .tech-card p {
  font-size: 14px;
  line-height: 22px;
  color: var(--body-text);
}

.rd .tech-card p + p {
  margin-top: 10px;
}

.rd .support-pdf .modal-body {
  padding-bottom: 0;
}

.rd .support-pdf iframe {
  display: block;
  width: 100%;
  height: 70vh;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
}

/* registrace FORM studio Start */
.rd .support-reg {
  max-width: 720px;
}

.rd .support-reg > p {
  margin-top: 12px;
  font-size: 14px;
  line-height: 22px;
  color: var(--body-text);
}

.rd .support-reg h3 {
  margin: 26px 0 0;
  font-size: 16px;
  color: var(--navy);
}

.rd .support-reg .reg-form {
  display: grid;
  gap: 14px;
  max-width: 360px;
  margin-top: 24px;
}

.rd .support-reg .reg-form .btn {
  justify-self: start;
}

.rd .support-reg .callout {
  margin-top: 20px;
}

/* stary obsah (Návody a FAQ do faze 4) v novem obalu */
.rd .support-legacy .misc-page {
  padding: 0;
}

.rd .support-legacy .misc-page .misc-wrapper {
  display: block;
  padding: 0;
}

.rd .support-legacy .sub-tab {
  margin: 0;
}

@media (max-width: 1000px) {
  .rd .help-cards,
  .rd .news-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rd .support-cols,
  .rd .servis-box,
  .rd .contact-panel,
  .rd .tech-grid {
    grid-template-columns: 1fr;
  }

  .rd .help-strip {
    grid-template-columns: 1fr 1fr;
  }

  .rd .help-strip > div {
    grid-column: 1 / -1;
  }
}

@media (max-width: 560px) {
  .rd .help-cards,
  .rd .news-grid,
  .rd .servis-box ul,
  .rd .help-strip {
    grid-template-columns: 1fr;
  }

  .rd .support-page .chip {
    min-height: 40px;
  }

  .rd .upd {
    grid-template-columns: minmax(0, 1fr);
    gap: 4px;
    padding-left: 26px;
  }

  .rd .upd-list::before {
    left: 5px;
  }

  .rd .upd::before {
    left: 0;
  }

  .rd .upd time {
    text-align: left;
  }

  .rd .subscribe {
    flex-direction: column;
    align-items: stretch;
  }

  .rd .subscribe .btn {
    min-width: 0;
  }

  .rd .news-featured {
    padding: 20px;
  }

  .rd .news-featured h3 {
    font-size: 19px;
  }

  .rd .tech-card {
    padding: 20px;
  }

  .rd .support-pdf iframe {
    height: 60vh;
  }
}

/* ---------- AI dotaz (prototyp views.js askPanel). Kdyz je funkce vypnuta, prvky .ask na strance nejsou. ---------- */
.rd .ask {
  margin: 0 0 28px;
  padding: 20px 22px 14px;
  border: 1px solid var(--border-color);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
  scroll-margin-top: 90px;
}

.rd .sec-head + .ask {
  margin-top: 18px;
}

.rd .ask-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px 18px;
  margin-bottom: 12px;
}

.rd .ask-top h2 {
  margin: 0 0 4px;
  font-size: 20px;
  font-weight: 600;
  color: var(--navy);
}

.rd .support-page .ask-sub,
.rd .ask-sub {
  margin: 0;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 20px;
  color: #5d6271;
}

.rd .ask-ex {
  display: block;
  margin-top: 2px;
  color: var(--muted-text-color);
  font-style: italic;
}

.rd .ask-mode {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.rd .ask-mode[hidden] {
  display: none;
}

.rd .ask-mode-label,
.rd .ask-mode-keys {
  font-size: 12px;
  color: var(--muted-text-color);
}

.rd .ask-mode-keys {
  margin-left: auto;
  font-size: 11.5px;
}

.rd .ask-mode button {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  font: 600 13px Poppins, sans-serif;
  color: var(--navy);
  cursor: pointer;
}

.rd .ask-mode button svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.rd .ask-mode button small {
  font-weight: 400;
  color: var(--muted-text-color);
}

.rd .ask-mode button[aria-pressed="true"] {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 1px var(--accent);
  background: var(--accent-soft);
}

.rd .ask-new {
  flex: none;
  margin-left: auto;
  border: 0;
  background: none;
  padding: 4px 0;
  font: 600 13px Poppins, sans-serif;
  color: var(--accent-link);
  cursor: pointer;
}

.rd .ask-new:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.rd .ask-row,
.rd .ask-follow {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}

.rd .ask-row textarea,
.rd .ask-follow textarea {
  display: block;
  flex: 1;
  min-width: 0;
  width: 100%;
  min-height: 52px;
  max-height: 164px;
  height: 52px;
  resize: none;
  overflow-y: hidden;
  border: 1px solid var(--border-color);
  border-radius: 6px;
  padding: 14px 20px;
  background: var(--light-gray-color);
  font: inherit;
  font-size: 15px;
  line-height: 22px;
  color: var(--primary-text-color);
  outline: none;
}

.rd .ask-row textarea:focus,
.rd .ask-follow textarea:focus {
  border-color: var(--accent);
  background: #fff;
}

.rd .ask-keys {
  display: none;
  margin: 6px 0 0 4px;
  font-size: 11.5px;
  line-height: 16px;
  color: var(--muted-text-color);
}

.rd .ask-row:focus-within + .ask-keys {
  display: block;
}

.rd .ask-go {
  flex: none;
  width: 190px;
  height: 52px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--radius-sm);
  background: var(--accent-button, var(--accent));
  color: var(--accent-text);
  font: 600 15px Poppins, sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.rd .ask-go:hover {
  filter: brightness(1.07);
}

.rd .ask-go:disabled,
.rd .ask-follow button:disabled,
.rd .ask-row textarea:disabled,
.rd .ask-follow textarea:disabled {
  cursor: default;
  opacity: .7;
}

.rd .support-page .ask-note,
.rd .ask-note {
  margin: 10px 0 0;
  font-size: 11.5px;
  line-height: 16px;
  color: var(--muted-text-color);
}

.rd .ask-thread {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.rd .support-page .ask-qline,
.rd .ask-qline {
  margin: 0 0 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
}

.rd .ask-card {
  padding: 14px 16px 12px;
  border-radius: var(--radius);
  background: var(--light-gray-color);
}

.rd .ask-kicker {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-bottom: 8px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted-text-color);
}

.rd .ask-kicker::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--accent);
}

.rd .ask-kicker span {
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
  color: var(--accent-link);
}

.rd .support-page .ask-body p,
.rd .ask-body p {
  margin: 0 0 10px;
  font-size: 14.5px;
  line-height: 23px;
}

.rd .ask-body ul,
.rd .ask-body ol {
  margin: 0 0 10px;
  padding-left: 20px;
}

.rd .ask-body li {
  margin: 0 0 4px;
  font-size: 14.5px;
  line-height: 22px;
}

.rd .ask-body li::marker {
  color: var(--accent);
}

.rd .ask-body a {
  color: var(--accent-link);
  font-weight: 600;
}

.rd .ask-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: ask-blink 1s ease infinite;
}

.rd .ask-pending {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  font-size: 14.5px;
  color: #5d6271;
}

@keyframes ask-blink {
  50% { opacity: 0; }
}

.rd .ask-sources {
  margin-top: 4px;
}

.rd .ask-sources h3 {
  margin: 0;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: .4px;
  text-transform: uppercase;
  color: var(--muted-text-color);
}

.rd .ask-src {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border-color);
  color: var(--navy);
  text-decoration: none;
  font-size: 14px;
  line-height: 20px;
  font-weight: 500;
}

.rd .ask-src:hover {
  color: var(--accent-link);
}

.rd .ask-kind {
  flex: none;
  padding: 2px 8px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-link);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2px;
  white-space: nowrap;
}

.rd .ask-rate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 13.5px;
  color: #5d6271;
}

.rd .ask-rate button {
  min-width: 96px;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  font: 500 13px Poppins, sans-serif;
  color: var(--navy);
  cursor: pointer;
}

.rd .ask-rate button:hover,
.rd .ask-follow button:hover {
  border-color: var(--accent);
}

.rd .support-page .ask-thanks,
.rd .ask-thanks {
  margin: 12px 0 0;
  font-size: 13.5px;
  color: #5d6271;
}

.rd .ask-contact {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 16px;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 13.5px;
}

.rd .support-page .ask-contact p,
.rd .ask-contact p {
  flex: 1 1 100%;
  margin: 0 0 2px;
  color: #5d6271;
}

.rd .ask-contact div {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 16px;
  align-items: baseline;
}

.rd .ask-contact a {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.rd .ask-contact a:hover {
  color: var(--accent-link);
}

.rd .ask-contact small {
  color: var(--muted-text-color);
}

.rd .ask-contact.hot {
  padding: 12px 14px;
  border-top: 0;
  border-radius: var(--radius);
  background: var(--accent-soft);
}

.rd .ask-follow {
  margin-top: 12px;
}

.rd .ask-follow button {
  flex: none;
  width: 190px;
  height: 52px;
  padding: 0 16px;
  border: 2px solid var(--accent);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy);
  font: 600 15px Poppins, sans-serif;
  white-space: nowrap;
}

.rd .ask-go:focus-visible,
.rd .ask-mode button:focus-visible,
.rd .ask-rate button:focus-visible,
.rd .ask-follow button:focus-visible,
.rd .ask-new:focus-visible,
.rd .ax-rate button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Rozvrzeni odpovedi C: dva sloupce */
.rd .ax {
  display: grid;
  gap: 8px;
}

.rd .ax-q {
  justify-self: end;
  max-width: 80%;
  margin: 4px 0 0;
  padding: 8px 14px;
  border-radius: 16px 16px 4px 16px;
  background: var(--light-gray-color);
  font-size: 14px;
  line-height: 20px;
  color: var(--navy);
}

.rd .ax-card {
  padding: 16px 18px 14px;
  border: 1px solid var(--border-color);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  background: #fff;
}

.rd .ax-label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--accent-link);
}

.rd .ax-label svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.rd .ax-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
}

.rd .ax-main {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.rd .ax-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px 16px;
  margin-top: 14px;
  font-size: 13px;
  color: #5d6271;
}

.rd .ax-foot-c {
  flex-direction: column;
  align-items: flex-start;
  margin-top: auto;
  padding-top: 16px;
}

.rd .ax-hint {
  margin: 0;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 12.5px;
  line-height: 18px;
  color: var(--muted-text-color);
  align-self: stretch;
}

.rd .ax-rate {
  display: flex;
  align-items: center;
  gap: 6px;
}

.rd .ax-rate button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--navy);
  cursor: pointer;
}

.rd .ax-rate button svg {
  width: 16px;
  height: 16px;
}

.rd .ax-rate button:hover {
  border-color: var(--accent);
  color: var(--accent-link);
}

.rd .ax-thanks {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #5d6271;
}

.rd .ax-thanks svg {
  width: 15px;
  height: 15px;
  color: #2e8b57;
}

.rd .ax-hot a,
.rd .ax-side-help a {
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.rd .ax-hot a:hover,
.rd .ax-side-help a:hover {
  color: var(--accent-link);
}

.rd .ax-hot {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--accent-soft);
  font-size: 13.5px;
}

.rd .ax-hot b {
  color: var(--navy);
}

.rd .ax-hot p {
  margin: 2px 0 0;
}

.rd .ax-hot small {
  color: var(--muted-text-color);
}

.rd .ax-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
  color: var(--accent-link);
}

.rd .ax-ico svg {
  width: 17px;
  height: 17px;
}

.rd .ax-hot .ax-ico {
  background: #fff;
}

.rd .ax-side {
  min-width: 0;
  padding-left: 20px;
  border-left: 1px solid var(--border-color);
}

.rd .ax-side h4 {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted-text-color);
}

.rd .ax-side ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: src;
}

.rd .ax-side li {
  counter-increment: src;
}

.rd .ax-side li a {
  position: relative;
  display: block;
  padding: 6px 0 6px 28px;
  font-size: 13.5px;
  line-height: 19px;
  color: var(--navy);
  text-decoration: none;
}

.rd .ax-side li a::before {
  content: counter(src);
  position: absolute;
  left: 0;
  top: 7px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, #fff);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 45%, transparent);
  color: var(--accent-link);
  font-size: 11px;
  font-weight: 600;
  line-height: 20px;
  text-align: center;
}

.rd .ax-side li a:hover b {
  color: var(--accent-link);
}

.rd .ax-side li b,
.rd .ax-side li small {
  display: inline;
}

.rd .ax-side li b {
  font-size: 13.5px;
  line-height: 19px;
  font-weight: 600;
}

.rd .ax-side li small {
  font-size: 11.5px;
  font-weight: 400;
  color: var(--muted-text-color);
  white-space: nowrap;
}

.rd .ax-side ol.ax-scroll {
  max-height: 250px;
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--border-color) transparent;
}

.rd .ax-side ol.ax-scroll::-webkit-scrollbar {
  width: 6px;
}

.rd .ax-side ol.ax-scroll::-webkit-scrollbar-thumb {
  border-radius: 3px;
  background: var(--border-color);
}

.rd .ax-side-help {
  display: grid;
  gap: 2px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border-color);
  font-size: 13px;
}

.rd .ax-side-help small {
  font-size: 11.5px;
  color: var(--muted-text-color);
}

@media (prefers-reduced-motion: reduce) {
  .rd .ask-pulse {
    animation: none;
  }
}

@media (max-width: 560px) {
  .rd .ask {
    padding: 16px 14px 12px;
  }

  .rd .ask-row,
  .rd .ask-follow,
  .rd .ask-contact div {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .rd .ask-row textarea,
  .rd .ask-follow textarea {
    flex: none;
  }

  .rd .ask-go,
  .rd .ask-follow button {
    width: 100%;
  }

  .rd .ask-row:focus-within + .ask-keys {
    display: none;
  }

  .rd .ask-mode-keys {
    display: none;
  }

  .rd .ask-mode button {
    flex: 1 1 100%;
  }

  .rd .ask-contact div {
    gap: 2px;
  }
}

@media (max-width: 760px) {
  .rd .ax-cols {
    grid-template-columns: 1fr;
  }

  .rd .ax-side {
    padding: 12px 0 0;
    border-left: 0;
    border-top: 1px solid var(--border-color);
  }
}
