/* /faq — type and spacing only from the tokens and .t-* styles of shared/site.css (docs/type-system.md) */
.fq-hero { padding-top: calc(var(--header-h) + var(--sp-grid)); padding-bottom: var(--sp-section); }
.fq-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: calc(var(--sp-action) * 1.5) clamp(32px, 6vw, 96px); align-items: center; }
.fq-hero__text > .t-body { max-width: 640px; }
.fq-hero__photo { margin: 0; }
.fq-hero__photo img { display: block; width: 100%; height: auto; }

.fq-sec { padding-bottom: var(--sp-section); scroll-margin-top: calc(var(--header-h) + var(--sp-grid)); }
.fq-next { padding-bottom: 0; }
.fq-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--sp-action) clamp(32px, 6vw, 96px); align-items: start; }
.fq-head > .t-body, .fq-body { max-width: 640px; }
.fq-links { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-cap) var(--sp-action); margin-top: var(--sp-action); }
.fq-links:first-child { margin-top: 0; }
.fq-links + .t-body { margin-top: var(--sp-action); }
/* text link inside paragraphs, as on the homepage */
.tx { color: inherit; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; transition: color .2s ease-in-out; }
@media (hover: hover) { .tx:hover { color: var(--accent); text-decoration: none; } }
.tx:focus-visible { color: var(--accent); }

/* questions: native <details>, the answers are always in the HTML */
.fq-item { border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + var(--sp-grid)); }
.fq-item:last-child { border-bottom: 1px solid var(--line); }
.fq-item summary { position: relative; display: block; padding: var(--sp-grid) 56px var(--sp-grid) 0; cursor: pointer; list-style: none; transition: color .2s ease-in-out; }
.fq-item summary::-webkit-details-marker { display: none; }
.fq-item summary::before, .fq-item summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 24px; height: 1px; background: currentColor; transition: transform .2s ease-in-out; }
.fq-item summary::after { transform: rotate(90deg); }
.fq-item[open] summary::after { transform: none; }
@media (hover: hover) { .fq-item summary:hover { color: var(--accent); } }
.fq-item summary + .fq-answer { margin-top: 0; }
.fq-answer { max-width: 640px; padding-bottom: var(--sp-action); }
.fq-list { margin: var(--sp-cap) 0 0; padding-left: 20px; }
.fq-list + .t-body { margin-top: var(--sp-cap); }

/* recommended pages */
.fq-next__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--sp-action) var(--sp-grid); margin-top: calc(var(--sp-action) * 1.5); }
.fq-next__card { display: flex; flex-direction: column; align-items: flex-start; }
.fq-next__img { display: block; width: 100%; margin-bottom: var(--sp-cap); }
.fq-next__img img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: cover; }
.fq-next__card .t-h3 + .t-body { margin-top: var(--sp-label); }
.fq-next__card .tl { margin-top: var(--sp-cap); }

@media (max-width: 960px) {
  .fq-hero__grid, .fq-grid { grid-template-columns: minmax(0, 1fr); }
  .fq-next__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .fq-item summary { padding-right: 44px; }
  .fq-next__cards { grid-template-columns: minmax(0, 1fr); }
}
