/* The club's official documents: the committee's panel and the licensee's list.
   The prefix gq- is this lot's alone — every stylesheet here is global. */

.gq-group {
    margin: 12px 0 0;
    font: 800 20px/1.2 var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #fff;
}

.gq-group:first-of-type { margin-top: 0; }

/* The members' list: a card per text, three to a row. */
.gq-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 16px;
}

.gq-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 20px;
    border: 1px solid var(--dark-border-1);
    border-radius: var(--radius-card);
    background: var(--thonon-night);
    color: #fff;
    text-decoration: none;
}

.gq-card:hover { border-color: var(--dark-border-2); }
.gq-card__head { display: flex; align-items: center; gap: 12px; }

.gq-card__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 1px solid var(--dark-border-2);
    background: var(--thonon-black);
}

.gq-card__title {
    font: 800 18px/1.2 var(--font-condensed);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.gq-card__pills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }

.gq-card__version,
.gq-card__adoption {
    min-height: 24px;
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--thonon-graphite);
    font: 700 12px/1.2 var(--font-mono);
    color: var(--dark-fg-2);
}

.gq-card__adoption {
    font-family: var(--font-condensed);
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.gq-card__adoption--todo {
    background: rgba(240, 192, 48, 0.14);
    color: var(--thonon-yellow);
}

/* The draft's editor, and the preview the same parser renders. */
.gq-editor {
    width: 100%;
    min-height: 320px;
    font-family: var(--font-mono, ui-monospace, monospace);
    font-size: .86rem;
    line-height: 1.55;
    resize: vertical;
}

.gq-preview {
    padding: 18px 20px;
    border: 1px dashed var(--gi-line, rgba(255, 255, 255, .14));
    border-radius: 12px;
    background: var(--gi-card, rgba(255, 255, 255, .02));
}

.gq-fieldset {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--gi-line, rgba(255, 255, 255, .1));
    border-radius: 12px;
}

.gq-fieldset legend {
    padding: 0 6px;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--gi-muted, #8a8f98);
}

/* A text's opening paragraph, above its sections. */
/* The committee's list: the counts in the banner, the charters in their own column. */
.gq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.gq-col { display: flex; flex-direction: column; gap: 20px; }
.gq-group-sec { display: flex; flex-direction: column; gap: 10px; }
.gq-count { margin-left: 8px; color: var(--dark-fg-2); font-size: 14px; }
.gq-docs { padding: 0; gap: 0; overflow: hidden; }

.gq-doc {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    min-height: 64px;
    padding: 12px 18px;
    border-top: 1px solid var(--dark-border-1);
    color: inherit;
    text-decoration: none;
}

.gq-doc:first-child { border-top: 0; }
.gq-doc:hover, .gq-doc:focus-visible { background: var(--thonon-graphite); }
.gq-doc__main { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gq-doc__main b { font-weight: 600; }
.gq-doc__main small { font-size: 13px; color: var(--dark-fg-2); }
.gq-doc__tags { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px; }

/* One document: the draft and its preview side by side on a desk, the versions under the preview. */
@media (min-width: 1100px) {
    .gq--editor .gi-body { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

.gq-todo { box-shadow: inset 0 -4px 0 var(--thonon-yellow); }
.gq-ver { display: flex; flex-direction: column; gap: 4px; padding-top: 12px; border-top: 1px solid var(--dark-border-1); }
.gq-ver:first-of-type { padding-top: 0; border-top: 0; }
.gq-ver__head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.gq-discard { color: #FF8A93; }
.gq-drawer { width: min(560px, 100vw); }

@media (max-width: 1099px) {
    .gq-cols { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 699px) {
    .gq-doc { flex-wrap: wrap; }
    .gq-doc__tags { justify-content: flex-start; }
}

/* The Markdown marks in the editor's hint, at the text's floor. */
.gq .gc-xs code { font-size: 12px; }
