/*
 * DOTsnap3 FAQ - styles.
 * Colours and font follow dotsnap.de: the page is shown inside the website.
 *
 * The page is as high as its content (the website sets the height of the iframe).
 * For that reason there are no heights that depend on the window (vh) in this file.
 */

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/open-sans-latin-wght-normal.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: italic;
  font-weight: 300 800;
  font-display: swap;
  src: url('fonts/open-sans-latin-wght-italic.woff2') format('woff2');
}

:root {
  --navy: #2d3b65;
  --navy-dark: #222d4f;
  --ink: #3f4856;
  --muted: #6a7483;
  --line: #e1e4ea;
  --line-strong: #cdd2dd;
  --soft: #eef1f7;
  --bg-soft: #f7f8fb;
  --accent: #920000;
  --accent-dark: #7a0000;
  --link: #0057a3;
  --mark: #ffe98a;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  position: relative; /* the large image view covers the complete page */
  margin: 0;
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: #fff;
}

button {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(45, 59, 101, 0.45);
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1.25em;
  height: 1.25em;
  flex: none;
}

mark {
  padding: 0 0.1em;
  border-radius: 3px;
  color: inherit;
  background: var(--mark);
}

/* ------------------------------------------------------------ page frame */

.faq {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
  padding: 4px 4px 28px;
}

.is-standalone .faq {
  padding: 0 20px 56px;
}

/* inside the website: as wide as the content column of the website */
.is-embedded .faq {
  max-width: none;
}

/* title bar, only without the website around the page */
.faq-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  margin: 0 -20px;
  padding: 18px 20px;
  color: #fff;
  background: var(--navy);
}

.banner-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.banner-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  opacity: 0.9;
}

.banner-link:hover {
  opacity: 1;
  text-decoration: underline;
}

/* ---------------------------------------------------------------- search */

.faq-search {
  padding: 30px 0 4px;
}

.is-embedded .faq-search {
  padding-top: 8px;
}

.search-box {
  position: relative;
  max-width: 780px;
  margin: 0 auto;
}

.search-input {
  width: 100%;
  height: 58px;
  padding: 0 56px 0 58px;
  font: inherit;
  font-size: 17px;
  color: var(--navy-dark);
  background: #fff;
  border: 2px solid var(--line-strong);
  border-radius: 29px;
  outline: none;
  text-overflow: ellipsis;
  -webkit-appearance: none;
  appearance: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.search-input::placeholder {
  color: #8a93a3;
  opacity: 1;
}

.search-input::-webkit-search-cancel-button,
.search-input::-webkit-search-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.search-input:hover {
  border-color: #b3bacb;
}

.search-input:focus {
  border-color: var(--navy);
  box-shadow: 0 0 0 4px rgba(45, 59, 101, 0.13);
}

.search-icon {
  position: absolute;
  top: 50%;
  left: 22px;
  width: 22px;
  height: 22px;
  margin-top: -11px;
  color: var(--muted);
  pointer-events: none;
}

.search-clear {
  position: absolute;
  top: 50%;
  right: 12px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-top: -18px;
  padding: 0;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.search-clear[hidden] {
  display: none;
}

.search-clear:hover {
  color: var(--navy);
  background: var(--soft);
}

.suggest {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px 6px;
  max-width: 900px;
  margin: 14px auto 0;
  font-size: 14px;
}

.suggest-label {
  padding: 3px 4px 3px 0;
  color: var(--muted);
}

.suggest-item {
  padding: 3px 8px;
  color: var(--link);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.suggest-item:hover {
  text-decoration: underline;
  background: var(--bg-soft);
}

/* note of the editors below the search field */
.faq-intro {
  max-width: 780px;
  margin: 18px auto 0;
  padding: 10px 18px;
  font-size: 14.5px;
  text-align: center;
  color: var(--ink);
  background: var(--soft);
  border-radius: 10px;
}

.faq-intro a {
  font-weight: 700;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.faq-intro a:hover {
  color: var(--accent);
}

/* ------------------------------------------------------------ navigation */

.faq-nav {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding: 18px 20px;
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 14px;
}

.nav-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.nav-label {
  flex: 0 0 82px;
  padding-top: 9px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.nav-row + .nav-row .nav-label {
  padding-top: 6px;
}

.nav-items {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.count {
  display: inline-block;
  min-width: 24px;
  padding: 1px 7px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  text-align: center;
  color: var(--navy);
  background: var(--soft);
  border-radius: 11px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.pill:hover {
  border-color: var(--navy);
}

.pill.is-active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.pill.is-active .count {
  color: #fff;
  background: rgba(255, 255, 255, 0.22);
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
}

.chip .count {
  min-width: 0;
  padding: 0;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
}

.chip:hover {
  color: var(--navy);
  border-color: var(--navy);
}

.chip.is-active {
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.chip.is-active .count {
  color: rgba(255, 255, 255, 0.8);
}

.chip-small {
  height: 28px;
  padding: 0 10px;
  font-size: 13px;
}

.chip-small .icon {
  width: 13px;
  height: 13px;
  color: var(--muted);
}

/* ----------------------------------------------------------------- views */

.faq-main {
  min-height: 300px;
  margin-top: 30px;
}

.view-head {
  margin: 0 0 20px;
}

.view-title,
.block-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin: 0;
  font-size: 26px;
  font-weight: 600;
  line-height: 1.25;
  color: var(--navy);
}

/* the thin line after a heading, as on dotsnap.de */
.view-title::after,
.block-title::after,
.section-title::after {
  content: '';
  flex: 1 1 40px;
  height: 1px;
  background: var(--line);
}

.view-sub {
  margin: 6px 0 0;
  font-size: 15px;
  color: var(--muted);
}

.block {
  margin-top: 38px;
}

.block:first-child {
  margin-top: 0;
}

.block-title {
  margin-bottom: 18px;
  font-size: 22px;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 14px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--navy);
}

.section-desc {
  margin: -8px 0 14px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ------------------------------------------------------------- questions */

.q {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.q + .q {
  margin-top: 10px;
}

.q:hover {
  border-color: #bcc3d6;
}

.q.is-open {
  border-color: var(--navy);
  box-shadow: 0 8px 26px rgba(45, 59, 101, 0.1);
}

.q-head {
  margin: 0;
  font: inherit;
}

.q-toggle {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 17px 18px 17px 24px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}

.q-label {
  display: grid;
  flex: 1;
  gap: 3px;
  min-width: 0;
}

.q-place {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--muted);
}

.q-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--navy);
}

.q-snippet {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

.q.is-open .q-snippet {
  display: none;
}

/* plus in a circle; it becomes a minus when the question is open */
.q-sign {
  position: relative;
  flex: 0 0 30px;
  height: 30px;
  border: 2px solid #b9c0d3;
  border-radius: 50%;
  transition: border-color 0.15s;
}

.q-sign::before,
.q-sign::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 2px;
  margin: -1px 0 0 -6px;
  background: #8790ad;
  border-radius: 1px;
  transition: transform 0.2s, background-color 0.15s;
}

.q-sign::after {
  transform: rotate(90deg);
}

.q-toggle:hover .q-sign,
.q.is-open .q-sign {
  border-color: var(--navy);
}

.q-toggle:hover .q-sign::before,
.q-toggle:hover .q-sign::after,
.q.is-open .q-sign::before,
.q.is-open .q-sign::after {
  background: var(--navy);
}

.q.is-open .q-sign::after {
  transform: rotate(0deg);
}

/* .q-body has no padding: a closed answer (hidden="until-found") must have no height */
.q.is-open .q-body > * {
  animation: faq-reveal 0.2s ease-out;
}

@keyframes faq-reveal {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.q-foot {
  margin-top: 6px;
  padding: 14px 24px 16px;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  border-radius: 0 0 9px 9px;
}

.q-foot-title {
  display: block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--muted);
}

.q-related ul {
  margin: 4px 0 12px;
  padding: 0;
  list-style: none;
}

.q-related li {
  margin: 2px 0;
}

.q-related a {
  font-size: 14.5px;
  color: var(--link);
  text-decoration: none;
}

.q-related a:hover {
  text-decoration: underline;
}

.q-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.q-updated {
  font-size: 13px;
  color: var(--muted);
}

.q-copy {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.q-copy .icon {
  width: 15px;
  height: 15px;
}

.q-copy:hover {
  background: var(--soft);
}

.q-copy.is-done {
  color: #1d6b3a;
}

.q-link-field {
  flex: 1 1 260px;
  min-width: 0;
  margin-left: auto;
  padding: 5px 8px;
  font: inherit;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
}

.copy-helper {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

/* ---------------------------------------------------------------- answer */

.answer {
  max-width: 920px;
  padding: 0 24px 12px;
  font-size: 15.5px;
  line-height: 1.7;
  overflow-wrap: break-word;
}

.answer > :first-child {
  margin-top: 0;
}

.answer > :last-child {
  margin-bottom: 0;
}

.answer p {
  margin: 0 0 1em;
}

.answer strong {
  font-weight: 700;
  color: #2a3140;
}

.answer h1,
.answer h2,
.answer h3 {
  margin: 1.5em 0 0.55em;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.35;
  color: var(--navy);
}

.answer h4,
.answer h5,
.answer h6 {
  margin: 1.4em 0 0.5em;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--navy);
}

.answer ul,
.answer ol {
  margin: 0 0 1em;
  padding-left: 1.6em;
}

.answer li {
  margin: 0.3em 0;
}

.answer li > p {
  margin: 0 0 0.5em;
}

.answer li > ul,
.answer li > ol {
  margin: 0.3em 0 0.5em;
}

.answer a {
  color: var(--link);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.answer a:hover {
  color: var(--navy);
}

.answer code,
.answer kbd {
  padding: 0.12em 0.4em;
  font-family: ui-monospace, 'Cascadia Mono', 'Segoe UI Mono', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.9em;
  color: #1f2a4d;
  background: var(--soft);
  border-radius: 4px;
  overflow-wrap: anywhere;
}

.answer kbd {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
}

.answer pre {
  margin: 0 0 1em;
  padding: 13px 16px;
  overflow-x: auto;
  color: #e9edf8;
  background: #20283f;
  border-radius: 8px;
}

.answer pre code {
  padding: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: inherit;
  white-space: pre;
  background: none;
  overflow-wrap: normal;
}

/* a note of the editors: "> Hinweis: …" */
.answer blockquote {
  margin: 0 0 1em;
  padding: 12px 16px;
  background: #f1f4fb;
  border-left: 4px solid var(--navy);
  border-radius: 0 8px 8px 0;
}

.answer blockquote > :last-child {
  margin-bottom: 0;
}

.answer hr {
  margin: 1.5em 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.answer img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 0.8em 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: zoom-in;
}

.answer img:hover {
  border-color: #bcc3d6;
}

.answer .table-wrap {
  margin: 0 0 1em;
  overflow-x: auto;
}

.answer table {
  border-collapse: collapse;
  font-size: 15px;
}

.answer th,
.answer td {
  padding: 8px 12px;
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--line);
}

.answer th {
  font-weight: 700;
  color: var(--navy);
  background: var(--bg-soft);
}

/* ------------------------------------------------------- overview of areas */

.area-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.area-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.area-card:hover {
  border-color: #bcc3d6;
  box-shadow: 0 8px 26px rgba(45, 59, 101, 0.08);
}

.area-main {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  width: 100%;
  padding: 20px;
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.area-icon {
  display: grid;
  flex: 0 0 48px;
  place-items: center;
  height: 48px;
  color: var(--navy);
  background: var(--soft);
  border-radius: 12px;
}

.area-icon .icon {
  width: 24px;
  height: 24px;
}

.area-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.area-title {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--navy);
}

.area-desc {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--muted);
}

.area-count {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}

.area-sections {
  margin: 0;
  padding: 8px 12px 12px;
  list-style: none;
  border-top: 1px solid var(--line);
}

.area-section {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 8px;
  font-size: 15px;
  text-align: left;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.area-section:hover {
  background: var(--bg-soft);
}

.area-section .icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
}

.area-section .count {
  margin-left: auto;
}

/* ------------------------------------------------- no result, help box */

.empty {
  padding: 36px 16px 8px;
  text-align: center;
}

.empty-icon {
  display: inline-grid;
  place-items: center;
  width: 64px;
  height: 64px;
  color: var(--muted);
  background: var(--soft);
  border-radius: 50%;
}

.empty-icon .icon {
  width: 28px;
  height: 28px;
}

.empty-title {
  margin: 16px 0 6px;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
  overflow-wrap: anywhere;
}

.empty-text {
  max-width: 560px;
  margin: 0 auto;
  color: var(--muted);
}

.faq-help {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 18px 32px;
  margin-top: 44px;
  padding: 26px 30px;
  color: #e4e6f0;
  background: var(--navy);
  border-radius: 14px;
}

.help-text {
  flex: 1 1 380px;
}

.help-title {
  margin: 0 0 4px;
  font-size: 21px;
  font-weight: 600;
  line-height: 1.3;
  color: #fff;
}

.help-text p {
  margin: 0;
  font-size: 15px;
}

.help-button {
  flex: none;
  padding: 13px 30px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  background: var(--accent);
  border-radius: 22px;
  transition: background-color 0.15s, transform 0.15s;
}

.help-button:hover {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

button.help-button,
.feedback-send,
.empty-action {
  font-family: inherit;
  border: 0;
  cursor: pointer;
}

.help-button[hidden] {
  display: none;
}

.empty-action {
  margin-top: 18px;
  padding: 11px 24px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border-radius: 21px;
  transition: background-color 0.15s;
}

.empty-action:hover {
  background: var(--navy-dark);
}

/* form "describe what is missing", inside the help box */
.feedback {
  display: grid;
  flex: 1 1 100%;
  gap: 10px;
}

.feedback[hidden] {
  display: none;
}

.feedback-label {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
}

.feedback-text {
  width: 100%;
  min-height: 120px;
  padding: 12px 14px;
  font: inherit;
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  border: 2px solid transparent;
  border-radius: 10px;
  resize: vertical;
}

.feedback-text:focus {
  border-color: #9fb0e6;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.25);
}

/* only a program fills this field */
.feedback-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.feedback-note {
  margin: 0;
  font-size: 13px;
  color: #c9cfe6;
  overflow-wrap: anywhere;
}

.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
}

.feedback-send {
  flex: none;
  padding: 12px 28px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--accent);
  border-radius: 22px;
  transition: background-color 0.15s;
}

.feedback-send:hover {
  background: var(--accent-dark);
}

.feedback-send:disabled {
  cursor: default;
  opacity: 0.6;
}

.feedback-status {
  flex: 1 1 240px;
  margin: 0;
  font-size: 14px;
  color: #fff;
}

.feedback-status a {
  color: #fff;
  text-decoration: underline;
}

.feedback-done {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #fff;
}

/* --------------------------------------------------------------- lightbox */

.lightbox {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(12, 16, 30, 0.74);
  cursor: zoom-out;
}

.lightbox-frame {
  position: absolute;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.lightbox-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
  border-radius: 6px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox-close {
  position: absolute;
  top: 14px;
  right: 14px;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  color: var(--navy);
  background: #fff;
  border: 0;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  cursor: pointer;
}

/* ------------------------------------------------- scroll target positions */

.q,
.block,
.faq-nav {
  scroll-margin-top: 16px;
}

/* helper of faq.js: a point to scroll to (see scrollToElement) */
.scroll-mark {
  position: absolute;
  left: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

/* ------------------------------------------- plain list without JavaScript */

.faq-plain {
  padding: 16px 20px 40px;
}

.faq-plain h1 {
  font-size: 28px;
  color: var(--navy);
}

.faq-plain h2 {
  margin: 1.6em 0 0.6em;
  font-size: 22px;
  color: var(--navy);
}

.faq-plain h3 {
  margin: 1.4em 0 0.5em;
  font-size: 18px;
  color: var(--navy);
}

.faq-plain details {
  margin: 8px 0;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.faq-plain summary {
  padding: 14px 18px;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.faq-plain .answer {
  padding-top: 4px;
  padding-bottom: 16px;
}

/* ----------------------------------------------------------- small screens */

@media (max-width: 700px) {
  .faq-search {
    padding-top: 20px;
  }

  .search-input {
    height: 52px;
    padding: 0 48px 0 50px;
    font-size: 16px;
    border-radius: 26px;
  }

  .search-icon {
    left: 18px;
  }

  /* one line each, moved with the finger: the questions stay near the top of the screen */
  .suggest,
  .nav-items {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  .suggest::-webkit-scrollbar,
  .nav-items::-webkit-scrollbar {
    display: none;
  }

  .suggest > *,
  .nav-items > * {
    flex: none;
    white-space: nowrap;
  }

  .faq-nav {
    padding: 14px 0 14px 14px;
  }

  .nav-row {
    flex-direction: column;
    gap: 6px;
    min-width: 0;
  }

  .nav-items {
    max-width: 100%;
    padding: 2px 14px 2px 2px;
  }

  .nav-label,
  .nav-row + .nav-row .nav-label {
    flex: none;
    padding-top: 0;
  }

  .view-title {
    font-size: 22px;
  }

  .block-title {
    font-size: 20px;
  }

  .section-title {
    font-size: 18px;
  }

  .q-toggle {
    gap: 12px;
    padding: 15px 14px 15px 16px;
  }

  .q-title {
    font-size: 16px;
  }

  .answer {
    padding: 0 16px 10px;
    font-size: 15px;
  }

  .q-foot {
    padding: 12px 16px 14px;
  }

  .q-copy {
    margin-left: 0;
  }

  .faq-help {
    padding: 22px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media print {
  .faq-search,
  .faq-nav,
  .faq-help,
  .q-foot,
  .q-sign,
  .empty-action {
    display: none;
  }

  .q {
    break-inside: avoid;
    box-shadow: none !important;
  }
}

/* ------------------------------------------------------------ login page */

.login-body {
  display: grid;
  min-height: 100vh;
  margin: 0;
  place-items: center;
  background: var(--bg-soft);
}

.login {
  width: min(100% - 32px, 380px);
  padding: 32px 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(45, 59, 101, 0.08);
}

.login-title {
  margin: 0 0 20px;
  font-size: 22px;
  color: var(--navy);
}

.login-form {
  display: grid;
  gap: 6px;
}

.login-form label {
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.login-form input {
  height: 44px;
  padding: 0 12px;
  font: inherit;
  color: var(--ink);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.login-form input:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 59, 101, 0.15);
}

.login-message {
  margin: 10px 0 0;
  padding: 10px 12px;
  font-size: 14px;
  color: var(--accent);
  background: #fbeeee;
  border-radius: 8px;
}

.login-button {
  height: 46px;
  margin-top: 16px;
  font: inherit;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 23px;
  cursor: pointer;
}

.login-button:hover {
  background: var(--navy-dark);
}

/* ------------------------------------------------------------ admin mode */

.admin-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 20px;
  margin: 0 -20px;
  padding: 10px 20px;
  font-size: 14px;
  color: #fff;
  background: var(--accent);
}

.admin-info {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.admin-info .icon {
  flex: none;
  width: 18px;
  height: 18px;
}

.admin-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-logout {
  margin: 0;
}

.admin-button {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  background: #fff;
  border: 1px solid transparent;
  border-radius: 17px;
  cursor: pointer;
}

.admin-button .icon {
  width: 15px;
  height: 15px;
}

.admin-button:hover {
  background: #fbeeee;
}

.admin-button-light {
  color: var(--navy);
  border-color: var(--line-strong);
}

.admin-button-light:hover {
  background: var(--soft);
  border-color: var(--navy);
}

.admin-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0 14px;
}

.is-admin .q-head {
  display: flex;
  align-items: flex-start;
}

.is-admin .q-toggle {
  flex: 1;
  min-width: 0;
}

.q-tools {
  display: inline-flex;
  flex: none;
  gap: 2px;
  padding: 12px 10px 0 0;
}

.q-tool {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
}

.q-tool .icon {
  width: 17px;
  height: 17px;
}

.q-tool:hover {
  background: var(--soft);
}

.q-tool-danger:hover {
  color: var(--accent);
  background: #fbeeee;
}

.q.is-draft {
  background: #fbfbfd;
  border-style: dashed;
}

.q-draft {
  display: inline-block;
  margin-right: 8px;
  padding: 1px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #8a5a00;
  text-transform: uppercase;
  vertical-align: middle;
  background: #fff3cd;
  border-radius: 4px;
}

/* the editor (a window over the page; only in admin mode, never inside the iframe) */

body.ed-open {
  overflow: hidden;
}

.ed-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  padding: 24px 16px;
  overflow: auto;
  background: rgba(12, 16, 30, 0.6);
}

.ed-box {
  width: min(100%, 1360px);
  margin: 0 auto;
  background: #fff;
  border-radius: 14px;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
}

.ed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
}

.ed-title {
  margin: 0;
  font-size: 19px;
  color: var(--navy);
}

.ed-close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: var(--navy);
  background: transparent;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
}

.ed-close:hover {
  background: var(--soft);
}

.ed-body {
  padding: 18px 22px;
}

.ed-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 22px;
}

.ed-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 14px;
  margin-bottom: 14px;
}

.ed-single {
  grid-template-columns: 1fr;
}

.ed-meta .ed-wide {
  grid-column: 1 / -1;
}

.ed-field {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-content: start;
  gap: 4px;
  font-size: 13px;
}

.ed-label {
  font-weight: 600;
  color: var(--muted);
}

.ed-hint {
  font-size: 12px;
  color: var(--muted);
}

.ed-row {
  display: flex;
  gap: 8px;
}

.ed-row .ed-input {
  flex: 1;
  min-width: 0;
}

.ed-input {
  height: 40px;
  padding: 0 10px;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
}

.ed-input:focus,
.ed-text:focus {
  border-color: var(--navy);
  outline: none;
  box-shadow: 0 0 0 3px rgba(45, 59, 101, 0.15);
}

.ed-input[readonly] {
  color: var(--muted);
  background: var(--bg-soft);
}

.ed-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  align-items: center;
  font-size: 14px;
}

.ed-check {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  cursor: pointer;
}

.ed-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 6px 0;
}

.ed-tool {
  height: 30px;
  padding: 0 10px;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
  background: var(--soft);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}

.ed-tool:hover {
  background: var(--line);
}

.ed-text {
  display: block;
  width: 100%;
  min-height: 420px;
  padding: 12px 14px;
  font: 14px/1.55 ui-monospace, 'Cascadia Mono', Consolas, Menlo, monospace;
  color: var(--ink);
  tab-size: 4;
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  resize: vertical;
}

.ed-text.is-drop {
  background: #fbeeee;
  border-color: var(--accent);
}

.ed-preview-wrap {
  min-width: 0;
}

.ed-preview-title {
  margin: 0 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}

.ed-preview {
  min-height: 200px;
  padding: 14px 18px;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
}

.ed-problems {
  margin: 10px 0 0;
  padding-left: 18px;
  font-size: 13px;
  color: var(--accent);
}

.ed-problems:empty {
  display: none;
}

.ed-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}

.ed-save {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  height: 42px;
  padding: 0 26px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  background: var(--navy);
  border: 0;
  border-radius: 21px;
  cursor: pointer;
}

.ed-save .icon {
  width: 16px;
  height: 16px;
}

.ed-save:hover {
  background: var(--navy-dark);
}

.ed-save:disabled {
  cursor: default;
  opacity: 0.6;
}

.ed-cancel {
  height: 42px;
  padding: 0 18px;
  font: inherit;
  font-size: 15px;
  font-weight: 600;
  color: var(--navy);
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 21px;
  cursor: pointer;
}

.ed-status {
  margin: 0;
  font-size: 14px;
  color: var(--ink);
}

.ed-status.is-error {
  color: var(--accent);
}

@media (max-width: 1000px) {
  .ed-grid {
    grid-template-columns: 1fr;
  }
}
