/* ==========================================================================
   Our Graduates — hidayah-academy-graduates.php
   Everything is scoped under .ga so it cannot leak into the shared header,
   footer or Bootstrap 3 styles used on the rest of the site.
   ========================================================================== */

.ga {
    --ga-navy: #243a73;
    --ga-navy-deep: #1a2b57;
    --ga-navy-soft: #eef1f8;
    --ga-gold: #faa619;
    --ga-gold-soft: #fbe3b3;
    --ga-gold-text: #9a5b00;
    --ga-ink: #1c2541;
    --ga-muted: #586074;
    --ga-line: #e6e3da;
    --ga-cream: #faf8f3;
    --ga-card: #ffffff;
    --ga-radius: 14px;
    --ga-shadow: 0 1px 2px rgba(28, 37, 65, .04), 0 2px 8px rgba(28, 37, 65, .04);
    --ga-shadow-hover: 0 4px 10px rgba(28, 37, 65, .06), 0 14px 32px rgba(28, 37, 65, .08);
    --ga-serif: "Noto Serif", Georgia, "Times New Roman", serif;
    --ga-sans: "Open Sans", "Segoe UI", Arial, sans-serif;
    --ga-star: polygon(50% 0%, 64.6% 14.6%, 85.4% 14.6%, 85.4% 35.4%, 100% 50%, 85.4% 64.6%, 85.4% 85.4%, 64.6% 85.4%, 50% 100%, 35.4% 85.4%, 14.6% 85.4%, 14.6% 64.6%, 0% 50%, 14.6% 35.4%, 14.6% 14.6%, 35.4% 14.6%);

    display: block;
    background: var(--ga-cream);
    color: var(--ga-ink);
    font-family: var(--ga-sans);
    font-size: 15px;
    font-weight: 400;
    /* style-v1.css sets body line-height in em, which would inherit as a fixed px value */
    line-height: 1.6;
    overflow-x: clip;
}

.ga *,
.ga *::before,
.ga *::after {
    box-sizing: border-box;
}

.ga [hidden] {
    display: none !important;
}

.ga h1,
.ga h2,
.ga h3,
.ga h4 {
    font-family: var(--ga-serif);
    text-transform: none;
    letter-spacing: 0;
    line-height: 1.25;
    color: var(--ga-ink);
    margin: 0;
}

.ga p {
    margin: 0;
}

.ga a {
    color: var(--ga-navy);
}

.ga :focus-visible {
    outline: 3px solid var(--ga-gold);
    outline-offset: 2px;
}

.ga-sr-only {
    position: absolute !important;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.ga-hero {
    position: relative;
    padding: 56px 0 96px;
    color: #fff;
    background-color: var(--ga-navy);
    /* Faint eight-point-star lattice */
    background-image:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Crect x='16' y='16' width='40' height='40'/%3E%3Crect x='16' y='16' width='40' height='40' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='8'/%3E%3C/g%3E%3C/svg%3E"),
        linear-gradient(180deg, var(--ga-navy) 0%, var(--ga-navy-deep) 100%);
    background-size: 72px 72px, auto;
    text-align: center;
}

.ga-hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 64px;
    width: 72px;
    height: 2px;
    margin-left: -36px;
    background: var(--ga-gold);
    opacity: .9;
}

.ga-crumbs ol {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
    font-size: 13px;
    letter-spacing: .02em;
    color: rgba(255, 255, 255, .72);
}

.ga-crumbs li + li::before {
    content: "›";
    margin-right: 6px;
    color: rgba(255, 255, 255, .5);
}

.ga-crumbs a {
    color: #fff;
    text-decoration: none;
    border-bottom: 1px solid rgba(255, 255, 255, .35);
}

.ga-crumbs a:hover,
.ga-crumbs a:focus {
    color: #fff;
    text-decoration: none;
    border-bottom-color: var(--ga-gold);
}

.ga .ga-hero__title {
    color: #fff;
    font-size: clamp(34px, 5vw, 52px);
    font-weight: 700;
    letter-spacing: -.01em;
    margin-bottom: 14px;
}

/* Matches .ph__urdu in page-hero.css */
.ga .ga-hero__urdu {
    margin: -6px 0 12px;
    font-family: "Jameel Noori Nastaleeq", "Noto Nastaliq Urdu", serif;
    font-size: clamp(34px, 3.6vw, 48px);
    font-weight: 400;
    line-height: 1.5;
    color: #fbe3b3;
}

.ga .ga-hero__lede {
    max-width: 620px;
    margin: 0 auto;
    font-size: clamp(16px, 1.8vw, 18px);
    line-height: 1.65;
    color: rgba(255, 255, 255, .86);
}

/* --------------------------------------------------------------------------
   Stats
   -------------------------------------------------------------------------- */

.ga-stats-wrap {
    position: relative;
    z-index: 1;
    margin-top: -44px;
}

.ga-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    max-width: 880px;
    margin: 0 auto;
    padding: 0;
    background: var(--ga-card);
    border: 1px solid var(--ga-line);
    border-radius: var(--ga-radius);
    box-shadow: var(--ga-shadow);
}

.ga-stat {
    display: flex;
    flex-direction: column-reverse;
    justify-content: flex-end;
    align-items: center;
    gap: 2px;
    padding: 22px 18px;
    text-align: center;
}

.ga-stat + .ga-stat {
    border-left: 1px solid var(--ga-line);
}

.ga-stat__value {
    margin: 0;
    font-family: var(--ga-serif);
    font-size: 34px;
    font-weight: 700;
    line-height: 1.1;
    color: var(--ga-navy);
}

.ga-stat__label {
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    color: var(--ga-muted);
}

/* --------------------------------------------------------------------------
   Toolbar: year filter + search
   -------------------------------------------------------------------------- */

.ga-browse {
    padding: 48px 0 24px;
}

.ga-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 14px 24px;
    padding: 12px 0;
    background: var(--ga-cream);
}

.ga-years {
    flex: 1 1 520px;
    min-width: 0;
}

.ga-years__list {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 2px;
    list-style: none;
    overflow-x: auto;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
}

.ga-years__list::-webkit-scrollbar {
    display: none;
}

.ga-years__list li {
    flex: 0 0 auto;
    scroll-snap-align: start;
}

.ga .ga-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 64px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid var(--ga-line);
    border-radius: 999px;
    background: var(--ga-card);
    color: var(--ga-ink);
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: background-color .2s, border-color .2s, color .2s;
}

.ga .ga-pill:hover {
    border-color: var(--ga-navy);
    color: var(--ga-navy);
    text-decoration: none;
}

.ga .ga-pill[aria-current="true"] {
    background: var(--ga-navy);
    border-color: var(--ga-navy);
    color: #fff;
}

.ga-search {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    flex: 0 1 540px;
    min-width: 220px;
    margin: 0;
}

.ga-search__field {
    position: relative;
    display: flex;
    align-items: center;
    flex: 1 1 220px;
    min-width: 0;
}

.ga .ga-select {
    flex: 0 1 240px;
    min-width: 0;
    height: 44px;
    padding: 0 40px 0 18px;
    border: 1px solid var(--ga-line);
    border-radius: 999px !important;
    background: var(--ga-card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23243a73' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 16px center / 14px;
    color: var(--ga-ink);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-overflow: ellipsis;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s;
}

.ga .ga-select:hover {
    border-color: var(--ga-navy);
}

.ga .ga-select:focus {
    outline: none;
    border-color: var(--ga-navy);
    box-shadow: 0 0 0 3px rgba(36, 58, 115, .14);
}

.ga-search__icon {
    position: absolute;
    left: 16px;
    width: 16px;
    height: 16px;
    pointer-events: none;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23586074' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ga .ga-search__input {
    width: 100%;
    height: 44px;
    padding: 0 16px 0 42px;
    border: 1px solid var(--ga-line);
    border-radius: 999px !important;
    background: var(--ga-card);
    color: var(--ga-ink);
    font: inherit;
    font-size: 15px;
    -webkit-appearance: none;
    appearance: none;
    transition: border-color .2s, box-shadow .2s;
}

.ga .ga-search__input::placeholder {
    color: #7b8295;
}

.ga .ga-search__input:focus {
    outline: none;
    border-color: var(--ga-navy);
    box-shadow: 0 0 0 3px rgba(36, 58, 115, .14);
}

.ga .ga-search__submit {
    height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 999px !important;
    background: var(--ga-navy);
    color: #fff;
    font-weight: 600;
    cursor: pointer;
}

/* Live filtering replaces the submit button once JavaScript is running. */
.ga--js .ga-search__submit {
    display: none;
}

.ga-summary {
    margin: 10px 0 8px !important;
    font-size: 13px;
    color: var(--ga-muted);
}

@media (min-width: 768px) {
    .ga-toolbar {
        position: sticky;
        top: env(safe-area-inset-top, 0px);
        z-index: 20;
        transition: box-shadow .2s;
    }

    .ga-toolbar.is-stuck {
        box-shadow: 0 10px 18px -16px rgba(28, 37, 65, .45);
    }
}

/* --------------------------------------------------------------------------
   Class sections
   -------------------------------------------------------------------------- */

.ga-class {
    padding-top: 36px;
    scroll-margin-top: 90px;
}

.ga-class + .ga-class {
    margin-top: 28px;
}

.ga-class__head {
    position: relative;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px 24px;
    padding-bottom: 16px;
    margin-bottom: 26px;
    border-bottom: 1px solid var(--ga-line);
}

/* Gold ornament on the separator line */
.ga-class__head::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: -2px;
    width: 56px;
    height: 3px;
    border-radius: 3px;
    background: var(--ga-gold);
}

.ga .ga-class__title {
    font-size: clamp(24px, 3vw, 30px);
    font-weight: 700;
    color: var(--ga-navy);
}

.ga-class__subtitle {
    margin-top: 6px !important;
    font-size: 14px;
    font-style: italic;
    color: var(--ga-muted);
}

.ga-class__aside {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 18px;
    font-size: 14px;
}

.ga-class__count {
    color: var(--ga-muted);
    font-weight: 600;
}

.ga .ga-link-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 40px;
    padding: 0 14px;
    border: 1px solid var(--ga-line);
    border-radius: 999px !important;
    background: var(--ga-card);
    color: var(--ga-navy);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: border-color .2s, background-color .2s;
}

.ga .ga-link-btn::before {
    content: "";
    width: 15px;
    height: 15px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23243a73' stroke-width='2' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='16' rx='2'/%3E%3Cpath d='m3 16 5-5 4 4 3-3 6 6'/%3E%3C/svg%3E") no-repeat center / contain;
}

.ga .ga-link-btn:hover {
    border-color: var(--ga-navy);
    text-decoration: none;
}

.ga-group + .ga-group {
    margin-top: 34px;
}

.ga .ga-group__title {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
    font-family: var(--ga-sans);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ga-gold-text);
}

.ga-group__title::after {
    content: "";
    flex: 1;
    height: 1px;
    background: var(--ga-line);
}

/* --------------------------------------------------------------------------
   Graduate cards
   -------------------------------------------------------------------------- */

.ga-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(245px, 1fr));
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ga-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 22px 22px 0;
    background: var(--ga-card);
    border: 1px solid var(--ga-line);
    border-radius: var(--ga-radius);
    box-shadow: var(--ga-shadow);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.ga-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--ga-shadow-hover);
    border-color: #d8d3c5;
}

.ga-card:focus-within {
    border-color: var(--ga-navy);
}

.ga-card__media {
    width: 64px;
    height: 64px;
    margin-bottom: 16px;
}

.ga-card__photo {
    display: block;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    object-fit: cover;
    transition: transform .3s ease;
}

.ga-card:hover .ga-card__photo {
    transform: scale(1.05);
}

/* Initials on a two-tone eight-point star (used when no photograph exists) */
.ga-monogram {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    font-family: var(--ga-serif);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: .02em;
    color: #fff;
}

.ga-monogram::before,
.ga-monogram::after {
    content: "";
    position: absolute;
    z-index: -1;
    clip-path: var(--ga-star);
}

.ga-monogram::before {
    inset: 0;
    background: var(--ga-gold-soft);
    transform: rotate(22.5deg);
    transition: transform .45s ease;
}

.ga-monogram::after {
    inset: 5px;
    background: var(--ga-navy);
}

/* Only the gold star turns; the initials stay upright */
.ga-card:hover .ga-monogram::before {
    transform: rotate(45deg);
}

.ga .ga-card__name {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    margin-bottom: 10px;
}

.ga .ga-card__open {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: none;
    color: var(--ga-ink);
    font: inherit;
    text-align: left;
    cursor: pointer;
}

/* Make the whole card the click target */
.ga .ga-card__open::after {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: var(--ga-radius);
}

.ga .ga-card__open:focus-visible {
    outline: none;
}

.ga .ga-card__open:focus-visible::after {
    outline: 3px solid var(--ga-gold);
    outline-offset: 2px;
}

.ga-card:hover .ga-card__open {
    color: var(--ga-navy);
}

.ga-card__honorific {
    display: block;
    margin-bottom: 2px;
    font-family: var(--ga-sans);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--ga-gold-text);
}

.ga-card__detail {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    color: var(--ga-muted);
}

.ga-card__detail + .ga-card__detail {
    margin-top: 6px !important;
}

.ga-card__detail--work {
    color: var(--ga-ink);
}

.ga-card__foot {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 4px 12px;
    margin-top: auto !important;
    padding: 12px 0 14px;
    border-top: 1px solid var(--ga-line);
    font-size: 12px;
    font-weight: 600;
    color: var(--ga-muted);
}

/* Space between the card body and its footer, however short the body is */
.ga-card > :nth-last-child(2) {
    margin-bottom: 18px;
}

.ga-card__foot span:first-child {
    color: var(--ga-navy);
}

/* --------------------------------------------------------------------------
   Empty states
   -------------------------------------------------------------------------- */

.ga-empty {
    max-width: 520px;
    margin: 32px auto;
    padding: 40px 28px;
    text-align: center;
    background: var(--ga-card);
    border: 1px dashed #d6d1c3;
    border-radius: var(--ga-radius);
}

.ga-empty--inline {
    max-width: none;
    margin: 0;
}

.ga-empty__icon {
    display: block;
    width: 44px;
    height: 44px;
    margin: 0 auto 14px;
    background: var(--ga-gold-soft);
    clip-path: var(--ga-star);
}

.ga-empty__title {
    font-family: var(--ga-serif);
    font-size: 18px;
    font-weight: 700;
    color: var(--ga-ink);
}

.ga-empty__text {
    margin-top: 14px !important;
    color: var(--ga-muted);
}

.ga-empty__text .ga-link-btn::before {
    display: none;
}

/* --------------------------------------------------------------------------
   Call to action
   -------------------------------------------------------------------------- */

.ga-cta {
    padding: 48px 0 64px;
}

.ga-cta__inner {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 20px 32px;
    padding: 32px 36px;
    background: var(--ga-card);
    border: 1px solid var(--ga-line);
    border-left: 4px solid var(--ga-gold);
    border-radius: var(--ga-radius);
}

.ga .ga-cta__title {
    font-size: 24px;
    font-weight: 700;
    color: var(--ga-navy);
}

.ga-cta__text {
    margin-top: 6px !important;
    color: var(--ga-muted);
}

.ga-cta__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ga .ga-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 0 22px;
    border-radius: 999px;
    font-weight: 600;
    text-decoration: none;
    transition: background-color .2s, color .2s, border-color .2s;
}

.ga .ga-btn--primary {
    background: var(--ga-navy);
    border: 1px solid var(--ga-navy);
    color: #fff;
}

.ga .ga-btn--primary:hover {
    background: var(--ga-navy-deep);
    color: #fff;
}

.ga .ga-btn--ghost {
    border: 1px solid var(--ga-line);
    color: var(--ga-navy);
}

.ga .ga-btn--ghost:hover {
    border-color: var(--ga-navy);
}

/* --------------------------------------------------------------------------
   Dialog (graduate details / original list)
   -------------------------------------------------------------------------- */

.ga-dialog {
    width: min(560px, calc(100% - 24px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    padding: 0;
    border: 0;
    border-radius: 18px;
    background: var(--ga-card);
    color: var(--ga-ink);
    box-shadow: 0 30px 80px rgba(10, 18, 40, .35);
    overflow: hidden;
}

.ga-dialog--wide {
    width: min(960px, calc(100% - 24px));
}

.ga-dialog::backdrop {
    background: rgba(14, 22, 44, .62);
    -webkit-backdrop-filter: blur(3px);
    backdrop-filter: blur(3px);
}

.ga-dialog[open] {
    animation: ga-dialog-in .22s ease-out;
}

@keyframes ga-dialog-in {
    from { opacity: 0; transform: translateY(8px) scale(.985); }
    to   { opacity: 1; transform: none; }
}

.ga-dialog__panel {
    position: relative;
    max-height: calc(100dvh - 32px);
    overflow-y: auto;
    overscroll-behavior: contain;
}

.ga .ga-dialog__close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50% !important;
    background: rgba(255, 255, 255, .92);
    color: var(--ga-ink);
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0, 0, 0, .12);
}

.ga .ga-dialog__close:hover {
    background: var(--ga-navy-soft);
}

.ga-profile__top {
    padding: 36px 32px 26px;
    text-align: center;
    background-color: var(--ga-navy);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='72' height='72' viewBox='0 0 72 72'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='.07'%3E%3Crect x='16' y='16' width='40' height='40'/%3E%3Crect x='16' y='16' width='40' height='40' transform='rotate(45 36 36)'/%3E%3Ccircle cx='36' cy='36' r='8'/%3E%3C/g%3E%3C/svg%3E");
    color: #fff;
}

.ga-profile__top .ga-monogram {
    width: 96px;
    height: 96px;
    margin: 0 auto 16px;
    font-size: 28px;
}

.ga-profile__top .ga-monogram::after {
    inset: 7px;
    background: var(--ga-navy-deep);
}

.ga-profile__photo {
    display: block;
    width: 160px;
    height: 160px;
    margin: 0 auto 16px;
    border-radius: 50%;
    border: 3px solid var(--ga-gold-soft);
    object-fit: cover;
}

.ga-profile__honorific {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--ga-gold);
}

.ga .ga-profile__name {
    margin-top: 4px;
    font-size: 24px;
    font-weight: 700;
    color: #fff;
}

.ga-profile__urdu {
    margin-top: 6px !important;
    font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif;
    font-size: 20px;
    line-height: 1.9;
    color: rgba(255, 255, 255, .85);
}

.ga-profile__list {
    margin: 0;
    padding: 8px 32px 12px;
}

.ga-profile__row {
    display: grid;
    grid-template-columns: 130px 1fr;
    gap: 4px 16px;
    padding: 14px 0;
    border-bottom: 1px solid var(--ga-line);
}

.ga-profile__row:last-child {
    border-bottom: 0;
}

.ga-profile__row dt {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--ga-muted);
    padding-top: 2px;
}

.ga-profile__row dd {
    margin: 0;
    font-size: 15px;
    color: var(--ga-ink);
}

.ga-profile__actions {
    padding: 4px 32px 28px;
}

.ga-poster {
    margin: 0;
    padding: 56px 20px 20px;
}

.ga-poster img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
    background: var(--ga-cream);
}

.ga-poster figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--ga-muted);
    text-align: center;
}

.ga .ga-poster__back {
    position: absolute;
    top: 10px;
    left: 12px;
}

.ga .ga-poster__back::before {
    display: none;
}

html.ga-dialog-open {
    overflow: hidden;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 767px) {
    .ga-hero {
        padding: 40px 0 84px;
    }

    .ga-hero::after {
        bottom: 56px;
    }

    .ga-browse {
        padding-top: 32px;
    }

    .ga-toolbar {
        padding: 0;
    }

    .ga-years,
    .ga-search,
    .ga .ga-select {
        flex: 1 1 100%;
    }

    /* Let the pill row run edge to edge and scroll sideways */
    .ga-years {
        margin: 0 -15px;
    }

    .ga-years__list {
        padding: 2px 15px;
        scroll-padding-inline: 15px;
    }

    .ga .ga-pill {
        min-height: 44px;
    }

    .ga-stat {
        padding: 16px 10px;
    }

    .ga-stat__value {
        font-size: 28px;
    }

    .ga-class {
        padding-top: 24px;
    }

    .ga-cta__inner {
        padding: 24px 22px;
    }

    .ga-profile__top {
        padding: 32px 20px 22px;
    }

    .ga-profile__list {
        padding: 4px 20px 8px;
    }

    .ga-profile__actions {
        padding: 4px 20px 22px;
    }

    .ga-profile__row {
        grid-template-columns: 1fr;
    }

    .ga-poster {
        padding: 60px 10px 14px;
    }
}

@media (max-width: 520px) {
    .ga-stats {
        grid-template-columns: 1fr;
    }

    .ga-stat {
        flex-direction: row-reverse;
        justify-content: space-between;
        text-align: left;
        padding: 14px 20px;
    }

    .ga-stat + .ga-stat {
        border-left: 0;
        border-top: 1px solid var(--ga-line);
    }

    .ga-grid {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    /* Compact card: monogram beside the name instead of above it */
    .ga-card {
        display: grid;
        grid-template-columns: 52px minmax(0, 1fr);
        column-gap: 16px;
        align-content: start;
        padding: 18px 18px 0;
    }

    .ga-card > * {
        grid-column: 2;
    }

    .ga-card > .ga-card__media {
        grid-column: 1;
        grid-row: 1 / span 3;
        width: 52px;
        height: 52px;
        margin: 2px 0 0;
    }

    .ga-card > .ga-card__foot {
        grid-column: 1 / -1;
    }

    .ga-card .ga-monogram,
    .ga-card .ga-card__photo {
        width: 52px;
        height: 52px;
        font-size: 15px;
    }

    .ga-card .ga-monogram::after {
        inset: 4px;
    }

    .ga-card > :nth-last-child(2) {
        margin-bottom: 16px;
    }
}

@media (min-width: 521px) and (max-width: 767px) {
    .ga-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .ga-card {
        padding: 18px 16px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ga *,
    .ga *::before,
    .ga *::after {
        transition: none !important;
        animation: none !important;
    }

    .ga-card:hover {
        transform: none;
    }
}
