/* The text pages (Info, Contact, Donate): a narrow column with a heading, a lead and cards. Colours come from the MudBlazor
   palette, so both themes work; the accent is the site's blue fade (--brand-gradient). */

.page {
    max-width: 52rem;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.page-hero {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.page-title {
    font-weight: 600 !important;
    font-size: clamp(2rem, 6vw, 2.75rem) !important;
}

.page-title::after {
    content: "";
    display: block;
    width: 4rem;
    height: 4px;
    margin-top: 0.75rem;
    border-radius: 2px;
    background: var(--brand-gradient);
}

.page-lead {
    color: var(--mud-palette-text-secondary);
    font-size: 1.125rem !important;
    max-width: 46rem;
}

.page-section-title {
    font-weight: 600 !important;
    margin-bottom: -0.5rem !important;
}

.page-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
}

/* Four cards: two by two, not three and one alone. */
.page-grid-2x2 {
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr));
}

.page-card {
    padding: 1.25rem 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    border-radius: 12px !important;
}

/* The one card that is the point of the page gets the accent along its top edge. */
.page-card-accent {
    position: relative;
    overflow: hidden;
}

.page-card-accent::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--brand-gradient);
}

.page-card-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.page-card-icon {
    color: var(--mud-palette-primary);
}

.page-card ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: var(--mud-typography-body1-size);
    line-height: var(--mud-typography-body1-lineheight);
}

.page-card li + li {
    margin-top: 0.25rem;
}

.page-muted {
    color: var(--mud-palette-text-secondary);
}

.page-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.75rem;
}

.page-footnote {
    color: var(--mud-palette-text-secondary);
    border-top: 1px solid var(--mud-palette-lines-default);
    padding-top: 1rem;
}

/* Contact: the address is the page's main element. */
.contact-email {
    font-size: clamp(1.2rem, 4.5vw, 1.6rem) !important;
    font-weight: 600 !important;
    overflow-wrap: anywhere;
}

/* Donate: three facts about the site, then the ways to give. */
.page-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.page-facts li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-weight: 500;
}

.donation-crypto {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 1.25rem;
    align-items: center;
}

/* A QR code must stay dark on white to scan, also in the dark theme. */
.donation-qr {
    background: #fff;
    padding: 0.5rem;
    border-radius: 8px;
    border: 1px solid var(--mud-palette-lines-default);
    width: 9.5rem;
    height: 9.5rem;
}

.donation-address {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.85rem;
    background: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    overflow-wrap: anywhere;
    user-select: all;
}

@media (max-width: 599.98px) {
    .donation-crypto {
        grid-template-columns: 1fr;
        justify-items: center;
    }
}

/* Copy buttons (_CopyButton): site.js sets data-copied for 2 s after copying. */
.copy-button .copied-label,
.copy-button[data-copied] .copy-label {
    display: none;
}

.copy-button[data-copied] .copied-label {
    display: inline;
}

.donation-crypto-details {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    min-width: 0;
}

/* Inline code on the text pages (element names, attributes, entities). */
.page code {
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: 0.9em;
    background: var(--mud-palette-background-gray);
    border: 1px solid var(--mud-palette-lines-default);
    border-radius: 4px;
    padding: 0.05em 0.35em;
    white-space: nowrap;
}
