/* FAQ page */
.fq { max-width: 1120px; margin: 0 auto; padding: 8px 20px 48px; }
.fq-hero { text-align: center; padding: 34px 0 26px; }
.fq-kicker { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-size: .78rem; font-weight: 700; letter-spacing: .03em; color: var(--text);
  background: color-mix(in srgb, var(--brand, #4285f4) 14%, var(--card, #fff)); border: 1px solid color-mix(in srgb, var(--brand, #4285f4) 35%, transparent); }
.fq h1 { font-size: clamp(1.8rem, 4.4vw, 3rem); line-height: 1.12; letter-spacing: -.02em; font-weight: 800; margin: 16px auto 14px; max-width: 900px; }
.fq-hl { color: var(--brand-dark, #1a56c4); }
[data-theme="dark"] .fq-hl { color: var(--brand, #4285f4); }
.fq-lead { max-width: 820px; margin: 0 auto 26px; font-size: 1.03rem; line-height: 1.7; color: var(--muted); }

.fq-search { position: relative; max-width: 680px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 0 16px; border: 2px solid var(--border); border-radius: 18px; background: var(--card, #fff);
  box-shadow: 0 18px 44px -22px rgba(35,31,31,.3); color: var(--muted); transition: border-color .15s, box-shadow .15s; }
.fq-search:focus-within { border-color: var(--brand, #4285f4); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand, #4285f4) 22%, transparent), 0 18px 44px -22px rgba(35,31,31,.3); }
.fq-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 18px 0; font: 500 1rem Montserrat, sans-serif; color: var(--text); outline: none; box-shadow: none; -webkit-appearance: none; }
.fq-search input::-webkit-search-cancel-button { display: none; }
.fq-x { border: 0; background: var(--border); color: var(--text); width: 28px; height: 28px; border-radius: 50%; font-size: 1.1rem; line-height: 1; cursor: pointer; }
.fq-quick { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin-top: 14px; font-size: .84rem; color: var(--muted); }
.fq-pill { border: 1px solid var(--border); background: var(--card, #fff); color: var(--text); padding: 5px 13px; border-radius: 999px; font: 600 .8rem Montserrat, sans-serif; cursor: pointer; transition: all .15s; }
.fq-pill:hover { border-color: var(--brand, #4285f4); background: color-mix(in srgb, var(--brand, #4285f4) 10%, var(--card, #fff)); }

.fq-layout { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 34px; align-items: start; margin-top: 18px; }

/* topic nav */
.fq-nav { position: sticky; top: 96px; }
.fq-nav-h { margin: 0 0 10px; font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.fq-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.fq-nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; border: 1px solid transparent; color: var(--muted); font-size: .88rem; font-weight: 600; line-height: 1.3; text-decoration: none; transition: all .15s; }
.fq-nav a:hover { background: var(--card, #fff); color: var(--text); text-decoration: none; }
.fq-nav a.is-active { background: var(--card, #fff); border-color: color-mix(in srgb, var(--brand, #4285f4) 45%, var(--border)); color: var(--text); box-shadow: 0 10px 26px -18px rgba(35,31,31,.4); }
.fq-nav-ico { flex: none; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--brand, #4285f4) 14%, transparent); color: var(--brand-dark, #1a56c4); }
.fq-nav a.is-active .fq-nav-ico { background: var(--brand, #4285f4); color: #fff; }
.fq-nav-t { flex: 1; } .fq-nav em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--muted); }
.fq-nav-help { margin-top: 18px; padding: 18px; border-radius: 18px; display: grid; gap: 6px; justify-items: start; color: #fff; background: linear-gradient(155deg, #1f2937, #3b2a1d); }
.fq-nav-help span { font-size: .82rem; color: rgba(255,255,255,.72); margin-bottom: 6px; }

/* list */
.fq-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: .88rem; color: var(--muted); font-weight: 600; }
.fq-link { border: 0; background: none; color: var(--brand-dark, #1a56c4); font: 700 .86rem Montserrat, sans-serif; cursor: pointer; padding: 4px 0; }
[data-theme="dark"] .fq-link { color: var(--brand, #4285f4); }
.fq-group { margin-bottom: 38px; scroll-margin-top: 96px; }
.fq-group[hidden] { display: none; }
.fq-gh { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.fq-gico { flex: none; width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--brand, #4285f4); color: #fff; }
.fq-gh h2 { margin: 0; font-size: clamp(1.15rem, 2.4vw, 1.45rem); font-weight: 800; letter-spacing: -.01em; line-height: 1.25; }

.fq-item { border: 1px solid var(--border); border-radius: 18px; background: var(--card, #fff); margin-bottom: 12px; transition: border-color .15s, box-shadow .2s; scroll-margin-top: 100px; }
.fq-item[hidden] { display: none; }
.fq-item:hover { border-color: color-mix(in srgb, var(--brand, #4285f4) 40%, var(--border)); }
.fq-item[open] { border-color: color-mix(in srgb, var(--brand, #4285f4) 60%, var(--border)); box-shadow: 0 16px 36px -22px rgba(35,31,31,.38); }
.fq-item summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 14px; padding: 18px 20px; border-radius: 18px; }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary:focus-visible { outline: 2px solid var(--brand, #4285f4); outline-offset: 2px; }
.fq-n { flex: none; min-width: 32px; height: 32px; padding: 0 6px; border-radius: 10px; display: grid; place-items: center; font-size: .8rem; font-weight: 800; background: color-mix(in srgb, var(--brand, #4285f4) 14%, transparent); color: var(--brand-dark, #1a56c4); transition: all .15s; }
[data-theme="dark"] .fq-n { color: var(--brand, #4285f4); }
.fq-item[open] .fq-n { background: var(--brand, #4285f4); color: #fff; }
.fq-item h3 { flex: 1; margin: 0; font-size: 1.02rem; font-weight: 700; line-height: 1.4; }
.fq-plus { flex: none; position: relative; width: 28px; height: 28px; border-radius: 50%; background: var(--bg); border: 1px solid var(--border); transition: transform .25s, background .15s; }
.fq-plus::before, .fq-plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; margin: -1px 0 0 -6px; background: var(--text); border-radius: 2px; transition: transform .25s; }
.fq-plus::after { transform: rotate(90deg); }
.fq-item[open] .fq-plus { background: var(--brand, #4285f4); border-color: var(--brand, #4285f4); transform: rotate(180deg); }
.fq-item[open] .fq-plus::before, .fq-item[open] .fq-plus::after { background: #fff; } .fq-item[open] .fq-plus::after { transform: rotate(0); }
.fq-a { padding: 0 22px 20px 66px; color: var(--muted); font-size: .96rem; line-height: 1.75; animation: fqIn .25s ease; }
@keyframes fqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.fq-a p { margin: 0 0 12px; } .fq-a p:last-of-type { margin-bottom: 0; }
.fq-a a { color: var(--brand-dark, #1a56c4); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .fq-a a { color: var(--brand, #4285f4); }
.fq-a strong { color: var(--text); }
.fq-a code { background: var(--bg); border: 1px solid var(--border); border-radius: 6px; padding: 1px 6px; font-size: .86em; color: var(--text); }
.fq-a ul { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 10px; }
.fq-a li { position: relative; padding: 12px 14px 12px 38px; border-radius: 14px; background: var(--bg); border: 1px solid var(--border); }
.fq-a li::before { content: ""; position: absolute; left: 14px; top: 17px; width: 12px; height: 7px; border-left: 2.5px solid var(--brand, #4285f4); border-bottom: 2.5px solid var(--brand, #4285f4); transform: rotate(-45deg); }
.fq-foot { margin-top: 14px; }
.fq-perma { display: inline-flex; align-items: center; gap: 6px; font-size: .78rem !important; font-weight: 600 !important; color: var(--muted) !important; text-decoration: none !important; }
.fq-perma:hover { color: var(--text) !important; }
.fq-perma.is-done { color: #16a34a !important; }

.fq-empty { text-align: center; padding: 44px 20px; border: 2px dashed var(--border); border-radius: 22px; margin-bottom: 30px; }
.fq-empty p { color: var(--muted); margin: 6px 0 16px; }
.fq-cta { margin-top: 18px; padding: 30px; border-radius: 24px; display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; color: #fff; background: linear-gradient(135deg, #1f2937 0%, #3b2a1d 100%); position: relative; overflow: hidden; }
.fq-cta::before { content: ""; position: absolute; right: -60px; top: -60px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(66,133,244,.5), transparent 70%); }
.fq-cta h2 { margin: 0 0 4px; font-size: 1.4rem; font-weight: 800; color: #fff; } .fq-cta p { margin: 0; color: rgba(255,255,255,.75); }
.fq-cta-b { display: flex; gap: 10px; flex-wrap: wrap; position: relative; }
.fq-cta .btn-secondary { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.5); }

@media (max-width: 900px) {
  .fq-layout { grid-template-columns: 1fr; gap: 6px; }
  .fq-nav { position: sticky; top: 0; z-index: 5; margin: 0 -20px; padding: 10px 20px; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
  .fq-nav-h, .fq-nav-help, .fq-nav em { display: none; }
  .fq-nav ul { display: flex; overflow-x: auto; gap: 8px; scrollbar-width: none; } .fq-nav ul::-webkit-scrollbar { display: none; }
  .fq-nav a { white-space: nowrap; padding: 8px 14px; border: 1px solid var(--border); border-radius: 999px; background: var(--card, #fff); }
  .fq-nav-ico { display: none; }
  .fq-group, .fq-item { scroll-margin-top: 130px; }
}
@media (max-width: 560px) {
  .fq-item summary { padding: 15px 14px; gap: 10px; } .fq-item h3 { font-size: .95rem; }
  .fq-a { padding: 0 16px 18px 16px; }
  .fq-cta { padding: 24px 20px; } .fq-cta-b, .fq-cta-b .btn { width: 100%; text-align: center; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .fq-a { animation: none; } .fq-plus, .fq-plus::before, .fq-plus::after { transition: none; } }
