/* Hahu Skill — global reset, typography, notices, tables, accessibility */
*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top right, rgba(212,160,23,.09), transparent 32%),
        linear-gradient(180deg, #fbfaf7 0%, var(--color-page) 100%);
    color: var(--color-text);
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.65;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

img, video, iframe, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { color: var(--color-primary-dark); }
::selection { background: var(--color-secondary-light); color: var(--color-heading); }

h1,h2,h3,h4,h5,h6 {
    margin-top: 0;
    margin-bottom: var(--space-4);
    color: var(--color-heading);
    font-family: var(--font-heading);
    line-height: 1.2;
}
h1 { font-size: clamp(2rem, 5vw, 3.7rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.45rem, 3vw, 2.15rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.45rem); }
h4 { font-size: 1.05rem; }
p { margin-top: 0; margin-bottom: var(--space-5); }
ul,ol { margin-top: 0; margin-bottom: var(--space-5); padding-left: 1.4rem; }
li + li { margin-top: var(--space-2); }
strong { color: var(--color-heading); }

.ethiopic-text,[lang="am"],[lang="ti"] { font-family: var(--font-ethiopic); }
.text-muted { color: var(--color-text-muted); }
.text-center { text-align: center; }
.eyebrow {
    display: inline-block;
    margin-bottom: var(--space-3);
    color: var(--color-primary);
    font-size: .78rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.notice,.form-message {
    padding: 15px 17px;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-medium);
    font-size: .94rem;
    line-height: 1.55;
}
.notice { background: var(--color-info-bg); border-color: var(--color-info-border); color: var(--color-info); }
.success-message { background: var(--color-success-bg); border-color: var(--color-success-border); color: var(--color-success); }
.error-message { background: var(--color-error-bg); border-color: var(--color-error-border); color: var(--color-error); }
.warning-message { background: var(--color-warning-bg); border-color: var(--color-warning-border); color: var(--color-warning); }
.form-message { margin-top: var(--space-5); font-weight: 700; }
[hidden],.hidden { display: none !important; }

.table-wrap {
    overflow-x: auto;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-large);
    box-shadow: var(--shadow-small);
}
table { width: 100%; border-collapse: collapse; }
th,td { padding: 14px 16px; border-bottom: 1px solid var(--color-border); text-align: left; vertical-align: top; }
th { background: var(--color-primary-light); color: var(--color-primary-dark); font-size: .88rem; }
tr:last-child td { border-bottom: 0; }

:focus-visible { outline: 3px solid var(--color-secondary); outline-offset: 3px; }
.skip-link {
    position: fixed;
    left: 12px;
    top: -100px;
    z-index: 9999;
    padding: 10px 15px;
    background: var(--color-heading);
    color: #fff;
    border-radius: var(--radius-medium);
}
.skip-link:focus { top: 12px; }
/* =========================================================
   HERITAGE LANGUAGE REGISTRATION CHOICE
   ========================================================= */

.heritage-language-choice{
    margin-top:16px;
    margin-bottom:18px;
}
.heritage-language-choice-heading {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;

    margin-bottom: 8px;

    text-align: center;
}

.heritage-language-choice-heading span {
    color: #204f77;

    font-size: 1rem;
    font-weight: 900;
}

.heritage-language-choice-heading small {
    color: #687887;

    font-size: 0.82rem;
}


/* Buttons container */

.heritage-language-buttons {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));

    gap: 10px;
}

.heritage-language-buttons,
.hero-actions{
    width:100%;
}

.heritage-language-buttons > a,
.hero-actions > a{
    width:100%;
}

/* Shared button style */

.heritage-language-btn {
    display: flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 64px;

    padding: 9px 13px;

    border-radius: 14px;

    text-decoration: none;

    box-shadow:
        0 4px 10px
        rgba(0, 0, 0, 0.07);

    transition:
        transform 0.18s ease,
        box-shadow 0.18s ease;
}
.heritage-language-btn:hover {
    transform: translateY(-2px);

    box-shadow:
        0 8px 18px
        rgba(0, 0, 0, 0.12);
}


/* Amharic */

.heritage-amharic-btn {
    background: #ffc12d;
    color: #173d64;
}


/* Tigrinya */

.heritage-tigrinya-btn {
    background: #f3a81f;
    color: #173d64;
}


/* Big Ethiopic letter */

.heritage-language-letter {
    display: grid;
    place-items: center;

    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    border-radius: 11px;

    background: rgba(255,255,255,0.8);

    color: #9b3d1c;

    font-size: 1.7rem;
    font-weight: 900;
}

/* Text */

.heritage-language-text {
    display: flex;
    flex-direction: column;

    text-align: left;
}

.heritage-language-text small {
    font-size: 0.68rem;
    font-weight: 750;
    opacity: 0.82;
}

.heritage-language-text strong {
    margin-top: 1px;
    font-size: 1rem;
    font-weight: 900;
}

/* =========================================================
   HERO ACTION BUTTON ALIGNMENT
   ========================================================= */

.hero-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;

    margin-top: 14px;
}

.hero-actions .hero-button {
    width: 100%;

    min-height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    gap: 8px;

    padding: 10px 14px;

    border-radius: 14px;

    font-size: 0.95rem;
    font-weight: 850;
}

/* =========================================================
   HERO 2 × 2 ACTION GRID — FINAL OVERRIDE
   ========================================================= */

.home-hero-text .heritage-language-buttons,
.home-hero-text .hero-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.home-hero-text .hero-actions{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:10px;

    margin-top:16px;
}
.home-hero-text .heritage-language-btn,
.home-hero-text .hero-actions .hero-button {
    width: 100%;
    min-width: 0;
    min-height: 58px;

    margin: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 14px;
}

/* Language buttons can remain very slightly taller */
.home-hero-text .heritage-language-btn {
    min-height: 64px;
}

/* Prevent older hero styles from shrinking these */
.home-hero-text .hero-actions .hero-button {
    padding: 10px 12px;
}
/* Mobile */

@media (max-width: 520px) {

    .home-hero-text .heritage-language-buttons,
    .home-hero-text .hero-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .home-hero-text .heritage-language-btn {
        justify-content: center;
        padding: 8px;
        gap: 7px;
    }

    .heritage-language-letter {
        width: 34px;
        height: 34px;
        flex: 0 0 34px;
        font-size: 1.5rem;
    }

    .heritage-language-text strong {
        font-size: 0.9rem;
    }

    .heritage-language-text small {
        font-size: 0.62rem;
    }

    .home-hero-text .hero-actions .hero-button {
        font-size: 0.82rem;
        padding: 8px 6px;
    }
}
