/* ========================================
   Shared Design Tokens & Utilities
   Used by header, footer, and homepage
   ======================================== */

:root {
    /* Colors */
    --hp-text: #171717;
    --hp-text-secondary: #6b6b6b;
    --hp-dark: #292929;
    --hp-green: #82ff9e;
    --hp-green-border: #65d985;
    --hp-outline-border: rgba(144, 143, 141, 0.48);
    --hp-header-bg: rgba(255, 255, 255, 0.72);
    --hp-copyright: #a6a09b;
    --hp-border: #e8e3dd;

    /* Spacing & Radii */
    --hp-radius-section: 24px;
    --hp-radius-header: 190px;
    --hp-radius-pill: 9999px;
    --hp-radius-hamburger: 14px;
    --hp-radius-badge: 6.8px;   /* shared: home + all-principles pills (moved here from home/base.css for consistency) */
    --hp-max-width: 1440px;
}

/* Container */
.hp-container {
    max-width: var(--hp-max-width);
    margin: 0 auto;
    padding: 0 12px;
}

@media (min-width: 800px) {
    .hp-container {
        padding: 0 24px;
    }
}

@media (min-width: 1300px) {
    .hp-container {
        padding: 0 38px;
    }
}

/* Shared button styles */
.hp-btn {
    font-family: 'Heebo', sans-serif;
    font-size: 16px;
    line-height: 28px;
    font-weight: 400;
    cursor: pointer;
    border-radius: var(--hp-radius-pill);
    gap: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 24px;
    text-decoration: none;
    border: none;
    transition: opacity 0.2s;
}

.hp-btn:hover {
    opacity: 0.85;
}

.hp-btn--primary {
    background: var(--hp-green);
    border: 1px solid var(--hp-green-border);
    color: var(--hp-text);
}

.hp-btn--secondary {
    background: #fff;
    border: 1px solid var(--hp-outline-border);
    color: var(--hp-text);
}

.hp-btn--text {
    background: transparent;
    border: none;
    padding: 8px 0;
    color: var(--hp-text);
}

/* Sticky footer */
body {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

/* Links */
a {
    color: var(--hp-text);
    text-decoration: none;
}

.body-text a,
.dp-description a,
.dp-accordion__content a,
.story-article__body a,
.description__text a {
    font-weight: 600;
    border-bottom: 1px solid var(--hp-border);
    padding-bottom: 1px;
    transition: border-color 0.2s;
}

.body-text a:hover,
.dp-description a:hover,
.dp-accordion__content a:hover,
.story-article__body a:hover,
.description__text a:hover {
    border-bottom-color: var(--hp-green);
}

/* Page title */
.hp-title {
    font-family: 'FbMetali', sans-serif;
    font-size: 36px;
    font-weight: 500;
    line-height: 40px;
    color: var(--hp-text);
    margin-bottom: 36px;
}

/* Page header row — title + optional inline toolbar */
.hp-page-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 0;
}

.hp-page-header .hp-title {
    margin-bottom: 0;
}

/* Full title subtitle — shown below hp-title on principle pages */
.hp-full-title {
    font-family: 'Heebo', sans-serif;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: var(--hp-text-secondary);
    margin: 4px 0 0 0;
}

/* Page content area — consistent spacing below title */
.hp-page-content {
    margin-top: 36px;
}

/* Keyboard-only focus ring (WCAG 2.4.7) — no ring on mouse click */
:focus {
    outline: none;
}

:focus-visible {
    outline: 2px solid var(--hp-text);
    outline-offset: 2px;
    border-radius: 4px;
}
