/* FAQ page: a short photo banner, then a light page with the section list on the left and the questions on the right. */

.fq-top { position: relative; isolation: isolate; padding: 190px 0 52px; }
/* Banner photo: number 37 in the photo picker (the Flyers lined up on the ice in their navy jerseys). The file is only
   1,000 pixels wide, so on a computer it is never stretched across the banner: it sits on the right at no more
   than 880px wide, where it stays sharp, and fades into plain navy behind the title. Phones show it full width. */
.fq-top { background: #0a1430; }
.fq-top::before { content: ""; position: absolute; inset: 0 0 0 auto; width: min(62%, 880px); z-index: -2; background: url('https://fifeflyers.co.uk/wp-content/uploads/2026/10/GUI-101026-DY-167.jpg') center 72% / cover no-repeat; -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 34%); mask-image: linear-gradient(90deg, transparent 0%, #000 34%); }
.fq-top::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, #0a1430 0%, rgba(10, 20, 48, .88) 40%, rgba(10, 20, 48, .25) 72%, rgba(10, 20, 48, .25) 100%), linear-gradient(180deg, rgba(10, 20, 48, .7) 0%, rgba(10, 20, 48, 0) 45%); }
.fq-top h1 { font-size: clamp(36px, 4.6vw, 62px); font-weight: 800; line-height: 1.04; letter-spacing: -1px; text-transform: none; }
.fq-top p { margin-top: 14px; max-width: none; font-size: 18px; line-height: 1.55; color: #d9deea; }
/* On a computer the whole sentence sits on one line; on narrower screens it wraps as it needs to. */
@media (min-width: 1000px) { .fq-top p { white-space: nowrap; } }
.fq-top a { color: #fff; text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; text-underline-offset: 4px; }

.fq-main { background: var(--paper); color: var(--ink-text); padding: 48px 0 88px; }
.fq-layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); gap: 40px; align-items: start; }

/* Left: search and the section list, which stays in view as you scroll */
.fq-side { position: sticky; top: 132px; display: grid; gap: 18px; }
.fq-search { position: relative; display: block; }
.fq-search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: var(--ink-muted); stroke-width: 2; stroke-linecap: round; pointer-events: none; }
.fq-search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1px solid var(--paper-line); border-radius: 10px; background: #fff; color: var(--ink-text); font: 500 16px/1 var(--body); }
.fq-search input::placeholder { color: var(--ink-muted); }
.fq-search input:focus { outline: 2px solid var(--navy-hi); outline-offset: 1px; }
#tabs { display: grid; gap: 2px; }
#tabs a { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 11px 14px; border-radius: 10px; font-size: 16px; font-weight: 600; color: var(--ink-muted); transition: background .15s, color .15s; }
#tabs a span { font-size: 13px; font-weight: 600; color: #8a91ab; }
#tabs a:hover { color: var(--ink-text); background: rgba(14, 28, 65, .05); }
#tabs a.on { background: var(--navy); color: #fff; }
#tabs a.on span { color: var(--gold); }

/* Right: the questions */
.fq-group { scroll-margin-top: 132px; }
.fq-group + .fq-group { margin-top: 44px; }
.fq-group h2 { margin-bottom: 14px; font-size: 26px; font-weight: 800; letter-spacing: -.2px; text-transform: none; color: var(--ink-text); }
.fq-list { background: #fff; border: 1px solid var(--paper-line); border-radius: 14px; overflow: hidden; }
.fq-list details + details { border-top: 1px solid var(--paper-line); }
.fq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 19px 22px; cursor: pointer; list-style: none; font-size: 17px; font-weight: 650; line-height: 1.35; color: var(--ink-text); transition: background .15s; }
.fq-list summary::-webkit-details-marker { display: none; }
.fq-list summary:hover { background: #f7f8fb; }
.fq-list summary:focus-visible { outline: 2px solid var(--navy-hi); outline-offset: -2px; border-radius: 0; }
/* A plain chevron that turns over when the answer is open */
.fq-list summary::after { content: ""; flex: none; width: 9px; height: 9px; margin: -4px 4px 0 0; border-right: 2px solid var(--ink-muted); border-bottom: 2px solid var(--ink-muted); transform: rotate(45deg); transition: transform .2s, margin .2s; }
.fq-list details[open] summary::after { transform: rotate(225deg); margin-top: 5px; }
.fq-a { padding: 0 22px 22px 22px; }
/* Answers use the full width of the card, so most fit on one line, with roomier letters and lines. */
.fq-a p { max-width: none; font-size: 17px; line-height: 1.7; letter-spacing: .15px; word-spacing: .4px; color: #3b4466; text-wrap: pretty; }
.fq-a p + p { margin-top: 8px; }
.fq-a a, .fq-none a { color: var(--navy-hi); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.fq-a a:hover { color: #000; }
/* Answers slide open where the browser supports it; elsewhere they simply appear. */
@supports (interpolate-size: allow-keywords) {
  .fq-list { interpolate-size: allow-keywords; }
  .fq-list details::details-content { block-size: 0; overflow: hidden; transition: block-size .22s ease, content-visibility .22s allow-discrete; }
  .fq-list details[open]::details-content { block-size: auto; }
}
.fq-none { margin-bottom: 24px; padding: 18px 22px; background: #fff; border: 1px solid var(--paper-line); border-radius: 14px; font-size: 16px; color: #3b4466; }

.fq-help { display: flex; align-items: center; flex-wrap: wrap; gap: 12px 14px; margin-top: 44px; padding: 24px 26px; background: #fff; border: 1px solid var(--paper-line); border-radius: 14px; }
.fq-help div { flex: 1 1 260px; }
.fq-help h2 { font-size: 22px; font-weight: 800; text-transform: none; letter-spacing: -.2px; color: var(--ink-text); }
.fq-help p { margin-top: 4px; font-size: 15px; color: var(--ink-muted); }
.fq-help .btn { min-height: 44px; font-size: 15px; }
.btn.fq-line { border-color: #c5cadb; color: var(--ink-text); background: transparent; }
.btn.fq-line:hover { border-color: var(--ink-text); }
.fq-main :focus-visible { outline-color: var(--navy-hi); }

/* A small "questions?" card used on other pages in place of repeated answers. */
.ask-faq p { margin-bottom: 12px; }

@media (max-width: 900px) {
  .fq-top { padding: 150px 0 36px; }
  .fq-top p { font-size: 16px; }
  .fq-main { padding: 0 0 64px; }
  .fq-layout { grid-template-columns: 1fr; gap: 24px; }
  /* Phone: the section list becomes a row of chips that stays under the header */
  .fq-side { top: 96px; z-index: 20; margin-inline: -16px; padding: 12px 16px; gap: 10px; background: var(--paper); border-bottom: 1px solid var(--paper-line); }
  #tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; }
  #tabs::-webkit-scrollbar { display: none; }
  #tabs a { flex: none; padding: 9px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--paper-line); font-size: 14px; white-space: nowrap; }
  #tabs a span { display: none; }
  #tabs a.on { border-color: var(--navy); }
  .fq-group { scroll-margin-top: 232px; }
  .fq-group h2 { font-size: 22px; }
  .fq-list summary { padding: 16px; font-size: 16px; }
  .fq-a { padding: 0 16px 18px; }
  .fq-help { padding: 20px 16px; }
  .fq-help .btn { flex: 1 1 100%; }
}
/* Phones: the FAQ banner photo runs edge to edge (it has enough pixels at that size), under a darker shade. */
@media (max-width: 760px) { .fq-top::before { inset: 0; width: auto; -webkit-mask-image: none; mask-image: none; background-position: center 60%; } .fq-top::after { background: linear-gradient(180deg, rgba(10, 20, 48, .72) 0%, rgba(10, 20, 48, .82) 100%); } }
