/**
 * Settings & Help screens - Trialog Intranet Design
 * Ported from the intranet.html design prototype (repo root): the settings
 * card stack (in-set-*), the help contact cards (in-help-*) and the FAQ
 * accordion with search (in-faq-*). The row and toggle primitives
 * (.in-set-row, .in-switch) live in intranet-ui.css; this file only adds
 * what those do not cover. Design tokens (--in-*) come from intranet.css.
 */

/* ========================================
   SETTINGS
   ======================================== */

.in-set-stack {
  display: grid;
  gap: 20px;
}

.in-set-action {
  margin-left: auto;
}

/* ========================================
   HELP: CONTACT CARDS
   ======================================== */

.in-help-grid {
  grid-template-columns: repeat(2, 1fr);
}

@media (max-width: 720px) {
  .in-help-grid {
    grid-template-columns: 1fr;
  }
}

.in-help-ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.in-help-ic.tone-blue {
  background: var(--in-blue-100);
  color: var(--in-blue-500);
}

.in-help-ic.tone-green {
  background: var(--in-green-soft);
  color: var(--in-green);
}

.in-help-t {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 6px;
  color: var(--in-ink-900);
}

.in-help-d {
  font-size: 13.5px;
  color: var(--in-ink-500);
  margin-bottom: 14px;
}

.in-help-faq {
  margin-top: 22px;
}

/* ========================================
   FAQ: SEARCH
   ======================================== */

.in-faq-count {
  font-size: 13px;
  color: var(--in-ink-500);
}

.in-faq-searchwrap {
  padding: 16px 22px 6px;
}

.in-faq-search {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--in-bg);
  border: 1px solid var(--in-line);
  border-radius: 12px;
  padding: 0 14px;
  height: 42px;
  transition: 0.16s;
}

.in-faq-search:focus-within {
  border-color: var(--in-blue-400);
  box-shadow: 0 0 0 3px var(--in-blue-100);
}

.in-faq-search input {
  border: none;
  background: none;
  outline: none;
  flex: 1;
  min-width: 0;
  font-family: inherit;
  font-size: 14px;
  color: var(--in-ink-900);
}

.in-faq-search svg {
  width: 18px;
  height: 18px;
  color: var(--in-ink-400);
  flex-shrink: 0;
}

/* ========================================
   FAQ: ACCORDION
   ======================================== */

.in-faq-item {
  border-top: 1px solid var(--in-line-soft);
}

.in-faq-item:first-child {
  border-top: none;
}

/* The question is a real <button> spanning the whole row. */
.in-faq-q {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 22px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14.5px;
  text-align: left;
  background: none;
  border: none;
  color: inherit;
  font-family: inherit;
  transition: background 0.16s, color 0.16s;
}

.in-faq-q:hover {
  background: var(--in-blue-50);
}

.in-faq-q:focus-visible {
  outline: 2.5px solid var(--in-blue-500);
  outline-offset: -2px;
}

.in-faq-qmark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--in-blue-100);
  color: var(--in-blue-500);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  flex-shrink: 0;
  font-size: 14px;
}

.in-faq-chev {
  margin-left: auto;
  transition: transform 0.28s ease;
  color: var(--in-ink-400);
  flex-shrink: 0;
  display: flex;
}

.in-faq-chev svg {
  width: 20px;
  height: 20px;
  display: block;
}

.in-faq-item.open .in-faq-chev {
  transform: rotate(180deg);
  color: var(--in-blue-500);
}

.in-faq-item.open .in-faq-q {
  color: var(--in-navy-800);
}

.in-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.32s ease;
}

.in-faq-a-inner {
  padding: 2px 22px 18px 64px;
  color: var(--in-ink-700);
  font-size: 14px;
  line-height: 1.65;
  white-space: pre-line;
}

.in-faq-item.open .in-faq-a {
  max-height: 640px;
}

.in-faq-empty {
  padding: 26px;
  text-align: center;
  color: var(--in-ink-500);
  font-size: 14px;
}

/* ========================================
   FEINSCHLIFF
   ======================================== */

/* Antwort blendet beim Aufklappen sanft ein (max-height + opacity). */
.in-faq-a {
  opacity: 0;
  transition: max-height 0.32s ease, opacity 0.26s ease;
}

.in-faq-item.open .in-faq-a {
  opacity: 1;
}

/* Kapitel-/Nummern-Marker: tabellarische Ziffern, exakt mittig. */
.in-faq-qmark {
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.in-faq-count {
  font-variant-numeric: tabular-nums;
}

/* Leerer Suchtreffer: freundlicher mit dezentem Zeichen. */
.in-faq-empty::before {
  content: '\00B7 \00B7 \00B7';
  display: block;
  font-size: 18px;
  letter-spacing: 4px;
  color: var(--in-ink-400);
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  .in-faq-a,
  .in-faq-chev {
    transition: none;
  }
}
