/* Datum 2026: the FAQ hub. Uses home.css for shared heads. Order: hero and search, layout and topics, questions, empty and ask. */

/* ---------- Hero and search ---------- */
.f-hero { padding-top: clamp(56px, 8vw, 104px); padding-bottom: clamp(32px, 4vw, 48px); background: radial-gradient(120% 140% at 10% 0%, rgba(87, 36, 103, .55) 0%, var(--base) 60%); }
.f-hero__title { font-size: var(--h1); line-height: .98; margin: 0; }
.f-hero__lead { max-width: 52ch; margin: 22px 0 0; }
.f-search { position: relative; max-width: 640px; margin-top: 32px; }
.f-search input { width: 100%; min-height: 56px; padding: 14px 52px 14px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--white); font: 400 16px/1.3 var(--sans); }
.f-search input::placeholder { color: rgba(255, 255, 255, .6); }
.f-search input:focus { outline: 3px solid var(--yellow); outline-offset: 2px; background: rgba(255, 255, 255, .12); }
.f-search__clear { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: none; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.f-search__status { min-height: 1.5em; margin: 12px 0 0; font-size: 14px; color: var(--soft); }

/* ---------- Layout and topics ---------- */
.f-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 32px 56px; padding-top: 32px; padding-bottom: clamp(56px, 6.7vw, 96px); }
@media (min-width: 1000px) { .f-layout { grid-template-columns: 260px minmax(0, 1fr); } }
.f-topics__title { color: var(--green); margin-bottom: 14px; }
.f-topics ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.f-topics a { display: inline-flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; white-space: nowrap; text-decoration: none; font-size: 14px; font-weight: 500; transition: background-color .2s, border-color .2s, color .2s; }
.f-topics a span { font-size: 12px; opacity: .6; }
.f-topics a:hover { border-color: var(--white); }
.f-topics a.is-current { background: var(--white); color: var(--base); border-color: var(--white); }
@media (min-width: 1000px) {
	.f-topics { position: sticky; top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px) + 24px); align-self: start; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
	.f-topics ul { flex-direction: column; overflow: visible; gap: 2px; }
	.f-topics a { width: 100%; border: 0; border-radius: var(--r); white-space: normal; padding: 9px 12px; }
	.f-topics a.is-current { background: rgba(255, 255, 255, .1); color: var(--white); box-shadow: inset 3px 0 0 var(--pink); }
}
@media (max-width: 999px) { .f-topics { position: sticky; top: calc(var(--header-h) + var(--wp-admin--admin-bar--height, 0px)); z-index: 5; background: var(--base); margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); border-bottom: 1px solid var(--line); } .f-topics__title { display: none; } }

/* ---------- Questions ---------- */
.f-topic { scroll-margin-top: calc(var(--header-h) + 72px); }
.f-topic + .f-topic { margin-top: 56px; }
.f-topic__title { font-size: clamp(28px, 3vw, 40px); margin: 0 0 6px; }
.f-topic__intro { color: var(--soft); margin: 0 0 18px; }
.f-q { border-bottom: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 72px); }
.f-q summary { list-style: none; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; padding: 18px 0; cursor: pointer; font: 600 17px/1.4 var(--sans); }
.f-q summary::-webkit-details-marker { display: none; }
.f-q summary:hover .f-q__text { color: var(--blue); }
.f-q__icon { flex: none; position: relative; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%; border: 1px solid var(--line); }
.f-q__icon::before, .f-q__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 2px; margin: -1px 0 0 -5px; background: currentColor; transition: transform .25s var(--ease); }
.f-q__icon::after { transform: rotate(90deg); }
.f-q[open] .f-q__icon::after { transform: rotate(0deg); }
.f-q[open] summary { color: var(--white); }
.f-q[open] .f-q__icon { background: var(--pink); border-color: var(--pink); }
.f-q__answer { padding: 0 42px 22px 0; color: var(--soft); max-width: 75ch; }
.f-q__answer p { margin: 0 0 .8em; }
.f-q__answer a:not(.f-q__link) { color: var(--blue); }
.f-q__link { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--soft); text-decoration: none; opacity: .7; }
.f-q__link:hover, .f-q__link:focus-visible { opacity: 1; text-decoration: underline; }
.f-q mark { background: rgba(255, 200, 50, .35); color: inherit; border-radius: 2px; padding: 0 1px; }
.f-q:target summary .f-q__text, .f-q.is-flash summary .f-q__text { color: var(--yellow); }

/* ---------- Empty and ask ---------- */
.f-empty { padding: 40px 0; }
.f-empty h2 { font-size: 28px; }
.f-ask { margin-top: 64px; padding: clamp(28px, 4vw, 44px); border-radius: var(--r-lg); background: linear-gradient(120deg, rgba(238, 75, 157, .22), rgba(87, 36, 103, .35)); border: 1px solid var(--line); }
.f-ask h2 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 8px; }
.f-ask p { color: var(--soft); }
.f-ask .btn-row { margin-top: 20px; }
