/*
 * MINK public FAQ — accordion styles.
 *
 * Matches the site's dark theme (mink.css palette): #1c1c1c body, #2a2a2f
 * surfaces, #3a3a42 borders, #c9c9d4 muted text, #9bf1ff cyan accent, #d52634
 * red. Built on native <details>/<summary> (works without JS); faq.js layers on
 * the accordion behaviour.
 */
/* Use the same content column as the rest of the site (#main > * > .inner:
   max-width 65em, centred, no side padding) so the header lines up with the
   contact section and every other content block — same width, same left edge. */
.faq-wrap { max-width: 65em; margin: 0 auto; padding: 0 0 4em; }
.faq-head { margin-bottom: 1.8em; }
.faq-intro { margin: .35em 0 0; color: #c9c9d4; font-size: 1em; max-width: 100%; }
/* Support link: the blue is only on the underline, the text keeps the intro's
   colour (not a fully coloured link). Hover brightens the underline and holds
   the text colour so the theme's red :hover doesn't repaint the whole phrase. */
.faq-intro a { color: inherit; text-decoration: underline; text-decoration-color: #9bf1ff; text-underline-offset: 2px; }
.faq-intro a:hover { color: inherit !important; text-decoration-color: #d52634; }
.faq-empty { color: #c9c9d4; }

/* --- Accordion list ---------------------------------------------------- */
.faq-list { display: flex; flex-direction: column; gap: .7em; }

.faq-item {
    background: #232327;
    border: 1px solid #3a3a42;
    border-radius: 12px;
    overflow: hidden;
    transition: border-color .18s ease, background-color .18s ease;
}
.faq-item[open] { border-color: #4a4a55; background: #26262b; }
.faq-item:hover { border-color: #4a4a55; }

.faq-item[open] > .faq-q { border-bottom: 1px solid #d52634; }

/* Question row (the clickable summary). Drop the native disclosure marker. */
.faq-q {
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1em;
    padding: 1em 1.15em;
    cursor: pointer;
    color: #f2f2f4;
    font-weight: 600;
    font-size: 1.02em;
    line-height: 1.4;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
}
.faq-q::-webkit-details-marker { display: none; }
.faq-q::marker { content: ''; }
.faq-q:hover { color: #fff; }
.faq-q:focus-visible { outline: 2px solid #9bf1ff; outline-offset: -2px; border-radius: 12px; }

.faq-q-text { flex: 1; }

/* Chevron — rotates when the item opens. */
.faq-q-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    color: #c9c9d4;
    transition: transform .22s ease, color .18s ease, background-color .18s ease;
}
.faq-item[open] .faq-q-icon { transform: rotate(180deg); color: #d52634; }
.faq-q:hover .faq-q-icon { color: #fff; }

/* --- Answer ------------------------------------------------------------ */
.faq-a {
    padding: 1.15em;
    color: #d6d6dc;
    font-size: .96em;
    line-height: 1.6;
}
.faq-item[open] .faq-a { animation: faq-reveal .24s ease both; }
@keyframes faq-reveal {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Rich-text content inside an answer (HugeRTE output). */
.faq-a > :first-child { margin-top: 0; }
.faq-a > :last-child { margin-bottom: 0; }
.faq-a p { margin: 0 0 .8em; }
.faq-a h1, .faq-a h2, .faq-a h3, .faq-a h4, .faq-a h5, .faq-a h6 {
    color: #f2f2f4;
    margin: 1.1em 0 .5em;
    line-height: 1.3;
}
.faq-a h3 { font-size: 1.1em; }
.faq-a h4 { font-size: 1em; }
.faq-a ul, .faq-a ol { margin: 0 0 .8em; padding-left: 2em; font-size: 17px; }
.faq-a ul {list-style: disc;}
.faq-a ol {list-style: decimal;}
.faq-a li { margin: 0; }
.faq-a a { color: #9bf1ff; text-decoration: underline; text-underline-offset: 2px; }
.faq-a a:hover { color: #cbf7ff; }
.faq-a strong, .faq-a b { color: #f2f2f4; }
.faq-a blockquote {
    margin: .8em 0;
    padding: .4em 0 .4em 1em;
    border-left: 3px solid #3a3a42;
    color: #c9c9d4;
}
.faq-a code {
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 5px;
    padding: .1em .35em;
    font-size: .9em;
}
.faq-a pre {
    background: rgba(255, 255, 255, .05);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    padding: .8em 1em;
    overflow-x: auto;
}
.faq-a pre code { background: transparent; border: 0; padding: 0; }
.faq-a img { max-width: 100%; height: auto; border-radius: 8px; }
.faq-a table { width: 100%; border-collapse: collapse; margin: .8em 0; }
.faq-a th, .faq-a td { border: 1px solid #3a3a42; padding: .45em .6em; text-align: left; }
.faq-a th { background: rgba(255, 255, 255, .04); color: #f2f2f4; }

@media (max-width: 600px) {
    .faq-q { font-size: .98em; padding: .9em 1em; }
    .faq-a { padding: 1.5em .5em;}
}
