/* Platform layouts load this after their component sheets. Site previews use a separate document. */
.admin-shell,
.builder-dialog {
    --ui-title: 1.75rem;
    --ui-section: 1.25rem;
    --ui-card-title: 1.125rem;
    --ui-metric: 1.625rem;
}

.admin-content h1,
#builder .wizard-panel h1 {
    font-size: var(--ui-title);
    font-weight: 650;
    line-height: 1.2;
    letter-spacing: -.025em;
}

.admin-content h2,
#builder h2 {
    font-size: var(--ui-section);
    font-weight: 650;
    line-height: 1.25;
}

.admin-content h3,
#builder h3,
#builder .s3-products strong,
#builder .s1a-template strong {
    font-size: var(--ui-card-title);
    font-weight: 600;
    line-height: 1.3;
}

.portal-metric strong {
    font-size: var(--ui-metric);
    font-weight: 650;
}

.buyer-order-name strong,
.portal-amount,
.portal-status,
.site-state,
.portal-group,
.portal-profile strong,
.portal-avatar,
.portal-topbar,
.order-open {
    font-weight: 650;
}

.portal-nav-link,
.admin-header nav,
.admin-header nav button,
.admin-shell .button,
.admin-content .admin-back,
.admin-content .site-links a,
.admin-content .rules-row a,
.desktop-nav,
.mobile-nav,
.site-header .button,
#builder .button,
#builder .wizard-steps button {
    font-weight: 600;
}

.portal-nav-link[aria-current],
#builder .wizard-steps .current button {
    font-weight: 650;
}

/* Retain the reach of text-sized links and buttons with the lighter Nunito weight. */
.desktop-nav a,
.mobile-nav a,
.admin-header nav a,
.admin-header nav button,
.admin-content .admin-back,
.admin-content .site-links a,
.admin-content .rules-row a,
.portal-switch,
.site-header .button,
.admin-shell .button,
#builder .button {
    letter-spacing: .03em;
}

.builder-dialog .wizard-heading p,
.builder-dialog .finish-content > p {
    font-size: .875rem;
}

.admin-content .field label,
#builder .field label {
    font-size: .8125rem;
    font-weight: 600;
}

.admin-content .field :is(input:not([type=file], [type=checkbox], [type=radio]), textarea, select),
#builder .field :is(input:not([type=file], [type=checkbox], [type=radio]), textarea, select) {
    font-size: 1rem;
}

/* Preserve the landing page's display sizes and the typography inside its sample sites. */
.hero h1 { font-weight: 750; }
.section-heading h2,
.final-cta h2,
.benefit h3,
.steps-grid h3,
.price-card h3,
.example-meta h3,
.extras h3 { font-weight: 650; }

@media (max-width: 800px) {
    .admin-shell,
    .builder-dialog {
        --ui-title: 1.5rem;
        --ui-section: 1.125rem;
    }
}
