.cocreate-page :is(.cocreate-heading, .cocreate-followup) {
    background: var(--bg);
}

.cocreate-page :is(.cocreate-heading > .wrap, .cocreate-hypothesis, .cocreate-request) {
    box-sizing: border-box;
    max-width: 1312px;
    padding-inline: clamp(20px, 4.4vw, 64px);
}

.cocreate-page .cocreate-heading {
    padding-block: clamp(40px, 5vw, 72px) clamp(28px, 3vw, 40px);
}

.cocreate-heading h1 {
    max-width: 13em;
    font-size: clamp(46px, 6.4vw, 92px);
    font-weight: 300;
    letter-spacing: -0.03em;
    line-height: 1.04;
    text-wrap: balance;
}

.cocreate-heading h1 span {
    color: var(--petrol);
}

.cocreate-followup {
    color: var(--ink);
}

.cocreate-followup h2 {
    margin-bottom: 24px;
    font-size: clamp(28px, 3vw, 40px);
    font-weight: 300;
    line-height: 1.15;
}

.cocreate-followup :is(button, input, textarea):focus-visible {
    outline: 2px solid var(--petrol);
    outline-offset: 3px;
}

.cocreate-page .cocreate-hypothesis {
    padding-block: clamp(64px, 7vw, 104px) 56px;
}

.cocreate-hypothesis-form {
    display: flex;
    align-items: flex-end;
    gap: 12px;
    max-width: 980px;
    padding-bottom: 8px;
    border-bottom: 1.5px solid var(--ink);
}

.cocreate-hypothesis-form:focus-within {
    border-bottom-color: var(--petrol);
}

.cocreate-hypothesis-form textarea {
    box-sizing: border-box;
    flex: 1;
    min-width: 0;
    min-height: 92px;
    padding: 6px 0;
    border: 0;
    background: transparent;
    color: inherit;
    font-size: clamp(24px, 2.6vw, 34px);
    font-weight: 300;
    line-height: 1.35;
    resize: none;
}

.cocreate-hypothesis-form textarea:focus {
    outline: none;
    box-shadow: none;
}

.cocreate-hypothesis-form textarea::placeholder {
    color: var(--muted);
}

.cocreate-hypothesis-send {
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--btn-bg);
    color: var(--btn-ink);
    cursor: pointer;
}

.cocreate-hypothesis-send:hover {
    background: var(--petrol);
}

.cocreate-hypothesis-send svg {
    width: 18px;
    height: 18px;
}

.cocreate-hypothesis-examples {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 26px;
    margin-top: 16px;
}

.cocreate-hypothesis-examples button {
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--navy);
    font-size: var(--p);
    line-height: 1.6;
    text-align: start;
    text-decoration: underline;
    text-decoration-color: var(--card-line-strong);
    text-underline-offset: 0.18em;
    cursor: pointer;
}

.cocreate-hypothesis-examples button:hover {
    color: var(--ink);
}

.cocreate-page .cocreate-request {
    padding-block: 56px 104px;
    border-top: 1px solid var(--card-line-strong);
}

.cocreate-request-intro {
    max-width: 36em;
    margin-bottom: 28px;
    color: var(--navy);
    font-size: 19px;
    line-height: 1.6;
}

.cocreate-request h3 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-line-strong);
    color: var(--navy);
    font-size: 15px;
    font-weight: 400;
    line-height: 1.15;
}

.cocreate-request-summary {
    max-width: 60em;
    margin: 12px 0 28px;
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    font-family: inherit;
    font-size: 16px;
    line-height: 1.6;
    overflow-wrap: anywhere;
    white-space: pre-wrap;
}

.cocreate-request-form {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 260px));
    align-items: end;
    gap: 20px 28px;
}

.cocreate-request-form label {
    color: var(--navy);
    font-size: var(--small);
    line-height: 1.6;
}

.cocreate-request-form label span {
    display: block;
}

.cocreate-request-form input {
    box-sizing: border-box;
    width: 100%;
    padding: 6px 0;
    border: 0;
    border-bottom: 1px solid var(--card-line-strong);
    background: transparent;
    color: var(--ink);
    font-size: 18px;
    line-height: 1.6;
}

.cocreate-request-form input[aria-invalid="true"] {
    border-color: var(--coral);
}

.cocreate-request-form input:focus {
    outline: none;
    border-bottom-color: var(--accent-ink);
}

.cocreate-request-form p {
    grid-column: 1 / -1;
}

.cocreate-request .pill {
    padding: 13px 24px;
    border: 0;
    font-size: 17px;
    line-height: 1.6;
    white-space: normal;
}

.cocreate-request-error:not([hidden]) {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--small);
}

.cocreate-request-error::before {
    width: 8px;
    height: 8px;
    flex: none;
    border-radius: 50%;
    background: var(--coral);
    content: '';
}

.cocreate-sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

@media (max-width: 860px) {
    .cocreate-request-intro {
        font-size: 18px;
    }

    .cocreate-request-form {
        grid-template-columns: 1fr;
    }
}

.hypothesis-status:not(:empty),
.hypothesis-relevance {
    margin-top: 16px;
    color: var(--navy);
    font-size: var(--small);
}

.hypothesis-results {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 32px 24px;
    margin-top: 44px;
    overflow-wrap: anywhere;
}

.hypothesis-results h3 {
    padding-bottom: 10px;
    border-bottom: 1px solid var(--card-line-strong);
    color: var(--navy);
    font-size: 15px;
    font-weight: 400;
}

.hypothesis-items,
.hypothesis-questions {
    margin: 0;
}

.hypothesis-items {
    list-style: none;
    padding: 0;
}

.hypothesis-items li {
    display: block;
    padding-block: 22px;
    border-bottom: 1px solid var(--line);
}

.hypothesis-items h4 {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.3;
    letter-spacing: normal;
}

.hypothesis-items a {
    text-decoration: none;
    text-underline-offset: 0.18em;
}

.hypothesis-items a:hover {
    text-decoration: underline;
}

.hypothesis-items a:focus-visible {
    outline: 2px solid var(--petrol);
    outline-offset: 3px;
}

.hypothesis-result-body {
    margin-top: 6px;
}

.hypothesis-result-excerpt {
    max-width: 40em;
    color: var(--navy);
    font-size: var(--p);
    line-height: 1.5;
}

.hypothesis-result-meta {
    margin-top: 8px;
    font-size: var(--small);
    font-weight: 500;
    line-height: 1.5;
}

.hypothesis-result-meta a {
    text-decoration: underline;
    text-decoration-color: var(--card-line-strong);
}

.hypothesis-result-details,
.hypothesis-meta-separator {
    color: var(--muted);
}

.hypothesis-questions {
    list-style: decimal;
    padding-inline-start: 1.2em;
    margin-top: 8px;
}

.hypothesis-questions li {
    padding-block: 10px;
    border-bottom: 1px solid var(--line);
    font-size: 18px;
    line-height: 1.45;
}

.hypothesis-empty {
    margin-top: 12px;
    color: var(--navy);
    font-size: 16px;
}

@media (max-width: 1100px) {
    .hypothesis-results {
        grid-template-columns: 1fr;
    }
}
