/* The page /faq/ as a help centre (apps/sito/faq_hub.py, sito/faq_hub.html): the colours and fonts of the new pages. */
.faq-hub {
  --fh-navy: #0d1e34;
  --fh-gold: #e89820;
  --fh-cream: #f5f0e7;
  --fh-ink: #3d4b5e;
  --fh-line: #e4ddd0;
  background: #fff;
  color: var(--fh-ink);
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
}
.faq-hub .fh-wrap { max-width: 1120px; margin: 0 auto; padding-left: 16px; padding-right: 16px; box-sizing: border-box; }

/* the head: the question, the line under it, the search */
.faq-hub .fh-hero { background: var(--fh-navy); color: #fff; padding: 28px 0 56px; }
.faq-hub .fh-crumbs { display: flex; gap: 8px; font-size: 13px; color: #c3d0df; margin-bottom: 28px; }
.faq-hub .fh-crumbs a { color: #c3d0df; text-decoration: none; }
.faq-hub .fh-crumbs a:hover { color: #fff; text-decoration: underline; }
.faq-hub .fh-eyebrow { color: var(--fh-gold); font-size: 13px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 10px; }
.faq-hub .fh-title { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: clamp(32px, 6vw, 52px); line-height: 1.1; color: #fff; margin: 0 0 14px; letter-spacing: -.01em; }
.faq-hub .fh-lead { color: #dfe6f0; font-size: 17px; line-height: 1.55; max-width: 620px; margin: 0 0 28px; }
.faq-hub .fh-search { max-width: 680px; margin: 0; }
.faq-hub .fh-search-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.faq-hub .fh-search-box { position: relative; }
.faq-hub .fh-search-box i { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: #7b8796; font-size: 17px; pointer-events: none; }
.faq-hub .fh-search-box input {
  width: 100%; box-sizing: border-box; min-height: 58px; padding: 0 20px 0 52px; border: 2px solid transparent;
  border-radius: 14px; background: #fff; color: var(--fh-navy); font: 500 17px/1.2 'Inter', system-ui, sans-serif;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .22); -webkit-appearance: none; appearance: none;
}
.faq-hub .fh-search-box input::placeholder { color: #8a95a3; font-weight: 400; }
.faq-hub .fh-search-box input:focus { outline: none; border-color: var(--fh-gold); }

/* the topics, as tiles that lead to their section */
.faq-hub .fh-topics { margin-top: -28px; position: relative; }
.faq-hub .fh-topics ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.faq-hub .fh-topics a {
  display: flex; flex-direction: column; gap: 6px; min-height: 44px; height: 100%; box-sizing: border-box; padding: 16px 14px;
  background: #fff; border: 1px solid var(--fh-line); border-radius: 14px; text-decoration: none; color: var(--fh-navy);
  box-shadow: 0 4px 14px rgba(13, 30, 52, .06); transition: border-color .15s, transform .15s;
}
.faq-hub .fh-topics a:hover, .faq-hub .fh-topics a:focus-visible { border-color: var(--fh-gold); transform: translateY(-2px); }
.faq-hub .fh-topics a i { color: var(--fh-gold); font-size: 20px; }
.faq-hub .fh-topic-name { font-weight: 600; font-size: 15px; line-height: 1.25; }
.faq-hub .fh-topic-count { font-size: 13px; color: #7b8796; }

/* the questions, closed, one topic after the other */
.faq-hub .fh-body { padding-top: 48px; padding-bottom: 32px; }
.faq-hub .fh-body > * { max-width: 860px; }
.faq-hub .fh-empty { background: var(--fh-cream); border-radius: 12px; padding: 18px 20px; margin: 0 0 24px; color: var(--fh-navy); font-weight: 500; }
.faq-hub .fh-empty[hidden], .faq-hub .fh-section[hidden], .faq-hub .fh-item[hidden] { display: none; }
.faq-hub .fh-section { margin: 0 0 44px; scroll-margin-top: 96px; }
.faq-hub .fh-section h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 26px; line-height: 1.2; color: var(--fh-navy); margin: 0 0 8px; }
.faq-hub .fh-section h2 i { color: var(--fh-gold); font-size: 20px; margin-right: 6px; }
.faq-hub .fh-item { border-bottom: 1px solid var(--fh-line); }
.faq-hub .fh-item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; padding: 16px 0;
  cursor: pointer; list-style: none; color: var(--fh-navy); font-weight: 600; font-size: 17px; line-height: 1.4;
}
.faq-hub .fh-item summary::-webkit-details-marker { display: none; }
.faq-hub .fh-item summary::after {
  content: '+'; flex: 0 0 32px; height: 32px; display: flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--fh-cream); color: var(--fh-navy); font-size: 20px; font-weight: 400;
}
.faq-hub .fh-item[open] summary::after { content: '−'; background: var(--fh-navy); color: #fff; }
.faq-hub .fh-item summary:focus-visible { outline: 2px solid var(--fh-gold); outline-offset: 2px; border-radius: 4px; }
.faq-hub .fh-answer { padding: 0 48px 20px 0; font-size: 16px; line-height: 1.65; }
.faq-hub .fh-answer p { margin: 0; color: var(--fh-ink); }
.faq-hub .fh-answer a { color: #a35f00; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.faq-hub .fh-answer strong { color: var(--fh-navy); }

/* the assistance round the clock */
.faq-hub .fh-help { background: var(--fh-cream); padding: 52px 0 60px; }
.faq-hub .fh-help h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 500; font-size: 30px; color: var(--fh-navy); margin: 0 0 8px; }
.faq-hub .fh-help-text { margin: 0 0 24px; font-size: 17px; }
.faq-hub .fh-help-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.faq-hub .fh-help-card { background: #fff; border-radius: 14px; padding: 18px 18px 8px; border: 1px solid var(--fh-line); }
.faq-hub .fh-help-card h3 { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: #7b8796; margin: 0 0 6px; }
.faq-hub .fh-help-card h3 i { color: var(--fh-gold); margin-right: 4px; }
.faq-hub .fh-help-card ul { list-style: none; margin: 0; padding: 0; }
.faq-hub .fh-help-card a {
  display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--fh-navy); text-decoration: none;
  border-top: 1px solid #f0ebe1; flex-wrap: wrap;
}
.faq-hub .fh-help-card li:first-child a { border-top: 0; }
.faq-hub .fh-help-card a span { min-width: 64px; color: var(--fh-ink); }
.faq-hub .fh-help-card a strong { font-weight: 600; overflow-wrap: anywhere; }
.faq-hub .fh-help-card a i { color: var(--fh-gold); }
.faq-hub .fh-help-card a:hover strong { text-decoration: underline; }

@media (min-width: 768px) {
  .faq-hub .fh-hero { padding: 36px 0 80px; }
  .faq-hub .fh-topics { margin-top: -40px; }
  .faq-hub .fh-topics ul { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
  .faq-hub .fh-topics a { padding: 20px 18px; }
  .faq-hub .fh-section h2 { font-size: 30px; }
  .faq-hub .fh-help-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
