/* PilotTrain questions page (.ptfq): the FAQ, in the legal pages' layout (.ptlg, pt-legal.css).
   The same short hero, the same contents list that follows the reader on a wide screen and folds
   away on a phone. What is added here: the questions as fold-away rows, one card per topic, and a
   small "still stuck" card under the contents on a wide screen. This file loads after
   pt-legal.css and needs it. The markup is written by faq-mockup/build.py (in the project
   folder); pt-faq.js adds the small behaviours. Nothing here moves or repaints while the page scrolls. */

/* the hero has no tabs along its lower edge, so it closes itself */
.ptlg.ptfq .ptlg-hero{padding-bottom:38px;}
/* a topic or a question that is jumped to stops with a little air under the site header (about
   102px tall on a phone, 112px on a wide screen); the legal pages' sections bring their own
   space above the heading, these do not */
.ptlg.ptfq .ptlg-sec, .ptlg.ptfq .ptfq-qa{scroll-margin-top:128px;}

/* =============================================================
   1. A TOPIC: its heading, then a card of questions
   ============================================================= */
.ptlg.ptfq .ptlg-sec{margin-top:38px; padding-top:0; border-top:0;}
.ptlg.ptfq .ptlg-doc > .ptlg-sec:first-child{margin-top:0;}

.ptlg.ptfq .ptfq-list{
  margin-top:16px; border:1px solid var(--line); border-radius:16px; background:var(--card);
  box-shadow:0 1px 2px rgba(10,26,43,.04); overflow:hidden;
}
.ptlg.ptfq .ptfq-qa{border-top:1px solid var(--line);}
.ptlg.ptfq .ptfq-qa:first-child{border-top:0;}

/* ---------- the question ---------- */
.ptlg.ptfq .ptfq-qa > summary{
  display:flex; align-items:flex-start; gap:14px; padding:17px 16px 17px 18px;
  transition:background .14s ease;
}
.ptlg.ptfq .ptfq-qa > summary:hover{background:#f8fafd;}
/* the card clips what hangs outside it, so the keyboard's ring is drawn inside the row */
.ptlg.ptfq .ptfq-qa > summary:focus-visible{outline-offset:-3px; border-radius:12px;}
.ptlg.ptfq .ptfq-qa > summary h3{
  flex:1 1 auto; min-width:0; margin:0;
  font-size:16.5px; font-weight:700; letter-spacing:-.01em; line-height:1.4; color:var(--ink); text-wrap:pretty;
}
.ptlg.ptfq .ptfq-ch{
  flex:none; width:26px; height:26px; margin-top:-1px; border-radius:50%; display:grid; place-items:center;
  color:var(--muted); background:#eef3fa;
  transition:transform .2s ease, background .16s ease, color .16s ease;
}
.ptlg.ptfq .ptfq-ch svg{width:15px; height:15px;}
.ptlg.ptfq .ptfq-qa[open] > summary .ptfq-ch{transform:rotate(180deg); background:var(--blue); color:#fff;}

/* ---------- the answer ---------- */
.ptlg.ptfq .ptfq-a{padding:0 18px 20px;}
.ptlg.ptfq .ptfq-a > :first-child{margin-top:0;}
.ptlg.ptfq .ptfq-a p, .ptlg.ptfq .ptfq-a li{font-size:16px; line-height:1.65;}
.ptlg.ptfq .ptfq-a p{margin-top:12px;}
.ptlg.ptfq .ptfq-a ul{margin-top:12px; gap:7px;}
.ptlg.ptfq .ptfq-a li{padding-left:26px;}
.ptlg.ptfq .ptfq-a ul > li::before{left:6px;}

/* =============================================================
   2. STILL STUCK: under the contents, on a wide screen only
   (on a phone the same offer is the first card at the end of the page)
   ============================================================= */
.ptlg.ptfq .ptfq-ask{display:none;}

/* =============================================================
   WIDER SCREENS
   ============================================================= */
@media (min-width:700px){
  .ptlg.ptfq .ptlg-hero{padding-bottom:50px;}
  .ptlg.ptfq .ptlg-sec{margin-top:44px;}
  .ptlg.ptfq .ptfq-list{margin-top:18px;}
  .ptlg.ptfq .ptfq-qa > summary{padding:19px 20px 19px 24px;}
  .ptlg.ptfq .ptfq-qa > summary h3{font-size:17px;}
  /* the answer keeps clear of the column the arrows sit in */
  .ptlg.ptfq .ptfq-a{padding:0 60px 24px 24px;}
}
@media (min-width:1000px){
  .ptlg.ptfq .ptfq-ask{
    display:block; margin:26px 0 0 10px; padding:16px 16px 15px;
    border:1px solid var(--line); border-radius:14px; background:var(--card);
  }
  .ptlg.ptfq .ptfq-ask b{display:block; font-size:15px; font-weight:800; letter-spacing:-.01em; line-height:1.3; color:var(--ink);}
  .ptlg.ptfq .ptfq-ask p{margin:5px 0 0; font-size:13.5px; line-height:1.5; color:var(--muted);}
  .ptlg.ptfq a.ptfq-ask-a, .ptlg.ptfq a.ptfq-ask-a:visited{
    display:inline-flex; align-items:center; gap:6px; margin-top:11px;
    font-size:14px; font-weight:700; line-height:1.3; color:var(--blue-dk);
  }
  .ptlg.ptfq a.ptfq-ask-a:hover{color:var(--blue);}
  .ptlg.ptfq a.ptfq-ask-a svg{width:14px; height:14px; transition:transform .16s ease;}
  .ptlg.ptfq a.ptfq-ask-a:hover svg{transform:translateX(3px);}
}

/* =============================================================
   ON PAPER: every question and its answer (pt-faq.js opens them first)
   ============================================================= */
@media print{
  .ptlg.ptfq .ptfq-list{border:0; border-radius:0; box-shadow:none; background:none; overflow:visible; margin-top:6pt;}
  .ptlg.ptfq .ptfq-qa{border:0; break-inside:avoid;}
  .ptlg.ptfq .ptfq-qa > summary{padding:8pt 0 2pt;}
  .ptlg.ptfq .ptfq-qa > summary h3{font-size:11.5pt; color:#000;}
  .ptlg.ptfq .ptfq-ch{display:none;}
  .ptlg.ptfq .ptfq-a{padding:0 0 4pt;}
  .ptlg.ptfq .ptfq-a p, .ptlg.ptfq .ptfq-a li{font-size:10.5pt; line-height:1.5; color:#000;}
}
