/* Shared header and control geometry for the existing donor templates. */
:root {
    --site-header-top: 16px;
    --site-header-height: 72px;
    --site-header-offset: calc(var(--site-header-top) + var(--site-header-height));
    --site-control-height: 48px;
    --site-focus: #246a8b;
}

html { scroll-padding-top: calc(var(--site-header-offset) + 24px); }
body { background: #fff; }
body > main, .page > main { padding-top: var(--site-header-offset); }
body > header, .page > header, .site-header { top: var(--site-header-top); }
.header-main, .header-shell {
    height: var(--site-header-height);
    min-height: var(--site-header-height);
    padding: 12px;
    gap: 16px;
    background: #fff;
    border: 1px solid #dedede;
    border-radius: 16px;
}
.logo, .brand { flex: 0 0 auto; width: 191px; max-width: 191px; }
.logo img, .brand img { display: block; width: 100%; height: auto; }
.header-btn, .header-actions { flex: 0 0 auto; gap: 8px; }
header .btn, header .btn-login, .header-shell .button {
    height: 44px;
    min-height: 44px;
    padding: 0 16px;
    border-radius: 10px;
    font-size: 14px;
    line-height: 1.2;
    white-space: nowrap;
}
.nav-menu a, .nav a { font-size: 14px; padding: 10px 12px; }
.present-main, .page .hero { padding-top: 32px; }
a, button { touch-action: manipulation; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
    outline: 3px solid var(--site-focus);
    outline-offset: 4px;
}
button { font-family: inherit; }
.button, .hero-btn, .animated-button {
    transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
}
.button:hover { background: #1c1c1c; color: #fff; }
.button:active, .hero-btn:active, .animated-button:active { transform: translateY(1px); }
.button:disabled, button:disabled, [aria-disabled="true"] {
    opacity: .5;
    cursor: not-allowed;
    pointer-events: none;
}
[aria-busy="true"] { cursor: progress; opacity: .75; }
.page .hero-actions .button, .page .final .button {
    height: var(--site-control-height);
    min-height: var(--site-control-height);
    padding-inline: 24px;
}
.header-try::after { display: none; animation: none; }
.footer a:focus-visible { outline-color: #a0d8ee; }
.footer-links a { min-height: 32px; padding-block: 4px; }

@media (max-width: 1090px) {
    .nav, .nav-menu { display: none; }
    .menu-mobile { gap: 0; }
}
@media (max-width: 600px) {
    :root { --site-header-top: 8px; --site-header-height: 64px; }
    .header-main, .header-shell { padding: 8px 12px; gap: 12px; }
    .logo, .brand { width: 150px; max-width: 150px; }
    .logo, .brand { flex: 0 1 150px; min-width: 100px; }
    .menu-content { flex: 0 0 auto; }
    .brand img { width: 100%; }
    .header-btn .btn-login, .header-actions .header-login { display: none; }
    header .btn, .header-shell .button {
        height: 44px;
        min-height: 44px;
        padding-inline: 12px;
        font-size: 14px;
    }
    .present-main, .page .hero { padding-top: 24px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after {
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
    .reveal { opacity: 1; transform: none; }
}

/* Consistent footer rhythm across the homepage and topic pages. */
.footer { padding: 32px 0 24px; }
.footer-catalog { gap: 24px; padding-bottom: 24px; }
@media (max-width: 767px) {
    .footer { padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); }
}
/* Text cards reflow after removal of the rejected decorative artwork. */
.feature-card--text { grid-template-columns: minmax(0, 1fr); }
.pain-solution--text { align-self: start; min-height: 0; }
/* Keep sequence numbers clear of card copy. */
.slide-card h3 { padding-right: 32px; }
.slide-no {
    top: 20px;
    right: 16px;
    bottom: auto;
    color: #595c63;
    font-size: 14px;
    line-height: 1.4;
}
