/*
 * FAQs and Safety tips pages (frontend/components/faq, frontend/components/safety).
 * The body already starts below the old 52px bar (site-header.css); pages add the
 * category links row (--sg-strip) on top.
 */
.sgp { --ink: #12161C; --ink-2: #3A424D; --muted: #5B6470; --line: #E3E7EC; --bg: #F4F6F8; --blue: #066CB5; --link: #0062A8; --green: #098342; --amber: #8A4B00; --r: 12px;
  background: var(--bg); color: var(--ink); font: 14px/1.55 Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased;
  padding: calc(var(--sg-hdr-old, 52px) + var(--sg-strip, 0px)) 0 48px; }
.sgp *, .sgp *::before, .sgp *::after { box-sizing: border-box; }
/* The theme gives every ::before the icon font; text markers here need the page font. */
.sgp li::before { font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; }
.sgp :where(h1, h2, h3, p, ul, ol, li) { margin: 0; padding: 0; list-style: none; font-family: inherit; text-transform: none; color: inherit; line-height: inherit; }
.sgp :where(a) { color: inherit; text-decoration: none; }
.sgp a::before, .sgp a::after { content: none; }
.sgp [hidden] { display: none !important; }
.sgp .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.sgp .i-sm { width: 16px; height: 16px; }
.sgp a:focus-visible, .sgp button:focus-visible, .sgp input:focus-visible, .sgp summary:focus-visible { outline: 3px solid #4DA3E0; outline-offset: 2px; }
.sgp button { font-family: inherit; }
.sgp mark { background: #FFE9A8; color: inherit; border-radius: 2px; padding: 0; }
.sgp-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.sgp-wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

.sgp-crumb { font-size: 12px; color: var(--muted); padding: 18px 0 12px; }
.sgp-crumb a { color: var(--link); }
.sgp-crumb span { margin: 0 6px; }
.sgp-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.sgp-head h1 { font-size: 30px; line-height: 1.2; font-weight: 700; letter-spacing: -.3px; }
.sgp-head p { color: var(--ink-2); margin-top: 6px; max-width: 620px; }

.sgp-find { position: relative; display: block; margin: 0; font-weight: 400; }
.sgp-find .i { position: absolute; left: 14px; top: 50%; margin-top: -9px; color: var(--muted); }
.sgp-find input { width: 100%; height: 46px; border: 1px solid #CDD5DD; border-radius: 10px; padding: 0 14px 0 42px; font: inherit; font-size: 14px; background: #fff; color: var(--ink); margin: 0; box-shadow: none; }
.sgp-find input:focus { outline: 3px solid rgba(77, 163, 224, .5); border-color: #4DA3E0; }

.sgp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 42px; padding: 0 16px; border-radius: 10px; font-weight: 600; font-size: 13px; }
.sgp-btn.is-g { background: var(--green); color: #fff !important; }
.sgp-btn.is-g:hover { background: #07703A; }
.sgp-btn.is-o { border: 1px solid #C9D3DC; color: var(--ink); background: #fff; }
.sgp-cross { margin-top: 40px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.sgp-cross b { font-size: 15px; font-weight: 600; }
.sgp-cross p { color: var(--muted); font-size: 13px; }
.sgp-cross a { flex: none; color: var(--link); font-weight: 600; display: flex; align-items: center; gap: 6px; }

/* ---------- FAQs ---------- */
.sgp-ask { padding: 26px 0 8px; }
.sgp-ask form { display: flex; gap: 8px; max-width: 720px; margin: 0; }
.sgp-ask .sgp-find { flex: 1; }
.sgp-ask button[type="submit"] { height: 46px; padding: 0 22px; border: 0; border-radius: 10px; background: var(--blue); color: #fff; font-weight: 600; font-size: 14px; cursor: pointer; }
.sgp-ask button[type="submit"]:hover { background: #055A97; }
.sgp-try { margin-top: 10px !important; font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sgp-try button { border: 0; background: none; padding: 0; color: var(--link); font-weight: 500; font-size: 13px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

.sgp-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; margin-top: 24px; }
.sgp-layout > * { min-width: 0; }
.sgp-side { position: sticky; top: 16px; }
.sgp-side h2 { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin: 0 0 8px 2px; }
.sgp-topics { display: grid; gap: 4px; }
.sgp-topic { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; background: none; border: 1px solid transparent; border-radius: 10px; cursor: pointer; font-weight: 500; font-size: 14px; color: var(--ink-2); text-align: left; line-height: 1.3; }
.sgp-topic:hover { background: #fff; border-color: var(--line); color: var(--ink); }
.sgp-tic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: #EEF3F8; color: #2F5F8A; flex: none; }
.sgp-n { margin-left: auto; color: var(--muted); font-size: 13px; }
.sgp-topic[aria-pressed="true"] { background: #fff; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); color: var(--ink); }
.sgp-topic[aria-pressed="true"] .sgp-tic { background: var(--blue); color: #fff; }

.sgp-qbox { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px 26px 10px; }
.sgp-qbar { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.sgp-qbar h2 { font-size: 20px; font-weight: 700; }
.sgp-qbar p { font-size: 13px; color: var(--muted); }
.sgp-qbar p button { border: 0; background: none; color: var(--link); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0; margin-left: 6px; }
.sgp-expand { flex: none; height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff; font-weight: 500; font-size: 13px; color: var(--ink-2); cursor: pointer; }
.sgp-group { padding: 20px 0 6px; }
.sgp-group h3 { font-size: 13px; font-weight: 600; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); margin-bottom: 4px; }
.sgp-group details { border-bottom: 1px solid var(--line); }
.sgp-group details:last-child { border-bottom: 0; }
.sgp-group summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 15px 0; font-weight: 600; font-size: 15px; line-height: 1.45; }
.sgp-group summary::-webkit-details-marker { display: none; }
.sgp-group summary::marker { content: ""; }
.sgp-group summary .i { color: var(--muted); transition: transform .15s; }
.sgp-group summary:hover, .sgp-group details[open] summary { color: var(--link); }
.sgp-group details[open] summary .i { transform: rotate(180deg); }
.sgp-ans { padding: 0 40px 18px 0; color: var(--ink-2); max-width: 760px; }
.sgp-ans * { font-size: 15px !important; line-height: 1.7 !important; font-family: inherit !important; }
.sgp-ans p, .sgp-ans li { margin: 0 0 10px; }
.sgp-ans ol, .sgp-ans ul { padding-left: 22px; margin: 0 0 10px; }
.sgp-ans ol li { list-style: decimal; }
.sgp-ans ul li { list-style: disc; }
.sgp-ans a { color: var(--link); text-decoration: underline; }
.sgp-ans img { max-width: 100%; height: auto; }
.sgp .sgp-copy { border: 0; background: none; padding: 0; color: var(--muted); font-size: 12px !important; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; word-break: break-all; text-align: left; }
.sgp-empty { padding: 28px 0 34px; color: var(--muted); text-align: center; }
.sgp-empty b { display: block; color: var(--ink); font-size: 15px; font-weight: 600; margin-bottom: 4px; }
.sgp-empty button { border: 0; background: none; color: var(--link); font-weight: 600; font-size: 14px; cursor: pointer; padding: 0; }

.sgp-help { margin-top: 18px; display: flex; align-items: center; gap: 18px; padding: 18px 22px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.sgp-hic { width: 40px; height: 40px; border-radius: 10px; background: #E9F5EE; color: var(--green); display: grid; place-items: center; flex: none; }
.sgp-help > div { flex: 1; }
.sgp-help h2 { font-size: 16px; font-weight: 700; }
.sgp-help p { font-size: 13px; color: var(--muted); }
.sgp-help .sgp-go { display: flex; gap: 10px; flex: none; }

/* ---------- Safety tips ---------- */
.sgp-head-safe { align-items: stretch; }
.sgp-short { flex: none; width: 380px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 10px; padding: 16px 18px; }
.sgp-short h2 { font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.sgp-short li { display: flex; gap: 10px; padding: 4px 0; }
.sgp-short li .i { color: var(--green); margin-top: 3px; }

.sgp-jump { position: sticky; top: 0; z-index: 5; background: var(--bg); border-bottom: 1px solid var(--line); margin-top: 18px; }
.sgp-jump ul { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.sgp-jump ul::-webkit-scrollbar { display: none; }
.sgp-jump a { display: block; padding: 12px 14px; font-weight: 500; color: var(--ink-2); border-bottom: 2px solid transparent; white-space: nowrap; }
.sgp-jump a:hover { color: var(--ink); }
.sgp-jump a.is-on { color: var(--ink); border-bottom-color: var(--blue); }
.sgp-sec { padding-top: 36px; scroll-margin-top: 50px; }
.sgp-title { font-size: 20px; font-weight: 700; }
.sgp-sub { color: var(--muted); margin: 2px 0 16px !important; }

.sgp-guide { background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sgp-ghead { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.sgp-steps { display: flex; gap: 22px; font-size: 13px; color: var(--muted); }
.sgp-steps span { display: flex; align-items: center; gap: 6px; }
.sgp-steps em { font-style: normal; }
.sgp-steps b { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; background: #EEF0F3; color: var(--ink-2); }
.sgp-steps span.is-on { color: var(--ink); font-weight: 600; }
.sgp-steps span.is-on b { background: var(--ink); color: #fff; }
.sgp-steps span.is-done b { background: var(--green); color: #fff; }
.sgp-reset { border: 0; background: none; color: var(--link); font-weight: 600; font-size: 13px; cursor: pointer; padding: 0; }
.sgp-gbody { display: grid; grid-template-columns: 190px minmax(0, 1fr) 250px; }
.sgp-gbody > * { padding: 18px 20px; min-width: 0; }
.sgp-gbody > * + * { border-left: 1px solid var(--line); }
.sgp-label { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 10px !important; }
.sgp-situ { display: grid; gap: 6px; }
.sgp-situ button { display: flex; align-items: center; gap: 10px; width: 100%; height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-weight: 500; font-size: 14px; color: var(--ink-2); cursor: pointer; text-align: left; }
.sgp-situ button .i { color: var(--muted); }
.sgp-situ button[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); background: #F3F8FD; color: var(--ink); }
.sgp-situ button[aria-pressed="true"] .i { color: var(--blue); }
.sgp-checks h3 { font-size: 16px; font-weight: 600; }
.sgp-hint { font-size: 13px; color: var(--muted); margin-bottom: 8px !important; }
.sgp-checks li { border-top: 1px solid var(--line); }
.sgp-checks li:first-child { border-top: 0; }
.sgp-checks label { display: flex; gap: 12px; align-items: flex-start; padding: 11px 0; margin: 0; cursor: pointer; font-weight: 400; }
.sgp-checks input { width: 18px; height: 18px; margin: 3px 0 0; accent-color: var(--green); flex: none; }
.sgp-checks input:checked + span { color: var(--muted); }
.sgp-prog { margin-top: 10px; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--muted); }
.sgp-bar { flex: 1; height: 6px; border-radius: 3px; background: #EEF0F3; overflow: hidden; }
.sgp-bar i { display: block; height: 100%; width: 0; background: var(--green); transition: width .2s; }
.sgp-doubt { margin-top: 14px; display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border-radius: 8px; border: 1px solid #F3DDB3; background: #FFF7E8; color: var(--amber); font-weight: 600; font-size: 13px; cursor: pointer; }
.sgp-doubt[aria-pressed="true"] { background: var(--amber); border-color: var(--amber); color: #fff; }
.sgp-next { background: #FAFBFC; }
.sgp-next h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }
.sgp-next p { font-size: 13px; color: var(--ink-2); }
.sgp-next a { display: inline-flex; align-items: center; gap: 4px; margin-top: 12px; color: var(--link); font-weight: 600; font-size: 13px; }
.sgp-next.is-ok { background: #F1F8F3; } .sgp-next.is-ok h3 { color: var(--green); }
.sgp-next.is-stop { background: #FFF7E8; } .sgp-next.is-stop h3 { color: var(--amber); }
.sgp-disc { padding: 10px 20px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

.sgp-tips { counter-reset: t; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 40px; border-top: 1px solid var(--line); }
.sgp-tips > li { counter-increment: t; display: grid; grid-template-columns: 38px 1fr; padding: 18px 0; border-bottom: 1px solid var(--line); }
.sgp .sgp-tips > li::before { position: static; content: counter(t); font-size: 22px; font-weight: 700; color: #B5BEC8; line-height: 1.2; }
.sgp-tips h3 { font-size: 16px; font-weight: 600; margin-bottom: 4px; }
.sgp-tips ul li { position: relative; padding-left: 16px; color: var(--ink-2); margin-top: 4px; }
.sgp-tips ul li::before { content: ""; position: absolute; left: 2px; top: 10px; width: 5px; height: 5px; border-radius: 50%; background: #9AA5B1; }

.sgp-signs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.sgp-signs li { background: #fff; border: 1px solid var(--line); border-top: 3px solid #D97706; border-radius: 10px; padding: 14px 16px; }
.sgp-signs b { display: block; font-weight: 600; margin-bottom: 2px; }
.sgp-signs span { font-size: 13px; color: var(--muted); }

.sgp-wrong { display: grid; grid-template-columns: minmax(0, 1fr) 300px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.sgp-wrong ol { counter-reset: w; padding: 8px 22px; }
.sgp-wrong ol li { counter-increment: w; display: grid; grid-template-columns: 34px 1fr; padding: 14px 0; border-top: 1px solid var(--line); }
.sgp-wrong ol li:first-child { border-top: 0; }
.sgp .sgp-wrong ol li::before { position: static; content: counter(w); width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; }
.sgp-wrong ol b { display: block; font-weight: 600; }
.sgp-wrong ol span { color: var(--ink-2); font-size: 13px; }
.sgp-wrong aside { background: #F7F9FB; border-left: 1px solid var(--line); padding: 20px 22px; display: flex; flex-direction: column; }
.sgp-wrong aside h3 { font-size: 15px; font-weight: 700; }
.sgp-wrong aside p { font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.sgp-wrong aside .sgp-btn { margin-top: 8px; }
.sgp-small { margin-top: 14px !important; font-size: 12px; color: var(--muted); }

/* ---------- Tablets and phones ---------- */
@media (max-width: 991.98px) {
  .sgp-layout { display: block; }
  /* Topics become a bar that sticks to the top of the screen */
  .sgp-side { position: sticky; top: 0; z-index: 5; background: var(--bg); margin: 0 -24px 14px; padding: 10px 24px; border-bottom: 1px solid var(--line); }
  .sgp-side h2 { display: none; }
  .sgp-topics { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .sgp-topics::-webkit-scrollbar { display: none; }
  .sgp-topic { flex: none; width: auto; background: #fff; border-color: var(--line); padding: 6px 12px 6px 6px; }
  .sgp-tic { width: 26px; height: 26px; }
  .sgp-group { scroll-margin-top: 70px; }

  .sgp-head-safe { flex-direction: column; }
  .sgp-short { width: auto; }
  .sgp-gbody { grid-template-columns: 1fr; }
  .sgp-gbody > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .sgp-situ { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .sgp-signs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgp-wrong { grid-template-columns: 1fr; }
  .sgp-wrong aside { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 767.98px) {
  .sgp { padding-bottom: 96px; }
  .sgp-wrap { padding: 0 16px; }
  .sgp-head { flex-direction: column; align-items: stretch; gap: 16px; }
  .sgp-head h1 { font-size: 24px; }
  .sgp-find input { font-size: 16px; }
  .sgp-cross { flex-direction: column; align-items: flex-start; }
  .sgp-ask form { flex-direction: column; }
  .sgp-ask button[type="submit"] { width: 100%; }
  .sgp-side { margin: 0 -16px 12px; padding: 10px 16px; }
  .sgp-qbox { padding: 16px 16px 6px; }
  .sgp-qbar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .sgp-ans { padding-right: 0; }
  .sgp-help { flex-direction: column; align-items: flex-start; }
  .sgp-help .sgp-go { width: 100%; flex-direction: column; }

  .sgp-jump { margin: 18px -16px 0; padding: 0 8px; }
  .sgp-ghead { padding: 12px 16px; }
  .sgp-steps { gap: 10px; }
  .sgp-steps em { display: none; }
  .sgp-gbody > * { padding: 16px; }
  .sgp-situ { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sgp-tips { grid-template-columns: 1fr; }
  .sgp-tips > li { grid-template-columns: 32px 1fr; }
  .sgp-signs { grid-template-columns: 1fr; }
  .sgp-wrong ol { padding: 4px 16px; }
  .sgp-disc { padding: 10px 16px; }
}
