html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
:root {
    --alm-gold: #FDB913;
    --alm-blue: #0A2A66;
    --alm-blue-dark: #081D49;
    --alm-text: #1A1A1A;
}

body.alm-body {
    min-height: 100vh;
    margin: 0;
    background: radial-gradient(circle at center 38%, #fffdf1 0%, #ffe9a9 45%, #fbd560 95%);
    color: var(--alm-text);
}


/* Header */
.alm-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(135deg, var(--alm-blue), var(--alm-blue-dark));
    color: #fff;
}
/* --- Logo sizes --- */
.alm-logo {
    width: 32px; /* smaller top logo */
    height: 32px;
    object-fit: contain;
}

.alm-logo-sm {
    width: 24px; /* smaller footer logo */
    height: 24px;
    object-fit: contain;
}
/* --- Footer --- */
.alm-footer {
    background: linear-gradient(135deg, var(--alm-blue-dark), var(--alm-blue));
    color: #fff;
    border-top: 4px solid var(--alm-gold);
}

.alm-footer-pill {
    border: 1px solid rgba(255,255,255,0.3);
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
}

/* --- Hero section enhancement --- */
.alm-hero {
    background: radial-gradient(circle at 40% 20%, #ffe8a1, #f5c34d, #FDB913);
    border-radius: 16px;
    padding: 3rem 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    text-align: center;
    margin-bottom: 2rem;
}

    .alm-hero img {
        max-width: 160px;
        border-radius: 50%;
        box-shadow: 0 0 0 4px var(--alm-blue);
    }

    .alm-hero h1 {
        font-weight: 800;
        color: var(--alm-blue);
    }

    .alm-hero p {
        color: #2d2d2d;
        max-width: 40rem;
        margin: 0 auto;
    }
/* Page wrapper */
.alm-main-wrap {
    padding: 2.5rem 1rem 3.5rem;
}

/* Top block */
.alm-header-block {
    margin-bottom: 1.5rem;
}

.alm-logo-main {
    max-width: 260px; /* full logo, no crop, maintains aspect */
    height: auto;
    margin-bottom: 0.5rem;
}

.alm-title-main {
    font-weight: 800;
    color: var(--alm-blue);
    margin-bottom: 0.25rem;
}

.alm-tagline-main {
    margin: 0;
    color: #3b3b3b;
}

.alm-provisional-main {
    margin: 0.25rem 0 0;
    font-size: 0.85rem;
    color: #777;
}

/* Form card */
.alm-form-card {
    background: #ffffff;
    border-radius: 18px;
    padding: 1.5rem 1.5rem 1.2rem;
    box-shadow: 0 14px 40px rgba(0,0,0,0.12);
    border: 1px solid rgba(10,42,102,0.06);
}

.alm-label {
    font-weight: 600;
    color: #222;
}

.alm-label-sub {
    font-size: 0.8rem;
    color: #777;
}

.alm-lang-select {
    width: auto;
}

.alm-textarea {
    margin-top: 0.4rem;
    resize: vertical;
}

.alm-helper {
    margin-top: 0.15rem;
    font-size: 0.75rem;
    color: #999;
}

.alm-actions .alm-btn-primary {
    background: var(--alm-blue);
    border-color: var(--alm-blue-dark);
    color: #fff;
    border-radius: 999px;
    padding: 0.35rem 1.1rem;
    font-weight: 600;
}

    .alm-actions .alm-btn-primary:hover {
        background: var(--alm-blue-dark);
        box-shadow: 0 0 8px rgba(253,185,19,0.7);
    }

.alm-scope-note {
    font-size: 0.7rem;
    color: #888;
}

/* Result card */
.alm-answer {
    margin-top: 1.2rem;
    border-radius: 16px;
    border: 1px solid rgba(10,42,102,0.08);
    background: #fafafa;
}

/* Hint list */
.alm-hint-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: #555;
}

    .alm-hint-list span {
        padding: 0.2rem 0.6rem;
        border-radius: 999px;
        background: rgba(255,255,255,0.9);
        border: 1px solid rgba(10,42,102,0.06);
    }

/* Help chip (already similar; keep if present) */
.alm-help-chip {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 1040;
}

.alm-help-fab {
    width: 44px;
    height: 44px;
    border-radius: 999px;
    border: 1px solid #f3c25a;
    background: #fffdf7;
    color: var(--alm-blue);
    display: grid;
    place-items: center;
    box-shadow: 0 10px 24px rgba(0,0,0,0.16);
}

.alm-help-panel {
    position: absolute;
    right: 0;
    bottom: 52px;
    width: min(280px, 90vw);
    border-radius: 14px;
    display: none;
}

.alm-help-chip[aria-expanded="true"] .alm-help-panel {
    display: block;
}

@media (max-width: 768px) {
    .alm-form-card {
        padding: 1.2rem 1.0rem 1.0rem;
    }
}
/* --- Header adjustments --- */
.navbar {
    padding-top: 0.3rem; /* thinner header */
    padding-bottom: 0.3rem;
    min-height: 58px;
}

.alm-header {
    background: linear-gradient(135deg, var(--alm-blue), var(--alm-blue-dark));
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.alm-lions-emblem {
    width: 42px; /* more prominent emblem */
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(253, 185, 19, 0.7));
}

.navbar-brand span {
    color: #fff;
}

.navbar-brand small {
    color: rgba(255,255,255,0.7);
    font-size: 0.75rem;
}
/* Header container */
.alm-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    background: linear-gradient(135deg, var(--alm-blue), var(--alm-blue-dark));
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Slim nav */
.alm-nav {
    padding-top: 0.3rem;
    padding-bottom: 0.3rem;
}

/* Emblem bigger & clear */
.alm-lions-emblem {
    width: 40px;
    height: 40px;
    object-fit: contain;
}

/* Brand text */
.alm-brand-title {
    color: #fff;
    font-weight: 700;
    font-size: 1.15rem;
}

.alm-brand-sub {
    color: rgba(255,255,255,0.75);
    font-size: 0.75rem;
}

/* Pills on right */
.alm-header-pill {
    padding: 0.18rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.5);
    color: #fff;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Ribbon clearly visible, not fighting the blue */
.alm-ribbon {
    background: #ffefb3;
    color: #273042;
    font-size: 0.75rem;
    padding: 0.2rem 0;
    border-top: 1px solid rgba(255,255,255,0.06);
    border-bottom: 1px solid rgba(0,0,0,0.06);
}

    .alm-ribbon .alm-ribbon-close {
        border-radius: 999px;
        border-color: rgba(0,0,0,0.35);
        font-size: 0.7rem;
    }
.alm-main-wrap {
    padding-top: 1.5rem;
}
