/* Learning FAQ (core/faq.html): green hero with topic shortcuts, grouped accordions
   with next-step links beside a sticky help box, and a closing "where to start" row. */

.fq { --fq-line: rgb(255 255 255 / .16); --fq-soft: rgb(255 255 255 / .08); overflow-x: clip; }
.fq .jn-slide--white .jn-section-heading h2 { color: var(--jn-green); }
.fq .jn-section-heading { margin-bottom: 1.5rem; }
.fq .jn-section-heading h2 { letter-spacing: -.02em; }
.fq-icon { display: grid; place-items: center; flex-shrink: 0; width: 2.75rem; height: 2.75rem; border-radius: .8rem; background: rgb(255 111 63 / .14); color: var(--jn-orange); }
.fq-icon svg { width: 1.35rem; height: 1.35rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.fq-hero { padding-block: clamp(3.5rem, 7vw, 5rem); }
.fq-hero__tags { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin: 0 0 1.5rem; font-size: .75rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgb(255 255 255 / .7); }
.fq-badge { padding: .4rem .85rem; border-radius: .4rem; background: var(--jn-orange); color: #fff; font-size: .6875rem; font-weight: 700; letter-spacing: .1em; }
.fq-hero h1 { font-size: clamp(1.75rem, 3.2vw, 2.25rem); line-height: 1.15; letter-spacing: -.02em; color: #fff; }
.fq-hero h1 span { color: var(--jn-orange); }
.fq-hero__lead { max-width: 40rem; margin-top: 1rem; font-size: clamp(.9375rem, 1.6vw, 1.125rem); line-height: 1.75; color: rgb(255 255 255 / .78); }
.fq-topics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin-top: 2.25rem; }
.fq-topic { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.15rem; border: 1px solid var(--fq-line); border-radius: var(--jn-radius-sm); background: var(--fq-soft); color: #fff; text-decoration: none; transition: border-color .2s ease, translate .3s ease; }
.fq-topic:hover { translate: 0 -3px; border-color: var(--jn-orange); }
.fq-topic span:last-child { display: grid; gap: .15rem; }
.fq-topic strong { font-size: .9375rem; }
.fq-topic small { font-size: .75rem; color: rgb(255 255 255 / .6); }

/* Questions */
.fq-layout { display: grid; gap: 3.5rem; max-width: 56rem; margin-inline: auto; }
.fq-groups { display: grid; gap: 3.5rem; }
.fq-group { scroll-margin-top: calc(var(--jn-header-height) + 1.5rem); }
.fq-list { display: grid; gap: .75rem; }
.fq-item { border: 1px solid var(--jn-border); border-radius: var(--jn-radius-sm); background: var(--jn-cream); transition: border-color .2s ease, background-color .2s ease; }
.fq-item[open] { border-color: rgb(255 111 63 / .45); background: #fff; }
.fq-item summary { display: flex; align-items: center; gap: 1rem; padding: 1.15rem 1.35rem; font-weight: 700; line-height: 1.45; color: var(--jn-green); cursor: pointer; list-style: none; }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary::after { content: "+"; flex-shrink: 0; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; margin-left: auto; border-radius: 50%; background: rgb(1 60 53 / .07); color: var(--jn-orange-dark); font-size: 1.1rem; transition: rotate .3s ease, background .2s, color .2s; }
.fq-item[open] summary::after { rotate: 45deg; background: var(--jn-orange); color: #fff; }
.fq-item__answer { padding: 0 1.35rem 1.25rem; font-size: .9375rem; line-height: 1.7; color: #444; }
.fq-item__links { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin-top: .75rem; }
.fq-item__links a { color: var(--jn-orange-dark); font-size: .875rem; font-weight: 700; text-decoration: none; }
.fq-item__links a:hover { text-decoration: underline; }
/* Help banner after the questions: Telegram badge, copy and button on one line. */
.fq-help { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 1.25rem 1.5rem; align-items: center; padding: 1.75rem 2rem; overflow: hidden; border-radius: var(--jn-radius); background: radial-gradient(ellipse at 100% 0, rgb(255 111 63 / .22), transparent 55%), var(--jn-green); color: #fff; }
.fq-help__plane { position: absolute; top: -2.25rem; right: -1.75rem; width: 8.5rem; height: 8.5rem; fill: rgb(255 255 255 / .07); rotate: 14deg; pointer-events: none; }
.fq-help__icon { position: relative; display: grid; place-items: center; width: 3.75rem; height: 3.75rem; border-radius: 50%; background: #fff; color: var(--jn-green); box-shadow: 0 0 0 8px rgb(255 255 255 / .1); }
.fq-help__icon svg { width: 1.9rem; height: 1.9rem; margin-left: -.15rem; fill: currentColor; }
.fq-help__copy { position: relative; display: grid; gap: .3rem; }
.fq-help__copy strong { font-size: 1.25rem; line-height: 1.3; }
.fq-help__copy p { font-size: .9375rem; line-height: 1.6; color: rgb(255 255 255 / .78); }
.fq-help__button { position: relative; white-space: nowrap; }
@media (hover: hover) {
  .fq-help__icon { transition: rotate .4s ease, background-color .25s ease, color .25s ease; }
  .fq-help:hover .fq-help__icon { rotate: -12deg; background: var(--jn-orange); color: #fff; }
}

/* Next step */
.fq-next { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0; padding: 0; list-style: none; }
.fq-next-section { border-top: 1px solid var(--jn-border); }
.fq-next a { display: grid; align-content: start; gap: .5rem; height: 100%; padding: 1.5rem; border: 1px solid var(--jn-border); border-radius: var(--jn-radius); background: var(--jn-cream); color: #111; text-decoration: none; transition: translate .3s ease, box-shadow .3s ease, border-color .2s ease; }
.fq-next a:hover { translate: 0 -4px; border-color: var(--jn-orange); box-shadow: 0 18px 40px rgb(1 60 53 / .12); }
.fq-next .fq-icon { margin-bottom: .4rem; color: var(--jn-orange-dark); }
.fq-next strong { font-size: 1.0625rem; color: var(--jn-green); }
.fq-next a > span:last-child { font-size: .9375rem; line-height: 1.6; color: #444; }

/* Motion: hero entrance; system.css disables it for reduced motion and .jn-lite. */
@keyframes fq-in { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.fq-hero .jn-container > * { animation: fq-in .7s cubic-bezier(.2, .7, .2, 1) both; }
.fq-hero .jn-container > :nth-child(2) { animation-delay: .08s; }
.fq-hero .jn-container > :nth-child(3) { animation-delay: .16s; }
.fq-hero .jn-container > :nth-child(4) { animation-delay: .24s; }
@supports (::details-content) {
  .fq-item::details-content { block-size: 0; overflow: clip; transition: block-size .3s ease, content-visibility .3s allow-discrete; }
  .fq-item[open]::details-content { block-size: auto; }
  .fq { interpolate-size: allow-keywords; }
}

/* Responsive */
@media (max-width: 900px) {
  .fq-topics, .fq-next { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 40rem) {
  .fq-topics { gap: .5rem; margin-top: 1.75rem; }
  .fq-topic { padding: .65rem .9rem; }
  .fq-topic .fq-icon { width: 2.1rem; height: 2.1rem; border-radius: .6rem; }
  .fq-topic small { display: none; }
  .fq-help { grid-template-columns: auto minmax(0, 1fr); padding: 1.5rem 1.25rem; }
  .fq-help__icon { width: 3rem; height: 3rem; }
  .fq-help__icon svg { width: 1.5rem; height: 1.5rem; }
  .fq-help__button { grid-column: 1 / -1; text-align: center; }
}
