/* Shared brand styles, fonts and header come from /assets/style.css. */
button {
    font-family: inherit;
}

.hero-brand {
    color: inherit;
    text-decoration: none;
}

.account-menu {
    position: relative;
    justify-self: end;
    max-width: 100%;
}

.account-chip {
    max-width: 100%;
    flex-wrap: wrap;
    overflow-wrap: anywhere;
}

.account-dropdown-link {
    width: 100%;
    border: 0;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

main {
    width: min(760px, calc(100% - 2.5rem));
    margin: 2rem auto 0;
    min-width: 0;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-top: 3px solid var(--brand-orange);
    box-shadow: var(--shadow-sm);
    padding: 2rem;
    display: grid;
    justify-items: start;
    gap: 1.25rem;
}

.note {
    font-size: 0.82rem;
    color: var(--text-muted);
}

.notice {
    width: 100%;
    background: var(--bg-soft);
    border-left: 3px solid var(--brand-blue);
    padding: 0.85rem 1rem;
    font-size: 0.86rem;
}

.submit-button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: var(--brand-orange);
}

#message:empty {
    display: none;
}

#message {
    font-size: 0.86rem;
    overflow-wrap: anywhere;
}

#result {
    width: 100%;
    min-width: 0;
    border-top: 1px solid var(--border);
    padding-top: 1.25rem;
}

#stage {
    font-size: 1.1rem;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.success {
    color: #237349;
}

.failed {
    color: var(--danger);
}

#result details {
    margin-top: 1rem;
}

#result summary {
    cursor: pointer;
    font-size: 0.82rem;
    font-weight: 600;
}

pre {
    font:
        0.75rem/1.7 Consolas,
        monospace;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
    max-height: 320px;
    overflow: auto;
    background: var(--brand-dark);
    color: #ffffff;
    padding: 1rem;
    margin-top: 0.75rem;
}

.website-link {
    display: block;
    width: fit-content;
    text-align: center;
    font-size: 0.82rem;
    margin: 1.5rem auto 0;
    color: var(--brand-dark);
    text-underline-offset: 3px;
}

button:focus-visible,
a:focus-visible,
summary:focus-visible {
    outline: 3px solid var(--brand-orange);
    outline-offset: 4px;
}

@media (max-width: 720px) {
    main {
        width: 100%;
        margin-top: 0.5rem;
    }

    .account-menu {
        justify-self: start;
    }

    .card {
        padding: 1.25rem;
    }
}
